low-code-form-generator 1.0.6 → 1.0.7

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, createElementBlock as n, openBlock as o, createElementVNode as r, ref as k, nextTick as Y2, reactive as ze, normalizeClass as k0, unref as g2, renderSlot as te, computed as $2, onUnmounted as ae, normalizeStyle as re, onMounted as le, resolveComponent as O, createBlock as X, withCtx as H, resolveDynamicComponent as He, h as c2, createVNode as x, withDirectives as z0, createCommentVNode as b2, vShow as H0, Fragment as V2, createTextVNode as p2, renderList as w0, createSlots as Xe, toDisplayString as E0, createApp as oe, watch as Ke, Teleport as Ze } from "vue";
1
+ import { defineComponent as u, createElementBlock as n, openBlock as o, createElementVNode as r, ref as L, nextTick as Y2, reactive as ze, normalizeClass as k0, unref as f2, renderSlot as te, computed as $2, onUnmounted as ae, normalizeStyle as re, onMounted as le, resolveComponent as O, createBlock as X, withCtx as H, resolveDynamicComponent as He, h as c2, createVNode as x, withDirectives as z0, createCommentVNode as b2, vShow as H0, Fragment as V2, createTextVNode as p2, renderList as w0, createSlots as Xe, toDisplayString as E0, createApp as oe, watch as Ke, Teleport as Ze } from "vue";
2
2
  import * as S2 from "element-plus";
3
3
  import { ElMessage as ve, ElMessageBox as Qe } from "element-plus";
4
4
  const e1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -216,7 +216,7 @@ function ue(t, e) {
216
216
  a = a.previousElementSibling;
217
217
  return a || null;
218
218
  }
