zhytech-ui 1.0.27 → 1.0.28

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.
@@ -1103,8 +1103,8 @@ const Si = {
1103
1103
  p.children.splice(f, 1), p.children.length === 1 && (p.itemID = p.children[0].itemID, p.condition = p.children[0].condition, p.value = p.children[0].value, p.children = void 0);
1104
1104
  };
1105
1105
  return (p, f) => {
1106
- var D, x, $;
1107
- const c = V("el-switch"), C = V("filter-item", !0), g = we, b = V("el-option"), y = V("el-select"), M = V("el-cascader"), w = V("el-input");
1106
+ var D, C, $;
1107
+ const c = V("el-switch"), x = V("filter-item", !0), g = we, b = V("el-option"), y = V("el-select"), M = V("el-cascader"), w = V("el-input");
1108
1108
  return i(l) ? (h(), E("div", Si, [
1109
1109
  S("div", ki, [
1110
1110
  t.showConditionType ? (h(), E(te, { key: 0 }, [
@@ -1123,7 +1123,7 @@ const Si = {
1123
1123
  ]),
1124
1124
  (D = i(l).children) != null && D.length ? (h(), E("div", zi, [
1125
1125
  S("div", $i, [
1126
- (h(!0), E(te, null, ve(i(l).children, (I, B) => (h(), z(C, {
1126
+ (h(!0), E(te, null, ve(i(l).children, (I, B) => (h(), z(x, {
1127
1127
  key: B,
1128
1128
  modelValue: i(l).children[B],
1129
1129
  "onUpdate:modelValue": (F) => i(l).children[B] = F,
@@ -1181,7 +1181,7 @@ const Si = {
1181
1181
  _: 1
1182
1182
  }, 8, ["modelValue"]),
1183
1183
  S("div", Ai, [
1184
- i(l).condition === "EMPTY" ? (h(), E(te, { key: 0 }, [], 64)) : ((x = t.conditionProps[i(l).itemID]) == null ? void 0 : x.type) === i(xe).SELECTOR ? (h(), z(y, {
1184
+ i(l).condition === "EMPTY" ? (h(), E(te, { key: 0 }, [], 64)) : ((C = t.conditionProps[i(l).itemID]) == null ? void 0 : C.type) === i(xe).SELECTOR ? (h(), z(y, {
1185
1185
  key: 1,
1186
1186
  modelValue: i(l).value,
1187
1187
  "onUpdate:modelValue": f[6] || (f[6] = (I) => i(l).value = I),
@@ -1265,15 +1265,15 @@ function Ie() {
1265
1265
  }, s = (r, d, u, v) => {
1266
1266
  let p = [], f = [];
1267
1267
  return d ? (d.forEach((c) => {
1268
- const C = c[u];
1269
- if (C === r) {
1270
- f.unshift(c), p.unshift(C);
1268
+ const x = c[u];
1269
+ if (x === r) {
1270
+ f.unshift(c), p.unshift(x);
1271
1271
  return;
1272
1272
  }
1273
1273
  const g = s(r, c[v], u, v);
1274
1274
  if (g != null && g.length) {
1275
1275
  const b = g[0], y = g[1];
1276
- b != null && b.length && (p.unshift(C), p = [...p, ...b]), y.length && (f.unshift(c), f = [...f, ...y]);
1276
+ b != null && b.length && (p.unshift(x), p = [...p, ...b]), y.length && (f.unshift(c), f = [...f, ...y]);
1277
1277
  }
1278
1278
  }), [p, f]) : p;
1279
1279
  };
@@ -1344,8 +1344,8 @@ function Ie() {
1344
1344
  return Me("error", `无效${c},请重新选择!`), !1;
1345
1345
  if (p && r.type.indexOf("image") === -1)
1346
1346
  return Me("error", "不是有效的图片文件或图片格式不支持,请重新选择!"), !1;
1347
- const C = a[v.toLowerCase()](u);
1348
- return f > C ? (Me("error", `最大可以上传${u}${v}的${c},请重新选择!`), !1) : ((d == null ? void 0 : d.findIndex((b) => b.name === r.name)) ?? -1) !== -1 ? (Me("error", `${c}重复,请重新选择!`), !1) : !0;
1347
+ const x = a[v.toLowerCase()](u);
1348
+ return f > x ? (Me("error", `最大可以上传${u}${v}的${c},请重新选择!`), !1) : ((d == null ? void 0 : d.findIndex((b) => b.name === r.name)) ?? -1) !== -1 ? (Me("error", `${c}重复,请重新选择!`), !1) : !0;
1349
1349
  },
1350
1350
  /**
1351
1351
  * @description: 根据传入值获取:①对应节点所在的各级菜单的值所组成的数组(多选为二维数组)②对应节点的对象(多选为对象数组)
@@ -1360,21 +1360,21 @@ function Ie() {
1360
1360
  let f = [], c = [];
1361
1361
  if (!r || !d.length)
1362
1362
  return [f, c];
1363
- let C = [];
1364
- p ? C = r : C.push(r);
1363
+ let x = [];
1364
+ p ? x = r : x.push(r);
1365
1365
  let g = [], b = [];
1366
- return C.forEach((y) => {
1366
+ return x.forEach((y) => {
1367
1367
  let M = [], w = [];
1368
1368
  d.forEach((D) => {
1369
- const x = D[u];
1370
- if (x === y) {
1371
- M.unshift(x), w.unshift(D);
1369
+ const C = D[u];
1370
+ if (C === y) {
1371
+ M.unshift(C), w.unshift(D);
1372
1372
  return;
1373
1373
  }
1374
1374
  const $ = s(y, D[v], u, v);
1375
1375
  if ($ != null && $.length) {
1376
1376
  const I = $[0], B = $[1];
1377
- I != null && I.length && (M.unshift(x), M = [...M, ...I]), B.length && (w.unshift(D), w = [...w, ...B]);
1377
+ I != null && I.length && (M.unshift(C), M = [...M, ...I]), B.length && (w.unshift(D), w = [...w, ...B]);
1378
1378
  }
1379
1379
  }), g.push(M), b.push(w);
1380
1380
  }), p ? (f = g, b.forEach((y) => {
@@ -1498,11 +1498,11 @@ const Ti = { class: "dynamic-filter no-rem" }, Oi = {
1498
1498
  var B, F, O, P, J, R;
1499
1499
  let y = "";
1500
1500
  const M = l.items.find((G) => G.id === g.itemID);
1501
- let w = "label", D = "value", x = (B = p.get(g.condition)) == null ? void 0 : B.expression.replace("{id}", `{${g.itemID}}`), $ = (F = p.get(g.condition)) == null ? void 0 : F.content.replace("{id}", w.replace("label", M == null ? void 0 : M.label)), I = [];
1501
+ let w = "label", D = "value", C = (B = p.get(g.condition)) == null ? void 0 : B.expression.replace("{id}", `{${g.itemID}}`), $ = (F = p.get(g.condition)) == null ? void 0 : F.content.replace("{id}", w.replace("label", M == null ? void 0 : M.label)), I = [];
1502
1502
  if (l.conditionProps[M == null ? void 0 : M.id].type === "selector" && (I = l.conditionProps[M == null ? void 0 : M.id].options), g.condition === "RANGE") {
1503
1503
  const G = g.value.split(",");
1504
1504
  if (b)
1505
- y = x == null ? void 0 : x.replace("{value1}", G[0]).replace("{value2}", G[1]);
1505
+ y = C == null ? void 0 : C.replace("{value1}", G[0]).replace("{value2}", G[1]);
1506
1506
  else {
1507
1507
  let oe = "", ce = "";
1508
1508
  I.length ? (oe = (O = I.find((ge) => ge.value === G[0])) == null ? void 0 : O.label, ce = (P = I.find((ge) => ge.value === G[1])) == null ? void 0 : P.label) : (oe = D.replace("value", G[0]), ce = D.replace("value", G[1])), y = $ == null ? void 0 : $.replace("{value1}", oe).replace("{value2}", ce);
@@ -1511,7 +1511,7 @@ const Ti = { class: "dynamic-filter no-rem" }, Oi = {
1511
1511
  }
1512
1512
  if (b) {
1513
1513
  let [G, oe] = c(g);
1514
- y = x == null ? void 0 : x.replace("{value}", G);
1514
+ y = C == null ? void 0 : C.replace("{value}", G);
1515
1515
  } else {
1516
1516
  let G = "";
1517
1517
  if (I.length)
@@ -1528,7 +1528,7 @@ const Ti = { class: "dynamic-filter no-rem" }, Oi = {
1528
1528
  }, c = (g) => {
1529
1529
  let b = g.value, y = typeof g.value != "string";
1530
1530
  return y && (b = g.value.map((M) => M.at(-1))), [b, y];
1531
- }, C = (g) => {
1531
+ }, x = (g) => {
1532
1532
  let b = {
1533
1533
  filterConditionExpression: "",
1534
1534
  filterConditionContent: "",
@@ -1536,12 +1536,12 @@ const Ti = { class: "dynamic-filter no-rem" }, Oi = {
1536
1536
  message: ""
1537
1537
  };
1538
1538
  return g.forEach((y, M) => {
1539
- var x;
1539
+ var C;
1540
1540
  if (b.message)
1541
1541
  return b;
1542
1542
  const w = u(y.conditionType, !1), D = u(y.conditionType, !0);
1543
- if ((x = y.children) != null && x.length) {
1544
- const $ = C(y.children);
1543
+ if ((C = y.children) != null && C.length) {
1544
+ const $ = x(y.children);
1545
1545
  if ($.message)
1546
1546
  return b.message = `第${M + 1}行子条件的${$.message}`, b;
1547
1547
  b.filterConditionExpression += `${M === 0 ? "" : D}(${$.filterConditionExpression})`, b.filterConditionContent += `${M === 0 ? "" : w}(${$.filterConditionContent})`, b.filterConditions.push({
@@ -1565,7 +1565,7 @@ const Ti = { class: "dynamic-filter no-rem" }, Oi = {
1565
1565
  * @description: 获取过滤条件
1566
1566
  */
1567
1567
  getFilterData: () => {
1568
- const g = C(s.value);
1568
+ const g = x(s.value);
1569
1569
  return g.message && (g.filterConditionExpression = "", g.filterConditionContent = "", g.filterConditions = [], Me("error", g.message)), g;
1570
1570
  }
1571
1571
  }), (g, b) => {
@@ -1805,8 +1805,8 @@ function ue(t, o, e, n, l) {
1805
1805
  }
1806
1806
  while (l = l.parentNode);
1807
1807
  if (n && t !== window) {
1808
- var c = pt(l || t), C = c && c.a, g = c && c.d;
1809
- c && (s /= g, r /= C, p /= C, v /= g, d = s + v, u = r + p);
1808
+ var c = pt(l || t), x = c && c.a, g = c && c.d;
1809
+ c && (s /= g, r /= x, p /= x, v /= g, d = s + v, u = r + p);
1810
1810
  }
1811
1811
  return {
1812
1812
  top: s,
@@ -1974,9 +1974,9 @@ function Ji() {
1974
1974
  }
1975
1975
  var a = !1, s = 0;
1976
1976
  t.forEach(function(r) {
1977
- var d = 0, u = r.target, v = u.fromRect, p = ue(u), f = u.prevFromRect, c = u.prevToRect, C = r.rect, g = pt(u, !0);
1977
+ var d = 0, u = r.target, v = u.fromRect, p = ue(u), f = u.prevFromRect, c = u.prevToRect, x = r.rect, g = pt(u, !0);
1978
1978
  g && (p.top -= g.f, p.left -= g.e), u.toRect = p, u.thisAnimationDuration && yo(f, p) && !yo(v, p) && // Make sure animatingRect is on line between toRect & fromRect
1979
- (C.top - p.top) / (C.left - p.left) === (v.top - p.top) / (v.left - p.left) && (d = Zi(C, f, c, l.options)), yo(p, v) || (u.prevFromRect = v, u.prevToRect = p, d || (d = l.options.animation), l.animate(u, C, p, d)), d && (a = !0, s = Math.max(s, d), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1979
+ (x.top - p.top) / (x.left - p.left) === (v.top - p.top) / (v.left - p.left) && (d = Zi(x, f, c, l.options)), yo(p, v) || (u.prevFromRect = v, u.prevToRect = p, d || (d = l.options.animation), l.animate(u, x, p, d)), d && (a = !0, s = Math.max(s, d), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
1980
1980
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
1981
1981
  }, d), u.thisAnimationDuration = d);
1982
1982
  }), clearTimeout(o), a ? o = setTimeout(function() {
@@ -2053,14 +2053,14 @@ var ht = [], Co = {
2053
2053
  }
2054
2054
  };
2055
2055
  function Mt(t) {
2056
- var o = t.sortable, e = t.rootEl, n = t.name, l = t.targetEl, a = t.cloneEl, s = t.toEl, r = t.fromEl, d = t.oldIndex, u = t.newIndex, v = t.oldDraggableIndex, p = t.newDraggableIndex, f = t.originalEvent, c = t.putSortable, C = t.extraEventProperties;
2056
+ var o = t.sortable, e = t.rootEl, n = t.name, l = t.targetEl, a = t.cloneEl, s = t.toEl, r = t.fromEl, d = t.oldIndex, u = t.newIndex, v = t.oldDraggableIndex, p = t.newDraggableIndex, f = t.originalEvent, c = t.putSortable, x = t.extraEventProperties;
2057
2057
  if (o = o || e && e[ze], !!o) {
2058
2058
  var g, b = o.options, y = "on" + n.charAt(0).toUpperCase() + n.substr(1);
2059
2059
  window.CustomEvent && !Ze && !Nt ? g = new CustomEvent(n, {
2060
2060
  bubbles: !0,
2061
2061
  cancelable: !0
2062
2062
  }) : (g = document.createEvent("Event"), g.initEvent(n, !0, !0)), g.to = s || e, g.from = r || e, g.item = l || e, g.clone = a, g.oldIndex = d, g.newIndex = u, g.oldDraggableIndex = v, g.newDraggableIndex = p, g.originalEvent = f, g.pullMode = c ? c.lastPutMode : void 0;
2063
- var M = Xe(Xe({}, C), Bt.getEventProperties(n, o));
2063
+ var M = Xe(Xe({}, x), Bt.getEventProperties(n, o));
2064
2064
  for (var w in M)
2065
2065
  g[w] = M[w];
2066
2066
  e && e.dispatchEvent(g), b[y] && b[y].call(o, g);
@@ -2433,11 +2433,11 @@ H.prototype = /** @lends Sortable.prototype */
2433
2433
  },
2434
2434
  // Returns true - if no further action is needed (either inserted or another condition)
2435
2435
  _onDragOver: function(o) {
2436
- var e = this.el, n = o.target, l, a, s, r = this.options, d = r.group, u = H.active, v = Yt === d, p = r.sort, f = Se || u, c, C = this, g = !1;
2436
+ var e = this.el, n = o.target, l, a, s, r = this.options, d = r.group, u = H.active, v = Yt === d, p = r.sort, f = Se || u, c, x = this, g = !1;
2437
2437
  if (Io)
2438
2438
  return;
2439
2439
  function b(Ve, it) {
2440
- Te(Ve, C, Xe({
2440
+ Te(Ve, x, Xe({
2441
2441
  evt: o,
2442
2442
  isOwner: v,
2443
2443
  axis: c ? "vertical" : "horizontal",
@@ -2455,18 +2455,18 @@ H.prototype = /** @lends Sortable.prototype */
2455
2455
  }, it));
2456
2456
  }
2457
2457
  function y() {
2458
- b("dragOverAnimationCapture"), C.captureAnimationState(), C !== f && f.captureAnimationState();
2458
+ b("dragOverAnimationCapture"), x.captureAnimationState(), x !== f && f.captureAnimationState();
2459
2459
  }
2460
2460
  function M(Ve) {
2461
2461
  return b("dragOverCompleted", {
2462
2462
  insertion: Ve
2463
- }), Ve && (v ? u._hideClone() : u._showClone(C), C !== f && (he(L, Se ? Se.options.ghostClass : u.options.ghostClass, !1), he(L, r.ghostClass, !0)), Se !== C && C !== H.active ? Se = C : C === H.active && Se && (Se = null), f === C && (C._ignoreWhileAnimating = n), C.animateAll(function() {
2464
- b("dragOverAnimationComplete"), C._ignoreWhileAnimating = null;
2465
- }), C !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === L && !L.animated || n === e && !n.animated) && (vt = null), !r.dragoverBubble && !o.rootEl && n !== document && (L.parentNode[ze]._isOutsideThisEl(o.target), !Ve && dt(o)), !r.dragoverBubble && o.stopPropagation && o.stopPropagation(), g = !0;
2463
+ }), Ve && (v ? u._hideClone() : u._showClone(x), x !== f && (he(L, Se ? Se.options.ghostClass : u.options.ghostClass, !1), he(L, r.ghostClass, !0)), Se !== x && x !== H.active ? Se = x : x === H.active && Se && (Se = null), f === x && (x._ignoreWhileAnimating = n), x.animateAll(function() {
2464
+ b("dragOverAnimationComplete"), x._ignoreWhileAnimating = null;
2465
+ }), x !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === L && !L.animated || n === e && !n.animated) && (vt = null), !r.dragoverBubble && !o.rootEl && n !== document && (L.parentNode[ze]._isOutsideThisEl(o.target), !Ve && dt(o)), !r.dragoverBubble && o.stopPropagation && o.stopPropagation(), g = !0;
2466
2466
  }
2467
2467
  function w() {
2468
2468
  Fe = be(L), tt = be(L, r.draggable), Ae({
2469
- sortable: C,
2469
+ sortable: x,
2470
2470
  name: "change",
2471
2471
  toEl: e,
2472
2472
  newIndex: Fe,
@@ -2476,7 +2476,7 @@ H.prototype = /** @lends Sortable.prototype */
2476
2476
  }
2477
2477
  if (o.preventDefault !== void 0 && o.cancelable && o.preventDefault(), n = Be(n, r.draggable, e, !0), b("dragOver"), H.eventCanceled)
2478
2478
  return g;
2479
- if (L.contains(o.target) || n.animated && n.animatingX && n.animatingY || C._ignoreWhileAnimating === n)
2479
+ if (L.contains(o.target) || n.animated && n.animatingX && n.animatingY || x._ignoreWhileAnimating === n)
2480
2480
  return M(!1);
2481
2481
  if (co = !1, u && !r.disabled && (v ? p || (s = _e !== pe) : Se === this || (this.lastPutMode = Yt.checkPull(this, u, L, o)) && d.checkPut(this, u, L, o))) {
2482
2482
  if (c = this._getDirection(o, n) === "vertical", l = ue(L), b("dragOverValid"), H.eventCanceled)
@@ -2490,11 +2490,11 @@ H.prototype = /** @lends Sortable.prototype */
2490
2490
  if (D && e === o.target && (n = D), n && (a = ue(n)), Kt(pe, e, L, l, n, a, o, !!n) !== !1)
2491
2491
  return y(), D && D.nextSibling ? e.insertBefore(L, D.nextSibling) : e.appendChild(L), _e = e, w(), M(!0);
2492
2492
  } else if (D && a2(o, c, this)) {
2493
- var x = Ct(e, 0, r, !0);
2494
- if (x === L)
2493
+ var C = Ct(e, 0, r, !0);
2494
+ if (C === L)
2495
2495
  return M(!1);
2496
- if (n = x, a = ue(n), Kt(pe, e, L, l, n, a, o, !1) !== !1)
2497
- return y(), e.insertBefore(L, x), _e = e, w(), M(!0);
2496
+ if (n = C, a = ue(n), Kt(pe, e, L, l, n, a, o, !1) !== !1)
2497
+ return y(), e.insertBefore(L, C), _e = e, w(), M(!0);
2498
2498
  } else if (n.parentNode === e) {
2499
2499
  a = ue(n);
2500
2500
  var $ = 0, I, B = L.parentNode !== e, F = !t2(L.animated && L.toRect || l, n.animated && n.toRect || a, c), O = c ? "top" : "left", P = Qo(n, "top", "top") || Qo(L, "top", "top"), J = P ? P.scrollTop : void 0;
@@ -2845,9 +2845,9 @@ var Mo = _n(function(t, o, e, n) {
2845
2845
  Lo !== e && (Lo = e, ao(), $t = o.scroll, v = o.scrollFn, $t === !0 && ($t = nt(e, !0)));
2846
2846
  var p = 0, f = $t;
2847
2847
  do {
2848
- var c = f, C = ue(c), g = C.top, b = C.bottom, y = C.left, M = C.right, w = C.width, D = C.height, x = void 0, $ = void 0, I = c.scrollWidth, B = c.scrollHeight, F = U(c), O = c.scrollLeft, P = c.scrollTop;
2849
- c === d ? (x = w < I && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), $ = D < B && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (x = w < I && (F.overflowX === "auto" || F.overflowX === "scroll"), $ = D < B && (F.overflowY === "auto" || F.overflowY === "scroll"));
2850
- var J = x && (Math.abs(M - l) <= s && O + w < I) - (Math.abs(y - l) <= s && !!O), R = $ && (Math.abs(b - a) <= s && P + D < B) - (Math.abs(g - a) <= s && !!P);
2848
+ var c = f, x = ue(c), g = x.top, b = x.bottom, y = x.left, M = x.right, w = x.width, D = x.height, C = void 0, $ = void 0, I = c.scrollWidth, B = c.scrollHeight, F = U(c), O = c.scrollLeft, P = c.scrollTop;
2849
+ c === d ? (C = w < I && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), $ = D < B && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (C = w < I && (F.overflowX === "auto" || F.overflowX === "scroll"), $ = D < B && (F.overflowY === "auto" || F.overflowY === "scroll"));
2850
+ var J = C && (Math.abs(M - l) <= s && O + w < I) - (Math.abs(y - l) <= s && !!O), R = $ && (Math.abs(b - a) <= s && P + D < B) - (Math.abs(g - a) <= s && !!P);
2851
2851
  if (!Ce[p])
2852
2852
  for (var G = 0; G <= p; G++)
2853
2853
  Ce[G] || (Ce[G] = {});
@@ -3095,10 +3095,10 @@ function h2() {
3095
3095
  targetEl: re,
3096
3096
  originalEvent: n
3097
3097
  }), n.shiftKey && Vt && s.el.contains(Vt)) {
3098
- var c = be(Vt), C = be(re);
3099
- if (~c && ~C && c !== C) {
3098
+ var c = be(Vt), x = be(re);
3099
+ if (~c && ~x && c !== x) {
3100
3100
  var g, b;
3101
- for (C > c ? (b = c, g = C) : (b = C, g = c + 1); b < g; b++)
3101
+ for (x > c ? (b = c, g = x) : (b = x, g = c + 1); b < g; b++)
3102
3102
  ~W.indexOf(f[b]) || (he(f[b], p.selectedClass, !0), W.push(f[b]), Mt({
3103
3103
  sortable: s,
3104
3104
  rootEl: l,
@@ -3116,10 +3116,10 @@ function h2() {
3116
3116
  var y = ue(re), M = be(re, ":not(." + this.options.selectedClass + ")");
3117
3117
  if (!Et && p.animation && (re.thisAnimationDuration = null), v.captureAnimationState(), !Et && (p.animation && (re.fromRect = y, W.forEach(function(D) {
3118
3118
  if (D.thisAnimationDuration = null, D !== re) {
3119
- var x = Oe ? ue(D) : y;
3120
- D.fromRect = x, v.addAnimationState({
3119
+ var C = Oe ? ue(D) : y;
3120
+ D.fromRect = C, v.addAnimationState({
3121
3121
  target: D,
3122
- rect: x
3122
+ rect: C
3123
3123
  });
3124
3124
  }
3125
3125
  })), Qt(), W.forEach(function(D) {
@@ -4050,7 +4050,7 @@ const N2 = ["onClick"], B2 = {
4050
4050
  }), b.children = w;
4051
4051
  }
4052
4052
  return b;
4053
- }, C = (g) => {
4053
+ }, x = (g) => {
4054
4054
  let b = l(d.value[g]);
4055
4055
  d.value.splice(g, 1), s.selectComponent = void 0, u("deleteComponent", b);
4056
4056
  };
@@ -4066,7 +4066,7 @@ const N2 = ["onClick"], B2 = {
4066
4066
  }, {
4067
4067
  item: _(({ element: w, index: D }) => [
4068
4068
  S("div", {
4069
- onClick: to((x) => p(w), ["stop"]),
4069
+ onClick: to((C) => p(w), ["stop"]),
4070
4070
  class: De([
4071
4071
  "form-item-wrap",
4072
4072
  { "is-selected": i(s).selectComponent == w },
@@ -4079,8 +4079,8 @@ const N2 = ["onClick"], B2 = {
4079
4079
  isDesigner: "",
4080
4080
  componentID: w.id,
4081
4081
  component: i(d)[D],
4082
- "onUpdate:component": (x) => i(d)[D] = x,
4083
- onDeleteComponent: b[0] || (b[0] = (x) => u("deleteComponent", x))
4082
+ "onUpdate:component": (C) => i(d)[D] = C,
4083
+ onDeleteComponent: b[0] || (b[0] = (C) => u("deleteComponent", C))
4084
4084
  }, null, 40, ["componentID", "component", "onUpdate:component"])) : (h(), z(y, {
4085
4085
  key: 1,
4086
4086
  prop: w.id,
@@ -4102,9 +4102,9 @@ const N2 = ["onClick"], B2 = {
4102
4102
  isDesigner: "",
4103
4103
  componentID: w.id,
4104
4104
  componentProps: w.props,
4105
- "onUpdate:componentProps": (x) => w.props = x,
4105
+ "onUpdate:componentProps": (C) => w.props = C,
4106
4106
  datas: i(a).datas,
4107
- "onUpdate:datas": b[1] || (b[1] = (x) => i(a).datas = x)
4107
+ "onUpdate:datas": b[1] || (b[1] = (C) => i(a).datas = C)
4108
4108
  }, null, 40, ["componentID", "componentProps", "onUpdate:componentProps", "datas"]))
4109
4109
  ]),
4110
4110
  _: 2
@@ -4114,12 +4114,12 @@ const N2 = ["onClick"], B2 = {
4114
4114
  key: 0,
4115
4115
  name: "copy",
4116
4116
  color: "#0000ff",
4117
- onClick: to((x) => f(w), ["stop"])
4117
+ onClick: to((C) => f(w), ["stop"])
4118
4118
  }, null, 8, ["onClick"])) : A("", !0),
4119
4119
  m(M, {
4120
4120
  name: "delete",
4121
4121
  color: "#ff0000",
4122
- onClick: to((x) => C(D), ["stop"])
4122
+ onClick: to((C) => x(D), ["stop"])
4123
4123
  }, null, 8, ["onClick"])
4124
4124
  ])) : A("", !0)
4125
4125
  ], 14, N2)
@@ -4368,8 +4368,8 @@ const W2 = { class: "upload-component" }, Y2 = /* @__PURE__ */ S("span", { class
4368
4368
  });
4369
4369
  }, u = (f, c = !0) => {
4370
4370
  c && r.value.handleRemove(f);
4371
- const C = a.value[e.componentID].findIndex((g) => g.url === f.url);
4372
- C !== -1 && a.value[e.componentID].splice(C, 1);
4371
+ const x = a.value[e.componentID].findIndex((g) => g.url === f.url);
4372
+ x !== -1 && a.value[e.componentID].splice(x, 1);
4373
4373
  }, v = (f) => {
4374
4374
  u(f, !1);
4375
4375
  }, p = () => {
@@ -4378,7 +4378,7 @@ const W2 = { class: "upload-component" }, Y2 = /* @__PURE__ */ S("span", { class
4378
4378
  (c = a.value[e.componentID]) != null && c.length && (f += `,您已上传了${a.value[e.componentID].length}个文件,最多还能选择${s.value.fileLimit - a.value[e.componentID].length}个文件`), Me("error", f);
4379
4379
  };
4380
4380
  return (f, c) => {
4381
- const C = we, g = V("el-button"), b = V("el-upload");
4381
+ const x = we, g = V("el-button"), b = V("el-upload");
4382
4382
  return h(), E("div", W2, [
4383
4383
  m(b, {
4384
4384
  ref_key: "uploadRef",
@@ -4405,7 +4405,7 @@ const W2 = { class: "upload-component" }, Y2 = /* @__PURE__ */ S("span", { class
4405
4405
  color: "#409eff"
4406
4406
  }, {
4407
4407
  icon: _(() => [
4408
- m(C, {
4408
+ m(x, {
4409
4409
  name: "upload",
4410
4410
  color: "#ffffff"
4411
4411
  })
@@ -4420,7 +4420,7 @@ const W2 = { class: "upload-component" }, Y2 = /* @__PURE__ */ S("span", { class
4420
4420
  _: 1
4421
4421
  }, 8, ["action", "headers", "data", "multiple", "limit", "file-list", "accept", "auto-upload"]),
4422
4422
  t.isDesigner && i(s).description || t.showDescription && (i(l).props.formType === "2" || i(s).description) ? (h(), E("div", X2, [
4423
- m(C, {
4423
+ m(x, {
4424
4424
  name: "tip",
4425
4425
  color: "#ff0000"
4426
4426
  }),
@@ -4598,16 +4598,16 @@ const ea = { class: "upload-image-component" }, ta = { class: "el-upload-list__i
4598
4598
  });
4599
4599
  }, v = (c) => {
4600
4600
  r.value.handleRemove(c);
4601
- const C = a.value[e.componentID].findIndex((g) => g.url === c.url);
4602
- C !== -1 && a.value[e.componentID].splice(C, 1);
4601
+ const x = a.value[e.componentID].findIndex((g) => g.url === c.url);
4602
+ x !== -1 && a.value[e.componentID].splice(x, 1);
4603
4603
  }, p = () => {
4604
4604
  d.value.$el.children[0].click();
4605
4605
  }, f = () => {
4606
- var C;
4606
+ var x;
4607
4607
  let c = `最多只能上传${s.value.fileLimit}个图片`;
4608
- (C = a.value[e.componentID]) != null && C.length && (c += `,您已上传了${a.value[e.componentID].length}个图片,最多还能选择${s.value.fileLimit - a.value[e.componentID].length}个图片`), Me("error", c);
4608
+ (x = a.value[e.componentID]) != null && x.length && (c += `,您已上传了${a.value[e.componentID].length}个图片,最多还能选择${s.value.fileLimit - a.value[e.componentID].length}个图片`), Me("error", c);
4609
4609
  };
4610
- return (c, C) => {
4610
+ return (c, x) => {
4611
4611
  var M;
4612
4612
  const g = we, b = V("el-image"), y = V("el-upload");
4613
4613
  return h(), E("div", ea, [
@@ -4744,24 +4744,24 @@ function fa(t, o, e, n = {}) {
4744
4744
  deep: v = !1,
4745
4745
  defaultValue: p,
4746
4746
  shouldEmit: f
4747
- } = n, c = Nn(), C = e || (c == null ? void 0 : c.emit) || ((l = c == null ? void 0 : c.$emit) == null ? void 0 : l.bind(c)) || ((s = (a = c == null ? void 0 : c.proxy) == null ? void 0 : a.$emit) == null ? void 0 : s.bind(c == null ? void 0 : c.proxy));
4747
+ } = n, c = Nn(), x = e || (c == null ? void 0 : c.emit) || ((l = c == null ? void 0 : c.$emit) == null ? void 0 : l.bind(c)) || ((s = (a = c == null ? void 0 : c.proxy) == null ? void 0 : a.$emit) == null ? void 0 : s.bind(c == null ? void 0 : c.proxy));
4748
4748
  let g = u;
4749
4749
  o || (o = "modelValue"), g = g || `update:${o.toString()}`;
4750
4750
  const b = (w) => r ? typeof r == "function" ? r(w) : ma(w) : w, y = () => ra(t[o]) ? b(t[o]) : p, M = (w) => {
4751
- f ? f(w) && C(g, w) : C(g, w);
4751
+ f ? f(w) && x(g, w) : x(g, w);
4752
4752
  };
4753
4753
  if (d) {
4754
4754
  const w = y(), D = q(w);
4755
- let x = !1;
4755
+ let C = !1;
4756
4756
  return Q(
4757
4757
  () => t[o],
4758
4758
  ($) => {
4759
- x || (x = !0, D.value = b($), lt(() => x = !1));
4759
+ C || (C = !0, D.value = b($), lt(() => C = !1));
4760
4760
  }
4761
4761
  ), Q(
4762
4762
  D,
4763
4763
  ($) => {
4764
- !x && ($ !== t[o] || v) && M($);
4764
+ !C && ($ !== t[o] || v) && M($);
4765
4765
  },
4766
4766
  { deep: v }
4767
4767
  ), D;
@@ -4804,14 +4804,14 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
4804
4804
  d.value = c, r.value = !1;
4805
4805
  });
4806
4806
  }, p = (f, c) => {
4807
- const C = d.value.find((g) => g.value === f);
4807
+ const x = d.value.find((g) => g.value === f);
4808
4808
  e.options[c] = {
4809
- label: C == null ? void 0 : C.label,
4810
- value: C == null ? void 0 : C.value
4809
+ label: x == null ? void 0 : x.label,
4810
+ value: x == null ? void 0 : x.value
4811
4811
  }, d.value = e.options;
4812
4812
  };
4813
4813
  return (f, c) => {
4814
- const C = V("el-radio-button"), g = V("el-radio-group"), b = V("el-form-item"), y = V("el-switch"), M = V("el-input-number"), w = V("el-divider"), D = we, x = V("el-option"), $ = V("el-select"), I = V("el-button"), B = V("el-form");
4814
+ const x = V("el-radio-button"), g = V("el-radio-group"), b = V("el-form-item"), y = V("el-switch"), M = V("el-input-number"), w = V("el-divider"), D = we, C = V("el-option"), $ = V("el-select"), I = V("el-button"), B = V("el-form");
4815
4815
  return h(), z(B, {
4816
4816
  "label-width": "80px",
4817
4817
  "label-suffix": ":",
@@ -4826,19 +4826,19 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
4826
4826
  onChange: l
4827
4827
  }, {
4828
4828
  default: _(() => [
4829
- m(C, { value: "radio" }, {
4829
+ m(x, { value: "radio" }, {
4830
4830
  default: _(() => [
4831
4831
  X("单选")
4832
4832
  ]),
4833
4833
  _: 1
4834
4834
  }),
4835
- m(C, { value: "checkbox" }, {
4835
+ m(x, { value: "checkbox" }, {
4836
4836
  default: _(() => [
4837
4837
  X("多选")
4838
4838
  ]),
4839
4839
  _: 1
4840
4840
  }),
4841
- m(C, { value: "selector" }, {
4841
+ m(x, { value: "selector" }, {
4842
4842
  default: _(() => [
4843
4843
  X("下拉框")
4844
4844
  ]),
@@ -4944,7 +4944,7 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
4944
4944
  onChange: (P) => p(P, O)
4945
4945
  }, {
4946
4946
  default: _(() => [
4947
- (h(!0), E(te, null, ve(i(d), (P, J) => (h(), z(x, {
4947
+ (h(!0), E(te, null, ve(i(d), (P, J) => (h(), z(C, {
4948
4948
  key: J,
4949
4949
  label: P.label,
4950
4950
  value: P.value
@@ -5079,7 +5079,7 @@ const ba = { class: "employee-component" }, ya = {
5079
5079
  a.value.clearable && l.value[e.componentID] === p && (s.value = void 0, v.preventDefault());
5080
5080
  };
5081
5081
  return (v, p) => {
5082
- const f = V("el-radio"), c = V("el-radio-group"), C = V("el-checkbox"), g = V("el-checkbox-group"), b = V("el-option"), y = V("el-select"), M = we;
5082
+ const f = V("el-radio"), c = V("el-radio-group"), x = V("el-checkbox"), g = V("el-checkbox-group"), b = V("el-option"), y = V("el-select"), M = we;
5083
5083
  return h(), E("div", ba, [
5084
5084
  i(a).type === "radio" ? (h(), z(c, {
5085
5085
  key: 0,
@@ -5092,7 +5092,7 @@ const ba = { class: "employee-component" }, ya = {
5092
5092
  (h(!0), E(te, null, ve(i(a).options, (w, D) => (h(), z(f, {
5093
5093
  key: D,
5094
5094
  value: w.value,
5095
- onClick: (x) => u(x, w.value)
5095
+ onClick: (C) => u(C, w.value)
5096
5096
  }, {
5097
5097
  default: _(() => [
5098
5098
  X(le(w.label), 1)
@@ -5112,7 +5112,7 @@ const ba = { class: "employee-component" }, ya = {
5112
5112
  max: i(a).max
5113
5113
  }, {
5114
5114
  default: _(() => [
5115
- (h(!0), E(te, null, ve(i(a).options, (w, D) => (h(), z(C, {
5115
+ (h(!0), E(te, null, ve(i(a).options, (w, D) => (h(), z(x, {
5116
5116
  value: w.value,
5117
5117
  key: D
5118
5118
  }, {
@@ -5251,8 +5251,8 @@ const Da = /* @__PURE__ */ ne({
5251
5251
  placeholder: "请选择默认值"
5252
5252
  }, {
5253
5253
  default: _(() => [
5254
- (h(!0), E(te, null, ve(i(l), (c, C) => (h(), z(r, {
5255
- key: C,
5254
+ (h(!0), E(te, null, ve(i(l), (c, x) => (h(), z(r, {
5255
+ key: x,
5256
5256
  label: c.label,
5257
5257
  value: c.value
5258
5258
  }, null, 8, ["label", "value"]))), 128))
@@ -5394,14 +5394,14 @@ const Da = /* @__PURE__ */ ne({
5394
5394
  let { options: l, width: a } = $e(n);
5395
5395
  const s = o, r = fa(n, "modelValue", s), d = () => {
5396
5396
  s("change", r.value);
5397
- }, u = (c, C) => {
5397
+ }, u = (c, x) => {
5398
5398
  const g = c ? pa(l, v(c)) : l.value;
5399
- C(i(g));
5399
+ x(i(g));
5400
5400
  }, v = (c) => ({
5401
5401
  start: (g) => g.value.toLowerCase().indexOf(c.toLowerCase()) === 0,
5402
5402
  random: (g) => g.value.indexOf(c) >= 0
5403
5403
  })[n.matchMode], p = ie("convertPX"), f = Ge(() => `${p(a.value)}px`);
5404
- return (c, C) => {
5404
+ return (c, x) => {
5405
5405
  const g = V("el-autocomplete");
5406
5406
  return h(), E("div", Va, [
5407
5407
  t.label ? (h(), E("span", Ea, le(t.label), 1)) : A("", !0),
@@ -5409,7 +5409,7 @@ const Da = /* @__PURE__ */ ne({
5409
5409
  ref_key: "autoCompleteRef",
5410
5410
  ref: e,
5411
5411
  modelValue: i(r),
5412
- "onUpdate:modelValue": C[0] || (C[0] = (b) => ye(r) ? r.value = b : null),
5412
+ "onUpdate:modelValue": x[0] || (x[0] = (b) => ye(r) ? r.value = b : null),
5413
5413
  "select-when-unmatched": t.selectWhenUnmatched,
5414
5414
  "fetch-suggestions": u,
5415
5415
  "value-key": "value",
@@ -5502,9 +5502,9 @@ const ka = { class: "grade-component" }, Ma = {
5502
5502
  s.value.clearable && r.value.score === f && (delete r.value.score, p.preventDefault());
5503
5503
  };
5504
5504
  return (p, f) => {
5505
- const c = V("el-radio"), C = V("el-radio-group"), g = Sa, b = we;
5505
+ const c = V("el-radio"), x = V("el-radio-group"), g = Sa, b = we;
5506
5506
  return h(), E("div", ka, [
5507
- m(C, {
5507
+ m(x, {
5508
5508
  class: De(["grade-items", { "new-line": i(s).newLine }]),
5509
5509
  modelValue: i(r).score,
5510
5510
  "onUpdate:modelValue": f[0] || (f[0] = (y) => i(r).score = y),
@@ -5823,7 +5823,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
5823
5823
  a.value.clearable && l.value[e.componentID] === p && (s.value = void 0, v.preventDefault());
5824
5824
  };
5825
5825
  return (v, p) => {
5826
- const f = V("el-radio"), c = V("el-radio-group"), C = V("el-checkbox"), g = V("el-checkbox-group"), b = V("el-option"), y = V("el-select"), M = we;
5826
+ const f = V("el-radio"), c = V("el-radio-group"), x = V("el-checkbox"), g = V("el-checkbox-group"), b = V("el-option"), y = V("el-select"), M = we;
5827
5827
  return h(), E("div", Oa, [
5828
5828
  i(a).type === "radio" ? (h(), z(c, {
5829
5829
  key: 0,
@@ -5836,7 +5836,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
5836
5836
  (h(!0), E(te, null, ve(i(a).options, (w, D) => (h(), z(f, {
5837
5837
  key: D,
5838
5838
  value: w.value,
5839
- onClick: (x) => u(x, w.value)
5839
+ onClick: (C) => u(C, w.value)
5840
5840
  }, {
5841
5841
  default: _(() => [
5842
5842
  X(le(w.label), 1)
@@ -5856,7 +5856,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
5856
5856
  max: i(a).max
5857
5857
  }, {
5858
5858
  default: _(() => [
5859
- (h(!0), E(te, null, ve(i(a).options, (w, D) => (h(), z(C, {
5859
+ (h(!0), E(te, null, ve(i(a).options, (w, D) => (h(), z(x, {
5860
5860
  value: w.value,
5861
5861
  key: D
5862
5862
  }, {
@@ -5984,24 +5984,24 @@ const Ra = { component: Fa, renderer: Ua, propEditor: Ta }, Na = { class: "dicti
5984
5984
  emits: ["update:modelValue", "change"],
5985
5985
  setup(t, { emit: o }) {
5986
5986
  var c;
5987
- Uo((C) => ({
5987
+ Uo((x) => ({
5988
5988
  "4f018582": t.height
5989
5989
  }));
5990
5990
  let e = ie("defaultSourceType");
5991
5991
  const n = t, l = q(), a = q(n.modelValue), s = (c = n.dictionary) == null ? void 0 : c.souceTypeMap;
5992
5992
  l.value = (s == null ? void 0 : s.keys.length) > 1;
5993
5993
  let r = q([]);
5994
- const d = (C) => {
5995
- r.value = C ? u(C) : n.dictionary.dictionaryItems;
5996
- }, u = (C) => n.dictionary.dictionaryItems.filter((g) => g.label.toLocaleLowerCase().includes(C.toLocaleLowerCase())), v = o, { getTempID: p } = Ie(), f = (C) => {
5997
- let g = r.value.find((b) => b.value === C);
5994
+ const d = (x) => {
5995
+ r.value = x ? u(x) : n.dictionary.dictionaryItems;
5996
+ }, u = (x) => n.dictionary.dictionaryItems.filter((g) => g.label.toLocaleLowerCase().includes(x.toLocaleLowerCase())), v = o, { getTempID: p } = Ie(), f = (x) => {
5997
+ let g = r.value.find((b) => b.value === x);
5998
5998
  g || (g = {
5999
5999
  value: p(),
6000
- label: C,
6000
+ label: x,
6001
6001
  itemSourceType: e
6002
6002
  }), v("update:modelValue", g.label), v("change", g);
6003
6003
  };
6004
- return (C, g) => {
6004
+ return (x, g) => {
6005
6005
  var M;
6006
6006
  const b = V("el-select-v2"), y = V("el-input");
6007
6007
  return h(), E("div", Na, [
@@ -6068,7 +6068,7 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
6068
6068
  u.value = d.value, u.itemSourceType = d.itemSourceType;
6069
6069
  };
6070
6070
  return (d, u) => {
6071
- const v = V("el-option"), p = V("el-select"), f = V("el-form-item"), c = V("el-switch"), C = V("el-input-number"), g = V("el-divider"), b = we, y = V("el-checkbox"), M = V("el-tooltip"), w = V("el-button"), D = V("el-form");
6071
+ const v = V("el-option"), p = V("el-select"), f = V("el-form-item"), c = V("el-switch"), x = V("el-input-number"), g = V("el-divider"), b = we, y = V("el-checkbox"), M = V("el-tooltip"), w = V("el-button"), D = V("el-form");
6072
6072
  return h(), z(D, {
6073
6073
  "label-width": "80px",
6074
6074
  "label-suffix": ":",
@@ -6079,16 +6079,16 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
6079
6079
  default: _(() => [
6080
6080
  m(p, {
6081
6081
  modelValue: i(n).defaultValue,
6082
- "onUpdate:modelValue": u[0] || (u[0] = (x) => i(n).defaultValue = x),
6082
+ "onUpdate:modelValue": u[0] || (u[0] = (C) => i(n).defaultValue = C),
6083
6083
  multiple: "",
6084
6084
  clearable: "",
6085
6085
  placeholder: "请选择默认值"
6086
6086
  }, {
6087
6087
  default: _(() => [
6088
- (h(!0), E(te, null, ve(i(n).options, (x, $) => (h(), z(v, {
6088
+ (h(!0), E(te, null, ve(i(n).options, (C, $) => (h(), z(v, {
6089
6089
  key: $,
6090
- label: x.label,
6091
- value: x.value
6090
+ label: C.label,
6091
+ value: C.value
6092
6092
  }, null, 8, ["label", "value"]))), 128))
6093
6093
  ]),
6094
6094
  _: 1
@@ -6100,16 +6100,16 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
6100
6100
  default: _(() => [
6101
6101
  m(c, {
6102
6102
  modelValue: i(n).newLine,
6103
- "onUpdate:modelValue": u[1] || (u[1] = (x) => i(n).newLine = x)
6103
+ "onUpdate:modelValue": u[1] || (u[1] = (C) => i(n).newLine = C)
6104
6104
  }, null, 8, ["modelValue"])
6105
6105
  ]),
6106
6106
  _: 1
6107
6107
  }),
6108
6108
  m(f, { label: "最少选择" }, {
6109
6109
  default: _(() => [
6110
- m(C, {
6110
+ m(x, {
6111
6111
  modelValue: i(n).min,
6112
- "onUpdate:modelValue": u[2] || (u[2] = (x) => i(n).min = x),
6112
+ "onUpdate:modelValue": u[2] || (u[2] = (C) => i(n).min = C),
6113
6113
  step: 1,
6114
6114
  min: 0,
6115
6115
  max: i(n).options.length
@@ -6119,9 +6119,9 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
6119
6119
  }),
6120
6120
  m(f, { label: "最多选择" }, {
6121
6121
  default: _(() => [
6122
- m(C, {
6122
+ m(x, {
6123
6123
  modelValue: i(n).max,
6124
- "onUpdate:modelValue": u[3] || (u[3] = (x) => i(n).max = x),
6124
+ "onUpdate:modelValue": u[3] || (u[3] = (C) => i(n).max = C),
6125
6125
  step: 1,
6126
6126
  min: 1,
6127
6127
  max: i(n).options.length
@@ -6147,7 +6147,7 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
6147
6147
  tag: "div",
6148
6148
  group: { name: "componentOptions", put: !1 }
6149
6149
  }, {
6150
- item: _(({ element: x, index: $ }) => [
6150
+ item: _(({ element: C, index: $ }) => [
6151
6151
  S("div", ja, [
6152
6152
  i(n).options.length > 1 ? (h(), z(b, {
6153
6153
  key: 0,
@@ -6157,14 +6157,14 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
6157
6157
  class: "cursor-move"
6158
6158
  })) : A("", !0),
6159
6159
  m(jo, {
6160
- modelValue: x.label,
6161
- "onUpdate:modelValue": (I) => x.label = I,
6160
+ modelValue: C.label,
6161
+ "onUpdate:modelValue": (I) => C.label = I,
6162
6162
  dictionary: t.dictionary,
6163
6163
  placeholder: "请输入选项",
6164
6164
  "item-height": 50,
6165
6165
  height: "40px",
6166
6166
  disabled: !i(o).selectComponent.allowModify,
6167
- onChange: (I) => r(I, x)
6167
+ onChange: (I) => r(I, C)
6168
6168
  }, null, 8, ["modelValue", "onUpdate:modelValue", "dictionary", "disabled", "onChange"]),
6169
6169
  m(M, {
6170
6170
  effect: "dark",
@@ -6174,8 +6174,8 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
6174
6174
  default: _(() => [
6175
6175
  m(y, {
6176
6176
  class: "input-enable",
6177
- modelValue: x.inputEnable,
6178
- "onUpdate:modelValue": (I) => x.inputEnable = I
6177
+ modelValue: C.inputEnable,
6178
+ "onUpdate:modelValue": (I) => C.inputEnable = I
6179
6179
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
6180
6180
  ]),
6181
6181
  _: 2
@@ -6294,7 +6294,7 @@ const Wa = { class: "checkbox-component" }, Ya = {
6294
6294
  });
6295
6295
  };
6296
6296
  return (u, v) => {
6297
- const p = V("el-checkbox"), f = V("el-input"), c = V("el-checkbox-group"), C = we;
6297
+ const p = V("el-checkbox"), f = V("el-input"), c = V("el-checkbox-group"), x = we;
6298
6298
  return h(), E("div", Wa, [
6299
6299
  m(c, {
6300
6300
  class: De({ "new-line": i(a).newLine }),
@@ -6332,7 +6332,7 @@ const Wa = { class: "checkbox-component" }, Ya = {
6332
6332
  _: 1
6333
6333
  }, 8, ["class", "modelValue", "disabled", "min", "max"]),
6334
6334
  t.isDesigner && i(a).description || t.showDescription && (i(n).props.formType === "2" || i(a).description) ? (h(), E("div", Ya, [
6335
- m(C, {
6335
+ m(x, {
6336
6336
  name: "tip",
6337
6337
  color: "#ff0000"
6338
6338
  }),
@@ -6408,7 +6408,7 @@ const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */
6408
6408
  d === "text" && (n.showPassword = !1);
6409
6409
  };
6410
6410
  return (d, u) => {
6411
- const v = V("el-input"), p = V("el-form-item"), f = V("el-radio-button"), c = V("el-radio-group"), C = V("el-switch"), g = V("el-form");
6411
+ const v = V("el-input"), p = V("el-form-item"), f = V("el-radio-button"), c = V("el-radio-group"), x = V("el-switch"), g = V("el-form");
6412
6412
  return h(), z(g, {
6413
6413
  "label-width": "80px",
6414
6414
  "label-suffix": ":"
@@ -6455,7 +6455,7 @@ const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */
6455
6455
  label: "显示密码"
6456
6456
  }, {
6457
6457
  default: _(() => [
6458
- m(C, {
6458
+ m(x, {
6459
6459
  modelValue: i(n).showPassword,
6460
6460
  "onUpdate:modelValue": u[2] || (u[2] = (b) => i(n).showPassword = b)
6461
6461
  }, null, 8, ["modelValue"])
@@ -6699,7 +6699,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
6699
6699
  u.value = d.value, u.itemSourceType = d.itemSourceType;
6700
6700
  };
6701
6701
  return (d, u) => {
6702
- const v = V("el-option"), p = V("el-select"), f = V("el-form-item"), c = V("el-switch"), C = V("el-divider"), g = we, b = V("el-checkbox"), y = V("el-tooltip"), M = V("el-button"), w = V("el-form");
6702
+ const v = V("el-option"), p = V("el-select"), f = V("el-form-item"), c = V("el-switch"), x = V("el-divider"), g = we, b = V("el-checkbox"), y = V("el-tooltip"), M = V("el-button"), w = V("el-form");
6703
6703
  return h(), z(w, {
6704
6704
  "label-width": "80px",
6705
6705
  "label-suffix": ":",
@@ -6715,8 +6715,8 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
6715
6715
  placeholder: "请选择默认值"
6716
6716
  }, {
6717
6717
  default: _(() => [
6718
- (h(!0), E(te, null, ve(i(n).options, (D, x) => (h(), z(v, {
6719
- key: x,
6718
+ (h(!0), E(te, null, ve(i(n).options, (D, C) => (h(), z(v, {
6719
+ key: C,
6720
6720
  label: D.label,
6721
6721
  value: D.value
6722
6722
  }, null, 8, ["label", "value"]))), 128))
@@ -6735,7 +6735,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
6735
6735
  ]),
6736
6736
  _: 1
6737
6737
  }),
6738
- m(C, null, {
6738
+ m(x, null, {
6739
6739
  default: _(() => [
6740
6740
  X("选项列表")
6741
6741
  ]),
@@ -6753,7 +6753,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
6753
6753
  tag: "div",
6754
6754
  group: { name: "componentOptions", put: !1 }
6755
6755
  }, {
6756
- item: _(({ element: D, index: x }) => [
6756
+ item: _(({ element: D, index: C }) => [
6757
6757
  S("div", ss, [
6758
6758
  i(n).options.length > 1 ? (h(), z(g, {
6759
6759
  key: 0,
@@ -6791,7 +6791,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
6791
6791
  name: "delete",
6792
6792
  color: "#ff0000",
6793
6793
  size: "16px",
6794
- onClick: ($) => s(x)
6794
+ onClick: ($) => s(C)
6795
6795
  }, null, 8, ["onClick"])) : A("", !0)
6796
6796
  ])
6797
6797
  ]),
@@ -6906,9 +6906,9 @@ const ds = { class: "radio-component" }, us = {
6906
6906
  }
6907
6907
  };
6908
6908
  return (v, p) => {
6909
- const f = V("el-radio"), c = V("el-input"), C = V("el-radio-group"), g = we;
6909
+ const f = V("el-radio"), c = V("el-input"), x = V("el-radio-group"), g = we;
6910
6910
  return h(), E("div", ds, [
6911
- m(C, {
6911
+ m(x, {
6912
6912
  class: De({ "new-line": i(a).newLine }),
6913
6913
  modelValue: i(s),
6914
6914
  "onUpdate:modelValue": p[0] || (p[0] = (b) => ye(s) ? s.value = b : null),
@@ -7043,27 +7043,27 @@ const ms = { component: ps, renderer: cs, propEditor: rs }, fs = {
7043
7043
  show: (c) => {
7044
7044
  if (c.showFlag === void 0)
7045
7045
  return String(!0);
7046
- let C = "";
7047
- return c.showFlag ? C = c.hiddenConditionExpression ? `!(${c.hiddenConditionExpression})` : String(c.showFlag) : C = c.showConditionExpression || String(c.showFlag), C;
7046
+ let x = "";
7047
+ return c.showFlag ? x = c.hiddenConditionExpression ? `!(${c.hiddenConditionExpression})` : String(c.showFlag) : x = c.showConditionExpression || String(c.showFlag), x;
7048
7048
  },
7049
7049
  // 禁用动态条件
7050
7050
  disabled: (c) => c.disabledConditionExpression || String(c.disabled === void 0 ? !1 : c.disabled),
7051
7051
  // 只读动态条件
7052
7052
  readonly: (c) => c.readonlyConditionExpression || String(c.readonly === void 0 ? !1 : c.readonly)
7053
- }, v = (c, C) => {
7053
+ }, v = (c, x) => {
7054
7054
  var y;
7055
- let g = u[C](c.props);
7055
+ let g = u[x](c.props);
7056
7056
  if (!g)
7057
7057
  return;
7058
7058
  ["true", "false"].includes(g) || g.match(/{(.*?)}/g).forEach((w) => {
7059
7059
  var I;
7060
7060
  const D = w.replace(/\{|}/g, "");
7061
- let x = l.value.datas[D];
7061
+ let C = l.value.datas[D];
7062
7062
  const $ = s.value.find((B) => B.id === D);
7063
- ($ == null ? void 0 : $.type) === "grade" && (x = (I = l.value.datas[D]) == null ? void 0 : I.score), g = g.replace(w, x || "");
7063
+ ($ == null ? void 0 : $.type) === "grade" && (C = (I = l.value.datas[D]) == null ? void 0 : I.score), g = g.replace(w, C || "");
7064
7064
  });
7065
7065
  const b = n(g);
7066
- if (C === "show" && !b) {
7066
+ if (x === "show" && !b) {
7067
7067
  let M = [];
7068
7068
  c.isLayout && ((y = c.children) != null && y.length) ? M = c.children : M = [c], M.forEach((w) => {
7069
7069
  l.value.datas[w.id] && (w.type === "grade" ? delete l.value.datas[w.id].score : delete l.value.datas[w.id]);
@@ -7073,7 +7073,7 @@ const ms = { component: ps, renderer: cs, propEditor: rs }, fs = {
7073
7073
  }, p = o, f = (c) => {
7074
7074
  p("select", c);
7075
7075
  };
7076
- return (c, C) => {
7076
+ return (c, x) => {
7077
7077
  const g = V("el-checkbox"), b = V("el-form-item");
7078
7078
  return h(!0), E(te, null, ve(i(s), (y, M) => (h(), E(te, { key: M }, [
7079
7079
  i(d) || v(y, "show") ? (h(), E("div", {
@@ -7125,7 +7125,7 @@ const ms = { component: ps, renderer: cs, propEditor: rs }, fs = {
7125
7125
  componentProps: y.props,
7126
7126
  "onUpdate:componentProps": (w) => y.props = w,
7127
7127
  datas: i(l).datas,
7128
- "onUpdate:datas": C[0] || (C[0] = (w) => i(l).datas = w)
7128
+ "onUpdate:datas": x[0] || (x[0] = (w) => i(l).datas = w)
7129
7129
  }, null, 40, ["componentID", "disabled", "showDescription", "componentProps", "onUpdate:componentProps", "datas"]))
7130
7130
  ]),
7131
7131
  _: 2
@@ -7217,9 +7217,9 @@ const hs = {
7217
7217
  setup(t, { expose: o, emit: e }) {
7218
7218
  const { removeEmptyAttribute: n } = Ie(), l = { ...vo, ..._o, ...go }, a = q(), s = q(!1), r = q(!1), d = q(!1), u = t, v = e, { formData: p, selectMode: f } = $e(u), c = q(u.selectComponents);
7219
7219
  bt("uploadOptions", u.uploadOptions), bt("formData", p);
7220
- const C = (D) => {
7221
- var x, $, I, B;
7222
- if ((x = c.value) != null && x.length || (c.value = []), !D) {
7220
+ const x = (D) => {
7221
+ var C, $, I, B;
7222
+ if ((C = c.value) != null && C.length || (c.value = []), !D) {
7223
7223
  c.value = [], p.value.components.forEach((F) => {
7224
7224
  F.selected = r.value, r.value && c.value.push(F);
7225
7225
  }), d.value = !1, v("select", c.value);
@@ -7233,63 +7233,63 @@ const hs = {
7233
7233
  }
7234
7234
  v("select", c.value), g();
7235
7235
  }, g = () => {
7236
- var D, x;
7236
+ var D, C;
7237
7237
  if (!((D = c.value) != null && D.length)) {
7238
7238
  d.value = !1, r.value = !1;
7239
7239
  return;
7240
7240
  }
7241
- if (((x = c.value) == null ? void 0 : x.length) < p.value.components.length) {
7241
+ if (((C = c.value) == null ? void 0 : C.length) < p.value.components.length) {
7242
7242
  d.value = !0;
7243
7243
  return;
7244
7244
  }
7245
7245
  r.value = !0, d.value = !1;
7246
7246
  }, b = (D) => {
7247
- D != null && D.length && (D.forEach((x) => {
7247
+ D != null && D.length && (D.forEach((C) => {
7248
7248
  var I, B;
7249
- let $ = new l[x.type].component();
7250
- $.isEdit && (x.props.required || x.props.pattern) && (x.rules = $.getRules(x.props)), u.selectMode && ((I = c.value) != null && I.length) && c.value.findIndex((O) => O.id === x.id) !== -1 && (x.selected = !0), x.isLayout && ((B = x == null ? void 0 : x.children) != null && B.length) && b(x.children);
7249
+ let $ = new l[C.type].component();
7250
+ $.isEdit && (C.props.required || C.props.pattern) && (C.rules = $.getRules(C.props)), u.selectMode && ((I = c.value) != null && I.length) && c.value.findIndex((O) => O.id === C.id) !== -1 && (C.selected = !0), C.isLayout && ((B = C == null ? void 0 : C.children) != null && B.length) && b(C.children);
7251
7251
  }), u.selectMode && g());
7252
7252
  };
7253
7253
  Q(p, () => b(p.value.components), { immediate: !0 });
7254
7254
  const y = () => {
7255
- let D = n(p.value.datas), x = [], $ = [];
7255
+ let D = n(p.value.datas), C = [], $ = [];
7256
7256
  const I = Object.keys(D);
7257
7257
  for (let B of I) {
7258
7258
  if (B.includes("||")) {
7259
- let F = B.split("||"), O = F[0], P = F[1], J = x.findIndex((R) => R.id === P && R.groupID === O);
7259
+ let F = B.split("||"), O = F[0], P = F[1], J = C.findIndex((R) => R.id === P && R.groupID === O);
7260
7260
  if (J !== -1)
7261
- x[J].value = D[B];
7261
+ C[J].value = D[B];
7262
7262
  else {
7263
7263
  const R = {
7264
7264
  parentID: O,
7265
7265
  id: P,
7266
7266
  value: D[B]
7267
7267
  };
7268
- x.push(R);
7268
+ C.push(R);
7269
7269
  }
7270
7270
  continue;
7271
7271
  }
7272
- M(p.value.components, x, $, B, D);
7272
+ M(p.value.components, C, $, B, D);
7273
7273
  }
7274
- return { data: x, fileList: $ };
7275
- }, M = (D, x, $, I, B) => {
7274
+ return { data: C, fileList: $ };
7275
+ }, M = (D, C, $, I, B) => {
7276
7276
  var P;
7277
7277
  let F, O;
7278
7278
  for (let J = 0; J < D.length; J++) {
7279
7279
  const R = D[J];
7280
7280
  if (R.id === I) {
7281
- F = R, w(x, $, I, B, F);
7281
+ F = R, w(C, $, I, B, F);
7282
7282
  break;
7283
7283
  }
7284
7284
  if (R.isLayout && ((P = R == null ? void 0 : R.children) != null && P.length)) {
7285
7285
  if (F = R.children.find((G) => G.id === I), F) {
7286
- O = R.id, w(x, $, I, B, F, O);
7286
+ O = R.id, w(C, $, I, B, F, O);
7287
7287
  break;
7288
7288
  }
7289
- M(R.children, x, $, I, B);
7289
+ M(R.children, C, $, I, B);
7290
7290
  }
7291
7291
  }
7292
- }, w = (D, x, $, I, B, F) => {
7292
+ }, w = (D, C, $, I, B, F) => {
7293
7293
  var P, J;
7294
7294
  let O = -1;
7295
7295
  switch (B.type) {
@@ -7318,7 +7318,7 @@ const hs = {
7318
7318
  if (oe.fileID)
7319
7319
  return oe.fileID;
7320
7320
  }).filter((oe) => oe !== void 0);
7321
- x.push({ id: $, groupID: F, fileIDs: G, files: R });
7321
+ C.push({ id: $, groupID: F, fileIDs: G, files: R });
7322
7322
  }
7323
7323
  break;
7324
7324
  default:
@@ -7382,7 +7382,7 @@ const hs = {
7382
7382
  toggleDescription() {
7383
7383
  s.value = !s.value;
7384
7384
  }
7385
- }), (D, x) => {
7385
+ }), (D, C) => {
7386
7386
  const $ = V("el-checkbox"), I = V("el-form");
7387
7387
  return h(), E("div", {
7388
7388
  class: De(["form-renderer", t.device, { "examination-paper": i(p).props.formType === "2" }, { "select-mode": i(f) }])
@@ -7392,10 +7392,10 @@ const hs = {
7392
7392
  m($, {
7393
7393
  class: "select-all",
7394
7394
  modelValue: i(r),
7395
- "onUpdate:modelValue": x[0] || (x[0] = (B) => ye(r) ? r.value = B : null),
7395
+ "onUpdate:modelValue": C[0] || (C[0] = (B) => ye(r) ? r.value = B : null),
7396
7396
  label: "全选",
7397
7397
  indeterminate: i(d),
7398
- onChange: x[1] || (x[1] = (B) => C())
7398
+ onChange: C[1] || (C[1] = (B) => x())
7399
7399
  }, null, 8, ["modelValue", "indeterminate"])
7400
7400
  ])) : i(p).props.formName ? (h(), E("h1", gs, le(i(p).props.formName), 1)) : A("", !0),
7401
7401
  m(I, {
@@ -7415,7 +7415,7 @@ const hs = {
7415
7415
  components: i(p).components,
7416
7416
  showDescription: i(s),
7417
7417
  selectMode: i(f),
7418
- onSelect: C
7418
+ onSelect: x
7419
7419
  }, null, 8, ["components", "showDescription", "selectMode"])
7420
7420
  ]),
7421
7421
  _: 1
@@ -7451,12 +7451,12 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7451
7451
  var O;
7452
7452
  (O = d.value.searchParams) != null && O.length && (d.value.searchParams.forEach((P) => {
7453
7453
  P.default && (u.value[P.key] = P.default);
7454
- }), C());
7454
+ }), x());
7455
7455
  });
7456
7456
  const f = (O, P, J) => {
7457
7457
  let R = J === "datetime" ? "YYYY-MM-DD HH:mm" : J === "date" ? "YYYY-MM-DD" : "HH:mm";
7458
7458
  return Xo(O).format(R) === Xo(P).format(R);
7459
- }, c = q(d.value.formList), C = (O) => {
7459
+ }, c = q(d.value.formList), x = (O) => {
7460
7460
  O && g(O), c.value = e(d.value.formList);
7461
7461
  const P = Object.keys(u.value);
7462
7462
  P != null && P.length && P.forEach((J) => {
@@ -7512,7 +7512,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7512
7512
  delete R.selected, O.push(R);
7513
7513
  });
7514
7514
  return O;
7515
- }, x = q(!1), $ = q({
7515
+ }, C = q(!1), $ = q({
7516
7516
  datas: {},
7517
7517
  components: [],
7518
7518
  props: {
@@ -7524,7 +7524,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7524
7524
  formType: n.value.props.formType
7525
7525
  }
7526
7526
  }), I = () => {
7527
- $.value.components = D(), x.value = !0;
7527
+ $.value.components = D(), C.value = !0;
7528
7528
  }, B = o, F = () => {
7529
7529
  const O = D();
7530
7530
  B("select", O), s.value = !1;
@@ -7602,7 +7602,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7602
7602
  "onUpdate:modelValue": (k) => i(u)[K.key] = k,
7603
7603
  placeholder: `搜索${K.label}`,
7604
7604
  clearable: "",
7605
- onChange: (k) => C(K)
7605
+ onChange: (k) => x(K)
7606
7606
  }, {
7607
7607
  append: _(() => [
7608
7608
  m(J, {
@@ -7618,7 +7618,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7618
7618
  "onUpdate:modelValue": (k) => i(u)[K.key] = k,
7619
7619
  placeholder: `请选择${K.label}`,
7620
7620
  clearable: "",
7621
- onChange: (k) => C(K)
7621
+ onChange: (k) => x(K)
7622
7622
  }, {
7623
7623
  default: _(() => [
7624
7624
  (h(!0), E(te, null, ve(K.options, (k, j) => (h(), z(G, {
@@ -7641,7 +7641,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7641
7641
  "show-all-levels": !1,
7642
7642
  props: { expandTrigger: "click", emitPath: !1 },
7643
7643
  clearable: "",
7644
- onChange: (k) => C(K)
7644
+ onChange: (k) => x(K)
7645
7645
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "options", "onChange"])) : A("", !0),
7646
7646
  [i(xe).DATETIME, i(xe).DATE, i(xe)].includes(K.type) ? (h(), z(ge, {
7647
7647
  key: 3,
@@ -7651,7 +7651,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7651
7651
  placeholder: `请选择${K.label}`,
7652
7652
  "value-format": "YYYY-MM-DD HH:mm",
7653
7653
  clearable: "",
7654
- onChange: (k) => C(K)
7654
+ onChange: (k) => x(K)
7655
7655
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "onChange"])) : A("", !0),
7656
7656
  K.type === i(xe).TIME ? (h(), z(Ve, {
7657
7657
  key: 4,
@@ -7660,7 +7660,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7660
7660
  placeholder: `请选择${K.label}`,
7661
7661
  "value-format": "HH:mm",
7662
7662
  clearable: "",
7663
- onChange: (k) => C(K)
7663
+ onChange: (k) => x(K)
7664
7664
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : A("", !0)
7665
7665
  ]),
7666
7666
  _: 2
@@ -7704,15 +7704,15 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
7704
7704
  _: 1
7705
7705
  }, 8, ["modelValue", "title"]),
7706
7706
  m(jt, {
7707
- modelValue: i(x),
7708
- "onUpdate:modelValue": P[3] || (P[3] = (Pe) => ye(x) ? x.value = Pe : null),
7707
+ modelValue: i(C),
7708
+ "onUpdate:modelValue": P[3] || (P[3] = (Pe) => ye(C) ? C.value = Pe : null),
7709
7709
  class: "select-preview-dialog",
7710
7710
  "destroy-on-close": "",
7711
7711
  title: `已选${i(a)}预览`
7712
7712
  }, {
7713
7713
  footer: _(() => [
7714
7714
  m(Dt, {
7715
- onClick: P[2] || (P[2] = (Pe) => x.value = !1)
7715
+ onClick: P[2] || (P[2] = (Pe) => C.value = !1)
7716
7716
  }, {
7717
7717
  default: _(() => [
7718
7718
  X("关闭")
@@ -7793,7 +7793,7 @@ const Is = {
7793
7793
  y.isEdit && (r.value.push({ label: y.props.label, id: y.id }), d.value[y.id] = f(y.excludeFilterConditions), u.value[y.id] = y.filterConditionProps);
7794
7794
  }
7795
7795
  });
7796
- }, f = (b) => Object.keys(ro).filter((M) => !b.includes(M)), c = o, C = () => {
7796
+ }, f = (b) => Object.keys(ro).filter((M) => !b.includes(M)), c = o, x = () => {
7797
7797
  const b = a.value.getFilterData();
7798
7798
  b.message || (s.value = !1, c("result", b));
7799
7799
  }, g = () => {
@@ -7834,7 +7834,7 @@ const Is = {
7834
7834
  }),
7835
7835
  m(M, {
7836
7836
  type: "primary",
7837
- onClick: C
7837
+ onClick: x
7838
7838
  }, {
7839
7839
  default: _(() => [
7840
7840
  X("确定")
@@ -7989,7 +7989,7 @@ const Ls = /* @__PURE__ */ ne({
7989
7989
  typeof f.value != "string" && (l.itemID = f.value), l.id = f.value, l.itemSourceType = f.itemSourceType;
7990
7990
  };
7991
7991
  return (f, c) => {
7992
- const C = V("el-switch"), g = V("el-form-item"), b = V("el-input-number"), y = V("el-color-picker"), M = V("el-slider"), w = V("el-input"), D = V("el-form");
7992
+ const x = V("el-switch"), g = V("el-form-item"), b = V("el-input-number"), y = V("el-color-picker"), M = V("el-slider"), w = V("el-input"), D = V("el-form");
7993
7993
  return h(), z(D, {
7994
7994
  "label-width": "80px",
7995
7995
  "label-suffix": ":"
@@ -8000,9 +8000,9 @@ const Ls = /* @__PURE__ */ ne({
8000
8000
  label: "显示标题"
8001
8001
  }, {
8002
8002
  default: _(() => [
8003
- m(C, {
8003
+ m(x, {
8004
8004
  modelValue: i(l).props.showLabel,
8005
- "onUpdate:modelValue": c[0] || (c[0] = (x) => i(l).props.showLabel = x)
8005
+ "onUpdate:modelValue": c[0] || (c[0] = (C) => i(l).props.showLabel = C)
8006
8006
  }, null, 8, ["modelValue"])
8007
8007
  ]),
8008
8008
  _: 1
@@ -8014,7 +8014,7 @@ const Ls = /* @__PURE__ */ ne({
8014
8014
  default: _(() => [
8015
8015
  m(jo, {
8016
8016
  modelValue: i(l).props.label,
8017
- "onUpdate:modelValue": c[1] || (c[1] = (x) => i(l).props.label = x),
8017
+ "onUpdate:modelValue": c[1] || (c[1] = (C) => i(l).props.label = C),
8018
8018
  dictionary: t.dictionary,
8019
8019
  placeholder: i(l).type === "label" ? "标签内容" : i(n) === "1" ? "请输入标题" : "请输入题目",
8020
8020
  "item-height": 50,
@@ -8030,7 +8030,7 @@ const Ls = /* @__PURE__ */ ne({
8030
8030
  default: _(() => [
8031
8031
  m(b, {
8032
8032
  modelValue: i(l).props.fontSize,
8033
- "onUpdate:modelValue": c[2] || (c[2] = (x) => i(l).props.fontSize = x),
8033
+ "onUpdate:modelValue": c[2] || (c[2] = (C) => i(l).props.fontSize = C),
8034
8034
  min: 12,
8035
8035
  max: 24
8036
8036
  }, null, 8, ["modelValue"])
@@ -8042,7 +8042,7 @@ const Ls = /* @__PURE__ */ ne({
8042
8042
  default: _(() => [
8043
8043
  m(b, {
8044
8044
  modelValue: i(l).props.labelWidth,
8045
- "onUpdate:modelValue": c[3] || (c[3] = (x) => i(l).props.labelWidth = x),
8045
+ "onUpdate:modelValue": c[3] || (c[3] = (C) => i(l).props.labelWidth = C),
8046
8046
  min: 0
8047
8047
  }, null, 8, ["modelValue"])
8048
8048
  ]),
@@ -8050,9 +8050,9 @@ const Ls = /* @__PURE__ */ ne({
8050
8050
  }),
8051
8051
  m(g, { label: "标题换行" }, {
8052
8052
  default: _(() => [
8053
- m(C, {
8053
+ m(x, {
8054
8054
  modelValue: i(l).props.labelNewLine,
8055
- "onUpdate:modelValue": c[4] || (c[4] = (x) => i(l).props.labelNewLine = x)
8055
+ "onUpdate:modelValue": c[4] || (c[4] = (C) => i(l).props.labelNewLine = C)
8056
8056
  }, null, 8, ["modelValue"])
8057
8057
  ]),
8058
8058
  _: 1
@@ -8063,9 +8063,9 @@ const Ls = /* @__PURE__ */ ne({
8063
8063
  label: i(l).type === "label" ? "字体加粗" : i(n) === "1" ? "标题加粗" : "题目加粗"
8064
8064
  }, {
8065
8065
  default: _(() => [
8066
- m(C, {
8066
+ m(x, {
8067
8067
  modelValue: i(l).props.isBold,
8068
- "onUpdate:modelValue": c[5] || (c[5] = (x) => i(l).props.isBold = x)
8068
+ "onUpdate:modelValue": c[5] || (c[5] = (C) => i(l).props.isBold = C)
8069
8069
  }, null, 8, ["modelValue"])
8070
8070
  ]),
8071
8071
  _: 1
@@ -8076,7 +8076,7 @@ const Ls = /* @__PURE__ */ ne({
8076
8076
  default: _(() => [
8077
8077
  m(y, {
8078
8078
  modelValue: i(l).props.color,
8079
- "onUpdate:modelValue": c[6] || (c[6] = (x) => i(l).props.color = x)
8079
+ "onUpdate:modelValue": c[6] || (c[6] = (C) => i(l).props.color = C)
8080
8080
  }, null, 8, ["modelValue"])
8081
8081
  ]),
8082
8082
  _: 1
@@ -8086,7 +8086,7 @@ const Ls = /* @__PURE__ */ ne({
8086
8086
  default: _(() => [
8087
8087
  m(M, {
8088
8088
  modelValue: i(l).props.width,
8089
- "onUpdate:modelValue": c[7] || (c[7] = (x) => i(l).props.width = x),
8089
+ "onUpdate:modelValue": c[7] || (c[7] = (C) => i(l).props.width = C),
8090
8090
  min: 3,
8091
8091
  max: i(o).props.column,
8092
8092
  "show-stops": ""
@@ -8098,7 +8098,7 @@ const Ls = /* @__PURE__ */ ne({
8098
8098
  default: _(() => [
8099
8099
  m(b, {
8100
8100
  modelValue: i(l).props.paddingLeft,
8101
- "onUpdate:modelValue": c[8] || (c[8] = (x) => i(l).props.paddingLeft = x),
8101
+ "onUpdate:modelValue": c[8] || (c[8] = (C) => i(l).props.paddingLeft = C),
8102
8102
  min: 0,
8103
8103
  max: 100
8104
8104
  }, null, 8, ["modelValue"])
@@ -8107,9 +8107,9 @@ const Ls = /* @__PURE__ */ ne({
8107
8107
  }),
8108
8108
  m(g, { label: "是否显示" }, {
8109
8109
  default: _(() => [
8110
- m(C, {
8110
+ m(x, {
8111
8111
  modelValue: i(l).props.showFlag,
8112
- "onUpdate:modelValue": c[9] || (c[9] = (x) => i(l).props.showFlag = x),
8112
+ "onUpdate:modelValue": c[9] || (c[9] = (C) => i(l).props.showFlag = C),
8113
8113
  onChange: s
8114
8114
  }, null, 8, ["modelValue"])
8115
8115
  ]),
@@ -8122,7 +8122,7 @@ const Ls = /* @__PURE__ */ ne({
8122
8122
  default: _(() => [
8123
8123
  m(w, {
8124
8124
  modelValue: i(l).props.placeholder,
8125
- "onUpdate:modelValue": c[10] || (c[10] = (x) => i(l).props.placeholder = x),
8125
+ "onUpdate:modelValue": c[10] || (c[10] = (C) => i(l).props.placeholder = C),
8126
8126
  placeholder: "请输入占位提示"
8127
8127
  }, null, 8, ["modelValue"])
8128
8128
  ]),
@@ -8131,18 +8131,18 @@ const Ls = /* @__PURE__ */ ne({
8131
8131
  i(l).isEdit ? (h(), E(te, { key: 5 }, [
8132
8132
  m(g, { label: "允许清空" }, {
8133
8133
  default: _(() => [
8134
- m(C, {
8134
+ m(x, {
8135
8135
  modelValue: i(l).props.clearable,
8136
- "onUpdate:modelValue": c[11] || (c[11] = (x) => i(l).props.clearable = x)
8136
+ "onUpdate:modelValue": c[11] || (c[11] = (C) => i(l).props.clearable = C)
8137
8137
  }, null, 8, ["modelValue"])
8138
8138
  ]),
8139
8139
  _: 1
8140
8140
  }),
8141
8141
  m(g, { label: "是否只读" }, {
8142
8142
  default: _(() => [
8143
- m(C, {
8143
+ m(x, {
8144
8144
  modelValue: i(l).props.readonly,
8145
- "onUpdate:modelValue": c[12] || (c[12] = (x) => i(l).props.readonly = x),
8145
+ "onUpdate:modelValue": c[12] || (c[12] = (C) => i(l).props.readonly = C),
8146
8146
  onChange: r
8147
8147
  }, null, 8, ["modelValue"])
8148
8148
  ]),
@@ -8150,10 +8150,10 @@ const Ls = /* @__PURE__ */ ne({
8150
8150
  }),
8151
8151
  m(g, { label: "是否必填" }, {
8152
8152
  default: _(() => [
8153
- m(C, {
8153
+ m(x, {
8154
8154
  onChange: u,
8155
8155
  modelValue: i(l).props.required,
8156
- "onUpdate:modelValue": c[13] || (c[13] = (x) => i(l).props.required = x)
8156
+ "onUpdate:modelValue": c[13] || (c[13] = (C) => i(l).props.required = C)
8157
8157
  }, null, 8, ["modelValue"])
8158
8158
  ]),
8159
8159
  _: 1
@@ -8166,16 +8166,16 @@ const Ls = /* @__PURE__ */ ne({
8166
8166
  m(w, {
8167
8167
  onChange: v,
8168
8168
  modelValue: i(l).props.requiredMessage,
8169
- "onUpdate:modelValue": c[14] || (c[14] = (x) => i(l).props.requiredMessage = x)
8169
+ "onUpdate:modelValue": c[14] || (c[14] = (C) => i(l).props.requiredMessage = C)
8170
8170
  }, null, 8, ["modelValue"])
8171
8171
  ]),
8172
8172
  _: 1
8173
8173
  })) : A("", !0),
8174
8174
  m(g, { label: "是否禁用" }, {
8175
8175
  default: _(() => [
8176
- m(C, {
8176
+ m(x, {
8177
8177
  modelValue: i(l).props.disabled,
8178
- "onUpdate:modelValue": c[15] || (c[15] = (x) => i(l).props.disabled = x),
8178
+ "onUpdate:modelValue": c[15] || (c[15] = (C) => i(l).props.disabled = C),
8179
8179
  onChange: d
8180
8180
  }, null, 8, ["modelValue"])
8181
8181
  ]),
@@ -8189,7 +8189,7 @@ const Ls = /* @__PURE__ */ ne({
8189
8189
  default: _(() => [
8190
8190
  m(w, {
8191
8191
  modelValue: i(l).props.description,
8192
- "onUpdate:modelValue": c[16] || (c[16] = (x) => i(l).props.description = x),
8192
+ "onUpdate:modelValue": c[16] || (c[16] = (C) => i(l).props.description = C),
8193
8193
  autosize: { minRows: 2, maxRows: 5 },
8194
8194
  type: "textarea"
8195
8195
  }, null, 8, ["modelValue"])
@@ -8397,9 +8397,9 @@ const Ls = /* @__PURE__ */ ne({
8397
8397
  }, f = q(!1), c = () => {
8398
8398
  f.value = !f.value, n("toggleDescription", f.value);
8399
8399
  };
8400
- return (C, g) => {
8401
- var w;
8402
- const b = we, y = V("el-button"), M = V("el-popconfirm");
8400
+ return (x, g) => {
8401
+ var w, D;
8402
+ const b = we, y = V("el-link"), M = V("el-popconfirm");
8403
8403
  return h(), E("div", Ps, [
8404
8404
  Us,
8405
8405
  S("div", Fs, [
@@ -8408,15 +8408,16 @@ const Ls = /* @__PURE__ */ ne({
8408
8408
  confirmButtonText: "是",
8409
8409
  cancelButtonText: "否",
8410
8410
  title: "确定要清空所有组件吗?",
8411
+ width: ((w = i(e).components) == null ? void 0 : w.length) == 0 ? 0 : 160,
8411
8412
  onConfirm: l
8412
8413
  }, {
8413
8414
  reference: _(() => {
8414
- var D;
8415
+ var C;
8415
8416
  return [
8416
8417
  m(y, {
8417
- text: "",
8418
8418
  type: "danger",
8419
- disabled: ((D = i(e).components) == null ? void 0 : D.length) == 0
8419
+ underline: !1,
8420
+ disabled: ((C = i(e).components) == null ? void 0 : C.length) == 0
8420
8421
  }, {
8421
8422
  default: _(() => [
8422
8423
  m(b, {
@@ -8430,11 +8431,11 @@ const Ls = /* @__PURE__ */ ne({
8430
8431
  ];
8431
8432
  }),
8432
8433
  _: 1
8433
- })) : A("", !0),
8434
+ }, 8, ["width"])) : A("", !0),
8434
8435
  t.operates.includes("batchAdd") ? (h(), z(y, {
8435
8436
  key: 1,
8436
- text: "",
8437
8437
  type: "primary",
8438
+ underline: !1,
8438
8439
  onClick: a
8439
8440
  }, {
8440
8441
  default: _(() => [
@@ -8449,8 +8450,8 @@ const Ls = /* @__PURE__ */ ne({
8449
8450
  })) : A("", !0),
8450
8451
  t.operates.includes("viewFormJson") ? (h(), z(y, {
8451
8452
  key: 2,
8452
- text: "",
8453
8453
  type: "primary",
8454
+ underline: !1,
8454
8455
  onClick: s
8455
8456
  }, {
8456
8457
  default: _(() => [
@@ -8461,9 +8462,9 @@ const Ls = /* @__PURE__ */ ne({
8461
8462
  })) : A("", !0),
8462
8463
  t.operates.includes("previewFrom") ? (h(), z(y, {
8463
8464
  key: 3,
8464
- text: "",
8465
8465
  type: "primary",
8466
- disabled: ((w = i(e).components) == null ? void 0 : w.length) == 0,
8466
+ underline: !1,
8467
+ disabled: ((D = i(e).components) == null ? void 0 : D.length) == 0,
8467
8468
  onClick: r
8468
8469
  }, {
8469
8470
  default: _(() => [
@@ -8477,8 +8478,8 @@ const Ls = /* @__PURE__ */ ne({
8477
8478
  }, 8, ["disabled"])) : A("", !0),
8478
8479
  t.operates.includes("saveFrom") ? (h(), z(y, {
8479
8480
  key: 4,
8480
- text: "",
8481
8481
  type: "primary",
8482
+ underline: !1,
8482
8483
  onClick: d
8483
8484
  }, {
8484
8485
  default: _(() => [
@@ -8493,8 +8494,8 @@ const Ls = /* @__PURE__ */ ne({
8493
8494
  })) : A("", !0),
8494
8495
  t.operates.includes("validateForm") ? (h(), z(y, {
8495
8496
  key: 5,
8496
- text: "",
8497
8497
  type: "warning",
8498
+ underline: !1,
8498
8499
  onClick: u
8499
8500
  }, {
8500
8501
  default: _(() => [
@@ -8508,8 +8509,8 @@ const Ls = /* @__PURE__ */ ne({
8508
8509
  })) : A("", !0),
8509
8510
  t.operates.includes("resetForm") ? (h(), z(y, {
8510
8511
  key: 6,
8511
- text: "",
8512
8512
  type: "danger",
8513
+ underline: !1,
8513
8514
  onClick: v
8514
8515
  }, {
8515
8516
  default: _(() => [
@@ -8523,8 +8524,8 @@ const Ls = /* @__PURE__ */ ne({
8523
8524
  })) : A("", !0),
8524
8525
  t.operates.includes("viewDataJson") ? (h(), z(y, {
8525
8526
  key: 7,
8526
- text: "",
8527
8527
  type: "primary",
8528
+ underline: !1,
8528
8529
  onClick: p
8529
8530
  }, {
8530
8531
  default: _(() => [
@@ -8538,8 +8539,8 @@ const Ls = /* @__PURE__ */ ne({
8538
8539
  })) : A("", !0),
8539
8540
  t.operates.includes("toggleDescription") ? (h(), z(y, {
8540
8541
  key: 8,
8541
- text: "",
8542
8542
  type: "primary",
8543
+ underline: !1,
8543
8544
  onClick: c
8544
8545
  }, {
8545
8546
  default: _(() => [
@@ -8640,7 +8641,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
8640
8641
  selectComponent: void 0,
8641
8642
  propTab: "form",
8642
8643
  device: "pc"
8643
- }), f = q(!0), c = q([]), C = Ge(() => g.value.map((T) => T.expand && T.name)), g = q([]), b = q(!1), y = {
8644
+ }), f = q(!0), c = q([]), x = Ge(() => g.value.map((T) => T.expand && T.name)), g = q([]), b = q(!1), y = {
8644
8645
  labelPosition: "top",
8645
8646
  labelWidth: 90,
8646
8647
  size: "small",
@@ -8701,15 +8702,15 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
8701
8702
  D();
8702
8703
  }), bt("uploadOptions", o.uploadOptions), bt("formDesignerData", p), bt("formData", r), bt("defaultSourceType", o.defaultSourceType);
8703
8704
  const D = () => {
8704
- p.selectComponent = void 0, r.value.datas || (r.value.datas = {}), r.value.components ? x(r.value.components) : r.value.components = [], r.value.props ? r.value.props = Object.assign(y, r.value.props) : r.value.props = y, b.value = !r.value.props.formName;
8705
- }, x = (T) => {
8705
+ p.selectComponent = void 0, r.value.datas || (r.value.datas = {}), r.value.components ? C(r.value.components) : r.value.components = [], r.value.props ? r.value.props = Object.assign(y, r.value.props) : r.value.props = y, b.value = !r.value.props.formName;
8706
+ }, C = (T) => {
8706
8707
  T.forEach(async (k) => {
8707
8708
  var N;
8708
8709
  let j = new s[k.type].component();
8709
8710
  k.name = j.name, k.isEdit = j.isEdit, k.isInput = j.isInput, k.props = Object.assign(j.props, k.props), k.isEdit && ((k.props.required || k.props.pattern) && (k.rules = j.getRules(k.props)), k.filterConditionProps = await j.getFilterConditionProps(k.props), k.excludeFilterConditions = j.getExcludeFilterConditions()), g.value.forEach((ae) => {
8710
8711
  const Ee = ae.types.findIndex((de) => de != null && de.id.includes("temp") ? de.type === k.type : (de == null ? void 0 : de.id) === k.id);
8711
8712
  Ee !== -1 && (k.allowRepeat = ae.types[Ee].allowRepeat, k.allowModify = ae.types[Ee].allowModify, I(k, ae.types[Ee], !0), P(Ee, ae));
8712
- }), k.isLayout && ((N = k == null ? void 0 : k.children) != null && N.length) && x(k.children);
8713
+ }), k.isLayout && ((N = k == null ? void 0 : k.children) != null && N.length) && C(k.children);
8713
8714
  });
8714
8715
  }, $ = () => {
8715
8716
  var T;
@@ -8791,7 +8792,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
8791
8792
  }, G = q(!1), oe = () => {
8792
8793
  G.value = !0;
8793
8794
  }, ce = (T) => {
8794
- T != null && T.length && (x(T), T.forEach((k) => r.value.components.push(k)));
8795
+ T != null && T.length && (C(T), T.forEach((k) => r.value.components.push(k)));
8795
8796
  }, ge = () => {
8796
8797
  qt.value = l(r.value), at.value = !0;
8797
8798
  }, Ve = q(), it = async () => {
@@ -8862,8 +8863,8 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
8862
8863
  S("div", Ys, [
8863
8864
  S("div", Xs, [
8864
8865
  m(ae, {
8865
- modelValue: i(C),
8866
- "onUpdate:modelValue": k[0] || (k[0] = (se) => ye(C) ? C.value = se : null)
8866
+ modelValue: i(x),
8867
+ "onUpdate:modelValue": k[0] || (k[0] = (se) => ye(x) ? x.value = se : null)
8867
8868
  }, {
8868
8869
  default: _(() => [
8869
8870
  (h(!0), E(te, null, ve(i(g), (se, Pn) => (h(), z(N, {