form-custom-test 3.0.30 → 3.0.31

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.
@@ -3909,14 +3909,14 @@ const _sfc_main$3s = {
3909
3909
  }
3910
3910
  };
3911
3911
  const _hoisted_1$R = ["xlink:href"];
3912
- const _hoisted_2$A = { key: 0 };
3912
+ const _hoisted_2$B = { key: 0 };
3913
3913
  function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
3914
3914
  return openBlock(), createElementBlock("svg", {
3915
3915
  class: normalizeClass($options.svgClass),
3916
3916
  "aria-hidden": "true"
3917
3917
  }, [
3918
3918
  createElementVNode("use", { "xlink:href": $options.iconName }, null, 8, _hoisted_1$R),
3919
- !!$props.title ? (openBlock(), createElementBlock("title", _hoisted_2$A, toDisplayString($props.title), 1)) : createCommentVNode("", true)
3919
+ !!$props.title ? (openBlock(), createElementBlock("title", _hoisted_2$B, toDisplayString($props.title), 1)) : createCommentVNode("", true)
3920
3920
  ], 2);
3921
3921
  }
3922
3922
  var SvgIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$3s, [["render", _sfc_render$3s], ["__scopeId", "data-v-8002b89a"]]);
@@ -4050,8 +4050,8 @@ const _sfc_main$3r = {
4050
4050
  }
4051
4051
  };
4052
4052
  const _hoisted_1$Q = { class: "panel-container" };
4053
- const _hoisted_2$z = ["title", "onDblclick"];
4054
- const _hoisted_3$v = ["title", "onDblclick"];
4053
+ const _hoisted_2$A = ["title", "onDblclick"];
4054
+ const _hoisted_3$w = ["title", "onDblclick"];
4055
4055
  const _hoisted_4$l = ["title", "onDblclick"];
4056
4056
  const _hoisted_5$h = ["title", "onDblclick"];
4057
4057
  const _hoisted_6$g = ["src"];
@@ -4121,7 +4121,7 @@ function _sfc_render$3r(_ctx, _cache, $props, $setup, $data, $options) {
4121
4121
  }, null, 8, ["icon-class"]),
4122
4122
  createTextVNode(toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${ctn.type}`, `extension.widgetLabel.${ctn.type}`)), 1)
4123
4123
  ])
4124
- ], 40, _hoisted_2$z)
4124
+ ], 40, _hoisted_2$A)
4125
4125
  ]),
4126
4126
  _: 1
4127
4127
  }, 8, ["list", "clone", "move", "onEnd"])
@@ -4156,7 +4156,7 @@ function _sfc_render$3r(_ctx, _cache, $props, $setup, $data, $options) {
4156
4156
  }, null, 8, ["icon-class"]),
4157
4157
  createTextVNode(toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${fld.type}`, `extension.widgetLabel.${fld.type}`)), 1)
4158
4158
  ])
4159
- ], 40, _hoisted_3$v)
4159
+ ], 40, _hoisted_3$w)
4160
4160
  ]),
4161
4161
  _: 1
4162
4162
  }, 8, ["list", "move", "clone"])
@@ -4520,8 +4520,8 @@ const _hoisted_1$P = {
4520
4520
  key: 0,
4521
4521
  class: "field-action"
4522
4522
  };
4523
- const _hoisted_2$y = ["title"];
4524
- const _hoisted_3$u = ["title"];
4523
+ const _hoisted_2$z = ["title"];
4524
+ const _hoisted_3$v = ["title"];
4525
4525
  const _hoisted_4$k = ["title"];
4526
4526
  const _hoisted_5$g = ["title"];
4527
4527
  const _hoisted_6$f = {
@@ -4551,14 +4551,14 @@ function _sfc_render$3p(_ctx, _cache, $props, $setup, $data, $options) {
4551
4551
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
4552
4552
  }, [
4553
4553
  createVNode(_component_svg_icon, { "icon-class": "el-back" })
4554
- ], 8, _hoisted_2$y),
4554
+ ], 8, _hoisted_2$z),
4555
4555
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
4556
4556
  key: 0,
4557
4557
  title: _ctx.i18nt("designer.hint.moveUpWidget"),
4558
4558
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
4559
4559
  }, [
4560
4560
  createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
4561
- ], 8, _hoisted_3$u)) : createCommentVNode("", true),
4561
+ ], 8, _hoisted_3$v)) : createCommentVNode("", true),
4562
4562
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
4563
4563
  key: 1,
4564
4564
  title: _ctx.i18nt("designer.hint.moveDownWidget"),
@@ -5390,11 +5390,11 @@ const _hoisted_1$O = {
5390
5390
  key: 0,
5391
5391
  class: "custom-label"
5392
5392
  };
5393
- const _hoisted_2$x = {
5393
+ const _hoisted_2$y = {
5394
5394
  key: 0,
5395
5395
  class: "field-action"
5396
5396
  };
5397
- const _hoisted_3$t = ["title"];
5397
+ const _hoisted_3$u = ["title"];
5398
5398
  const _hoisted_4$j = ["title"];
5399
5399
  const _hoisted_5$f = ["title"];
5400
5400
  const _hoisted_6$e = ["title"];
@@ -5477,13 +5477,13 @@ function _sfc_render$3n(_ctx, _cache, $props, $setup, $data, $options) {
5477
5477
  _: 3
5478
5478
  }, 8, ["label", "label-width", "title", "rules", "prop", "class"])) : createCommentVNode("", true),
5479
5479
  !!this.designer ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5480
- $props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_2$x, [
5480
+ $props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
5481
5481
  createElementVNode("i", {
5482
5482
  title: _ctx.i18nt("designer.hint.selectParentWidget"),
5483
5483
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
5484
5484
  }, [
5485
5485
  createVNode(_component_svg_icon, { "icon-class": "el-back" })
5486
- ], 8, _hoisted_3$t),
5486
+ ], 8, _hoisted_3$u),
5487
5487
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
5488
5488
  key: 0,
5489
5489
  title: _ctx.i18nt("designer.hint.moveUpWidget"),
@@ -6137,15 +6137,15 @@ const _hoisted_1$M = {
6137
6137
  viewBox: "0 0 1024 1024",
6138
6138
  xmlns: "http://www.w3.org/2000/svg"
6139
6139
  };
