12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import type { GetRowKey, ColumnsType, TableComponents, Key, GetComponentProps, PanelRender, TableLayout, RowClassName, ColumnType, TableSticky, ExpandedRowRender, RenderExpandIcon, TransformCellText, DefaultRecordType } from './interface';
- export declare const INTERNAL_HOOKS = "rc-table-internal-hook";
- export interface TableProps<RecordType = DefaultRecordType> {
- prefixCls?: string;
- data?: RecordType[];
- columns?: ColumnsType<RecordType>;
- rowKey?: string | GetRowKey<RecordType>;
- tableLayout?: TableLayout;
- scroll?: {
- x?: number | true | string;
- y?: number | string;
- };
- rowClassName?: string | RowClassName<RecordType>;
- title?: PanelRender<RecordType>;
- footer?: PanelRender<RecordType>;
- id?: string;
- showHeader?: boolean;
- components?: TableComponents<RecordType>;
- customRow?: GetComponentProps<RecordType>;
- customHeaderRow?: GetComponentProps<ColumnType<RecordType>[]>;
- direction?: 'ltr' | 'rtl';
- expandFixed?: 'left' | 'right' | boolean;
- expandColumnWidth?: number;
- expandedRowKeys?: Key[];
- defaultExpandedRowKeys?: Key[];
- expandedRowRender?: ExpandedRowRender<RecordType>;
- expandRowByClick?: boolean;
- expandIcon?: RenderExpandIcon<RecordType>;
- onExpand?: (expanded: boolean, record: RecordType) => void;
- onExpandedRowsChange?: (expandedKeys: Key[]) => void;
- defaultExpandAllRows?: boolean;
- indentSize?: number;
- expandIconColumnIndex?: number;
- showExpandColumn?: boolean;
- expandedRowClassName?: RowClassName<RecordType>;
- childrenColumnName?: string;
- rowExpandable?: (record: RecordType) => boolean;
- /**
- * @private Internal usage, may remove by refactor. Should always use `columns` instead.
- *
- * !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!
- */
- internalHooks?: string;
- /**
- * @private Internal usage, may remove by refactor. Should always use `columns` instead.
- *
- * !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!
- */
- transformColumns?: (columns: ColumnsType<RecordType>) => ColumnsType<RecordType>;
- /**
- * @private Internal usage, may remove by refactor.
- *
- * !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!
- */
- internalRefs?: {
- body: HTMLDivElement;
- };
- sticky?: boolean | TableSticky;
- canExpandable?: boolean;
- onUpdateInternalRefs?: (refs: Record<string, any>) => void;
- transformCellText?: TransformCellText<RecordType>;
- }
- declare const _default: import("vue").DefineComponent<TableProps<any>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<TableProps<any>>, {}>;
- export default _default;
|