mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* feat(components): [config-provider] add table config * fix: update * Update packages/components/table/src/table-column/watcher-helper.ts Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> * fix: update * docs: update * docs: update --------- Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
37 lines
859 B
TypeScript
37 lines
859 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,
|
|
TableConfigContext,
|
|
} from './src/table/defaults'
|