- 产物替换为 funjiaui.es.js / funjiaui.cjs.js / funjiaui.umd.js - style.css 更新,新增 index.d.ts 与各组件类型声明目录 - 移除旧产物 um_table.es.js(1.0.0 的 ES 包,历史与 v1.0.0 标签仍可回溯) - package.json 补齐 module / types / unpkg / jsdelivr / files 字段, 并将 vue、element-plus、@element-plus/icons-vue 声明为 peerDependencies - 新增 README 说明产物清单与用法
32 lines
1.4 KiB
TypeScript
32 lines
1.4 KiB
TypeScript
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";
|