import { CommonProps } from '@wakeadmin/element-adapter'; import { Ref } from '@wakeadmin/demi'; import { DefineOurComponent } from '../utils'; import { FatTableMethods, FatTableProps, FatTableColumn, FatTableSlots, FatTableEvents } from './types'; export type FatTableDefineProps = Partial & { extra?: Extra; }>; export type FatTableDefine = (FatTableProps & CommonProps) | ((context: { table: Ref | undefined>; column: (column: FatTableColumn) => any; props: FatTableDefineProps; /** * 支持简单的 prop 类型安全验证 */ p: (key: keyof Item) => string; emit: (key: string, ...args: any[]) => void; }) => () => FatTableProps & CommonProps); /** * 定义列。可以获取到更好的类型检查 * @param column * @returns */ export declare function defineFatTableColumn(column: FatTableColumn): FatTableColumn; /** * 定义表格组件 * @template Item 行记录类型 * @template Query 查询参数类型 * @params definitions 可以指定定义 fat-table 参数,或者使用类似 setup 的语法 * @returns 返回一个 table 组件 * * @example * * ```html * * * * ``` * */ export declare function defineFatTable(definitions: FatTableDefine, options?: { name?: string; }): DefineOurComponent, FatTableSlots, FatTableEvents, FatTableMethods>; //# sourceMappingURL=define-table.d.ts.map