zhytech-ui 1.0.25 → 1.0.26
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/zhytech-ui.es.js +150 -155
- package/dist/zhytech-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/zhytech-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Un = Object.defineProperty;
|
|
2
2
|
var Fn = (t, o, e) => o in t ? Un(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e;
|
|
3
3
|
var Le = (t, o, e) => (Fn(t, typeof o != "symbol" ? o + "" : o, e), e);
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as oe, resolveComponent as D, openBlock as f, createBlock as M, withCtx as g, createElementBlock as E, createCommentVNode as I, createElementVNode as S, useCssVars as Uo, unref as i, toRefs as Me, watch as Q, computed as Ye, Fragment as te, createVNode as p, renderList as he, ref as H, onMounted as Fo, TransitionGroup as Rn, h as Wo, nextTick as lt, inject as le, withModifiers as to, normalizeClass as xe, normalizeStyle as mt, resolveDynamicComponent as Ft, toDisplayString as ne, isRef as _e, createTextVNode as W, getCurrentInstance as Nn, renderSlot as Rt, provide as bt, mergeModels as Yo, useModel as Bn, reactive as Hn, withKeys as qn } from "vue";
|
|
5
5
|
import { ElMessage as jn, dayjs as Xo } from "element-plus";
|
|
6
6
|
const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
@@ -989,7 +989,7 @@ const Wn = {
|
|
|
989
989
|
Di
|
|
990
990
|
], Ei = {
|
|
991
991
|
name: "zhy-icon"
|
|
992
|
-
}, ye = /* @__PURE__ */
|
|
992
|
+
}, ye = /* @__PURE__ */ oe({
|
|
993
993
|
...Ei,
|
|
994
994
|
props: {
|
|
995
995
|
name: {
|
|
@@ -1027,7 +1027,7 @@ const Si = {
|
|
|
1027
1027
|
}, ki = { class: "condition-type" }, Mi = /* @__PURE__ */ S("span", { class: "line" }, null, -1), zi = {
|
|
1028
1028
|
key: 0,
|
|
1029
1029
|
class: "sub-filter-items-wrap"
|
|
1030
|
-
}, $i = { class: "sub-filter-items" }, Ii = { class: "filter-item-wrap" }, Ai = { class: "filter-value" }, Li = /* @__PURE__ */
|
|
1030
|
+
}, $i = { class: "sub-filter-items" }, Ii = { class: "filter-item-wrap" }, Ai = { class: "filter-value" }, Li = /* @__PURE__ */ oe({
|
|
1031
1031
|
__name: "filterItem",
|
|
1032
1032
|
props: {
|
|
1033
1033
|
/**
|
|
@@ -1407,7 +1407,7 @@ function ze() {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
const Ti = { class: "dynamic-filter no-rem" }, Oi = {
|
|
1409
1409
|
name: "zhy-dynamic-filter"
|
|
1410
|
-
}, At = /* @__PURE__ */
|
|
1410
|
+
}, At = /* @__PURE__ */ oe({
|
|
1411
1411
|
...Oi,
|
|
1412
1412
|
props: {
|
|
1413
1413
|
/**
|
|
@@ -2056,7 +2056,7 @@ var Qi = ["evt"], Te = function(o, e) {
|
|
|
2056
2056
|
Bt.pluginEvent.bind(B)(o, e, Xe({
|
|
2057
2057
|
dragEl: A,
|
|
2058
2058
|
parentEl: ve,
|
|
2059
|
-
ghostEl:
|
|
2059
|
+
ghostEl: G,
|
|
2060
2060
|
rootEl: ce,
|
|
2061
2061
|
nextEl: ct,
|
|
2062
2062
|
lastDownEl: no,
|
|
@@ -2099,7 +2099,7 @@ function Ae(t) {
|
|
|
2099
2099
|
newDraggableIndex: tt
|
|
2100
2100
|
}, t));
|
|
2101
2101
|
}
|
|
2102
|
-
var A, ve,
|
|
2102
|
+
var A, ve, G, ce, ct, no, me, ot, yt, Fe, Ot, tt, Yt, Ve, _t = !1, co = !1, po = [], rt, qe, xo, Do, on, nn, zt, vt, Pt, Ut = !1, Xt = !1, lo, Ee, Vo = [], Io = !1, mo = [], bo = typeof document < "u", Jt = fn, ln = Nt || Ze ? "cssFloat" : "float", e2 = bo && !hn && !fn && "draggable" in document.createElement("div"), wn = function() {
|
|
2103
2103
|
if (bo) {
|
|
2104
2104
|
if (Ze)
|
|
2105
2105
|
return !1;
|
|
@@ -2151,9 +2151,9 @@ var A, ve, W, ce, ct, no, me, ot, yt, Fe, Ot, tt, Yt, Ve, _t = !1, co = !1, po =
|
|
|
2151
2151
|
name: l
|
|
2152
2152
|
}), n.name = l.name, n.checkPull = e(l.pull, !0), n.checkPut = e(l.put), n.revertClone = l.revertClone, o.group = n;
|
|
2153
2153
|
}, Dn = function() {
|
|
2154
|
-
!wn &&
|
|
2154
|
+
!wn && G && U(G, "display", "none");
|
|
2155
2155
|
}, Vn = function() {
|
|
2156
|
-
!wn &&
|
|
2156
|
+
!wn && G && U(G, "display", "");
|
|
2157
2157
|
};
|
|
2158
2158
|
bo && !hn && document.addEventListener("click", function(t) {
|
|
2159
2159
|
if (co)
|
|
@@ -2369,13 +2369,13 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2369
2369
|
},
|
|
2370
2370
|
_onTouchMove: function(o) {
|
|
2371
2371
|
if (rt) {
|
|
2372
|
-
var e = this.options, n = e.fallbackTolerance, l = e.fallbackOffset, a = o.touches ? o.touches[0] : o, s =
|
|
2372
|
+
var e = this.options, n = e.fallbackTolerance, l = e.fallbackOffset, a = o.touches ? o.touches[0] : o, s = G && pt(G, !0), r = G && s && s.a, u = G && s && s.d, d = Jt && Ee && en(Ee), m = (a.clientX - rt.clientX + l.x) / (r || 1) + (d ? d[0] - Vo[0] : 0) / (r || 1), h = (a.clientY - rt.clientY + l.y) / (u || 1) + (d ? d[1] - Vo[1] : 0) / (u || 1);
|
|
2373
2373
|
if (!B.active && !_t) {
|
|
2374
2374
|
if (n && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < n)
|
|
2375
2375
|
return;
|
|
2376
2376
|
this._onDragStart(o, !0);
|
|
2377
2377
|
}
|
|
2378
|
-
if (
|
|
2378
|
+
if (G) {
|
|
2379
2379
|
s ? (s.e += m - (xo || 0), s.f += h - (Do || 0)) : s = {
|
|
2380
2380
|
a: 1,
|
|
2381
2381
|
b: 0,
|
|
@@ -2385,20 +2385,20 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2385
2385
|
f: h
|
|
2386
2386
|
};
|
|
2387
2387
|
var v = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
2388
|
-
U(
|
|
2388
|
+
U(G, "webkitTransform", v), U(G, "mozTransform", v), U(G, "msTransform", v), U(G, "transform", v), xo = m, Do = h, qe = a;
|
|
2389
2389
|
}
|
|
2390
2390
|
o.cancelable && o.preventDefault();
|
|
2391
2391
|
}
|
|
2392
2392
|
},
|
|
2393
2393
|
_appendGhost: function() {
|
|
2394
|
-
if (!
|
|
2394
|
+
if (!G) {
|
|
2395
2395
|
var o = this.options.fallbackOnBody ? document.body : ce, e = ue(A, !0, Jt, !0, o), n = this.options;
|
|
2396
2396
|
if (Jt) {
|
|
2397
2397
|
for (Ee = o; U(Ee, "position") === "static" && U(Ee, "transform") === "none" && Ee !== document; )
|
|
2398
2398
|
Ee = Ee.parentNode;
|
|
2399
2399
|
Ee !== document.body && Ee !== document.documentElement ? (Ee === document && (Ee = We()), e.top += Ee.scrollTop, e.left += Ee.scrollLeft) : Ee = We(), Vo = en(Ee);
|
|
2400
2400
|
}
|
|
2401
|
-
|
|
2401
|
+
G = A.cloneNode(!0), fe(G, n.ghostClass, !1), fe(G, n.fallbackClass, !0), fe(G, n.dragClass, !0), U(G, "transition", ""), U(G, "transform", ""), U(G, "box-sizing", "border-box"), U(G, "margin", 0), U(G, "top", e.top), U(G, "left", e.left), U(G, "width", e.width), U(G, "height", e.height), U(G, "opacity", "0.8"), U(G, "position", Jt ? "absolute" : "fixed"), U(G, "zIndex", "100000"), U(G, "pointerEvents", "none"), B.ghost = G, o.appendChild(G), U(G, "transform-origin", on / parseInt(G.style.width) * 100 + "% " + nn / parseInt(G.style.height) * 100 + "%");
|
|
2402
2402
|
}
|
|
2403
2403
|
},
|
|
2404
2404
|
_onDragStart: function(o, e) {
|
|
@@ -2489,7 +2489,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2489
2489
|
var Z = ge(A);
|
|
2490
2490
|
do
|
|
2491
2491
|
Z -= $, T = ve.children[Z];
|
|
2492
|
-
while (T && (U(T, "display") === "none" || T ===
|
|
2492
|
+
while (T && (U(T, "display") === "none" || T === G));
|
|
2493
2493
|
}
|
|
2494
2494
|
if ($ === 0 || T === n)
|
|
2495
2495
|
return z(!1);
|
|
@@ -2521,7 +2521,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2521
2521
|
this._nulling();
|
|
2522
2522
|
return;
|
|
2523
2523
|
}
|
|
2524
|
-
_t = !1, Xt = !1, Ut = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ao(this.cloneId), Ao(this._dragStartId), this.nativeDraggable && (K(document, "drop", this), K(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Lt && U(document.body, "user-select", ""), U(A, "transform", ""), o && (zt && (o.cancelable && o.preventDefault(), !n.dropBubble && o.stopPropagation()),
|
|
2524
|
+
_t = !1, Xt = !1, Ut = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ao(this.cloneId), Ao(this._dragStartId), this.nativeDraggable && (K(document, "drop", this), K(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Lt && U(document.body, "user-select", ""), U(A, "transform", ""), o && (zt && (o.cancelable && o.preventDefault(), !n.dropBubble && o.stopPropagation()), G && G.parentNode && G.parentNode.removeChild(G), (ce === ve || Ve && Ve.lastPutMode !== "clone") && me && me.parentNode && me.parentNode.removeChild(me), A && (this.nativeDraggable && K(A, "dragend", this), Eo(A), A.style["will-change"] = "", zt && !_t && fe(A, Ve ? Ve.options.ghostClass : this.options.ghostClass, !1), fe(A, this.options.chosenClass, !1), Ae({
|
|
2525
2525
|
sortable: this,
|
|
2526
2526
|
name: "unchoose",
|
|
2527
2527
|
toEl: ve,
|
|
@@ -2568,7 +2568,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
2568
2568
|
}), this.save()))), this._nulling();
|
|
2569
2569
|
},
|
|
2570
2570
|
_nulling: function() {
|
|
2571
|
-
Te("nulling", this), ce = A = ve =
|
|
2571
|
+
Te("nulling", this), ce = A = ve = G = ct = me = no = ot = rt = qe = zt = Fe = tt = yt = Ot = vt = Pt = Ve = Yt = B.dragged = B.ghost = B.clone = B.active = null, mo.forEach(function(o) {
|
|
2572
2572
|
o.checked = !0;
|
|
2573
2573
|
}), mo.length = xo = Do = 0;
|
|
2574
2574
|
},
|
|
@@ -2684,11 +2684,11 @@ function i2() {
|
|
|
2684
2684
|
Io = !1;
|
|
2685
2685
|
}
|
|
2686
2686
|
function a2(t, o, e) {
|
|
2687
|
-
var n = ue(Ct(e.el, 0, e.options, !0)), l = yn(e.el, e.options,
|
|
2687
|
+
var n = ue(Ct(e.el, 0, e.options, !0)), l = yn(e.el, e.options, G), a = 10;
|
|
2688
2688
|
return o ? t.clientX < l.left - a || t.clientY < n.top && t.clientX < n.right : t.clientY < l.top - a || t.clientY < n.bottom && t.clientX < n.left;
|
|
2689
2689
|
}
|
|
2690
2690
|
function s2(t, o, e) {
|
|
2691
|
-
var n = ue(Ro(e.el, e.options.draggable)), l = yn(e.el, e.options,
|
|
2691
|
+
var n = ue(Ro(e.el, e.options.draggable)), l = yn(e.el, e.options, G), a = 10;
|
|
2692
2692
|
return o ? t.clientX > l.right + a || t.clientY > n.bottom && t.clientX > n.left : t.clientY > l.bottom + a || t.clientX > n.right && t.clientY > n.top;
|
|
2693
2693
|
}
|
|
2694
2694
|
function r2(t, o, e, n, l, a, s, r) {
|
|
@@ -2932,7 +2932,7 @@ function f2(t, o) {
|
|
|
2932
2932
|
var e = t.parentNode, n = o.parentNode, l, a;
|
|
2933
2933
|
!e || !n || e.isEqualNode(o) || n.isEqualNode(t) || (l = ge(t), a = ge(o), e.isEqualNode(n) && l < a && a++, e.insertBefore(o, e.children[l]), n.insertBefore(t, n.children[a]));
|
|
2934
2934
|
}
|
|
2935
|
-
var
|
|
2935
|
+
var j = [], Ue = [], Vt, je, Et = !1, Oe = !1, gt = !1, se, St, Zt;
|
|
2936
2936
|
function h2() {
|
|
2937
2937
|
function t(o) {
|
|
2938
2938
|
for (var e in this)
|
|
@@ -2943,7 +2943,7 @@ function h2() {
|
|
|
2943
2943
|
avoidImplicitDeselect: !1,
|
|
2944
2944
|
setData: function(l, a) {
|
|
2945
2945
|
var s = "";
|
|
2946
|
-
|
|
2946
|
+
j.length && je === o ? j.forEach(function(r, u) {
|
|
2947
2947
|
s += (u ? ", " : "") + r.textContent;
|
|
2948
2948
|
}) : s = a.textContent, l.setData("Text", s);
|
|
2949
2949
|
}
|
|
@@ -2957,19 +2957,19 @@ function h2() {
|
|
|
2957
2957
|
se = n;
|
|
2958
2958
|
},
|
|
2959
2959
|
delayEnded: function() {
|
|
2960
|
-
this.isMultiDrag = ~
|
|
2960
|
+
this.isMultiDrag = ~j.indexOf(se);
|
|
2961
2961
|
},
|
|
2962
2962
|
setupClone: function(e) {
|
|
2963
2963
|
var n = e.sortable, l = e.cancel;
|
|
2964
2964
|
if (this.isMultiDrag) {
|
|
2965
|
-
for (var a = 0; a <
|
|
2966
|
-
Ue.push(No(
|
|
2965
|
+
for (var a = 0; a < j.length; a++)
|
|
2966
|
+
Ue.push(No(j[a])), Ue[a].sortableIndex = j[a].sortableIndex, Ue[a].draggable = !1, Ue[a].style["will-change"] = "", fe(Ue[a], this.options.selectedClass, !1), j[a] === se && fe(Ue[a], this.options.chosenClass, !1);
|
|
2967
2967
|
n._hideClone(), l();
|
|
2968
2968
|
}
|
|
2969
2969
|
},
|
|
2970
2970
|
clone: function(e) {
|
|
2971
2971
|
var n = e.sortable, l = e.rootEl, a = e.dispatchSortableEvent, s = e.cancel;
|
|
2972
|
-
this.isMultiDrag && (this.options.removeCloneOnHide ||
|
|
2972
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || j.length && je === n && (sn(!0, l), a("clone"), s()));
|
|
2973
2973
|
},
|
|
2974
2974
|
showClone: function(e) {
|
|
2975
2975
|
var n = e.cloneNowShown, l = e.rootEl, a = e.cancel;
|
|
@@ -2986,9 +2986,9 @@ function h2() {
|
|
|
2986
2986
|
}), l(), Zt = !0, a());
|
|
2987
2987
|
},
|
|
2988
2988
|
dragStartGlobal: function(e) {
|
|
2989
|
-
e.sortable, !this.isMultiDrag && je && je.multiDrag._deselectMultiDrag(),
|
|
2989
|
+
e.sortable, !this.isMultiDrag && je && je.multiDrag._deselectMultiDrag(), j.forEach(function(n) {
|
|
2990
2990
|
n.sortableIndex = ge(n);
|
|
2991
|
-
}),
|
|
2991
|
+
}), j = j.sort(function(n, l) {
|
|
2992
2992
|
return n.sortableIndex - l.sortableIndex;
|
|
2993
2993
|
}), gt = !0;
|
|
2994
2994
|
},
|
|
@@ -2996,16 +2996,16 @@ function h2() {
|
|
|
2996
2996
|
var n = this, l = e.sortable;
|
|
2997
2997
|
if (this.isMultiDrag) {
|
|
2998
2998
|
if (this.options.sort && (l.captureAnimationState(), this.options.animation)) {
|
|
2999
|
-
|
|
2999
|
+
j.forEach(function(s) {
|
|
3000
3000
|
s !== se && U(s, "position", "absolute");
|
|
3001
3001
|
});
|
|
3002
3002
|
var a = ue(se, !1, !0, !0);
|
|
3003
|
-
|
|
3003
|
+
j.forEach(function(s) {
|
|
3004
3004
|
s !== se && tn(s, a);
|
|
3005
3005
|
}), Oe = !0, Et = !0;
|
|
3006
3006
|
}
|
|
3007
3007
|
l.animateAll(function() {
|
|
3008
|
-
Oe = !1, Et = !1, n.options.animation &&
|
|
3008
|
+
Oe = !1, Et = !1, n.options.animation && j.forEach(function(s) {
|
|
3009
3009
|
wo(s);
|
|
3010
3010
|
}), n.options.sort && Qt();
|
|
3011
3011
|
});
|
|
@@ -3013,11 +3013,11 @@ function h2() {
|
|
|
3013
3013
|
},
|
|
3014
3014
|
dragOver: function(e) {
|
|
3015
3015
|
var n = e.target, l = e.completed, a = e.cancel;
|
|
3016
|
-
Oe && ~
|
|
3016
|
+
Oe && ~j.indexOf(n) && (l(!1), a());
|
|
3017
3017
|
},
|
|
3018
3018
|
revert: function(e) {
|
|
3019
3019
|
var n = e.fromSortable, l = e.rootEl, a = e.sortable, s = e.dragRect;
|
|
3020
|
-
|
|
3020
|
+
j.length > 1 && (j.forEach(function(r) {
|
|
3021
3021
|
a.addAnimationState({
|
|
3022
3022
|
target: r,
|
|
3023
3023
|
rect: Oe ? ue(r) : s
|
|
@@ -3027,14 +3027,14 @@ function h2() {
|
|
|
3027
3027
|
dragOverCompleted: function(e) {
|
|
3028
3028
|
var n = e.sortable, l = e.isOwner, a = e.insertion, s = e.activeSortable, r = e.parentEl, u = e.putSortable, d = this.options;
|
|
3029
3029
|
if (a) {
|
|
3030
|
-
if (l && s._hideClone(), Et = !1, d.animation &&
|
|
3030
|
+
if (l && s._hideClone(), Et = !1, d.animation && j.length > 1 && (Oe || !l && !s.options.sort && !u)) {
|
|
3031
3031
|
var m = ue(se, !1, !0, !0);
|
|
3032
|
-
|
|
3032
|
+
j.forEach(function(v) {
|
|
3033
3033
|
v !== se && (tn(v, m), r.appendChild(v));
|
|
3034
3034
|
}), Oe = !0;
|
|
3035
3035
|
}
|
|
3036
3036
|
if (!l)
|
|
3037
|
-
if (Oe || Qt(),
|
|
3037
|
+
if (Oe || Qt(), j.length > 1) {
|
|
3038
3038
|
var h = Zt;
|
|
3039
3039
|
s._showClone(n), s.options.animation && !Zt && h && Ue.forEach(function(v) {
|
|
3040
3040
|
s.addAnimationState({
|
|
@@ -3048,7 +3048,7 @@ function h2() {
|
|
|
3048
3048
|
},
|
|
3049
3049
|
dragOverAnimationCapture: function(e) {
|
|
3050
3050
|
var n = e.dragRect, l = e.isOwner, a = e.activeSortable;
|
|
3051
|
-
if (
|
|
3051
|
+
if (j.forEach(function(r) {
|
|
3052
3052
|
r.thisAnimationDuration = null;
|
|
3053
3053
|
}), a.options.animation && !l && a.multiDrag.isMultiDrag) {
|
|
3054
3054
|
St = He({}, n);
|
|
@@ -3064,8 +3064,8 @@ function h2() {
|
|
|
3064
3064
|
if (n) {
|
|
3065
3065
|
var h = this.options, v = a.children;
|
|
3066
3066
|
if (!gt)
|
|
3067
|
-
if (h.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), fe(se, h.selectedClass, !~
|
|
3068
|
-
|
|
3067
|
+
if (h.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), fe(se, h.selectedClass, !~j.indexOf(se)), ~j.indexOf(se))
|
|
3068
|
+
j.splice(j.indexOf(se), 1), Vt = null, Mt({
|
|
3069
3069
|
sortable: s,
|
|
3070
3070
|
rootEl: l,
|
|
3071
3071
|
name: "deselect",
|
|
@@ -3073,7 +3073,7 @@ function h2() {
|
|
|
3073
3073
|
originalEvent: n
|
|
3074
3074
|
});
|
|
3075
3075
|
else {
|
|
3076
|
-
if (
|
|
3076
|
+
if (j.push(se), Mt({
|
|
3077
3077
|
sortable: s,
|
|
3078
3078
|
rootEl: l,
|
|
3079
3079
|
name: "select",
|
|
@@ -3084,7 +3084,7 @@ function h2() {
|
|
|
3084
3084
|
if (~c && ~b && c !== b) {
|
|
3085
3085
|
var _, y;
|
|
3086
3086
|
for (b > c ? (y = c, _ = b) : (y = b, _ = c + 1); y < _; y++)
|
|
3087
|
-
~
|
|
3087
|
+
~j.indexOf(v[y]) || (fe(v[y], h.selectedClass, !0), j.push(v[y]), Mt({
|
|
3088
3088
|
sortable: s,
|
|
3089
3089
|
rootEl: l,
|
|
3090
3090
|
name: "select",
|
|
@@ -3097,9 +3097,9 @@ function h2() {
|
|
|
3097
3097
|
je = m;
|
|
3098
3098
|
}
|
|
3099
3099
|
if (gt && this.isMultiDrag) {
|
|
3100
|
-
if (Oe = !1, (a[ke].options.sort || a !== l) &&
|
|
3100
|
+
if (Oe = !1, (a[ke].options.sort || a !== l) && j.length > 1) {
|
|
3101
3101
|
var C = ue(se), z = ge(se, ":not(." + this.options.selectedClass + ")");
|
|
3102
|
-
if (!Et && h.animation && (se.thisAnimationDuration = null), m.captureAnimationState(), !Et && (h.animation && (se.fromRect = C,
|
|
3102
|
+
if (!Et && h.animation && (se.thisAnimationDuration = null), m.captureAnimationState(), !Et && (h.animation && (se.fromRect = C, j.forEach(function(V) {
|
|
3103
3103
|
if (V.thisAnimationDuration = null, V !== se) {
|
|
3104
3104
|
var w = Oe ? ue(V) : C;
|
|
3105
3105
|
V.fromRect = w, m.addAnimationState({
|
|
@@ -3107,18 +3107,18 @@ function h2() {
|
|
|
3107
3107
|
rect: w
|
|
3108
3108
|
});
|
|
3109
3109
|
}
|
|
3110
|
-
})), Qt(),
|
|
3110
|
+
})), Qt(), j.forEach(function(V) {
|
|
3111
3111
|
v[z] ? a.insertBefore(V, v[z]) : a.appendChild(V), z++;
|
|
3112
3112
|
}), u === ge(se))) {
|
|
3113
3113
|
var x = !1;
|
|
3114
|
-
|
|
3114
|
+
j.forEach(function(V) {
|
|
3115
3115
|
if (V.sortableIndex !== ge(V)) {
|
|
3116
3116
|
x = !0;
|
|
3117
3117
|
return;
|
|
3118
3118
|
}
|
|
3119
3119
|
}), x && (r("update"), r("sort"));
|
|
3120
3120
|
}
|
|
3121
|
-
|
|
3121
|
+
j.forEach(function(V) {
|
|
3122
3122
|
wo(V);
|
|
3123
3123
|
}), m.animateAll();
|
|
3124
3124
|
}
|
|
@@ -3137,9 +3137,9 @@ function h2() {
|
|
|
3137
3137
|
},
|
|
3138
3138
|
_deselectMultiDrag: function(e) {
|
|
3139
3139
|
if (!(typeof gt < "u" && gt) && je === this.sortable && !(e && Be(e.target, this.options.draggable, this.sortable.el, !1)) && !(e && e.button !== 0))
|
|
3140
|
-
for (;
|
|
3141
|
-
var n =
|
|
3142
|
-
fe(n, this.options.selectedClass, !1),
|
|
3140
|
+
for (; j.length; ) {
|
|
3141
|
+
var n = j[0];
|
|
3142
|
+
fe(n, this.options.selectedClass, !1), j.shift(), Mt({
|
|
3143
3143
|
sortable: this.sortable,
|
|
3144
3144
|
rootEl: this.sortable.el,
|
|
3145
3145
|
name: "deselect",
|
|
@@ -3164,20 +3164,20 @@ function h2() {
|
|
|
3164
3164
|
*/
|
|
3165
3165
|
select: function(e) {
|
|
3166
3166
|
var n = e.parentNode[ke];
|
|
3167
|
-
!n || !n.options.multiDrag || ~
|
|
3167
|
+
!n || !n.options.multiDrag || ~j.indexOf(e) || (je && je !== n && (je.multiDrag._deselectMultiDrag(), je = n), fe(e, n.options.selectedClass, !0), j.push(e));
|
|
3168
3168
|
},
|
|
3169
3169
|
/**
|
|
3170
3170
|
* Deselects the provided multi-drag item
|
|
3171
3171
|
* @param {HTMLElement} el The element to be deselected
|
|
3172
3172
|
*/
|
|
3173
3173
|
deselect: function(e) {
|
|
3174
|
-
var n = e.parentNode[ke], l =
|
|
3175
|
-
!n || !n.options.multiDrag || !~l || (fe(e, n.options.selectedClass, !1),
|
|
3174
|
+
var n = e.parentNode[ke], l = j.indexOf(e);
|
|
3175
|
+
!n || !n.options.multiDrag || !~l || (fe(e, n.options.selectedClass, !1), j.splice(l, 1));
|
|
3176
3176
|
}
|
|
3177
3177
|
},
|
|
3178
3178
|
eventProperties: function() {
|
|
3179
3179
|
var e = this, n = [], l = [];
|
|
3180
|
-
return
|
|
3180
|
+
return j.forEach(function(a) {
|
|
3181
3181
|
n.push({
|
|
3182
3182
|
multiDragElement: a,
|
|
3183
3183
|
index: a.sortableIndex
|
|
@@ -3188,7 +3188,7 @@ function h2() {
|
|
|
3188
3188
|
index: s
|
|
3189
3189
|
});
|
|
3190
3190
|
}), {
|
|
3191
|
-
items: Ri(
|
|
3191
|
+
items: Ri(j),
|
|
3192
3192
|
clones: [].concat(Ue),
|
|
3193
3193
|
oldIndicies: n,
|
|
3194
3194
|
newIndicies: l
|
|
@@ -3202,7 +3202,7 @@ function h2() {
|
|
|
3202
3202
|
});
|
|
3203
3203
|
}
|
|
3204
3204
|
function v2(t, o) {
|
|
3205
|
-
|
|
3205
|
+
j.forEach(function(e, n) {
|
|
3206
3206
|
var l = o.children[e.sortableIndex + (t ? Number(n) : 0)];
|
|
3207
3207
|
l ? o.insertBefore(e, l) : o.appendChild(e);
|
|
3208
3208
|
});
|
|
@@ -3214,7 +3214,7 @@ function sn(t, o) {
|
|
|
3214
3214
|
});
|
|
3215
3215
|
}
|
|
3216
3216
|
function Qt() {
|
|
3217
|
-
|
|
3217
|
+
j.forEach(function(t) {
|
|
3218
3218
|
t !== se && t.parentNode && t.parentNode.removeChild(t);
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
@@ -3550,7 +3550,7 @@ const P2 = {
|
|
|
3550
3550
|
required: !1,
|
|
3551
3551
|
default: null
|
|
3552
3552
|
}
|
|
3553
|
-
}, U2 = ["update:modelValue", "change", ...[...Oo.manageAndEmit, ...Oo.emit].map((t) => t.toLowerCase())], Ht =
|
|
3553
|
+
}, U2 = ["update:modelValue", "change", ...[...Oo.manageAndEmit, ...Oo.emit].map((t) => t.toLowerCase())], Ht = oe({
|
|
3554
3554
|
name: "draggable",
|
|
3555
3555
|
inheritAttrs: !1,
|
|
3556
3556
|
props: P2,
|
|
@@ -3873,7 +3873,7 @@ let Je = class {
|
|
|
3873
3873
|
this.type = o, this.name = e, this.isEdit = n, this.isInput = l, this.id = F2(), this.props = {}, this.rules = [{ message: "必填项", required: !1 }], this.excludeFilterConditions = [], this.filterConditionProps = void 0, this.isLayout = !1, this.children = void 0;
|
|
3874
3874
|
}
|
|
3875
3875
|
};
|
|
3876
|
-
const R2 = /* @__PURE__ */
|
|
3876
|
+
const R2 = /* @__PURE__ */ oe({
|
|
3877
3877
|
__name: "propsEditor",
|
|
3878
3878
|
props: {},
|
|
3879
3879
|
setup(t) {
|
|
@@ -3994,7 +3994,7 @@ const R2 = /* @__PURE__ */ ne({
|
|
|
3994
3994
|
const N2 = ["onClick"], B2 = {
|
|
3995
3995
|
key: 2,
|
|
3996
3996
|
class: "operates"
|
|
3997
|
-
}, Tn = /* @__PURE__ */
|
|
3997
|
+
}, Tn = /* @__PURE__ */ oe({
|
|
3998
3998
|
__name: "componentDesigner",
|
|
3999
3999
|
props: {
|
|
4000
4000
|
/**
|
|
@@ -4080,7 +4080,7 @@ const N2 = ["onClick"], B2 = {
|
|
|
4080
4080
|
"font-size": x.props.fontSize + "px",
|
|
4081
4081
|
"font-weight": x.props.isBold ? "bold" : "normal"
|
|
4082
4082
|
})
|
|
4083
|
-
},
|
|
4083
|
+
}, ne(x.props.showLabel ? x.props.label + ":" : ""), 5)
|
|
4084
4084
|
]),
|
|
4085
4085
|
default: g(() => [
|
|
4086
4086
|
(f(), M(Ft(e[x.type].renderer), {
|
|
@@ -4114,7 +4114,7 @@ const N2 = ["onClick"], B2 = {
|
|
|
4114
4114
|
};
|
|
4115
4115
|
}
|
|
4116
4116
|
});
|
|
4117
|
-
const H2 = /* @__PURE__ */
|
|
4117
|
+
const H2 = /* @__PURE__ */ oe({
|
|
4118
4118
|
__name: "renderer",
|
|
4119
4119
|
props: {
|
|
4120
4120
|
/**
|
|
@@ -4170,7 +4170,7 @@ const H2 = /* @__PURE__ */ ne({
|
|
|
4170
4170
|
"font-size": i(n).props.fontSize + "px",
|
|
4171
4171
|
"font-weight": i(n).props.isBold ? "bold" : "normal"
|
|
4172
4172
|
})
|
|
4173
|
-
},
|
|
4173
|
+
}, ne(i(n).props.label), 5)) : I("", !0),
|
|
4174
4174
|
t.isDesigner ? (f(), M(Tn, {
|
|
4175
4175
|
key: 1,
|
|
4176
4176
|
components: i(n).children,
|
|
@@ -4205,7 +4205,7 @@ let q2 = class extends Je {
|
|
|
4205
4205
|
}, this.isLayout = !0, this.children = [];
|
|
4206
4206
|
}
|
|
4207
4207
|
};
|
|
4208
|
-
const j2 = { component: q2, renderer: H2, propEditor: R2 }, G2 = /* @__PURE__ */
|
|
4208
|
+
const j2 = { component: q2, renderer: H2, propEditor: R2 }, G2 = /* @__PURE__ */ oe({
|
|
4209
4209
|
__name: "propsEditor",
|
|
4210
4210
|
props: {},
|
|
4211
4211
|
setup(t) {
|
|
@@ -4289,7 +4289,7 @@ const j2 = { component: q2, renderer: H2, propEditor: R2 }, G2 = /* @__PURE__ */
|
|
|
4289
4289
|
const W2 = { class: "upload-component" }, Y2 = /* @__PURE__ */ S("span", { class: "button-text" }, "上传文件", -1), X2 = {
|
|
4290
4290
|
key: 0,
|
|
4291
4291
|
class: "description"
|
|
4292
|
-
}, J2 = /* @__PURE__ */
|
|
4292
|
+
}, J2 = /* @__PURE__ */ oe({
|
|
4293
4293
|
__name: "renderer",
|
|
4294
4294
|
props: {
|
|
4295
4295
|
/**
|
|
@@ -4409,7 +4409,7 @@ const W2 = { class: "upload-component" }, Y2 = /* @__PURE__ */ S("span", { class
|
|
|
4409
4409
|
name: "tip",
|
|
4410
4410
|
color: "#ff0000"
|
|
4411
4411
|
}),
|
|
4412
|
-
|
|
4412
|
+
W(" " + ne(`${i(l).props.formType === "1" ? "项目说明" : "答案解析"}:${i(s).description || "无"}`), 1)
|
|
4413
4413
|
])) : I("", !0)
|
|
4414
4414
|
]);
|
|
4415
4415
|
};
|
|
@@ -4435,7 +4435,7 @@ let K2 = class extends Je {
|
|
|
4435
4435
|
};
|
|
4436
4436
|
}
|
|
4437
4437
|
};
|
|
4438
|
-
const Z2 = { component: K2, renderer: J2, propEditor: G2 }, Q2 = /* @__PURE__ */
|
|
4438
|
+
const Z2 = { component: K2, renderer: J2, propEditor: G2 }, Q2 = /* @__PURE__ */ oe({
|
|
4439
4439
|
__name: "propsEditor",
|
|
4440
4440
|
props: {},
|
|
4441
4441
|
setup(t) {
|
|
@@ -4519,7 +4519,7 @@ const Z2 = { component: K2, renderer: J2, propEditor: G2 }, Q2 = /* @__PURE__ */
|
|
|
4519
4519
|
const ea = { class: "upload-image-component" }, ta = { class: "el-upload-list__item-actions" }, oa = { class: "el-upload-list__item-preview" }, na = { class: "el-upload-list__item-delete" }, la = {
|
|
4520
4520
|
key: 0,
|
|
4521
4521
|
class: "description"
|
|
4522
|
-
}, ia = /* @__PURE__ */
|
|
4522
|
+
}, ia = /* @__PURE__ */ oe({
|
|
4523
4523
|
__name: "renderer",
|
|
4524
4524
|
props: {
|
|
4525
4525
|
/**
|
|
@@ -4652,7 +4652,7 @@ const ea = { class: "upload-image-component" }, ta = { class: "el-upload-list__i
|
|
|
4652
4652
|
name: "tip",
|
|
4653
4653
|
color: "#ff0000"
|
|
4654
4654
|
}),
|
|
4655
|
-
|
|
4655
|
+
W(" " + ne(`${i(l).props.formType === "1" ? "项目说明" : "答案解析"}:${i(s).description || "无"}`), 1)
|
|
4656
4656
|
])) : I("", !0)
|
|
4657
4657
|
]);
|
|
4658
4658
|
};
|
|
@@ -4760,7 +4760,7 @@ function fa(t, o, e, n = {}) {
|
|
|
4760
4760
|
}
|
|
4761
4761
|
});
|
|
4762
4762
|
}
|
|
4763
|
-
const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { style: { float: "right", color: "#8492a6" } }, _a = /* @__PURE__ */
|
|
4763
|
+
const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { style: { float: "right", color: "#8492a6" } }, _a = /* @__PURE__ */ oe({
|
|
4764
4764
|
__name: "propsEditor",
|
|
4765
4765
|
setup(t) {
|
|
4766
4766
|
let o = le("formDesignerData"), e = o.selectComponent.props;
|
|
@@ -4813,19 +4813,19 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
|
|
|
4813
4813
|
default: g(() => [
|
|
4814
4814
|
p(b, { value: "radio" }, {
|
|
4815
4815
|
default: g(() => [
|
|
4816
|
-
|
|
4816
|
+
W("单选")
|
|
4817
4817
|
]),
|
|
4818
4818
|
_: 1
|
|
4819
4819
|
}),
|
|
4820
4820
|
p(b, { value: "checkbox" }, {
|
|
4821
4821
|
default: g(() => [
|
|
4822
|
-
|
|
4822
|
+
W("多选")
|
|
4823
4823
|
]),
|
|
4824
4824
|
_: 1
|
|
4825
4825
|
}),
|
|
4826
4826
|
p(b, { value: "selector" }, {
|
|
4827
4827
|
default: g(() => [
|
|
4828
|
-
|
|
4828
|
+
W("下拉框")
|
|
4829
4829
|
]),
|
|
4830
4830
|
_: 1
|
|
4831
4831
|
})
|
|
@@ -4892,7 +4892,7 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
|
|
|
4892
4892
|
], 64)) : I("", !0),
|
|
4893
4893
|
p(x, null, {
|
|
4894
4894
|
default: g(() => [
|
|
4895
|
-
|
|
4895
|
+
W("选项列表")
|
|
4896
4896
|
]),
|
|
4897
4897
|
_: 1
|
|
4898
4898
|
}),
|
|
@@ -4940,8 +4940,8 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
|
|
|
4940
4940
|
label: P.label,
|
|
4941
4941
|
suffix: P.suffix
|
|
4942
4942
|
}, () => [
|
|
4943
|
-
S("span", va,
|
|
4944
|
-
S("span", ga,
|
|
4943
|
+
S("span", va, ne(P.label), 1),
|
|
4944
|
+
S("span", ga, ne(P.suffix), 1)
|
|
4945
4945
|
])
|
|
4946
4946
|
]),
|
|
4947
4947
|
_: 2
|
|
@@ -4980,7 +4980,7 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
|
|
|
4980
4980
|
color: "#08c979",
|
|
4981
4981
|
size: "16px"
|
|
4982
4982
|
}),
|
|
4983
|
-
|
|
4983
|
+
W(" 添加 ")
|
|
4984
4984
|
]),
|
|
4985
4985
|
_: 1
|
|
4986
4986
|
})
|
|
@@ -4996,7 +4996,7 @@ const ha = { class: "option-wrap" }, va = { style: { float: "left" } }, ga = { s
|
|
|
4996
4996
|
const ba = { class: "employee-component" }, ya = {
|
|
4997
4997
|
key: 3,
|
|
4998
4998
|
class: "description"
|
|
4999
|
-
}, wa = /* @__PURE__ */
|
|
4999
|
+
}, wa = /* @__PURE__ */ oe({
|
|
5000
5000
|
__name: "renderer",
|
|
5001
5001
|
props: {
|
|
5002
5002
|
/**
|
|
@@ -5080,7 +5080,7 @@ const ba = { class: "employee-component" }, ya = {
|
|
|
5080
5080
|
onClick: (w) => d(w, x.value)
|
|
5081
5081
|
}, {
|
|
5082
5082
|
default: g(() => [
|
|
5083
|
-
|
|
5083
|
+
W(ne(x.label), 1)
|
|
5084
5084
|
]),
|
|
5085
5085
|
_: 2
|
|
5086
5086
|
}, 1032, ["value", "onClick"]))), 128))
|
|
@@ -5102,7 +5102,7 @@ const ba = { class: "employee-component" }, ya = {
|
|
|
5102
5102
|
key: V
|
|
5103
5103
|
}, {
|
|
5104
5104
|
default: g(() => [
|
|
5105
|
-
|
|
5105
|
+
W(ne(x.label), 1)
|
|
5106
5106
|
]),
|
|
5107
5107
|
_: 2
|
|
5108
5108
|
}, 1032, ["value"]))), 128))
|
|
@@ -5131,7 +5131,7 @@ const ba = { class: "employee-component" }, ya = {
|
|
|
5131
5131
|
name: "tip",
|
|
5132
5132
|
color: "#ff0000"
|
|
5133
5133
|
}),
|
|
5134
|
-
|
|
5134
|
+
W(" " + ne(`${i(n).props.formType === "1" ? "项目说明" : "答案解析"}:${i(a).description || "无"}`), 1)
|
|
5135
5135
|
])) : I("", !0)
|
|
5136
5136
|
]);
|
|
5137
5137
|
};
|
|
@@ -5209,7 +5209,7 @@ function qo() {
|
|
|
5209
5209
|
}
|
|
5210
5210
|
};
|
|
5211
5211
|
}
|
|
5212
|
-
const Da = /* @__PURE__ */
|
|
5212
|
+
const Da = /* @__PURE__ */ oe({
|
|
5213
5213
|
__name: "propsEditor",
|
|
5214
5214
|
setup(t) {
|
|
5215
5215
|
let o = le("formDesignerData"), e = o.selectComponent.props;
|
|
@@ -5335,7 +5335,7 @@ const Da = /* @__PURE__ */ ne({
|
|
|
5335
5335
|
});
|
|
5336
5336
|
};
|
|
5337
5337
|
}
|
|
5338
|
-
}), Va = { class: "auto-complete" }, Ea = { key: 0 }, Sa = /* @__PURE__ */
|
|
5338
|
+
}), Va = { class: "auto-complete" }, Ea = { key: 0 }, Sa = /* @__PURE__ */ oe({
|
|
5339
5339
|
__name: "autoComplete",
|
|
5340
5340
|
props: {
|
|
5341
5341
|
modelValue: {
|
|
@@ -5389,7 +5389,7 @@ const Da = /* @__PURE__ */ ne({
|
|
|
5389
5389
|
return (c, b) => {
|
|
5390
5390
|
const _ = D("el-autocomplete");
|
|
5391
5391
|
return f(), E("div", Va, [
|
|
5392
|
-
t.label ? (f(), E("span", Ea,
|
|
5392
|
+
t.label ? (f(), E("span", Ea, ne(t.label), 1)) : I("", !0),
|
|
5393
5393
|
p(_, {
|
|
5394
5394
|
ref_key: "autoCompleteRef",
|
|
5395
5395
|
ref: e,
|
|
@@ -5403,7 +5403,7 @@ const Da = /* @__PURE__ */ ne({
|
|
|
5403
5403
|
onBlur: u
|
|
5404
5404
|
}, {
|
|
5405
5405
|
default: g(({ item: y }) => [
|
|
5406
|
-
S("span", null,
|
|
5406
|
+
S("span", null, ne(y.value), 1)
|
|
5407
5407
|
]),
|
|
5408
5408
|
_: 1
|
|
5409
5409
|
}, 8, ["modelValue", "select-when-unmatched", "disabled"])
|
|
@@ -5414,7 +5414,7 @@ const Da = /* @__PURE__ */ ne({
|
|
|
5414
5414
|
const ka = { class: "grade-component" }, Ma = {
|
|
5415
5415
|
key: 3,
|
|
5416
5416
|
class: "description"
|
|
5417
|
-
}, za = /* @__PURE__ */
|
|
5417
|
+
}, za = /* @__PURE__ */ oe({
|
|
5418
5418
|
__name: "renderer",
|
|
5419
5419
|
props: {
|
|
5420
5420
|
/**
|
|
@@ -5502,7 +5502,7 @@ const ka = { class: "grade-component" }, Ma = {
|
|
|
5502
5502
|
onClick: (x) => m(x, C.value)
|
|
5503
5503
|
}, {
|
|
5504
5504
|
default: g(() => [
|
|
5505
|
-
|
|
5505
|
+
W(ne(C.label), 1)
|
|
5506
5506
|
]),
|
|
5507
5507
|
_: 2
|
|
5508
5508
|
}, 1032, ["value", "onClick"]))), 128))
|
|
@@ -5550,7 +5550,7 @@ const ka = { class: "grade-component" }, Ma = {
|
|
|
5550
5550
|
name: "tip",
|
|
5551
5551
|
color: "#ff0000"
|
|
5552
5552
|
}),
|
|
5553
|
-
|
|
5553
|
+
W(" " + ne(`${i(l).props.formType === "1" ? "项目说明" : "答案解析"}:${i(s).description || "无"}`), 1)
|
|
5554
5554
|
])) : I("", !0)
|
|
5555
5555
|
]);
|
|
5556
5556
|
};
|
|
@@ -5622,7 +5622,7 @@ let Aa = class extends Je {
|
|
|
5622
5622
|
return ["INCLUDES", "EXCLUDE", "RANGE", "EMPTY"];
|
|
5623
5623
|
}
|
|
5624
5624
|
};
|
|
5625
|
-
const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
|
|
5625
|
+
const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */ oe({
|
|
5626
5626
|
__name: "propsEditor",
|
|
5627
5627
|
setup(t) {
|
|
5628
5628
|
let o = le("formDesignerData"), e = o.selectComponent.props;
|
|
@@ -5655,19 +5655,19 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
|
|
|
5655
5655
|
default: g(() => [
|
|
5656
5656
|
p(s, { value: "radio" }, {
|
|
5657
5657
|
default: g(() => [
|
|
5658
|
-
|
|
5658
|
+
W("单选")
|
|
5659
5659
|
]),
|
|
5660
5660
|
_: 1
|
|
5661
5661
|
}),
|
|
5662
5662
|
p(s, { value: "checkbox" }, {
|
|
5663
5663
|
default: g(() => [
|
|
5664
|
-
|
|
5664
|
+
W("多选")
|
|
5665
5665
|
]),
|
|
5666
5666
|
_: 1
|
|
5667
5667
|
}),
|
|
5668
5668
|
p(s, { value: "selector" }, {
|
|
5669
5669
|
default: g(() => [
|
|
5670
|
-
|
|
5670
|
+
W("下拉框")
|
|
5671
5671
|
]),
|
|
5672
5672
|
_: 1
|
|
5673
5673
|
})
|
|
@@ -5740,7 +5740,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
|
|
|
5740
5740
|
}), Oa = { class: "post-component" }, Pa = {
|
|
5741
5741
|
key: 3,
|
|
5742
5742
|
class: "description"
|
|
5743
|
-
}, Ua = /* @__PURE__ */
|
|
5743
|
+
}, Ua = /* @__PURE__ */ oe({
|
|
5744
5744
|
__name: "renderer",
|
|
5745
5745
|
props: {
|
|
5746
5746
|
/**
|
|
@@ -5824,7 +5824,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
|
|
|
5824
5824
|
onClick: (w) => d(w, x.value)
|
|
5825
5825
|
}, {
|
|
5826
5826
|
default: g(() => [
|
|
5827
|
-
|
|
5827
|
+
W(ne(x.label), 1)
|
|
5828
5828
|
]),
|
|
5829
5829
|
_: 2
|
|
5830
5830
|
}, 1032, ["value", "onClick"]))), 128))
|
|
@@ -5846,7 +5846,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
|
|
|
5846
5846
|
key: V
|
|
5847
5847
|
}, {
|
|
5848
5848
|
default: g(() => [
|
|
5849
|
-
|
|
5849
|
+
W(ne(x.label), 1)
|
|
5850
5850
|
]),
|
|
5851
5851
|
_: 2
|
|
5852
5852
|
}, 1032, ["value"]))), 128))
|
|
@@ -5875,7 +5875,7 @@ const La = { component: Aa, renderer: za, propEditor: Da }, Ta = /* @__PURE__ */
|
|
|
5875
5875
|
name: "tip",
|
|
5876
5876
|
color: "#ff0000"
|
|
5877
5877
|
}),
|
|
5878
|
-
|
|
5878
|
+
W(" " + ne(`${i(n).props.formType === "1" ? "项目说明" : "答案解析"}:${i(a).description || "无"}`), 1)
|
|
5879
5879
|
])) : I("", !0)
|
|
5880
5880
|
]);
|
|
5881
5881
|
};
|
|
@@ -5934,7 +5934,7 @@ let Fa = class extends Je {
|
|
|
5934
5934
|
const Ra = { component: Fa, renderer: Ua, propEditor: Ta }, Na = { class: "dictionary-binder" }, Ba = { class: "item" }, Ha = { class: "label" }, qa = {
|
|
5935
5935
|
key: 0,
|
|
5936
5936
|
class: "item-souce-type"
|
|
5937
|
-
}, jo = /* @__PURE__ */
|
|
5937
|
+
}, jo = /* @__PURE__ */ oe({
|
|
5938
5938
|
__name: "dictionaryBinder",
|
|
5939
5939
|
props: {
|
|
5940
5940
|
modelValue: {
|
|
@@ -6010,8 +6010,8 @@ const Ra = { component: Fa, renderer: Ua, propEditor: Ta }, Na = { class: "dicti
|
|
|
6010
6010
|
}, {
|
|
6011
6011
|
default: g(({ item: x }) => [
|
|
6012
6012
|
S("div", Ba, [
|
|
6013
|
-
S("span", Ha,
|
|
6014
|
-
i(l) ? (f(), E("span", qa,
|
|
6013
|
+
S("span", Ha, ne(x.label), 1),
|
|
6014
|
+
i(l) ? (f(), E("span", qa, ne(i(s).get(x.itemSourceType)), 1)) : I("", !0)
|
|
6015
6015
|
])
|
|
6016
6016
|
]),
|
|
6017
6017
|
_: 1
|
|
@@ -6028,7 +6028,7 @@ const Ra = { component: Fa, renderer: Ua, propEditor: Ta }, Na = { class: "dicti
|
|
|
6028
6028
|
};
|
|
6029
6029
|
}
|
|
6030
6030
|
});
|
|
6031
|
-
const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */
|
|
6031
|
+
const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ oe({
|
|
6032
6032
|
__name: "propsEditor",
|
|
6033
6033
|
props: {
|
|
6034
6034
|
/**
|
|
@@ -6116,7 +6116,7 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
|
|
|
6116
6116
|
}),
|
|
6117
6117
|
p(_, null, {
|
|
6118
6118
|
default: g(() => [
|
|
6119
|
-
|
|
6119
|
+
W("选项列表")
|
|
6120
6120
|
]),
|
|
6121
6121
|
_: 1
|
|
6122
6122
|
}),
|
|
@@ -6196,7 +6196,7 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
|
|
|
6196
6196
|
color: "#08c979",
|
|
6197
6197
|
size: "16px"
|
|
6198
6198
|
}),
|
|
6199
|
-
|
|
6199
|
+
W(" 添加 ")
|
|
6200
6200
|
]),
|
|
6201
6201
|
_: 1
|
|
6202
6202
|
})
|
|
@@ -6212,7 +6212,7 @@ const ja = { class: "option-wrap" }, Ga = /* @__PURE__ */ ne({
|
|
|
6212
6212
|
const Wa = { class: "checkbox-component" }, Ya = {
|
|
6213
6213
|
key: 0,
|
|
6214
6214
|
class: "description"
|
|
6215
|
-
}, Xa = /* @__PURE__ */
|
|
6215
|
+
}, Xa = /* @__PURE__ */ oe({
|
|
6216
6216
|
__name: "renderer",
|
|
6217
6217
|
props: {
|
|
6218
6218
|
/**
|
|
@@ -6301,7 +6301,7 @@ const Wa = { class: "checkbox-component" }, Ya = {
|
|
|
6301
6301
|
value: _.value
|
|
6302
6302
|
}, {
|
|
6303
6303
|
default: g(() => [
|
|
6304
|
-
|
|
6304
|
+
W(ne(_.label), 1)
|
|
6305
6305
|
]),
|
|
6306
6306
|
_: 2
|
|
6307
6307
|
}, 1032, ["value"]),
|
|
@@ -6321,7 +6321,7 @@ const Wa = { class: "checkbox-component" }, Ya = {
|
|
|
6321
6321
|
name: "tip",
|
|
6322
6322
|
color: "#ff0000"
|
|
6323
6323
|
}),
|
|
6324
|
-
|
|
6324
|
+
W(" " + ne(`${i(n).props.formType === "1" ? "项目说明" : "答案解析"}:${i(a).description || "无"}`), 1)
|
|
6325
6325
|
])) : I("", !0)
|
|
6326
6326
|
]);
|
|
6327
6327
|
};
|
|
@@ -6380,7 +6380,7 @@ let Ja = class extends Je {
|
|
|
6380
6380
|
return ["RANGE"];
|
|
6381
6381
|
}
|
|
6382
6382
|
};
|
|
6383
|
-
const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */
|
|
6383
|
+
const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */ oe({
|
|
6384
6384
|
__name: "propsEditor",
|
|
6385
6385
|
setup(t) {
|
|
6386
6386
|
const { computedExpression: o } = ze();
|
|
@@ -6419,13 +6419,13 @@ const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */
|
|
|
6419
6419
|
default: g(() => [
|
|
6420
6420
|
p(v, { value: "text" }, {
|
|
6421
6421
|
default: g(() => [
|
|
6422
|
-
|
|
6422
|
+
W("文本")
|
|
6423
6423
|
]),
|
|
6424
6424
|
_: 1
|
|
6425
6425
|
}),
|
|
6426
6426
|
p(v, { value: "password" }, {
|
|
6427
6427
|
default: g(() => [
|
|
6428
|
-
|
|
6428
|
+
W("密码")
|
|
6429
6429
|
]),
|
|
6430
6430
|
_: 1
|
|
6431
6431
|
})
|
|
@@ -6478,7 +6478,7 @@ const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */
|
|
|
6478
6478
|
}), Qa = { class: "input-component" }, es = {
|
|
6479
6479
|
key: 0,
|
|
6480
6480
|
class: "description"
|
|
6481
|
-
}, ts = /* @__PURE__ */
|
|
6481
|
+
}, ts = /* @__PURE__ */ oe({
|
|
6482
6482
|
__name: "renderer",
|
|
6483
6483
|
props: {
|
|
6484
6484
|
/**
|
|
@@ -6562,7 +6562,7 @@ const Ka = { component: Ja, renderer: Xa, propEditor: Ga }, Za = /* @__PURE__ */
|
|
|
6562
6562
|
name: "tip",
|
|
6563
6563
|
color: "#ff0000"
|
|
6564
6564
|
}),
|
|
6565
|
-
|
|
6565
|
+
W(" " + ne(`${i(n).props.formType === "1" ? "项目说明" : "答案解析"}:${i(a).description || "无"}`), 1)
|
|
6566
6566
|
])) : I("", !0)
|
|
6567
6567
|
]);
|
|
6568
6568
|
};
|
|
@@ -6623,7 +6623,7 @@ let os = class extends Je {
|
|
|
6623
6623
|
return ["RANGE"];
|
|
6624
6624
|
}
|
|
6625
6625
|
};
|
|
6626
|
-
const ns = { component: os, renderer: ts, propEditor: Za }, ls = /* @__PURE__ */
|
|
6626
|
+
const ns = { component: os, renderer: ts, propEditor: Za }, ls = /* @__PURE__ */ oe({
|
|
6627
6627
|
__name: "renderer",
|
|
6628
6628
|
props: {
|
|
6629
6629
|
componentProps: {
|
|
@@ -6639,7 +6639,7 @@ const ns = { component: os, renderer: ts, propEditor: Za }, ls = /* @__PURE__ */
|
|
|
6639
6639
|
"font-size": t.componentProps.fontSize + "px",
|
|
6640
6640
|
"font-weight": t.componentProps.isBold ? "bold" : "normal"
|
|
6641
6641
|
})
|
|
6642
|
-
},
|
|
6642
|
+
}, ne(t.componentProps.label), 5));
|
|
6643
6643
|
}
|
|
6644
6644
|
});
|
|
6645
6645
|
let is = class extends Je {
|
|
@@ -6659,7 +6659,7 @@ let is = class extends Je {
|
|
|
6659
6659
|
};
|
|
6660
6660
|
}
|
|
6661
6661
|
};
|
|
6662
|
-
const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "option-wrap" }, rs = /* @__PURE__ */
|
|
6662
|
+
const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "option-wrap" }, rs = /* @__PURE__ */ oe({
|
|
6663
6663
|
__name: "propsEditor",
|
|
6664
6664
|
props: {
|
|
6665
6665
|
/**
|
|
@@ -6722,7 +6722,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
|
|
|
6722
6722
|
}),
|
|
6723
6723
|
p(b, null, {
|
|
6724
6724
|
default: g(() => [
|
|
6725
|
-
|
|
6725
|
+
W("选项列表")
|
|
6726
6726
|
]),
|
|
6727
6727
|
_: 1
|
|
6728
6728
|
}),
|
|
@@ -6802,7 +6802,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
|
|
|
6802
6802
|
color: "#08c979",
|
|
6803
6803
|
size: "16px"
|
|
6804
6804
|
}),
|
|
6805
|
-
|
|
6805
|
+
W(" 添加 ")
|
|
6806
6806
|
]),
|
|
6807
6807
|
_: 1
|
|
6808
6808
|
})
|
|
@@ -6818,7 +6818,7 @@ const as = { component: is, renderer: ls, undefined: void 0 }, ss = { class: "op
|
|
|
6818
6818
|
const ds = { class: "radio-component" }, us = {
|
|
6819
6819
|
key: 0,
|
|
6820
6820
|
class: "description"
|
|
6821
|
-
}, cs = /* @__PURE__ */
|
|
6821
|
+
}, cs = /* @__PURE__ */ oe({
|
|
6822
6822
|
__name: "renderer",
|
|
6823
6823
|
props: {
|
|
6824
6824
|
/**
|
|
@@ -6912,7 +6912,7 @@ const ds = { class: "radio-component" }, us = {
|
|
|
6912
6912
|
onClick: (x) => d(x, y.value)
|
|
6913
6913
|
}, {
|
|
6914
6914
|
default: g(() => [
|
|
6915
|
-
|
|
6915
|
+
W(ne(y.label), 1)
|
|
6916
6916
|
]),
|
|
6917
6917
|
_: 2
|
|
6918
6918
|
}, 1032, ["value", "onClick"]),
|
|
@@ -6932,7 +6932,7 @@ const ds = { class: "radio-component" }, us = {
|
|
|
6932
6932
|
name: "tip",
|
|
6933
6933
|
color: "#ff0000"
|
|
6934
6934
|
}),
|
|
6935
|
-
|
|
6935
|
+
W(" " + ne(`${i(n).props.formType === "1" ? "项目说明" : "答案解析"}:${i(a).description || "无"}`), 1)
|
|
6936
6936
|
])) : I("", !0)
|
|
6937
6937
|
]);
|
|
6938
6938
|
};
|
|
@@ -6994,7 +6994,7 @@ class ps extends Je {
|
|
|
6994
6994
|
const ms = { component: ps, renderer: cs, propEditor: rs }, fs = {
|
|
6995
6995
|
key: 0,
|
|
6996
6996
|
class: "component-readonly-mask"
|
|
6997
|
-
}, On = /* @__PURE__ */
|
|
6997
|
+
}, On = /* @__PURE__ */ oe({
|
|
6998
6998
|
__name: "componentRenderer",
|
|
6999
6999
|
props: {
|
|
7000
7000
|
/**
|
|
@@ -7100,7 +7100,7 @@ const ms = { component: ps, renderer: cs, propEditor: rs }, fs = {
|
|
|
7100
7100
|
"font-size": C.props.fontSize + "px",
|
|
7101
7101
|
"font-weight": C.props.isBold ? "bold" : "normal"
|
|
7102
7102
|
})
|
|
7103
|
-
},
|
|
7103
|
+
}, ne(C.props.showLabel ? C.props.label + ":" : ""), 5)
|
|
7104
7104
|
]),
|
|
7105
7105
|
default: g(() => [
|
|
7106
7106
|
(f(), M(Ft(e[C.type].renderer), {
|
|
@@ -7134,7 +7134,7 @@ const hs = {
|
|
|
7134
7134
|
class: "mobile-key"
|
|
7135
7135
|
}, ys = {
|
|
7136
7136
|
name: "zhy-form-renderer"
|
|
7137
|
-
}, wt = /* @__PURE__ */
|
|
7137
|
+
}, wt = /* @__PURE__ */ oe({
|
|
7138
7138
|
...ys,
|
|
7139
7139
|
props: {
|
|
7140
7140
|
/**
|
|
@@ -7382,7 +7382,7 @@ const hs = {
|
|
|
7382
7382
|
indeterminate: i(u),
|
|
7383
7383
|
onChange: w[1] || (w[1] = (Y) => b())
|
|
7384
7384
|
}, null, 8, ["modelValue", "indeterminate"])
|
|
7385
|
-
])) : i(h).props.formName ? (f(), E("h1", gs,
|
|
7385
|
+
])) : i(h).props.formName ? (f(), E("h1", gs, ne(i(h).props.formName), 1)) : I("", !0),
|
|
7386
7386
|
p(F, {
|
|
7387
7387
|
ref_key: "formRenderer",
|
|
7388
7388
|
ref: a,
|
|
@@ -7410,7 +7410,7 @@ const hs = {
|
|
|
7410
7410
|
};
|
|
7411
7411
|
}
|
|
7412
7412
|
});
|
|
7413
|
-
const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onClick"], Ds = ["title"], Vs = { class: "form-template" }, Es = { class: "dialog-footer" }, Ss = { class: "left-wrap" }, ks = { class: "select-count-wrap" }, Ms = { class: "count" }, zs = { class: "right-wrap" }, $s = /* @__PURE__ */
|
|
7413
|
+
const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onClick"], Ds = ["title"], Vs = { class: "form-template" }, Es = { class: "dialog-footer" }, Ss = { class: "left-wrap" }, ks = { class: "select-count-wrap" }, Ms = { class: "count" }, zs = { class: "right-wrap" }, $s = /* @__PURE__ */ oe({
|
|
7414
7414
|
__name: "batchAddDialog",
|
|
7415
7415
|
props: /* @__PURE__ */ Yo({
|
|
7416
7416
|
/**
|
|
@@ -7427,9 +7427,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7427
7427
|
}),
|
|
7428
7428
|
emits: /* @__PURE__ */ Yo(["select"], ["update:modelValue"]),
|
|
7429
7429
|
setup(t, { emit: o }) {
|
|
7430
|
-
const { clone: e } = ze(), n = le("formData"), l = n.value.props.formType === "2" ? "试卷" : "表单", a = n.value.props.formType === "2" ? "题目" : "项目", s = Bn(t, "modelValue"), r = t, { params: u } = Me(r)
|
|
7431
|
-
console.log("batchAddDialog--------", u.value);
|
|
7432
|
-
const d = H({}), m = H(""), h = H({
|
|
7430
|
+
const { clone: e } = ze(), n = le("formData"), l = n.value.props.formType === "2" ? "试卷" : "表单", a = n.value.props.formType === "2" ? "题目" : "项目", s = Bn(t, "modelValue"), r = t, { params: u } = Me(r), d = H({}), m = H(""), h = H({
|
|
7433
7431
|
datas: {},
|
|
7434
7432
|
components: [],
|
|
7435
7433
|
props: {}
|
|
@@ -7530,9 +7528,9 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7530
7528
|
S("div", Es, [
|
|
7531
7529
|
S("div", Ss, [
|
|
7532
7530
|
S("span", ks, [
|
|
7533
|
-
|
|
7534
|
-
S("span", Ms,
|
|
7535
|
-
S("span", null,
|
|
7531
|
+
W(" 已选 "),
|
|
7532
|
+
S("span", Ms, ne(` ${i(z)} `), 1),
|
|
7533
|
+
S("span", null, ne(` 个${i(a)}`), 1)
|
|
7536
7534
|
]),
|
|
7537
7535
|
p(qt, {
|
|
7538
7536
|
type: "primary",
|
|
@@ -7540,7 +7538,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7540
7538
|
onClick: F
|
|
7541
7539
|
}, {
|
|
7542
7540
|
default: g(() => [
|
|
7543
|
-
|
|
7541
|
+
W(ne(`查看已选${i(a)}`), 1)
|
|
7544
7542
|
]),
|
|
7545
7543
|
_: 1
|
|
7546
7544
|
}, 8, ["disabled"])
|
|
@@ -7550,7 +7548,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7550
7548
|
onClick: P[0] || (P[0] = (Pe) => s.value = !1)
|
|
7551
7549
|
}, {
|
|
7552
7550
|
default: g(() => [
|
|
7553
|
-
|
|
7551
|
+
W("关闭")
|
|
7554
7552
|
]),
|
|
7555
7553
|
_: 1
|
|
7556
7554
|
}),
|
|
@@ -7559,7 +7557,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7559
7557
|
onClick: N
|
|
7560
7558
|
}, {
|
|
7561
7559
|
default: g(() => [
|
|
7562
|
-
|
|
7560
|
+
W(" 确定 ")
|
|
7563
7561
|
]),
|
|
7564
7562
|
_: 1
|
|
7565
7563
|
})
|
|
@@ -7570,7 +7568,6 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7570
7568
|
var Pe, st, Gt;
|
|
7571
7569
|
return [
|
|
7572
7570
|
S("div", ws, [
|
|
7573
|
-
j(oe(i(u).searchParams) + " ", 1),
|
|
7574
7571
|
(Pe = i(u).searchParams) != null && Pe.length ? (f(), M(Qe, {
|
|
7575
7572
|
key: 0,
|
|
7576
7573
|
model: i(d),
|
|
@@ -7670,7 +7667,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7670
7667
|
S("div", {
|
|
7671
7668
|
class: "form-item-name",
|
|
7672
7669
|
title: J.formName
|
|
7673
|
-
},
|
|
7670
|
+
}, ne(J.formName), 9, Ds)
|
|
7674
7671
|
], 10, xs))), 128))
|
|
7675
7672
|
])
|
|
7676
7673
|
]),
|
|
@@ -7703,7 +7700,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7703
7700
|
onClick: P[2] || (P[2] = (Pe) => w.value = !1)
|
|
7704
7701
|
}, {
|
|
7705
7702
|
default: g(() => [
|
|
7706
|
-
|
|
7703
|
+
W("关闭")
|
|
7707
7704
|
]),
|
|
7708
7705
|
_: 1
|
|
7709
7706
|
})
|
|
@@ -7726,7 +7723,7 @@ const ws = { class: "form-list-wrap" }, Cs = { class: "form-list" }, xs = ["onCl
|
|
|
7726
7723
|
const Is = {
|
|
7727
7724
|
key: 1,
|
|
7728
7725
|
class: "tip"
|
|
7729
|
-
}, As = ["innerHTML"], eo = /* @__PURE__ */
|
|
7726
|
+
}, As = ["innerHTML"], eo = /* @__PURE__ */ oe({
|
|
7730
7727
|
__name: "conditionInput",
|
|
7731
7728
|
props: {
|
|
7732
7729
|
/**
|
|
@@ -7816,7 +7813,7 @@ const Is = {
|
|
|
7816
7813
|
onClick: C[0] || (C[0] = (V) => s.value = !1)
|
|
7817
7814
|
}, {
|
|
7818
7815
|
default: g(() => [
|
|
7819
|
-
|
|
7816
|
+
W("取消")
|
|
7820
7817
|
]),
|
|
7821
7818
|
_: 1
|
|
7822
7819
|
}),
|
|
@@ -7825,7 +7822,7 @@ const Is = {
|
|
|
7825
7822
|
onClick: b
|
|
7826
7823
|
}, {
|
|
7827
7824
|
default: g(() => [
|
|
7828
|
-
|
|
7825
|
+
W("确定")
|
|
7829
7826
|
]),
|
|
7830
7827
|
_: 1
|
|
7831
7828
|
})
|
|
@@ -7847,7 +7844,7 @@ const Is = {
|
|
|
7847
7844
|
};
|
|
7848
7845
|
}
|
|
7849
7846
|
});
|
|
7850
|
-
const Ls = /* @__PURE__ */
|
|
7847
|
+
const Ls = /* @__PURE__ */ oe({
|
|
7851
7848
|
__name: "componentAdvancedPropsEditor",
|
|
7852
7849
|
setup(t) {
|
|
7853
7850
|
let e = le("formDesignerData").selectComponent;
|
|
@@ -7947,7 +7944,7 @@ const Ls = /* @__PURE__ */ ne({
|
|
|
7947
7944
|
});
|
|
7948
7945
|
};
|
|
7949
7946
|
}
|
|
7950
|
-
}), Ts = /* @__PURE__ */
|
|
7947
|
+
}), Ts = /* @__PURE__ */ oe({
|
|
7951
7948
|
__name: "componentBasePropsEditor",
|
|
7952
7949
|
props: {
|
|
7953
7950
|
/**
|
|
@@ -8189,7 +8186,7 @@ const Ls = /* @__PURE__ */ ne({
|
|
|
8189
8186
|
});
|
|
8190
8187
|
};
|
|
8191
8188
|
}
|
|
8192
|
-
}), Os = /* @__PURE__ */
|
|
8189
|
+
}), Os = /* @__PURE__ */ oe({
|
|
8193
8190
|
__name: "formPropsEditor",
|
|
8194
8191
|
setup(t, { expose: o }) {
|
|
8195
8192
|
const e = le("formData"), n = H(), l = () => {
|
|
@@ -8226,13 +8223,13 @@ const Ls = /* @__PURE__ */ ne({
|
|
|
8226
8223
|
default: g(() => [
|
|
8227
8224
|
p(r, { value: "1" }, {
|
|
8228
8225
|
default: g(() => [
|
|
8229
|
-
|
|
8226
|
+
W("问卷")
|
|
8230
8227
|
]),
|
|
8231
8228
|
_: 1
|
|
8232
8229
|
}),
|
|
8233
8230
|
p(r, { value: "2" }, {
|
|
8234
8231
|
default: g(() => [
|
|
8235
|
-
|
|
8232
|
+
W("试卷")
|
|
8236
8233
|
]),
|
|
8237
8234
|
_: 1
|
|
8238
8235
|
})
|
|
@@ -8270,19 +8267,19 @@ const Ls = /* @__PURE__ */ ne({
|
|
|
8270
8267
|
default: g(() => [
|
|
8271
8268
|
p(r, { value: "top" }, {
|
|
8272
8269
|
default: g(() => [
|
|
8273
|
-
|
|
8270
|
+
W("上")
|
|
8274
8271
|
]),
|
|
8275
8272
|
_: 1
|
|
8276
8273
|
}),
|
|
8277
8274
|
p(r, { value: "left" }, {
|
|
8278
8275
|
default: g(() => [
|
|
8279
|
-
|
|
8276
|
+
W("左")
|
|
8280
8277
|
]),
|
|
8281
8278
|
_: 1
|
|
8282
8279
|
}),
|
|
8283
8280
|
p(r, { value: "right" }, {
|
|
8284
8281
|
default: g(() => [
|
|
8285
|
-
|
|
8282
|
+
W("右")
|
|
8286
8283
|
]),
|
|
8287
8284
|
_: 1
|
|
8288
8285
|
})
|
|
@@ -8318,19 +8315,19 @@ const Ls = /* @__PURE__ */ ne({
|
|
|
8318
8315
|
default: g(() => [
|
|
8319
8316
|
p(r, { value: "small" }, {
|
|
8320
8317
|
default: g(() => [
|
|
8321
|
-
|
|
8318
|
+
W("小")
|
|
8322
8319
|
]),
|
|
8323
8320
|
_: 1
|
|
8324
8321
|
}),
|
|
8325
8322
|
p(r, { value: "default" }, {
|
|
8326
8323
|
default: g(() => [
|
|
8327
|
-
|
|
8324
|
+
W("正常")
|
|
8328
8325
|
]),
|
|
8329
8326
|
_: 1
|
|
8330
8327
|
}),
|
|
8331
8328
|
p(r, { value: "large" }, {
|
|
8332
8329
|
default: g(() => [
|
|
8333
|
-
|
|
8330
|
+
W("大")
|
|
8334
8331
|
]),
|
|
8335
8332
|
_: 1
|
|
8336
8333
|
})
|
|
@@ -8346,7 +8343,7 @@ const Ls = /* @__PURE__ */ ne({
|
|
|
8346
8343
|
}, 8, ["model"]);
|
|
8347
8344
|
};
|
|
8348
8345
|
}
|
|
8349
|
-
}), Ps = { class: "toolbar" }, Us = /* @__PURE__ */ S("div", { class: "devices" }, null, -1), Fs = { class: "operates" }, Rs = /* @__PURE__ */ S("span", null, "清空", -1), Ns = /* @__PURE__ */ S("span", null, "模板导入", -1), Bs = /* @__PURE__ */ S("span", null, "查看JSON", -1), Hs = /* @__PURE__ */ S("span", null, "预览", -1), qs = /* @__PURE__ */ S("span", null, "保存", -1), js = /* @__PURE__ */ S("span", null, "验证表单", -1), Gs = /* @__PURE__ */ S("span", null, "重置表单", -1), Ws = /* @__PURE__ */ S("span", null, "表单数据", -1), mn = /* @__PURE__ */
|
|
8346
|
+
}), Ps = { class: "toolbar" }, Us = /* @__PURE__ */ S("div", { class: "devices" }, null, -1), Fs = { class: "operates" }, Rs = /* @__PURE__ */ S("span", null, "清空", -1), Ns = /* @__PURE__ */ S("span", null, "模板导入", -1), Bs = /* @__PURE__ */ S("span", null, "查看JSON", -1), Hs = /* @__PURE__ */ S("span", null, "预览", -1), qs = /* @__PURE__ */ S("span", null, "保存", -1), js = /* @__PURE__ */ S("span", null, "验证表单", -1), Gs = /* @__PURE__ */ S("span", null, "重置表单", -1), Ws = /* @__PURE__ */ S("span", null, "表单数据", -1), mn = /* @__PURE__ */ oe({
|
|
8350
8347
|
__name: "toolbar",
|
|
8351
8348
|
props: {
|
|
8352
8349
|
operates: {
|
|
@@ -8535,7 +8532,7 @@ const Ls = /* @__PURE__ */ ne({
|
|
|
8535
8532
|
name: "description",
|
|
8536
8533
|
color: "#08c979"
|
|
8537
8534
|
}),
|
|
8538
|
-
S("span", null,
|
|
8535
|
+
S("span", null, ne(`${i(v) ? "隐藏" : "显示"}${i(e).props.formType === "1" ? "项目说明" : "答案解析"}`), 1)
|
|
8539
8536
|
]),
|
|
8540
8537
|
_: 1
|
|
8541
8538
|
})) : I("", !0)
|
|
@@ -8555,7 +8552,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
8555
8552
|
class: "right-wrap"
|
|
8556
8553
|
}, o6 = { class: "preview-wrap" }, n6 = {
|
|
8557
8554
|
name: "zhy-form-designer"
|
|
8558
|
-
}, so = /* @__PURE__ */
|
|
8555
|
+
}, so = /* @__PURE__ */ oe({
|
|
8559
8556
|
...n6,
|
|
8560
8557
|
props: {
|
|
8561
8558
|
/**
|
|
@@ -8624,9 +8621,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
8624
8621
|
}
|
|
8625
8622
|
},
|
|
8626
8623
|
setup(t) {
|
|
8627
|
-
const o = t, { getTempID: e, clone: n, stringifyJson: l, isEmpty: a } = ze(), s = { ...vo, ..._o, ...go }, { formData: r, componentGroups: u, mergeGroup: d, batchAddComponentParams: m } = Me(o)
|
|
8628
|
-
console.log("formDesigner--------", m.value);
|
|
8629
|
-
const h = Hn({
|
|
8624
|
+
const o = t, { getTempID: e, clone: n, stringifyJson: l, isEmpty: a } = ze(), s = { ...vo, ..._o, ...go }, { formData: r, componentGroups: u, mergeGroup: d, batchAddComponentParams: m } = Me(o), h = Hn({
|
|
8630
8625
|
selectComponent: void 0,
|
|
8631
8626
|
propTab: "form",
|
|
8632
8627
|
device: "pc"
|
|
@@ -8882,7 +8877,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
8882
8877
|
name: et.type,
|
|
8883
8878
|
color: "#fc8720"
|
|
8884
8879
|
}, null, 8, ["name"]),
|
|
8885
|
-
S("span", Ks,
|
|
8880
|
+
S("span", Ks, ne(et.name), 1)
|
|
8886
8881
|
], 8, Js)
|
|
8887
8882
|
]),
|
|
8888
8883
|
_: 2
|
|
@@ -8921,7 +8916,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
8921
8916
|
key: 1,
|
|
8922
8917
|
class: "title",
|
|
8923
8918
|
onClick: k[4] || (k[4] = (ae) => y.value = !0)
|
|
8924
|
-
},
|
|
8919
|
+
}, ne(i(r).props.formName), 1)),
|
|
8925
8920
|
(Go = i(r).components) != null && Go.length ? I("", !0) : (f(), E("div", Zs, "从左侧拖拽组件")),
|
|
8926
8921
|
p(de, {
|
|
8927
8922
|
class: "designer-form",
|
|
@@ -9074,7 +9069,7 @@ const Ys = { class: "form-designer" }, Xs = { class: "left-wrap" }, Js = ["onCli
|
|
|
9074
9069
|
width: "600px"
|
|
9075
9070
|
}, {
|
|
9076
9071
|
default: g(() => [
|
|
9077
|
-
S("pre", null,
|
|
9072
|
+
S("pre", null, ne(i(qt)), 1)
|
|
9078
9073
|
]),
|
|
9079
9074
|
_: 1
|
|
9080
9075
|
}, 8, ["modelValue"]),
|