slw 0.5.990 → 0.5.991

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/lib/index.js CHANGED
@@ -37371,14 +37371,18 @@ const windowForm_vue_vue_type_style_index_0_lang = "", _hoisted_1$kV = { class:
37371
37371
  Z.itemRender.props.loading = !1;
37372
37372
  }
37373
37373
  });
37374
- else if (formConfig.value.openType === "new" && Z.visible && Z.editRender.options && Z.editRender.options.length > 0 && !Q[Z.field]) {
37375
- Q[Z.field] = Z.editRender.options[0].VALUE;
37376
- let K = {
37377
- data: Q,
37378
- item: Z,
37379
- property: Z.field
37380
- };
37381
- onFieldChange(K);
37374
+ else if (formConfig.value.openType === "new" && Z.visible && Z.editRender.options && Z.editRender.options.length > 0) {
37375
+ if (Q[Z.field] === "null")
37376
+ Q[Z.field] = "";
37377
+ else if (!Q[Z.field]) {
37378
+ Q[Z.field] = Z.editRender.options[0].VALUE;
37379
+ let K = {
37380
+ data: Q,
37381
+ item: Z,
37382
+ property: Z.field
37383
+ };
37384
+ onFieldChange(K);
37385
+ }
37382
37386
  }
37383
37387
  }
37384
37388
  }
@@ -122250,7 +122254,7 @@ function reConsole() {
122250
122254
  }
122251
122255
  }
122252
122256
  console.info(
122253
- "%cSLW %cVer 0.5.990",
122257
+ "%cSLW %cVer 0.5.991",
122254
122258
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122255
122259
  "color:#999;font-size: 12px"
122256
122260
  );