import type { TableProps } from 'element-plus'; import type { CSSProperties, PropType } from 'vue'; export declare const componentSizes: readonly ["", "default", "small", "large"]; export type ComponentSize = typeof componentSizes[number]; export type DefaultRow = any; type Layout = 'fixed' | 'auto'; export interface Sort { prop: string; order: 'ascending' | 'descending'; init?: any; silent?: any; } export interface TreeNode { expanded?: boolean; loading?: boolean; noLazyChildren?: boolean; indent?: number; level?: number; display?: boolean; } export declare const tableProps: { /** * @description table data */ data: { type: PropType; default: () => never[]; }; /** * @description size of Table */ size: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; width: (StringConstructor | NumberConstructor)[]; /** * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles */ height: (StringConstructor | NumberConstructor)[]; /** * @description table's max-height. The legal value is a number or the height in px */ maxHeight: (StringConstructor | NumberConstructor)[]; /** * @description whether width of column automatically fits its container */ fit: { type: BooleanConstructor; default: boolean; }; /** * @description whether Table is striped */ stripe: BooleanConstructor; /** * @description whether Table has vertical border */ border: BooleanConstructor; /** * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used */ rowKey: PropType["rowKey"]>; /** * @description whether Table header is visible */ showHeader: { type: BooleanConstructor; default: boolean; }; /** * @description whether to display a summary row */ showSummary: BooleanConstructor; /** * @description displayed text for the first column of summary row */ sumText: StringConstructor; /** * @description custom summary method */ summaryMethod: PropType["summaryMethod"]>; /** * @description function that returns custom class names for a row, or a string assigning class names for every row */ rowClassName: PropType["rowClassName"]>; /** * @description function that returns custom style for a row, or an object assigning custom style for every row */ rowStyle: PropType["rowStyle"]>; /** * @description function that returns custom class names for a cell, or a string assigning class names for every cell */ cellClassName: PropType["cellClassName"]>; /** * @description function that returns custom style for a cell, or an object assigning custom style for every cell */ cellStyle: PropType["cellStyle"]>; /** * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header */ headerRowClassName: PropType["headerRowClassName"]>; /** * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header */ headerRowStyle: PropType["headerRowStyle"]>; /** * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header */ headerCellClassName: PropType["headerCellClassName"]>; /** * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header */ headerCellStyle: PropType["headerCellStyle"]>; /** * @description whether current row is highlighted */ highlightCurrentRow: BooleanConstructor; /** * @description key of current row, a set only prop */ currentRowKey: (StringConstructor | NumberConstructor)[]; /** * @description displayed text when data is empty. You can customize this area with `#empty` */ emptyText: StringConstructor; /** * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop */ expandRowKeys: PropType["expandRowKeys"]>; /** * @description whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data */ defaultExpandAll: BooleanConstructor; /** * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order */ defaultSort: PropType["defaultSort"]>; /** * @description the `effect` of the overflow tooltip */ tooltipEffect: StringConstructor; /** * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes) */ tooltipOptions: PropType["tooltipOptions"]>; /** * @description method that returns rowspan and colspan */ spanMethod: PropType["spanMethod"]>; /** * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected */ selectOnIndeterminate: { type: BooleanConstructor; default: boolean; }; /** * @description horizontal indentation of tree data */ indent: { type: NumberConstructor; default: number; }; /** * @description configuration for rendering nested data */ treeProps: { type: PropType; default: () => { hasChildren: string; children: string; checkStrictly: boolean; }; }; /** * @description whether to lazy loading data */ lazy: BooleanConstructor; /** * @description method for loading child row data, only works when `lazy` is true */ load: PropType["load"]>; style: { type: PropType; default: () => {}; }; className: { type: StringConstructor; default: string; }; /** * @description sets the algorithm used to lay out table cells, rows, and columns */ tableLayout: { type: PropType; default: string; }; /** * @description always show scrollbar */ scrollbarAlwaysOn: BooleanConstructor; /** * @description ensure main axis minimum-size doesn't follow the content */ flexible: BooleanConstructor; /** * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns */ showOverflowTooltip: PropType["showOverflowTooltip"]>; appendFilterPanelTo: StringConstructor; scrollbarTabindex: { type: (StringConstructor | NumberConstructor)[]; default: undefined; }; }; export declare const createElTableBindProps: | Extract<"size", keyof T2> | Extract<"load", keyof T2> | Extract<"style", keyof T2> | Extract<"height", keyof T2> | Extract<"maxHeight", keyof T2> | Extract<"border", keyof T2> | Extract<"width", keyof T2> | Extract<"fit", keyof T2> | Extract<"className", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"rowKey", keyof T2> | Extract<"summaryMethod", keyof T2> | Extract<"rowClassName", keyof T2> | Extract<"rowStyle", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"cellStyle", keyof T2> | Extract<"headerRowClassName", keyof T2> | Extract<"headerRowStyle", keyof T2> | Extract<"headerCellClassName", keyof T2> | Extract<"headerCellStyle", keyof T2> | Extract<"expandRowKeys", keyof T2> | Extract<"defaultSort", keyof T2> | Extract<"tooltipOptions", keyof T2> | Extract<"spanMethod", keyof T2> | Extract<"stripe", keyof T2> | Extract<"showHeader", keyof T2> | Extract<"showSummary", keyof T2> | Extract<"sumText", keyof T2> | Extract<"highlightCurrentRow", keyof T2> | Extract<"currentRowKey", keyof T2> | Extract<"emptyText", keyof T2> | Extract<"defaultExpandAll", keyof T2> | Extract<"tooltipEffect", keyof T2> | Extract<"selectOnIndeterminate", keyof T2> | Extract<"indent", keyof T2> | Extract<"treeProps", keyof T2> | Extract<"lazy", keyof T2> | Extract<"tableLayout", keyof T2> | Extract<"scrollbarAlwaysOn", keyof T2> | Extract<"flexible", keyof T2> | Extract<"appendFilterPanelTo", keyof T2> | Extract<"scrollbarTabindex", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> | Exclude, KE> : Extract<"data", keyof T2> | Extract<"size", keyof T2> | Extract<"load", keyof T2> | Extract<"style", keyof T2> | Extract<"height", keyof T2> | Extract<"maxHeight", keyof T2> | Extract<"border", keyof T2> | Extract<"width", keyof T2> | Extract<"fit", keyof T2> | Extract<"className", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"rowKey", keyof T2> | Extract<"summaryMethod", keyof T2> | Extract<"rowClassName", keyof T2> | Extract<"rowStyle", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"cellStyle", keyof T2> | Extract<"headerRowClassName", keyof T2> | Extract<"headerRowStyle", keyof T2> | Extract<"headerCellClassName", keyof T2> | Extract<"headerCellStyle", keyof T2> | Extract<"expandRowKeys", keyof T2> | Extract<"defaultSort", keyof T2> | Extract<"tooltipOptions", keyof T2> | Extract<"spanMethod", keyof T2> | Extract<"stripe", keyof T2> | Extract<"showHeader", keyof T2> | Extract<"showSummary", keyof T2> | Extract<"sumText", keyof T2> | Extract<"highlightCurrentRow", keyof T2> | Extract<"currentRowKey", keyof T2> | Extract<"emptyText", keyof T2> | Extract<"defaultExpandAll", keyof T2> | Extract<"tooltipEffect", keyof T2> | Extract<"selectOnIndeterminate", keyof T2> | Extract<"indent", keyof T2> | Extract<"treeProps", keyof T2> | Extract<"lazy", keyof T2> | Extract<"tableLayout", keyof T2> | Extract<"scrollbarAlwaysOn", keyof T2> | Extract<"flexible", keyof T2> | Extract<"appendFilterPanelTo", keyof T2> | Extract<"scrollbarTabindex", keyof T2>]: { [k in Extract<"data", keyof T2> | Extract<"size", keyof T2> | Extract<"load", keyof T2> | Extract<"style", keyof T2> | Extract<"height", keyof T2> | Extract<"maxHeight", keyof T2> | Extract<"border", keyof T2> | Extract<"width", keyof T2> | Extract<"fit", keyof T2> | Extract<"className", keyof T2> | Extract<"showOverflowTooltip", keyof T2> | Extract<"rowKey", keyof T2> | Extract<"summaryMethod", keyof T2> | Extract<"rowClassName", keyof T2> | Extract<"rowStyle", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"cellStyle", keyof T2> | Extract<"headerRowClassName", keyof T2> | Extract<"headerRowStyle", keyof T2> | Extract<"headerCellClassName", keyof T2> | Extract<"headerCellStyle", keyof T2> | Extract<"expandRowKeys", keyof T2> | Extract<"defaultSort", keyof T2> | Extract<"tooltipOptions", keyof T2> | Extract<"spanMethod", keyof T2> | Extract<"stripe", keyof T2> | Extract<"showHeader", keyof T2> | Extract<"showSummary", keyof T2> | Extract<"sumText", keyof T2> | Extract<"highlightCurrentRow", keyof T2> | Extract<"currentRowKey", keyof T2> | Extract<"emptyText", keyof T2> | Extract<"defaultExpandAll", keyof T2> | Extract<"tooltipEffect", keyof T2> | Extract<"selectOnIndeterminate", keyof T2> | Extract<"indent", keyof T2> | Extract<"treeProps", keyof T2> | Extract<"lazy", keyof T2> | Extract<"tableLayout", keyof T2> | Extract<"scrollbarAlwaysOn", keyof T2> | Extract<"flexible", keyof T2> | Extract<"appendFilterPanelTo", keyof T2> | Extract<"scrollbarTabindex", keyof T2>]: T2[k]; }[P]; }>; export declare const tableEmits: { select: null; 'select-all': null; 'selection-change': null; 'cell-mouse-enter': null; 'cell-mouse-leave': null; 'cell-contextmenu': null; 'cell-click': null; 'cell-dblclick': null; 'row-click': null; 'row-contextmenu': null; 'row-dblclick': null; 'header-click': null; 'header-contextmenu': null; 'sort-change': null; 'filter-change': null; 'current-change': null; 'header-dragend': null; 'expand-change': null; scroll: null; }; export declare const createElTableOnEmits: (emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"scroll", KE> | Exclude<"select", KE> | Exclude<"select-all", KE> | Exclude<"selection-change", KE> | Exclude<"cell-mouse-enter", KE> | Exclude<"cell-mouse-leave", KE> | Exclude<"cell-contextmenu", KE> | Exclude<"cell-click", KE> | Exclude<"cell-dblclick", KE> | Exclude<"row-click", KE> | Exclude<"row-contextmenu", KE> | Exclude<"row-dblclick", KE> | Exclude<"header-click", KE> | Exclude<"header-contextmenu", KE> | Exclude<"sort-change", KE> | Exclude<"filter-change", KE> | Exclude<"current-change", KE> | Exclude<"header-dragend", KE> | Exclude<"expand-change", KE> : "scroll" | "select" | "select-all" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "cell-click" | "cell-dblclick" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "current-change" | "header-dragend" | "expand-change"]: { select: (...e: import("@vunk/core").RestParameters) => void; 'select-all': (...e: import("@vunk/core").RestParameters) => void; 'selection-change': (...e: import("@vunk/core").RestParameters) => void; 'cell-mouse-enter': (...e: import("@vunk/core").RestParameters) => void; 'cell-mouse-leave': (...e: import("@vunk/core").RestParameters) => void; 'cell-contextmenu': (...e: import("@vunk/core").RestParameters) => void; 'cell-click': (...e: import("@vunk/core").RestParameters) => void; 'cell-dblclick': (...e: import("@vunk/core").RestParameters) => void; 'row-click': (...e: import("@vunk/core").RestParameters) => void; 'row-contextmenu': (...e: import("@vunk/core").RestParameters) => void; 'row-dblclick': (...e: import("@vunk/core").RestParameters) => void; 'header-click': (...e: import("@vunk/core").RestParameters) => void; 'header-contextmenu': (...e: import("@vunk/core").RestParameters) => void; 'sort-change': (...e: import("@vunk/core").RestParameters) => void; 'filter-change': (...e: import("@vunk/core").RestParameters) => void; 'current-change': (...e: import("@vunk/core").RestParameters) => void; 'header-dragend': (...e: import("@vunk/core").RestParameters) => void; 'expand-change': (...e: import("@vunk/core").RestParameters) => void; scroll: (...e: import("@vunk/core").RestParameters) => void; }[P]; }; export {};