219
- function m2(t, e) {
219
+ function h2(t, e) {
220
220
  var a = 0;
221
221
  if (!t || !t.parentNode)
222
222
  return -1;
@@ -416,7 +416,7 @@ var j2 = [], P0 = {
416
416
  function c1(t) {
417
417
  var e = t.sortable, a = t.rootEl, l = t.name, _ = t.targetEl, s = t.cloneEl, i = t.toEl, c = t.fromEl, p = t.oldIndex, v = t.newIndex, d = t.oldDraggableIndex, h = t.newDraggableIndex, g = t.originalEvent, y = t.putSortable, E = t.extraEventProperties;
418
418
  if (e = e || a && a[_2], !!e) {
419
- var V, L = e.options, Y = "on" + l.charAt(0).toUpperCase() + l.substr(1);
419
+ var V, k = e.options, $ = "on" + l.charAt(0).toUpperCase() + l.substr(1);
420
420
  window.CustomEvent && !L2 && !_0 ? V = new CustomEvent(l, {
421
421
  bubbles: !0,
422
422
  cancelable: !0
@@ -424,19 +424,19 @@ function c1(t) {
424
424
  var R = H2(H2({}, E), s0.getEventProperties(l, e));
425
425
  for (var Z in R)
426
426
  V[Z] = R[Z];
427
- a && a.dispatchEvent(V), L[Y] && L[Y].call(e, V);
427
+ a && a.dispatchEvent(V), k[$] && k[$].call(e, V);
428
428
  }
429
429
  }
430
430
  var p1 = ["evt"], n2 = function(e, a) {
431
431
  var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, _ = l.evt, s = r1(l, p1);
432
432
  s0.pluginEvent.bind(M)(e, a, H2({
433
433
  dragEl: f,
434
- parentEl: W,
434
+ parentEl: G,
435
435
  ghostEl: D,
436
- rootEl: $,
436
+ rootEl: q,
437
437
  nextEl: q2,
438
438
  lastDownEl: C0,
439
- cloneEl: G,
439
+ cloneEl: U,
440
440
  cloneHidden: F2,
441
441
  dragStarted: Q2,
442
442
  putSortable: Q,
@@ -466,16 +466,16 @@ var p1 = ["evt"], n2 = function(e, a) {
466
466
  function r2(t) {
467
467
  c1(H2({
468
468
  putSortable: Q,
469
- cloneEl: G,
469
+ cloneEl: U,
470
470
  targetEl: f,
471
- rootEl: $,
471
+ rootEl: q,
472
472
  oldIndex: W2,
473
473
  oldDraggableIndex: l0,
474
474
  newIndex: i2,
475
475
  newDraggableIndex: T2
476
476
  }, t));
477
477
  }
478
- var f, W, D, $, q2, C0, G, F2, W2, i2, l0, T2, d0, Q, G2 = !1, D0 = !1, B0 = [], I2, x2, N0, I0, we, xe, Q2, U2, o0, n0 = !1, h0 = !1, y0, t2, R0 = [], G0 = !1, S0 = [], T0 = typeof document < "u", m0 = ne, Ce = _0 || L2 ? "cssFloat" : "float", v1 = T0 && !Ee && !ne && "draggable" in document.createElement("div"), Te = function() {
478
+ var f, G, D, q, q2, C0, U, F2, W2, i2, l0, T2, d0, Q, G2 = !1, D0 = !1, B0 = [], I2, w2, N0, I0, we, xe, Q2, U2, o0, n0 = !1, h0 = !1, y0, t2, R0 = [], G0 = !1, S0 = [], T0 = typeof document < "u", m0 = ne, Ce = _0 || L2 ? "cssFloat" : "float", v1 = T0 && !Ee && !ne && "draggable" in document.createElement("div"), Te = function() {
479
479
  if (T0) {
480
480
  if (L2)
481
481
  return !1;
@@ -620,7 +620,7 @@ M.prototype = /** @lends Sortable.prototype */
620
620
  if (e.cancelable) {
621
621
  var a = this, l = this.el, _ = this.options, s = _.preventOnFilter, i = e.type, c = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, p = (c || e).target, v = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || p, d = _.filter;
622
622
  if (b1(l), !f && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || _.disabled) && !v.isContentEditable && !(!this.nativeDraggable && a0 && p && p.tagName.toUpperCase() === "SELECT") && (p = C2(p, _.draggable, l, !1), !(p && p.animated) && C0 !== p)) {
623
- if (W2 = m2(p), l0 = m2(p, _.draggable), typeof d == "function") {
623
+ if (W2 = h2(p), l0 = h2(p, _.draggable), typeof d == "function") {
624
624
  if (d.call(this, e, p, this)) {
625
625
  r2({
626
626
  sortable: a,
@@ -658,7 +658,7 @@ M.prototype = /** @lends Sortable.prototype */
658
658
  var _ = this, s = _.el, i = _.options, c = s.ownerDocument, p;
659
659
  if (l && !f && l.parentNode === s) {
660
660
  var v = K(l);
661
- if ($ = s, f = l, W = f.parentNode, q2 = f.nextSibling, C0 = l, d0 = i.group, M.dragged = f, I2 = {
661
+ if (q = s, f = l, G = f.parentNode, q2 = f.nextSibling, C0 = l, d0 = i.group, M.dragged = f, I2 = {
662
662
  target: f,
663
663
  clientX: (a || e).clientX,
664
664
  clientY: (a || e).clientY
@@ -700,7 +700,7 @@ M.prototype = /** @lends Sortable.prototype */
700
700
  B(e, "mouseup", this._disableDelayedDrag), B(e, "touchend", this._disableDelayedDrag), B(e, "touchcancel", this._disableDelayedDrag), B(e, "pointerup", this._disableDelayedDrag), B(e, "pointercancel", this._disableDelayedDrag), B(e, "mousemove", this._delayedDragTouchMoveHandler), B(e, "touchmove", this._delayedDragTouchMoveHandler), B(e, "pointermove", this._delayedDragTouchMoveHandler);
701
701
  },
702
702
  _triggerDragStart: function(e, a) {
703
- a = a || e.pointerType == "touch" && e, !this.nativeDraggable || a ? this.options.supportPointer ? S(document, "pointermove", this._onTouchMove) : a ? S(document, "touchmove", this._onTouchMove) : S(document, "mousemove", this._onTouchMove) : (S(f, "dragend", this), S($, "dragstart", this._onDragStart));
703
+ a = a || e.pointerType == "touch" && e, !this.nativeDraggable || a ? this.options.supportPointer ? S(document, "pointermove", this._onTouchMove) : a ? S(document, "touchmove", this._onTouchMove) : S(document, "mousemove", this._onTouchMove) : (S(f, "dragend", this), S(q, "dragstart", this._onDragStart));
704
704
  try {
705
705
  document.selection ? M0(function() {
706
706
  document.selection.empty();
@@ -709,7 +709,7 @@ M.prototype = /** @lends Sortable.prototype */
709
709
  }
710
710
  },
711
711
  _dragStarted: function(e, a) {
712
- if (G2 = !1, $ && f) {
712
+ if (G2 = !1, q && f) {
713
713
  n2("dragStarted", this, {
714
714
  evt: a
715
715
  }), this.nativeDraggable && S(document, "dragover", m1);
@@ -723,17 +723,17 @@ M.prototype = /** @lends Sortable.prototype */
723
723
  this._nulling();
724
724
  },
725
725
  _emulateDragOver: function() {
726
- if (x2) {
727
- this._lastX = x2.clientX, this._lastY = x2.clientY, Pe();
728
- for (var e = document.elementFromPoint(x2.clientX, x2.clientY), a = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(x2.clientX, x2.clientY), e !== a); )
726
+ if (w2) {
727
+ this._lastX = w2.clientX, this._lastY = w2.clientY, Pe();
728
+ for (var e = document.elementFromPoint(w2.clientX, w2.clientY), a = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(w2.clientX, w2.clientY), e !== a); )
729
729
  a = e;
730
730
  if (f.parentNode[_2]._isOutsideThisEl(e), a)
731
731
  do {
732
732
  if (a[_2]) {
733
733
  var l = void 0;
734
734
  if (l = a[_2]._onDragOver({
735
- clientX: x2.clientX,
736
- clientY: x2.clientY,
735
+ clientX: w2.clientX,
736
+ clientY: w2.clientY,
737
737
  target: e,
738
738
  rootEl: a
739
739
  }), l && !this.options.dragoverBubble)
@@ -762,14 +762,14 @@ M.prototype = /** @lends Sortable.prototype */
762
762
  f: h
763
763
  };
764
764
  var g = "matrix(".concat(i.a, ",").concat(i.b, ",").concat(i.c, ",").concat(i.d, ",").concat(i.e, ",").concat(i.f, ")");
765
- z(D, "webkitTransform", g), z(D, "mozTransform", g), z(D, "msTransform", g), z(D, "transform", g), N0 = d, I0 = h, x2 = s;
765
+ z(D, "webkitTransform", g), z(D, "mozTransform", g), z(D, "msTransform", g), z(D, "transform", g), N0 = d, I0 = h, w2 = s;
766
766
  }
767
767
  e.cancelable && e.preventDefault();
768
768
  }
769
769
  },
770
770
  _appendGhost: function() {
771
771
  if (!D) {
772
- var e = this.options.fallbackOnBody ? document.body : $, a = K(f, !0, m0, !0, e), l = this.options;
772
+ var e = this.options.fallbackOnBody ? document.body : q, a = K(f, !0, m0, !0, e), l = this.options;
773
773
  if (m0) {
774
774
  for (t2 = e; z(t2, "position") === "static" && z(t2, "transform") === "none" && t2 !== document; )
775
775
  t2 = t2.parentNode;
@@ -786,8 +786,8 @@ M.prototype = /** @lends Sortable.prototype */
786
786
  this._onDrop();
787
787
  return;
788
788
  }
789
- n2("setupClone", this), M.eventCanceled || (G = Le(f), G.removeAttribute("id"), G.draggable = !1, G.style["will-change"] = "", this._hideClone(), s2(G, this.options.chosenClass, !1), M.clone = G), l.cloneId = M0(function() {
790
- n2("clone", l), !M.eventCanceled && (l.options.removeCloneOnHide || $.insertBefore(G, f), l._hideClone(), r2({
789
+ n2("setupClone", this), M.eventCanceled || (U = Le(f), U.removeAttribute("id"), U.draggable = !1, U.style["will-change"] = "", this._hideClone(), s2(U, this.options.chosenClass, !1), M.clone = U), l.cloneId = M0(function() {
790
+ n2("clone", l), !M.eventCanceled && (l.options.removeCloneOnHide || q.insertBefore(U, f), l._hideClone(), r2({
791
791
  sortable: l,
792
792
  name: "clone"
793
793
  }));
@@ -797,7 +797,7 @@ M.prototype = /** @lends Sortable.prototype */
797
797
  _onDragOver: function(e) {
798
798
  var a = this.el, l = e.target, _, s, i, c = this.options, p = c.group, v = M.active, d = d0 === p, h = c.sort, g = Q || v, y, E = this, V = !1;
799
799
  if (G0) return;
800
- function L(w, F) {
800
+ function k(w, F) {
801
801
  n2(w, E, H2({
802
802
  evt: e,
803
803
  isOwner: d,
@@ -809,24 +809,24 @@ M.prototype = /** @lends Sortable.prototype */
809
809
  fromSortable: g,
810
810
  target: l,
811
811
  completed: R,
812
- onMove: function(U, e2) {
813
- return f0($, a, f, _, U, K(U), e, e2);
812
+ onMove: function(j, e2) {
813
+ return f0(q, a, f, _, j, K(j), e, e2);
814
814
  },
815
815
  changed: Z
816
816
  }, F));
817
817
  }
818
- function Y() {
819
- L("dragOverAnimationCapture"), E.captureAnimationState(), E !== g && g.captureAnimationState();
818
+ function $() {
819
+ k("dragOverAnimationCapture"), E.captureAnimationState(), E !== g && g.captureAnimationState();
820
820
  }
821
821
  function R(w) {
822
- return L("dragOverCompleted", {
822
+ return k("dragOverCompleted", {
823
823
  insertion: w
824
824
  }), w && (d ? v._hideClone() : v._showClone(E), E !== g && (s2(f, Q ? Q.options.ghostClass : v.options.ghostClass, !1), s2(f, c.ghostClass, !0)), Q !== E && E !== M.active ? Q = E : E === M.active && Q && (Q = null), g === E && (E._ignoreWhileAnimating = l), E.animateAll(function() {
825
- L("dragOverAnimationComplete"), E._ignoreWhileAnimating = null;
825
+ k("dragOverAnimationComplete"), E._ignoreWhileAnimating = null;
826
826
  }), E !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (l === f && !f.animated || l === a && !l.animated) && (U2 = null), !c.dragoverBubble && !e.rootEl && l !== document && (f.parentNode[_2]._isOutsideThisEl(e.target), !w && R2(e)), !c.dragoverBubble && e.stopPropagation && e.stopPropagation(), V = !0;
827
827
  }
828
828
  function Z() {
829
- i2 = m2(f), T2 = m2(f, c.draggable), r2({
829
+ i2 = h2(f), T2 = h2(f, c.draggable), r2({
830
830
  sortable: E,
831
831
  name: "change",
832
832
  toEl: a,
@@ -835,34 +835,34 @@ M.prototype = /** @lends Sortable.prototype */
835
835
  originalEvent: e
836
836
  });
837
837
  }
838
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), l = C2(l, c.draggable, a, !0), L("dragOver"), M.eventCanceled) return V;
838
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), l = C2(l, c.draggable, a, !0), k("dragOver"), M.eventCanceled) return V;
839
839
  if (f.contains(e.target) || l.animated && l.animatingX && l.animatingY || E._ignoreWhileAnimating === l)
840
840
  return R(!1);
841
- if (D0 = !1, v && !c.disabled && (d ? h || (i = W !== $) : Q === this || (this.lastPutMode = d0.checkPull(this, v, f, e)) && p.checkPut(this, v, f, e))) {
842
- if (y = this._getDirection(e, l) === "vertical", _ = K(f), L("dragOverValid"), M.eventCanceled) return V;
841
+ if (D0 = !1, v && !c.disabled && (d ? h || (i = G !== q) : Q === this || (this.lastPutMode = d0.checkPull(this, v, f, e)) && p.checkPut(this, v, f, e))) {
842
+ if (y = this._getDirection(e, l) === "vertical", _ = K(f), k("dragOverValid"), M.eventCanceled) return V;
843
843
  if (i)
844
- return W = $, Y(), this._hideClone(), L("revert"), M.eventCanceled || (q2 ? $.insertBefore(f, q2) : $.appendChild(f)), R(!0);
845
- var j = ue(a, c.draggable);
846
- if (!j || x1(e, y, this) && !j.animated) {
847
- if (j === f)
844
+ return G = q, $(), this._hideClone(), k("revert"), M.eventCanceled || (q2 ? q.insertBefore(f, q2) : q.appendChild(f)), R(!0);
845
+ var Y = ue(a, c.draggable);
846
+ if (!Y || x1(e, y, this) && !Y.animated) {
847
+ if (Y === f)
848
848
  return R(!1);
849
- if (j && a === e.target && (l = j), l && (s = K(l)), f0($, a, f, _, l, s, e, !!l) !== !1)
850
- return Y(), j && j.nextSibling ? a.insertBefore(f, j.nextSibling) : a.appendChild(f), W = a, Z(), R(!0);
851
- } else if (j && w1(e, y, this)) {
849
+ if (Y && a === e.target && (l = Y), l && (s = K(l)), f0(q, a, f, _, l, s, e, !!l) !== !1)
850
+ return $(), Y && Y.nextSibling ? a.insertBefore(f, Y.nextSibling) : a.appendChild(f), G = a, Z(), R(!0);
851
+ } else if (Y && w1(e, y, this)) {
852
852
  var l2 = X2(a, 0, c, !0);
853
853
  if (l2 === f)
854
854
  return R(!1);
855
- if (l = l2, s = K(l), f0($, a, f, _, l, s, e, !1) !== !1)
856
- return Y(), a.insertBefore(f, l2), W = a, Z(), R(!0);
855
+ if (l = l2, s = K(l), f0(q, a, f, _, l, s, e, !1) !== !1)
856
+ return $(), a.insertBefore(f, l2), G = a, Z(), R(!0);
857
857
  } else if (l.parentNode === a) {
858
858
  s = K(l);
859
859
  var a2 = 0, v2, P = f.parentNode !== a, C = !d1(f.animated && f.toRect || _, l.animated && l.toRect || s, y), I = y ? "top" : "left", T = fe(l, "top", "top") || fe(f, "top", "top"), y2 = T ? T.scrollTop : void 0;
860
860
  U2 !== l && (v2 = s[I], n0 = !1, h0 = !C && c.invertSwap || P), a2 = C1(e, l, s, y, C ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, h0, U2 === l);
861
861
  var o2;
862
862
  if (a2 !== 0) {
863
- var w2 = m2(f);
863
+ var g2 = h2(f);
864
864
  do
865
- w2 -= a2, o2 = W.children[w2];
865
+ g2 -= a2, o2 = G.children[g2];
866
866
  while (o2 && (z(o2, "display") === "none" || o2 === D));
867
867
  }
868
868
  if (a2 === 0 || o2 === l)
@@ -870,9 +870,9 @@ M.prototype = /** @lends Sortable.prototype */
870
870
  U2 = l, o0 = a2;
871
871
  var E2 = l.nextElementSibling, d2 = !1;
872
872
  d2 = a2 === 1;
873
- var m = f0($, a, f, _, l, s, e, d2);
873
+ var m = f0(q, a, f, _, l, s, e, d2);
874
874
  if (m !== !1)
875
- return (m === 1 || m === -1) && (d2 = m === 1), G0 = !0, setTimeout(g1, 30), Y(), d2 && !E2 ? a.appendChild(f) : l.parentNode.insertBefore(f, d2 ? E2 : l), T && Ae(T, 0, y2 - T.scrollTop), W = f.parentNode, v2 !== void 0 && !h0 && (y0 = Math.abs(v2 - K(l)[I])), Z(), R(!0);
875
+ return (m === 1 || m === -1) && (d2 = m === 1), G0 = !0, setTimeout(g1, 30), $(), d2 && !E2 ? a.appendChild(f) : l.parentNode.insertBefore(f, d2 ? E2 : l), T && Ae(T, 0, y2 - T.scrollTop), G = f.parentNode, v2 !== void 0 && !h0 && (y0 = Math.abs(v2 - K(l)[I])), Z(), R(!0);
876
876
  }
877
877
  if (a.contains(f))
878
878
  return R(!1);
@@ -889,60 +889,60 @@ M.prototype = /** @lends Sortable.prototype */
889
889
  },
890
890
  _onDrop: function(e) {
891
891
  var a = this.el, l = this.options;
892
- if (i2 = m2(f), T2 = m2(f, l.draggable), n2("drop", this, {
892
+ if (i2 = h2(f), T2 = h2(f, l.draggable), n2("drop", this, {
893
893
  evt: e
894
- }), W = f && f.parentNode, i2 = m2(f), T2 = m2(f, l.draggable), M.eventCanceled) {
894
+ }), G = f && f.parentNode, i2 = h2(f), T2 = h2(f, l.draggable), M.eventCanceled) {
895
895
  this._nulling();
896
896
  return;
897
897
  }
898
- G2 = !1, h0 = !1, n0 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), W0(this.cloneId), W0(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), a0 && z(document.body, "user-select", ""), z(f, "transform", ""), e && (Q2 && (e.cancelable && e.preventDefault(), !l.dropBubble && e.stopPropagation()), D && D.parentNode && D.parentNode.removeChild(D), ($ === W || Q && Q.lastPutMode !== "clone") && G && G.parentNode && G.parentNode.removeChild(G), f && (this.nativeDraggable && B(f, "dragend", this), q0(f), f.style["will-change"] = "", Q2 && !G2 && s2(f, Q ? Q.options.ghostClass : this.options.ghostClass, !1), s2(f, this.options.chosenClass, !1), r2({
898
+ G2 = !1, h0 = !1, n0 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), W0(this.cloneId), W0(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), a0 && z(document.body, "user-select", ""), z(f, "transform", ""), e && (Q2 && (e.cancelable && e.preventDefault(), !l.dropBubble && e.stopPropagation()), D && D.parentNode && D.parentNode.removeChild(D), (q === G || Q && Q.lastPutMode !== "clone") && U && U.parentNode && U.parentNode.removeChild(U), f && (this.nativeDraggable && B(f, "dragend", this), q0(f), f.style["will-change"] = "", Q2 && !G2 && s2(f, Q ? Q.options.ghostClass : this.options.ghostClass, !1), s2(f, this.options.chosenClass, !1), r2({
899
899
  sortable: this,
900
900
  name: "unchoose",
901
- toEl: W,
901
+ toEl: G,
902
902
  newIndex: null,
903
903
  newDraggableIndex: null,
904
904
  originalEvent: e
905
- }), $ !== W ? (i2 >= 0 && (r2({
906
- rootEl: W,
905
+ }), q !== G ? (i2 >= 0 && (r2({
906
+ rootEl: G,
907
907
  name: "add",
908
- toEl: W,
909
- fromEl: $,
908
+ toEl: G,
909
+ fromEl: q,
910
910
  originalEvent: e
911
911
  }), r2({
912
912
  sortable: this,
913
913
  name: "remove",
914
- toEl: W,
914
+ toEl: G,
915
915
  originalEvent: e
916
916
  }), r2({
917
- rootEl: W,
917
+ rootEl: G,
918
918
  name: "sort",
919
- toEl: W,
920
- fromEl: $,
919
+ toEl: G,
920
+ fromEl: q,
921
921
  originalEvent: e
922
922
  }), r2({
923
923
  sortable: this,
924
924
  name: "sort",
925
- toEl: W,
925
+ toEl: G,
926
926
  originalEvent: e
927
927
  })), Q && Q.save()) : i2 !== W2 && i2 >= 0 && (r2({
928
928
  sortable: this,
929
929
  name: "update",
930
- toEl: W,
930
+ toEl: G,
931
931
  originalEvent: e
932
932
  }), r2({
933
933
  sortable: this,
934
934
  name: "sort",
935
- toEl: W,
935
+ toEl: G,
936
936
  originalEvent: e
937
937
  })), M.active && ((i2 == null || i2 === -1) && (i2 = W2, T2 = l0), r2({
938
938
  sortable: this,
939
939
  name: "end",
940
- toEl: W,
940
+ toEl: G,
941
941
  originalEvent: e
942
942
  }), this.save()))), this._nulling();
943
943
  },
944
944
  _nulling: function() {
945
- n2("nulling", this), $ = f = W = D = q2 = G = C0 = F2 = I2 = x2 = Q2 = i2 = T2 = W2 = l0 = U2 = o0 = Q = d0 = M.dragged = M.ghost = M.clone = M.active = null, S0.forEach(function(e) {
945
+ n2("nulling", this), q = f = G = D = q2 = U = C0 = F2 = I2 = w2 = Q2 = i2 = T2 = W2 = l0 = U2 = o0 = Q = d0 = M.dragged = M.ghost = M.clone = M.active = null, S0.forEach(function(e) {
946
946
  e.checked = !0;
947
947
  }), S0.length = N0 = I0 = 0;
948
948
  },
@@ -1025,7 +1025,7 @@ M.prototype = /** @lends Sortable.prototype */
1025
1025
  _hideClone: function() {
1026
1026
  if (!F2) {
1027
1027
  if (n2("hideClone", this), M.eventCanceled) return;
1028
- z(G, "display", "none"), this.options.removeCloneOnHide && G.parentNode && G.parentNode.removeChild(G), F2 = !0;
1028
+ z(U, "display", "none"), this.options.removeCloneOnHide && U.parentNode && U.parentNode.removeChild(U), F2 = !0;
1029
1029
  }
1030
1030
  },
1031
1031
  _showClone: function(e) {
@@ -1035,7 +1035,7 @@ M.prototype = /** @lends Sortable.prototype */
1035
1035
  }
1036
1036
  if (F2) {
1037
1037
  if (n2("showClone", this), M.eventCanceled) return;
1038
- f.parentNode == $ && !this.options.group.revertClone ? $.insertBefore(G, f) : q2 ? $.insertBefore(G, q2) : $.appendChild(G), this.options.group.revertClone && this.animate(f, G), z(G, "display", ""), F2 = !1;
1038
+ f.parentNode == q && !this.options.group.revertClone ? q.insertBefore(U, f) : q2 ? q.insertBefore(U, q2) : q.appendChild(U), this.options.group.revertClone && this.animate(f, U), z(U, "display", ""), F2 = !1;
1039
1039
  }
1040
1040
  }
1041
1041
  };
@@ -1077,7 +1077,7 @@ function C1(t, e, a, l, _, s, i, c) {
1077
1077
  return g = g || i, g && (p < d + v * s / 2 || p > h - v * s / 2) ? p > d + v / 2 ? 1 : -1 : 0;
1078
1078
  }
1079
1079
  function y1(t) {
1080
- return m2(f) < m2(t) ? 1 : -1;
1080
+ return h2(f) < h2(t) ? 1 : -1;
1081
1081
  }
1082
1082
  function M1(t) {
1083
1083
  for (var e = t.tagName + t.className + t.src + t.href + t.textContent, a = e.length, l = 0; a--; )
@@ -1113,7 +1113,7 @@ M.utils = {
1113
1113
  closest: C2,
1114
1114
  toggleClass: s2,
1115
1115
  clone: Le,
1116
- index: m2,
1116
+ index: h2,
1117
1117
  nextTick: M0,
1118
1118
  cancelNextTick: W0,
1119
1119
  detectDirection: Fe,
@@ -1203,12 +1203,12 @@ var j0 = Se(function(t, e, a, l) {
1203
1203
  J0 !== a && (J0 = a, b0(), e0 = e.scroll, d = e.scrollFn, e0 === !0 && (e0 = P2(a, !0)));
1204
1204
  var h = 0, g = e0;
1205
1205
  do {
1206
- var y = g, E = K(y), V = E.top, L = E.bottom, Y = E.left, R = E.right, Z = E.width, j = E.height, l2 = void 0, a2 = void 0, v2 = y.scrollWidth, P = y.scrollHeight, C = z(y), I = y.scrollLeft, T = y.scrollTop;
1207
- y === p ? (l2 = Z < v2 && (C.overflowX === "auto" || C.overflowX === "scroll" || C.overflowX === "visible"), a2 = j < P && (C.overflowY === "auto" || C.overflowY === "scroll" || C.overflowY === "visible")) : (l2 = Z < v2 && (C.overflowX === "auto" || C.overflowX === "scroll"), a2 = j < P && (C.overflowY === "auto" || C.overflowY === "scroll"));
1208
- var y2 = l2 && (Math.abs(R - _) <= i && I + Z < v2) - (Math.abs(Y - _) <= i && !!I), o2 = a2 && (Math.abs(L - s) <= i && T + j < P) - (Math.abs(V - s) <= i && !!T);
1206
+ var y = g, E = K(y), V = E.top, k = E.bottom, $ = E.left, R = E.right, Z = E.width, Y = E.height, l2 = void 0, a2 = void 0, v2 = y.scrollWidth, P = y.scrollHeight, C = z(y), I = y.scrollLeft, T = y.scrollTop;
1207
+ y === p ? (l2 = Z < v2 && (C.overflowX === "auto" || C.overflowX === "scroll" || C.overflowX === "visible"), a2 = Y < P && (C.overflowY === "auto" || C.overflowY === "scroll" || C.overflowY === "visible")) : (l2 = Z < v2 && (C.overflowX === "auto" || C.overflowX === "scroll"), a2 = Y < P && (C.overflowY === "auto" || C.overflowY === "scroll"));
1208
+ var y2 = l2 && (Math.abs(R - _) <= i && I + Z < v2) - (Math.abs($ - _) <= i && !!I), o2 = a2 && (Math.abs(k - s) <= i && T + Y < P) - (Math.abs(V - s) <= i && !!T);
1209
1209
  if (!J[h])
1210
- for (var w2 = 0; w2 <= h; w2++)
1211
- J[w2] || (J[w2] = {});
1210
+ for (var g2 = 0; g2 <= h; g2++)
1211
+ J[g2] || (J[g2] = {});
1212
1212
  (J[h].vx != y2 || J[h].vy != o2 || J[h].el !== y) && (J[h].el = y, J[h].vx = y2, J[h].vy = o2, clearInterval(J[h].pid), (y2 != 0 || o2 != 0) && (v = !0, J[h].pid = setInterval((function() {
1213
1213
  l && this.layer === 0 && M.active._onTouchMove(A0);
1214
1214
  var E2 = J[this.layer].vy ? J[this.layer].vy * c : 0, d2 = J[this.layer].vx ? J[this.layer].vx * c : 0;
@@ -6337,7 +6337,7 @@ function Ye(t = [], e) {
6337
6337
  ["ElCard", "ElTabPane", "GridComponent", "DivComponent"].includes(l) && a.id && e({ id: a.id }), a.children && Array.isArray(a.children) && Ye(a.children, e);
6338
6338
  });
6339
6339
  }
6340
- function f2() {
6340
+ function m2() {
6341
6341
  return $e;
6342
6342
  }
6343
6343
  function fu(t) {
@@ -6382,7 +6382,7 @@ function We(t, e) {
6382
6382
  t.setData("type", a), e.closest("[data-id]") ? t.setData("itemId", e.closest("[data-id]").dataset.id) : t.setData("itemId", F0());
6383
6383
  }
6384
6384
  const u0 = {
6385
- teleportTo: k(null),
6385
+ teleportTo: L(null),
6386
6386
  SET_TELEPORT_TO(t) {
6387
6387
  this.teleportTo.value = t;
6388
6388
  }
@@ -6393,7 +6393,7 @@ const u0 = {
6393
6393
  }
6394
6394
  };
6395
6395
  function D2(t) {
6396
- const e = f2();
6396
+ const e = m2();
6397
6397
  e && (e.onmouseenter = null, e.onmouseleave = null), t && (u0.SET_TELEPORT_TO(t), Y2(() => {
6398
6398
  const a = t.querySelector(".toolbar");
6399
6399
  t.style.position = "relative", a.style.left = `${t.getBoundingClientRect().width - a.clientWidth}px`, a.style.bottom = "0px", a.style.zIndex = "auto", t.onmouseenter = () => {
@@ -6415,7 +6415,7 @@ function Z0(t) {
6415
6415
  }
6416
6416
  return e;
6417
6417
  }
6418
- const h2 = k({
6418
+ const x2 = L({
6419
6419
  components: []
6420
6420
  // 顶级组件列表,支持嵌套 children
6421
6421
  });
@@ -6423,10 +6423,8 @@ let g0 = {};
6423
6423
  function gu() {
6424
6424
  function t({ id: l = "", el: _ = null, componentJSON: s = null }) {
6425
6425
  var c, p, v;
6426
- if (!_ && !l) {
6427
- console.error("必须提供 id 或 el");
6426
+ if (!_ && !l)
6428
6427
  return;
6429
- }
6430
6428
  g0[l] && (g0[l].destroy(), delete g0[l]);
6431
6429
  let i = _ || document.querySelector(`[data-id='${l}']`);
6432
6430
  if (((c = i == null ? void 0 : i.dataset) == null ? void 0 : c.component) === "ElCard") {
@@ -6478,10 +6476,10 @@ function gu() {
6478
6476
  };
6479
6477
  }
6480
6478
  if (s) {
6481
- const v = s.dataset.id, d = U0(h2.value.components, v);
6479
+ const v = s.dataset.id, d = U0(x2.value.components, v);
6482
6480
  d && d.children.splice(l.newIndex, 0, p);
6483
6481
  } else
6484
- h2.value.components[l.newIndex] ? h2.value.components.splice(l.newIndex, 0, p) : h2.value.components.push(p);
6482
+ x2.value.components[l.newIndex] ? x2.value.components.splice(l.newIndex, 0, p) : x2.value.components.push(p);
6485
6483
  (_ === "ElCard" || _ === "ElTabs" || _ === "GridComponent" || _ === "DivComponent") && Y2(() => {
6486
6484
  var v;
6487
6485
  (v = p.children) != null && v.length ? p.children.forEach((d) => t({ id: d.id })) : t({ id: p.id });
@@ -6489,28 +6487,24 @@ function gu() {
6489
6487
  }
6490
6488
  function a(l) {
6491
6489
  var g;
6492
- if (console.log("handleSortChange", l), !((g = l.item) == null ? void 0 : g.dataset.id)) {
6493
- console.error("itemId 为空");
6490
+ if (!((g = l.item) == null ? void 0 : g.dataset.id))
6494
6491
  return;
6495
- }
6496
- const s = l.from.closest("[data-id]"), i = l.to.closest("[data-id]"), c = (s == null ? void 0 : s.dataset.id) || null, p = (i == null ? void 0 : i.dataset.id) || null, v = c ? U0(h2.value.components, c) : { children: h2.value.components }, d = p ? U0(h2.value.components, p) : { children: h2.value.components };
6492
+ const s = l.from.closest("[data-id]"), i = l.to.closest("[data-id]"), c = (s == null ? void 0 : s.dataset.id) || null, p = (i == null ? void 0 : i.dataset.id) || null, v = c ? U0(x2.value.components, c) : { children: x2.value.components }, d = p ? U0(x2.value.components, p) : { children: x2.value.components };
6497
6493
  let [h] = v.children.splice(l.oldDraggableIndex, 1);
6498
- d.children.splice(l.newIndex, 0, h), console.log(h2.value.components), h.componentName === "ElCard" || h.componentName === "ElTabs" || h.componentName === "GridComponent" || h.componentName === "DivComponent" ? Y2(() => {
6494
+ d.children.splice(l.newIndex, 0, h), h.componentName === "ElCard" || h.componentName === "ElTabs" || h.componentName === "GridComponent" || h.componentName === "DivComponent" ? Y2(() => {
6499
6495
  var y;
6500
- (h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (y = h.children) != null && y.length && Ye(h.children, t), D2(f2());
6501
- }) : D2(f2());
6496
+ (h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (y = h.children) != null && y.length && Ye(h.children, t), D2(m2());
6497
+ }) : D2(m2());
6502
6498
  }
6503
6499
  return {
6504
6500
  initSortable: t,
6505
- schema: h2
6501
+ schema: x2
6506
6502
  };
6507
6503
  }
6508
6504
  const O2 = {
6509
6505
  componentDataMap: {},
6510
6506
  SET_COMPONENT_DATA_MAP(t, e) {
6511
- if (!e || !t)
6512
- return console.error("组件和ID不能为空");
6513
- this.componentDataMap[t] = e;
6507
+ !e || !t || (this.componentDataMap[t] = e);
6514
6508
  },
6515
6509
  CLEAR_COMPONENT_DATA_MAP() {
6516
6510
  this.componentDataMap = {};
@@ -6521,9 +6515,9 @@ const O2 = {
6521
6515
  labelPosition: "right",
6522
6516
  inline: !1
6523
6517
  }),
6524
- formData: k({}),
6525
- previewFormData: k({}),
6526
- rules: k({}),
6518
+ formData: L({}),
6519
+ previewFormData: L({}),
6520
+ rules: L({}),
6527
6521
  SET_FORM_OPTIONS({ labelWidth: t, labelPosition: e }) {
6528
6522
  this.formOptions.labelWidth = t, this.formOptions.labelPosition = e;
6529
6523
  },
@@ -6571,7 +6565,7 @@ const xu = ["data-component", "data-id"], Me = {
6571
6565
  return (e, a) => {
6572
6566
  var l, _;
6573
6567
  return o(), n("div", {
6574
- class: k0(`drop-item drop-item-${g2(wu)(t.componentData.componentName)}`),
6568
+ class: k0(`drop-item drop-item-${f2(wu)(t.componentData.componentName)}`),
6575
6569
  "data-component": t.componentData.componentName,
6576
6570
  "data-id": t.componentData.id || ((_ = (l = t.componentData.children) == null ? void 0 : l[0]) == null ? void 0 : _.id)
6577
6571
  }, [
@@ -6752,17 +6746,17 @@ function pe({ isPreview: t = !1, callback: e }) {
6752
6746
  l.indexOf(s.componentName) === -1 && !(i in a.value) && (s.componentName === "ElTabs" ? A[c](i, s.children[0].props.name || "") : A[c](i, s.componentName === "ElCheckboxGroup" || s.componentName === "ElUpload" ? [] : ""));
6753
6747
  const p = { ...s.props }, v = s.on && Object.keys(s.on) ? s.on : {};
6754
6748
  if (a && l.indexOf(s.componentName) === -1) {
6755
- const L = Vu[s.componentName] || "modelValue";
6756
- p[L] = a.value[i], p[`onUpdate:${L}`] = (Y) => {
6757
- A[c](i, Y);
6749
+ const k = Vu[s.componentName] || "modelValue";
6750
+ p[k] = a.value[i], p[`onUpdate:${k}`] = ($) => {
6751
+ A[c](i, $);
6758
6752
  };
6759
6753
  }
6760
6754
  let d = {};
6761
- s.children && Array.isArray(s.children) ? s.children.forEach((L) => {
6762
- L.componentName === "template" && L.slot ? d[L.slot] = () => {
6763
- var Y;
6764
- return (Y = L.children) == null ? void 0 : Y.map(_);
6765
- } : (d.default || (d.default = () => []), d.default = /* @__PURE__ */ ((Y) => () => [...Y(), _(L)])(d.default));
6755
+ s.children && Array.isArray(s.children) ? s.children.forEach((k) => {
6756
+ k.componentName === "template" && k.slot ? d[k.slot] = () => {
6757
+ var $;
6758
+ return ($ = k.children) == null ? void 0 : $.map(_);
6759
+ } : (d.default || (d.default = () => []), d.default = /* @__PURE__ */ (($) => () => [...$(), _(k)])(d.default));
6766
6760
  }) : s.label && (d.default = () => s.label), s.componentName === "ElTabPane" && (p["data-id"] = s.id), p.icon && (p.icon = c2(zu, { icon: p.icon, ...p.iconStyle, class: p.class }, {}));
6767
6761
  const h = s.id;
6768
6762
  if (s.componentName === "ElCard")
@@ -6786,13 +6780,13 @@ function pe({ isPreview: t = !1, callback: e }) {
6786
6780
  default: () => c2(yu, { isPreview: t, ...s.props }, d)
6787
6781
  };
6788
6782
  else {
6789
- const L = c2(S2[s.componentName] || s.componentName, {
6783
+ const k = c2(S2[s.componentName] || s.componentName, {
6790
6784
  ...p,
6791
6785
  ...v
6792
6786
  }, d);
6793
6787
  y = {
6794
- default: () => L
6795
- }, e && e(s.componentName, i, L);
6788
+ default: () => k
6789
+ }, e && e(s.componentName, i, k);
6796
6790
  }
6797
6791
  return Eu.indexOf(s.componentName) > -1 && !s.parentId ? c2(Me, {
6798
6792
  componentData: { ...s, componentName: g },
@@ -6896,8 +6890,8 @@ const Du = [
6896
6890
  formRef: Object
6897
6891
  },
6898
6892
  setup(t, { expose: e }) {
6899
- e({ reset: R, select: Y });
6900
- const a = t, l = k(""), _ = k(null), s = k(!1), i = k(null), c = k(null), p = k([]), v = k([]), d = k([]), h = ["ElTabs"], g = ["ElCard", "ElButton", "ElDivider", "GridComponent", "DivComponent"], y = $2(() => i.value ? !i.value.noUseForm : !1), E = $2(() => (m) => {
6893
+ e({ reset: R, select: $ });
6894
+ const a = t, l = L(""), _ = L(null), s = L(!1), i = L(null), c = L(null), p = L([]), v = L([]), d = L([]), h = ["ElTabs"], g = ["ElCard", "ElButton", "ElDivider", "GridComponent", "DivComponent"], y = $2(() => i.value ? !i.value.noUseForm : !1), E = $2(() => (m) => {
6901
6895
  if (c.value.componentName === "ElUpload") {
6902
6896
  if (m.name === "提示内容")
6903
6897
  return c.value.children[1].children[0];
@@ -6914,12 +6908,12 @@ const Du = [
6914
6908
  return c.value;
6915
6909
  }
6916
6910
  return c.value.props;
6917
- }), V = $2(() => (m) => c.value.componentName === "ElUpload" && m.key === "text" ? c.value.children[0].props : c.value.props), L = $2(() => (m) => c.value.componentName === "ElUpload" && m.key === "fontSize" ? c.value.children[0].props.iconStyle : c.value.props);
6918
- function Y(m) {
6911
+ }), V = $2(() => (m) => c.value.componentName === "ElUpload" && m.key === "text" ? c.value.children[0].props : c.value.props), k = $2(() => (m) => c.value.componentName === "ElUpload" && m.key === "fontSize" ? c.value.children[0].props.iconStyle : c.value.props);
6912
+ function $(m) {
6919
6913
  var w, F;
6920
- if (p.value = [], console.log(m, "setComponent.vue"), i.value = m, c.value = g.indexOf(m.componentName) > -1 ? i.value : i.value.children[0], m.props && (l.value = m.props.label, _.value = m.props["label-width"], s.value = ((w = m.props.rules) == null ? void 0 : w.required) || !1), d.value = [], v.value = [], m.children && m.children[0] && ((F = m.children[0]) == null ? void 0 : F.componentName) !== "ElUpload" && !m.parentId) {
6921
- let q;
6922
- h.indexOf(m.componentName) > -1 ? q = m.children : m.componentName === "ElFormItem" && (q = m.children[0].children), v.value = (q || []).map((U, e2) => (d.value[e2] = U.props.label, U.props));
6914
+ if (p.value = [], i.value = m, c.value = g.indexOf(m.componentName) > -1 ? i.value : i.value.children[0], m.props && (l.value = m.props.label, _.value = m.props["label-width"], s.value = ((w = m.props.rules) == null ? void 0 : w.required) || !1), d.value = [], v.value = [], m.children && m.children[0] && ((F = m.children[0]) == null ? void 0 : F.componentName) !== "ElUpload" && !m.parentId) {
6915
+ let W;
6916
+ h.indexOf(m.componentName) > -1 ? W = m.children : m.componentName === "ElFormItem" && (W = m.children[0].children), v.value = (W || []).map((j, e2) => (d.value[e2] = j.props.label, j.props));
6923
6917
  }
6924
6918
  (y.value && m.children[0] || g.indexOf(c.value.componentName) > -1) && (p.value = Ru[`${c.value.componentName}ConfigProps`]);
6925
6919
  }
@@ -6929,16 +6923,14 @@ const Du = [
6929
6923
  function Z(m) {
6930
6924
  i.value.props.label = m;
6931
6925
  }
6932
- function j(m) {
6926
+ function Y(m) {
6933
6927
  m ? i.value.props["label-width"] = Number(m) : delete i.value.props["label-width"];
6934
6928
  }
6935
6929
  function l2() {
6936
- var F, q, U;
6937
- if (!((F = i.value) != null && F.props)) {
6938
- console.error(`currentData.value.props ${(q = i.value) == null ? void 0 : q.props}`);
6930
+ var F, j;
6931
+ if (!((F = i.value) != null && F.props))
6939
6932
  return;
6940
- }
6941
- const m = (U = i.value.children) == null ? void 0 : U[0], w = `field${m == null ? void 0 : m.id}`;
6933
+ const m = (j = i.value.children) == null ? void 0 : j[0], w = `field${m == null ? void 0 : m.id}`;
6942
6934
  if (!s.value && A.rules.value[w]) {
6943
6935
  delete i.value.props.rules, A.DELETE_FORM_DATA(w), A.DELETE_RULES(w), setTimeout(() => {
6944
6936
  a.formRef.resetFields();
@@ -6955,14 +6947,14 @@ const Du = [
6955
6947
  }));
6956
6948
  }
6957
6949
  function a2(m) {
6958
- var q, U, e2;
6959
- const w = m.key, F = ((e2 = (U = (q = i.value) == null ? void 0 : q.children) == null ? void 0 : U[0]) == null ? void 0 : e2.props) || {};
6950
+ var W, j, e2;
6951
+ const w = m.key, F = ((e2 = (j = (W = i.value) == null ? void 0 : W.children) == null ? void 0 : j[0]) == null ? void 0 : e2.props) || {};
6960
6952
  return w === "multiple-limit" || w === "collapse-tags" ? F.multiple === !0 : w === "unlink-panels" || w === "range-separator" ? F.type === "daterange" || F.type === "datetimerange" : w === "show-password" ? F.type === "password" : w === "maxlength" || w === "show-word-limit" ? F.type === "textarea" : !0;
6961
6953
  }
6962
6954
  let v2 = "";
6963
6955
  function P(m, w, F) {
6964
6956
  if (m === "textarea" || v2 === "textarea") {
6965
- v2 = m, D2(f2()), delete i.value.children[0].props["show-password"], delete i.value.children[0].props["show-word-limit"], delete i.value.children[0].props.maxlength;
6957
+ v2 = m, D2(m2()), delete i.value.children[0].props["show-password"], delete i.value.children[0].props["show-word-limit"], delete i.value.children[0].props.maxlength;
6966
6958
  return;
6967
6959
  }
6968
6960
  if (m === "text" || m === "password") {
@@ -6983,59 +6975,53 @@ const Du = [
6983
6975
  }));
6984
6976
  }
6985
6977
  function I(m) {
6986
- i.value.children[0].children.splice(m, 1), v.value.splice(m, 1), d.value.splice(m, 1), D2(f2());
6978
+ i.value.children[0].children.splice(m, 1), v.value.splice(m, 1), d.value.splice(m, 1), D2(m2());
6987
6979
  }
6988
6980
  function T(m, w, F) {
6989
- const q = m[w];
6990
- m.splice(w, 1, m[F]), m.splice(F, 1, q);
6981
+ const W = m[w];
6982
+ m.splice(w, 1, m[F]), m.splice(F, 1, W);
6991
6983
  }
6992
6984
  function y2(m) {
6993
- T(v.value, m, m - 1), T(d.value, m, m - 1), T(i.value.children[0].children, m, m - 1), D2(f2());
6985
+ T(v.value, m, m - 1), T(d.value, m, m - 1), T(i.value.children[0].children, m, m - 1), D2(m2());
6994
6986
  }
6995
6987
  function o2(m) {
6996
- T(v.value, m, m + 1), T(d.value, m, m + 1), T(i.value.children[0].children, m, m + 1), D2(f2());
6988
+ T(v.value, m, m + 1), T(d.value, m, m + 1), T(i.value.children[0].children, m, m + 1), D2(m2());
6997
6989
  }
6998
- function w2(m, w) {
6999
- v.value[w].label = m, D2(f2());
6990
+ function g2(m, w) {
6991
+ v.value[w].label = m, D2(m2());
7000
6992
  }
7001
6993
  function E2(m, w) {
7002
6994
  v.value[w].name = m;
7003
6995
  }
7004
6996
  function d2() {
7005
6997
  var K2, Z2, i0, c0, p0, v0, b;
7006
- if (!((Z2 = (K2 = i.value) == null ? void 0 : K2.children) != null && Z2.length)) {
7007
- console.error("当前组件 length 为 0");
6998
+ if (!((Z2 = (K2 = i.value) == null ? void 0 : K2.children) != null && Z2.length))
7008
6999
  return;
7009
- }
7010
7000
  const m = h.indexOf(i.value.componentName) > -1, w = m ? i.value.children : (i0 = i.value.children[0]) == null ? void 0 : i0.children;
7011
- if (!w) {
7012
- console.error("目标children不存在");
7001
+ if (!w)
7013
7002
  return;
7014
- }
7015
- const F = (/* @__PURE__ */ new Date()).getTime(), q = {
7003
+ const F = (/* @__PURE__ */ new Date()).getTime(), W = {
7016
7004
  label: "New Option",
7017
7005
  ...m ? { name: F } : { value: F }
7018
7006
  };
7019
- (p0 = (c0 = i.value.children[0]) == null ? void 0 : c0.props) != null && p0.border && (q.border = !0);
7020
- const U = m ? i.value.children[0].componentName : (b = (v0 = i.value.children[0]) == null ? void 0 : v0.children[0]) == null ? void 0 : b.componentName;
7021
- if (!U) {
7022
- console.error("无法确定组件类型");
7007
+ (p0 = (c0 = i.value.children[0]) == null ? void 0 : c0.props) != null && p0.border && (W.border = !0);
7008
+ const j = m ? i.value.children[0].componentName : (b = (v0 = i.value.children[0]) == null ? void 0 : v0.children[0]) == null ? void 0 : b.componentName;
7009
+ if (!j)
7023
7010
  return;
7024
- }
7025
7011
  const e2 = {
7026
- componentName: U,
7012
+ componentName: j,
7027
7013
  id: F0(),
7028
7014
  parentId: i.value.componentName === "ElFormItem" ? i.value.children[0].id : i.value.id,
7029
- props: q,
7015
+ props: W,
7030
7016
  ...m ? { children: [] } : {}
7031
7017
  };
7032
- w.push(ze({ ...e2 })), v.value && (d.value[d.value.length] = q.label, v.value.push(q)), m && Y2(() => {
7018
+ w.push(ze({ ...e2 })), v.value && (d.value[d.value.length] = W.label, v.value.push(W)), m && Y2(() => {
7033
7019
  var N;
7034
7020
  (N = a.initSortable) == null || N.call(a, { id: e2.id, componentJSON: e2 });
7035
- }), D2(f2());
7021
+ }), D2(m2());
7036
7022
  }
7037
7023
  return (m, w) => {
7038
- const F = O("el-divider"), q = O("el-input"), U = O("el-form-item"), e2 = O("el-icon"), K2 = O("el-input-number"), Z2 = O("el-switch"), i0 = O("el-option"), c0 = O("el-select"), p0 = O("el-button"), v0 = O("el-form");
7024
+ const F = O("el-divider"), W = O("el-input"), j = O("el-form-item"), e2 = O("el-icon"), K2 = O("el-input-number"), Z2 = O("el-switch"), i0 = O("el-option"), c0 = O("el-select"), p0 = O("el-button"), v0 = O("el-form");
7039
7025
  return o(), n("div", null, [
7040
7026
  x(v0, { "label-width": "90px" }, {
7041
7027
  default: H(() => [
@@ -7048,9 +7034,9 @@ const Du = [
7048
7034
  [H0, y.value]
7049
7035
  ]),
7050
7036
  y.value ? (o(), n(V2, { key: 0 }, [
7051
- x(U, { label: "标签文本" }, {
7037
+ x(j, { label: "标签文本" }, {
7052
7038
  default: H(() => [
7053
- x(q, {
7039
+ x(W, {
7054
7040
  modelValue: l.value,
7055
7041
  "onUpdate:modelValue": w[0] || (w[0] = (b) => l.value = b),
7056
7042
  onChange: Z
@@ -7058,7 +7044,7 @@ const Du = [
7058
7044
  ]),
7059
7045
  _: 1
7060
7046
  }),
7061
- x(U, null, {
7047
+ x(j, null, {
7062
7048
  label: H(() => [
7063
7049
  w[5] || (w[5] = p2(" 标签宽度 ")),
7064
7050
  x(e2, {
@@ -7066,7 +7052,7 @@ const Du = [
7066
7052
  title: "0 或空为 auto"
7067
7053
  }, {
7068
7054
  default: H(() => [
7069
- x(g2(L0))
7055
+ x(f2(L0))
7070
7056
  ]),
7071
7057
  _: 1
7072
7058
  })
@@ -7079,12 +7065,12 @@ const Du = [
7079
7065
  min: 0,
7080
7066
  "step-strictly": "",
7081
7067
  step: 1,
7082
- onChange: j
7068
+ onChange: Y
7083
7069
  }, null, 8, ["modelValue"])
7084
7070
  ]),
7085
7071
  _: 1
7086
7072
  }),
7087
- x(U, { label: "是否必填" }, {
7073
+ x(j, { label: "是否必填" }, {
7088
7074
  default: H(() => [
7089
7075
  x(Z2, {
7090
7076
  modelValue: s.value,
@@ -7094,12 +7080,12 @@ const Du = [
7094
7080
  ]),
7095
7081
  _: 1
7096
7082
  }),
7097
- s.value ? (o(), X(U, {
7083
+ s.value ? (o(), X(j, {
7098
7084
  key: 0,
7099
7085
  label: "必填提示"
7100
7086
  }, {
7101
7087
  default: H(() => [
7102
- x(q, {
7088
+ x(W, {
7103
7089
  modelValue: i.value.props.rules.message,
7104
7090
  "onUpdate:modelValue": w[3] || (w[3] = (b) => i.value.props.rules.message = b)
7105
7091
  }, null, 8, ["modelValue"])
@@ -7116,7 +7102,7 @@ const Du = [
7116
7102
  [H0, p.value && p.value.length]
7117
7103
  ]),
7118
7104
  (o(!0), n(V2, null, w0(p.value, (b) => (o(), n(V2, null, [
7119
- a2(b) ? (o(), X(U, {
7105
+ a2(b) ? (o(), X(j, {
7120
7106
  key: 0,
7121
7107
  label: b.name
7122
7108
  }, Xe({
@@ -7144,10 +7130,10 @@ const Du = [
7144
7130
  onChange: (N) => C(b.key, c.value.props[b.key])
7145
7131
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : typeof b.value == "number" ? (o(), X(K2, {
7146
7132
  key: 1,
7147
- modelValue: L.value(b)[b.key],
7148
- "onUpdate:modelValue": (N) => L.value(b)[b.key] = N,
7133
+ modelValue: k.value(b)[b.key],
7134
+ "onUpdate:modelValue": (N) => k.value(b)[b.key] = N,
7149
7135
  min: 0
7150
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), X(q, {
7136
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (o(), X(W, {
7151
7137
  key: 2,
7152
7138
  modelValue: E.value(b)[b.key],
7153
7139
  "onUpdate:modelValue": (N) => E.value(b)[b.key] = N,
@@ -7167,7 +7153,7 @@ const Du = [
7167
7153
  title: b.tip
7168
7154
  }, {
7169
7155
  default: H(() => [
7170
- x(g2(L0))
7156
+ x(f2(L0))
7171
7157
  ]),
7172
7158
  _: 2
7173
7159
  }, 1032, ["title"])
@@ -7185,33 +7171,33 @@ const Du = [
7185
7171
  }),
7186
7172
  r("ul", null, [
7187
7173
  (o(!0), n(V2, null, w0(v.value, (b, N) => (o(), n("li", null, [
7188
- x(U, { label: "文本" }, {
7174
+ x(j, { label: "文本" }, {
7189
7175
  default: H(() => [
7190
- x(q, {
7176
+ x(W, {
7191
7177
  modelValue: d.value[N],
7192
7178
  "onUpdate:modelValue": (M2) => d.value[N] = M2,
7193
- onChange: (M2) => w2(d.value[N], N)
7179
+ onChange: (M2) => g2(d.value[N], N)
7194
7180
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
7195
7181
  ]),
7196
7182
  _: 2
7197
7183
  }, 1024),
7198
- typeof b.value < "u" ? (o(), X(U, {
7184
+ typeof b.value < "u" ? (o(), X(j, {
7199
7185
  key: 0,
7200
7186
  label: "值(value)"
7201
7187
  }, {
7202
7188
  default: H(() => [
7203
- x(q, {
7189
+ x(W, {
7204
7190
  modelValue: b.value,
7205
7191
  "onUpdate:modelValue": (M2) => b.value = M2
7206
7192
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
7207
7193
  ]),
7208
7194
  _: 2
7209
- }, 1024)) : c.value.componentName !== "ElButton" ? (o(), X(U, {
7195
+ }, 1024)) : c.value.componentName !== "ElButton" ? (o(), X(j, {
7210
7196
  key: 1,
7211
7197
  label: "值(name)"
7212
7198
  }, {
7213
7199
  default: H(() => [
7214
- x(q, {
7200
+ x(W, {
7215
7201
  modelValue: b.name,
7216
7202
  "onUpdate:modelValue": (M2) => b.name = M2,
7217
7203
  onChange: (M2) => E2(b.name, N)
@@ -7226,7 +7212,7 @@ const Du = [
7226
7212
  title: "删除"
7227
7213
  }, {
7228
7214
  default: H(() => [
7229
- x(g2(ce))
7215
+ x(f2(ce))
7230
7216
  ]),
7231
7217
  _: 2
7232
7218
  }, 1032, ["onClick"]),
@@ -7236,7 +7222,7 @@ const Du = [
7236
7222
  title: "上移"
7237
7223
  }, {
7238
7224
  default: H(() => [
7239
- x(g2(qe))
7225
+ x(f2(qe))
7240
7226
  ]),
7241
7227
  _: 2
7242
7228
  }, 1032, ["onClick"])) : b2("", !0),
@@ -7246,7 +7232,7 @@ const Du = [
7246
7232
  title: "下移"
7247
7233
  }, {
7248
7234
  default: H(() => [
7249
- x(g2(Re))
7235
+ x(f2(Re))
7250
7236
  ]),
7251
7237
  _: 2
7252
7238
  }, 1032, ["onClick"])) : b2("", !0)
@@ -7279,7 +7265,7 @@ const Du = [
7279
7265
  e({
7280
7266
  init: c
7281
7267
  });
7282
- const l = a, _ = k("right"), s = k(null), i = k(!1);
7268
+ const l = a, _ = L("right"), s = L(null), i = L(!1);
7283
7269
  function c(h) {
7284
7270
  s.value = h.labelWidth, _.value = h.labelPosition, i.value = h.inline;
7285
7271
  }
@@ -7293,7 +7279,7 @@ const Du = [
7293
7279
  l("inlineChange", h);
7294
7280
  }
7295
7281
  return (h, g) => {
7296
- const y = O("el-icon"), E = O("el-input-number"), V = O("el-form-item"), L = O("el-radio"), Y = O("el-radio-group"), R = O("el-switch"), Z = O("el-form");
7282
+ const y = O("el-icon"), E = O("el-input-number"), V = O("el-form-item"), k = O("el-radio"), $ = O("el-radio-group"), R = O("el-switch"), Z = O("el-form");
7297
7283
  return o(), X(Z, { "label-width": "100px" }, {
7298
7284
  default: H(() => [
7299
7285
  x(V, null, {
@@ -7304,7 +7290,7 @@ const Du = [
7304
7290
  title: "0 或空为 auto"
7305
7291
  }, {
7306
7292
  default: H(() => [
7307
- x(g2(L0))
7293
+ x(f2(L0))
7308
7294
  ]),
7309
7295
  _: 1
7310
7296
  })
@@ -7312,7 +7298,7 @@ const Du = [
7312
7298
  default: H(() => [
7313
7299
  x(E, {
7314
7300
  modelValue: s.value,
7315
- "onUpdate:modelValue": g[0] || (g[0] = (j) => s.value = j),
7301
+ "onUpdate:modelValue": g[0] || (g[0] = (Y) => s.value = Y),
7316
7302
  min: 0,
7317
7303
  "step-strictly": "",
7318
7304
  step: 1,
@@ -7324,25 +7310,25 @@ const Du = [
7324
7310
  }),
7325
7311
  x(V, { label: "标签文本对齐" }, {
7326
7312
  default: H(() => [
7327
- x(Y, {
7313
+ x($, {
7328
7314
  modelValue: _.value,
7329
- "onUpdate:modelValue": g[1] || (g[1] = (j) => _.value = j),
7315
+ "onUpdate:modelValue": g[1] || (g[1] = (Y) => _.value = Y),
7330
7316
  onChange: p
7331
7317
  }, {
7332
7318
  default: H(() => [
7333
- x(L, { value: "left" }, {
7319
+ x(k, { value: "left" }, {
7334
7320
  default: H(() => g[4] || (g[4] = [
7335
7321
  p2("左对齐")
7336
7322
  ])),
7337
7323
  _: 1
7338
7324
  }),
7339
- x(L, { value: "right" }, {
7325
+ x(k, { value: "right" }, {
7340
7326
  default: H(() => g[5] || (g[5] = [
7341
7327
  p2("右对齐")
7342
7328
  ])),
7343
7329
  _: 1
7344
7330
  }),
7345
- x(L, { value: "top" }, {
7331
+ x(k, { value: "top" }, {
7346
7332
  default: H(() => g[6] || (g[6] = [
7347
7333
  p2("上对齐")
7348
7334
  ])),
@@ -7358,7 +7344,7 @@ const Du = [
7358
7344
  default: H(() => [
7359
7345
  x(R, {
7360
7346
  modelValue: i.value,
7361
- "onUpdate:modelValue": g[2] || (g[2] = (j) => i.value = j),
7347
+ "onUpdate:modelValue": g[2] || (g[2] = (Y) => i.value = Y),
7362
7348
  onChange: d
7363
7349
  }, null, 8, ["modelValue"])
7364
7350
  ]),
@@ -7375,14 +7361,14 @@ const Du = [
7375
7361
  e({
7376
7362
  open: c
7377
7363
  });
7378
- const a = k(!1), l = k(null), _ = A.previewFormData, s = A.rules;
7364
+ const a = L(!1), l = L(null), _ = A.previewFormData, s = A.rules;
7379
7365
  let i = null;
7380
7366
  function c() {
7381
7367
  a.value = !0, Y2(() => {
7382
7368
  const h = pe({ isPreview: !0 });
7383
7369
  i = oe({
7384
7370
  render() {
7385
- const g = JSON.parse(JSON.stringify(h2.value.components));
7371
+ const g = JSON.parse(JSON.stringify(x2.value.components));
7386
7372
  return c2(
7387
7373
  S2.ElForm,
7388
7374
  {
@@ -7455,7 +7441,7 @@ const Du = [
7455
7441
  },
7456
7442
  emits: ["onDragDrop", "clearAll"],
7457
7443
  setup(t, { emit: e }) {
7458
- const a = t, l = e, _ = k(!1), s = k(null);
7444
+ const a = t, l = e, _ = L(!1), s = L(null);
7459
7445
  function i() {
7460
7446
  _.value = !_.value, l("onDragDrop", _.value);
7461
7447
  }
@@ -8172,13 +8158,13 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8172
8158
  ee.forEach((P) => {
8173
8159
  P.componentName && (a[P.componentName] = P);
8174
8160
  }), Je.SET_COMPONENT_MAP(a);
8175
- const l = k("first"), _ = k("first"), s = k(null), i = k(null), c = k(null), p = k(null), v = k(null), d = k(null), h = k(!1), g = A.formData, y = A.rules, E = k(u0.teleportTo.value);
8176
- let V = null, L = !1;
8161
+ const l = L("first"), _ = L("first"), s = L(null), i = L(null), c = L(null), p = L(null), v = L(null), d = L(null), h = L(!1), g = A.formData, y = A.rules, E = L(u0.teleportTo.value);
8162
+ let V = null, k = !1;
8177
8163
  Ke(u0.teleportTo, (P) => {
8178
8164
  E.value = P;
8179
8165
  });
8180
8166
  const {
8181
- initSortable: Y,
8167
+ initSortable: $,
8182
8168
  schema: R
8183
8169
  } = gu();
8184
8170
  le(() => {
@@ -8204,12 +8190,11 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8204
8190
  I.originalEvent.dataTransfer.getData("type") && !I.to.classList.contains("component-box") ? I.item.remove() : I.item.classList.add("item-component");
8205
8191
  }
8206
8192
  }), Y2(() => {
8207
- Y({ el: c.value });
8193
+ $({ el: c.value });
8208
8194
  });
8209
8195
  });
8210
8196
  },
8211
8197
  updated() {
8212
- console.log(L, "updated");
8213
8198
  },
8214
8199
  render() {
8215
8200
  const I = R.value.components;
@@ -8237,7 +8222,7 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8237
8222
  }).use(S2, { locale: ie }).mount("#canvas-drop");
8238
8223
  });
8239
8224
  function Z(P) {
8240
- const C = P.target.closest(".drop-item"), I = f2();
8225
+ const C = P.target.closest(".drop-item"), I = m2();
8241
8226
  if (I && I.classList.remove("selected-component"), !C) {
8242
8227
  l2();
8243
8228
  return;
@@ -8246,18 +8231,18 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8246
8231
  const T = O2.componentDataMap;
8247
8232
  V = T[C.dataset.id], d.value.select(T[C.dataset.id]), D2(C);
8248
8233
  }
8249
- function j(P) {
8234
+ function Y(P) {
8250
8235
  h.value = P;
8251
8236
  }
8252
8237
  function l2(P = null) {
8253
8238
  P !== null && A.SET_FORM_OPTIONS_INIT(P);
8254
- const C = f2();
8239
+ const C = m2();
8255
8240
  C && (C.classList.remove("selected-component"), u0.SET_TELEPORT_TO(null), d.value.reset());
8256
8241
  }
8257
8242
  function a2(P) {
8258
8243
  var I;
8259
8244
  let C = P;
8260
- P || (C = V, f2().remove(), Ge(R.value.components, C.id), l2()), delete O2.componentDataMap[C.id], (I = C.children) != null && I[0] && (delete O2.componentDataMap[C.children[0].id], (C.componentName === "ElFormItem" || C.componentName === "ElTabs") && (A.DELETE_FORM_DATA(C.props.prop || `field${C.id}`), A.DELETE_RULES(C.props.prop))), C.componentName === "ElUpload" && N2.DELETE_STYLES(`${C.children[0].props.class} ::v-deep(.el-icon)`), C.children && C.children.length && C.children.forEach((T) => {
8245
+ P || (C = V, m2().remove(), Ge(R.value.components, C.id), l2()), delete O2.componentDataMap[C.id], (I = C.children) != null && I[0] && (delete O2.componentDataMap[C.children[0].id], (C.componentName === "ElFormItem" || C.componentName === "ElTabs") && (A.DELETE_FORM_DATA(C.props.prop || `field${C.id}`), A.DELETE_RULES(C.props.prop))), C.componentName === "ElUpload" && N2.DELETE_STYLES(`${C.children[0].props.class} ::v-deep(.el-icon)`), C.children && C.children.length && C.children.forEach((T) => {
8261
8246
  a2(T);
8262
8247
  });
8263
8248
  }
@@ -8265,7 +8250,7 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8265
8250
  R.value.components = [], A.CLEAR_ALL(), O2.componentDataMap = {}, i.value.init(A.formOptions), l2();
8266
8251
  }
8267
8252
  return (P, C) => {
8268
- const I = O("el-icon"), T = O("el-tab-pane"), y2 = O("el-tabs"), o2 = O("el-aside"), w2 = O("el-header"), E2 = O("el-main"), d2 = O("el-container");
8253
+ const I = O("el-icon"), T = O("el-tab-pane"), y2 = O("el-tabs"), o2 = O("el-aside"), g2 = O("el-header"), E2 = O("el-main"), d2 = O("el-container");
8269
8254
  return o(), X(d2, { style: { position: "relative" } }, {
8270
8255
  default: H(() => [
8271
8256
  E.value ? (o(), X(Ze, {
@@ -8283,7 +8268,7 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8283
8268
  onClick: C[0] || (C[0] = (m) => a2())
8284
8269
  }, {
8285
8270
  default: H(() => [
8286
- x(g2(ce))
8271
+ x(f2(ce))
8287
8272
  ]),
8288
8273
  _: 1
8289
8274
  })
@@ -8309,7 +8294,7 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8309
8294
  ref: s,
8310
8295
  class: "component-box"
8311
8296
  }, [
8312
- (o(!0), n(V2, null, w0(g2(e), (m) => (o(), n(V2, null, [
8297
+ (o(!0), n(V2, null, w0(f2(e), (m) => (o(), n(V2, null, [
8313
8298
  m.title ? (o(), n("div", A5, E0(m.title), 1)) : (o(), n("div", {
8314
8299
  key: 1,
8315
8300
  class: "item item-component grab",
@@ -8331,11 +8316,11 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8331
8316
  }),
8332
8317
  x(E2, { class: "canvas" }, {
8333
8318
  default: H(() => [
8334
- x(w2, { height: "50px" }, {
8319
+ x(g2, { height: "50px" }, {
8335
8320
  default: H(() => [
8336
8321
  x(Qu, {
8337
- json: g2(R).components,
8338
- onOnDragDrop: j,
8322
+ json: f2(R).components,
8323
+ onOnDragDrop: Y,
8339
8324
  onClearAll: v2
8340
8325
  }, null, 8, ["json"])
8341
8326
  ]),
@@ -8372,11 +8357,11 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8372
8357
  r("div", {
8373
8358
  class: k0({ "panel-content": _.value !== "second", "panel-code": _.value === "second" })
8374
8359
  }, [
8375
- z0(x(g2(ju), {
8360
+ z0(x(f2(ju), {
8376
8361
  ref_key: "setComponentRef",
8377
8362
  ref: d,
8378
8363
  formRef: p.value,
8379
- initSortable: g2(Y)
8364
+ initSortable: f2($)
8380
8365
  }, null, 8, ["formRef", "initSortable"]), [
8381
8366
  [H0, _.value === "first"]
8382
8367
  ]),
@@ -8404,7 +8389,7 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8404
8389
  callback: { type: Function }
8405
8390
  },
8406
8391
  setup(t, { expose: e }) {
8407
- const a = t, l = k(null), _ = A.previewFormData, s = A.rules;
8392
+ const a = t, l = L(null), _ = A.previewFormData, s = A.rules;
8408
8393
  return e({
8409
8394
  formRef: l
8410
8395
  }), le(() => {
@@ -8448,7 +8433,7 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8448
8433
  getJson: s,
8449
8434
  formRef: l
8450
8435
  });
8451
- const a = k(null);
8436
+ const a = L(null);
8452
8437
  function l() {
8453
8438
  return a.value.formRef;
8454
8439
  }
@@ -8457,7 +8442,7 @@ const S5 = ["index.js", "imports.js"], u2 = B5(S5), ee = [
8457
8442
  }
8458
8443
  function s() {
8459
8444
  const { labelPosition: i, labelWidth: c, inline: p } = A.formOptions, v = {};
8460
- return i !== "right" && i !== "" && (v.labelPosition = i), c !== "" && c !== "auto" && (v.labelWidth = c), p && (v.inline = p), JSON.stringify({ formOptions: v, forms: h2.value.components }, null, 2);
8445
+ return i !== "right" && i !== "" && (v.labelPosition = i), c !== "" && c !== "auto" && (v.labelWidth = c), p && (v.inline = p), JSON.stringify({ formOptions: v, forms: x2.value.components }, null, 2);
8461
8446
  }
8462
8447
  return (i, c) => (o(), n("div", R5, [
8463
8448
  t.isPreview ? (o(), X(I5, {