mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* feat(components): [table] add `tooltip-formatter` table-column prop closed #19507 * docs: add example * docs: demo remove tooltip formatter index * refactor(components): refactor code * docs: simpify tooltip demo * fix: fix warning error * feat(components): add table tooltip-formatter prop & merge slot * refactor: reuse variables * test: add tooltip-formatter test * docs: upgrade version * feat(components): [table] add `tooltip-formatter` table-column prop closed #19507 * docs: add example * docs: demo remove tooltip formatter index * refactor(components): refactor code * docs: simpify tooltip demo * fix: fix warning error * feat(components): add table tooltip-formatter prop & merge slot * refactor: reuse variables * test: add tooltip-formatter test * docs: upgrade version * refactor: change parameter to obj args * fix: property change to prop * fix: export `TableOverflowTooltipFormatterData` * refactor: `TableOverflowTooltipFormatterData` to `TableTooltipData` * fix: remove useless import * fix: refactor code --------- Co-authored-by: btea <2356281422@qq.com>
35 lines
816 B
TypeScript
35 lines
816 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,
|
|
TableTooltipData,
|
|
} from './src/table/defaults'
|