form-custom-test 3.0.31 → 3.0.32

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.
@@ -62055,13 +62055,13 @@ function registerIcon(app) {
62055
62055
  if (typeof window !== "undefined") {
62056
62056
  let loadSvg = function() {
62057
62057
  var body = document.body;
62058
- var svgDom = document.getElementById("__svg__icons__dom__1768382563829__");
62058
+ var svgDom = document.getElementById("__svg__icons__dom__1768385043882__");
62059
62059
  if (!svgDom) {
62060
62060
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
62061
62061
  svgDom.style.position = "absolute";
62062
62062
  svgDom.style.width = "0";
62063
62063
  svgDom.style.height = "0";
62064
- svgDom.id = "__svg__icons__dom__1768382563829__";
62064
+ svgDom.id = "__svg__icons__dom__1768385043882__";
62065
62065
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
62066
62066
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
62067
62067
  }
@@ -65594,8 +65594,16 @@ const _sfc_main$2 = {
65594
65594
  }
65595
65595
  }
65596
65596
  };
65597
+ const setValue = (value2) => {
65598
+ if (this.dialogVisible && this.dialogFormData) {
65599
+ this.dialogFormData[targetCol.prop] = value2;
65600
+ }
65601
+ };
65602
+ const getValue = () => {
65603
+ return this.dialogFormData[targetCol.prop];
65604
+ };
65597
65605
  const currentOptions = this.getColumnOptions(targetCol);
65598
- new Function("targetCol", "sourceCol", "sourceValue", "formData", "currentOptions", "setOptions", targetCol.onDependChange)(targetCol, sourceCol, sourceValue, this.dialogFormData, currentOptions, setOptions);
65606
+ new Function("targetCol", "sourceCol", "sourceValue", "formData", "currentOptions", "setOptions", "setValue", "getValue", targetCol.onDependChange)(targetCol, sourceCol, sourceValue, this.dialogFormData, currentOptions, setOptions, setValue, getValue);
65599
65607
  } catch (e) {
65600
65608
  console.error(`\u6267\u884C\u5217 "${targetCol.label || targetCol.prop}" \u7684\u8054\u52A8\u4E8B\u4EF6\u5931\u8D25:`, e);
65601
65609
  }
@@ -65888,7 +65896,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
65888
65896
  _: 1
65889
65897
  }, 8, ["widget"]);
65890
65898
  }
65891
- var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-05fd5c66"]]);
65899
+ var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-cae4c64c"]]);
65892
65900
  var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
65893
65901
  const _sfc_main$1 = {
65894
65902
  name: "sub-table-columns-editor",
@@ -66347,7 +66355,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
66347
66355
  icon: "el-icon-edit",
66348
66356
  plain: "",
66349
66357
  round: "",
66350
- onClick: ($event) => $options.editColumnEventHandler(col, "onDependChange", ["targetCol", "sourceCol", "sourceValue", "formData", "currentOptions", "setOptions"])
66358
+ onClick: ($event) => $options.editColumnEventHandler(col, "onDependChange", ["targetCol", "sourceCol", "sourceValue", "formData", "currentOptions", "setOptions", "setValue", "getValue"])
66351
66359
  }, {
66352
66360
  default: withCtx(() => [
66353
66361
  createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addEventHandler")), 1)
@@ -66372,20 +66380,30 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
66372
66380
  createElementVNode("br"),
66373
66381
  createTextVNode("- setOptions\uFF1A\u8BBE\u7F6E\u9009\u9879\u7684\u65B9\u6CD5 (newOptions, index) "),
66374
66382
  createElementVNode("br"),
66375
- createTextVNode("\u793A\u4F8B\uFF1A\u6839\u636E sourceValue \u52A8\u6001\u8BBE\u7F6E\u9009\u9879\uFF08\u53EA\u5F71\u54CD\u5F53\u524D\u7F16\u8F91\u884C\uFF09 "),
66383
+ createTextVNode("- setValue\uFF1A\u8BBE\u7F6E\u76EE\u6807\u5217\u7684\u503C (value) "),
66384
+ createElementVNode("br"),
66385
+ createTextVNode("- getValue\uFF1A\u83B7\u53D6\u76EE\u6807\u5217\u7684\u5F53\u524D\u503C () "),
66386
+ createElementVNode("br"),
66387
+ createTextVNode("\u793A\u4F8B\uFF1A\u6839\u636E sourceValue \u52A8\u6001\u8BBE\u7F6E\u9009\u9879\u548C\u503C\uFF08\u53EA\u5F71\u54CD\u5F53\u524D\u7F16\u8F91\u884C\uFF09 "),
66376
66388
  createElementVNode("br"),
66377
66389
  createTextVNode("if (sourceValue === '1') { "),
66378
66390
  createElementVNode("br"),
66379
66391
  createTextVNode("\xA0\xA0setOptions([{label: '\u9009\u9879A', value: 'a'}, {label: '\u9009\u9879B', value: 'b'}]); "),
66380
66392
  createElementVNode("br"),
66393
+ createTextVNode("\xA0\xA0setValue('a'); // \u81EA\u52A8\u9009\u62E9\u7B2C\u4E00\u4E2A\u9009\u9879 "),
66394
+ createElementVNode("br"),
66381
66395
  createTextVNode("} else { "),
66382
66396
  createElementVNode("br"),
66383
66397
  createTextVNode("\xA0\xA0setOptions([{label: '\u9009\u9879C', value: 'c'}, {label: '\u9009\u9879D', value: 'd'}]); "),
66384
66398
  createElementVNode("br"),
66399
+ createTextVNode("\xA0\xA0setValue('c'); // \u81EA\u52A8\u9009\u62E9\u7B2C\u4E00\u4E2A\u9009\u9879 "),
66400
+ createElementVNode("br"),
66385
66401
  createTextVNode("} "),
66386
66402
  createElementVNode("br"),
66387
66403
  createElementVNode("strong", null, "\u6CE8\u610F\uFF1A"),
66388
- createTextVNode("setOptions \u53EA\u4F1A\u66F4\u65B0\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8FD9\u4E00\u884C\u7684\u4E0B\u62C9\u9009\u9879\uFF0C\u4E0D\u4F1A\u5F71\u54CD\u5176\u4ED6\u884C\u3002 ")
66404
+ createTextVNode("setOptions \u53EA\u4F1A\u66F4\u65B0\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8FD9\u4E00\u884C\u7684\u4E0B\u62C9\u9009\u9879\uFF0C\u4E0D\u4F1A\u5F71\u54CD\u5176\u4ED6\u884C\u3002 "),
66405
+ createElementVNode("br"),
66406
+ createTextVNode("setValue \u53EF\u4EE5\u8BBE\u7F6E\u76EE\u6807\u5217\u7684\u503C\uFF0C\u5E38\u7528\u4E8E\u81EA\u52A8\u9009\u62E9\u9ED8\u8BA4\u9009\u9879\u3002 ")
66389
66407
  ], -1))
66390
66408
  ]),
66391
66409
  _: 2
@@ -66493,7 +66511,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
66493
66511
  }, 8, ["modelValue", "title"])
66494
66512
  ], 64);
66495
66513
  }
66496
- var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-b6036036"]]);
66514
+ var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-029c789c"]]);
66497
66515
  const _sfc_main = {
66498
66516
  name: "current-user-widget",
66499
66517
  componentName: "FieldWidget",