mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-05 11:21:11 +08:00
* build: use vue-tsc to generate dts * reduce inline type declaration * fix: type checking failed * apply suggestions from code review * address PR comments
34 lines
796 B
TypeScript
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'
|