low-code-form-generator 1.0.20 → 1.1.0

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 +1 @@
1
- .div-border[data-v-b4ec6a05]{min-height:50px;border:1px dashed #ecd55e;border-radius:5px;box-sizing:border-box}.grid[data-v-9c27fd62]{width:100%;display:grid}.grid-border[data-v-9c27fd62]{box-sizing:border-box;min-height:50px;border:1px dashed #409EFF;border-radius:5px}.options ul[data-v-2f0cb2a2]{padding:0}.options li[data-v-2f0cb2a2]{list-style-type:none;border-bottom:1px dotted #ebeef5;margin-bottom:10px;padding:10px 10px 10px 0;position:relative;border-radius:5px}.options li[data-v-2f0cb2a2]:hover{background-color:#ebeef5}.options li:hover .toolbar[data-v-2f0cb2a2]{display:block}.options .toolbar[data-v-2f0cb2a2]{display:none;position:absolute;bottom:0;right:10px}.options .toolbar .delete[data-v-2f0cb2a2]{color:red}.options .toolbar .el-icon[data-v-2f0cb2a2]:not(.delete){color:#3b82f6}.options .toolbar .el-icon[data-v-2f0cb2a2]{cursor:pointer;margin:0 5px}.tip[data-v-cbf30a35]{color:coral;cursor:pointer;align-self:center;margin-left:5px}#preview-box[data-v-e9180d61]{height:600px;overflow:auto}.header[data-v-69a53efe]{padding:10px;background:#fff;border-radius:5px;height:100%;box-sizing:border-box;display:flex}.el-dropdown[data-v-69a53efe]{margin-left:12px}[data-v-a7910661] .drop-zone-box,.panel[data-v-a7910661],.editor-panel[data-v-a7910661]{padding:10px;background:#fff;border-radius:5px;overflow:auto}.panel[data-v-a7910661],.panel[data-v-a7910661] .el-tabs,.panel[data-v-a7910661] .el-tabs .el-tabs__content,.panel[data-v-a7910661] .el-tabs .el-tab-pane{height:100%}.editor-panel[data-v-a7910661] .el-form-item__label{font-size:13px}.el-aside[data-v-a7910661]{overflow:hidden}.panel-content[data-v-a7910661]{height:calc(100% - 54px);overflow:auto}.panel-code[data-v-a7910661]{height:calc(100% - 79px)}.panel-code .code-editor[data-v-a7910661]{height:100%}.component-box[data-v-a7910661]{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;max-height:calc(100% - 10px);overflow-y:auto;overflow-x:hidden}.component-box .group-title[data-v-a7910661]{width:100%;font-weight:700;font-size:15px;margin-bottom:10px;color:#333}.component-box .group-title[data-v-a7910661]:not(:first-child){margin-top:20px}.grab[data-v-a7910661]{cursor:grab}.pointer[data-v-a7910661]{cursor:pointer}.item-component[data-v-a7910661]{width:calc(50% - 10px)}.item[data-v-a7910661]{display:inline-block;padding:8px 10px;border-radius:8px;background:#f3f4f64d;border:1px solid #e5e7eb;font-size:14px;font-weight:500;color:#333;box-sizing:border-box}.item[data-v-a7910661]:hover{background:#e0f2fe;border-color:#3b82f6;color:#1d4ed8}.item[data-v-a7910661]:active{cursor:grabbing;background:#bfdbfe}.item svg[data-v-a7910661]{vertical-align:sub;width:20px;height:20px;fill:currentColor;margin-right:5px}.canvas[data-v-a7910661]{padding:0;position:relative}.toolbar[data-v-a7910661]{position:absolute;z-index:100!important;background:#409eff;padding:3px 15px;border-top-left-radius:5px}.toolbar .el-icon[data-v-a7910661]{cursor:pointer;margin:0 5px}.toolbar .delete[data-v-a7910661]{color:#fff}.canvas-content[data-v-a7910661]{height:calc(100% - 60px);position:relative}.canvas-content .mask[data-v-a7910661]{position:absolute;left:0;top:0;height:100%;width:100%}.canvas-content #canvas-drop[data-v-a7910661],[data-v-a7910661] .el-form{height:100%}[data-v-a7910661] .el-form .drop-zone-box{height:100%;margin:0 10px;box-sizing:border-box}[data-v-a7910661] .el-dialog{padding:0!important}[data-v-a7910661] .el-dialog .el-dialog__footer{padding:15px;border-top:1px solid #e5e7eb}[data-v-a7910661] .el-dialog .el-dialog__header{padding:15px;border-bottom:1px solid #e5e7eb}[data-v-a7910661] .el-dialog .el-dialog__body{padding:15px}[data-v-a7910661] .cm-editor{height:100%;overflow:auto}[data-v-a7910661] .selected-component{outline:2px solid #409EFF;border-radius:5px;padding:5px}[data-v-a7910661] .el-header{padding:0;margin:0 10px 10px}[data-v-a7910661] .el-input-number{width:100%}[data-v-a7910661] .inline-block{display:inline-flex}[data-v-a7910661] .form-item-tip{color:coral;cursor:pointer;align-self:center;margin-left:5px}[data-v-a7910661] .drop-zone{min-height:50px;padding:10px;border:1px dashed #aaa;display:flex;flex-direction:column;gap:10px}[data-v-a7910661] .drop-item-tabs,[data-v-a7910661] .drop-item-card{width:100%}[data-v-a7910661] .drop-zone-box .el-tabs__content .el-tab-pane{min-height:55px}[data-v-a7910661] .drop-item-grid-component{width:100%}#preview-panel[data-v-965fdd3c]{height:100%}.el-container[data-v-03df7d24]{height:100%;margin:0}.low-code-form[data-v-03df7d24]{background-color:#f0f2f5;height:100%;padding:5px;box-sizing:border-box}[data-v-03df7d24] .el-form--inline .drop-item:not(.drop-item-card):not(.drop-item-el-tabs):not(.drop-item-el-button):not(.drop-item-el-divider):not(.drop-item-div-component){display:inline-flex}[data-v-03df7d24] .drop-item-el-button{display:inline-block}[data-v-03df7d24] .drop-item-el-button+.drop-item-el-button{margin-left:12px}[data-v-03df7d24] .drop-item{box-sizing:border-box;margin-bottom:10px}[data-v-03df7d24] .el-date-editor.el-input{width:100%}[data-v-03df7d24] .el-table td.el-table__cell .cell{min-height:23px}
1
+ .div-border[data-v-b4ec6a05]{min-height:50px;border:1px dashed #ecd55e;border-radius:5px;box-sizing:border-box}.grid[data-v-9c27fd62]{width:100%;display:grid}.grid-border[data-v-9c27fd62]{box-sizing:border-box;min-height:50px;border:1px dashed #409EFF;border-radius:5px}.options ul[data-v-2f0cb2a2]{padding:0}.options li[data-v-2f0cb2a2]{list-style-type:none;border-bottom:1px dotted #ebeef5;margin-bottom:10px;padding:10px 10px 10px 0;position:relative;border-radius:5px}.options li[data-v-2f0cb2a2]:hover{background-color:#ebeef5}.options li:hover .toolbar[data-v-2f0cb2a2]{display:block}.options .toolbar[data-v-2f0cb2a2]{display:none;position:absolute;bottom:0;right:10px}.options .toolbar .delete[data-v-2f0cb2a2]{color:red}.options .toolbar .el-icon[data-v-2f0cb2a2]:not(.delete){color:#3b82f6}.options .toolbar .el-icon[data-v-2f0cb2a2]{cursor:pointer;margin:0 5px}.tip[data-v-cbf30a35]{color:coral;cursor:pointer;align-self:center;margin-left:5px}#preview-box[data-v-e9180d61]{height:600px;overflow:auto}.header[data-v-69a53efe]{padding:10px;background:#fff;border-radius:5px;height:100%;box-sizing:border-box;display:flex}.el-dropdown[data-v-69a53efe]{margin-left:12px}[data-v-a7910661] .drop-zone-box,.panel[data-v-a7910661],.editor-panel[data-v-a7910661]{padding:10px;background:#fff;border-radius:5px;overflow:auto}.panel[data-v-a7910661],.panel[data-v-a7910661] .el-tabs,.panel[data-v-a7910661] .el-tabs .el-tabs__content,.panel[data-v-a7910661] .el-tabs .el-tab-pane{height:100%}.editor-panel[data-v-a7910661] .el-form-item__label{font-size:13px}.el-aside[data-v-a7910661]{overflow:hidden}.panel-content[data-v-a7910661]{height:calc(100% - 54px);overflow:auto}.panel-code[data-v-a7910661]{height:calc(100% - 79px)}.panel-code .code-editor[data-v-a7910661]{height:100%}.component-box[data-v-a7910661]{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;max-height:calc(100% - 10px);overflow-y:auto;overflow-x:hidden}.component-box .group-title[data-v-a7910661]{width:100%;font-weight:700;font-size:15px;margin-bottom:10px;color:#333}.component-box .group-title[data-v-a7910661]:not(:first-child){margin-top:20px}.grab[data-v-a7910661]{cursor:grab}.pointer[data-v-a7910661]{cursor:pointer}.item-component[data-v-a7910661]{width:calc(50% - 10px)}.item[data-v-a7910661]{display:inline-block;padding:8px 10px;border-radius:8px;background:#f3f4f64d;border:1px solid #e5e7eb;font-size:14px;font-weight:500;color:#333;box-sizing:border-box}.item[data-v-a7910661]:hover{background:#e0f2fe;border-color:#3b82f6;color:#1d4ed8}.item[data-v-a7910661]:active{cursor:grabbing;background:#bfdbfe}.item svg[data-v-a7910661]{vertical-align:sub;width:20px;height:20px;fill:currentColor;margin-right:5px}.canvas[data-v-a7910661]{padding:0;position:relative}.toolbar[data-v-a7910661]{position:absolute;z-index:100!important;background:#409eff;padding:3px 15px;border-top-left-radius:5px}.toolbar .el-icon[data-v-a7910661]{cursor:pointer;margin:0 5px}.toolbar .delete[data-v-a7910661]{color:#fff}.canvas-content[data-v-a7910661]{height:calc(100% - 60px);position:relative}.canvas-content .mask[data-v-a7910661]{position:absolute;left:0;top:0;height:100%;width:100%}.canvas-content #canvas-drop[data-v-a7910661],[data-v-a7910661] .el-form{height:100%}[data-v-a7910661] .el-form .drop-zone-box{height:100%;margin:0 10px;box-sizing:border-box}[data-v-a7910661] .el-dialog{padding:0!important}[data-v-a7910661] .el-dialog .el-dialog__footer{padding:15px;border-top:1px solid #e5e7eb}[data-v-a7910661] .el-dialog .el-dialog__header{padding:15px;border-bottom:1px solid #e5e7eb}[data-v-a7910661] .el-dialog .el-dialog__body{padding:15px}[data-v-a7910661] .cm-editor{height:100%;overflow:auto}[data-v-a7910661] .selected-component{outline:2px solid #409EFF;border-radius:5px;padding:5px}[data-v-a7910661] .el-header{padding:0;margin:0 10px 10px}[data-v-a7910661] .el-input-number{width:100%}[data-v-a7910661] .inline-block{display:inline-flex}[data-v-a7910661] .form-item-tip{color:coral;cursor:pointer;align-self:center;margin-left:5px}[data-v-a7910661] .drop-zone{min-height:50px;padding:10px;border:1px dashed #aaa;display:flex;flex-direction:column;gap:10px}[data-v-a7910661] .drop-item-tabs,[data-v-a7910661] .drop-item-card{width:100%}[data-v-a7910661] .drop-zone-box .el-tabs__content .el-tab-pane{min-height:55px}[data-v-a7910661] .drop-item-grid-component{width:100%}#preview-panel[data-v-ce37e41c]{height:100%}.el-container[data-v-03df7d24]{height:100%;margin:0}.low-code-form[data-v-03df7d24]{background-color:#f0f2f5;height:100%;padding:5px;box-sizing:border-box}[data-v-03df7d24] .el-form--inline .drop-item:not(.drop-item-card):not(.drop-item-el-tabs):not(.drop-item-el-button):not(.drop-item-el-divider):not(.drop-item-div-component){display:inline-flex}[data-v-03df7d24] .drop-item-el-button{display:inline-block}[data-v-03df7d24] .drop-item-el-button+.drop-item-el-button{margin-left:12px}[data-v-03df7d24] .drop-item{box-sizing:border-box;margin-bottom:10px}[data-v-03df7d24] .el-date-editor.el-input{width:100%}[data-v-03df7d24] .el-table td.el-table__cell .cell{min-height:23px}
@@ -1,10 +1,10 @@
1
- import { defineComponent as s, createElementBlock as l, openBlock as o, createElementVNode as r, ref as F, nextTick as J2, reactive as L1, normalizeClass as P0, unref as M2, renderSlot as l1, computed as G2, onUnmounted as s1, normalizeStyle as i1, onMounted as c1, resolveComponent as N, createBlock as Q, withCtx as z, resolveDynamicComponent as T1, h as f2, createVNode as g, withDirectives as B0, createCommentVNode as z2, vShow as A0, Fragment as V2, createTextVNode as w2, renderList as z0, createSlots as r4, toDisplayString as h0, createApp as u1, watch as x1, onBeforeUnmount as n4, Teleport as o4 } from "vue";
1
+ import { defineComponent as s, createElementBlock as l, openBlock as o, createElementVNode as r, ref as F, nextTick as J2, reactive as L1, normalizeClass as P0, unref as M2, renderSlot as s1, computed as G2, onUnmounted as i1, normalizeStyle as c1, onMounted as u1, resolveComponent as N, createBlock as Q, withCtx as z, resolveDynamicComponent as T1, h as f2, createVNode as g, withDirectives as B0, createCommentVNode as z2, vShow as A0, Fragment as V2, createTextVNode as w2, renderList as z0, createSlots as r4, toDisplayString as h0, createApp as p1, watch as Q0, onBeforeUnmount as n4, Teleport as o4 } from "vue";
2
2
  import * as L2 from "element-plus";
3
3
  import { ElMessage as C1, ElMessageBox as l4 } from "element-plus";
4
4
  const s4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
5
  __proto__: null,
6
6
  get default() {
7
- return o1;
7
+ return l1;
8
8
  }
9
9
  }, Symbol.toStringTag, { value: "Module" }));
