import type { IFieldMetaValue, IMethodMetaValue, TDecoratorKey } from "./types"; /** * UmTable 装饰器集合。 * * 与改造前的差异: * 1. 类型改为从 `./types` 导入(原来从 `./UmTable` 导入,指向一个不存在的模块); * 2. 装饰器改为"柯里化后先冻结默认值再返回"的写法,避免同一个 meta 对象被多次 * 装饰器调用共享时被反复改写(原实现对入参做 `value.width = 100` 的原地修改); * 3. `TableColumnMethodDecorator` 只在未显式传入时补默认值,语义不变。 */ /** * 数据列属性装饰器 */ export declare const TableColumnPropertyDecorator: (value: IFieldMetaValue) => (target: any, propertyKey: string) => void; /** * 属性装饰器(增删改查表单) */ export declare const TableFormColumnPropertyDecorator: (value: IFieldMetaValue) => (target: any, propertyKey: string) => void; /** * 属性装饰器(查询表单) */ export declare const TableSearchFormPropertyDecorator: (value: IFieldMetaValue) => (target: any, propertyKey: string) => void; /** * 方法装饰器(操作列 / 工具栏 / 查询方法) */ export declare const TableColumnMethodDecorator: ({ key, value, }: { key?: TDecoratorKey | undefined; value: IMethodMetaValue; }) => (target: any, propertyKey: string) => void; export * from "./types"; export * from "./core";