low-code-form-generator 1.1.0 → 1.1.2
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.
package/dist/low-code-form.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as l, openBlock as o, createElementVNode as r, ref as F, nextTick as
|
|
1
|
+
import { defineComponent as s, createElementBlock as l, openBlock as o, createElementVNode as r, ref as F, nextTick as q2, reactive as L1, normalizeClass as I0, unref as C2, renderSlot as i1, computed as J2, onUnmounted as c1, normalizeStyle as u1, onMounted as p1, resolveComponent as N, createBlock as Z, withCtx as z, resolveDynamicComponent as T1, h as v2, createVNode as g, withDirectives as D0, createCommentVNode as H2, vShow as L0, Fragment as V2, createTextVNode as f2, renderList as E0, createSlots as r4, toDisplayString as d0, createApp as _1, watch as Z0, 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
|
|
7
|
+
return s1;
|
|
8
8
|
}
|
|
9
9
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10
10
|
/**!
|
|
@@ -34,13 +34,13 @@ function S2(t) {
|
|
|
34
34
|
}
|
|
35
35
|
return t;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function V0(t) {
|
|
38
38
|
"@babel/helpers - typeof";
|
|
39
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
39
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? V0 = function(e) {
|
|
40
40
|
return typeof e;
|
|
41
|
-
} :
|
|
41
|
+
} : V0 = function(e) {
|
|
42
42
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
43
|
-
},
|
|
43
|
+
}, V0(t);
|
|
44
44
|
}
|
|
45
45
|
function i4(t, e, a) {
|
|
46
46
|
return e in t ? Object.defineProperty(t, e, {
|
|
@@ -82,17 +82,17 @@ 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),
|
|
85
|
+
var F2 = D2(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), v0 = D2(/Edge/i), b1 = D2(/firefox/i), c0 = D2(/safari/i) && !D2(/chrome/i) && !D2(/android/i), m1 = D2(/iP(ad|od|hone)/i), F1 = D2(/chrome/i) && D2(/android/i), k1 = {
|
|
86
86
|
capture: !1,
|
|
87
87
|
passive: !1
|
|
88
88
|
};
|
|
89
|
-
function
|
|
89
|
+
function L(t, e, a) {
|
|
90
90
|
t.addEventListener(e, a, !F2 && k1);
|
|
91
91
|
}
|
|
92
92
|
function D(t, e, a) {
|
|
93
93
|
t.removeEventListener(e, a, !F2 && k1);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function T0(t, e) {
|
|
96
96
|
if (e) {
|
|
97
97
|
if (e[0] === ">" && (e = e.substring(1)), t)
|
|
98
98
|
try {
|
|
@@ -111,11 +111,11 @@ function D0(t, e) {
|
|
|
111
111
|
function O1(t) {
|
|
112
112
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function E2(t, e, a, n) {
|
|
115
115
|
if (t) {
|
|
116
116
|
a = a || document;
|
|
117
117
|
do {
|
|
118
|
-
if (e != null && (e[0] === ">" ? t.parentNode === a &&
|
|
118
|
+
if (e != null && (e[0] === ">" ? t.parentNode === a && T0(t, e) : T0(t, e)) || n && t === a)
|
|
119
119
|
return t;
|
|
120
120
|
if (t === a) break;
|
|
121
121
|
} while (t = O1(t));
|
|
@@ -123,7 +123,7 @@ function H2(t, e, a, n) {
|
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
125
125
|
var z1 = /\s+/g;
|
|
126
|
-
function
|
|
126
|
+
function m2(t, e, a) {
|
|
127
127
|
if (t && e)
|
|
128
128
|
if (t.classList)
|
|
129
129
|
t.classList[a ? "add" : "remove"](e);
|
|
@@ -140,7 +140,7 @@ function V(t, e, a) {
|
|
|
140
140
|
!(e in n) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), n[e] = a + (typeof a == "string" ? "" : "px");
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function t0(t, e) {
|
|
144
144
|
var a = "";
|
|
145
145
|
if (typeof t == "string")
|
|
146
146
|
a = t;
|
|
@@ -166,7 +166,7 @@ function y2() {
|
|
|
166
166
|
var t = document.scrollingElement;
|
|
167
167
|
return t || document.documentElement;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function e2(t, e, a, n, i) {
|
|
170
170
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
171
171
|
var c, u, p, _, m, d, h;
|
|
172
172
|
if (t !== window && t.parentNode && t !== y2() ? (c = t.getBoundingClientRect(), u = c.top, p = c.left, _ = c.bottom, m = c.right, d = c.height, h = c.width) : (u = 0, p = 0, _ = window.innerHeight, m = window.innerWidth, d = window.innerHeight, h = window.innerWidth), (e || a) && t !== window && (i = i || t.parentNode, !F2))
|
|
@@ -178,8 +178,8 @@ function Z(t, e, a, n, i) {
|
|
|
178
178
|
}
|
|
179
179
|
while (i = i.parentNode);
|
|
180
180
|
if (n && t !== window) {
|
|
181
|
-
var E =
|
|
182
|
-
E && (u /= y, p /=
|
|
181
|
+
var E = t0(i || t), b = E && E.a, y = E && E.d;
|
|
182
|
+
E && (u /= y, p /= b, h /= b, d /= y, _ = u + d, m = p + h);
|
|
183
183
|
}
|
|
184
184
|
return {
|
|
185
185
|
top: u,
|
|
@@ -192,17 +192,17 @@ function Z(t, e, a, n, i) {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
function H1(t, e, a) {
|
|
195
|
-
for (var n =
|
|
196
|
-
var c =
|
|
195
|
+
for (var n = I2(t, !0), i = e2(t)[e]; n; ) {
|
|
196
|
+
var c = e2(n)[a], u = void 0;
|
|
197
197
|
if (u = i >= c, !u) return n;
|
|
198
198
|
if (n === y2()) break;
|
|
199
|
-
n =
|
|
199
|
+
n = I2(n, !1);
|
|
200
200
|
}
|
|
201
201
|
return !1;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function a0(t, e, a, n) {
|
|
204
204
|
for (var i = 0, c = 0, u = t.children; c < u.length; ) {
|
|
205
|
-
if (u[c].style.display !== "none" && u[c] !== H.ghost && (n || u[c] !== H.dragged) &&
|
|
205
|
+
if (u[c].style.display !== "none" && u[c] !== H.ghost && (n || u[c] !== H.dragged) && E2(u[c], a.draggable, t, !1)) {
|
|
206
206
|
if (i === e)
|
|
207
207
|
return u[c];
|
|
208
208
|
i++;
|
|
@@ -211,8 +211,8 @@ function t0(t, e, a, n) {
|
|
|
211
211
|
}
|
|
212
212
|
return null;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
for (var a = t.lastElementChild; a && (a === H.ghost || V(a, "display") === "none" || e && !
|
|
214
|
+
function h1(t, e) {
|
|
215
|
+
for (var a = t.lastElementChild; a && (a === H.ghost || V(a, "display") === "none" || e && !T0(a, e)); )
|
|
216
216
|
a = a.previousElementSibling;
|
|
217
217
|
return a || null;
|
|
218
218
|
}
|
|
@@ -221,14 +221,14 @@ function g2(t, e) {
|
|
|
221
221
|
if (!t || !t.parentNode)
|
|
222
222
|
return -1;
|
|
223
223
|
for (; t = t.previousElementSibling; )
|
|
224
|
-
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== H.clone && (!e ||
|
|
224
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== H.clone && (!e || T0(t, e)) && a++;
|
|
225
225
|
return a;
|
|
226
226
|
}
|
|
227
227
|
function E1(t) {
|
|
228
228
|
var e = 0, a = 0, n = y2();
|
|
229
229
|
if (t)
|
|
230
230
|
do {
|
|
231
|
-
var i =
|
|
231
|
+
var i = t0(t), c = i.a, u = i.d;
|
|
232
232
|
e += t.scrollLeft * c, a += t.scrollTop * u;
|
|
233
233
|
} while (t !== n && (t = t.parentNode));
|
|
234
234
|
return [e, a];
|
|
@@ -241,7 +241,7 @@ function _4(t, e) {
|
|
|
241
241
|
}
|
|
242
242
|
return -1;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function I2(t, e) {
|
|
245
245
|
if (!t || !t.getBoundingClientRect) return y2();
|
|
246
246
|
var a = t, n = !1;
|
|
247
247
|
do
|
|
@@ -262,22 +262,22 @@ function m4(t, e) {
|
|
|
262
262
|
e.hasOwnProperty(a) && (t[a] = e[a]);
|
|
263
263
|
return t;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function $0(t, e) {
|
|
266
266
|
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
267
267
|
}
|
|
268
|
-
var
|
|
268
|
+
var u0;
|
|
269
269
|
function P1(t, e) {
|
|
270
270
|
return function() {
|
|
271
|
-
if (!
|
|
271
|
+
if (!u0) {
|
|
272
272
|
var a = arguments, n = this;
|
|
273
|
-
a.length === 1 ? t.call(n, a[0]) : t.apply(n, a),
|
|
274
|
-
|
|
273
|
+
a.length === 1 ? t.call(n, a[0]) : t.apply(n, a), u0 = setTimeout(function() {
|
|
274
|
+
u0 = void 0;
|
|
275
275
|
}, e);
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
function h4() {
|
|
280
|
-
clearTimeout(
|
|
280
|
+
clearTimeout(u0), u0 = void 0;
|
|
281
281
|
}
|
|
282
282
|
function I1(t, e, a) {
|
|
283
283
|
t.scrollLeft += e, t.scrollTop += a;
|
|
@@ -290,8 +290,8 @@ function q1(t, e, a) {
|
|
|
290
290
|
var n = {};
|
|
291
291
|
return Array.from(t.children).forEach(function(i) {
|
|
292
292
|
var c, u, p, _;
|
|
293
|
-
if (!(!
|
|
294
|
-
var m =
|
|
293
|
+
if (!(!E2(i, e.draggable, t, !1) || i.animated || i === a)) {
|
|
294
|
+
var m = e2(i);
|
|
295
295
|
n.left = Math.min((c = n.left) !== null && c !== void 0 ? c : 1 / 0, m.left), n.top = Math.min((u = n.top) !== null && u !== void 0 ? u : 1 / 0, m.top), n.right = Math.max((p = n.right) !== null && p !== void 0 ? p : -1 / 0, m.right), n.bottom = Math.max((_ = n.bottom) !== null && _ !== void 0 ? _ : -1 / 0, m.bottom);
|
|
296
296
|
}
|
|
297
297
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
@@ -307,11 +307,11 @@ function d4() {
|
|
|
307
307
|
if (!(V(i, "display") === "none" || i === H.ghost)) {
|
|
308
308
|
t.push({
|
|
309
309
|
target: i,
|
|
310
|
-
rect:
|
|
310
|
+
rect: e2(i)
|
|
311
311
|
});
|
|
312
312
|
var c = S2({}, t[t.length - 1].rect);
|
|
313
313
|
if (i.thisAnimationDuration) {
|
|
314
|
-
var u =
|
|
314
|
+
var u = t0(i, !0);
|
|
315
315
|
u && (c.top -= u.f, c.left -= u.e);
|
|
316
316
|
}
|
|
317
317
|
i.fromRect = c;
|
|
@@ -335,9 +335,9 @@ function d4() {
|
|
|
335
335
|
}
|
|
336
336
|
var c = !1, u = 0;
|
|
337
337
|
t.forEach(function(p) {
|
|
338
|
-
var _ = 0, m = p.target, d = m.fromRect, h =
|
|
339
|
-
y && (h.top -= y.f, h.left -= y.e), m.toRect = h, m.thisAnimationDuration &&
|
|
340
|
-
(
|
|
338
|
+
var _ = 0, m = p.target, d = m.fromRect, h = e2(m), w = m.prevFromRect, E = m.prevToRect, b = p.rect, y = t0(m, !0);
|
|
339
|
+
y && (h.top -= y.f, h.left -= y.e), m.toRect = h, m.thisAnimationDuration && $0(w, h) && !$0(d, h) && // Make sure animatingRect is on line between toRect & fromRect
|
|
340
|
+
(b.top - h.top) / (b.left - h.left) === (d.top - h.top) / (d.left - h.left) && (_ = f4(b, w, E, i.options)), $0(h, d) || (m.prevFromRect = d, m.prevToRect = h, _ || (_ = i.options.animation), i.animate(m, b, h, _)), _ && (c = !0, u = Math.max(u, _), clearTimeout(m.animationResetTimer), m.animationResetTimer = setTimeout(function() {
|
|
341
341
|
m.animationTime = 0, m.prevFromRect = null, m.fromRect = null, m.prevToRect = null, m.thisAnimationDuration = null;
|
|
342
342
|
}, _), m.thisAnimationDuration = _);
|
|
343
343
|
}), clearTimeout(e), c ? e = setTimeout(function() {
|
|
@@ -347,7 +347,7 @@ function d4() {
|
|
|
347
347
|
animate: function(n, i, c, u) {
|
|
348
348
|
if (u) {
|
|
349
349
|
V(n, "transition", ""), V(n, "transform", "");
|
|
350
|
-
var p =
|
|
350
|
+
var p = t0(this.el), _ = p && p.a, m = p && p.d, d = (i.left - c.left) / (_ || 1), h = (i.top - c.top) / (m || 1);
|
|
351
351
|
n.animatingX = !!d, n.animatingY = !!h, V(n, "transform", "translate3d(" + d + "px," + h + "px,0)"), this.forRepaintDummy = v4(n), V(n, "transition", "transform " + u + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
352
352
|
V(n, "transition", ""), V(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
353
353
|
}, u);
|
|
@@ -361,12 +361,12 @@ function v4(t) {
|
|
|
361
361
|
function f4(t, e, a, n) {
|
|
362
362
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - a.top, 2) + Math.pow(e.left - a.left, 2)) * n.animation;
|
|
363
363
|
}
|
|
364
|
-
var X2 = [],
|
|
364
|
+
var X2 = [], j0 = {
|
|
365
365
|
initializeByDefault: !0
|
|
366
|
-
},
|
|
366
|
+
}, f0 = {
|
|
367
367
|
mount: function(e) {
|
|
368
|
-
for (var a in
|
|
369
|
-
|
|
368
|
+
for (var a in j0)
|
|
369
|
+
j0.hasOwnProperty(a) && !(a in e) && (e[a] = j0[a]);
|
|
370
370
|
X2.forEach(function(n) {
|
|
371
371
|
if (n.pluginName === e.pluginName)
|
|
372
372
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
@@ -414,48 +414,48 @@ var X2 = [], $0 = {
|
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
function w4(t) {
|
|
417
|
-
var e = t.sortable, a = t.rootEl, n = t.name, i = t.targetEl, c = t.cloneEl, u = t.toEl, p = t.fromEl, _ = t.oldIndex, m = t.newIndex, d = t.oldDraggableIndex, h = t.newDraggableIndex, w = t.originalEvent, E = t.putSortable,
|
|
417
|
+
var e = t.sortable, a = t.rootEl, n = t.name, i = t.targetEl, c = t.cloneEl, u = t.toEl, p = t.fromEl, _ = t.oldIndex, m = t.newIndex, d = t.oldDraggableIndex, h = t.newDraggableIndex, w = t.originalEvent, E = t.putSortable, b = t.extraEventProperties;
|
|
418
418
|
if (e = e || a && a[_2], !!e) {
|
|
419
|
-
var y,
|
|
420
|
-
window.CustomEvent && !F2 && !
|
|
419
|
+
var y, T = e.options, P = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
420
|
+
window.CustomEvent && !F2 && !v0 ? y = new CustomEvent(n, {
|
|
421
421
|
bubbles: !0,
|
|
422
422
|
cancelable: !0
|
|
423
423
|
}) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = u || a, y.from = p || a, y.item = i || a, y.clone = c, y.oldIndex = _, y.newIndex = m, y.oldDraggableIndex = d, y.newDraggableIndex = h, y.originalEvent = w, y.pullMode = E ? E.lastPutMode : void 0;
|
|
424
|
-
var
|
|
425
|
-
for (var
|
|
426
|
-
y[
|
|
427
|
-
a && a.dispatchEvent(y),
|
|
424
|
+
var I = S2(S2({}, b), f0.getEventProperties(n, e));
|
|
425
|
+
for (var R in I)
|
|
426
|
+
y[R] = I[R];
|
|
427
|
+
a && a.dispatchEvent(y), T[P] && T[P].call(e, y);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
var g4 = ["evt"], u2 = function(e, a) {
|
|
431
431
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, c = u4(n, g4);
|
|
432
|
-
|
|
432
|
+
f0.pluginEvent.bind(H)(e, a, S2({
|
|
433
433
|
dragEl: f,
|
|
434
|
-
parentEl:
|
|
434
|
+
parentEl: X,
|
|
435
435
|
ghostEl: S,
|
|
436
|
-
rootEl:
|
|
437
|
-
nextEl:
|
|
438
|
-
lastDownEl:
|
|
439
|
-
cloneEl:
|
|
440
|
-
cloneHidden:
|
|
441
|
-
dragStarted:
|
|
442
|
-
putSortable:
|
|
436
|
+
rootEl: U,
|
|
437
|
+
nextEl: G2,
|
|
438
|
+
lastDownEl: y0,
|
|
439
|
+
cloneEl: G,
|
|
440
|
+
cloneHidden: N2,
|
|
441
|
+
dragStarted: l0,
|
|
442
|
+
putSortable: r2,
|
|
443
443
|
activeSortable: H.active,
|
|
444
444
|
originalEvent: i,
|
|
445
445
|
oldIndex: Z2,
|
|
446
|
-
oldDraggableIndex:
|
|
447
|
-
newIndex:
|
|
448
|
-
newDraggableIndex:
|
|
446
|
+
oldDraggableIndex: p0,
|
|
447
|
+
newIndex: h2,
|
|
448
|
+
newDraggableIndex: O2,
|
|
449
449
|
hideGhostForTarget: Y1,
|
|
450
450
|
unhideGhostForTarget: W1,
|
|
451
451
|
cloneNowHidden: function() {
|
|
452
|
-
|
|
452
|
+
N2 = !0;
|
|
453
453
|
},
|
|
454
454
|
cloneNowShown: function() {
|
|
455
|
-
|
|
455
|
+
N2 = !1;
|
|
456
456
|
},
|
|
457
457
|
dispatchSortableEvent: function(p) {
|
|
458
|
-
|
|
458
|
+
i2({
|
|
459
459
|
sortable: a,
|
|
460
460
|
name: p,
|
|
461
461
|
originalEvent: i
|
|
@@ -463,27 +463,27 @@ var g4 = ["evt"], u2 = function(e, a) {
|
|
|
463
463
|
}
|
|
464
464
|
}, c));
|
|
465
465
|
};
|
|
466
|
-
function
|
|
466
|
+
function i2(t) {
|
|
467
467
|
w4(S2({
|
|
468
|
-
putSortable:
|
|
469
|
-
cloneEl:
|
|
468
|
+
putSortable: r2,
|
|
469
|
+
cloneEl: G,
|
|
470
470
|
targetEl: f,
|
|
471
|
-
rootEl:
|
|
471
|
+
rootEl: U,
|
|
472
472
|
oldIndex: Z2,
|
|
473
|
-
oldDraggableIndex:
|
|
474
|
-
newIndex:
|
|
475
|
-
newDraggableIndex:
|
|
473
|
+
oldDraggableIndex: p0,
|
|
474
|
+
newIndex: h2,
|
|
475
|
+
newDraggableIndex: O2
|
|
476
476
|
}, t));
|
|
477
477
|
}
|
|
478
|
-
var f,
|
|
479
|
-
if (
|
|
478
|
+
var f, X, S, U, G2, y0, G, N2, Z2, h2, p0, O2, C0, r2, Q2 = !1, F0 = !1, k0 = [], Y2, z2, U0, Y0, V1, y1, l0, K2, _0, m0 = !1, M0 = !1, S0, l2, W0 = [], e1 = !1, O0 = [], R0 = typeof document < "u", b0 = m1, S1 = v0 || F2 ? "cssFloat" : "float", x4 = R0 && !F1 && !m1 && "draggable" in document.createElement("div"), $1 = function() {
|
|
479
|
+
if (R0) {
|
|
480
480
|
if (F2)
|
|
481
481
|
return !1;
|
|
482
482
|
var t = document.createElement("x");
|
|
483
483
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
484
484
|
}
|
|
485
485
|
}(), j1 = function(e, a) {
|
|
486
|
-
var n = V(e), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), c =
|
|
486
|
+
var n = V(e), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), c = a0(e, 0, a), u = a0(e, 1, a), p = c && V(c), _ = u && V(u), m = p && parseInt(p.marginLeft) + parseInt(p.marginRight) + e2(c).width, d = _ && parseInt(_.marginLeft) + parseInt(_.marginRight) + e2(u).width;
|
|
487
487
|
if (n.display === "flex")
|
|
488
488
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
489
489
|
if (n.display === "grid")
|
|
@@ -498,10 +498,10 @@ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = []
|
|
|
498
498
|
return i === p || c === _ || i + u / 2 === p + m / 2;
|
|
499
499
|
}, M4 = function(e, a) {
|
|
500
500
|
var n;
|
|
501
|
-
return
|
|
501
|
+
return k0.some(function(i) {
|
|
502
502
|
var c = i[_2].options.emptyInsertThreshold;
|
|
503
|
-
if (!(!c ||
|
|
504
|
-
var u =
|
|
503
|
+
if (!(!c || h1(i))) {
|
|
504
|
+
var u = e2(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;
|
|
507
507
|
}
|
|
@@ -523,7 +523,7 @@ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = []
|
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
var n = {}, i = e.group;
|
|
526
|
-
(!i ||
|
|
526
|
+
(!i || V0(i) != "object") && (i = {
|
|
527
527
|
name: i
|
|
528
528
|
}), n.name = i.name, n.checkPull = a(i.pull, !0), n.checkPut = a(i.put), n.revertClone = i.revertClone, e.group = n;
|
|
529
529
|
}, Y1 = function() {
|
|
@@ -531,11 +531,11 @@ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = []
|
|
|
531
531
|
}, W1 = function() {
|
|
532
532
|
!$1 && S && V(S, "display", "");
|
|
533
533
|
};
|
|
534
|
-
|
|
535
|
-
if (
|
|
536
|
-
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(),
|
|
534
|
+
R0 && !F1 && document.addEventListener("click", function(t) {
|
|
535
|
+
if (F0)
|
|
536
|
+
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), F0 = !1, !1;
|
|
537
537
|
}, !0);
|
|
538
|
-
var
|
|
538
|
+
var W2 = function(e) {
|
|
539
539
|
if (f) {
|
|
540
540
|
e = e.touches ? e.touches[0] : e;
|
|
541
541
|
var a = M4(e.clientX, e.clientY);
|
|
@@ -596,16 +596,16 @@ 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 && (!
|
|
599
|
+
supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && (!c0 || m1),
|
|
600
600
|
emptyInsertThreshold: 5
|
|
601
601
|
};
|
|
602
|
-
|
|
602
|
+
f0.initializePlugins(this, t, a);
|
|
603
603
|
for (var n in a)
|
|
604
604
|
!(n in e) && (e[n] = a[n]);
|
|
605
605
|
U1(e);
|
|
606
606
|
for (var i in this)
|
|
607
607
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
608
|
-
this.nativeDraggable = e.forceFallback ? !1 : x4, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ?
|
|
608
|
+
this.nativeDraggable = e.forceFallback ? !1 : x4, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? L(t, "pointerdown", this._onTapStart) : (L(t, "mousedown", this._onTapStart), L(t, "touchstart", this._onTapStart)), this.nativeDraggable && (L(t, "dragover", this), L(t, "dragenter", this)), k0.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), T2(this, d4());
|
|
609
609
|
}
|
|
610
610
|
H.prototype = /** @lends Sortable.prototype */
|
|
611
611
|
{
|
|
@@ -619,10 +619,10 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
619
619
|
_onTapStart: function(e) {
|
|
620
620
|
if (e.cancelable) {
|
|
621
621
|
var a = this, n = this.el, i = this.options, c = i.preventOnFilter, u = e.type, p = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, _ = (p || e).target, m = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || _, d = i.filter;
|
|
622
|
-
if (
|
|
623
|
-
if (Z2 = g2(_),
|
|
622
|
+
if (B4(n), !f && !(/mousedown|pointerdown/.test(u) && e.button !== 0 || i.disabled) && !m.isContentEditable && !(!this.nativeDraggable && c0 && _ && _.tagName.toUpperCase() === "SELECT") && (_ = E2(_, i.draggable, n, !1), !(_ && _.animated) && y0 !== _)) {
|
|
623
|
+
if (Z2 = g2(_), p0 = g2(_, i.draggable), typeof d == "function") {
|
|
624
624
|
if (d.call(this, e, _, this)) {
|
|
625
|
-
|
|
625
|
+
i2({
|
|
626
626
|
sortable: a,
|
|
627
627
|
rootEl: m,
|
|
628
628
|
name: "filter",
|
|
@@ -635,8 +635,8 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
635
635
|
return;
|
|
636
636
|
}
|
|
637
637
|
} else if (d && (d = d.split(",").some(function(h) {
|
|
638
|
-
if (h =
|
|
639
|
-
return
|
|
638
|
+
if (h = E2(m, h.trim(), n, !1), h)
|
|
639
|
+
return i2({
|
|
640
640
|
sortable: a,
|
|
641
641
|
rootEl: h,
|
|
642
642
|
name: "filter",
|
|
@@ -650,40 +650,40 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
650
650
|
c && e.preventDefault();
|
|
651
651
|
return;
|
|
652
652
|
}
|
|
653
|
-
i.handle && !
|
|
653
|
+
i.handle && !E2(m, i.handle, n, !1) || this._prepareDragStart(e, p, _);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
657
|
_prepareDragStart: function(e, a, n) {
|
|
658
658
|
var i = this, c = i.el, u = i.options, p = c.ownerDocument, _;
|
|
659
659
|
if (n && !f && n.parentNode === c) {
|
|
660
|
-
var m =
|
|
661
|
-
if (
|
|
660
|
+
var m = e2(n);
|
|
661
|
+
if (U = c, f = n, X = f.parentNode, G2 = f.nextSibling, y0 = n, C0 = u.group, H.dragged = f, Y2 = {
|
|
662
662
|
target: f,
|
|
663
663
|
clientX: (a || e).clientX,
|
|
664
664
|
clientY: (a || e).clientY
|
|
665
|
-
}, V1 =
|
|
665
|
+
}, V1 = Y2.clientX - m.left, y1 = Y2.clientY - m.top, this._lastX = (a || e).clientX, this._lastY = (a || e).clientY, f.style["will-change"] = "all", _ = function() {
|
|
666
666
|
if (u2("delayEnded", i, {
|
|
667
667
|
evt: e
|
|
668
668
|
}), H.eventCanceled) {
|
|
669
669
|
i._onDrop();
|
|
670
670
|
return;
|
|
671
671
|
}
|
|
672
|
-
i._disableDelayedDragEvents(), !b1 && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, a),
|
|
672
|
+
i._disableDelayedDragEvents(), !b1 && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, a), i2({
|
|
673
673
|
sortable: i,
|
|
674
674
|
name: "choose",
|
|
675
675
|
originalEvent: e
|
|
676
|
-
}),
|
|
676
|
+
}), m2(f, u.chosenClass, !0);
|
|
677
677
|
}, u.ignore.split(",").forEach(function(d) {
|
|
678
|
-
N1(f, d.trim(),
|
|
679
|
-
}),
|
|
678
|
+
N1(f, d.trim(), G0);
|
|
679
|
+
}), L(p, "dragover", W2), L(p, "mousemove", W2), L(p, "touchmove", W2), u.supportPointer ? (L(p, "pointerup", i._onDrop), !this.nativeDraggable && L(p, "pointercancel", i._onDrop)) : (L(p, "mouseup", i._onDrop), L(p, "touchend", i._onDrop), L(p, "touchcancel", i._onDrop)), b1 && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), u2("delayStart", this, {
|
|
680
680
|
evt: e
|
|
681
|
-
}), u.delay && (!u.delayOnTouchOnly || a) && (!this.nativeDraggable || !(
|
|
681
|
+
}), u.delay && (!u.delayOnTouchOnly || a) && (!this.nativeDraggable || !(v0 || F2))) {
|
|
682
682
|
if (H.eventCanceled) {
|
|
683
683
|
this._onDrop();
|
|
684
684
|
return;
|
|
685
685
|
}
|
|
686
|
-
u.supportPointer ? (
|
|
686
|
+
u.supportPointer ? (L(p, "pointerup", i._disableDelayedDrag), L(p, "pointercancel", i._disableDelayedDrag)) : (L(p, "mouseup", i._disableDelayedDrag), L(p, "touchend", i._disableDelayedDrag), L(p, "touchcancel", i._disableDelayedDrag)), L(p, "mousemove", i._delayedDragTouchMoveHandler), L(p, "touchmove", i._delayedDragTouchMoveHandler), u.supportPointer && L(p, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(_, u.delay);
|
|
687
687
|
} else
|
|
688
688
|
_();
|
|
689
689
|
}
|
|
@@ -693,28 +693,28 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
693
693
|
Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
694
694
|
},
|
|
695
695
|
_disableDelayedDrag: function() {
|
|
696
|
-
f &&
|
|
696
|
+
f && G0(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
697
697
|
},
|
|
698
698
|
_disableDelayedDragEvents: function() {
|
|
699
699
|
var e = this.el.ownerDocument;
|
|
700
700
|
D(e, "mouseup", this._disableDelayedDrag), D(e, "touchend", this._disableDelayedDrag), D(e, "touchcancel", this._disableDelayedDrag), D(e, "pointerup", this._disableDelayedDrag), D(e, "pointercancel", this._disableDelayedDrag), D(e, "mousemove", this._delayedDragTouchMoveHandler), D(e, "touchmove", this._delayedDragTouchMoveHandler), D(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 ?
|
|
703
|
+
a = a || e.pointerType == "touch" && e, !this.nativeDraggable || a ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : a ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(f, "dragend", this), L(U, "dragstart", this._onDragStart));
|
|
704
704
|
try {
|
|
705
|
-
document.selection ?
|
|
705
|
+
document.selection ? A0(function() {
|
|
706
706
|
document.selection.empty();
|
|
707
707
|
}) : window.getSelection().removeAllRanges();
|
|
708
708
|
} catch {
|
|
709
709
|
}
|
|
710
710
|
},
|
|
711
711
|
_dragStarted: function(e, a) {
|
|
712
|
-
if (Q2 = !1,
|
|
712
|
+
if (Q2 = !1, U && f) {
|
|
713
713
|
u2("dragStarted", this, {
|
|
714
714
|
evt: a
|
|
715
|
-
}), this.nativeDraggable &&
|
|
715
|
+
}), this.nativeDraggable && L(document, "dragover", b4);
|
|
716
716
|
var n = this.options;
|
|
717
|
-
!e &&
|
|
717
|
+
!e && m2(f, n.dragClass, !1), m2(f, n.ghostClass, !0), H.active = this, e && this._appendGhost(), i2({
|
|
718
718
|
sortable: this,
|
|
719
719
|
name: "start",
|
|
720
720
|
originalEvent: a
|
|
@@ -723,17 +723,17 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
723
723
|
this._nulling();
|
|
724
724
|
},
|
|
725
725
|
_emulateDragOver: function() {
|
|
726
|
-
if (
|
|
727
|
-
this._lastX =
|
|
728
|
-
for (var e = document.elementFromPoint(
|
|
726
|
+
if (z2) {
|
|
727
|
+
this._lastX = z2.clientX, this._lastY = z2.clientY, Y1();
|
|
728
|
+
for (var e = document.elementFromPoint(z2.clientX, z2.clientY), a = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(z2.clientX, z2.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 n = void 0;
|
|
734
734
|
if (n = a[_2]._onDragOver({
|
|
735
|
-
clientX:
|
|
736
|
-
clientY:
|
|
735
|
+
clientX: z2.clientX,
|
|
736
|
+
clientY: z2.clientY,
|
|
737
737
|
target: e,
|
|
738
738
|
rootEl: a
|
|
739
739
|
}), n && !this.options.dragoverBubble)
|
|
@@ -745,15 +745,15 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
745
745
|
}
|
|
746
746
|
},
|
|
747
747
|
_onTouchMove: function(e) {
|
|
748
|
-
if (
|
|
749
|
-
var a = this.options, n = a.fallbackTolerance, i = a.fallbackOffset, c = e.touches ? e.touches[0] : e, u = S &&
|
|
748
|
+
if (Y2) {
|
|
749
|
+
var a = this.options, n = a.fallbackTolerance, i = a.fallbackOffset, c = e.touches ? e.touches[0] : e, u = S && t0(S, !0), p = S && u && u.a, _ = S && u && u.d, m = b0 && l2 && E1(l2), d = (c.clientX - Y2.clientX + i.x) / (p || 1) + (m ? m[0] - W0[0] : 0) / (p || 1), h = (c.clientY - Y2.clientY + i.y) / (_ || 1) + (m ? m[1] - W0[1] : 0) / (_ || 1);
|
|
750
750
|
if (!H.active && !Q2) {
|
|
751
751
|
if (n && Math.max(Math.abs(c.clientX - this._lastX), Math.abs(c.clientY - this._lastY)) < n)
|
|
752
752
|
return;
|
|
753
753
|
this._onDragStart(e, !0);
|
|
754
754
|
}
|
|
755
755
|
if (S) {
|
|
756
|
-
u ? (u.e += d - (
|
|
756
|
+
u ? (u.e += d - (U0 || 0), u.f += h - (Y0 || 0)) : u = {
|
|
757
757
|
a: 1,
|
|
758
758
|
b: 0,
|
|
759
759
|
c: 0,
|
|
@@ -762,20 +762,20 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
762
762
|
f: h
|
|
763
763
|
};
|
|
764
764
|
var w = "matrix(".concat(u.a, ",").concat(u.b, ",").concat(u.c, ",").concat(u.d, ",").concat(u.e, ",").concat(u.f, ")");
|
|
765
|
-
V(S, "webkitTransform", w), V(S, "mozTransform", w), V(S, "msTransform", w), V(S, "transform", w),
|
|
765
|
+
V(S, "webkitTransform", w), V(S, "mozTransform", w), V(S, "msTransform", w), V(S, "transform", w), U0 = d, Y0 = h, z2 = c;
|
|
766
766
|
}
|
|
767
767
|
e.cancelable && e.preventDefault();
|
|
768
768
|
}
|
|
769
769
|
},
|
|
770
770
|
_appendGhost: function() {
|
|
771
771
|
if (!S) {
|
|
772
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
773
|
-
if (
|
|
774
|
-
for (
|
|
775
|
-
|
|
776
|
-
|
|
772
|
+
var e = this.options.fallbackOnBody ? document.body : U, a = e2(f, !0, b0, !0, e), n = this.options;
|
|
773
|
+
if (b0) {
|
|
774
|
+
for (l2 = e; V(l2, "position") === "static" && V(l2, "transform") === "none" && l2 !== document; )
|
|
775
|
+
l2 = l2.parentNode;
|
|
776
|
+
l2 !== document.body && l2 !== document.documentElement ? (l2 === document && (l2 = y2()), a.top += l2.scrollTop, a.left += l2.scrollLeft) : l2 = y2(), W0 = E1(l2);
|
|
777
777
|
}
|
|
778
|
-
S = f.cloneNode(!0),
|
|
778
|
+
S = f.cloneNode(!0), m2(S, n.ghostClass, !1), m2(S, n.fallbackClass, !0), m2(S, n.dragClass, !0), V(S, "transition", ""), V(S, "transform", ""), V(S, "box-sizing", "border-box"), V(S, "margin", 0), V(S, "top", a.top), V(S, "left", a.left), V(S, "width", a.width), V(S, "height", a.height), V(S, "opacity", "0.8"), V(S, "position", b0 ? "absolute" : "fixed"), V(S, "zIndex", "100000"), V(S, "pointerEvents", "none"), H.ghost = S, e.appendChild(S), V(S, "transform-origin", V1 / parseInt(S.style.width) * 100 + "% " + y1 / parseInt(S.style.height) * 100 + "%");
|
|
779
779
|
}
|
|
780
780
|
},
|
|
781
781
|
_onDragStart: function(e, a) {
|
|
@@ -786,19 +786,19 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
786
786
|
this._onDrop();
|
|
787
787
|
return;
|
|
788
788
|
}
|
|
789
|
-
u2("setupClone", this), H.eventCanceled || (
|
|
790
|
-
u2("clone", n), !H.eventCanceled && (n.options.removeCloneOnHide ||
|
|
789
|
+
u2("setupClone", this), H.eventCanceled || (G = R1(f), G.removeAttribute("id"), G.draggable = !1, G.style["will-change"] = "", this._hideClone(), m2(G, this.options.chosenClass, !1), H.clone = G), n.cloneId = A0(function() {
|
|
790
|
+
u2("clone", n), !H.eventCanceled && (n.options.removeCloneOnHide || U.insertBefore(G, f), n._hideClone(), i2({
|
|
791
791
|
sortable: n,
|
|
792
792
|
name: "clone"
|
|
793
793
|
}));
|
|
794
|
-
}), !a &&
|
|
794
|
+
}), !a && m2(f, c.dragClass, !0), a ? (F0 = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (D(document, "mouseup", n._onDrop), D(document, "touchend", n._onDrop), D(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", c.setData && c.setData.call(n, i, f)), L(document, "drop", n), V(f, "transform", "translateZ(0)")), Q2 = !0, n._dragStartId = A0(n._dragStarted.bind(n, a, e)), L(document, "selectstart", n), l0 = !0, window.getSelection().removeAllRanges(), c0 && V(document.body, "user-select", "none");
|
|
795
795
|
},
|
|
796
796
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
797
797
|
_onDragOver: function(e) {
|
|
798
|
-
var a = this.el, n = e.target, i, c, u, p = this.options, _ = p.group, m = H.active, d =
|
|
799
|
-
if (
|
|
800
|
-
function
|
|
801
|
-
u2(
|
|
798
|
+
var a = this.el, n = e.target, i, c, u, p = this.options, _ = p.group, m = H.active, d = C0 === _, h = p.sort, w = r2 || m, E, b = this, y = !1;
|
|
799
|
+
if (e1) return;
|
|
800
|
+
function T(W, j2) {
|
|
801
|
+
u2(W, b, S2({
|
|
802
802
|
evt: e,
|
|
803
803
|
isOwner: d,
|
|
804
804
|
axis: E ? "vertical" : "horizontal",
|
|
@@ -808,80 +808,80 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
808
808
|
canSort: h,
|
|
809
809
|
fromSortable: w,
|
|
810
810
|
target: n,
|
|
811
|
-
completed:
|
|
812
|
-
onMove: function(v,
|
|
813
|
-
return
|
|
811
|
+
completed: I,
|
|
812
|
+
onMove: function(v, M) {
|
|
813
|
+
return z0(U, a, f, i, v, e2(v), e, M);
|
|
814
814
|
},
|
|
815
|
-
changed:
|
|
816
|
-
},
|
|
815
|
+
changed: R
|
|
816
|
+
}, j2));
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
|
|
818
|
+
function P() {
|
|
819
|
+
T("dragOverAnimationCapture"), b.captureAnimationState(), b !== w && w.captureAnimationState();
|
|
820
820
|
}
|
|
821
|
-
function
|
|
822
|
-
return
|
|
823
|
-
insertion:
|
|
824
|
-
}),
|
|
825
|
-
|
|
826
|
-
}),
|
|
821
|
+
function I(W) {
|
|
822
|
+
return T("dragOverCompleted", {
|
|
823
|
+
insertion: W
|
|
824
|
+
}), W && (d ? m._hideClone() : m._showClone(b), b !== w && (m2(f, r2 ? r2.options.ghostClass : m.options.ghostClass, !1), m2(f, p.ghostClass, !0)), r2 !== b && b !== H.active ? r2 = b : b === H.active && r2 && (r2 = null), w === b && (b._ignoreWhileAnimating = n), b.animateAll(function() {
|
|
825
|
+
T("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
826
|
+
}), b !== w && (w.animateAll(), w._ignoreWhileAnimating = null)), (n === f && !f.animated || n === a && !n.animated) && (K2 = null), !p.dragoverBubble && !e.rootEl && n !== document && (f.parentNode[_2]._isOutsideThisEl(e.target), !W && W2(e)), !p.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
829
|
-
|
|
830
|
-
sortable:
|
|
828
|
+
function R() {
|
|
829
|
+
h2 = g2(f), O2 = g2(f, p.draggable), i2({
|
|
830
|
+
sortable: b,
|
|
831
831
|
name: "change",
|
|
832
832
|
toEl: a,
|
|
833
|
-
newIndex:
|
|
834
|
-
newDraggableIndex:
|
|
833
|
+
newIndex: h2,
|
|
834
|
+
newDraggableIndex: O2,
|
|
835
835
|
originalEvent: e
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
839
|
-
if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY ||
|
|
840
|
-
return
|
|
841
|
-
if (
|
|
842
|
-
if (E = this._getDirection(e, n) === "vertical", i =
|
|
838
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = E2(n, p.draggable, a, !0), T("dragOver"), H.eventCanceled) return y;
|
|
839
|
+
if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || b._ignoreWhileAnimating === n)
|
|
840
|
+
return I(!1);
|
|
841
|
+
if (F0 = !1, m && !p.disabled && (d ? h || (u = X !== U) : r2 === this || (this.lastPutMode = C0.checkPull(this, m, f, e)) && _.checkPut(this, m, f, e))) {
|
|
842
|
+
if (E = this._getDirection(e, n) === "vertical", i = e2(f), T("dragOverValid"), H.eventCanceled) return y;
|
|
843
843
|
if (u)
|
|
844
|
-
return
|
|
845
|
-
var
|
|
846
|
-
if (!
|
|
847
|
-
if (
|
|
848
|
-
return
|
|
849
|
-
if (
|
|
850
|
-
return
|
|
851
|
-
} else if (
|
|
852
|
-
var
|
|
853
|
-
if (
|
|
854
|
-
return
|
|
855
|
-
if (n =
|
|
856
|
-
return
|
|
844
|
+
return X = U, P(), this._hideClone(), T("revert"), H.eventCanceled || (G2 ? U.insertBefore(f, G2) : U.appendChild(f)), I(!0);
|
|
845
|
+
var q = h1(a, p.draggable);
|
|
846
|
+
if (!q || V4(e, E, this) && !q.animated) {
|
|
847
|
+
if (q === f)
|
|
848
|
+
return I(!1);
|
|
849
|
+
if (q && a === e.target && (n = q), n && (c = e2(n)), z0(U, a, f, i, n, c, e, !!n) !== !1)
|
|
850
|
+
return P(), q && q.nextSibling ? a.insertBefore(f, q.nextSibling) : a.appendChild(f), X = a, R(), I(!0);
|
|
851
|
+
} else if (q && E4(e, E, this)) {
|
|
852
|
+
var a2 = a0(a, 0, p, !0);
|
|
853
|
+
if (a2 === f)
|
|
854
|
+
return I(!1);
|
|
855
|
+
if (n = a2, c = e2(n), z0(U, a, f, i, n, c, e, !1) !== !1)
|
|
856
|
+
return P(), a.insertBefore(f, a2), X = a, R(), I(!0);
|
|
857
857
|
} else if (n.parentNode === a) {
|
|
858
|
-
c =
|
|
859
|
-
var s2 = 0,
|
|
860
|
-
K2 !== n && (
|
|
861
|
-
var
|
|
858
|
+
c = e2(n);
|
|
859
|
+
var s2 = 0, M2, A2 = f.parentNode !== a, K = !C4(f.animated && f.toRect || i, n.animated && n.toRect || c, E), b2 = E ? "top" : "left", w2 = H1(n, "top", "top") || H1(f, "top", "top"), B = w2 ? w2.scrollTop : void 0;
|
|
860
|
+
K2 !== n && (M2 = c[b2], m0 = !1, M0 = !K && p.invertSwap || A2), s2 = y4(e, n, c, E, K ? 1 : p.swapThreshold, p.invertedSwapThreshold == null ? p.swapThreshold : p.invertedSwapThreshold, M0, K2 === n);
|
|
861
|
+
var x;
|
|
862
862
|
if (s2 !== 0) {
|
|
863
|
-
var
|
|
863
|
+
var Y = g2(f);
|
|
864
864
|
do
|
|
865
|
-
|
|
866
|
-
while (
|
|
865
|
+
Y -= s2, x = X.children[Y];
|
|
866
|
+
while (x && (V(x, "display") === "none" || x === S));
|
|
867
867
|
}
|
|
868
|
-
if (s2 === 0 ||
|
|
869
|
-
return
|
|
870
|
-
K2 = n,
|
|
871
|
-
var
|
|
872
|
-
|
|
873
|
-
var
|
|
874
|
-
if (
|
|
875
|
-
return (
|
|
868
|
+
if (s2 === 0 || x === n)
|
|
869
|
+
return I(!1);
|
|
870
|
+
K2 = n, _0 = s2;
|
|
871
|
+
var J = n.nextElementSibling, n2 = !1;
|
|
872
|
+
n2 = s2 === 1;
|
|
873
|
+
var o2 = z0(U, a, f, i, n, c, e, n2);
|
|
874
|
+
if (o2 !== !1)
|
|
875
|
+
return (o2 === 1 || o2 === -1) && (n2 = o2 === 1), e1 = !0, setTimeout(H4, 30), P(), n2 && !J ? a.appendChild(f) : n.parentNode.insertBefore(f, n2 ? J : n), w2 && I1(w2, 0, B - w2.scrollTop), X = f.parentNode, M2 !== void 0 && !M0 && (S0 = Math.abs(M2 - e2(n)[b2])), R(), I(!0);
|
|
876
876
|
}
|
|
877
877
|
if (a.contains(f))
|
|
878
|
-
return
|
|
878
|
+
return I(!1);
|
|
879
879
|
}
|
|
880
880
|
return !1;
|
|
881
881
|
},
|
|
882
882
|
_ignoreWhileAnimating: null,
|
|
883
883
|
_offMoveEvents: function() {
|
|
884
|
-
D(document, "mousemove", this._onTouchMove), D(document, "touchmove", this._onTouchMove), D(document, "pointermove", this._onTouchMove), D(document, "dragover",
|
|
884
|
+
D(document, "mousemove", this._onTouchMove), D(document, "touchmove", this._onTouchMove), D(document, "pointermove", this._onTouchMove), D(document, "dragover", W2), D(document, "mousemove", W2), D(document, "touchmove", W2);
|
|
885
885
|
},
|
|
886
886
|
_offUpEvents: function() {
|
|
887
887
|
var e = this.el.ownerDocument;
|
|
@@ -889,62 +889,62 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
889
889
|
},
|
|
890
890
|
_onDrop: function(e) {
|
|
891
891
|
var a = this.el, n = this.options;
|
|
892
|
-
if (
|
|
892
|
+
if (h2 = g2(f), O2 = g2(f, n.draggable), u2("drop", this, {
|
|
893
893
|
evt: e
|
|
894
|
-
}),
|
|
894
|
+
}), X = f && f.parentNode, h2 = g2(f), O2 = g2(f, n.draggable), H.eventCanceled) {
|
|
895
895
|
this._nulling();
|
|
896
896
|
return;
|
|
897
897
|
}
|
|
898
|
-
Q2 = !1,
|
|
898
|
+
Q2 = !1, M0 = !1, m0 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), t1(this.cloneId), t1(this._dragStartId), this.nativeDraggable && (D(document, "drop", this), D(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), c0 && V(document.body, "user-select", ""), V(f, "transform", ""), e && (l0 && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (U === X || r2 && r2.lastPutMode !== "clone") && G && G.parentNode && G.parentNode.removeChild(G), f && (this.nativeDraggable && D(f, "dragend", this), G0(f), f.style["will-change"] = "", l0 && !Q2 && m2(f, r2 ? r2.options.ghostClass : this.options.ghostClass, !1), m2(f, this.options.chosenClass, !1), i2({
|
|
899
899
|
sortable: this,
|
|
900
900
|
name: "unchoose",
|
|
901
|
-
toEl:
|
|
901
|
+
toEl: X,
|
|
902
902
|
newIndex: null,
|
|
903
903
|
newDraggableIndex: null,
|
|
904
904
|
originalEvent: e
|
|
905
|
-
}),
|
|
906
|
-
rootEl:
|
|
905
|
+
}), U !== X ? (h2 >= 0 && (i2({
|
|
906
|
+
rootEl: X,
|
|
907
907
|
name: "add",
|
|
908
|
-
toEl:
|
|
909
|
-
fromEl:
|
|
908
|
+
toEl: X,
|
|
909
|
+
fromEl: U,
|
|
910
910
|
originalEvent: e
|
|
911
|
-
}),
|
|
911
|
+
}), i2({
|
|
912
912
|
sortable: this,
|
|
913
913
|
name: "remove",
|
|
914
|
-
toEl:
|
|
914
|
+
toEl: X,
|
|
915
915
|
originalEvent: e
|
|
916
|
-
}),
|
|
917
|
-
rootEl:
|
|
916
|
+
}), i2({
|
|
917
|
+
rootEl: X,
|
|
918
918
|
name: "sort",
|
|
919
|
-
toEl:
|
|
920
|
-
fromEl:
|
|
919
|
+
toEl: X,
|
|
920
|
+
fromEl: U,
|
|
921
921
|
originalEvent: e
|
|
922
|
-
}),
|
|
922
|
+
}), i2({
|
|
923
923
|
sortable: this,
|
|
924
924
|
name: "sort",
|
|
925
|
-
toEl:
|
|
925
|
+
toEl: X,
|
|
926
926
|
originalEvent: e
|
|
927
|
-
})),
|
|
927
|
+
})), r2 && r2.save()) : h2 !== Z2 && h2 >= 0 && (i2({
|
|
928
928
|
sortable: this,
|
|
929
929
|
name: "update",
|
|
930
|
-
toEl:
|
|
930
|
+
toEl: X,
|
|
931
931
|
originalEvent: e
|
|
932
|
-
}),
|
|
932
|
+
}), i2({
|
|
933
933
|
sortable: this,
|
|
934
934
|
name: "sort",
|
|
935
|
-
toEl:
|
|
935
|
+
toEl: X,
|
|
936
936
|
originalEvent: e
|
|
937
|
-
})), H.active && ((
|
|
937
|
+
})), H.active && ((h2 == null || h2 === -1) && (h2 = Z2, O2 = p0), i2({
|
|
938
938
|
sortable: this,
|
|
939
939
|
name: "end",
|
|
940
|
-
toEl:
|
|
940
|
+
toEl: X,
|
|
941
941
|
originalEvent: e
|
|
942
942
|
}), this.save()))), this._nulling();
|
|
943
943
|
},
|
|
944
944
|
_nulling: function() {
|
|
945
|
-
u2("nulling", this),
|
|
945
|
+
u2("nulling", this), U = f = X = S = G2 = G = y0 = N2 = Y2 = z2 = l0 = h2 = O2 = Z2 = p0 = K2 = _0 = r2 = C0 = H.dragged = H.ghost = H.clone = H.active = null, O0.forEach(function(e) {
|
|
946
946
|
e.checked = !0;
|
|
947
|
-
}),
|
|
947
|
+
}), O0.length = U0 = Y0 = 0;
|
|
948
948
|
},
|
|
949
949
|
handleEvent: function(e) {
|
|
950
950
|
switch (e.type) {
|
|
@@ -967,7 +967,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
967
967
|
*/
|
|
968
968
|
toArray: function() {
|
|
969
969
|
for (var e = [], a, n = this.el.children, i = 0, c = n.length, u = this.options; i < c; i++)
|
|
970
|
-
a = n[i],
|
|
970
|
+
a = n[i], E2(a, u.draggable, this.el, !1) && e.push(a.getAttribute(u.dataIdAttr) || A4(a));
|
|
971
971
|
return e;
|
|
972
972
|
},
|
|
973
973
|
/**
|
|
@@ -978,7 +978,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
978
978
|
var n = {}, i = this.el;
|
|
979
979
|
this.toArray().forEach(function(c, u) {
|
|
980
980
|
var p = i.children[u];
|
|
981
|
-
|
|
981
|
+
E2(p, this.options.draggable, i, !1) && (n[c] = p);
|
|
982
982
|
}, this), a && this.captureAnimationState(), e.forEach(function(c) {
|
|
983
983
|
n[c] && (i.removeChild(n[c]), i.appendChild(n[c]));
|
|
984
984
|
}), a && this.animateAll();
|
|
@@ -997,7 +997,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
997
997
|
* @returns {HTMLElement|null}
|
|
998
998
|
*/
|
|
999
999
|
closest: function(e, a) {
|
|
1000
|
-
return
|
|
1000
|
+
return E2(e, a || this.options.draggable, this.el, !1);
|
|
1001
1001
|
},
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Set/get option
|
|
@@ -1009,7 +1009,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
1009
1009
|
var n = this.options;
|
|
1010
1010
|
if (a === void 0)
|
|
1011
1011
|
return n[e];
|
|
1012
|
-
var i =
|
|
1012
|
+
var i = f0.modifyOption(this, e, a);
|
|
1013
1013
|
typeof i < "u" ? n[e] = i : n[e] = a, e === "group" && U1(n);
|
|
1014
1014
|
},
|
|
1015
1015
|
/**
|
|
@@ -1020,12 +1020,12 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
1020
1020
|
var e = this.el;
|
|
1021
1021
|
e[_2] = null, D(e, "mousedown", this._onTapStart), D(e, "touchstart", this._onTapStart), D(e, "pointerdown", this._onTapStart), this.nativeDraggable && (D(e, "dragover", this), D(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(a) {
|
|
1022
1022
|
a.removeAttribute("draggable");
|
|
1023
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1023
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), k0.splice(k0.indexOf(this.el), 1), this.el = e = null;
|
|
1024
1024
|
},
|
|
1025
1025
|
_hideClone: function() {
|
|
1026
|
-
if (!
|
|
1026
|
+
if (!N2) {
|
|
1027
1027
|
if (u2("hideClone", this), H.eventCanceled) return;
|
|
1028
|
-
V(
|
|
1028
|
+
V(G, "display", "none"), this.options.removeCloneOnHide && G.parentNode && G.parentNode.removeChild(G), N2 = !0;
|
|
1029
1029
|
}
|
|
1030
1030
|
},
|
|
1031
1031
|
_showClone: function(e) {
|
|
@@ -1033,44 +1033,44 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
1033
1033
|
this._hideClone();
|
|
1034
1034
|
return;
|
|
1035
1035
|
}
|
|
1036
|
-
if (
|
|
1036
|
+
if (N2) {
|
|
1037
1037
|
if (u2("showClone", this), H.eventCanceled) return;
|
|
1038
|
-
f.parentNode ==
|
|
1038
|
+
f.parentNode == U && !this.options.group.revertClone ? U.insertBefore(G, f) : G2 ? U.insertBefore(G, G2) : U.appendChild(G), this.options.group.revertClone && this.animate(f, G), V(G, "display", ""), N2 = !1;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
1041
|
};
|
|
1042
1042
|
function z4(t) {
|
|
1043
1043
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function z0(t, e, a, n, i, c, u, p) {
|
|
1046
1046
|
var _, m = t[_2], d = m.options.onMove, h;
|
|
1047
|
-
return window.CustomEvent && !F2 && !
|
|
1047
|
+
return window.CustomEvent && !F2 && !v0 ? _ = new CustomEvent("move", {
|
|
1048
1048
|
bubbles: !0,
|
|
1049
1049
|
cancelable: !0
|
|
1050
|
-
}) : (_ = document.createEvent("Event"), _.initEvent("move", !0, !0)), _.to = e, _.from = t, _.dragged = a, _.draggedRect = n, _.related = i || e, _.relatedRect = c ||
|
|
1050
|
+
}) : (_ = document.createEvent("Event"), _.initEvent("move", !0, !0)), _.to = e, _.from = t, _.dragged = a, _.draggedRect = n, _.related = i || e, _.relatedRect = c || e2(e), _.willInsertAfter = p, _.originalEvent = u, t.dispatchEvent(_), d && (h = d.call(m, _, u)), h;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function G0(t) {
|
|
1053
1053
|
t.draggable = !1;
|
|
1054
1054
|
}
|
|
1055
1055
|
function H4() {
|
|
1056
|
-
|
|
1056
|
+
e1 = !1;
|
|
1057
1057
|
}
|
|
1058
1058
|
function E4(t, e, a) {
|
|
1059
|
-
var n =
|
|
1059
|
+
var n = e2(a0(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 =
|
|
1063
|
+
var n = e2(h1(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) {
|
|
1067
1067
|
var _ = n ? t.clientY : t.clientX, m = n ? a.height : a.width, d = n ? a.top : a.left, h = n ? a.bottom : a.right, w = !1;
|
|
1068
1068
|
if (!u) {
|
|
1069
|
-
if (p &&
|
|
1070
|
-
if (!
|
|
1069
|
+
if (p && S0 < m * i) {
|
|
1070
|
+
if (!m0 && (_0 === 1 ? _ > d + m * c / 2 : _ < h - m * c / 2) && (m0 = !0), m0)
|
|
1071
1071
|
w = !0;
|
|
1072
|
-
else if (
|
|
1073
|
-
return -
|
|
1072
|
+
else if (_0 === 1 ? _ < d + S0 : _ > h - S0)
|
|
1073
|
+
return -_0;
|
|
1074
1074
|
} else if (_ > d + m * (1 - i) / 2 && _ < h - m * (1 - i) / 2)
|
|
1075
1075
|
return S4(e);
|
|
1076
1076
|
}
|
|
@@ -1079,45 +1079,45 @@ function y4(t, e, a, n, i, c, u, p) {
|
|
|
1079
1079
|
function S4(t) {
|
|
1080
1080
|
return g2(f) < g2(t) ? 1 : -1;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function A4(t) {
|
|
1083
1083
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, a = e.length, n = 0; a--; )
|
|
1084
1084
|
n += e.charCodeAt(a);
|
|
1085
1085
|
return n.toString(36);
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
|
|
1087
|
+
function B4(t) {
|
|
1088
|
+
O0.length = 0;
|
|
1089
1089
|
for (var e = t.getElementsByTagName("input"), a = e.length; a--; ) {
|
|
1090
1090
|
var n = e[a];
|
|
1091
|
-
n.checked &&
|
|
1091
|
+
n.checked && O0.push(n);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function A0(t) {
|
|
1095
1095
|
return setTimeout(t, 0);
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function t1(t) {
|
|
1098
1098
|
return clearTimeout(t);
|
|
1099
1099
|
}
|
|
1100
|
-
|
|
1100
|
+
R0 && L(document, "touchmove", function(t) {
|
|
1101
1101
|
(H.active || Q2) && t.cancelable && t.preventDefault();
|
|
1102
1102
|
});
|
|
1103
1103
|
H.utils = {
|
|
1104
|
-
on:
|
|
1104
|
+
on: L,
|
|
1105
1105
|
off: D,
|
|
1106
1106
|
css: V,
|
|
1107
1107
|
find: N1,
|
|
1108
1108
|
is: function(e, a) {
|
|
1109
|
-
return !!
|
|
1109
|
+
return !!E2(e, a, e, !1);
|
|
1110
1110
|
},
|
|
1111
1111
|
extend: m4,
|
|
1112
1112
|
throttle: P1,
|
|
1113
|
-
closest:
|
|
1114
|
-
toggleClass:
|
|
1113
|
+
closest: E2,
|
|
1114
|
+
toggleClass: m2,
|
|
1115
1115
|
clone: R1,
|
|
1116
1116
|
index: g2,
|
|
1117
|
-
nextTick:
|
|
1118
|
-
cancelNextTick:
|
|
1117
|
+
nextTick: A0,
|
|
1118
|
+
cancelNextTick: t1,
|
|
1119
1119
|
detectDirection: j1,
|
|
1120
|
-
getChild:
|
|
1120
|
+
getChild: a0,
|
|
1121
1121
|
expando: _2
|
|
1122
1122
|
};
|
|
1123
1123
|
H.get = function(t) {
|
|
@@ -1129,14 +1129,14 @@ H.mount = function() {
|
|
|
1129
1129
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
|
|
1130
1130
|
if (!n.prototype || !n.prototype.constructor)
|
|
1131
1131
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1132
|
-
n.utils && (H.utils = S2(S2({}, H.utils), n.utils)),
|
|
1132
|
+
n.utils && (H.utils = S2(S2({}, H.utils), n.utils)), f0.mount(n);
|
|
1133
1133
|
});
|
|
1134
1134
|
};
|
|
1135
1135
|
H.create = function(t, e) {
|
|
1136
1136
|
return new H(t, e);
|
|
1137
1137
|
};
|
|
1138
1138
|
H.version = p4;
|
|
1139
|
-
var
|
|
1139
|
+
var Q = [], s0, a1, r1 = !1, J0, X0, N0, i0;
|
|
1140
1140
|
function D4() {
|
|
1141
1141
|
function t() {
|
|
1142
1142
|
this.defaults = {
|
|
@@ -1152,36 +1152,36 @@ function D4() {
|
|
|
1152
1152
|
return t.prototype = {
|
|
1153
1153
|
dragStarted: function(a) {
|
|
1154
1154
|
var n = a.originalEvent;
|
|
1155
|
-
this.sortable.nativeDraggable ?
|
|
1155
|
+
this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? L(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? L(document, "touchmove", this._handleFallbackAutoScroll) : L(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1156
1156
|
},
|
|
1157
1157
|
dragOverCompleted: function(a) {
|
|
1158
1158
|
var n = a.originalEvent;
|
|
1159
1159
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
1160
1160
|
},
|
|
1161
1161
|
drop: function() {
|
|
1162
|
-
this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : (D(document, "pointermove", this._handleFallbackAutoScroll), D(document, "touchmove", this._handleFallbackAutoScroll), D(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
1162
|
+
this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : (D(document, "pointermove", this._handleFallbackAutoScroll), D(document, "touchmove", this._handleFallbackAutoScroll), D(document, "mousemove", this._handleFallbackAutoScroll)), A1(), B0(), h4();
|
|
1163
1163
|
},
|
|
1164
1164
|
nulling: function() {
|
|
1165
|
-
|
|
1165
|
+
N0 = a1 = s0 = r1 = i0 = J0 = X0 = null, Q.length = 0;
|
|
1166
1166
|
},
|
|
1167
1167
|
_handleFallbackAutoScroll: function(a) {
|
|
1168
1168
|
this._handleAutoScroll(a, !0);
|
|
1169
1169
|
},
|
|
1170
1170
|
_handleAutoScroll: function(a, n) {
|
|
1171
1171
|
var i = this, c = (a.touches ? a.touches[0] : a).clientX, u = (a.touches ? a.touches[0] : a).clientY, p = document.elementFromPoint(c, u);
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1174
|
-
var _ =
|
|
1175
|
-
|
|
1176
|
-
var m =
|
|
1177
|
-
m !== _ && (_ = m,
|
|
1178
|
-
}, 10),
|
|
1172
|
+
if (N0 = a, n || this.options.forceAutoScrollFallback || v0 || F2 || c0) {
|
|
1173
|
+
K0(a, this.options, p, n);
|
|
1174
|
+
var _ = I2(p, !0);
|
|
1175
|
+
r1 && (!i0 || c !== J0 || u !== X0) && (i0 && A1(), i0 = setInterval(function() {
|
|
1176
|
+
var m = I2(document.elementFromPoint(c, u), !0);
|
|
1177
|
+
m !== _ && (_ = m, B0()), K0(a, i.options, m, n);
|
|
1178
|
+
}, 10), J0 = c, X0 = u);
|
|
1179
1179
|
} else {
|
|
1180
|
-
if (!this.options.bubbleScroll ||
|
|
1181
|
-
|
|
1180
|
+
if (!this.options.bubbleScroll || I2(p, !0) === y2()) {
|
|
1181
|
+
B0();
|
|
1182
1182
|
return;
|
|
1183
1183
|
}
|
|
1184
|
-
|
|
1184
|
+
K0(a, this.options, I2(p, !1), !1);
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
1187
|
}, T2(t, {
|
|
@@ -1189,35 +1189,35 @@ function D4() {
|
|
|
1189
1189
|
initializeByDefault: !0
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
|
|
1192
|
+
function B0() {
|
|
1193
|
+
Q.forEach(function(t) {
|
|
1194
1194
|
clearInterval(t.pid);
|
|
1195
|
-
}),
|
|
1195
|
+
}), Q = [];
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
clearInterval(
|
|
1197
|
+
function A1() {
|
|
1198
|
+
clearInterval(i0);
|
|
1199
1199
|
}
|
|
1200
|
-
var
|
|
1200
|
+
var K0 = 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
|
-
|
|
1204
|
-
var h = 0, w =
|
|
1203
|
+
a1 !== a && (a1 = a, B0(), s0 = e.scroll, d = e.scrollFn, s0 === !0 && (s0 = I2(a, !0)));
|
|
1204
|
+
var h = 0, w = s0;
|
|
1205
1205
|
do {
|
|
1206
|
-
var E = w,
|
|
1207
|
-
E === _ ? (
|
|
1208
|
-
var
|
|
1209
|
-
if (!
|
|
1210
|
-
for (var
|
|
1211
|
-
|
|
1212
|
-
(
|
|
1213
|
-
n && this.layer === 0 && H.active._onTouchMove(
|
|
1214
|
-
var
|
|
1215
|
-
typeof d == "function" && d.call(H.dragged.parentNode[_2],
|
|
1206
|
+
var E = w, b = e2(E), y = b.top, T = b.bottom, P = b.left, I = b.right, R = b.width, q = b.height, a2 = void 0, s2 = void 0, M2 = E.scrollWidth, A2 = E.scrollHeight, K = V(E), b2 = E.scrollLeft, w2 = E.scrollTop;
|
|
1207
|
+
E === _ ? (a2 = R < M2 && (K.overflowX === "auto" || K.overflowX === "scroll" || K.overflowX === "visible"), s2 = q < A2 && (K.overflowY === "auto" || K.overflowY === "scroll" || K.overflowY === "visible")) : (a2 = R < M2 && (K.overflowX === "auto" || K.overflowX === "scroll"), s2 = q < A2 && (K.overflowY === "auto" || K.overflowY === "scroll"));
|
|
1208
|
+
var B = a2 && (Math.abs(I - i) <= u && b2 + R < M2) - (Math.abs(P - i) <= u && !!b2), x = s2 && (Math.abs(T - c) <= u && w2 + q < A2) - (Math.abs(y - c) <= u && !!w2);
|
|
1209
|
+
if (!Q[h])
|
|
1210
|
+
for (var Y = 0; Y <= h; Y++)
|
|
1211
|
+
Q[Y] || (Q[Y] = {});
|
|
1212
|
+
(Q[h].vx != B || Q[h].vy != x || Q[h].el !== E) && (Q[h].el = E, Q[h].vx = B, Q[h].vy = x, clearInterval(Q[h].pid), (B != 0 || x != 0) && (m = !0, Q[h].pid = setInterval((function() {
|
|
1213
|
+
n && this.layer === 0 && H.active._onTouchMove(N0);
|
|
1214
|
+
var J = Q[this.layer].vy ? Q[this.layer].vy * p : 0, n2 = Q[this.layer].vx ? Q[this.layer].vx * p : 0;
|
|
1215
|
+
typeof d == "function" && d.call(H.dragged.parentNode[_2], n2, J, t, N0, Q[this.layer].el) !== "continue" || I1(Q[this.layer].el, n2, J);
|
|
1216
1216
|
}).bind({
|
|
1217
1217
|
layer: h
|
|
1218
1218
|
}), 24))), h++;
|
|
1219
|
-
} while (e.bubbleScroll && w !== _ && (w =
|
|
1220
|
-
|
|
1219
|
+
} while (e.bubbleScroll && w !== _ && (w = I2(w, !1)));
|
|
1220
|
+
r1 = 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
|
|
1234
|
+
function d1() {
|
|
1235
1235
|
}
|
|
1236
|
-
|
|
1236
|
+
d1.prototype = {
|
|
1237
1237
|
startIndex: null,
|
|
1238
1238
|
dragStart: function(e) {
|
|
1239
1239
|
var a = e.oldDraggableIndex;
|
|
@@ -1242,29 +1242,29 @@ h1.prototype = {
|
|
|
1242
1242
|
onSpill: function(e) {
|
|
1243
1243
|
var a = e.dragEl, n = e.putSortable;
|
|
1244
1244
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
1245
|
-
var i =
|
|
1245
|
+
var i = a0(this.sortable.el, this.startIndex, this.options);
|
|
1246
1246
|
i ? this.sortable.el.insertBefore(a, i) : this.sortable.el.appendChild(a), this.sortable.animateAll(), n && n.animateAll();
|
|
1247
1247
|
},
|
|
1248
1248
|
drop: G1
|
|
1249
1249
|
};
|
|
1250
|
-
T2(
|
|
1250
|
+
T2(d1, {
|
|
1251
1251
|
pluginName: "revertOnSpill"
|
|
1252
1252
|
});
|
|
1253
|
-
function
|
|
1253
|
+
function v1() {
|
|
1254
1254
|
}
|
|
1255
|
-
|
|
1255
|
+
v1.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(
|
|
1262
|
+
T2(v1, {
|
|
1263
1263
|
pluginName: "removeOnSpill"
|
|
1264
1264
|
});
|
|
1265
1265
|
H.mount(new D4());
|
|
1266
|
-
H.mount(
|
|
1267
|
-
var
|
|
1266
|
+
H.mount(v1, d1);
|
|
1267
|
+
var f1 = {
|
|
1268
1268
|
name: "zh-cn",
|
|
1269
1269
|
el: {
|
|
1270
1270
|
breadcrumb: {
|
|
@@ -1875,7 +1875,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
1875
1875
|
})
|
|
1876
1876
|
]));
|
|
1877
1877
|
}
|
|
1878
|
-
}),
|
|
1878
|
+
}), Ae = Se, Be = /* @__PURE__ */ s({
|
|
1879
1879
|
name: "Brush",
|
|
1880
1880
|
__name: "brush",
|
|
1881
1881
|
setup(t) {
|
|
@@ -1889,7 +1889,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
1889
1889
|
})
|
|
1890
1890
|
]));
|
|
1891
1891
|
}
|
|
1892
|
-
}), De =
|
|
1892
|
+
}), De = Be, Le = /* @__PURE__ */ s({
|
|
1893
1893
|
name: "Burger",
|
|
1894
1894
|
__name: "burger",
|
|
1895
1895
|
setup(t) {
|
|
@@ -2294,7 +2294,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
2294
2294
|
})
|
|
2295
2295
|
]));
|
|
2296
2296
|
}
|
|
2297
|
-
}),
|
|
2297
|
+
}), A6 = S6, B6 = /* @__PURE__ */ s({
|
|
2298
2298
|
name: "Clock",
|
|
2299
2299
|
__name: "clock",
|
|
2300
2300
|
setup(t) {
|
|
@@ -2316,7 +2316,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
2316
2316
|
})
|
|
2317
2317
|
]));
|
|
2318
2318
|
}
|
|
2319
|
-
}), D6 =
|
|
2319
|
+
}), D6 = B6, L6 = /* @__PURE__ */ s({
|
|
2320
2320
|
name: "CloseBold",
|
|
2321
2321
|
__name: "close-bold",
|
|
2322
2322
|
setup(t) {
|
|
@@ -2736,7 +2736,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
2736
2736
|
})
|
|
2737
2737
|
]));
|
|
2738
2738
|
}
|
|
2739
|
-
}),
|
|
2739
|
+
}), w1 = S3, A3 = /* @__PURE__ */ s({
|
|
2740
2740
|
name: "Dessert",
|
|
2741
2741
|
__name: "dessert",
|
|
2742
2742
|
setup(t) {
|
|
@@ -2750,7 +2750,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
2750
2750
|
})
|
|
2751
2751
|
]));
|
|
2752
2752
|
}
|
|
2753
|
-
}),
|
|
2753
|
+
}), B3 = A3, D3 = /* @__PURE__ */ s({
|
|
2754
2754
|
name: "Discount",
|
|
2755
2755
|
__name: "discount",
|
|
2756
2756
|
setup(t) {
|
|
@@ -3152,7 +3152,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
3152
3152
|
})
|
|
3153
3153
|
]));
|
|
3154
3154
|
}
|
|
3155
|
-
}),
|
|
3155
|
+
}), At = St, Bt = /* @__PURE__ */ s({
|
|
3156
3156
|
name: "FolderChecked",
|
|
3157
3157
|
__name: "folder-checked",
|
|
3158
3158
|
setup(t) {
|
|
@@ -3166,7 +3166,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
3166
3166
|
})
|
|
3167
3167
|
]));
|
|
3168
3168
|
}
|
|
3169
|
-
}), Dt =
|
|
3169
|
+
}), Dt = Bt, Lt = /* @__PURE__ */ s({
|
|
3170
3170
|
name: "FolderDelete",
|
|
3171
3171
|
__name: "folder-delete",
|
|
3172
3172
|
setup(t) {
|
|
@@ -3548,7 +3548,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
3548
3548
|
})
|
|
3549
3549
|
]));
|
|
3550
3550
|
}
|
|
3551
|
-
}),
|
|
3551
|
+
}), Aa = Sa, Ba = /* @__PURE__ */ s({
|
|
3552
3552
|
name: "HotWater",
|
|
3553
3553
|
__name: "hot-water",
|
|
3554
3554
|
setup(t) {
|
|
@@ -3562,7 +3562,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
3562
3562
|
})
|
|
3563
3563
|
]));
|
|
3564
3564
|
}
|
|
3565
|
-
}), Da =
|
|
3565
|
+
}), Da = Ba, La = /* @__PURE__ */ s({
|
|
3566
3566
|
name: "House",
|
|
3567
3567
|
__name: "house",
|
|
3568
3568
|
setup(t) {
|
|
@@ -3971,7 +3971,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
3971
3971
|
})
|
|
3972
3972
|
]));
|
|
3973
3973
|
}
|
|
3974
|
-
}),
|
|
3974
|
+
}), A8 = S8, B8 = /* @__PURE__ */ s({
|
|
3975
3975
|
name: "Menu",
|
|
3976
3976
|
__name: "menu",
|
|
3977
3977
|
setup(t) {
|
|
@@ -3985,7 +3985,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
3985
3985
|
})
|
|
3986
3986
|
]));
|
|
3987
3987
|
}
|
|
3988
|
-
}), D8 =
|
|
3988
|
+
}), D8 = B8, L8 = /* @__PURE__ */ s({
|
|
3989
3989
|
name: "MessageBox",
|
|
3990
3990
|
__name: "message-box",
|
|
3991
3991
|
setup(t) {
|
|
@@ -4405,7 +4405,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
4405
4405
|
})
|
|
4406
4406
|
]));
|
|
4407
4407
|
}
|
|
4408
|
-
}),
|
|
4408
|
+
}), Ar = Sr, Br = /* @__PURE__ */ s({
|
|
4409
4409
|
name: "Paperclip",
|
|
4410
4410
|
__name: "paperclip",
|
|
4411
4411
|
setup(t) {
|
|
@@ -4419,7 +4419,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
4419
4419
|
})
|
|
4420
4420
|
]));
|
|
4421
4421
|
}
|
|
4422
|
-
}), Dr =
|
|
4422
|
+
}), Dr = Br, Lr = /* @__PURE__ */ s({
|
|
4423
4423
|
name: "PartlyCloudy",
|
|
4424
4424
|
__name: "partly-cloudy",
|
|
4425
4425
|
setup(t) {
|
|
@@ -4830,7 +4830,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
4830
4830
|
})
|
|
4831
4831
|
]));
|
|
4832
4832
|
}
|
|
4833
|
-
}), Sn = yn,
|
|
4833
|
+
}), Sn = yn, An = /* @__PURE__ */ s({
|
|
4834
4834
|
name: "RefreshRight",
|
|
4835
4835
|
__name: "refresh-right",
|
|
4836
4836
|
setup(t) {
|
|
@@ -4844,7 +4844,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
4844
4844
|
})
|
|
4845
4845
|
]));
|
|
4846
4846
|
}
|
|
4847
|
-
}),
|
|
4847
|
+
}), Bn = An, Dn = /* @__PURE__ */ s({
|
|
4848
4848
|
name: "Refresh",
|
|
4849
4849
|
__name: "refresh",
|
|
4850
4850
|
setup(t) {
|
|
@@ -5245,7 +5245,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
5245
5245
|
})
|
|
5246
5246
|
]));
|
|
5247
5247
|
}
|
|
5248
|
-
}),
|
|
5248
|
+
}), Ao = So, Bo = /* @__PURE__ */ s({
|
|
5249
5249
|
name: "SortUp",
|
|
5250
5250
|
__name: "sort-up",
|
|
5251
5251
|
setup(t) {
|
|
@@ -5259,7 +5259,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
5259
5259
|
})
|
|
5260
5260
|
]));
|
|
5261
5261
|
}
|
|
5262
|
-
}), Do =
|
|
5262
|
+
}), Do = Bo, Lo = /* @__PURE__ */ s({
|
|
5263
5263
|
name: "Sort",
|
|
5264
5264
|
__name: "sort",
|
|
5265
5265
|
setup(t) {
|
|
@@ -5662,7 +5662,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
5662
5662
|
})
|
|
5663
5663
|
]));
|
|
5664
5664
|
}
|
|
5665
|
-
}),
|
|
5665
|
+
}), Al = Sl, Bl = /* @__PURE__ */ s({
|
|
5666
5666
|
name: "Trophy",
|
|
5667
5667
|
__name: "trophy",
|
|
5668
5668
|
setup(t) {
|
|
@@ -5676,7 +5676,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
5676
5676
|
})
|
|
5677
5677
|
]));
|
|
5678
5678
|
}
|
|
5679
|
-
}), Dl =
|
|
5679
|
+
}), Dl = Bl, Ll = /* @__PURE__ */ s({
|
|
5680
5680
|
name: "TurnOff",
|
|
5681
5681
|
__name: "turn-off",
|
|
5682
5682
|
setup(t) {
|
|
@@ -5931,7 +5931,7 @@ var L4 = /* @__PURE__ */ s({
|
|
|
5931
5931
|
})
|
|
5932
5932
|
]));
|
|
5933
5933
|
}
|
|
5934
|
-
}),
|
|
5934
|
+
}), P0 = u5, p5 = /* @__PURE__ */ s({
|
|
5935
5935
|
name: "Warning",
|
|
5936
5936
|
__name: "warning",
|
|
5937
5937
|
setup(t) {
|
|
@@ -6052,7 +6052,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6052
6052
|
Box: Ee,
|
|
6053
6053
|
Briefcase: ye,
|
|
6054
6054
|
Brush: De,
|
|
6055
|
-
BrushFilled:
|
|
6055
|
+
BrushFilled: Ae,
|
|
6056
6056
|
Burger: Te,
|
|
6057
6057
|
Calendar: ke,
|
|
6058
6058
|
Camera: Ie,
|
|
@@ -6077,7 +6077,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6077
6077
|
CircleCheckFilled: x6,
|
|
6078
6078
|
CircleClose: E6,
|
|
6079
6079
|
CircleCloseFilled: z6,
|
|
6080
|
-
CirclePlus:
|
|
6080
|
+
CirclePlus: A6,
|
|
6081
6081
|
CirclePlusFilled: y6,
|
|
6082
6082
|
Clock: D6,
|
|
6083
6083
|
Close: k6,
|
|
@@ -6103,10 +6103,10 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6103
6103
|
DataAnalysis: x3,
|
|
6104
6104
|
DataBoard: M3,
|
|
6105
6105
|
DataLine: z3,
|
|
6106
|
-
Delete:
|
|
6106
|
+
Delete: w1,
|
|
6107
6107
|
DeleteFilled: E3,
|
|
6108
6108
|
DeleteLocation: y3,
|
|
6109
|
-
Dessert:
|
|
6109
|
+
Dessert: B3,
|
|
6110
6110
|
Discount: L3,
|
|
6111
6111
|
Dish: O3,
|
|
6112
6112
|
DishDot: F3,
|
|
@@ -6134,7 +6134,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6134
6134
|
Flag: Et,
|
|
6135
6135
|
Fold: yt,
|
|
6136
6136
|
Folder: It,
|
|
6137
|
-
FolderAdd:
|
|
6137
|
+
FolderAdd: At,
|
|
6138
6138
|
FolderChecked: Dt,
|
|
6139
6139
|
FolderDelete: Tt,
|
|
6140
6140
|
FolderOpened: kt,
|
|
@@ -6160,7 +6160,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6160
6160
|
HelpFilled: Ma,
|
|
6161
6161
|
Hide: Ea,
|
|
6162
6162
|
Histogram: ya,
|
|
6163
|
-
HomeFilled:
|
|
6163
|
+
HomeFilled: Aa,
|
|
6164
6164
|
HotWater: Da,
|
|
6165
6165
|
House: Ta,
|
|
6166
6166
|
IceCream: Ia,
|
|
@@ -6187,7 +6187,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6187
6187
|
Management: z8,
|
|
6188
6188
|
MapLocation: E8,
|
|
6189
6189
|
Medal: y8,
|
|
6190
|
-
Memo:
|
|
6190
|
+
Memo: A8,
|
|
6191
6191
|
Menu: D8,
|
|
6192
6192
|
Message: k8,
|
|
6193
6193
|
MessageBox: T8,
|
|
@@ -6214,7 +6214,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6214
6214
|
Open: zr,
|
|
6215
6215
|
Operation: Er,
|
|
6216
6216
|
Opportunity: yr,
|
|
6217
|
-
Orange:
|
|
6217
|
+
Orange: Ar,
|
|
6218
6218
|
Paperclip: Dr,
|
|
6219
6219
|
PartlyCloudy: Tr,
|
|
6220
6220
|
Pear: kr,
|
|
@@ -6242,7 +6242,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6242
6242
|
ReadingLamp: Hn,
|
|
6243
6243
|
Refresh: Ln,
|
|
6244
6244
|
RefreshLeft: Sn,
|
|
6245
|
-
RefreshRight:
|
|
6245
|
+
RefreshRight: Bn,
|
|
6246
6246
|
Refrigerator: Fn,
|
|
6247
6247
|
Remove: Pn,
|
|
6248
6248
|
RemoveFilled: On,
|
|
@@ -6268,7 +6268,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6268
6268
|
Soccer: Eo,
|
|
6269
6269
|
SoldOut: yo,
|
|
6270
6270
|
Sort: To,
|
|
6271
|
-
SortDown:
|
|
6271
|
+
SortDown: Ao,
|
|
6272
6272
|
SortUp: Do,
|
|
6273
6273
|
Stamp: ko,
|
|
6274
6274
|
Star: Io,
|
|
@@ -6295,7 +6295,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6295
6295
|
TopRight: zl,
|
|
6296
6296
|
TrendCharts: yl,
|
|
6297
6297
|
Trophy: Dl,
|
|
6298
|
-
TrophyBase:
|
|
6298
|
+
TrophyBase: Al,
|
|
6299
6299
|
TurnOff: Tl,
|
|
6300
6300
|
Umbrella: kl,
|
|
6301
6301
|
Unlock: Nl,
|
|
@@ -6313,25 +6313,25 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6313
6313
|
WalletFilled: o5,
|
|
6314
6314
|
WarnTriangleFilled: c5,
|
|
6315
6315
|
Warning: _5,
|
|
6316
|
-
WarningFilled:
|
|
6316
|
+
WarningFilled: P0,
|
|
6317
6317
|
Watch: h5,
|
|
6318
6318
|
Watermelon: v5,
|
|
6319
6319
|
WindPower: w5,
|
|
6320
6320
|
ZoomIn: x5,
|
|
6321
6321
|
ZoomOut: M5
|
|
6322
6322
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6323
|
-
function
|
|
6323
|
+
function q0() {
|
|
6324
6324
|
const t = (/* @__PURE__ */ new Date()).getTime(), e = Math.floor(Math.random() * 1e3);
|
|
6325
6325
|
return `${t}${e}`;
|
|
6326
6326
|
}
|
|
6327
6327
|
let K1 = null;
|
|
6328
|
-
function
|
|
6328
|
+
function g1(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) &&
|
|
6331
|
+
["ElCard", "ElTabPane", "GridComponent", "DivComponent"].includes(n) && a.id && e({ id: a.id }), a.children && Array.isArray(a.children) && g1(a.children, e);
|
|
6332
6332
|
});
|
|
6333
6333
|
}
|
|
6334
|
-
function
|
|
6334
|
+
function x2() {
|
|
6335
6335
|
return K1;
|
|
6336
6336
|
}
|
|
6337
6337
|
function z5(t) {
|
|
@@ -6343,13 +6343,13 @@ function Q1(t, e, a = null) {
|
|
|
6343
6343
|
id: e,
|
|
6344
6344
|
parentId: a
|
|
6345
6345
|
};
|
|
6346
|
-
return t.children && (n.children = t.children.map((i) => Q1(i,
|
|
6346
|
+
return t.children && (n.children = t.children.map((i) => Q1(i, q0(), e))), n;
|
|
6347
6347
|
}
|
|
6348
|
-
let
|
|
6348
|
+
let n1 = {};
|
|
6349
6349
|
function Z1(t, e) {
|
|
6350
6350
|
var a;
|
|
6351
6351
|
for (const n of t) {
|
|
6352
|
-
if (
|
|
6352
|
+
if (n1[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;
|
|
@@ -6357,8 +6357,8 @@ function Z1(t, e) {
|
|
|
6357
6357
|
}
|
|
6358
6358
|
return null;
|
|
6359
6359
|
}
|
|
6360
|
-
function
|
|
6361
|
-
return
|
|
6360
|
+
function Q0(t, e) {
|
|
6361
|
+
return n1[e] ? n1[e] : Z1(t, e);
|
|
6362
6362
|
}
|
|
6363
6363
|
function e4(t, e) {
|
|
6364
6364
|
var a;
|
|
@@ -6373,9 +6373,9 @@ function e4(t, e) {
|
|
|
6373
6373
|
}
|
|
6374
6374
|
function t4(t, e) {
|
|
6375
6375
|
const a = e.dataset.component;
|
|
6376
|
-
t.setData("type", a), e.closest("[data-id]") ? t.setData("itemId", e.closest("[data-id]").dataset.id) : t.setData("itemId",
|
|
6376
|
+
t.setData("type", a), e.closest("[data-id]") ? t.setData("itemId", e.closest("[data-id]").dataset.id) : t.setData("itemId", q0());
|
|
6377
6377
|
}
|
|
6378
|
-
const
|
|
6378
|
+
const h0 = {
|
|
6379
6379
|
teleportTo: F(null),
|
|
6380
6380
|
SET_TELEPORT_TO(t) {
|
|
6381
6381
|
this.teleportTo.value = t;
|
|
@@ -6386,9 +6386,9 @@ const m0 = {
|
|
|
6386
6386
|
this.componentMap = t;
|
|
6387
6387
|
}
|
|
6388
6388
|
};
|
|
6389
|
-
function
|
|
6390
|
-
const e =
|
|
6391
|
-
e && (e.onmouseenter = null, e.onmouseleave = null), t && (
|
|
6389
|
+
function B2(t) {
|
|
6390
|
+
const e = x2();
|
|
6391
|
+
e && (e.onmouseenter = null, e.onmouseleave = null), t && (h0.SET_TELEPORT_TO(t), q2(() => {
|
|
6392
6392
|
const a = t.querySelector(".toolbar");
|
|
6393
6393
|
t.style.position = "relative", a.style.left = `${t.getBoundingClientRect().width - a.clientWidth}px`, a.style.bottom = "0px", a.style.zIndex = "auto", t.onmouseenter = () => {
|
|
6394
6394
|
a.style.zIndex = "auto";
|
|
@@ -6397,38 +6397,40 @@ function A2(t) {
|
|
|
6397
6397
|
};
|
|
6398
6398
|
}));
|
|
6399
6399
|
}
|
|
6400
|
-
function
|
|
6400
|
+
function o1(t) {
|
|
6401
6401
|
if (t === null || typeof t != "object") return t;
|
|
6402
6402
|
if (Array.isArray(t))
|
|
6403
|
-
return t.map((a) =>
|
|
6403
|
+
return t.map((a) => o1(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 =
|
|
6407
|
+
const n = o1(t[a]);
|
|
6408
6408
|
n !== void 0 && (e[a] = n);
|
|
6409
6409
|
}
|
|
6410
6410
|
return e;
|
|
6411
6411
|
}
|
|
6412
|
-
const
|
|
6412
|
+
const d2 = F({
|
|
6413
6413
|
components: []
|
|
6414
6414
|
// 顶级组件列表,支持嵌套 children
|
|
6415
6415
|
});
|
|
6416
|
-
let
|
|
6417
|
-
function
|
|
6418
|
-
|
|
6416
|
+
let R2 = {};
|
|
6417
|
+
function H0(t) {
|
|
6418
|
+
d2.value.components = JSON.parse(JSON.stringify(t));
|
|
6419
6419
|
}
|
|
6420
6420
|
function H5() {
|
|
6421
6421
|
function t({ id: n = "", el: i = null, componentJSON: c = null }) {
|
|
6422
6422
|
var p, _, m;
|
|
6423
|
-
if (!i && !n)
|
|
6423
|
+
if (!i && !n) {
|
|
6424
|
+
console.error("必须提供 id 或 el");
|
|
6424
6425
|
return;
|
|
6425
|
-
|
|
6426
|
+
}
|
|
6427
|
+
R2[n] && (R2[n].destroy(), delete R2[n]);
|
|
6426
6428
|
let u = i || document.querySelector(`[data-id='${n}']`);
|
|
6427
6429
|
if (((p = u == null ? void 0 : u.dataset) == null ? void 0 : p.component) === "ElCard") {
|
|
6428
6430
|
if (u = u.querySelector(".el-card__body"), !u) return;
|
|
6429
6431
|
} else if ((((_ = u == null ? void 0 : u.dataset) == null ? void 0 : _.component) === "GridComponent" || ((m = u == null ? void 0 : u.dataset) == null ? void 0 : m.component) === "DivComponent") && (u = u.querySelector(".element"), !u))
|
|
6430
6432
|
return;
|
|
6431
|
-
|
|
6433
|
+
R2[n] = H.create(u, {
|
|
6432
6434
|
group: { name: "shared" },
|
|
6433
6435
|
animation: 150,
|
|
6434
6436
|
setData: t4,
|
|
@@ -6440,7 +6442,7 @@ function H5() {
|
|
|
6440
6442
|
e(d);
|
|
6441
6443
|
},
|
|
6442
6444
|
onMove: () => {
|
|
6443
|
-
|
|
6445
|
+
h0.SET_TELEPORT_TO(null);
|
|
6444
6446
|
},
|
|
6445
6447
|
onUpdate: a
|
|
6446
6448
|
});
|
|
@@ -6452,7 +6454,7 @@ function H5() {
|
|
|
6452
6454
|
return;
|
|
6453
6455
|
}
|
|
6454
6456
|
const u = n.originalEvent.dataTransfer.getData("itemId");
|
|
6455
|
-
let p =
|
|
6457
|
+
let p = o1(a4.componentMap[i]);
|
|
6456
6458
|
if (!p) return;
|
|
6457
6459
|
let _ = Q1(p, u);
|
|
6458
6460
|
if (_.noUseForm)
|
|
@@ -6468,50 +6470,54 @@ function H5() {
|
|
|
6468
6470
|
// if (name !== 'ElRadioGroup' && name !== 'ElCheckboxGroup') e.preventDefault();
|
|
6469
6471
|
// }
|
|
6470
6472
|
// },
|
|
6471
|
-
id:
|
|
6473
|
+
id: q0(),
|
|
6472
6474
|
children: [_]
|
|
6473
6475
|
};
|
|
6474
6476
|
}
|
|
6475
6477
|
if (c) {
|
|
6476
|
-
const m = c.dataset.id, d =
|
|
6478
|
+
const m = c.dataset.id, d = Q0(d2.value.components, m);
|
|
6477
6479
|
d && d.children.splice(n.newIndex, 0, _);
|
|
6478
6480
|
} else
|
|
6479
|
-
|
|
6480
|
-
(i === "ElCard" || i === "ElTabs" || i === "GridComponent" || i === "DivComponent") &&
|
|
6481
|
+
d2.value.components[n.newIndex] ? d2.value.components.splice(n.newIndex, 0, _) : d2.value.components.push(_);
|
|
6482
|
+
(i === "ElCard" || i === "ElTabs" || i === "GridComponent" || i === "DivComponent") && q2(() => {
|
|
6481
6483
|
var m;
|
|
6482
6484
|
(m = _.children) != null && m.length ? _.children.forEach((d) => t({ id: d.id })) : t({ id: _.id });
|
|
6483
6485
|
});
|
|
6484
6486
|
}
|
|
6485
6487
|
function a(n) {
|
|
6486
6488
|
var w;
|
|
6487
|
-
if (!((w = n.item) == null ? void 0 : w.dataset.id))
|
|
6489
|
+
if (!((w = n.item) == null ? void 0 : w.dataset.id)) {
|
|
6490
|
+
console.error("itemId 为空");
|
|
6488
6491
|
return;
|
|
6489
|
-
|
|
6492
|
+
}
|
|
6493
|
+
const c = n.from.closest("[data-id]"), u = n.to.closest("[data-id]"), p = (c == null ? void 0 : c.dataset.id) || null, _ = (u == null ? void 0 : u.dataset.id) || null, m = p ? Q0(d2.value.components, p) : { children: d2.value.components }, d = _ ? Q0(d2.value.components, _) : { children: d2.value.components };
|
|
6490
6494
|
let [h] = m.children.splice(n.oldDraggableIndex, 1);
|
|
6491
|
-
d.children.splice(n.newIndex, 0, h), h.componentName === "ElCard" || h.componentName === "ElTabs" || h.componentName === "GridComponent" || h.componentName === "DivComponent" ?
|
|
6495
|
+
d.children.splice(n.newIndex, 0, h), d2.value.components, h.componentName === "ElCard" || h.componentName === "ElTabs" || h.componentName === "GridComponent" || h.componentName === "DivComponent" ? q2(() => {
|
|
6492
6496
|
var E;
|
|
6493
|
-
(h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (E = h.children) != null && E.length &&
|
|
6494
|
-
}) :
|
|
6497
|
+
(h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (E = h.children) != null && E.length && g1(h.children, t), B2(x2());
|
|
6498
|
+
}) : B2(x2());
|
|
6495
6499
|
}
|
|
6496
6500
|
return {
|
|
6497
6501
|
initSortable: t,
|
|
6498
|
-
schema:
|
|
6502
|
+
schema: d2
|
|
6499
6503
|
};
|
|
6500
6504
|
}
|
|
6501
6505
|
function E5() {
|
|
6502
|
-
Object.keys(
|
|
6503
|
-
|
|
6506
|
+
Object.keys(R2).forEach((t) => {
|
|
6507
|
+
R2[t] && t !== "" && (R2[t].destroy(), delete R2[t]);
|
|
6504
6508
|
});
|
|
6505
6509
|
}
|
|
6506
|
-
const
|
|
6510
|
+
const P2 = {
|
|
6507
6511
|
componentDataMap: {},
|
|
6508
6512
|
SET_COMPONENT_DATA_MAP(t, e) {
|
|
6509
|
-
!e || !t
|
|
6513
|
+
if (!e || !t)
|
|
6514
|
+
return console.error("组件和ID不能为空");
|
|
6515
|
+
this.componentDataMap[t] = e;
|
|
6510
6516
|
},
|
|
6511
6517
|
CLEAR_COMPONENT_DATA_MAP() {
|
|
6512
6518
|
this.componentDataMap = {};
|
|
6513
6519
|
}
|
|
6514
|
-
},
|
|
6520
|
+
}, A = {
|
|
6515
6521
|
formOptions: L1({
|
|
6516
6522
|
labelWidth: null,
|
|
6517
6523
|
labelPosition: "right",
|
|
@@ -6554,7 +6560,7 @@ const I2 = {
|
|
|
6554
6560
|
function V5(t) {
|
|
6555
6561
|
return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").toLowerCase();
|
|
6556
6562
|
}
|
|
6557
|
-
const y5 = ["data-component", "data-id"],
|
|
6563
|
+
const y5 = ["data-component", "data-id"], B1 = {
|
|
6558
6564
|
__name: "dropItemComponent",
|
|
6559
6565
|
props: {
|
|
6560
6566
|
componentData: {
|
|
@@ -6567,11 +6573,11 @@ const y5 = ["data-component", "data-id"], A1 = {
|
|
|
6567
6573
|
return (e, a) => {
|
|
6568
6574
|
var n, i;
|
|
6569
6575
|
return o(), l("div", {
|
|
6570
|
-
class:
|
|
6576
|
+
class: I0(`drop-item drop-item-${C2(V5)(t.componentData.componentName)}`),
|
|
6571
6577
|
"data-component": t.componentData.componentName,
|
|
6572
6578
|
"data-id": t.componentData.id || ((i = (n = t.componentData.children) == null ? void 0 : n[0]) == null ? void 0 : i.id)
|
|
6573
6579
|
}, [
|
|
6574
|
-
|
|
6580
|
+
i1(e.$slots, "default")
|
|
6575
6581
|
], 10, y5);
|
|
6576
6582
|
};
|
|
6577
6583
|
}
|
|
@@ -6617,23 +6623,23 @@ ${this.styleObjectToCssString(e)}
|
|
|
6617
6623
|
}
|
|
6618
6624
|
},
|
|
6619
6625
|
setup(t) {
|
|
6620
|
-
const e = t, a =
|
|
6626
|
+
const e = t, a = J2(() => {
|
|
6621
6627
|
const n = {
|
|
6622
6628
|
textAlign: e.textAlign,
|
|
6623
6629
|
padding: e.padding
|
|
6624
6630
|
};
|
|
6625
6631
|
return $2.SET_STYLES(e.class.split(" ")[1], n), n;
|
|
6626
6632
|
});
|
|
6627
|
-
return
|
|
6633
|
+
return c1(() => {
|
|
6628
6634
|
$2.DELETE_STYLES(e.class.split(" ")[1]);
|
|
6629
6635
|
}), (n, i) => (o(), l("div", {
|
|
6630
|
-
class:
|
|
6631
|
-
style:
|
|
6636
|
+
class: I0(["element block-element", { "div-border": !t.isPreview }]),
|
|
6637
|
+
style: u1(a.value)
|
|
6632
6638
|
}, [
|
|
6633
|
-
|
|
6639
|
+
i1(n.$slots, "default", {}, void 0, !0)
|
|
6634
6640
|
], 6));
|
|
6635
6641
|
}
|
|
6636
|
-
},
|
|
6642
|
+
}, A5 = /* @__PURE__ */ k2(S5, [["__scopeId", "data-v-b4ec6a05"]]), B5 = {
|
|
6637
6643
|
__name: "gridComponent",
|
|
6638
6644
|
props: {
|
|
6639
6645
|
class: {
|
|
@@ -6653,23 +6659,23 @@ ${this.styleObjectToCssString(e)}
|
|
|
6653
6659
|
}
|
|
6654
6660
|
},
|
|
6655
6661
|
setup(t) {
|
|
6656
|
-
const e = t, a =
|
|
6662
|
+
const e = t, a = J2(() => {
|
|
6657
6663
|
const n = {
|
|
6658
6664
|
"grid-template-columns": `repeat(${e.columns || 1}, calc(100% / ${e.columns || 1} - ${(e.gap ? e.gap : 0) + "px"}))`,
|
|
6659
6665
|
"grid-gap": `${e.gap}px`
|
|
6660
6666
|
};
|
|
6661
6667
|
return $2.SET_STYLES(e.class.split(" ")[1], { ...n, display: "grid" }), n;
|
|
6662
6668
|
});
|
|
6663
|
-
return
|
|
6669
|
+
return c1(() => {
|
|
6664
6670
|
$2.DELETE_STYLES(e.class.split(" ")[1]);
|
|
6665
6671
|
}), (n, i) => (o(), l("div", {
|
|
6666
|
-
class:
|
|
6667
|
-
style:
|
|
6672
|
+
class: I0(["element grid", { "grid-border": !t.isPreview }]),
|
|
6673
|
+
style: u1(a.value)
|
|
6668
6674
|
}, [
|
|
6669
|
-
|
|
6675
|
+
i1(n.$slots, "default", {}, void 0, !0)
|
|
6670
6676
|
], 6));
|
|
6671
6677
|
}
|
|
6672
|
-
}, D5 = /* @__PURE__ */ k2(
|
|
6678
|
+
}, D5 = /* @__PURE__ */ k2(B5, [["__scopeId", "data-v-9c27fd62"]]), D1 = {
|
|
6673
6679
|
icons: {},
|
|
6674
6680
|
SET_ICONS(t, e) {
|
|
6675
6681
|
this.icons[t] = e;
|
|
@@ -6696,38 +6702,38 @@ ${this.styleObjectToCssString(e)}
|
|
|
6696
6702
|
}
|
|
6697
6703
|
},
|
|
6698
6704
|
setup(t) {
|
|
6699
|
-
const e = t, a =
|
|
6705
|
+
const e = t, a = J2(() => {
|
|
6700
6706
|
const n = {};
|
|
6701
6707
|
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
6708
|
});
|
|
6703
|
-
return
|
|
6709
|
+
return p1(() => {
|
|
6704
6710
|
D1.SET_ICONS(e.class, e.icon);
|
|
6705
|
-
}),
|
|
6711
|
+
}), c1(() => {
|
|
6706
6712
|
D1.DELETE_ICONS(e.class), $2.DELETE_STYLES(`${e.class} ::v-deep(.el-icon)`);
|
|
6707
6713
|
}), (n, i) => {
|
|
6708
6714
|
const c = N("el-icon");
|
|
6709
|
-
return o(),
|
|
6710
|
-
style:
|
|
6715
|
+
return o(), Z(c, {
|
|
6716
|
+
style: u1(a.value)
|
|
6711
6717
|
}, {
|
|
6712
6718
|
default: z(() => [
|
|
6713
|
-
(o(),
|
|
6719
|
+
(o(), Z(T1(b5[e.icon])))
|
|
6714
6720
|
]),
|
|
6715
6721
|
_: 1
|
|
6716
6722
|
}, 8, ["style"]);
|
|
6717
6723
|
};
|
|
6718
6724
|
}
|
|
6719
6725
|
}, T5 = ["ElCheckbox", "ElFormItem", "ElRadio", "ElOption", "ElTable", "ElTableColumn", "ElTabPane", "ElCard", "ElButton", "ElDivider", "GridComponent", "DivComponent", "div"], F5 = ["ElFormItem", "ElTabs", "ElTable", "ElDivider", "ElButton", "DivComponent"];
|
|
6720
|
-
function
|
|
6726
|
+
function l1(t, e) {
|
|
6721
6727
|
return t.map((a) => {
|
|
6722
6728
|
var n;
|
|
6723
6729
|
if (a.componentName === "template" && a[e])
|
|
6724
|
-
return
|
|
6730
|
+
return l1(a[e]);
|
|
6725
6731
|
if (a.componentName) {
|
|
6726
6732
|
const i = {
|
|
6727
6733
|
...a.props,
|
|
6728
6734
|
class: ((n = a.props) == null ? void 0 : n.class) || ""
|
|
6729
|
-
}, c = a[e] ?
|
|
6730
|
-
return
|
|
6735
|
+
}, c = a[e] ? l1(a[e]) : void 0;
|
|
6736
|
+
return v2(
|
|
6731
6737
|
L2[a.componentName] || a.componentName,
|
|
6732
6738
|
i,
|
|
6733
6739
|
c || a.label
|
|
@@ -6739,60 +6745,60 @@ function o1(t, e) {
|
|
|
6739
6745
|
const k5 = {
|
|
6740
6746
|
ElUpload: "fileList"
|
|
6741
6747
|
};
|
|
6742
|
-
function
|
|
6743
|
-
const a = t ?
|
|
6748
|
+
function x1({ isPreview: t = !1, callback: e }) {
|
|
6749
|
+
const a = t ? A.previewFormData : A.formData, n = T5;
|
|
6744
6750
|
function i(c) {
|
|
6745
|
-
var
|
|
6746
|
-
c.parentId ||
|
|
6751
|
+
var b, y;
|
|
6752
|
+
c.parentId || P2.SET_COMPONENT_DATA_MAP(c.id, c), c.componentName === "ElFormItem" && c.props.rules && !t && A.SET_FORM_RULES(`field${c.children[0].id}`, c.props.rules);
|
|
6747
6753
|
const u = `field${c.id}`, p = t ? "SET_PREVIEW_FORM_DATA" : "SET_FORM_DATA";
|
|
6748
|
-
n.indexOf(c.componentName) === -1 && !(u in a.value) && (c.componentName === "ElTabs" ?
|
|
6754
|
+
n.indexOf(c.componentName) === -1 && !(u in a.value) && (c.componentName === "ElTabs" ? A[p](u, c.children[0].props.name || "") : A[p](u, c.componentName === "ElCheckboxGroup" || c.componentName === "ElUpload" ? [] : ""));
|
|
6749
6755
|
const _ = { ...c.props }, m = c.on && Object.keys(c.on) ? c.on : {};
|
|
6750
6756
|
if (a && n.indexOf(c.componentName) === -1) {
|
|
6751
|
-
const
|
|
6752
|
-
_[
|
|
6753
|
-
|
|
6757
|
+
const T = k5[c.componentName] || "modelValue";
|
|
6758
|
+
_[T] = a.value[u], _[`onUpdate:${T}`] = (P) => {
|
|
6759
|
+
A[p](u, P);
|
|
6754
6760
|
};
|
|
6755
6761
|
}
|
|
6756
6762
|
let d = {};
|
|
6757
6763
|
if (c.children && Array.isArray(c.children))
|
|
6758
|
-
for (const
|
|
6759
|
-
|
|
6760
|
-
var
|
|
6761
|
-
return (
|
|
6762
|
-
} : (d.default || (d.default = () => []), d.default = /* @__PURE__ */ ((
|
|
6764
|
+
for (const T of c.children)
|
|
6765
|
+
T && (T.componentName === "template" && T.slot ? d[T.slot] = () => {
|
|
6766
|
+
var P;
|
|
6767
|
+
return (P = T.children) == null ? void 0 : P.map(i);
|
|
6768
|
+
} : (d.default || (d.default = () => []), d.default = /* @__PURE__ */ ((P) => () => [...P(), i(T)])(d.default)));
|
|
6763
6769
|
else c.label && (d.default = () => c.label);
|
|
6764
|
-
c.componentName === "ElTabPane" && (_["data-id"] = c.id), _.icon && (_.icon =
|
|
6770
|
+
c.componentName === "ElTabPane" && (_["data-id"] = c.id), _.icon && (_.icon = v2(L5, { icon: _.icon, ..._.iconStyle, class: _.class }, {}));
|
|
6765
6771
|
const h = c.id;
|
|
6766
6772
|
if (c.componentName === "ElCard")
|
|
6767
|
-
return
|
|
6773
|
+
return v2("div", {
|
|
6768
6774
|
key: h,
|
|
6769
6775
|
class: "drop-item drop-item-card",
|
|
6770
6776
|
"data-id": c.id,
|
|
6771
6777
|
"data-component": c.componentName
|
|
6772
|
-
}, [
|
|
6778
|
+
}, [v2(L2[c.componentName], _, {
|
|
6773
6779
|
...d,
|
|
6774
|
-
[c.staticChildren[0].slot]: () =>
|
|
6780
|
+
[c.staticChildren[0].slot]: () => l1(c.staticChildren, "staticChildren")
|
|
6775
6781
|
})]);
|
|
6776
|
-
const w = c.componentName === "ElFormItem" ? (y = (
|
|
6782
|
+
const w = c.componentName === "ElFormItem" ? (y = (b = c.children) == null ? void 0 : b[0]) == null ? void 0 : y.componentName : c.componentName;
|
|
6777
6783
|
if (c.componentName === "GridComponent")
|
|
6778
|
-
return
|
|
6779
|
-
default: () =>
|
|
6784
|
+
return v2(B1, { componentData: { ...c, componentName: w }, key: h }, {
|
|
6785
|
+
default: () => v2(D5, { isPreview: t, ...c.props }, d)
|
|
6780
6786
|
});
|
|
6781
6787
|
let E;
|
|
6782
6788
|
if (c.componentName === "DivComponent")
|
|
6783
6789
|
E = {
|
|
6784
|
-
default: () =>
|
|
6790
|
+
default: () => v2(A5, { isPreview: t, ...c.props }, d)
|
|
6785
6791
|
};
|
|
6786
6792
|
else {
|
|
6787
|
-
const
|
|
6793
|
+
const T = v2(L2[c.componentName] || c.componentName, {
|
|
6788
6794
|
..._,
|
|
6789
6795
|
...m
|
|
6790
6796
|
}, d);
|
|
6791
6797
|
E = {
|
|
6792
|
-
default: () =>
|
|
6793
|
-
}, e && e(c.componentName, u,
|
|
6798
|
+
default: () => T
|
|
6799
|
+
}, e && e(c.componentName, u, T);
|
|
6794
6800
|
}
|
|
6795
|
-
return F5.indexOf(c.componentName) > -1 && !c.parentId ?
|
|
6801
|
+
return F5.indexOf(c.componentName) > -1 && !c.parentId ? v2(B1, {
|
|
6796
6802
|
componentData: { ...c, componentName: w },
|
|
6797
6803
|
key: h
|
|
6798
6804
|
}, E) : E.default();
|
|
@@ -6891,7 +6897,7 @@ const O5 = [
|
|
|
6891
6897
|
ElTableConfigProps: J5,
|
|
6892
6898
|
ElUploadConfigProps: G5,
|
|
6893
6899
|
GridComponentConfigProps: j5
|
|
6894
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6900
|
+
}, Symbol.toStringTag, { value: "Module" })), e0 = {
|
|
6895
6901
|
tableData: [],
|
|
6896
6902
|
tableKeys: [],
|
|
6897
6903
|
SET_TABLE_DATA(t) {
|
|
@@ -6916,10 +6922,10 @@ const O5 = [
|
|
|
6916
6922
|
formRef: Object
|
|
6917
6923
|
},
|
|
6918
6924
|
setup(t, { expose: e }) {
|
|
6919
|
-
e({ reset:
|
|
6925
|
+
e({ reset: q, select: R });
|
|
6920
6926
|
const a = t, n = F(""), i = F(null), c = F(!1), u = F(null), p = F(null), _ = F([]), m = F([]), d = F([]), h = F(!1), w = ["ElTabs"], E = ["ElCard", "ElButton", "ElDivider", "GridComponent", "DivComponent"];
|
|
6921
|
-
let
|
|
6922
|
-
const y =
|
|
6927
|
+
let b = !1;
|
|
6928
|
+
const y = J2(() => u.value ? !u.value.noUseForm : !1), T = J2(() => (v) => {
|
|
6923
6929
|
if (p.value.componentName === "ElUpload") {
|
|
6924
6930
|
if (v.name === "提示内容")
|
|
6925
6931
|
return p.value.children[1].children[0];
|
|
@@ -6936,34 +6942,36 @@ const O5 = [
|
|
|
6936
6942
|
return p.value;
|
|
6937
6943
|
}
|
|
6938
6944
|
return p.value.props;
|
|
6939
|
-
}),
|
|
6940
|
-
function
|
|
6941
|
-
var
|
|
6942
|
-
if (h.value = v.componentName === "ElTable",
|
|
6943
|
-
let
|
|
6944
|
-
w.indexOf(v.componentName) > -1 || h.value ?
|
|
6945
|
+
}), P = J2(() => (v) => p.value.componentName === "ElUpload" && v.key === "text" ? p.value.children[0].props : p.value.props), I = J2(() => (v) => p.value.componentName === "ElUpload" && v.key === "fontSize" ? p.value.children[0].props.iconStyle : p.value.props);
|
|
6946
|
+
function R(v) {
|
|
6947
|
+
var M, k;
|
|
6948
|
+
if (h.value = v.componentName === "ElTable", b = v.componentName === "ElTabs", _.value = [], u.value = v, p.value = E.indexOf(v.componentName) > -1 || h.value ? u.value : u.value.children[0], v.props && (n.value = v.props.label, i.value = v.props["label-width"], c.value = ((M = v.props.rules) == null ? void 0 : M.required) || !1), d.value = [], m.value = [], v.children && v.children[0] && ((k = v.children[0]) == null ? void 0 : k.componentName) !== "ElUpload" && !v.parentId) {
|
|
6949
|
+
let $;
|
|
6950
|
+
w.indexOf(v.componentName) > -1 || h.value ? $ = v.children : v.componentName === "ElFormItem" && ($ = v.children[0].children), m.value = ($ || []).map((O, t2) => (d.value[t2] = O.props.label, O.props));
|
|
6945
6951
|
}
|
|
6946
6952
|
(y.value && v.children[0] || E.indexOf(p.value.componentName) > -1 || h.value) && (_.value = X5[`${p.value.componentName}ConfigProps`]);
|
|
6947
6953
|
}
|
|
6948
|
-
function
|
|
6954
|
+
function q() {
|
|
6949
6955
|
n.value = "", c.value = !1, u.value = null, _.value = [], m.value = [];
|
|
6950
6956
|
}
|
|
6951
|
-
function
|
|
6952
|
-
h && (
|
|
6957
|
+
function a2() {
|
|
6958
|
+
h && (e0.SET_TABLE_DATA(p.value.props.data), e0.SET_TABLE_DATA_KEYS(u.value.children.map((v) => v.props.prop)));
|
|
6953
6959
|
}
|
|
6954
6960
|
function s2(v) {
|
|
6955
6961
|
u.value.props.label = v;
|
|
6956
6962
|
}
|
|
6957
|
-
function
|
|
6963
|
+
function M2(v) {
|
|
6958
6964
|
v ? u.value.props["label-width"] = Number(v) : delete u.value.props["label-width"];
|
|
6959
6965
|
}
|
|
6960
|
-
function
|
|
6961
|
-
var k,
|
|
6962
|
-
if (!((k = u.value) != null && k.props))
|
|
6966
|
+
function A2() {
|
|
6967
|
+
var k, $, O;
|
|
6968
|
+
if (!((k = u.value) != null && k.props)) {
|
|
6969
|
+
console.error(`currentData.value.props ${($ = u.value) == null ? void 0 : $.props}`);
|
|
6963
6970
|
return;
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6971
|
+
}
|
|
6972
|
+
const v = (O = u.value.children) == null ? void 0 : O[0], M = `field${v == null ? void 0 : v.id}`;
|
|
6973
|
+
if (!c.value && A.rules.value[M]) {
|
|
6974
|
+
delete u.value.props.rules, A.DELETE_FORM_DATA(M), A.DELETE_RULES(M), setTimeout(() => {
|
|
6967
6975
|
a.formRef.resetFields();
|
|
6968
6976
|
});
|
|
6969
6977
|
return;
|
|
@@ -6973,213 +6981,225 @@ const O5 = [
|
|
|
6973
6981
|
// message: ()=> useFormCurrentData.value.props.ruleMessage,
|
|
6974
6982
|
message: "该项为必填项!",
|
|
6975
6983
|
trigger: v.children ? "change" : "blur"
|
|
6976
|
-
},
|
|
6984
|
+
}, A.SET_FORM_RULES(M, JSON.parse(JSON.stringify(u.value.props.rules))), setTimeout(() => {
|
|
6977
6985
|
a.formRef.resetFields();
|
|
6978
6986
|
}));
|
|
6979
6987
|
}
|
|
6980
|
-
function
|
|
6981
|
-
var
|
|
6982
|
-
const
|
|
6983
|
-
return
|
|
6988
|
+
function K(v) {
|
|
6989
|
+
var $, O, t2;
|
|
6990
|
+
const M = v.key, k = ((t2 = (O = ($ = u.value) == null ? void 0 : $.children) == null ? void 0 : O[0]) == null ? void 0 : t2.props) || {};
|
|
6991
|
+
return M === "multiple-limit" || M === "collapse-tags" ? k.multiple === !0 : M === "unlink-panels" || M === "range-separator" ? k.type === "daterange" || k.type === "datetimerange" : M === "show-password" ? k.type === "password" : M === "maxlength" || M === "show-word-limit" ? k.type === "textarea" : !0;
|
|
6984
6992
|
}
|
|
6985
|
-
let
|
|
6986
|
-
function
|
|
6987
|
-
if (v === "textarea" ||
|
|
6988
|
-
|
|
6993
|
+
let b2 = "";
|
|
6994
|
+
function w2(v, M, k) {
|
|
6995
|
+
if (v === "textarea" || b2 === "textarea") {
|
|
6996
|
+
b2 = v, B2(x2()), delete u.value.children[0].props["show-password"], delete u.value.children[0].props["show-word-limit"], delete u.value.children[0].props.maxlength;
|
|
6989
6997
|
return;
|
|
6990
6998
|
}
|
|
6991
6999
|
if (v === "text" || v === "password") {
|
|
6992
7000
|
delete u.value.children[0].props["show-password"], delete u.value.children[0].props["show-word-limit"], delete u.value.children[0].props.maxlength;
|
|
6993
7001
|
return;
|
|
6994
7002
|
}
|
|
6995
|
-
|
|
7003
|
+
M === "type" && k === "ElDatePicker" && A.SET_FORM_DATA([`field${u.value.children[0].id}`], null);
|
|
6996
7004
|
}
|
|
6997
|
-
function
|
|
7005
|
+
function B(v, M) {
|
|
6998
7006
|
if (h.value && v === "rows") {
|
|
6999
7007
|
const k = {};
|
|
7000
|
-
p.value.children.forEach((
|
|
7001
|
-
k[
|
|
7008
|
+
p.value.children.forEach((t2) => {
|
|
7009
|
+
k[t2.props.prop] = "";
|
|
7002
7010
|
});
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7011
|
+
const $ = p.value.props.data.length;
|
|
7012
|
+
let O = -1;
|
|
7013
|
+
if ($ < M) {
|
|
7014
|
+
O = M - $ - 1;
|
|
7015
|
+
for (let t2 = 0; t2 <= O; t2++)
|
|
7016
|
+
p.value.props.data.push({ ...k });
|
|
7017
|
+
} else
|
|
7018
|
+
O = M, p.value.props.data.splice(O);
|
|
7019
|
+
a2();
|
|
7006
7020
|
}
|
|
7007
7021
|
}
|
|
7008
|
-
function
|
|
7022
|
+
function x(v, M) {
|
|
7009
7023
|
if (v === "collapse-tags") {
|
|
7010
|
-
typeof u.value.children[0].props["collapse-tags-tooltip"] == "boolean" && !
|
|
7024
|
+
typeof u.value.children[0].props["collapse-tags-tooltip"] == "boolean" && !M ? (delete u.value.children[0].props["collapse-tags-tooltip"], delete u.value.children[0].props["collapse-tags"]) : u.value.children[0].props["collapse-tags-tooltip"] = M;
|
|
7011
7025
|
return;
|
|
7012
7026
|
}
|
|
7013
|
-
v === "border" && p.value.componentName !== "ElTable" && (
|
|
7027
|
+
v === "border" && p.value.componentName !== "ElTable" && (M ? u.value.children[0].children.forEach((k) => {
|
|
7014
7028
|
k.props.border = !0;
|
|
7015
7029
|
}) : u.value.children[0].children.forEach((k) => {
|
|
7016
7030
|
delete k.props.border;
|
|
7017
7031
|
}));
|
|
7018
7032
|
}
|
|
7019
|
-
function
|
|
7020
|
-
h.value ||
|
|
7033
|
+
function Y(v) {
|
|
7034
|
+
h.value || b ? u.value.children.splice(v, 1) : u.value.children[0].children.splice(v, 1), m.value.splice(v, 1), d.value.splice(v, 1), B2(x2());
|
|
7021
7035
|
}
|
|
7022
|
-
function
|
|
7023
|
-
const
|
|
7024
|
-
v.splice(
|
|
7036
|
+
function J(v, M, k) {
|
|
7037
|
+
const $ = v[M];
|
|
7038
|
+
v.splice(M, 1, v[k]), v.splice(k, 1, $);
|
|
7025
7039
|
}
|
|
7026
|
-
function
|
|
7027
|
-
|
|
7040
|
+
function n2(v) {
|
|
7041
|
+
J(m.value, v, v - 1), J(d.value, v, v - 1), J(b || h.value ? u.value.children : u.value.children[0].children, v, v - 1), B2(x2()), a2();
|
|
7028
7042
|
}
|
|
7029
|
-
function
|
|
7030
|
-
|
|
7043
|
+
function o2(v) {
|
|
7044
|
+
J(m.value, v, v + 1), J(d.value, v, v + 1), J(b || h.value ? u.value.children : u.value.children[0].children, v, v + 1), B2(x2()), a2();
|
|
7031
7045
|
}
|
|
7032
|
-
function
|
|
7033
|
-
m.value[
|
|
7046
|
+
function W(v, M) {
|
|
7047
|
+
m.value[M].label = v, B2(x2());
|
|
7034
7048
|
}
|
|
7035
|
-
function
|
|
7036
|
-
m.value[
|
|
7049
|
+
function j2(v, M) {
|
|
7050
|
+
m.value[M].name = v;
|
|
7037
7051
|
}
|
|
7038
|
-
function
|
|
7039
|
-
var
|
|
7040
|
-
if (!((
|
|
7052
|
+
function w0() {
|
|
7053
|
+
var t2, r0, n0, U2, o0, g0, x0;
|
|
7054
|
+
if (!((r0 = (t2 = u.value) == null ? void 0 : t2.children) != null && r0.length)) {
|
|
7055
|
+
console.error("当前组件 length 为 0");
|
|
7041
7056
|
return;
|
|
7042
|
-
|
|
7043
|
-
|
|
7057
|
+
}
|
|
7058
|
+
const v = b || h.value ? u.value.children : (n0 = u.value.children[0]) == null ? void 0 : n0.children;
|
|
7059
|
+
if (!v) {
|
|
7060
|
+
console.error("目标children不存在");
|
|
7044
7061
|
return;
|
|
7045
|
-
|
|
7062
|
+
}
|
|
7063
|
+
const M = (/* @__PURE__ */ new Date()).getTime(), k = {
|
|
7046
7064
|
label: "New Option",
|
|
7047
|
-
...
|
|
7065
|
+
...b ? { name: M } : { [h.value ? "prop" : "value"]: M.toString() }
|
|
7048
7066
|
};
|
|
7049
|
-
(
|
|
7050
|
-
const
|
|
7051
|
-
if (
|
|
7067
|
+
(o0 = (U2 = u.value.children[0]) == null ? void 0 : U2.props) != null && o0.border && (k.border = !0);
|
|
7068
|
+
const $ = b || h.value ? u.value.children[0].componentName : (x0 = (g0 = u.value.children[0]) == null ? void 0 : g0.children[0]) == null ? void 0 : x0.componentName;
|
|
7069
|
+
if (!$) {
|
|
7070
|
+
console.error("无法确定组件类型");
|
|
7052
7071
|
return;
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7072
|
+
}
|
|
7073
|
+
const O = {
|
|
7074
|
+
componentName: $,
|
|
7075
|
+
id: q0(),
|
|
7056
7076
|
parentId: u.value.componentName === "ElFormItem" ? u.value.children[0].id : u.value.id,
|
|
7057
7077
|
props: k,
|
|
7058
|
-
...
|
|
7078
|
+
...b ? { children: [] } : {}
|
|
7059
7079
|
};
|
|
7060
|
-
v.push(L1({ ...
|
|
7080
|
+
v.push(L1({ ...O })), m.value && (d.value[d.value.length] = k.label, m.value.push(k)), b && q2(() => {
|
|
7061
7081
|
var C;
|
|
7062
|
-
(C = a.initSortable) == null || C.call(a, { id:
|
|
7063
|
-
}),
|
|
7082
|
+
(C = a.initSortable) == null || C.call(a, { id: O.id, componentJSON: O });
|
|
7083
|
+
}), B2(x2());
|
|
7064
7084
|
}
|
|
7065
|
-
return (v,
|
|
7066
|
-
const k = N("el-divider"),
|
|
7085
|
+
return (v, M) => {
|
|
7086
|
+
const k = N("el-divider"), $ = N("el-input"), O = N("el-form-item"), t2 = N("el-icon"), r0 = N("el-input-number"), n0 = N("el-switch"), U2 = N("el-option"), o0 = N("el-select"), g0 = N("el-button"), x0 = N("el-form");
|
|
7067
7087
|
return o(), l("div", null, [
|
|
7068
|
-
g(
|
|
7088
|
+
g(x0, { "label-width": "90px" }, {
|
|
7069
7089
|
default: z(() => [
|
|
7070
|
-
|
|
7071
|
-
default: z(() =>
|
|
7090
|
+
D0(g(k, null, {
|
|
7091
|
+
default: z(() => M[4] || (M[4] = [
|
|
7072
7092
|
r("p", null, "表单属性", -1)
|
|
7073
7093
|
])),
|
|
7074
7094
|
_: 1
|
|
7075
7095
|
}, 512), [
|
|
7076
|
-
[
|
|
7096
|
+
[L0, y.value]
|
|
7077
7097
|
]),
|
|
7078
7098
|
y.value ? (o(), l(V2, { key: 0 }, [
|
|
7079
|
-
g(
|
|
7099
|
+
g(O, { label: "标签文本" }, {
|
|
7080
7100
|
default: z(() => [
|
|
7081
|
-
g(
|
|
7101
|
+
g($, {
|
|
7082
7102
|
modelValue: n.value,
|
|
7083
|
-
"onUpdate:modelValue":
|
|
7103
|
+
"onUpdate:modelValue": M[0] || (M[0] = (C) => n.value = C),
|
|
7084
7104
|
onChange: s2
|
|
7085
7105
|
}, null, 8, ["modelValue"])
|
|
7086
7106
|
]),
|
|
7087
7107
|
_: 1
|
|
7088
7108
|
}),
|
|
7089
|
-
g(
|
|
7109
|
+
g(O, null, {
|
|
7090
7110
|
label: z(() => [
|
|
7091
|
-
|
|
7092
|
-
g(
|
|
7111
|
+
M[5] || (M[5] = f2(" 标签宽度 ")),
|
|
7112
|
+
g(t2, {
|
|
7093
7113
|
class: "form-item-tip",
|
|
7094
7114
|
title: "0 或空为 auto"
|
|
7095
7115
|
}, {
|
|
7096
7116
|
default: z(() => [
|
|
7097
|
-
g(
|
|
7117
|
+
g(C2(P0))
|
|
7098
7118
|
]),
|
|
7099
7119
|
_: 1
|
|
7100
7120
|
})
|
|
7101
7121
|
]),
|
|
7102
7122
|
default: z(() => [
|
|
7103
|
-
g(
|
|
7123
|
+
g(r0, {
|
|
7104
7124
|
controls: !1,
|
|
7105
7125
|
modelValue: i.value,
|
|
7106
|
-
"onUpdate:modelValue":
|
|
7126
|
+
"onUpdate:modelValue": M[1] || (M[1] = (C) => i.value = C),
|
|
7107
7127
|
min: 0,
|
|
7108
7128
|
"step-strictly": "",
|
|
7109
7129
|
step: 1,
|
|
7110
|
-
onChange:
|
|
7130
|
+
onChange: M2
|
|
7111
7131
|
}, null, 8, ["modelValue"])
|
|
7112
7132
|
]),
|
|
7113
7133
|
_: 1
|
|
7114
7134
|
}),
|
|
7115
|
-
g(
|
|
7135
|
+
g(O, { label: "是否必填" }, {
|
|
7116
7136
|
default: z(() => [
|
|
7117
|
-
g(
|
|
7137
|
+
g(n0, {
|
|
7118
7138
|
modelValue: c.value,
|
|
7119
|
-
"onUpdate:modelValue":
|
|
7120
|
-
onChange:
|
|
7139
|
+
"onUpdate:modelValue": M[2] || (M[2] = (C) => c.value = C),
|
|
7140
|
+
onChange: A2
|
|
7121
7141
|
}, null, 8, ["modelValue"])
|
|
7122
7142
|
]),
|
|
7123
7143
|
_: 1
|
|
7124
7144
|
}),
|
|
7125
|
-
c.value ? (o(),
|
|
7145
|
+
c.value ? (o(), Z(O, {
|
|
7126
7146
|
key: 0,
|
|
7127
7147
|
label: "必填提示"
|
|
7128
7148
|
}, {
|
|
7129
7149
|
default: z(() => [
|
|
7130
|
-
g(
|
|
7150
|
+
g($, {
|
|
7131
7151
|
modelValue: u.value.props.rules.message,
|
|
7132
|
-
"onUpdate:modelValue":
|
|
7152
|
+
"onUpdate:modelValue": M[3] || (M[3] = (C) => u.value.props.rules.message = C)
|
|
7133
7153
|
}, null, 8, ["modelValue"])
|
|
7134
7154
|
]),
|
|
7135
7155
|
_: 1
|
|
7136
|
-
})) :
|
|
7137
|
-
], 64)) :
|
|
7138
|
-
|
|
7139
|
-
default: z(() =>
|
|
7156
|
+
})) : H2("", !0)
|
|
7157
|
+
], 64)) : H2("", !0),
|
|
7158
|
+
D0(g(k, null, {
|
|
7159
|
+
default: z(() => M[6] || (M[6] = [
|
|
7140
7160
|
r("p", null, "组件属性", -1)
|
|
7141
7161
|
])),
|
|
7142
7162
|
_: 1
|
|
7143
7163
|
}, 512), [
|
|
7144
|
-
[
|
|
7164
|
+
[L0, _.value && _.value.length]
|
|
7145
7165
|
]),
|
|
7146
|
-
(o(!0), l(V2, null,
|
|
7147
|
-
|
|
7166
|
+
(o(!0), l(V2, null, E0(_.value, (C) => (o(), l(V2, null, [
|
|
7167
|
+
K(C) ? (o(), Z(O, {
|
|
7148
7168
|
key: 0,
|
|
7149
7169
|
label: C.name
|
|
7150
7170
|
}, r4({
|
|
7151
7171
|
default: z(() => [
|
|
7152
|
-
C.values ? (o(),
|
|
7172
|
+
C.values ? (o(), Z(o0, {
|
|
7153
7173
|
key: 0,
|
|
7154
7174
|
modelValue: p.value.props[C.key],
|
|
7155
|
-
"onUpdate:modelValue": (
|
|
7175
|
+
"onUpdate:modelValue": (j) => p.value.props[C.key] = j,
|
|
7156
7176
|
placeholder: "请选择",
|
|
7157
|
-
onChange: (
|
|
7177
|
+
onChange: (j) => w2(p.value.props[C.key], C.key, p.value.componentName),
|
|
7158
7178
|
clearable: C.clearable
|
|
7159
7179
|
}, {
|
|
7160
7180
|
default: z(() => [
|
|
7161
|
-
(o(!0), l(V2, null,
|
|
7162
|
-
value:
|
|
7163
|
-
label:
|
|
7181
|
+
(o(!0), l(V2, null, E0(C.values, (j) => (o(), Z(U2, {
|
|
7182
|
+
value: j,
|
|
7183
|
+
label: j
|
|
7164
7184
|
}, null, 8, ["value", "label"]))), 256))
|
|
7165
7185
|
]),
|
|
7166
7186
|
_: 2
|
|
7167
7187
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "clearable"])) : (o(), l(V2, { key: 1 }, [
|
|
7168
|
-
typeof C.value == "boolean" ? (o(),
|
|
7188
|
+
typeof C.value == "boolean" ? (o(), Z(n0, {
|
|
7169
7189
|
key: 0,
|
|
7170
|
-
modelValue:
|
|
7171
|
-
"onUpdate:modelValue": (
|
|
7172
|
-
onChange: (
|
|
7173
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : typeof C.value == "number" ? (o(),
|
|
7190
|
+
modelValue: P.value(C)[C.key],
|
|
7191
|
+
"onUpdate:modelValue": (j) => P.value(C)[C.key] = j,
|
|
7192
|
+
onChange: (j) => x(C.key, p.value.props[C.key])
|
|
7193
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : typeof C.value == "number" ? (o(), Z(r0, {
|
|
7174
7194
|
key: 1,
|
|
7175
|
-
modelValue:
|
|
7176
|
-
"onUpdate:modelValue": (
|
|
7177
|
-
onChange: (
|
|
7195
|
+
modelValue: I.value(C)[C.key],
|
|
7196
|
+
"onUpdate:modelValue": (j) => I.value(C)[C.key] = j,
|
|
7197
|
+
onChange: (j) => B(C.key, I.value(C)[C.key]),
|
|
7178
7198
|
min: 0
|
|
7179
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (o(),
|
|
7199
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (o(), Z($, {
|
|
7180
7200
|
key: 2,
|
|
7181
|
-
modelValue:
|
|
7182
|
-
"onUpdate:modelValue": (
|
|
7201
|
+
modelValue: T.value(C)[C.key],
|
|
7202
|
+
"onUpdate:modelValue": (j) => T.value(C)[C.key] = j,
|
|
7183
7203
|
placeholder: `请输入${C.name}`,
|
|
7184
7204
|
clearable: C.clearable
|
|
7185
7205
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"]))
|
|
@@ -7190,79 +7210,79 @@ const O5 = [
|
|
|
7190
7210
|
C.tip ? {
|
|
7191
7211
|
name: "label",
|
|
7192
7212
|
fn: z(() => [
|
|
7193
|
-
|
|
7194
|
-
g(
|
|
7213
|
+
f2(d0(C.name) + " ", 1),
|
|
7214
|
+
g(t2, {
|
|
7195
7215
|
class: "form-item-tip",
|
|
7196
7216
|
title: C.tip
|
|
7197
7217
|
}, {
|
|
7198
7218
|
default: z(() => [
|
|
7199
|
-
g(
|
|
7219
|
+
g(C2(P0))
|
|
7200
7220
|
]),
|
|
7201
7221
|
_: 2
|
|
7202
7222
|
}, 1032, ["title"])
|
|
7203
7223
|
]),
|
|
7204
7224
|
key: "0"
|
|
7205
7225
|
} : void 0
|
|
7206
|
-
]), 1032, ["label"])) :
|
|
7226
|
+
]), 1032, ["label"])) : H2("", !0)
|
|
7207
7227
|
], 64))), 256)),
|
|
7208
7228
|
m.value.length ? (o(), l("div", K5, [
|
|
7209
7229
|
g(k, null, {
|
|
7210
7230
|
default: z(() => [
|
|
7211
|
-
r("p", null,
|
|
7231
|
+
r("p", null, d0(h.value ? "表头" : "Options"), 1)
|
|
7212
7232
|
]),
|
|
7213
7233
|
_: 1
|
|
7214
7234
|
}),
|
|
7215
7235
|
r("ul", null, [
|
|
7216
|
-
(o(!0), l(V2, null,
|
|
7217
|
-
g(
|
|
7236
|
+
(o(!0), l(V2, null, E0(m.value, (C, j) => (o(), l("li", null, [
|
|
7237
|
+
g(O, { label: "文本" }, {
|
|
7218
7238
|
default: z(() => [
|
|
7219
|
-
g(
|
|
7220
|
-
modelValue: d.value[
|
|
7221
|
-
"onUpdate:modelValue": (c2) => d.value[
|
|
7222
|
-
onChange: (c2) =>
|
|
7239
|
+
g($, {
|
|
7240
|
+
modelValue: d.value[j],
|
|
7241
|
+
"onUpdate:modelValue": (c2) => d.value[j] = c2,
|
|
7242
|
+
onChange: (c2) => W(d.value[j], j)
|
|
7223
7243
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
7224
7244
|
]),
|
|
7225
7245
|
_: 2
|
|
7226
7246
|
}, 1024),
|
|
7227
|
-
typeof C.value < "u" ? (o(),
|
|
7247
|
+
typeof C.value < "u" ? (o(), Z(O, {
|
|
7228
7248
|
key: 0,
|
|
7229
7249
|
label: "值(value)"
|
|
7230
7250
|
}, {
|
|
7231
7251
|
default: z(() => [
|
|
7232
|
-
g(
|
|
7252
|
+
g($, {
|
|
7233
7253
|
modelValue: C.value,
|
|
7234
7254
|
"onUpdate:modelValue": (c2) => C.value = c2
|
|
7235
7255
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7236
7256
|
]),
|
|
7237
7257
|
_: 2
|
|
7238
7258
|
}, 1024)) : h.value ? (o(), l(V2, { key: 1 }, [
|
|
7239
|
-
g(
|
|
7259
|
+
g(O, { label: "值(prop)" }, {
|
|
7240
7260
|
default: z(() => [
|
|
7241
|
-
g(
|
|
7261
|
+
g($, {
|
|
7242
7262
|
modelValue: C.prop,
|
|
7243
7263
|
"onUpdate:modelValue": (c2) => C.prop = c2
|
|
7244
7264
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7245
7265
|
]),
|
|
7246
7266
|
_: 2
|
|
7247
7267
|
}, 1024),
|
|
7248
|
-
g(
|
|
7268
|
+
g(O, { label: "对齐方式" }, {
|
|
7249
7269
|
default: z(() => [
|
|
7250
|
-
g(
|
|
7270
|
+
g(o0, {
|
|
7251
7271
|
modelValue: C.align,
|
|
7252
7272
|
"onUpdate:modelValue": (c2) => C.align = c2,
|
|
7253
7273
|
placeholder: "请选择",
|
|
7254
7274
|
clearable: ""
|
|
7255
7275
|
}, {
|
|
7256
7276
|
default: z(() => [
|
|
7257
|
-
g(
|
|
7277
|
+
g(U2, {
|
|
7258
7278
|
value: "center",
|
|
7259
7279
|
label: "center"
|
|
7260
7280
|
}),
|
|
7261
|
-
g(
|
|
7281
|
+
g(U2, {
|
|
7262
7282
|
value: "right",
|
|
7263
7283
|
label: "right"
|
|
7264
7284
|
}),
|
|
7265
|
-
g(
|
|
7285
|
+
g(U2, {
|
|
7266
7286
|
value: "left",
|
|
7267
7287
|
label: "left"
|
|
7268
7288
|
})
|
|
@@ -7272,73 +7292,73 @@ const O5 = [
|
|
|
7272
7292
|
]),
|
|
7273
7293
|
_: 2
|
|
7274
7294
|
}, 1024)
|
|
7275
|
-
], 64)) : p.value.componentName !== "ElButton" ? (o(),
|
|
7295
|
+
], 64)) : p.value.componentName !== "ElButton" ? (o(), Z(O, {
|
|
7276
7296
|
key: 2,
|
|
7277
7297
|
label: "值(name)"
|
|
7278
7298
|
}, {
|
|
7279
7299
|
default: z(() => [
|
|
7280
|
-
g(
|
|
7300
|
+
g($, {
|
|
7281
7301
|
modelValue: C.name,
|
|
7282
7302
|
"onUpdate:modelValue": (c2) => C.name = c2,
|
|
7283
|
-
onChange: (c2) =>
|
|
7303
|
+
onChange: (c2) => j2(C.name, j)
|
|
7284
7304
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
7285
7305
|
]),
|
|
7286
7306
|
_: 2
|
|
7287
|
-
}, 1024)) :
|
|
7307
|
+
}, 1024)) : H2("", !0),
|
|
7288
7308
|
m.value.length > 1 ? (o(), l("div", Q5, [
|
|
7289
|
-
g(
|
|
7309
|
+
g(t2, {
|
|
7290
7310
|
class: "delete",
|
|
7291
|
-
onClick: (c2) =>
|
|
7311
|
+
onClick: (c2) => Y(j),
|
|
7292
7312
|
title: "删除"
|
|
7293
7313
|
}, {
|
|
7294
7314
|
default: z(() => [
|
|
7295
|
-
g(
|
|
7315
|
+
g(C2(w1))
|
|
7296
7316
|
]),
|
|
7297
7317
|
_: 2
|
|
7298
7318
|
}, 1032, ["onClick"]),
|
|
7299
|
-
|
|
7319
|
+
j !== 0 ? (o(), Z(t2, {
|
|
7300
7320
|
key: 0,
|
|
7301
|
-
onClick: (c2) =>
|
|
7321
|
+
onClick: (c2) => n2(j),
|
|
7302
7322
|
title: "上移"
|
|
7303
7323
|
}, {
|
|
7304
7324
|
default: z(() => [
|
|
7305
|
-
g(
|
|
7325
|
+
g(C2(X1))
|
|
7306
7326
|
]),
|
|
7307
7327
|
_: 2
|
|
7308
|
-
}, 1032, ["onClick"])) :
|
|
7309
|
-
m.value.length - 1 !==
|
|
7328
|
+
}, 1032, ["onClick"])) : H2("", !0),
|
|
7329
|
+
m.value.length - 1 !== j ? (o(), Z(t2, {
|
|
7310
7330
|
key: 1,
|
|
7311
|
-
onClick: (c2) =>
|
|
7331
|
+
onClick: (c2) => o2(j),
|
|
7312
7332
|
title: "下移"
|
|
7313
7333
|
}, {
|
|
7314
7334
|
default: z(() => [
|
|
7315
|
-
g(
|
|
7335
|
+
g(C2(J1))
|
|
7316
7336
|
]),
|
|
7317
7337
|
_: 2
|
|
7318
|
-
}, 1032, ["onClick"])) :
|
|
7319
|
-
])) :
|
|
7338
|
+
}, 1032, ["onClick"])) : H2("", !0)
|
|
7339
|
+
])) : H2("", !0)
|
|
7320
7340
|
]))), 256))
|
|
7321
7341
|
]),
|
|
7322
7342
|
r("div", null, [
|
|
7323
|
-
g(
|
|
7343
|
+
g(g0, {
|
|
7324
7344
|
link: "",
|
|
7325
7345
|
type: "primary",
|
|
7326
|
-
onClick:
|
|
7346
|
+
onClick: w0
|
|
7327
7347
|
}, {
|
|
7328
|
-
default: z(() =>
|
|
7329
|
-
|
|
7348
|
+
default: z(() => M[7] || (M[7] = [
|
|
7349
|
+
f2("增加")
|
|
7330
7350
|
])),
|
|
7331
7351
|
_: 1
|
|
7332
7352
|
})
|
|
7333
7353
|
])
|
|
7334
|
-
])) :
|
|
7354
|
+
])) : H2("", !0)
|
|
7335
7355
|
]),
|
|
7336
7356
|
_: 1
|
|
7337
7357
|
})
|
|
7338
7358
|
]);
|
|
7339
7359
|
};
|
|
7340
7360
|
}
|
|
7341
|
-
}, e9 = /* @__PURE__ */ k2(Z5, [["__scopeId", "data-v-
|
|
7361
|
+
}, e9 = /* @__PURE__ */ k2(Z5, [["__scopeId", "data-v-b84d8444"]]), t9 = {
|
|
7342
7362
|
__name: "setForm",
|
|
7343
7363
|
emits: ["inlineChange"],
|
|
7344
7364
|
setup(t, { expose: e, emit: a }) {
|
|
@@ -7350,35 +7370,35 @@ const O5 = [
|
|
|
7350
7370
|
c.value = h.labelWidth, i.value = h.labelPosition, u.value = h.inline;
|
|
7351
7371
|
}
|
|
7352
7372
|
function _() {
|
|
7353
|
-
|
|
7373
|
+
A.SET_FORM_OPTIONS({ labelPosition: i.value, labelWidth: c.value });
|
|
7354
7374
|
}
|
|
7355
7375
|
function m() {
|
|
7356
|
-
|
|
7376
|
+
A.SET_FORM_OPTIONS({ labelPosition: i.value, labelWidth: c.value });
|
|
7357
7377
|
}
|
|
7358
7378
|
function d(h) {
|
|
7359
7379
|
n("inlineChange", h);
|
|
7360
7380
|
}
|
|
7361
7381
|
return (h, w) => {
|
|
7362
|
-
const E = N("el-icon"),
|
|
7363
|
-
return o(),
|
|
7382
|
+
const E = N("el-icon"), b = N("el-input-number"), y = N("el-form-item"), T = N("el-radio"), P = N("el-radio-group"), I = N("el-switch"), R = N("el-form");
|
|
7383
|
+
return o(), Z(R, { "label-width": "100px" }, {
|
|
7364
7384
|
default: z(() => [
|
|
7365
7385
|
g(y, null, {
|
|
7366
7386
|
label: z(() => [
|
|
7367
|
-
w[3] || (w[3] =
|
|
7387
|
+
w[3] || (w[3] = f2(" 标签宽度 ")),
|
|
7368
7388
|
g(E, {
|
|
7369
7389
|
class: "form-item-tip",
|
|
7370
7390
|
title: "0 或空为 auto"
|
|
7371
7391
|
}, {
|
|
7372
7392
|
default: z(() => [
|
|
7373
|
-
g(
|
|
7393
|
+
g(C2(P0))
|
|
7374
7394
|
]),
|
|
7375
7395
|
_: 1
|
|
7376
7396
|
})
|
|
7377
7397
|
]),
|
|
7378
7398
|
default: z(() => [
|
|
7379
|
-
g(
|
|
7399
|
+
g(b, {
|
|
7380
7400
|
modelValue: c.value,
|
|
7381
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
7401
|
+
"onUpdate:modelValue": w[0] || (w[0] = (q) => c.value = q),
|
|
7382
7402
|
min: 0,
|
|
7383
7403
|
"step-strictly": "",
|
|
7384
7404
|
step: 1,
|
|
@@ -7390,27 +7410,27 @@ const O5 = [
|
|
|
7390
7410
|
}),
|
|
7391
7411
|
g(y, { label: "标签文本对齐" }, {
|
|
7392
7412
|
default: z(() => [
|
|
7393
|
-
g(
|
|
7413
|
+
g(P, {
|
|
7394
7414
|
modelValue: i.value,
|
|
7395
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
7415
|
+
"onUpdate:modelValue": w[1] || (w[1] = (q) => i.value = q),
|
|
7396
7416
|
onChange: _
|
|
7397
7417
|
}, {
|
|
7398
7418
|
default: z(() => [
|
|
7399
|
-
g(
|
|
7419
|
+
g(T, { value: "left" }, {
|
|
7400
7420
|
default: z(() => w[4] || (w[4] = [
|
|
7401
|
-
|
|
7421
|
+
f2("左对齐")
|
|
7402
7422
|
])),
|
|
7403
7423
|
_: 1
|
|
7404
7424
|
}),
|
|
7405
|
-
g(
|
|
7425
|
+
g(T, { value: "right" }, {
|
|
7406
7426
|
default: z(() => w[5] || (w[5] = [
|
|
7407
|
-
|
|
7427
|
+
f2("右对齐")
|
|
7408
7428
|
])),
|
|
7409
7429
|
_: 1
|
|
7410
7430
|
}),
|
|
7411
|
-
g(
|
|
7431
|
+
g(T, { value: "top" }, {
|
|
7412
7432
|
default: z(() => w[6] || (w[6] = [
|
|
7413
|
-
|
|
7433
|
+
f2("上对齐")
|
|
7414
7434
|
])),
|
|
7415
7435
|
_: 1
|
|
7416
7436
|
})
|
|
@@ -7422,9 +7442,9 @@ const O5 = [
|
|
|
7422
7442
|
}),
|
|
7423
7443
|
g(y, { label: "表单内联" }, {
|
|
7424
7444
|
default: z(() => [
|
|
7425
|
-
g(
|
|
7445
|
+
g(I, {
|
|
7426
7446
|
modelValue: u.value,
|
|
7427
|
-
"onUpdate:modelValue": w[2] || (w[2] = (
|
|
7447
|
+
"onUpdate:modelValue": w[2] || (w[2] = (q) => u.value = q),
|
|
7428
7448
|
onChange: d
|
|
7429
7449
|
}, null, 8, ["modelValue"])
|
|
7430
7450
|
]),
|
|
@@ -7441,33 +7461,33 @@ const O5 = [
|
|
|
7441
7461
|
e({
|
|
7442
7462
|
open: p
|
|
7443
7463
|
});
|
|
7444
|
-
const a = F(!1), n = F(null), i =
|
|
7464
|
+
const a = F(!1), n = F(null), i = A.previewFormData, c = A.rules;
|
|
7445
7465
|
let u = null;
|
|
7446
7466
|
function p() {
|
|
7447
|
-
a.value = !0,
|
|
7448
|
-
const h =
|
|
7449
|
-
u =
|
|
7467
|
+
a.value = !0, q2(() => {
|
|
7468
|
+
const h = x1({ isPreview: !0 });
|
|
7469
|
+
u = _1({
|
|
7450
7470
|
render() {
|
|
7451
|
-
const w = JSON.parse(JSON.stringify(
|
|
7452
|
-
return
|
|
7471
|
+
const w = JSON.parse(JSON.stringify(d2.value.components));
|
|
7472
|
+
return v2(
|
|
7453
7473
|
L2.ElForm,
|
|
7454
7474
|
{
|
|
7455
7475
|
key: "preview",
|
|
7456
7476
|
ref: n,
|
|
7457
7477
|
model: i,
|
|
7458
7478
|
rules: c,
|
|
7459
|
-
...
|
|
7479
|
+
...A.formOptions
|
|
7460
7480
|
},
|
|
7461
7481
|
{
|
|
7462
7482
|
default: () => w.map((E) => h(E))
|
|
7463
7483
|
}
|
|
7464
7484
|
);
|
|
7465
7485
|
}
|
|
7466
|
-
}).use(L2, { locale:
|
|
7486
|
+
}).use(L2, { locale: f1 }), u.mount("#preview-box");
|
|
7467
7487
|
});
|
|
7468
7488
|
}
|
|
7469
7489
|
function _() {
|
|
7470
|
-
a.value = !1, u.unmount(),
|
|
7490
|
+
a.value = !1, u.unmount(), A.CLEAR_PREVIEW_FORM_DATA();
|
|
7471
7491
|
}
|
|
7472
7492
|
function m() {
|
|
7473
7493
|
n.value.validate((h, w) => {
|
|
@@ -7478,8 +7498,8 @@ const O5 = [
|
|
|
7478
7498
|
n.value.resetFields();
|
|
7479
7499
|
}
|
|
7480
7500
|
return (h, w) => {
|
|
7481
|
-
const E = N("el-button"),
|
|
7482
|
-
return o(),
|
|
7501
|
+
const E = N("el-button"), b = N("el-dialog");
|
|
7502
|
+
return o(), Z(b, {
|
|
7483
7503
|
modelValue: a.value,
|
|
7484
7504
|
"onUpdate:modelValue": w[0] || (w[0] = (y) => a.value = y),
|
|
7485
7505
|
title: "预览",
|
|
@@ -7492,7 +7512,7 @@ const O5 = [
|
|
|
7492
7512
|
onClick: m
|
|
7493
7513
|
}, {
|
|
7494
7514
|
default: z(() => w[1] || (w[1] = [
|
|
7495
|
-
|
|
7515
|
+
f2("触发校验")
|
|
7496
7516
|
])),
|
|
7497
7517
|
_: 1
|
|
7498
7518
|
}),
|
|
@@ -7501,7 +7521,7 @@ const O5 = [
|
|
|
7501
7521
|
onClick: d
|
|
7502
7522
|
}, {
|
|
7503
7523
|
default: z(() => w[2] || (w[2] = [
|
|
7504
|
-
|
|
7524
|
+
f2("重置")
|
|
7505
7525
|
])),
|
|
7506
7526
|
_: 1
|
|
7507
7527
|
})
|
|
@@ -7526,7 +7546,7 @@ const O5 = [
|
|
|
7526
7546
|
i.value = !i.value, n("onDragDrop", i.value);
|
|
7527
7547
|
}
|
|
7528
7548
|
function p() {
|
|
7529
|
-
c.value.open(
|
|
7549
|
+
c.value.open(A.formOptions.inline, a.json);
|
|
7530
7550
|
}
|
|
7531
7551
|
function _() {
|
|
7532
7552
|
l4.confirm("这将清空画布,是否继续?", "提示", {
|
|
@@ -7534,7 +7554,7 @@ const O5 = [
|
|
|
7534
7554
|
cancelButtonText: "取消",
|
|
7535
7555
|
type: "warning"
|
|
7536
7556
|
}).then(() => {
|
|
7537
|
-
|
|
7557
|
+
P2.CLEAR_COMPONENT_DATA_MAP(), A.INIT_FORM_OPTIONS(), n("clearAll");
|
|
7538
7558
|
}).catch(() => {
|
|
7539
7559
|
});
|
|
7540
7560
|
}
|
|
@@ -7548,7 +7568,7 @@ const O5 = [
|
|
|
7548
7568
|
onClick: u
|
|
7549
7569
|
}, {
|
|
7550
7570
|
default: z(() => [
|
|
7551
|
-
|
|
7571
|
+
f2(d0(i.value ? "开启" : "关闭") + "拖放", 1)
|
|
7552
7572
|
]),
|
|
7553
7573
|
_: 1
|
|
7554
7574
|
}),
|
|
@@ -7558,7 +7578,7 @@ const O5 = [
|
|
|
7558
7578
|
onClick: _
|
|
7559
7579
|
}, {
|
|
7560
7580
|
default: z(() => d[0] || (d[0] = [
|
|
7561
|
-
|
|
7581
|
+
f2("清空画布")
|
|
7562
7582
|
])),
|
|
7563
7583
|
_: 1
|
|
7564
7584
|
}),
|
|
@@ -7568,7 +7588,7 @@ const O5 = [
|
|
|
7568
7588
|
onClick: p
|
|
7569
7589
|
}, {
|
|
7570
7590
|
default: z(() => d[1] || (d[1] = [
|
|
7571
|
-
|
|
7591
|
+
f2("预览")
|
|
7572
7592
|
])),
|
|
7573
7593
|
_: 1
|
|
7574
7594
|
})
|
|
@@ -7709,16 +7729,16 @@ const E9 = { render: H9 }, V9 = () => ({
|
|
|
7709
7729
|
class: "icon",
|
|
7710
7730
|
viewBox: "0 0 1024 1024"
|
|
7711
7731
|
};
|
|
7712
|
-
function
|
|
7732
|
+
function A9(t, e) {
|
|
7713
7733
|
return o(), l("svg", S9, e[0] || (e[0] = [
|
|
7714
7734
|
r("path", { d: "M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0m0 960C262.4 960 64 761.6 64 512S262.4 64 512 64s448 198.4 448 448-198.4 448-448 448" }, null, -1),
|
|
7715
7735
|
r("path", { d: "M691.2 531.2h-160v-256c0-19.2-12.8-32-32-32s-32 12.8-32 32v288c0 19.2 12.8 32 32 32h192c19.2 0 32-12.8 32-32s-12.8-32-32-32" }, null, -1)
|
|
7716
7736
|
]));
|
|
7717
7737
|
}
|
|
7718
|
-
const
|
|
7738
|
+
const B9 = { render: A9 }, D9 = () => ({
|
|
7719
7739
|
componentName: "ElDatePicker",
|
|
7720
7740
|
text: "日期选择器",
|
|
7721
|
-
icon:
|
|
7741
|
+
icon: B9,
|
|
7722
7742
|
props: {
|
|
7723
7743
|
type: "date",
|
|
7724
7744
|
// 日期选择器的类型,可以是 'date', 'daterange', 'datetime', 'datetimerange', 'year', 'month'
|
|
@@ -8094,7 +8114,7 @@ function Vs(t) {
|
|
|
8094
8114
|
}
|
|
8095
8115
|
return a;
|
|
8096
8116
|
}
|
|
8097
|
-
const ys = ["index.js", "imports.js"], p2 = Vs(ys),
|
|
8117
|
+
const ys = ["index.js", "imports.js"], p2 = Vs(ys), s1 = [
|
|
8098
8118
|
{ title: "容器组件" },
|
|
8099
8119
|
p2.elCard(),
|
|
8100
8120
|
p2.elTabsJson(),
|
|
@@ -8116,7 +8136,7 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8116
8136
|
], Ss = {
|
|
8117
8137
|
key: 0,
|
|
8118
8138
|
class: "group-title"
|
|
8119
|
-
},
|
|
8139
|
+
}, As = ["data-component"], Bs = { class: "canvas-content" }, Ds = {
|
|
8120
8140
|
key: 0,
|
|
8121
8141
|
class: "mask"
|
|
8122
8142
|
}, Ls = {
|
|
@@ -8125,27 +8145,27 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8125
8145
|
data: { type: Object }
|
|
8126
8146
|
},
|
|
8127
8147
|
setup(t) {
|
|
8128
|
-
const e =
|
|
8129
|
-
|
|
8130
|
-
|
|
8148
|
+
const e = s1, a = {};
|
|
8149
|
+
s1.forEach((B) => {
|
|
8150
|
+
B.componentName && (a[B.componentName] = B);
|
|
8131
8151
|
}), a4.SET_COMPONENT_MAP(a);
|
|
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(
|
|
8133
|
-
let y = null,
|
|
8134
|
-
const
|
|
8135
|
-
|
|
8136
|
-
w.value =
|
|
8137
|
-
}),
|
|
8138
|
-
|
|
8152
|
+
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(h0.teleportTo.value), E = A.formData, b = A.rules;
|
|
8153
|
+
let y = null, T = !0, P = !1, I = null;
|
|
8154
|
+
const R = t;
|
|
8155
|
+
Z0(h0.teleportTo, (B) => {
|
|
8156
|
+
w.value = B;
|
|
8157
|
+
}), Z0(() => R.data, () => {
|
|
8158
|
+
s2();
|
|
8139
8159
|
});
|
|
8140
8160
|
const {
|
|
8141
|
-
initSortable:
|
|
8142
|
-
schema:
|
|
8161
|
+
initSortable: q,
|
|
8162
|
+
schema: a2
|
|
8143
8163
|
} = H5();
|
|
8144
|
-
|
|
8145
|
-
const
|
|
8146
|
-
|
|
8164
|
+
p1(() => {
|
|
8165
|
+
const B = x1({});
|
|
8166
|
+
I = _1({
|
|
8147
8167
|
mounted() {
|
|
8148
|
-
|
|
8168
|
+
q2(() => {
|
|
8149
8169
|
H.create(c.value, {
|
|
8150
8170
|
group: {
|
|
8151
8171
|
name: "shared",
|
|
@@ -8158,91 +8178,96 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8158
8178
|
animation: 150,
|
|
8159
8179
|
setData: t4,
|
|
8160
8180
|
onStart(x) {
|
|
8161
|
-
|
|
8162
|
-
const
|
|
8163
|
-
x.item.classList.remove("item-component"), x.item.style.width = `${
|
|
8181
|
+
A.formOptions.inline && x.item.classList.add("inline-block");
|
|
8182
|
+
const Y = x.item.getBoundingClientRect().width;
|
|
8183
|
+
x.item.classList.remove("item-component"), x.item.style.width = `${Y}px`;
|
|
8164
8184
|
},
|
|
8165
8185
|
onEnd(x) {
|
|
8166
8186
|
x.originalEvent.dataTransfer.getData("type") && !x.to.classList.contains("component-box") ? x.item.remove() : (x.item.classList.add("item-component"), x.item.style.width = "");
|
|
8167
8187
|
}
|
|
8168
|
-
}),
|
|
8169
|
-
|
|
8188
|
+
}), q2(() => {
|
|
8189
|
+
q({ el: p.value });
|
|
8170
8190
|
});
|
|
8171
8191
|
});
|
|
8172
8192
|
},
|
|
8173
8193
|
updated() {
|
|
8174
|
-
|
|
8194
|
+
P && (g1(a2.value.components, q), P = !1);
|
|
8175
8195
|
},
|
|
8176
8196
|
render() {
|
|
8177
|
-
|
|
8178
|
-
const x =
|
|
8179
|
-
return
|
|
8197
|
+
R.data && R.data.forms && T === !0 && (H0(R.data.forms), T = !1);
|
|
8198
|
+
const x = a2.value.components;
|
|
8199
|
+
return v2(
|
|
8180
8200
|
L2.ElForm,
|
|
8181
8201
|
{
|
|
8182
8202
|
ref: _,
|
|
8183
8203
|
model: E,
|
|
8184
|
-
rules:
|
|
8185
|
-
...
|
|
8204
|
+
rules: b,
|
|
8205
|
+
...A.formOptions
|
|
8186
8206
|
},
|
|
8187
8207
|
{
|
|
8188
8208
|
default: () => [
|
|
8189
|
-
|
|
8209
|
+
v2("div", {
|
|
8190
8210
|
ref: p,
|
|
8191
8211
|
class: "drop-zone-box",
|
|
8192
|
-
onClick:
|
|
8212
|
+
onClick: M2
|
|
8193
8213
|
}, {
|
|
8194
|
-
default: () => x.map((
|
|
8214
|
+
default: () => x.map((Y) => (P2.SET_COMPONENT_DATA_MAP(Y.id, Y), B(Y)))
|
|
8195
8215
|
})
|
|
8196
8216
|
]
|
|
8197
8217
|
}
|
|
8198
8218
|
);
|
|
8199
8219
|
}
|
|
8200
|
-
}).use(L2, { locale:
|
|
8220
|
+
}).use(L2, { locale: f1 }), I.mount("#canvas-drop"), q2(() => {
|
|
8221
|
+
s2();
|
|
8222
|
+
});
|
|
8201
8223
|
}), n4(() => {
|
|
8202
|
-
|
|
8224
|
+
H0([]), A.CLEAR_ALL(), I.unmount();
|
|
8203
8225
|
});
|
|
8204
|
-
function
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8226
|
+
function s2() {
|
|
8227
|
+
E5(), P = !0, A.CLEAR_ALL(), u.value && u.value.init(A.formOptions), R.data && R.data.forms ? (A.SET_FORM_OPTIONS_INIT(R.data.formOptions.inline), A.SET_FORM_OPTIONS(R.data.formOptions), H0(R.data.forms)) : H0([]);
|
|
8228
|
+
}
|
|
8229
|
+
function M2(B) {
|
|
8230
|
+
const x = B.target.closest(".drop-item"), Y = x2();
|
|
8231
|
+
if (Y && Y.classList.remove("selected-component"), !x) {
|
|
8232
|
+
K();
|
|
8208
8233
|
return;
|
|
8209
8234
|
}
|
|
8210
8235
|
z5(x), x.classList.add("selected-component");
|
|
8211
|
-
const
|
|
8212
|
-
y =
|
|
8213
|
-
const
|
|
8214
|
-
if (
|
|
8215
|
-
let
|
|
8216
|
-
|
|
8217
|
-
let
|
|
8218
|
-
|
|
8219
|
-
|
|
8236
|
+
const J = P2.componentDataMap;
|
|
8237
|
+
y = J[x.dataset.id], d.value.select(J[x.dataset.id]), B2(x);
|
|
8238
|
+
const n2 = B.target.className === "cell";
|
|
8239
|
+
if (B.target.parentElement.tagName !== "TH" && B.target.tagName !== "TH" && (B.target.className.indexOf("el-table__cell") > -1 || n2)) {
|
|
8240
|
+
let o2;
|
|
8241
|
+
n2 ? o2 = B.target : o2 = B.target.querySelector(".cell");
|
|
8242
|
+
let W = document.createElement("input");
|
|
8243
|
+
W.style.width = "100%", W.style.height = "100%", W.style.boxSizing = "border-box", W.style.border = "1px solid rgba(0, 0, 0, 0.1)", W.style.outline = "none", W.style.minHeight = "21px", o2.innerText !== "" && (W.value = o2.innerText, e0.SET_TABLE_DATA(y.props.data), e0.SET_TABLE_DATA_KEYS(y.children.map((j2) => j2.props.prop)), e0.SET_TABLE_DATA_ITEM(B.target.closest("tr").rowIndex, B.target.closest("td").cellIndex, "")), o2.appendChild(W), W.focus(), W.onblur = () => {
|
|
8244
|
+
e0.SET_TABLE_DATA_ITEM(B.target.closest("tr").rowIndex, B.target.closest("td").cellIndex, W.value), o2.removeChild(W), W = null;
|
|
8220
8245
|
};
|
|
8221
8246
|
}
|
|
8222
8247
|
}
|
|
8223
|
-
function
|
|
8224
|
-
h.value =
|
|
8248
|
+
function A2(B) {
|
|
8249
|
+
h.value = B;
|
|
8225
8250
|
}
|
|
8226
|
-
function
|
|
8227
|
-
|
|
8228
|
-
const x =
|
|
8229
|
-
x && (x.classList.remove("selected-component"),
|
|
8251
|
+
function K(B = null) {
|
|
8252
|
+
B !== null && A.SET_FORM_OPTIONS_INIT(B);
|
|
8253
|
+
const x = x2();
|
|
8254
|
+
x && (x.classList.remove("selected-component"), h0.SET_TELEPORT_TO(null), d.value.reset());
|
|
8230
8255
|
}
|
|
8231
|
-
function
|
|
8232
|
-
var
|
|
8233
|
-
let x =
|
|
8234
|
-
|
|
8235
|
-
|
|
8256
|
+
function b2(B) {
|
|
8257
|
+
var Y;
|
|
8258
|
+
let x = B;
|
|
8259
|
+
B || (x = y, x2().remove(), e4(a2.value.components, x.id), K()), delete P2.componentDataMap[x.id], (Y = x.children) != null && Y[0] && (delete P2.componentDataMap[x.children[0].id], (x.componentName === "ElFormItem" || x.componentName === "ElTabs") && (A.DELETE_FORM_DATA(x.props.prop || `field${x.id}`), A.DELETE_RULES(x.props.prop))), x.componentName === "ElUpload" && $2.DELETE_STYLES(`${x.children[0].props.class} ::v-deep(.el-icon)`), x.children && x.children.length && x.children.forEach((J) => {
|
|
8260
|
+
b2(J);
|
|
8236
8261
|
});
|
|
8237
8262
|
}
|
|
8238
|
-
function
|
|
8239
|
-
|
|
8263
|
+
function w2() {
|
|
8264
|
+
a2.value.components = [], A.CLEAR_ALL(), P2.componentDataMap = {}, u.value.init(A.formOptions), K();
|
|
8240
8265
|
}
|
|
8241
|
-
return (
|
|
8242
|
-
const
|
|
8243
|
-
return o(),
|
|
8266
|
+
return (B, x) => {
|
|
8267
|
+
const Y = N("el-icon"), J = N("el-tab-pane"), n2 = N("el-tabs"), o2 = N("el-aside"), W = N("el-header"), j2 = N("el-main"), w0 = N("el-container");
|
|
8268
|
+
return o(), Z(w0, { style: { position: "relative" } }, {
|
|
8244
8269
|
default: z(() => [
|
|
8245
|
-
w.value ? (o(),
|
|
8270
|
+
w.value ? (o(), Z(o4, {
|
|
8246
8271
|
key: 0,
|
|
8247
8272
|
to: w.value
|
|
8248
8273
|
}, [
|
|
@@ -8251,29 +8276,29 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8251
8276
|
ref_key: "toolbarRef",
|
|
8252
8277
|
ref: m
|
|
8253
8278
|
}, [
|
|
8254
|
-
g(
|
|
8279
|
+
g(Y, {
|
|
8255
8280
|
class: "delete",
|
|
8256
8281
|
title: "删除",
|
|
8257
|
-
onClick: x[0] || (x[0] = (
|
|
8282
|
+
onClick: x[0] || (x[0] = (v) => b2())
|
|
8258
8283
|
}, {
|
|
8259
8284
|
default: z(() => [
|
|
8260
|
-
g(
|
|
8285
|
+
g(C2(w1))
|
|
8261
8286
|
]),
|
|
8262
8287
|
_: 1
|
|
8263
8288
|
})
|
|
8264
8289
|
], 512)
|
|
8265
|
-
], 8, ["to"])) :
|
|
8266
|
-
g(
|
|
8290
|
+
], 8, ["to"])) : H2("", !0),
|
|
8291
|
+
g(o2, {
|
|
8267
8292
|
width: "300px",
|
|
8268
8293
|
class: "panel"
|
|
8269
8294
|
}, {
|
|
8270
8295
|
default: z(() => [
|
|
8271
|
-
g(
|
|
8296
|
+
g(n2, {
|
|
8272
8297
|
modelValue: n.value,
|
|
8273
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
8298
|
+
"onUpdate:modelValue": x[1] || (x[1] = (v) => n.value = v)
|
|
8274
8299
|
}, {
|
|
8275
8300
|
default: z(() => [
|
|
8276
|
-
g(
|
|
8301
|
+
g(J, {
|
|
8277
8302
|
label: "组件库",
|
|
8278
8303
|
name: "first"
|
|
8279
8304
|
}, {
|
|
@@ -8283,15 +8308,15 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8283
8308
|
ref: c,
|
|
8284
8309
|
class: "component-box"
|
|
8285
8310
|
}, [
|
|
8286
|
-
(o(!0), l(V2, null,
|
|
8287
|
-
|
|
8311
|
+
(o(!0), l(V2, null, E0(C2(e), (v) => (o(), l(V2, null, [
|
|
8312
|
+
v.title ? (o(), l("div", Ss, d0(v.title), 1)) : (o(), l("div", {
|
|
8288
8313
|
key: 1,
|
|
8289
8314
|
class: "item item-component grab",
|
|
8290
|
-
"data-component":
|
|
8315
|
+
"data-component": v.componentName
|
|
8291
8316
|
}, [
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
], 8,
|
|
8317
|
+
v.icon ? (o(), Z(T1(v.icon), { key: 0 })) : H2("", !0),
|
|
8318
|
+
f2(" " + d0(v.text || v.label), 1)
|
|
8319
|
+
], 8, As))
|
|
8295
8320
|
], 64))), 256))
|
|
8296
8321
|
], 512)
|
|
8297
8322
|
]),
|
|
@@ -8303,40 +8328,40 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8303
8328
|
]),
|
|
8304
8329
|
_: 1
|
|
8305
8330
|
}),
|
|
8306
|
-
g(
|
|
8331
|
+
g(j2, { class: "canvas" }, {
|
|
8307
8332
|
default: z(() => [
|
|
8308
|
-
g(
|
|
8333
|
+
g(W, { height: "50px" }, {
|
|
8309
8334
|
default: z(() => [
|
|
8310
8335
|
g(i9, {
|
|
8311
|
-
json:
|
|
8312
|
-
onOnDragDrop:
|
|
8313
|
-
onClearAll:
|
|
8336
|
+
json: C2(a2).components,
|
|
8337
|
+
onOnDragDrop: A2,
|
|
8338
|
+
onClearAll: w2
|
|
8314
8339
|
}, null, 8, ["json"])
|
|
8315
8340
|
]),
|
|
8316
8341
|
_: 1
|
|
8317
8342
|
}),
|
|
8318
|
-
r("div",
|
|
8319
|
-
h.value ? (o(), l("div", Ds)) :
|
|
8343
|
+
r("div", Bs, [
|
|
8344
|
+
h.value ? (o(), l("div", Ds)) : H2("", !0),
|
|
8320
8345
|
x[3] || (x[3] = r("div", { id: "canvas-drop" }, null, -1))
|
|
8321
8346
|
])
|
|
8322
8347
|
]),
|
|
8323
8348
|
_: 1
|
|
8324
8349
|
}),
|
|
8325
|
-
g(
|
|
8350
|
+
g(o2, {
|
|
8326
8351
|
width: "400px",
|
|
8327
8352
|
class: "editor-panel"
|
|
8328
8353
|
}, {
|
|
8329
8354
|
default: z(() => [
|
|
8330
|
-
g(
|
|
8355
|
+
g(n2, {
|
|
8331
8356
|
modelValue: i.value,
|
|
8332
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
8357
|
+
"onUpdate:modelValue": x[2] || (x[2] = (v) => i.value = v)
|
|
8333
8358
|
}, {
|
|
8334
8359
|
default: z(() => [
|
|
8335
|
-
g(
|
|
8360
|
+
g(J, {
|
|
8336
8361
|
label: "组件设置",
|
|
8337
8362
|
name: "first"
|
|
8338
8363
|
}),
|
|
8339
|
-
g(
|
|
8364
|
+
g(J, {
|
|
8340
8365
|
label: "表单设置",
|
|
8341
8366
|
name: "form"
|
|
8342
8367
|
})
|
|
@@ -8344,22 +8369,22 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8344
8369
|
_: 1
|
|
8345
8370
|
}, 8, ["modelValue"]),
|
|
8346
8371
|
r("div", {
|
|
8347
|
-
class:
|
|
8372
|
+
class: I0({ "panel-content": i.value !== "second", "panel-code": i.value === "second" })
|
|
8348
8373
|
}, [
|
|
8349
|
-
|
|
8374
|
+
D0(g(C2(e9), {
|
|
8350
8375
|
ref_key: "setComponentRef",
|
|
8351
8376
|
ref: d,
|
|
8352
8377
|
formRef: _.value,
|
|
8353
|
-
initSortable:
|
|
8378
|
+
initSortable: C2(q)
|
|
8354
8379
|
}, null, 8, ["formRef", "initSortable"]), [
|
|
8355
|
-
[
|
|
8380
|
+
[L0, i.value === "first"]
|
|
8356
8381
|
]),
|
|
8357
|
-
|
|
8382
|
+
D0(g(a9, {
|
|
8358
8383
|
ref_key: "setFormRef",
|
|
8359
8384
|
ref: u,
|
|
8360
|
-
onInlineChange:
|
|
8385
|
+
onInlineChange: K
|
|
8361
8386
|
}, null, 512), [
|
|
8362
|
-
[
|
|
8387
|
+
[L0, i.value === "form"]
|
|
8363
8388
|
])
|
|
8364
8389
|
], 2)
|
|
8365
8390
|
]),
|
|
@@ -8370,7 +8395,7 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8370
8395
|
});
|
|
8371
8396
|
};
|
|
8372
8397
|
}
|
|
8373
|
-
}, Ts = /* @__PURE__ */ k2(Ls, [["__scopeId", "data-v-
|
|
8398
|
+
}, Ts = /* @__PURE__ */ k2(Ls, [["__scopeId", "data-v-a09157ef"]]), Fs = { id: "preview-panel" }, ks = {
|
|
8374
8399
|
__name: "previewPanel",
|
|
8375
8400
|
props: {
|
|
8376
8401
|
data: { type: Object, required: !0, default: () => ({}) },
|
|
@@ -8378,29 +8403,29 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8378
8403
|
callback: { type: Function }
|
|
8379
8404
|
},
|
|
8380
8405
|
setup(t, { expose: e }) {
|
|
8381
|
-
const a = t, n = F(null), i =
|
|
8406
|
+
const a = t, n = F(null), i = A.previewFormData, c = A.rules;
|
|
8382
8407
|
return e({
|
|
8383
8408
|
formRef: n
|
|
8384
|
-
}),
|
|
8409
|
+
}), Z0(() => a.variables, (u) => {
|
|
8385
8410
|
i.value = u;
|
|
8386
|
-
}, { immediate: !0 }),
|
|
8387
|
-
const u =
|
|
8388
|
-
|
|
8411
|
+
}, { immediate: !0 }), p1(() => {
|
|
8412
|
+
const u = x1({ isPreview: !0, callback: a.callback });
|
|
8413
|
+
_1({
|
|
8389
8414
|
render() {
|
|
8390
|
-
return
|
|
8415
|
+
return v2(
|
|
8391
8416
|
L2.ElForm,
|
|
8392
8417
|
{
|
|
8393
8418
|
ref: n,
|
|
8394
8419
|
model: i,
|
|
8395
8420
|
rules: c,
|
|
8396
|
-
...
|
|
8421
|
+
...A.formOptions
|
|
8397
8422
|
},
|
|
8398
8423
|
{
|
|
8399
|
-
default: () => (a.data.forms || []).map((_) => (
|
|
8424
|
+
default: () => (a.data.forms || []).map((_) => (P2.SET_COMPONENT_DATA_MAP(_.id, _), u(_)))
|
|
8400
8425
|
}
|
|
8401
8426
|
);
|
|
8402
8427
|
}
|
|
8403
|
-
}).use(L2, { locale:
|
|
8428
|
+
}).use(L2, { locale: f1 }).mount("#preview-panel");
|
|
8404
8429
|
}), (u, p) => (o(), l("div", Fs));
|
|
8405
8430
|
}
|
|
8406
8431
|
}, Os = /* @__PURE__ */ k2(ks, [["__scopeId", "data-v-ce37e41c"]]), Ns = { class: "low-code-form" }, Ps = {
|
|
@@ -8428,21 +8453,21 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
|
|
|
8428
8453
|
return a.value.formRef;
|
|
8429
8454
|
}
|
|
8430
8455
|
function i() {
|
|
8431
|
-
return
|
|
8456
|
+
return A.formData.value;
|
|
8432
8457
|
}
|
|
8433
8458
|
function c() {
|
|
8434
|
-
const { labelPosition: u, labelWidth: p, inline: _ } =
|
|
8435
|
-
return u !== "right" && u !== "" && (m.labelPosition = u), p !== "" && p !== "auto" && (m.labelWidth = p), _ && (m.inline = _), { formOptions: m, forms:
|
|
8459
|
+
const { labelPosition: u, labelWidth: p, inline: _ } = A.formOptions, m = {};
|
|
8460
|
+
return u !== "right" && u !== "" && (m.labelPosition = u), p !== "" && p !== "auto" && (m.labelWidth = p), _ && (m.inline = _), { formOptions: m, forms: d2.value.components };
|
|
8436
8461
|
}
|
|
8437
8462
|
return (u, p) => (o(), l("div", Ns, [
|
|
8438
|
-
t.isPreview ? (o(),
|
|
8463
|
+
t.isPreview ? (o(), Z(Os, {
|
|
8439
8464
|
key: 1,
|
|
8440
8465
|
ref_key: "previewRef",
|
|
8441
8466
|
ref: a,
|
|
8442
8467
|
data: t.data,
|
|
8443
8468
|
variables: t.variables,
|
|
8444
8469
|
callback: t.callback
|
|
8445
|
-
}, null, 8, ["data", "variables", "callback"])) : (o(),
|
|
8470
|
+
}, null, 8, ["data", "variables", "callback"])) : (o(), Z(Ts, {
|
|
8446
8471
|
key: 0,
|
|
8447
8472
|
data: t.data
|
|
8448
8473
|
}, null, 8, ["data"]))
|