10
10
  /**!
@@ -82,7 +82,7 @@ function D2(t) {
82
82
  if (typeof window < "u" && window.navigator)
83
83
  return !!/* @__PURE__ */ navigator.userAgent.match(t);
84
84
  }
85
- var F2 = D2(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), d0 = D2(/Edge/i), b1 = D2(/firefox/i), i0 = D2(/safari/i) && !D2(/chrome/i) && !D2(/android/i), p1 = D2(/iP(ad|od|hone)/i), F1 = D2(/chrome/i) && D2(/android/i), k1 = {
85
+ var F2 = D2(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), d0 = D2(/Edge/i), b1 = D2(/firefox/i), i0 = D2(/safari/i) && !D2(/chrome/i) && !D2(/android/i), _1 = D2(/iP(ad|od|hone)/i), F1 = D2(/chrome/i) && D2(/android/i), k1 = {
86
86
  capture: !1,
87
87
  passive: !1
88
88
  };
@@ -211,7 +211,7 @@ function t0(t, e, a, n) {
211
211
  }
212
212
  return null;
213
213
  }
214
- function _1(t, e) {
214
+ function m1(t, e) {
215
215
  for (var a = t.lastElementChild; a && (a === H.ghost || V(a, "display") === "none" || e && !D0(a, e)); )
216
216
  a = a.previousElementSibling;
217
217
  return a || null;
@@ -475,7 +475,7 @@ function l2(t) {
475
475
  newDraggableIndex: N2
476
476
  }, t));
