@juzhenfe/page-model 3.9.37 → 3.9.39

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.
@@ -226,6 +226,17 @@ declare global {
226
226
  method?: PageModel.AjaxMethod
227
227
  beforeSubmit?: CreateDePromiseResult<(this: CTX, data: MODEL) => AnyObject | false>;
228
228
  isDisabled?: (this: CTX, data: MODEL) => boolean;
229
+ /**
230
+ * 自定义更新请求
231
+ * @param this table
232
+ * @param data 请求的数据
233
+ * @returns 是否成功
234
+ */
235
+ customUpdate?: (this: CTX, data: MODEL) => Promise<boolean | void>;
236
+ /**
237
+ * 触发的弹窗名称
238
+ */
239
+ triggerPoperClassName?: string;
229
240
  };
230
241
  // 子元素
231
242
  children?: Omit<TableBaseItem<MODEL, CTX>, 'children'>[];
@@ -12,4 +12,5 @@ export default abstract class IManager extends Reflections {
12
12
  abstract getReqParams(...rest: any[]): AnyObject;
13
13
  staticData: AnyObject;
14
14
  updateStaticData(data: AnyObject): void;
15
+ destroy(): void;
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzhenfe/page-model",
3
- "version": "3.9.37",
3
+ "version": "3.9.39",
4
4
  "types": "dist/main.d.ts",
5
5
  "main": "dist/index.umd.js",
6
6
  "keywords": [