Ver código fonte

feat(types): 修改setdata类型

zhangweicheng 4 anos atrás
pai
commit
c645158a79
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      types/src/interface/base.ts

+ 1 - 1
types/src/interface/base.ts

@@ -193,7 +193,7 @@ export interface ISetData<T = any, F = any, R = any> {
   prop?: string; // 用来指表中的数组属性名,针对如configMaterial里,一个collections 里有多个数组数据的情况
   prop?: string; // 用来指表中的数组属性名,针对如configMaterial里,一个collections 里有多个数组数据的情况
   actionName?: ActionName; // 除了增删改查,还会有更复杂的操作,用这个来区分
   actionName?: ActionName; // 除了增删改查,还会有更复杂的操作,用这个来区分
   filter?: F; // 查询条件
   filter?: F; // 查询条件
-  update?: T; // 和update类型对应,
+  update?: Partial<T>; // 和update类型对应,
   documents?: T[]; // add 类型对应,批量插入
   documents?: T[]; // add 类型对应,批量插入
   odocs?: any[]; // 存放撤销的原始数据?
   odocs?: any[]; // 存放撤销的原始数据?
   result?: R; // 特殊的返回结果
   result?: R; // 特殊的返回结果