6140
- const _hoisted_2$w = /* @__PURE__ */ createElementVNode("path", {
6140
+ const _hoisted_2$x = /* @__PURE__ */ createElementVNode("path", {
6141
6141
  fill: "currentColor",
6142
6142
  d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
6143
6143
  }, null, -1);
6144
- const _hoisted_3$s = [
6145
- _hoisted_2$w
6144
+ const _hoisted_3$t = [
6145
+ _hoisted_2$x
6146
6146
  ];
6147
6147
  function _sfc_render$3g(_ctx, _cache, $props, $setup, $data, $options) {
6148
- return openBlock(), createElementBlock("svg", _hoisted_1$M, _hoisted_3$s);
6148
+ return openBlock(), createElementBlock("svg", _hoisted_1$M, _hoisted_3$t);
6149
6149
  }
6150
6150
  var arrowDownBold = /* @__PURE__ */ _export_sfc(_sfc_main$3g, [["render", _sfc_render$3g]]);
6151
6151
  const _sfc_main$3f = defineComponent({
@@ -6158,15 +6158,15 @@ const _hoisted_1$L = {
6158
6158
  viewBox: "0 0 1024 1024",
6159
6159
  xmlns: "http://www.w3.org/2000/svg"
6160
6160
  };
6161
- const _hoisted_2$v = /* @__PURE__ */ createElementVNode("path", {
6161
+ const _hoisted_2$w = /* @__PURE__ */ createElementVNode("path", {
6162
6162
  fill: "currentColor",
6163
6163
  d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
6164
6164
  }, null, -1);
6165
- const _hoisted_3$r = [
6166
- _hoisted_2$v
6165
+ const _hoisted_3$s = [
6166
+ _hoisted_2$w
6167
6167
  ];
6168
6168
  function _sfc_render$3f(_ctx, _cache, $props, $setup, $data, $options) {
6169
- return openBlock(), createElementBlock("svg", _hoisted_1$L, _hoisted_3$r);
6169
+ return openBlock(), createElementBlock("svg", _hoisted_1$L, _hoisted_3$s);
6170
6170
  }
6171
6171
  var arrowDown = /* @__PURE__ */ _export_sfc(_sfc_main$3f, [["render", _sfc_render$3f]]);
6172
6172
  const _sfc_main$3e = defineComponent({
@@ -6179,15 +6179,15 @@ const _hoisted_1$K = {
6179
6179
  viewBox: "0 0 1024 1024",
6180
6180
  xmlns: "http://www.w3.org/2000/svg"
6181
6181
  };
6182
- const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
6182
+ const _hoisted_2$v = /* @__PURE__ */ createElementVNode("path", {
6183
6183
  fill: "currentColor",
6184
6184
  d: "M488.832 344.32l-339.84 356.672a32 32 0 000 44.16l.384.384a29.44 29.44 0 0042.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0042.688 0l.384-.384a32 32 0 000-44.16L535.168 344.32a32 32 0 00-46.336 0z"
6185
6185
  }, null, -1);
6186
- const _hoisted_3$q = [
6187
- _hoisted_2$u
6186
+ const _hoisted_3$r = [
6187
+ _hoisted_2$v
6188
6188
  ];
6189
6189
  function _sfc_render$3e(_ctx, _cache, $props, $setup, $data, $options) {
6190
- return openBlock(), createElementBlock("svg", _hoisted_1$K, _hoisted_3$q);
6190
+ return openBlock(), createElementBlock("svg", _hoisted_1$K, _hoisted_3$r);
6191
6191
  }
6192
6192
  var arrowUp = /* @__PURE__ */ _export_sfc(_sfc_main$3e, [["render", _sfc_render$3e]]);
6193
6193
  const _sfc_main$3d = defineComponent({
@@ -6200,11 +6200,11 @@ const _hoisted_1$J = {
6200
6200
  viewBox: "0 0 1024 1024",
6201
6201
  xmlns: "http://www.w3.org/2000/svg"
6202
6202
  };
6203
- const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
6203
+ const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
6204
6204
  fill: "currentColor",
6205
6205
  d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
6206
6206
  }, null, -1);
6207
- const _hoisted_3$p = /* @__PURE__ */ createElementVNode("path", {
6207
+ const _hoisted_3$q = /* @__PURE__ */ createElementVNode("path", {
6208
6208
  fill: "currentColor",
6209
6209
  d: "M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"
6210
6210
  }, null, -1);
@@ -6213,8 +6213,8 @@ const _hoisted_4$i = /* @__PURE__ */ createElementVNode("path", {
6213
6213
  d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
6214
6214
  }, null, -1);
6215
6215
  const _hoisted_5$e = [
6216
- _hoisted_2$t,
6217
- _hoisted_3$p,
6216
+ _hoisted_2$u,
6217
+ _hoisted_3$q,
6218
6218
  _hoisted_4$i
6219
6219
  ];
6220
6220
  function _sfc_render$3d(_ctx, _cache, $props, $setup, $data, $options) {
@@ -6231,15 +6231,15 @@ const _hoisted_1$I = {
6231
6231
  viewBox: "0 0 1024 1024",
6232
6232
  xmlns: "http://www.w3.org/2000/svg"
6233
6233
  };
6234
- const _hoisted_2$s = /* @__PURE__ */ createElementVNode("path", {
6234
+ const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
6235
6235
  fill: "currentColor",
6236
6236
  d: "M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"
6237
6237
  }, null, -1);
6238
- const _hoisted_3$o = [
6239
- _hoisted_2$s
6238
+ const _hoisted_3$p = [
6239
+ _hoisted_2$t
6240
6240
  ];
6241
6241
  function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
6242
- return openBlock(), createElementBlock("svg", _hoisted_1$I, _hoisted_3$o);
6242
+ return openBlock(), createElementBlock("svg", _hoisted_1$I, _hoisted_3$p);
6243
6243
  }
6244
6244
  var _delete = /* @__PURE__ */ _export_sfc(_sfc_main$3c, [["render", _sfc_render$3c]]);
6245
6245
  const _sfc_main$3b = defineComponent({
@@ -6252,17 +6252,17 @@ const _hoisted_1$H = {
6252
6252
  viewBox: "0 0 1024 1024",
6253
6253
  xmlns: "http://www.w3.org/2000/svg"
6254
6254
  };
6255
- const _hoisted_2$r = /* @__PURE__ */ createElementVNode("path", {
6255
+ const _hoisted_2$s = /* @__PURE__ */ createElementVNode("path", {
6256
6256
  fill: "currentColor",
6257
6257
  d: "M832 512a32 32 0 1164 0v352a32 32 0 01-32 32H160a32 32 0 01-32-32V160a32 32 0 0132-32h352a32 32 0 010 64H192v640h640V512z"
6258
6258
  }, null, -1);
6259
- const _hoisted_3$n = /* @__PURE__ */ createElementVNode("path", {
6259
+ const _hoisted_3$o = /* @__PURE__ */ createElementVNode("path", {
6260
6260
  fill: "currentColor",
6261
6261
  d: "M469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 10-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 010 135.808l-331.84 331.84a32 32 0 01-18.112 9.088L436.8 623.68a32 32 0 01-36.224-36.224l15.104-105.6a32 32 0 019.024-18.112l331.904-331.84a96 96 0 01135.744 0z"
6262
6262
  }, null, -1);
6263
6263
  const _hoisted_4$h = [
6264
- _hoisted_2$r,
6265
- _hoisted_3$n
6264
+ _hoisted_2$s,
6265
+ _hoisted_3$o
6266
6266
  ];
6267
6267
  function _sfc_render$3b(_ctx, _cache, $props, $setup, $data, $options) {
6268
6268
  return openBlock(), createElementBlock("svg", _hoisted_1$H, _hoisted_4$h);
@@ -6278,15 +6278,15 @@ const _hoisted_1$G = {
6278
6278
  viewBox: "0 0 1024 1024",
6279
6279
  xmlns: "http://www.w3.org/2000/svg"
6280
6280
  };
6281
- const _hoisted_2$q = /* @__PURE__ */ createElementVNode("path", {
6281
+ const _hoisted_2$r = /* @__PURE__ */ createElementVNode("path", {
6282
6282
  fill: "currentColor",
6283
6283
  d: "M512 64a448 448 0 110 896.064A448 448 0 01512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 01-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 017.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
6284
6284
  }, null, -1);
6285
- const _hoisted_3$m = [
6286
- _hoisted_2$q
6285
+ const _hoisted_3$n = [
6286
+ _hoisted_2$r
6287
6287
  ];
6288
6288
  function _sfc_render$3a(_ctx, _cache, $props, $setup, $data, $options) {
6289
- return openBlock(), createElementBlock("svg", _hoisted_1$G, _hoisted_3$m);
6289
+ return openBlock(), createElementBlock("svg", _hoisted_1$G, _hoisted_3$n);
6290
6290
  }
6291
6291
  var infoFilled = /* @__PURE__ */ _export_sfc(_sfc_main$3a, [["render", _sfc_render$3a]]);
6292
6292
  const _sfc_main$39 = defineComponent({
@@ -6299,15 +6299,15 @@ const _hoisted_1$F = {
6299
6299
  viewBox: "0 0 1024 1024",
6300
6300
  xmlns: "http://www.w3.org/2000/svg"
6301
6301
  };
6302
- const _hoisted_2$p = /* @__PURE__ */ createElementVNode("path", {
6302
+ const _hoisted_2$q = /* @__PURE__ */ createElementVNode("path", {
6303
6303
  fill: "currentColor",
6304
6304
  d: "M512 64a32 32 0 0132 32v192a32 32 0 01-64 0V96a32 32 0 0132-32zm0 640a32 32 0 0132 32v192a32 32 0 11-64 0V736a32 32 0 0132-32zm448-192a32 32 0 01-32 32H736a32 32 0 110-64h192a32 32 0 0132 32zm-640 0a32 32 0 01-32 32H96a32 32 0 010-64h192a32 32 0 0132 32zM195.2 195.2a32 32 0 0145.248 0L376.32 331.008a32 32 0 01-45.248 45.248L195.2 240.448a32 32 0 010-45.248zm452.544 452.544a32 32 0 0145.248 0L828.8 783.552a32 32 0 01-45.248 45.248L647.744 692.992a32 32 0 010-45.248zM828.8 195.264a32 32 0 010 45.184L692.992 376.32a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0zm-452.544 452.48a32 32 0 010 45.248L240.448 828.8a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0z"
6305
6305
  }, null, -1);
6306
- const _hoisted_3$l = [
6307
- _hoisted_2$p
6306
+ const _hoisted_3$m = [
6307
+ _hoisted_2$q
6308
6308
  ];
6309
6309
  function _sfc_render$39(_ctx, _cache, $props, $setup, $data, $options) {
6310
- return openBlock(), createElementBlock("svg", _hoisted_1$F, _hoisted_3$l);
6310
+ return openBlock(), createElementBlock("svg", _hoisted_1$F, _hoisted_3$m);
6311
6311
  }
6312
6312
  var loading = /* @__PURE__ */ _export_sfc(_sfc_main$39, [["render", _sfc_render$39]]);
6313
6313
  const _sfc_main$38 = defineComponent({
@@ -6320,15 +6320,15 @@ const _hoisted_1$E = {
6320
6320
  viewBox: "0 0 1024 1024",
6321
6321
  xmlns: "http://www.w3.org/2000/svg"
6322
6322
  };
6323
- const _hoisted_2$o = /* @__PURE__ */ createElementVNode("path", {
6323
+ const _hoisted_2$p = /* @__PURE__ */ createElementVNode("path", {
6324
6324
  fill: "currentColor",
6325
6325
  d: "M128 544h768a32 32 0 100-64H128a32 32 0 000 64z"
6326
6326
  }, null, -1);
6327
- const _hoisted_3$k = [
6328
- _hoisted_2$o
6327
+ const _hoisted_3$l = [
6328
+ _hoisted_2$p
6329
6329
  ];
6330
6330
  function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
6331
- return openBlock(), createElementBlock("svg", _hoisted_1$E, _hoisted_3$k);
6331
+ return openBlock(), createElementBlock("svg", _hoisted_1$E, _hoisted_3$l);
6332
6332
  }
6333
6333
  var minus = /* @__PURE__ */ _export_sfc(_sfc_main$38, [["render", _sfc_render$38]]);
6334
6334
  const _sfc_main$37 = defineComponent({
@@ -6341,15 +6341,15 @@ const _hoisted_1$D = {
6341
6341
  viewBox: "0 0 1024 1024",
6342
6342
  xmlns: "http://www.w3.org/2000/svg"
6343
6343
  };
6344
- const _hoisted_2$n = /* @__PURE__ */ createElementVNode("path", {
6344
+ const _hoisted_2$o = /* @__PURE__ */ createElementVNode("path", {
6345
6345
  fill: "currentColor",
6346
6346
  d: "M480 480V128a32 32 0 0164 0v352h352a32 32 0 110 64H544v352a32 32 0 11-64 0V544H128a32 32 0 010-64h352z"
6347
6347
  }, null, -1);
6348
- const _hoisted_3$j = [
6349
- _hoisted_2$n
6348
+ const _hoisted_3$k = [
6349
+ _hoisted_2$o
6350
6350
  ];
6351
6351
  function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
6352
- return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$j);
6352
+ return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$k);
6353
6353
  }
6354
6354
  var plus = /* @__PURE__ */ _export_sfc(_sfc_main$37, [["render", _sfc_render$37]]);
6355
6355
  const _sfc_main$36 = defineComponent({
@@ -6362,15 +6362,15 @@ const _hoisted_1$C = {
6362
6362
  viewBox: "0 0 1024 1024",
6363
6363
  xmlns: "http://www.w3.org/2000/svg"
6364
6364
  };
6365
- const _hoisted_2$m = /* @__PURE__ */ createElementVNode("path", {
6365
+ const _hoisted_2$n = /* @__PURE__ */ createElementVNode("path", {
6366
6366
  fill: "currentColor",
6367
6367
  d: "M795.904 750.72l124.992 124.928a32 32 0 01-45.248 45.248L750.656 795.904a416 416 0 1145.248-45.248zM480 832a352 352 0 100-704 352 352 0 000 704z"
6368
6368
  }, null, -1);
6369
- const _hoisted_3$i = [
6370
- _hoisted_2$m
6369
+ const _hoisted_3$j = [
6370
+ _hoisted_2$n
6371
6371
  ];
6372
6372
  function _sfc_render$36(_ctx, _cache, $props, $setup, $data, $options) {
6373
- return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$i);
6373
+ return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$j);
6374
6374
  }
6375
6375
  var search = /* @__PURE__ */ _export_sfc(_sfc_main$36, [["render", _sfc_render$36]]);
6376
6376
  var defaultConfig = {
@@ -6725,11 +6725,11 @@ const _sfc_main$35 = {
6725
6725
  }
6726
6726
  };
6727
6727
  const _hoisted_1$B = { class: "file-upload-widget-container" };
6728
- const _hoisted_2$l = {
6728
+ const _hoisted_2$m = {
6729
6729
  key: 0,
6730
6730
  class: "el-upload__tip"
6731
6731
  };
6732
- const _hoisted_3$h = { class: "upload-file-list" };
6732
+ const _hoisted_3$i = { class: "upload-file-list" };
6733
6733
  const _hoisted_4$g = { class: "left-wrap" };
6734
6734
  const _hoisted_5$d = ["title"];
6735
6735
  const _hoisted_6$d = { class: "right-wrap" };
@@ -6776,7 +6776,7 @@ function _sfc_render$35(_ctx, _cache, $props, $setup, $data, $options) {
6776
6776
  "on-progress": $options.handleProgress
6777
6777
  }, {
6778
6778
  tip: withCtx(() => [
6779
- !!$props.field.options.uploadTip ? (openBlock(), createElementBlock("div", _hoisted_2$l, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
6779
+ !!$props.field.options.uploadTip ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
6780
6780
  ]),
6781
6781
  default: withCtx(() => [
6782
6782
  $props.field.options.allowDrag ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -6798,7 +6798,7 @@ function _sfc_render$35(_ctx, _cache, $props, $setup, $data, $options) {
6798
6798
  }))
6799
6799
  ]),
6800
6800
  file: withCtx(({ file }) => [
6801
- createElementVNode("div", _hoisted_3$h, [
6801
+ createElementVNode("div", _hoisted_3$i, [
6802
6802
  createElementVNode("div", _hoisted_4$g, [
6803
6803
  createElementVNode("span", {
6804
6804
  class: "upload-file-name",
@@ -7342,11 +7342,11 @@ const _sfc_main$31 = {
7342
7342
  }
7343
7343
  };
7344
7344
  const _hoisted_1$z = { class: "el-upload-list__item-status-label" };
7345
- const _hoisted_2$k = {
7345
+ const _hoisted_2$l = {
7346
7346
  class: "el-icon--upload-success",
7347
7347
  style: { "color": "#FFF" }
7348
7348
  };
7349
- const _hoisted_3$g = { class: "el-upload-list__item-actions" };
7349
+ const _hoisted_3$h = { class: "el-upload-list__item-actions" };
7350
7350
  const _hoisted_4$f = ["onClick"];
7351
7351
  const _hoisted_5$c = ["onClick"];
7352
7352
  const _hoisted_6$c = {
@@ -7403,14 +7403,14 @@ function _sfc_render$31(_ctx, _cache, $props, $setup, $data, $options) {
7403
7403
  "preview-teleported": ""
7404
7404
  }, null, 8, ["src", "preview-src-list", "initial-index"]),
7405
7405
  createElementVNode("label", _hoisted_1$z, [
7406
- createElementVNode("i", _hoisted_2$k, [
7406
+ createElementVNode("i", _hoisted_2$l, [
7407
7407
  createVNode(_component_svg_icon, {
7408
7408
  class: "",
7409
7409
  "icon-class": "el-check"
7410
7410
  })
7411
7411
  ])
7412
7412
  ]),
7413
- createElementVNode("span", _hoisted_3$g, [
7413
+ createElementVNode("span", _hoisted_3$h, [
7414
7414
  createElementVNode("span", {
7415
7415
  class: "el-upload-list__item-preview",
7416
7416
  onClick: ($event) => $options.handlePictureCardPreview(file)
@@ -20181,7 +20181,7 @@ const _sfc_main$2P = {
20181
20181
  }
20182
20182
  };
20183
20183
  const _hoisted_1$w = { class: "blank-cell" };
20184
- const _hoisted_2$j = { class: "invisible-content" };
20184
+ const _hoisted_2$k = { class: "invisible-content" };
20185
20185
  function _sfc_render$2P(_ctx, _cache, $props, $setup, $data, $options) {
20186
20186
  const _component_el_col = resolveComponent("el-col");
20187
20187
  return $props.widget ? withDirectives((openBlock(), createBlock(_component_el_col, mergeProps({
@@ -20236,7 +20236,7 @@ function _sfc_render$2P(_ctx, _cache, $props, $setup, $data, $options) {
20236
20236
  }), 256)) : (openBlock(), createBlock(_component_el_col, { key: 1 }, {
20237
20237
  default: withCtx(() => [
20238
20238
  createElementVNode("div", _hoisted_1$w, [
20239
- createElementVNode("span", _hoisted_2$j, toDisplayString(_ctx.i18nt("render.hint.blankCellContent")), 1)
20239
+ createElementVNode("span", _hoisted_2$k, toDisplayString(_ctx.i18nt("render.hint.blankCellContent")), 1)
20240
20240
  ])
20241
20241
  ]),
20242
20242
  _: 1
@@ -20704,8 +20704,8 @@ const _sfc_main$2N = {
20704
20704
  }
20705
20705
  };
20706
20706
  const _hoisted_1$v = { class: "action-header-column" };
20707
- const _hoisted_2$i = { class: "action-label" };
20708
- const _hoisted_3$f = {
20707
+ const _hoisted_2$j = { class: "action-label" };
20708
+ const _hoisted_3$g = {
20709
20709
  key: 0,
20710
20710
  class: "custom-label"
20711
20711
  };
@@ -20731,7 +20731,7 @@ function _sfc_render$2N(_ctx, _cache, $props, $setup, $data, $options) {
20731
20731
  createVNode(_component_el_row, { class: "header-row" }, {
20732
20732
  default: withCtx(() => [
20733
20733
  createElementVNode("div", _hoisted_1$v, [
20734
- createElementVNode("span", _hoisted_2$i, toDisplayString(_ctx.i18nt("render.hint.subFormAction")), 1),
20734
+ createElementVNode("span", _hoisted_2$j, toDisplayString(_ctx.i18nt("render.hint.subFormAction")), 1),
20735
20735
  createVNode(_component_el_button, {
20736
20736
  disabled: $data.actionDisabled,
20737
20737
  round: "",
@@ -20754,7 +20754,7 @@ function _sfc_render$2N(_ctx, _cache, $props, $setup, $data, $options) {
20754
20754
  class: normalizeClass(["field-header-column", [$options.getLabelAlign($props.widget, subWidget), !!subWidget.options.required ? "is-required" : ""]]),
20755
20755
  style: normalizeStyle({ width: subWidget.options.columnWidth })
20756
20756
  }, [
20757
- !!subWidget.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_3$f, [
20757
+ !!subWidget.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_3$g, [
20758
20758
  subWidget.options.labelIconPosition === "front" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
20759
20759
  !!subWidget.options.labelTooltip ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
20760
20760
  createVNode(_component_el_tooltip, {
@@ -46290,13 +46290,13 @@ const _sfc_main$2I = {
46290
46290
  }
46291
46291
  };
46292
46292
  const _hoisted_1$t = { class: "ace-container" };
46293
- const _hoisted_2$h = {
46293
+ const _hoisted_2$i = {
46294
46294
  class: "ace-editor",
46295
46295
  ref: "ace"
46296
46296
  };
46297
46297
  function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) {
46298
46298
  return openBlock(), createElementBlock("div", _hoisted_1$t, [
46299
- createElementVNode("div", _hoisted_2$h, null, 512)
46299
+ createElementVNode("div", _hoisted_2$i, null, 512)
46300
46300
  ]);
46301
46301
  }
46302
46302
  var CodeEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$2I, [["render", _sfc_render$2I], ["__scopeId", "data-v-335e1214"]]);
@@ -47716,8 +47716,8 @@ const _sfc_main$2H = {
47716
47716
  }
47717
47717
  };
47718
47718
  const _hoisted_1$s = { class: "toolbar-container" };
47719
- const _hoisted_2$g = { class: "left-toolbar" };
47720
- const _hoisted_3$e = { class: "right-toolbar-con" };
47719
+ const _hoisted_2$h = { class: "left-toolbar" };
47720
+ const _hoisted_3$f = { class: "right-toolbar-con" };
47721
47721
  const _hoisted_4$d = {
47722
47722
  key: 0,
47723
47723
  class: ""
@@ -47763,7 +47763,7 @@ function _sfc_render$2H(_ctx, _cache, $props, $setup, $data, $options) {
47763
47763
  const _component_el_tabs = resolveComponent("el-tabs");
47764
47764
  const _directive_drag = resolveDirective("drag");
47765
47765
  return openBlock(), createElementBlock("div", _hoisted_1$s, [
47766
- createElementVNode("div", _hoisted_2$g, [
47766
+ createElementVNode("div", _hoisted_2$h, [
47767
47767
  createVNode(_component_el_button, {
47768
47768
  link: "",
47769
47769
  type: "primary",
@@ -47859,7 +47859,7 @@ function _sfc_render$2H(_ctx, _cache, $props, $setup, $data, $options) {
47859
47859
  class: "right-toolbar",
47860
47860
  style: normalizeStyle({ width: $data.toolbarWidth + "px" })
47861
47861
  }, [
47862
- createElementVNode("div", _hoisted_3$e, [
47862
+ createElementVNode("div", _hoisted_3$f, [
47863
47863
  $options.showToolButton("clearDesignerButton") ? (openBlock(), createBlock(_component_el_button, {
47864
47864
  key: 0,
47865
47865
  link: "",
@@ -49971,6 +49971,7 @@ const _sfc_main$27 = {
49971
49971
  let dictManager = null;
49972
49972
  if (typeof window !== "undefined" && window.getDictData) {
49973
49973
  const dictItems = window.getDictData(dictCode);
49974
+ console.log(dictItems, "dictItems");
49974
49975
  if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
49975
49976
  this.optionModel.optionItems = dictItems.map((item) => ({
49976
49977
  id: generateId(),
@@ -50039,11 +50040,11 @@ const _sfc_main$27 = {
50039
50040
  }
50040
50041
  };
50041
50042
  const _hoisted_1$r = { class: "option-items-pane" };
50042
- const _hoisted_2$f = {
50043
+ const _hoisted_2$g = {
50043
50044
  key: 2,
50044
50045
  class: "full-width-input"
50045
50046
  };
50046
- const _hoisted_3$d = {
50047
+ const _hoisted_3$e = {
50047
50048
  key: 3,
50048
50049
  class: "full-width-input"
50049
50050
  };
@@ -50184,7 +50185,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
50184
50185
  }, 16, ["list"])
50185
50186
  ]),
50186
50187
  _: 1
50187
- }, 8, ["modelValue", "onChange"])) : $props.selectedWidget.type === "cascader" ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
50188
+ }, 8, ["modelValue", "onChange"])) : $props.selectedWidget.type === "cascader" ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
50188
50189
  createVNode(_component_el_cascader, {
50189
50190
  modelValue: $options.optionModel.defaultValue,
50190
50191
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $options.optionModel.defaultValue = $event),
@@ -50192,7 +50193,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
50192
50193
  onChange: $options.emitDefaultValueChange,
50193
50194
  placeholder: _ctx.i18nt("render.hint.selectPlaceholder")
50194
50195
  }, null, 8, ["modelValue", "options", "onChange", "placeholder"])
50195
- ])) : $props.selectedWidget.type === "select-tree" ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
50196
+ ])) : $props.selectedWidget.type === "select-tree" ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
50196
50197
  createVNode(_component_el_tree, {
50197
50198
  data: $options.optionModel.optionItems,
50198
50199
  props: { children: "children", label: "label" },
@@ -50503,7 +50504,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
50503
50504
  ]) : createCommentVNode("", true)
50504
50505
  ]);
50505
50506
  }
50506
- var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-562d80e5"]]);
50507
+ var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-f720306a"]]);
50507
50508
  const _sfc_main$26 = {
50508
50509
  name: "optionItems-editor",
50509
50510
  mixins: [i18n$1],
@@ -54906,8 +54907,8 @@ const _hoisted_1$k = {
54906
54907
  key: 0,
54907
54908
  class: ""
54908
54909
  };
54909
- const _hoisted_2$e = { class: "dialog-footer" };
54910
- const _hoisted_3$c = {
54910
+ const _hoisted_2$f = { class: "dialog-footer" };
54911
+ const _hoisted_3$d = {
54911
54912
  key: 1,
54912
54913
  class: ""
54913
54914
  };
@@ -55255,7 +55256,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
55255
55256
  "destroy-on-close": true
55256
55257
  }, {
55257
55258
  footer: withCtx(() => [
55258
- createElementVNode("div", _hoisted_2$e, [
55259
+ createElementVNode("div", _hoisted_2$f, [
55259
55260
  createVNode(_component_el_button, {
55260
55261
  onClick: _cache[14] || (_cache[14] = ($event) => $data.showFormEventDialogFlag = false)
55261
55262
  }, {
@@ -55299,7 +55300,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
55299
55300
  ])), [
55300
55301
  [_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
55301
55302
  ]) : createCommentVNode("", true),
55302
- $data.showEditFormCssDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3$c, [
55303
+ $data.showEditFormCssDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3$d, [
55303
55304
  createVNode(_component_el_dialog, {
55304
55305
  title: _ctx.i18nt("designer.setting.formCss"),
55305
55306
  modelValue: $data.showEditFormCssDialogFlag,
@@ -55710,7 +55711,7 @@ const _hoisted_1$j = {
55710
55711
  key: 0,
55711
55712
  class: ""
55712
55713
  };
55713
- const _hoisted_2$d = { class: "dialog-footer" };
55714
+ const _hoisted_2$e = { class: "dialog-footer" };
55714
55715
  function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
55715
55716
  const _component_el_collapse_item = resolveComponent("el-collapse-item");
55716
55717
  const _component_el_collapse = resolveComponent("el-collapse");
@@ -55946,7 +55947,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
55946
55947
  "destroy-on-close": true
55947
55948
  }, {
55948
55949
  footer: withCtx(() => [
55949
- createElementVNode("div", _hoisted_2$d, [
55950
+ createElementVNode("div", _hoisted_2$e, [
55950
55951
  createVNode(_component_el_button, {
55951
55952
  onClick: _cache[6] || (_cache[6] = ($event) => $data.showWidgetEventDialogFlag = false)
55952
55953
  }, {
@@ -56100,8 +56101,8 @@ const _hoisted_1$i = {
56100
56101
  key: 0,
56101
56102
  class: "container-action"
56102
56103
  };
56103
- const _hoisted_2$c = ["title"];
56104
- const _hoisted_3$b = ["title"];
56104
+ const _hoisted_2$d = ["title"];
56105
+ const _hoisted_3$c = ["title"];
56105
56106
  const _hoisted_4$a = ["title"];
56106
56107
  const _hoisted_5$7 = ["title"];
56107
56108
  const _hoisted_6$7 = ["title"];
@@ -56125,14 +56126,14 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
56125
56126
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.selectParentWidget($props.widget), ["stop"]))
56126
56127
  }, [
56127
56128
  createVNode(_component_svg_icon, { "icon-class": "el-back" })
56128
- ], 8, _hoisted_2$c),
56129
+ ], 8, _hoisted_2$d),
56129
56130
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
56130
56131
  key: 0,
56131
56132
  title: _ctx.i18nt("designer.hint.moveUpWidget"),
56132
56133
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.moveUpWidget(), ["stop"]))
56133
56134
  }, [
56134
56135
  createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
56135
- ], 8, _hoisted_3$b)) : createCommentVNode("", true),
56136
+ ], 8, _hoisted_3$c)) : createCommentVNode("", true),
56136
56137
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
56137
56138
  key: 1,
56138
56139
  title: _ctx.i18nt("designer.hint.moveDownWidget"),
@@ -56395,11 +56396,11 @@ const _sfc_main$n = {
56395
56396
  }
56396
56397
  };
56397
56398
  const _hoisted_1$h = { class: "form-widget-list" };
56398
- const _hoisted_2$b = {
56399
+ const _hoisted_2$c = {
56399
56400
  key: 0,
56400
56401
  class: "grid-col-action"
56401
56402
  };
56402
- const _hoisted_3$a = ["title"];
56403
+ const _hoisted_3$b = ["title"];
56403
56404
  const _hoisted_4$9 = ["title"];
56404
56405
  const _hoisted_5$6 = ["title"];
56405
56406
  const _hoisted_6$6 = ["title"];
@@ -56456,13 +56457,13 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
56456
56457
  ]),
56457
56458
  _: 1
56458
56459
  }, 16, ["list", "onUpdate", "move"]),
56459
- $props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
56460
+ $props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
56460
56461
  createElementVNode("i", {
56461
56462
  title: _ctx.i18nt("designer.hint.selectParentWidget"),
56462
56463
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.selectParentWidget($props.widget), ["stop"]))
56463
56464
  }, [
56464
56465
  createVNode(_component_svg_icon, { "icon-class": "el-back" })
56465
- ], 8, _hoisted_3$a),
56466
+ ], 8, _hoisted_3$b),
56466
56467
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
56467
56468
  key: 0,
56468
56469
  title: _ctx.i18nt("designer.hint.moveUpWidget"),
@@ -56872,8 +56873,8 @@ const _sfc_main$k = {
56872
56873
  }
56873
56874
  };
56874
56875
  const _hoisted_1$f = ["colspan", "rowspan"];
56875
- const _hoisted_2$a = { class: "form-widget-list" };
56876
- const _hoisted_3$9 = {
56876
+ const _hoisted_2$b = { class: "form-widget-list" };
56877
+ const _hoisted_3$a = {
56877
56878
  key: 0,
56878
56879
  class: "table-cell-action"
56879
56880
  };
@@ -56909,7 +56910,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
56909
56910
  move: $options.checkContainerMove
56910
56911
  }), {
56911
56912
  item: withCtx(({ element: subWidget, index: swIdx }) => [
56912
- createElementVNode("div", _hoisted_2$a, [
56913
+ createElementVNode("div", _hoisted_2$b, [
56913
56914
  subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
56914
56915
  widget: subWidget,
56915
56916
  designer: $props.designer,
@@ -56930,7 +56931,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
56930
56931
  ]),
56931
56932
  _: 1
56932
56933
  }, 16, ["list", "onUpdate", "move"]),
56933
- $props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
56934
+ $props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
56934
56935
  createElementVNode("i", {
56935
56936
  title: _ctx.i18nt("designer.hint.selectParentWidget"),
56936
56937
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.selectParentWidget(), ["stop"]))
@@ -57313,11 +57314,11 @@ const _sfc_main$i = {
57313
57314
  }
57314
57315
  };
57315
57316
  const _hoisted_1$d = { class: "form-widget-container" };
57316
- const _hoisted_2$9 = {
57317
+ const _hoisted_2$a = {
57317
57318
  key: 0,
57318
57319
  class: "no-widget-hint"
57319
57320
  };
57320
- const _hoisted_3$8 = { class: "form-widget-list" };
57321
+ const _hoisted_3$9 = { class: "form-widget-list" };
57321
57322
  const _hoisted_4$7 = { class: "transition-group-el" };
57322
57323
  function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
57323
57324
  const _component_draggable = resolveComponent("draggable");
@@ -57330,8 +57331,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
57330
57331
  "validate-on-rule-change": false
57331
57332
  }, {
57332
57333
  default: withCtx(() => [
57333
- $props.designer.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$9, toDisplayString(_ctx.i18nt("designer.noWidgetHint")), 1)) : createCommentVNode("", true),
57334
- createElementVNode("div", _hoisted_3$8, [
57334
+ $props.designer.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$a, toDisplayString(_ctx.i18nt("designer.noWidgetHint")), 1)) : createCommentVNode("", true),
57335
+ createElementVNode("div", _hoisted_3$9, [
57335
57336
  createVNode(_component_draggable, mergeProps({
57336
57337
  list: $props.designer.widgetList,
57337
57338
  "item-key": "id"
@@ -62054,13 +62055,13 @@ function registerIcon(app) {
62054
62055
  if (typeof window !== "undefined") {
62055
62056
  let loadSvg = function() {
62056
62057
  var body = document.body;
62057
- var svgDom = document.getElementById("__svg__icons__dom__1767936564289__");
62058
+ var svgDom = document.getElementById("__svg__icons__dom__1768382563829__");
62058
62059
  if (!svgDom) {
62059
62060
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
62060
62061
  svgDom.style.position = "absolute";
62061
62062
  svgDom.style.width = "0";
62062
62063
  svgDom.style.height = "0";
62063
- svgDom.id = "__svg__icons__dom__1767936564289__";
62064
+ svgDom.id = "__svg__icons__dom__1768382563829__";
62064
62065
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
62065
62066
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
62066
62067
  }
@@ -62335,7 +62336,7 @@ const _sfc_main$g = {
62335
62336
  }
62336
62337
  };
62337
62338
  const _hoisted_1$c = { class: "label" };
62338
- const _hoisted_2$8 = { class: "form-widget-list" };
62339
+ const _hoisted_2$9 = { class: "form-widget-list" };
62339
62340
  function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
62340
62341
  const _component_ArrowDownBold = resolveComponent("ArrowDownBold");
62341
62342
  const _component_el_icon = resolveComponent("el-icon");
@@ -62386,7 +62387,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
62386
62387
  move: $options.checkContainerMove
62387
62388
  }), {
62388
62389
  item: withCtx(({ element: subWidget, index: swIdx }) => [
62389
- createElementVNode("div", _hoisted_2$8, [
62390
+ createElementVNode("div", _hoisted_2$9, [
62390
62391
  subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
62391
62392
  widget: subWidget,
62392
62393
  designer: $props.designer,
@@ -62643,12 +62644,12 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
62643
62644
  }
62644
62645
  var AlertWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["render", _sfc_render$e]]);
62645
62646
  const { cookies: cookies$1 } = useCookies();
62646
- const service$1 = axios.create({
62647
+ const service = axios.create({
62647
62648
  baseURL: "/api",
62648
62649
  timeout: 5e4,
62649
62650
  headers: { "Content-Type": "application/json;charset=utf-8" }
62650
62651
  });
62651
- service$1.interceptors.request.use((config) => {
62652
+ service.interceptors.request.use((config) => {
62652
62653
  config.headers["Client"] = "web";
62653
62654
  const accessToken = cookies$1.get("Authorization");
62654
62655
  const company = cookies$1.get("companyId");
@@ -62667,7 +62668,7 @@ service$1.interceptors.request.use((config) => {
62667
62668
  }, (error) => {
62668
62669
  return Promise.reject(error);
62669
62670
  });
62670
- service$1.interceptors.response.use((response) => {
62671
+ service.interceptors.response.use((response) => {
62671
62672
  const { responseType } = response.config;
62672
62673
  if (responseType === "blob") {
62673
62674
  return response;
@@ -62822,7 +62823,7 @@ const _sfc_main$d = {
62822
62823
  },
62823
62824
  getTreeData() {
62824
62825
  const { cookies: cookies2 } = useCookies();
62825
- service$1({
62826
+ service({
62826
62827
  method: "post",
62827
62828
  url: "/unified-system/sysCompany/fullTree",
62828
62829
  data: { companyId: JSON.parse(cookies2.get("companyId") || "{}") }
@@ -62858,7 +62859,7 @@ const _sfc_main$d = {
62858
62859
  },
62859
62860
  handleClick() {
62860
62861
  this.dialogVisible = true;
62861
- service$1.get("/oa-business/oaCompany/fullTree?companyId=1969231284703105025").then((res) => {
62862
+ service.get("/oa-business/oaCompany/fullTree?companyId=1969231284703105025").then((res) => {
62862
62863
  console.log(res, "res");
62863
62864
  });
62864
62865
  this.triggerEvent("onOpen");
@@ -62869,7 +62870,6 @@ const _sfc_main$d = {
62869
62870
  this.$nextTick(() => {
62870
62871
  this.$refs.inputTagRef.blur();
62871
62872
  });
62872
- this.triggerEvent("onConfirm");
62873
62873
  this.oldFieldValue = this.fieldModel ? deepClone(this.fieldModel) : null;
62874
62874
  const checkedNodes = (_a2 = this.$refs.treeRef) == null ? void 0 : _a2.getCheckedNodes().filter((item) => item.joinUserId).map((item) => ({
62875
62875
  joinUserId: item.joinUserId,
@@ -62882,6 +62882,7 @@ const _sfc_main$d = {
62882
62882
  this.fieldModel = checkedNodes;
62883
62883
  this.syncUpdateFormModel(this.fieldModel);
62884
62884
  this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
62885
+ this.triggerEvent("onConfirm", checkedNodes);
62885
62886
  this.$nextTick(() => {
62886
62887
  this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
62887
62888
  });
@@ -62898,19 +62899,34 @@ const _sfc_main$d = {
62898
62899
  this.triggerEvent("onClose");
62899
62900
  this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
62900
62901
  },
62901
- triggerEvent(eventName) {
62902
+ triggerEvent(eventName, ...args) {
62902
62903
  var _a2, _b2;
62903
62904
  const handler = (_b2 = (_a2 = this.field) == null ? void 0 : _a2.options) == null ? void 0 : _b2[eventName];
62904
62905
  if (handler) {
62905
- const fn = new Function(handler);
62906
- fn.call(this);
62906
+ try {
62907
+ if (eventName === "onConfirm" && args.length > 0) {
62908
+ const fn = new Function("checkedNodes", handler);
62909
+ fn.call(this, args[0]);
62910
+ } else if (args.length > 0) {
62911
+ const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
62912
+ const fn = new Function(paramNames, handler);
62913
+ fn.apply(this, args);
62914
+ } else {
62915
+ const fn = new Function(handler);
62916
+ fn.call(this);
62917
+ }
62918
+ } catch (error) {
62919
+ console.error(`Error executing ${eventName} handler:`, error);
62920
+ console.error("Handler code:", handler);
62921
+ console.error("Args:", args);
62922
+ }
62907
62923
  }
62908
62924
  }
62909
62925
  }
62910
62926
  };
62911
62927
  const _hoisted_1$a = { class: "person-tree-widget__trigger" };
62912
- const _hoisted_2$7 = { class: "flex items-center" };
62913
- const _hoisted_3$7 = { class: "dialog-footer" };
62928
+ const _hoisted_2$8 = { class: "flex items-center" };
62929
+ const _hoisted_3$8 = { class: "dialog-footer" };
62914
62930
  function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
62915
62931
  const _component_el_input_tag = resolveComponent("el-input-tag");
62916
62932
  const _component_el_tree = resolveComponent("el-tree");
@@ -62946,7 +62962,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
62946
62962
  ref: "inputTagRef"
62947
62963
  }, {
62948
62964
  tag: withCtx(({ value: value2 }) => [
62949
- createElementVNode("div", _hoisted_2$7, [
62965
+ createElementVNode("div", _hoisted_2$8, [
62950
62966
  createElementVNode("span", null, toDisplayString(value2.name), 1)
62951
62967
  ])
62952
62968
  ]),
@@ -62985,7 +63001,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
62985
63001
  !$props.field.options.hideFooter ? {
62986
63002
  name: "footer",
62987
63003
  fn: withCtx(() => [
62988
- createElementVNode("div", _hoisted_3$7, [
63004
+ createElementVNode("div", _hoisted_3$8, [
62989
63005
  createVNode(_component_el_button, {
62990
63006
  onClick: $options.handleCancel,
62991
63007
  size: "default"
@@ -63015,7 +63031,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
63015
63031
  _: 1
63016
63032
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
63017
63033
  }
63018
- var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-9c46e424"]]);
63034
+ var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-59616a04"]]);
63019
63035
  const _sfc_main$c = {
63020
63036
  name: "radio-other-widget",
63021
63037
  componentName: "FieldWidget",
@@ -63461,7 +63477,7 @@ const _sfc_main$a = {
63461
63477
  }
63462
63478
  this.loading = true;
63463
63479
  this.roomList = [];
63464
- service$1.get(this.field.options.remoteUrl).then((response) => {
63480
+ service.get(this.field.options.remoteUrl).then((response) => {
63465
63481
  let data2 = response;
63466
63482
  if (response && response.data) {
63467
63483
  data2 = response.data;
@@ -63510,11 +63526,11 @@ const _hoisted_1$9 = {
63510
63526
  key: 0,
63511
63527
  class: "empty-wrap"
63512
63528
  };
63513
- const _hoisted_2$6 = {
63529
+ const _hoisted_2$7 = {
63514
63530
  key: 1,
63515
63531
  class: "room-wrap"
63516
63532
  };
63517
- const _hoisted_3$6 = ["onClick"];
63533
+ const _hoisted_3$7 = ["onClick"];
63518
63534
  const _hoisted_4$6 = { class: "select-icon" };
63519
63535
  const _hoisted_5$4 = { class: "room-item-name" };
63520
63536
  const _hoisted_6$4 = {
@@ -63569,7 +63585,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
63569
63585
  createElementVNode("div", null, [
63570
63586
  $data.roomList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
63571
63587
  createVNode(_component_el_empty, { description: "\u6682\u65E0\u6570\u636E" })
63572
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$6, [
63588
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$7, [
63573
63589
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.roomList, (item) => {
63574
63590
  var _a2;
63575
63591
  return openBlock(), createElementBlock("div", {
@@ -63601,7 +63617,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
63601
63617
  item.equipment ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
63602
63618
  createElementVNode("span", null, "\u8BBE\u5907\uFF1A" + toDisplayString(item.equipment), 1)
63603
63619
  ])) : createCommentVNode("", true)
63604
- ], 10, _hoisted_3$6);
63620
+ ], 10, _hoisted_3$7);
63605
63621
  }), 128))
63606
63622
  ]))
63607
63623
  ])
@@ -63685,8 +63701,8 @@ const _sfc_main$9 = {
63685
63701
  }
63686
63702
  };
63687
63703
  const _hoisted_1$8 = { class: "sub-form-header" };
63688
- const _hoisted_2$5 = { class: "sub-form-label" };
63689
- const _hoisted_3$5 = { class: "group-header" };
63704
+ const _hoisted_2$6 = { class: "sub-form-label" };
63705
+ const _hoisted_3$6 = { class: "group-header" };
63690
63706
  const _hoisted_4$5 = { class: "group-title" };
63691
63707
  const _hoisted_5$3 = {
63692
63708
  key: 0,
@@ -63722,14 +63738,14 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
63722
63738
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.selectWidget($props.widget), ["stop"]))
63723
63739
  }, [
63724
63740
  createElementVNode("div", _hoisted_1$8, [
63725
- createElementVNode("span", _hoisted_2$5, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
63741
+ createElementVNode("span", _hoisted_2$6, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
63726
63742
  ]),
63727
63743
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.previewRows, (row, rowIdx) => {
63728
63744
  return openBlock(), createElementBlock("div", {
63729
63745
  class: "preview-group-row",
63730
63746
  key: "preview-" + rowIdx
63731
63747
  }, [
63732
- createElementVNode("div", _hoisted_3$5, [
63748
+ createElementVNode("div", _hoisted_3$6, [
63733
63749
  createElementVNode("div", _hoisted_4$5, [
63734
63750
  $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString($props.widget.options.label) + " " + toDisplayString(rowIdx + 1) + " \u7EC4", 1)) : (openBlock(), createElementBlock("span", _hoisted_6$3, "\u8868\u5355\u7EC4"))
63735
63751
  ]),
@@ -64121,8 +64137,8 @@ const _sfc_main$8 = {
64121
64137
  }
64122
64138
  };
64123
64139
  const _hoisted_1$7 = { class: "sub-form-header" };
64124
- const _hoisted_2$4 = { class: "sub-form-label" };
64125
- const _hoisted_3$4 = { class: "group-header" };
64140
+ const _hoisted_2$5 = { class: "sub-form-label" };
64141
+ const _hoisted_3$5 = { class: "group-header" };
64126
64142
  const _hoisted_4$4 = { class: "group-title" };
64127
64143
  const _hoisted_5$2 = {
64128
64144
  key: 0,
@@ -64164,14 +64180,14 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
64164
64180
  class: normalizeClass(["custom-sub-form-container", $options.customClass])
64165
64181
  }, [
64166
64182
  createElementVNode("div", _hoisted_1$7, [
64167
- createElementVNode("span", _hoisted_2$4, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
64183
+ createElementVNode("span", _hoisted_2$5, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
64168
64184
  ]),
64169
64185
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
64170
64186
  return openBlock(), createElementBlock("div", {
64171
64187
  class: "form-group-row",
64172
64188
  key: subFormRowId
64173
64189
  }, [
64174
- createElementVNode("div", _hoisted_3$4, [
64190
+ createElementVNode("div", _hoisted_3$5, [
64175
64191
  createElementVNode("div", _hoisted_4$4, [
64176
64192
  $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$2, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355") + " " + toDisplayString(sfrIdx + 1), 1)) : (openBlock(), createElementBlock("span", _hoisted_6$2, "\u8868\u5355\u7EC4"))
64177
64193
  ]),
@@ -64272,7 +64288,11 @@ const customTableSchema = {
64272
64288
  name: "",
64273
64289
  label: "\u81EA\u5B9A\u4E49\u8868\u683C",
64274
64290
  hidden: false,
64275
- customClass: ""
64291
+ customClass: "",
64292
+ onTableRowAdd: "",
64293
+ onTableRowInsert: "",
64294
+ onTableRowDelete: "",
64295
+ onTableRowChange: ""
64276
64296
  }
64277
64297
  };
64278
64298
  var customTableCellWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
@@ -64433,8 +64453,8 @@ const _sfc_main$7 = {
64433
64453
  }
64434
64454
  };
64435
64455
  const _hoisted_1$6 = ["colspan", "rowspan"];
64436
- const _hoisted_2$3 = { class: "form-widget-list" };
64437
- const _hoisted_3$3 = {
64456
+ const _hoisted_2$4 = { class: "form-widget-list" };
64457
+ const _hoisted_3$4 = {
64438
64458
  key: 0,
64439
64459
  class: "custom-table-cell-action"
64440
64460
  };
@@ -64480,7 +64500,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
64480
64500
  move: $options.checkContainerMove
64481
64501
  }), {
64482
64502
  item: withCtx(({ element: subWidget, index: swIdx }) => [
64483
- createElementVNode("div", _hoisted_2$3, [
64503
+ createElementVNode("div", _hoisted_2$4, [
64484
64504
  subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
64485
64505
  widget: subWidget,
64486
64506
  designer: $props.designer,
@@ -64501,7 +64521,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
64501
64521
  ]),
64502
64522
  _: 1
64503
64523
  }, 16, ["list", "onUpdate", "move"]),
64504
- $props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
64524
+ $props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
64505
64525
  createElementVNode("i", {
64506
64526
  title: "\u9009\u62E9\u7236\u7EC4\u4EF6",
64507
64527
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget(), ["stop"]))
@@ -64734,26 +64754,197 @@ const _sfc_main$4 = {
64734
64754
  mixins: [emitter, i18n$1, refMixin, containerItemMixin],
64735
64755
  components: {
64736
64756
  ContainerItemWrapper,
64737
- CustomTableCellItem
64757
+ CustomTableCellItem,
64758
+ SvgIcon
64738
64759
  },
64739
64760
  props: {
64740
64761
  widget: Object
64741
64762
  },
64742
64763
  inject: ["refList", "sfRefList", "globalModel"],
64764
+ data() {
64765
+ return {
64766
+ rowIdData: []
64767
+ };
64768
+ },
64743
64769
  computed: {
64744
64770
  customClass() {
64745
64771
  return this.widget.options.customClass || "";
64772
+ },
64773
+ formModel: {
64774
+ cache: false,
64775
+ get() {
64776
+ return this.globalModel.formModel;
64777
+ }
64746
64778
  }
64747
64779
  },
64748
64780
  created() {
64749
64781
  this.initRefList();
64782
+ this.initRowIdData();
64783
+ this.initEventHandler();
64750
64784
  },
64751
64785
  beforeUnmount() {
64752
64786
  this.unregisterFromRefList();
64787
+ },
64788
+ methods: {
64789
+ initRowIdData() {
64790
+ if (!this.widget.rows || this.widget.rows.length === 0) {
64791
+ return;
64792
+ }
64793
+ this.rowIdData.splice(0, this.rowIdData.length);
64794
+ this.widget.rows.forEach(() => {
64795
+ this.rowIdData.push("id" + generateId());
64796
+ });
64797
+ },
64798
+ addToRowIdData(rowIndex) {
64799
+ if (rowIndex === void 0) {
64800
+ this.rowIdData.push("id" + generateId());
64801
+ } else {
64802
+ this.rowIdData.splice(rowIndex, 0, "id" + generateId());
64803
+ }
64804
+ },
64805
+ deleteFromRowIdData(rowIndex) {
64806
+ this.rowIdData.splice(rowIndex, 1);
64807
+ },
64808
+ cloneCellWithFields(cellWidget, rowId) {
64809
+ const newCell = deepClone(cellWidget);
64810
+ newCell.id = "custom-table-cell-" + generateId();
64811
+ newCell.options.name = newCell.id;
64812
+ if (newCell.widgetList && newCell.widgetList.length > 0) {
64813
+ newCell.widgetList = newCell.widgetList.map((fieldWidget2) => {
64814
+ const newField = deepClone(fieldWidget2);
64815
+ newField.id = fieldWidget2.type + "-" + generateId();
64816
+ if (newField.options && newField.options.name) {
64817
+ const baseName = newField.options.name.split("@")[0];
64818
+ newField.options.name = baseName + "@row" + rowId;
64819
+ }
64820
+ return newField;
64821
+ });
64822
+ }
64823
+ return newCell;
64824
+ },
64825
+ addTableRow() {
64826
+ if (!this.widget.rows || this.widget.rows.length === 0) {
64827
+ return;
64828
+ }
64829
+ this.addToRowIdData();
64830
+ const newRowId = this.rowIdData[this.rowIdData.length - 1];
64831
+ const templateRow = this.widget.rows[0];
64832
+ const newRow = {
64833
+ id: "custom-table-row-" + generateId(),
64834
+ merged: false,
64835
+ cols: templateRow.cols.map((cell) => this.cloneCellWithFields(cell, newRowId))
64836
+ };
64837
+ this.widget.rows.push(newRow);
64838
+ this.initRowFormData(newRow, this.widget.rows.length - 1);
64839
+ this.handleTableRowAdd(this.widget.rows, newRowId);
64840
+ this.handleTableRowChange(this.widget.rows);
64841
+ },
64842
+ insertTableRow(beforeRowIndex) {
64843
+ if (!this.widget.rows || this.widget.rows.length === 0) {
64844
+ return;
64845
+ }
64846
+ this.addToRowIdData(beforeRowIndex);
64847
+ const newRowId = this.rowIdData[beforeRowIndex];
64848
+ const templateRow = this.widget.rows[0];
64849
+ const newRow = {
64850
+ id: "custom-table-row-" + generateId(),
64851
+ merged: false,
64852
+ cols: templateRow.cols.map((cell) => this.cloneCellWithFields(cell, newRowId))
64853
+ };
64854
+ this.widget.rows.splice(beforeRowIndex, 0, newRow);
64855
+ this.initRowFormData(newRow, beforeRowIndex);
64856
+ this.handleTableRowInsert(this.widget.rows, newRowId);
64857
+ this.handleTableRowChange(this.widget.rows);
64858
+ },
64859
+ deleteTableRow(rowIndex) {
64860
+ if (!this.widget.rows || rowIndex < 0 || rowIndex >= this.widget.rows.length) {
64861
+ return;
64862
+ }
64863
+ const deletedRow = deepClone(this.widget.rows[rowIndex]);
64864
+ this.widget.rows.splice(rowIndex, 1);
64865
+ this.deleteFromRowIdData(rowIndex);
64866
+ this.handleTableRowDelete(this.widget.rows, deletedRow);
64867
+ this.handleTableRowChange(this.widget.rows);
64868
+ },
64869
+ initRowFormData(row, rowIndex) {
64870
+ if (!row || !row.cols) {
64871
+ return;
64872
+ }
64873
+ row.cols.forEach((cell) => {
64874
+ if (cell.widgetList && cell.widgetList.length > 0) {
64875
+ cell.widgetList.forEach((fieldWidget2) => {
64876
+ if (fieldWidget2.formItemFlag && fieldWidget2.options && fieldWidget2.options.name) {
64877
+ const fieldName = fieldWidget2.options.name;
64878
+ if (this.formModel[fieldName] === void 0) {
64879
+ this.formModel[fieldName] = fieldWidget2.options.defaultValue !== void 0 ? fieldWidget2.options.defaultValue : null;
64880
+ }
64881
+ }
64882
+ });
64883
+ }
64884
+ });
64885
+ },
64886
+ initEventHandler() {
64887
+ this.on$("setFormData", (newFormData) => {
64888
+ this.initRowIdData();
64889
+ setTimeout(() => {
64890
+ this.handleTableRowChange(this.widget.rows);
64891
+ }, 800);
64892
+ });
64893
+ },
64894
+ handleTableRowChange(tableRows) {
64895
+ if (!!this.widget.options.onTableRowChange) {
64896
+ try {
64897
+ const customFunc = new Function("tableRows", this.widget.options.onTableRowChange);
64898
+ customFunc.call(this, tableRows);
64899
+ } catch (error) {
64900
+ console.error("Error executing onTableRowChange handler:", error);
64901
+ }
64902
+ }
64903
+ },
64904
+ handleTableRowAdd(tableRows, newRowId) {
64905
+ if (!!this.widget.options.onTableRowAdd) {
64906
+ try {
64907
+ const customFunc = new Function("tableRows", "newRowId", this.widget.options.onTableRowAdd);
64908
+ customFunc.call(this, tableRows, newRowId);
64909
+ } catch (error) {
64910
+ console.error("Error executing onTableRowAdd handler:", error);
64911
+ }
64912
+ }
64913
+ },
64914
+ handleTableRowInsert(tableRows, newRowId) {
64915
+ if (!!this.widget.options.onTableRowInsert) {
64916
+ try {
64917
+ const customFunc = new Function("tableRows", "newRowId", this.widget.options.onTableRowInsert);
64918
+ customFunc.call(this, tableRows, newRowId);
64919
+ } catch (error) {
64920
+ console.error("Error executing onTableRowInsert handler:", error);
64921
+ }
64922
+ }
64923
+ },
64924
+ handleTableRowDelete(tableRows, deletedRow) {
64925
+ if (!!this.widget.options.onTableRowDelete) {
64926
+ try {
64927
+ const customFunc = new Function("tableRows", "deletedRow", this.widget.options.onTableRowDelete);
64928
+ customFunc.call(this, tableRows, deletedRow);
64929
+ } catch (error) {
64930
+ console.error("Error executing onTableRowDelete handler:", error);
64931
+ }
64932
+ }
64933
+ }
64753
64934
  }
64754
64935
  };
64755
- const _hoisted_1$3 = { class: "custom-table-layout" };
64936
+ const _hoisted_1$3 = {
64937
+ key: 0,
64938
+ class: "table-actions"
64939
+ };
64940
+ const _hoisted_2$3 = { class: "custom-table-layout" };
64941
+ const _hoisted_3$3 = {
64942
+ key: 0,
64943
+ class: "row-actions-cell"
64944
+ };
64756
64945
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
64946
+ const _component_svg_icon = resolveComponent("svg-icon");
64947
+ const _component_el_button = resolveComponent("el-button");
64757
64948
  const _component_custom_table_cell_item = resolveComponent("custom-table-cell-item");
64758
64949
  const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
64759
64950
  return openBlock(), createBlock(_component_container_item_wrapper, { widget: $props.widget }, {
@@ -64762,17 +64953,57 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
64762
64953
  key: $props.widget.id,
64763
64954
  class: normalizeClass(["custom-table-container", $options.customClass])
64764
64955
  }, [
64765
- createElementVNode("table", _hoisted_1$3, [
64956
+ $props.widget.rows && $props.widget.rows.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
64957
+ createVNode(_component_el_button, {
64958
+ type: "primary",
64959
+ size: "small",
64960
+ onClick: $options.addTableRow,
64961
+ title: "\u6DFB\u52A0\u884C"
64962
+ }, {
64963
+ default: withCtx(() => [
64964
+ createVNode(_component_svg_icon, { "icon-class": "el-plus" }),
64965
+ _cache[0] || (_cache[0] = createTextVNode(" \u6DFB\u52A0\u884C ", -1))
64966
+ ]),
64967
+ _: 1
64968
+ }, 8, ["onClick"])
64969
+ ])) : createCommentVNode("", true),
64970
+ createElementVNode("table", _hoisted_2$3, [
64766
64971
  createElementVNode("tbody", null, [
64767
64972
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.rows, (row, rowIdx) => {
64768
64973
  return openBlock(), createElementBlock("tr", {
64769
- key: row.id
64974
+ key: $data.rowIdData[rowIdx] || row.id
64770
64975
  }, [
64976
+ $props.widget.rows.length > 0 ? (openBlock(), createElementBlock("td", _hoisted_3$3, [
64977
+ createVNode(_component_el_button, {
64978
+ type: "primary",
64979
+ size: "small",
64980
+ circle: "",
64981
+ onClick: ($event) => $options.insertTableRow(rowIdx),
64982
+ title: "\u5728\u6B64\u884C\u524D\u63D2\u5165"
64983
+ }, {
64984
+ default: withCtx(() => [
64985
+ createVNode(_component_svg_icon, { "icon-class": "el-plus" })
64986
+ ]),
64987
+ _: 1
64988
+ }, 8, ["onClick"]),
64989
+ createVNode(_component_el_button, {
64990
+ type: "danger",
64991
+ size: "small",
64992
+ circle: "",
64993
+ onClick: ($event) => $options.deleteTableRow(rowIdx),
64994
+ title: "\u5220\u9664\u6B64\u884C"
64995
+ }, {
64996
+ default: withCtx(() => [
64997
+ createVNode(_component_svg_icon, { "icon-class": "el-delete" })
64998
+ ]),
64999
+ _: 1
65000
+ }, 8, ["onClick"])
65001
+ ])) : createCommentVNode("", true),
64771
65002
  (openBlock(true), createElementBlock(Fragment, null, renderList(row.cols, (colWidget, colIdx) => {
64772
65003
  return openBlock(), createElementBlock(Fragment, null, [
64773
65004
  !colWidget.merged ? (openBlock(), createBlock(_component_custom_table_cell_item, {
64774
65005
  widget: colWidget,
64775
- key: colWidget.id,
65006
+ key: colWidget.id + "@row" + ($data.rowIdData[rowIdx] || ""),
64776
65007
  "parent-list": $props.widget.rows,
64777
65008
  "row-index": rowIdx,
64778
65009
  "col-index": colIdx,
@@ -64791,7 +65022,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
64791
65022
  _: 1
64792
65023
  }, 8, ["widget"]);
64793
65024
  }
64794
- var CustomTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-4cef94c0"]]);
65025
+ var CustomTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-1aff2bd9"]]);
64795
65026
  const subTableSchema = {
64796
65027
  type: "sub-table",
64797
65028
  category: "container",
@@ -65153,7 +65384,22 @@ const _sfc_main$2 = {
65153
65384
  this.editingIndex = index2;
65154
65385
  this.dialogTitle = "\u7F16\u8F91";
65155
65386
  this.dialogFormData = deepClone(row);
65387
+ if (!this.dialogFormData._columnOptions) {
65388
+ this.dialogFormData._columnOptions = {};
65389
+ }
65156
65390
  this.dialogVisible = true;
65391
+ this.$nextTick(() => {
65392
+ if (this.widget.options.columns) {
65393
+ this.widget.options.columns.forEach((col) => {
65394
+ if (col.dependOn && this.dialogFormData[col.dependOn]) {
65395
+ const dependCol = this.widget.options.columns.find((c) => c.prop === col.dependOn);
65396
+ if (dependCol) {
65397
+ this.handleColumnLinkage(col, dependCol, this.dialogFormData[col.dependOn]);
65398
+ }
65399
+ }
65400
+ });
65401
+ }
65402
+ });
65157
65403
  },
65158
65404
  handleDeleteRow(index2) {
65159
65405
  this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E00\u884C\u5417\uFF1F", "\u63D0\u793A", {
@@ -65176,6 +65422,7 @@ const _sfc_main$2 = {
65176
65422
  },
65177
65423
  initDialogFormData() {
65178
65424
  const formData = {};
65425
+ formData._columnOptions = {};
65179
65426
  if (this.widget.options.columns && this.widget.options.columns.length > 0) {
65180
65427
  this.widget.options.columns.forEach((col) => {
65181
65428
  formData[col.prop] = col.defaultValue !== void 0 ? col.defaultValue : "";
@@ -65202,6 +65449,12 @@ const _sfc_main$2 = {
65202
65449
  this.dialogFormRules = rules;
65203
65450
  },
65204
65451
  getColumnOptions(col) {
65452
+ if (this.dialogVisible && this.dialogFormData._columnOptions) {
65453
+ const rowOptions = this.dialogFormData._columnOptions[col.prop];
65454
+ if (rowOptions && Array.isArray(rowOptions) && rowOptions.length > 0) {
65455
+ return rowOptions;
65456
+ }
65457
+ }
65205
65458
  if (col.options && Array.isArray(col.options) && col.options.length > 0) {
65206
65459
  return col.options;
65207
65460
  }
@@ -65228,22 +65481,25 @@ const _sfc_main$2 = {
65228
65481
  handleDialogConfirm() {
65229
65482
  this.$refs.dialogFormRef.validate((valid) => {
65230
65483
  if (valid) {
65484
+ const rowData = deepClone(this.dialogFormData);
65485
+ if (rowData._columnOptions)
65486
+ ;
65231
65487
  if (this.editingIndex === -1) {
65232
- this.tableData.push(deepClone(this.dialogFormData));
65488
+ this.tableData.push(rowData);
65233
65489
  this.$message.success("\u6DFB\u52A0\u6210\u529F");
65234
65490
  if (this.widget.options.onRowAdd) {
65235
65491
  try {
65236
- new Function("rowData", this.widget.options.onRowAdd)(deepClone(this.dialogFormData));
65492
+ new Function("rowData", this.widget.options.onRowAdd)(deepClone(rowData));
65237
65493
  } catch (e) {
65238
65494
  console.error("\u6267\u884C\u6DFB\u52A0\u884C\u4E8B\u4EF6\u5931\u8D25:", e);
65239
65495
  }
65240
65496
  }
65241
65497
  } else {
65242
- this.tableData[this.editingIndex] = deepClone(this.dialogFormData);
65498
+ this.tableData[this.editingIndex] = rowData;
65243
65499
  this.$message.success("\u4FDD\u5B58\u6210\u529F");
65244
65500
  if (this.widget.options.onRowEdit) {
65245
65501
  try {
65246
- new Function("rowIndex", "rowData", this.widget.options.onRowEdit)(this.editingIndex, deepClone(this.dialogFormData));
65502
+ new Function("rowIndex", "rowData", this.widget.options.onRowEdit)(this.editingIndex, deepClone(rowData));
65247
65503
  } catch (e) {
65248
65504
  console.error("\u6267\u884C\u7F16\u8F91\u884C\u4E8B\u4EF6\u5931\u8D25:", e);
65249
65505
  }
@@ -65261,6 +65517,9 @@ const _sfc_main$2 = {
65261
65517
  (_a2 = this.$refs.dialogFormRef) == null ? void 0 : _a2.resetFields();
65262
65518
  this.dialogFormData = {};
65263
65519
  this.editingIndex = -1;
65520
+ if (this.dialogFormData._columnOptions) {
65521
+ this.dialogFormData._columnOptions = {};
65522
+ }
65264
65523
  },
65265
65524
  getValue() {
65266
65525
  return this.tableData;
@@ -65272,13 +65531,76 @@ const _sfc_main$2 = {
65272
65531
  }
65273
65532
  },
65274
65533
  getTableValue(row, col, $index) {
65275
- var _a2;
65276
65534
  if (col.type === "select") {
65277
- console.log(this.getColumnOptions(col));
65278
- return (_a2 = this.getColumnOptions(col).find((item) => item.value === row[col.prop])) == null ? void 0 : _a2.label;
65535
+ let options = [];
65536
+ if (row._columnOptions && row._columnOptions[col.prop] && Array.isArray(row._columnOptions[col.prop])) {
65537
+ options = row._columnOptions[col.prop];
65538
+ } else {
65539
+ options = this.getColumnOptions(col);
65540
+ }
65541
+ if (options && options.length > 0) {
65542
+ const option = options.find((item) => item.value === row[col.prop]);
65543
+ return option ? option.label : row[col.prop];
65544
+ }
65545
+ return row[col.prop];
65279
65546
  }
65280
65547
  return row[col.prop];
65281
65548
  },
65549
+ handleInputChange(col) {
65550
+ if (!col || !this.widget.options.columns) {
65551
+ return;
65552
+ }
65553
+ const currentValue = this.dialogFormData[col.prop];
65554
+ this.widget.options.columns.forEach((targetCol) => {
65555
+ if (targetCol.dependOn === col.prop && targetCol.type === "select") {
65556
+ this.handleColumnLinkage(targetCol, col, currentValue);
65557
+ }
65558
+ });
65559
+ if (col.onChange && col.onChange.trim()) {
65560
+ try {
65561
+ const setOptions = (newOptions) => {
65562
+ if (Array.isArray(newOptions)) {
65563
+ col.options = newOptions;
65564
+ if (col.optionsText !== void 0) {
65565
+ col.optionsText = JSON.stringify(newOptions, null, 2);
65566
+ }
65567
+ }
65568
+ };
65569
+ new Function("col", "value", "formData", "setOptions", col.onChange)(col, currentValue, this.dialogFormData, setOptions);
65570
+ } catch (e) {
65571
+ console.error(`\u6267\u884C\u5217 "${col.label || col.prop}" \u7684 onChange \u4E8B\u4EF6\u5931\u8D25:`, e);
65572
+ }
65573
+ }
65574
+ },
65575
+ handleColumnLinkage(targetCol, sourceCol, sourceValue) {
65576
+ if (!targetCol || !sourceCol || targetCol.type !== "select") {
65577
+ return;
65578
+ }
65579
+ if (targetCol.onDependChange && targetCol.onDependChange.trim()) {
65580
+ try {
65581
+ const currentValue = this.dialogFormData[targetCol.prop];
65582
+ const setOptions = (newOptions, index2 = 0) => {
65583
+ if (Array.isArray(newOptions)) {
65584
+ if (this.dialogVisible) {
65585
+ if (!this.dialogFormData._columnOptions) {
65586
+ this.dialogFormData._columnOptions = {};
65587
+ }
65588
+ this.dialogFormData._columnOptions[targetCol.prop] = [...newOptions];
65589
+ } else {
65590
+ targetCol.options = newOptions;
65591
+ if (targetCol.optionsText !== void 0) {
65592
+ targetCol.optionsText = JSON.stringify(newOptions, null, 2);
65593
+ }
65594
+ }
65595
+ }
65596
+ };
65597
+ const currentOptions = this.getColumnOptions(targetCol);
65598
+ new Function("targetCol", "sourceCol", "sourceValue", "formData", "currentOptions", "setOptions", targetCol.onDependChange)(targetCol, sourceCol, sourceValue, this.dialogFormData, currentOptions, setOptions);
65599
+ } catch (e) {
65600
+ console.error(`\u6267\u884C\u5217 "${targetCol.label || targetCol.prop}" \u7684\u8054\u52A8\u4E8B\u4EF6\u5931\u8D25:`, e);
65601
+ }
65602
+ }
65603
+ },
65282
65604
  handleSelectMounted(el, col) {
65283
65605
  if (el && col && col.onMounted && col.onMounted.trim()) {
65284
65606
  this.$nextTick(() => {
@@ -65480,15 +65802,17 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
65480
65802
  modelValue: $data.dialogFormData[col.prop],
65481
65803
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
65482
65804
  placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
65483
- disabled: $props.widget.options.disabled
65484
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "number" ? (openBlock(), createBlock(_component_el_input_number, {
65805
+ disabled: $props.widget.options.disabled,
65806
+ onChange: ($event) => $options.handleInputChange(col)
65807
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "number" ? (openBlock(), createBlock(_component_el_input_number, {
65485
65808
  key: 1,
65486
65809
  modelValue: $data.dialogFormData[col.prop],
65487
65810
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
65488
65811
  placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
65489
65812
  disabled: $props.widget.options.disabled,
65490
- style: { "width": "100%" }
65491
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "date" ? (openBlock(), createBlock(_component_el_date_picker, {
65813
+ style: { "width": "100%" },
65814
+ onChange: ($event) => $options.handleInputChange(col)
65815
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "date" ? (openBlock(), createBlock(_component_el_date_picker, {
65492
65816
  key: 2,
65493
65817
  modelValue: $data.dialogFormData[col.prop],
65494
65818
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
@@ -65496,8 +65820,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
65496
65820
  placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
65497
65821
  disabled: $props.widget.options.disabled,
65498
65822
  style: { "width": "100%" },
65499
- "value-format": "YYYY-MM-DD"
65500
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "datetime" ? (openBlock(), createBlock(_component_el_date_picker, {
65823
+ "value-format": "YYYY-MM-DD",
65824
+ onChange: ($event) => $options.handleInputChange(col)
65825
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "datetime" ? (openBlock(), createBlock(_component_el_date_picker, {
65501
65826
  key: 3,
65502
65827
  modelValue: $data.dialogFormData[col.prop],
65503
65828
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
@@ -65514,35 +65839,38 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
65514
65839
  placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
65515
65840
  disabled: $props.widget.options.disabled,
65516
65841
  style: { "width": "100%" },
65517
- "value-format": "YYYY-MM"
65518
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "select" ? (openBlock(), createBlock(_component_el_select, {
65519
- key: 5,
65842
+ "value-format": "YYYY-MM",
65843
+ onChange: ($event) => $options.handleInputChange(col)
65844
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "select" ? (openBlock(), createBlock(_component_el_select, {
65520
65845
  modelValue: $data.dialogFormData[col.prop],
65521
65846
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
65522
65847
  placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
65523
65848
  disabled: $props.widget.options.disabled,
65524
65849
  style: { "width": "100%" },
65525
65850
  ref_for: true,
65526
- ref: (el) => $options.handleSelectMounted(el, col)
65851
+ ref: (el) => $options.handleSelectMounted(el, col),
65852
+ onChange: ($event) => $options.handleInputChange(col),
65853
+ key: `select-${col.prop}-${$data.dialogFormData._columnOptions ? Object.keys($data.dialogFormData._columnOptions).length : 0}`
65527
65854
  }, {
65528
65855
  default: withCtx(() => [
65529
65856
  (openBlock(true), createElementBlock(Fragment, null, renderList($options.getColumnOptions(col), (option, optIdx) => {
65530
65857
  return openBlock(), createBlock(_component_el_option, {
65531
- key: optIdx,
65858
+ key: `${col.prop}-${optIdx}-${option.value}`,
65532
65859
  label: option.label,
65533
65860
  value: option.value
65534
65861
  }, null, 8, ["label", "value"]);
65535
65862
  }), 128))
65536
65863
  ]),
65537
65864
  _: 2
65538
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "textarea" ? (openBlock(), createBlock(_component_el_textarea, {
65865
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "onChange"])) : col.type === "textarea" ? (openBlock(), createBlock(_component_el_textarea, {
65539
65866
  key: 6,
65540
65867
  modelValue: $data.dialogFormData[col.prop],
65541
65868
  "onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
65542
65869
  placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
65543
65870
  disabled: $props.widget.options.disabled,
65544
- rows: col.rows || 3
65545
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "rows"])) : createCommentVNode("", true)
65871
+ rows: col.rows || 3,
65872
+ onChange: ($event) => $options.handleInputChange(col)
65873
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "rows", "onChange"])) : createCommentVNode("", true)
65546
65874
  ]),
65547
65875
  _: 2
65548
65876
  }, 1032, ["label", "prop", "required"]);
@@ -65560,7 +65888,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
65560
65888
  _: 1
65561
65889
  }, 8, ["widget"]);
65562
65890
  }
65563
- var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-03803496"]]);
65891
+ var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-05fd5c66"]]);
65564
65892
  var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
65565
65893
  const _sfc_main$1 = {
65566
65894
  name: "sub-table-columns-editor",
@@ -65630,6 +65958,7 @@ const _sfc_main$1 = {
65630
65958
  this.designer.saveCurrentHistoryStep();
65631
65959
  },
65632
65960
  loadDictOptionsForColumn(col) {
65961
+ console.log(col, "col");
65633
65962
  if (!col.dictCode || !col.dictCode.trim()) {
65634
65963
  return;
65635
65964
  }
@@ -65975,8 +66304,115 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
65975
66304
  ]),
65976
66305
  _: 2
65977
66306
  }, 1024)) : createCommentVNode("", true),
65978
- col.type === "textarea" ? (openBlock(), createBlock(_component_el_form_item, {
66307
+ col.type === "select" ? (openBlock(), createBlock(_component_el_form_item, {
65979
66308
  key: 3,
66309
+ label: "\u4F9D\u8D56\u5217\uFF08\u8054\u52A8\uFF09"
66310
+ }, {
66311
+ default: withCtx(() => [
66312
+ createVNode(_component_el_select, {
66313
+ modelValue: col.dependOn,
66314
+ "onUpdate:modelValue": ($event) => col.dependOn = $event,
66315
+ placeholder: "\u9009\u62E9\u4F9D\u8D56\u7684\u5217\uFF08\u5F53\u4F9D\u8D56\u5217\u53D8\u5316\u65F6\uFF0C\u6B64\u5217\u7684\u4E0B\u62C9\u9009\u9879\u4F1A\u66F4\u65B0\uFF09",
66316
+ clearable: "",
66317
+ filterable: "",
66318
+ style: { "width": "100%" },
66319
+ onChange: $options.handleColumnChange
66320
+ }, {
66321
+ default: withCtx(() => [
66322
+ (openBlock(true), createElementBlock(Fragment, null, renderList($props.optionModel.columns, (otherCol, otherIdx) => {
66323
+ return openBlock(), createBlock(_component_el_option, {
66324
+ key: otherIdx,
66325
+ label: otherCol.label || otherCol.prop,
66326
+ value: otherCol.prop,
66327
+ disabled: otherCol.prop === col.prop
66328
+ }, null, 8, ["label", "value", "disabled"]);
66329
+ }), 128))
66330
+ ]),
66331
+ _: 2
66332
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]),
66333
+ _cache[8] || (_cache[8] = createElementVNode("div", {
66334
+ class: "hint-text",
66335
+ style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
66336
+ }, " \u9009\u62E9\u4F9D\u8D56\u7684\u5217\uFF0C\u5F53\u4F9D\u8D56\u5217\u7684\u503C\u53D8\u5316\u65F6\uFF0C\u4F1A\u89E6\u53D1\u6B64\u5217\u7684\u8054\u52A8\u4E8B\u4EF6\u66F4\u65B0\u4E0B\u62C9\u9009\u9879 ", -1))
66337
+ ]),
66338
+ _: 2
66339
+ }, 1024)) : createCommentVNode("", true),
66340
+ col.type === "select" && col.dependOn ? (openBlock(), createBlock(_component_el_form_item, {
66341
+ key: 4,
66342
+ label: "\u8054\u52A8\u5904\u7406\u51FD\u6570"
66343
+ }, {
66344
+ default: withCtx(() => [
66345
+ createVNode(_component_el_button, {
66346
+ type: "info",
66347
+ icon: "el-icon-edit",
66348
+ plain: "",
66349
+ round: "",
66350
+ onClick: ($event) => $options.editColumnEventHandler(col, "onDependChange", ["targetCol", "sourceCol", "sourceValue", "formData", "currentOptions", "setOptions"])
66351
+ }, {
66352
+ default: withCtx(() => [
66353
+ createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addEventHandler")), 1)
66354
+ ]),
66355
+ _: 1
66356
+ }, 8, ["onClick"]),
66357
+ _cache[9] || (_cache[9] = createElementVNode("div", {
66358
+ class: "hint-text",
66359
+ style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
66360
+ }, [
66361
+ createTextVNode(" \u5F53\u4F9D\u8D56\u5217\u7684\u503C\u53D8\u5316\u65F6\u89E6\u53D1\uFF0C\u53C2\u6570\uFF1A "),
66362
+ createElementVNode("br"),
66363
+ createTextVNode("- targetCol\uFF1A\u5F53\u524D\u5217\u914D\u7F6E\u5BF9\u8C61 "),
66364
+ createElementVNode("br"),
66365
+ createTextVNode("- sourceCol\uFF1A\u4F9D\u8D56\u7684\u5217\u914D\u7F6E\u5BF9\u8C61 "),
66366
+ createElementVNode("br"),
66367
+ createTextVNode("- sourceValue\uFF1A\u4F9D\u8D56\u5217\u7684\u503C "),
66368
+ createElementVNode("br"),
66369
+ createTextVNode("- formData\uFF1A\u5F53\u524D\u8868\u5355\u6570\u636E\u5BF9\u8C61 "),
66370
+ createElementVNode("br"),
66371
+ createTextVNode("- currentOptions\uFF1A\u5F53\u524D\u9009\u9879\u6570\u7EC4 "),
66372
+ createElementVNode("br"),
66373
+ createTextVNode("- setOptions\uFF1A\u8BBE\u7F6E\u9009\u9879\u7684\u65B9\u6CD5 (newOptions, index) "),
66374
+ 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 "),
66376
+ createElementVNode("br"),
66377
+ createTextVNode("if (sourceValue === '1') { "),
66378
+ createElementVNode("br"),
66379
+ createTextVNode("\xA0\xA0setOptions([{label: '\u9009\u9879A', value: 'a'}, {label: '\u9009\u9879B', value: 'b'}]); "),
66380
+ createElementVNode("br"),
66381
+ createTextVNode("} else { "),
66382
+ createElementVNode("br"),
66383
+ createTextVNode("\xA0\xA0setOptions([{label: '\u9009\u9879C', value: 'c'}, {label: '\u9009\u9879D', value: 'd'}]); "),
66384
+ createElementVNode("br"),
66385
+ createTextVNode("} "),
66386
+ createElementVNode("br"),
66387
+ 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 ")
66389
+ ], -1))
66390
+ ]),
66391
+ _: 2
66392
+ }, 1024)) : createCommentVNode("", true),
66393
+ createVNode(_component_el_form_item, { label: "onChange\u4E8B\u4EF6" }, {
66394
+ default: withCtx(() => [
66395
+ createVNode(_component_el_button, {
66396
+ type: "info",
66397
+ icon: "el-icon-edit",
66398
+ plain: "",
66399
+ round: "",
66400
+ onClick: ($event) => $options.editColumnEventHandler(col, "onChange", ["col", "value", "formData", "setOptions"])
66401
+ }, {
66402
+ default: withCtx(() => [
66403
+ createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addEventHandler")), 1)
66404
+ ]),
66405
+ _: 1
66406
+ }, 8, ["onClick"]),
66407
+ _cache[10] || (_cache[10] = createElementVNode("div", {
66408
+ class: "hint-text",
66409
+ style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
66410
+ }, " \u5F53\u524D\u5217\u7684\u503C\u53D8\u5316\u65F6\u89E6\u53D1\uFF0C\u53C2\u6570\uFF1Acol\uFF08\u5217\u914D\u7F6E\u5BF9\u8C61\uFF09\u3001value\uFF08\u5F53\u524D\u503C\uFF09\u3001formData\uFF08\u8868\u5355\u6570\u636E\uFF09\u3001setOptions\uFF08\u8BBE\u7F6E\u9009\u9879\u7684\u65B9\u6CD5\uFF0C\u4EC5select\u7C7B\u578B\u53EF\u7528\uFF09 ", -1))
66411
+ ]),
66412
+ _: 2
66413
+ }, 1024),
66414
+ col.type === "textarea" ? (openBlock(), createBlock(_component_el_form_item, {
66415
+ key: 5,
65980
66416
  label: "\u884C\u6570"
65981
66417
  }, {
65982
66418
  default: withCtx(() => [
@@ -65999,7 +66435,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
65999
66435
  type: "primary",
66000
66436
  onClick: $options.addNewColumn
66001
66437
  }, {
66002
- default: withCtx(() => [..._cache[8] || (_cache[8] = [
66438
+ default: withCtx(() => [..._cache[11] || (_cache[11] = [
66003
66439
  createTextVNode("\u6DFB\u52A0\u5217", -1)
66004
66440
  ])]),
66005
66441
  _: 1
@@ -66022,7 +66458,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
66022
66458
  createVNode(_component_el_button, {
66023
66459
  onClick: _cache[1] || (_cache[1] = ($event) => $data.showColumnEventDialog = false)
66024
66460
  }, {
66025
- default: withCtx(() => [..._cache[9] || (_cache[9] = [
66461
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [
66026
66462
  createTextVNode("\u53D6\u6D88", -1)
66027
66463
  ])]),
66028
66464
  _: 1
@@ -66031,7 +66467,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
66031
66467
  type: "primary",
66032
66468
  onClick: $options.saveColumnEventHandler
66033
66469
  }, {
66034
- default: withCtx(() => [..._cache[10] || (_cache[10] = [
66470
+ default: withCtx(() => [..._cache[13] || (_cache[13] = [
66035
66471
  createTextVNode("\u786E\u5B9A", -1)
66036
66472
  ])]),
66037
66473
  _: 1
@@ -66057,7 +66493,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
66057
66493
  }, 8, ["modelValue", "title"])
66058
66494
  ], 64);
66059
66495
  }
66060
- var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-3908a6b2"]]);
66496
+ var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-b6036036"]]);
66061
66497
  const _sfc_main = {
66062
66498
  name: "current-user-widget",
66063
66499
  componentName: "FieldWidget",
@@ -66086,10 +66522,6 @@ const _sfc_main = {
66086
66522
  subFormRowId: {
66087
66523
  type: String,
66088
66524
  default: ""
66089
- },
66090
- currentUserType: {
66091
- type: String,
66092
- default: "username"
66093
66525
  }
66094
66526
  },
66095
66527
  components: {
@@ -66107,6 +66539,10 @@ const _sfc_main = {
66107
66539
  return {
66108
66540
  width: this.field.options.columnWidth || "auto"
66109
66541
  };
66542
+ },
66543
+ currentUserType() {
66544
+ var _a2;
66545
+ return ((_a2 = this.field.options) == null ? void 0 : _a2.type) || "username";
66110
66546
  }
66111
66547
  },
66112
66548
  methods: {
@@ -66115,6 +66551,7 @@ const _sfc_main = {
66115
66551
  method: "get",
66116
66552
  url: "unified-system/employee/loginInfo?accessType=0"
66117
66553
  });
66554
+ console.log(this.currentUserType, "data");
66118
66555
  if (this.currentUserType === "username") {
66119
66556
  this.fieldModel = data2.username;
66120
66557
  } else if (this.currentUserType === "deptName") {
@@ -66134,6 +66571,13 @@ const _sfc_main = {
66134
66571
  },
66135
66572
  "field.options.onValidate"() {
66136
66573
  this.buildFieldRules();
66574
+ },
66575
+ "field.options.type": {
66576
+ handler(newVal, oldVal) {
66577
+ console.log(newVal, "currentUserType changed from", oldVal, "to", newVal);
66578
+ this.getCurrentUser();
66579
+ },
66580
+ immediate: false
66137
66581
  }
66138
66582
  },
66139
66583
  created() {
@@ -66274,8 +66718,8 @@ VFormDesigner.install = function(app) {
66274
66718
  registerIcon(app);
66275
66719
  app.component("draggable", Draggable);
66276
66720
  app.component(VFormDesigner.name, VFormDesigner);
66277
- app.config.globalProperties.$service = service$1;
66278
- app.provide("service", service$1);
66721
+ app.config.globalProperties.$service = service;
66722
+ app.provide("service", service);
66279
66723
  app.config.globalProperties.$cookies = cookies;
66280
66724
  app.provide("cookies", cookies);
66281
66725
  };
@@ -66284,8 +66728,8 @@ VFormRender.install = function(app) {
66284
66728
  app.use(ContainerItems);
66285
66729
  registerIcon(app);
66286
66730
  app.component(VFormRender.name, VFormRender);
66287
- app.config.globalProperties.$service = service$1;
66288
- app.provide("service", service$1);
66731
+ app.config.globalProperties.$service = service;
66732
+ app.provide("service", service);
66289
66733
  app.config.globalProperties.$cookies = cookies;
66290
66734
  app.provide("cookies", cookies);
66291
66735
  };
@@ -66303,11 +66747,11 @@ const install = (app) => {
66303
66747
  components.forEach((component) => {
66304
66748
  app.component(component.name, component);
66305
66749
  });
66306
- app.config.globalProperties.$service = service$1;
66307
- app.provide("service", service$1);
66750
+ app.config.globalProperties.$service = service;
66751
+ app.provide("service", service);
66308
66752
  window.axios = axios;
66309
66753
  if (typeof window !== "undefined") {
66310
- window.service = service$1;
66754
+ window.service = service;
66311
66755
  }
66312
66756
  };
66313
66757
  var install$1 = {