@dazhicheng/ui 1.5.38 → 1.5.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,9 +10,9 @@ export type TtModalFormProps = {
10
10
  /** 详情接口 */
11
11
  infoApi?: (...arg: any[]) => Promise<any>;
12
12
  /** 详情接口前置钩子 */
13
- infoApiBefore?: (val: Recordable) => Recordable;
13
+ infoApiBefore?: (val: Recordable) => Promise<Recordable> | Recordable;
14
14
  /** 保存接口前置钩子 */
15
- saveApiBefore?: (val: Recordable) => Promise<Recordable>;
15
+ saveApiBefore?: (val: Recordable) => Promise<Recordable> | Recordable;
16
16
  /** 表单静态数据回显的key */
17
17
  infoDataKey?: string;
18
18
  /** 详情接口的唯一key */