import { CellContext, ColumnDef, Table, ColumnSort, Row } from '@tanstack/vue-table'; import { VNode } from 'vue'; export type ColumnDict = { id?: string; /** 标题 */ title?: string; /** 标题 */ header?: string | ((opts: { table: Table; }) => VNode | string); key?: string; accessorKey?: string; cell?: (row: T, index: number, info: CellContext) => VNode | VNode[] | string; /** 列宽 */ size?: number; fixed?: 'left' | 'right'; /** 设置列为可选择 */ type?: 'selection'; /** 排序 */ sorter?: boolean | ((rowA: T, rowB: T) => number); columns?: ColumnDict[]; }; export type ColumnOption = ColumnDict & ColumnDef; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal<{ stripe?: boolean; border?: boolean; tableLayout?: "auto" | "fixed"; columns: Array>; data: Array; fixedHead?: boolean; multiSelection?: boolean; /** 默认排序 */ defaultSorter?: ColumnSort; /** 配置展开属性 */ expandable?: { /** 设置是否允许行展开 */ rowExpandable: (row: T) => boolean; /** 展开行渲染内容 */ expandedRowRender: (row: T) => VNode | VNode[]; }; getRowId?: (originalRow: T, index: number, parent?: Row) => string; }> & import('vue').PublicProps; expose: (exposed: {}) => void; attrs: any; slots: {}; emit: {}; }>) => import('vue').VNode & { __ctx?: Awaited; }; declare const _default: typeof __VLS_export; export default _default; type __VLS_PrettifyLocal = { [K in keyof T as K]: T[K]; } & {};