Files
element-plus/packages/components/table/index.ts
dopamine 7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00

35 lines
836 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> & unknown
export type TableColumnInstance = InstanceType<typeof TableColumn> & unknown
export type {
SummaryMethod,
Table,
TableProps,
TableRefs,
ColumnCls,
ColumnStyle,
CellCls,
CellStyle,
TreeNode,
RenderRowData,
Sort,
Filter,
TableColumnCtx,
TableTooltipData,
} from './src/table/defaults'