477
477
  }
478
- var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = [], U2, b2, j0, U0, V1, y1, o0, K2, p0, _0 = !1, x0 = !1, V0, n2, Y0 = [], Q0 = !1, F0 = [], I0 = typeof document < "u", C0 = p1, S1 = d0 || F2 ? "cssFloat" : "float", x4 = I0 && !F1 && !p1 && "draggable" in document.createElement("div"), $1 = function() {
478
+ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = [], U2, b2, j0, U0, V1, y1, o0, K2, p0, _0 = !1, x0 = !1, V0, n2, Y0 = [], Z0 = !1, F0 = [], I0 = typeof document < "u", C0 = _1, S1 = d0 || F2 ? "cssFloat" : "float", x4 = I0 && !F1 && !_1 && "draggable" in document.createElement("div"), $1 = function() {
479
479
  if (I0) {
480
480
  if (F2)
481
481
  return !1;
@@ -500,7 +500,7 @@ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = []
500
500
  var n;
501
501
  return T0.some(function(i) {
502
502
  var c = i[_2].options.emptyInsertThreshold;
503
- if (!(!c || _1(i))) {
503
+ if (!(!c || m1(i))) {
504
504
  var u = Z(i), p = e >= u.left - c && e <= u.right + c, _ = a >= u.top - c && a <= u.bottom + c;
505
505
  if (p && _)
506
506
  return n = i;
@@ -596,7 +596,7 @@ function H(t, e) {
596
596
  y: 0
597
597
  },
598
598
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
599
- supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && (!i0 || p1),
599
+ supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && (!i0 || _1),
600
600
  emptyInsertThreshold: 5
601
601
  };
602
602
  v0.initializePlugins(this, t, a);
@@ -796,7 +796,7 @@ H.prototype = /** @lends Sortable.prototype */
796
796
  // Returns true - if no further action is needed (either inserted or another condition)
797
797
  _onDragOver: function(e) {
798
798
  var a = this.el, n = e.target, i, c, u, p = this.options, _ = p.group, m = H.active, d = g0 === _, h = p.sort, w = a2 || m, E, M = this, y = !1;
799
- if (Q0) return;
799
+ if (Z0) return;
800
800
  function L(B2, r2) {
801
801
  u2(B2, M, S2({
802
802
  evt: e,
@@ -842,7 +842,7 @@ H.prototype = /** @lends Sortable.prototype */
842
842
  if (E = this._getDirection(e, n) === "vertical", i = Z(f), L("dragOverValid"), H.eventCanceled) return y;
843
843
  if (u)
844
844
  return G = j, R(), this._hideClone(), L("revert"), H.eventCanceled || (W2 ? j.insertBefore(f, W2) : j.appendChild(f)), O(!0);
845
- var P = _1(a, p.draggable);
845
+ var P = m1(a, p.draggable);
846
846
  if (!P || V4(e, E, this) && !P.animated) {
847
847
  if (P === f)
848
848
  return O(!1);
@@ -872,7 +872,7 @@ H.prototype = /** @lends Sortable.prototype */
872
872
  I = s2 === 1;
873
873
  var O2 = M0(j, a, f, i, n, c, e, I);
874
874
  if (O2 !== !1)
875
- return (O2 === 1 || O2 === -1) && (I = O2 === 1), Q0 = !0, setTimeout(H4, 30), R(), I && !W ? a.appendChild(f) : n.parentNode.insertBefore(f, I ? W : n), x && I1(x, 0, J - x.scrollTop), G = f.parentNode, i2 !== void 0 && !x0 && (V0 = Math.abs(i2 - Z(n)[A])), e2(), O(!0);
875
+ return (O2 === 1 || O2 === -1) && (I = O2 === 1), Z0 = !0, setTimeout(H4, 30), R(), I && !W ? a.appendChild(f) : n.parentNode.insertBefore(f, I ? W : n), x && I1(x, 0, J - x.scrollTop), G = f.parentNode, i2 !== void 0 && !x0 && (V0 = Math.abs(i2 - Z(n)[A])), e2(), O(!0);
876
876
  }
877
877
  if (a.contains(f))
878
878
  return O(!1);
@@ -895,7 +895,7 @@ H.prototype = /** @lends Sortable.prototype */
895
895
  this._nulling();
896
896
  return;
897
897
  }
898
- Q2 = !1, x0 = !1, _0 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Z0(this.cloneId), Z0(this._dragStartId), this.nativeDraggable && (D(document, "drop", this), D(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), i0 && V(document.body, "user-select", ""), V(f, "transform", ""), e && (o0 && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (j === G || a2 && a2.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), f && (this.nativeDraggable && D(f, "dragend", this), W0(f), f.style["will-change"] = "", o0 && !Q2 && d2(f, a2 ? a2.options.ghostClass : this.options.ghostClass, !1), d2(f, this.options.chosenClass, !1), l2({
898
+ Q2 = !1, x0 = !1, _0 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), e1(this.cloneId), e1(this._dragStartId), this.nativeDraggable && (D(document, "drop", this), D(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), i0 && V(document.body, "user-select", ""), V(f, "transform", ""), e && (o0 && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (j === G || a2 && a2.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), f && (this.nativeDraggable && D(f, "dragend", this), W0(f), f.style["will-change"] = "", o0 && !Q2 && d2(f, a2 ? a2.options.ghostClass : this.options.ghostClass, !1), d2(f, this.options.chosenClass, !1), l2({
899
899
  sortable: this,
900
900
  name: "unchoose",
901
901
  toEl: G,
@@ -1053,14 +1053,14 @@ function W0(t) {
1053
1053
  t.draggable = !1;
1054
1054
  }
1055
1055
  function H4() {
1056
- Q0 = !1;
1056
+ Z0 = !1;
1057
1057
  }
1058
1058
  function E4(t, e, a) {
1059
1059
  var n = Z(t0(a.el, 0, a.options, !0)), i = q1(a.el, a.options, S), c = 10;
1060
1060
  return e ? t.clientX < i.left - c || t.clientY < n.top && t.clientX < n.right : t.clientY < i.top - c || t.clientY < n.bottom && t.clientX < n.left;
1061
1061
  }
1062
1062
  function V4(t, e, a) {
1063
- var n = Z(_1(a.el, a.options.draggable)), i = q1(a.el, a.options, S), c = 10;
1063
+ var n = Z(m1(a.el, a.options.draggable)), i = q1(a.el, a.options, S), c = 10;
1064
1064
  return e ? t.clientX > i.right + c || t.clientY > n.bottom && t.clientX > n.left : t.clientY > i.bottom + c || t.clientX > n.right && t.clientY > n.top;
1065
1065
  }
1066
1066
  function y4(t, e, a, n, i, c, u, p) {
@@ -1094,7 +1094,7 @@ function A4(t) {
1094
1094
  function y0(t) {
1095
1095
  return setTimeout(t, 0);
1096
1096
  }
1097
- function Z0(t) {
1097
+ function e1(t) {
1098
1098
  return clearTimeout(t);
1099
1099
  }
1100
1100
  I0 && T(document, "touchmove", function(t) {
@@ -1115,7 +1115,7 @@ H.utils = {
1115
1115
  clone: R1,
1116
1116
  index: g2,
1117
1117
  nextTick: y0,
1118
- cancelNextTick: Z0,
1118
+ cancelNextTick: e1,
1119
1119
  detectDirection: j1,
1120
1120
  getChild: t0,
1121
1121
  expando: _2
@@ -1136,7 +1136,7 @@ H.create = function(t, e) {
1136
1136
  return new H(t, e);
1137
1137
  };
1138
1138
  H.version = p4;
1139
- var K = [], l0, e1, t1 = !1, G0, J0, k0, s0;
1139
+ var K = [], l0, t1, a1 = !1, G0, J0, k0, s0;
1140
1140
  function D4() {
1141
1141
  function t() {
1142
1142
  this.defaults = {
@@ -1162,7 +1162,7 @@ function D4() {
1162
1162
  this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : (D(document, "pointermove", this._handleFallbackAutoScroll), D(document, "touchmove", this._handleFallbackAutoScroll), D(document, "mousemove", this._handleFallbackAutoScroll)), B1(), S0(), h4();
1163
1163
  },
1164
1164
  nulling: function() {
1165
- k0 = e1 = l0 = t1 = s0 = G0 = J0 = null, K.length = 0;
1165
+ k0 = t1 = l0 = a1 = s0 = G0 = J0 = null, K.length = 0;
1166
1166
  },
1167
1167
  _handleFallbackAutoScroll: function(a) {
1168
1168
  this._handleAutoScroll(a, !0);
@@ -1172,7 +1172,7 @@ function D4() {
1172
1172
  if (k0 = a, n || this.options.forceAutoScrollFallback || d0 || F2 || i0) {
1173
1173
  X0(a, this.options, p, n);
1174
1174
  var _ = R2(p, !0);
1175
- t1 && (!s0 || c !== G0 || u !== J0) && (s0 && B1(), s0 = setInterval(function() {
1175
+ a1 && (!s0 || c !== G0 || u !== J0) && (s0 && B1(), s0 = setInterval(function() {
1176
1176
  var m = R2(document.elementFromPoint(c, u), !0);
1177
1177
  m !== _ && (_ = m, S0()), X0(a, i.options, m, n);
1178
1178
  }, 10), G0 = c, J0 = u);
@@ -1200,7 +1200,7 @@ function B1() {
1200
1200
  var X0 = P1(function(t, e, a, n) {
1201
1201
  if (e.scroll) {
1202
1202
  var i = (t.touches ? t.touches[0] : t).clientX, c = (t.touches ? t.touches[0] : t).clientY, u = e.scrollSensitivity, p = e.scrollSpeed, _ = y2(), m = !1, d;
1203
- e1 !== a && (e1 = a, S0(), l0 = e.scroll, d = e.scrollFn, l0 === !0 && (l0 = R2(a, !0)));
1203
+ t1 !== a && (t1 = a, S0(), l0 = e.scroll, d = e.scrollFn, l0 === !0 && (l0 = R2(a, !0)));
1204
1204
  var h = 0, w = l0;
1205
1205
  do {
1206
1206
  var E = w, M = Z(E), y = M.top, L = M.bottom, R = M.left, O = M.right, e2 = M.width, P = M.height, m2 = void 0, s2 = void 0, i2 = E.scrollWidth, E2 = E.scrollHeight, t2 = V(E), A = E.scrollLeft, x = E.scrollTop;
@@ -1217,7 +1217,7 @@ var X0 = P1(function(t, e, a, n) {
1217
1217
  layer: h
1218
1218
  }), 24))), h++;
1219
1219
  } while (e.bubbleScroll && w !== _ && (w = R2(w, !1)));
1220
- t1 = m;
1220
+ a1 = m;
1221
1221
  }
1222
1222
  }, 30), G1 = function(e) {
1223
1223
  var a = e.originalEvent, n = e.putSortable, i = e.dragEl, c = e.activeSortable, u = e.dispatchSortableEvent, p = e.hideGhostForTarget, _ = e.unhideGhostForTarget;
@@ -1231,9 +1231,9 @@ var X0 = P1(function(t, e, a, n) {
1231
1231
  }));
1232
1232
  }
1233
1233
  };
1234
- function m1() {
1234
+ function h1() {
1235
1235
  }
1236
- m1.prototype = {
1236
+ h1.prototype = {
1237
1237
  startIndex: null,
1238
1238
  dragStart: function(e) {
1239
1239
  var a = e.oldDraggableIndex;
@@ -1247,24 +1247,24 @@ m1.prototype = {
1247
1247
  },
1248
1248
  drop: G1
1249
1249
  };
1250
- T2(m1, {
1250
+ T2(h1, {
1251
1251
  pluginName: "revertOnSpill"
1252
1252
  });
1253
- function h1() {
1253
+ function d1() {
1254
1254
  }
1255
- h1.prototype = {
1255
+ d1.prototype = {
1256
1256
  onSpill: function(e) {
1257
1257
  var a = e.dragEl, n = e.putSortable, i = n || this.sortable;
1258
1258
  i.captureAnimationState(), a.parentNode && a.parentNode.removeChild(a), i.animateAll();
1259
1259
  },
1260
1260
  drop: G1
1261
1261
  };
1262
- T2(h1, {
1262
+ T2(d1, {
1263
1263
  pluginName: "removeOnSpill"
1264
1264
  });
1265
1265
  H.mount(new D4());
1266
- H.mount(h1, m1);
1267
- var d1 = {
1266
+ H.mount(d1, h1);
1267
+ var v1 = {
1268
1268
  name: "zh-cn",
1269
1269
  el: {
1270
1270
  breadcrumb: {
@@ -2736,7 +2736,7 @@ var L4 = /* @__PURE__ */ s({
2736
2736
  })
2737
2737
  ]));
2738
2738
  }
2739
- }), v1 = S3, B3 = /* @__PURE__ */ s({
2739
+ }), f1 = S3, B3 = /* @__PURE__ */ s({
2740
2740
  name: "Dessert",
2741
2741
  __name: "dessert",
2742
2742
  setup(t) {
@@ -6103,7 +6103,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6103
6103
  DataAnalysis: x3,
6104
6104
  DataBoard: M3,
6105
6105
  DataLine: z3,
6106
- Delete: v1,
6106
+ Delete: f1,
6107
6107
  DeleteFilled: E3,
6108
6108
  DeleteLocation: y3,
6109
6109
  Dessert: A3,
@@ -6325,10 +6325,10 @@ function R0() {
6325
6325
  return `${t}${e}`;
6326
6326
  }
6327
6327
  let K1 = null;
6328
- function f1(t = [], e) {
6328
+ function w1(t = [], e) {
6329
6329
  t.forEach((a) => {
6330
6330
  const n = a.componentName;
6331
- ["ElCard", "ElTabPane", "GridComponent", "DivComponent"].includes(n) && a.id && e({ id: a.id }), a.children && Array.isArray(a.children) && f1(a.children, e);
6331
+ ["ElCard", "ElTabPane", "GridComponent", "DivComponent"].includes(n) && a.id && e({ id: a.id }), a.children && Array.isArray(a.children) && w1(a.children, e);
6332
6332
  });
6333
6333
  }
6334
6334
  function C2() {
@@ -6345,11 +6345,11 @@ function Q1(t, e, a = null) {
6345
6345
  };
6346
6346
  return t.children && (n.children = t.children.map((i) => Q1(i, R0(), e))), n;
6347
6347
  }
6348
- let a1 = {};
6348
+ let r1 = {};
6349
6349
  function Z1(t, e) {
6350
6350
  var a;
6351
6351
  for (const n of t) {
6352
- if (a1[e] = n, n.id === e) return n;
6352
+ if (r1[e] = n, n.id === e) return n;
6353
6353
  if ((a = n.children) != null && a.length) {
6354
6354
  const i = Z1(n.children, e);
6355
6355
  if (i) return i;
@@ -6358,7 +6358,7 @@ function Z1(t, e) {
6358
6358
  return null;
6359
6359
  }
6360
6360
  function K0(t, e) {
6361
- return a1[e] ? a1[e] : Z1(t, e);
6361
+ return r1[e] ? r1[e] : Z1(t, e);
6362
6362
  }
6363
6363
  function e4(t, e) {
6364
6364
  var a;
@@ -6397,14 +6397,14 @@ function A2(t) {
6397
6397
  };
6398
6398
  }));
6399
6399
  }
6400
- function r1(t) {
6400
+ function n1(t) {
6401
6401
  if (t === null || typeof t != "object") return t;
6402
6402
  if (Array.isArray(t))
6403
- return t.map((a) => r1(a)).filter((a) => a !== void 0);
6403
+ return t.map((a) => n1(a)).filter((a) => a !== void 0);
6404
6404
  const e = {};
6405
6405
  for (const a in t)
6406
6406
  if (Object.prototype.hasOwnProperty.call(t, a)) {
6407
- const n = r1(t[a]);
6407
+ const n = n1(t[a]);
6408
6408
  n !== void 0 && (e[a] = n);
6409
6409
  }
6410
6410
  return e;
@@ -6452,7 +6452,7 @@ function H5() {
6452
6452
  return;
6453
6453
  }
6454
6454
  const u = n.originalEvent.dataTransfer.getData("itemId");
6455
- let p = r1(a4.componentMap[i]);
6455
+ let p = n1(a4.componentMap[i]);
6456
6456
  if (!p) return;
6457
6457
  let _ = Q1(p, u);
6458
6458
  if (_.noUseForm)
@@ -6490,7 +6490,7 @@ function H5() {
6490
6490
  let [h] = m.children.splice(n.oldDraggableIndex, 1);
6491
6491
  d.children.splice(n.newIndex, 0, h), h.componentName === "ElCard" || h.componentName === "ElTabs" || h.componentName === "GridComponent" || h.componentName === "DivComponent" ? J2(() => {
6492
6492
  var E;
6493
- (h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (E = h.children) != null && E.length && f1(h.children, t), A2(C2());
6493
+ (h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (E = h.children) != null && E.length && w1(h.children, t), A2(C2());
6494
6494
  }) : A2(C2());
6495
6495
  }
6496
6496
  return {
@@ -6571,7 +6571,7 @@ const y5 = ["data-component", "data-id"], A1 = {
6571
6571
  "data-component": t.componentData.componentName,
6572
6572
  "data-id": t.componentData.id || ((i = (n = t.componentData.children) == null ? void 0 : n[0]) == null ? void 0 : i.id)
6573
6573
  }, [
6574
- l1(e.$slots, "default")
6574
+ s1(e.$slots, "default")
6575
6575
  ], 10, y5);
6576
6576
  };
6577
6577
  }
@@ -6624,13 +6624,13 @@ ${this.styleObjectToCssString(e)}
6624
6624
  };
6625
6625
  return $2.SET_STYLES(e.class.split(" ")[1], n), n;
6626
6626
  });
6627
- return s1(() => {
6627
+ return i1(() => {
6628
6628
  $2.DELETE_STYLES(e.class.split(" ")[1]);
6629
6629
  }), (n, i) => (o(), l("div", {
6630
6630
  class: P0(["element block-element", { "div-border": !t.isPreview }]),
6631
- style: i1(a.value)
6631
+ style: c1(a.value)
6632
6632
  }, [
6633
- l1(n.$slots, "default", {}, void 0, !0)
6633
+ s1(n.$slots, "default", {}, void 0, !0)
6634
6634
  ], 6));
6635
6635
  }
6636
6636
  }, B5 = /* @__PURE__ */ k2(S5, [["__scopeId", "data-v-b4ec6a05"]]), A5 = {
@@ -6660,13 +6660,13 @@ ${this.styleObjectToCssString(e)}
6660
6660
  };
6661
6661
  return $2.SET_STYLES(e.class.split(" ")[1], { ...n, display: "grid" }), n;
6662
6662
  });
6663
- return s1(() => {
6663
+ return i1(() => {
6664
6664
  $2.DELETE_STYLES(e.class.split(" ")[1]);
6665
6665
  }), (n, i) => (o(), l("div", {
6666
6666
  class: P0(["element grid", { "grid-border": !t.isPreview }]),
6667
- style: i1(a.value)
6667
+ style: c1(a.value)
6668
6668
  }, [
6669
- l1(n.$slots, "default", {}, void 0, !0)
6669
+ s1(n.$slots, "default", {}, void 0, !0)
6670
6670
  ], 6));
6671
6671
  }
6672
6672
  }, D5 = /* @__PURE__ */ k2(A5, [["__scopeId", "data-v-9c27fd62"]]), D1 = {
@@ -6700,14 +6700,14 @@ ${this.styleObjectToCssString(e)}
6700
6700
  const n = {};
6701
6701
  return e.fontSize && (n.fontSize = `${e.fontSize}px`), e.color && (n.color = e.color), Object.keys(n).length ? $2.SET_STYLES(`${e.class} ::v-deep(.el-icon)`, n) : $2.DELETE_STYLES(`${e.class} ::v-deep(.el-icon)`), n;
6702
6702
  });
6703
- return c1(() => {
6703
+ return u1(() => {
6704
6704
  D1.SET_ICONS(e.class, e.icon);
6705
- }), s1(() => {
6705
+ }), i1(() => {
6706
6706
  D1.DELETE_ICONS(e.class), $2.DELETE_STYLES(`${e.class} ::v-deep(.el-icon)`);
6707
6707
  }), (n, i) => {
6708
6708
  const c = N("el-icon");
6709
6709
  return o(), Q(c, {
6710
- style: i1(a.value)
6710
+ style: c1(a.value)
6711
6711
  }, {
6712
6712
  default: z(() => [
6713
6713
  (o(), Q(T1(b5[e.icon])))
@@ -6717,16 +6717,16 @@ ${this.styleObjectToCssString(e)}
6717
6717
  };
6718
6718
  }
6719
6719
  }, T5 = ["ElCheckbox", "ElFormItem", "ElRadio", "ElOption", "ElTable", "ElTableColumn", "ElTabPane", "ElCard", "ElButton", "ElDivider", "GridComponent", "DivComponent", "div"], F5 = ["ElFormItem", "ElTabs", "ElTable", "ElDivider", "ElButton", "DivComponent"];
6720
- function n1(t, e) {
6720
+ function o1(t, e) {
6721
6721
  return t.map((a) => {
6722
6722
  var n;
6723
6723
  if (a.componentName === "template" && a[e])
6724
- return n1(a[e]);
6724
+ return o1(a[e]);
6725
6725
  if (a.componentName) {
6726
6726
  const i = {
6727
6727
  ...a.props,
6728
6728
  class: ((n = a.props) == null ? void 0 : n.class) || ""
6729
- }, c = a[e] ? n1(a[e]) : void 0;
6729
+ }, c = a[e] ? o1(a[e]) : void 0;
6730
6730
  return f2(
6731
6731
  L2[a.componentName] || a.componentName,
6732
6732
  i,
@@ -6739,7 +6739,7 @@ function n1(t, e) {
6739
6739
  const k5 = {
6740
6740
  ElUpload: "fileList"
6741
6741
  };
6742
- function w1({ isPreview: t = !1, callback: e }) {
6742
+ function g1({ isPreview: t = !1, callback: e }) {
6743
6743
  const a = t ? B.previewFormData : B.formData, n = T5;
6744
6744
  function i(c) {
6745
6745
  var M, y;
@@ -6771,7 +6771,7 @@ function w1({ isPreview: t = !1, callback: e }) {
6771
6771
  "data-component": c.componentName
6772
6772
  }, [f2(L2[c.componentName], _, {
6773
6773
  ...d,
6774
- [c.staticChildren[0].slot]: () => n1(c.staticChildren, "staticChildren")
6774
+ [c.staticChildren[0].slot]: () => o1(c.staticChildren, "staticChildren")
6775
6775
  })]);
6776
6776
  const w = c.componentName === "ElFormItem" ? (y = (M = c.children) == null ? void 0 : M[0]) == null ? void 0 : y.componentName : c.componentName;
6777
6777
  if (c.componentName === "GridComponent")
@@ -7035,7 +7035,7 @@ const O5 = [
7035
7035
  function r2(v, b) {
7036
7036
  m.value[b].name = v;
7037
7037
  }
7038
- function g1() {
7038
+ function x1() {
7039
7039
  var h2, a0, r0, j2, n0, f0, w0;
7040
7040
  if (!((a0 = (h2 = u.value) == null ? void 0 : h2.children) != null && a0.length))
7041
7041
  return;
@@ -7292,7 +7292,7 @@ const O5 = [
7292
7292
  title: "删除"
7293
7293
  }, {
7294
7294
  default: z(() => [
7295
- g(M2(v1))
7295
+ g(M2(f1))
7296
7296
  ]),
7297
7297
  _: 2
7298
7298
  }, 1032, ["onClick"]),
@@ -7323,7 +7323,7 @@ const O5 = [
7323
7323
  g(f0, {
7324
7324
  link: "",
7325
7325
  type: "primary",
7326
- onClick: g1
7326
+ onClick: x1
7327
7327
  }, {
7328
7328
  default: z(() => b[7] || (b[7] = [
7329
7329
  w2("增加")
@@ -7445,8 +7445,8 @@ const O5 = [
7445
7445
  let u = null;
7446
7446
  function p() {
7447
7447
  a.value = !0, J2(() => {
7448
- const h = w1({ isPreview: !0 });
7449
- u = u1({
7448
+ const h = g1({ isPreview: !0 });
7449
+ u = p1({
7450
7450
  render() {
7451
7451
  const w = JSON.parse(JSON.stringify(x2.value.components));
7452
7452
  return f2(
@@ -7463,7 +7463,7 @@ const O5 = [
7463
7463
  }
7464
7464
  );
7465
7465
  }
7466
- }).use(L2, { locale: d1 }), u.mount("#preview-box");
7466
+ }).use(L2, { locale: v1 }), u.mount("#preview-box");
7467
7467
  });
7468
7468
  }
7469
7469
  function _() {
@@ -8094,7 +8094,7 @@ function Vs(t) {
8094
8094
  }
8095
8095
  return a;
8096
8096
  }
8097
- const ys = ["index.js", "imports.js"], p2 = Vs(ys), o1 = [
8097
+ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8098
8098
  { title: "容器组件" },
8099
8099
  p2.elCard(),
8100
8100
  p2.elTabsJson(),
@@ -8125,25 +8125,25 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), o1 = [
8125
8125
  data: { type: Object }
8126
8126
  },
8127
8127
  setup(t) {
8128
- const e = o1, a = {};
8129
- o1.forEach((A) => {
8128
+ const e = l1, a = {};
8129
+ l1.forEach((A) => {
8130
8130
  A.componentName && (a[A.componentName] = A);
8131
8131
  }), a4.SET_COMPONENT_MAP(a);
8132
8132
  const n = F("first"), i = F("first"), c = F(null), u = F(null), p = F(null), _ = F(null), m = F(null), d = F(null), h = F(!1), w = F(m0.teleportTo.value), E = B.formData, M = B.rules;
8133
8133
  let y = null, L = !1, R = null;
8134
8134
  const O = t;
8135
- x1(m0.teleportTo, (A) => {
8135
+ Q0(m0.teleportTo, (A) => {
8136
8136
  w.value = A;
8137
- }), x1(() => O.data, () => {
8137
+ }), Q0(() => O.data, () => {
8138
8138
  E5(), L = !0, B.CLEAR_ALL(), u.value.init(B.formOptions), O.data && O.data.forms ? (B.SET_FORM_OPTIONS_INIT(O.data.formOptions.inline), B.SET_FORM_OPTIONS(O.data.formOptions), b0(O.data.forms)) : b0([]);
8139
8139
  });
8140
8140
  const {
8141
8141
  initSortable: e2,
8142
8142
  schema: P
8143
8143
  } = H5();
8144
- c1(() => {
8145
- const A = w1({});
8146
- R = u1({
8144
+ u1(() => {
8145
+ const A = g1({});
8146
+ R = p1({
8147
8147
  mounted() {
8148
8148
  J2(() => {
8149
8149
  H.create(c.value, {
@@ -8171,7 +8171,7 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), o1 = [
8171
8171
  });
8172
8172
  },
8173
8173
  updated() {
8174
- L && (f1(P.value.components, e2), L = !1);
8174
+ L && (w1(P.value.components, e2), L = !1);
8175
8175
  },
8176
8176
  render() {
8177
8177
  O.data && O.data.forms && b0(O.data.forms);
@@ -8197,7 +8197,7 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), o1 = [
8197
8197
  }
8198
8198
  );
8199
8199
  }
8200
- }).use(L2, { locale: d1 }), R.mount("#canvas-drop");
8200
+ }).use(L2, { locale: v1 }), R.mount("#canvas-drop");
8201
8201
  }), n4(() => {
8202
8202
  b0([]), B.CLEAR_ALL(), R.unmount();
8203
8203
  });
@@ -8257,7 +8257,7 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), o1 = [
8257
8257
  onClick: x[0] || (x[0] = (r2) => E2())
8258
8258
  }, {
8259
8259
  default: z(() => [
8260
- g(M2(v1))
8260
+ g(M2(f1))
8261
8261
  ]),
8262
8262
  _: 1
8263
8263
  })
@@ -8381,10 +8381,11 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), o1 = [
8381
8381
  const a = t, n = F(null), i = B.previewFormData, c = B.rules;
8382
8382
  return e({
8383
8383
  formRef: n
8384
- }), c1(() => {
8385
- i.value = a.variables;
8386
- const u = w1({ isPreview: !0, callback: a.callback });
8387
- u1({
8384
+ }), Q0(() => a.variables, (u) => {
8385
+ i.value = u;
8386
+ }, { immediate: !0 }), u1(() => {
8387
+ const u = g1({ isPreview: !0, callback: a.callback });
8388
+ p1({
8388
8389
  render() {
8389
8390
  return f2(
8390
8391
  L2.ElForm,
@@ -8399,10 +8400,10 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), o1 = [
8399
8400
  }
8400
8401
  );
8401
8402
  }
8402
- }).use(L2, { locale: d1 }).mount("#preview-panel");
8403
+ }).use(L2, { locale: v1 }).mount("#preview-panel");
8403
8404
  }), (u, p) => (o(), l("div", Fs));
8404
8405
  }
8405
- }, Os = /* @__PURE__ */ k2(ks, [["__scopeId", "data-v-965fdd3c"]]), Ns = { class: "low-code-form" }, Ps = {
8406
+ }, Os = /* @__PURE__ */ k2(ks, [["__scopeId", "data-v-ce37e41c"]]), Ns = { class: "low-code-form" }, Ps = {
8406
8407
  __name: "index",
8407
8408
  props: {
8408
8409
  isPreview: Boolean,