element-plus/packages/components/table/index.ts
dopamine 79938178dd
build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00

34 lines
796 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils'
import Table from './src/table.vue'
import TableColumn from './src/tableColumn'
import type { SFCWithInstall } from '@element-plus/utils'
export const ElTable: SFCWithInstall<typeof Table> & {
TableColumn: typeof TableColumn
} = withInstall(Table, {
TableColumn,
})
export default ElTable
export const ElTableColumn: SFCWithInstall<typeof TableColumn> =
withNoopInstall(TableColumn)
export type TableInstance = InstanceType<typeof Table>
export type TableColumnInstance = InstanceType<typeof TableColumn>
export type {
SummaryMethod,
Table,
TableProps,
TableRefs,
ColumnCls,
ColumnStyle,
CellCls,
CellStyle,
TreeNode,
RenderRowData,
Sort,
Filter,
TableColumnCtx,
} from './src/table/defaults'