Files
element-plus/packages/components/table/index.ts
RealityBoy d8a116c37f fix(components): [table] optimizate types export (#10677)
* fix(components): [table] optimizate types export

* chore: update
2022-11-20 16:51:04 +08:00

30 lines
630 B
TypeScript

import { withInstall, withNoopInstall } from '@element-plus/utils'
import Table from './src/table.vue'
import TableColumn from './src/tableColumn'
export const ElTable = withInstall(Table, {
TableColumn,
})
export default ElTable
export const ElTableColumn = 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'