zzz-pc-view 0.0.152 → 0.0.154

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zzz-pc-view",
3
- "version": "0.0.152",
3
+ "version": "0.0.154",
4
4
  "main": "src/index.umd.js",
5
5
  "module": "src/index.es.js",
6
6
  "types": "src/index.d.ts",
@@ -32,9 +32,8 @@ export interface TableColumnParam extends BaseParam {
32
32
  * 表单项参数接口,继承自基础参数接口,用于定义表单项的特定参数。
33
33
  */
34
34
  export interface FormItemParam<T extends object = object> extends BaseParam {
35
- setDefaultValue?: (param: {
35
+ setDefaultValue?: (this: T, param: {
36
36
  createType: CreateTypeEnum;
37
- model: T;
38
37
  data?: T;
39
38
  query?: T;
40
39
  options?: unknown[];
package/src/index.es.js CHANGED
@@ -6218,11 +6218,11 @@ class CurdHandler extends FilterHandler {
6218
6218
  saveEditorData(callback) {
6219
6219
  this.validEditorData().then(async () => {
6220
6220
  const editorData = this.editorData;
6221
- await this.saveEditorDataRequestUtil.requestData(
6221
+ const responseData = await this.saveEditorDataRequestUtil.requestData(
6222
6222
  this.api.save(editorData, this.editType.id)
6223
6223
  );
6224
6224
  this.loadList();
6225
- this.onSaveEditorDataSuccess(editorData);
6225
+ this.onSaveEditorDataSuccess(responseData ?? editorData);
6226
6226
  callback == null ? void 0 : callback(editorData);
6227
6227
  }).catch(() => {
6228
6228
  });
@@ -6235,9 +6235,8 @@ class CurdHandler extends FilterHandler {
6235
6235
  var _a2, _b2;
6236
6236
  if (typeof setDefaultValue === "function") {
6237
6237
  const mapping = (_a2 = filterConfigMap[propertyKey]) == null ? void 0 : _a2.mapping;
6238
- setDefaultValue({
6238
+ setDefaultValue.call(editorData, {
6239
6239
  createType,
6240
- model: editorData,
6241
6240
  data,
6242
6241
  query: this.searchQueryRef.value,
6243
6242
  // options?: unknown[]