zhytech-ui 1.0.38 → 1.0.39
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/src/styles/index.d.ts +2 -0
- package/dist/src/styles/rules.d.ts +76 -0
- package/dist/src/styles/shortcuts.d.ts +2 -0
- package/dist/src/styles/theme/index.d.ts +2 -0
- package/dist/src/styles/theme/themeOption/dark.d.ts +18 -0
- package/dist/src/styles/theme/themeOption/primary.d.ts +27 -0
- package/dist/src/styles/util.d.ts +14 -0
- package/dist/src/styles/variants.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +500 -467
- package/dist/zhytech-ui.umd.js +2 -2
- package/package.json +81 -76
package/dist/zhytech-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var tn = Object.defineProperty;
|
|
2
2
|
var on = (t, o, e) => o in t ? tn(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e;
|
|
3
3
|
var Ye = (t, o, e) => (on(t, typeof o != "symbol" ? o + "" : o, e), e);
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as re, resolveComponent as C, openBlock as f, createBlock as k, withCtx as v, createElementBlock as S, createTextVNode as Y, createCommentVNode as z, createElementVNode as T, useCssVars as Xo, unref as n, toRefs as Le, watch as K, computed as Xe, Fragment as le, createVNode as c, renderList as pe, ref as G, onMounted as Jo, TransitionGroup as ln, h as sl, nextTick as gt, inject as se, withModifiers as uo, normalizeClass as Oe, normalizeStyle as rt, resolveDynamicComponent as Jt, toDisplayString as ie, isRef as fe, getCurrentInstance as nn, renderSlot as Kt, createSlots as an, provide as Mt, mergeModels as rl, useModel as sn, reactive as rn, withKeys as dn } from "vue";
|
|
5
5
|
import { ElMessage as un, dayjs as dl } from "element-plus";
|
|
6
6
|
const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7
7
|
__proto__: null,
|
|
@@ -993,7 +993,7 @@ const pn = {
|
|
|
993
993
|
"p-id": "18229"
|
|
994
994
|
}, null, -1), R1 = {
|
|
995
995
|
name: "zhy-icon"
|
|
996
|
-
}, be = /* @__PURE__ */
|
|
996
|
+
}, be = /* @__PURE__ */ re({
|
|
997
997
|
...R1,
|
|
998
998
|
props: {
|
|
999
999
|
name: {
|
|
@@ -1061,7 +1061,7 @@ const B1 = {
|
|
|
1061
1061
|
}, q1 = { class: "condition-type" }, Y1 = /* @__PURE__ */ T("span", { class: "line" }, null, -1), j1 = {
|
|
1062
1062
|
key: 0,
|
|
1063
1063
|
class: "sub-filter-items-wrap"
|
|
1064
|
-
}, W1 = { class: "sub-filter-items" }, G1 = { class: "filter-item-wrap" }, X1 = { class: "filter-value" }, J1 = /* @__PURE__ */
|
|
1064
|
+
}, W1 = { class: "sub-filter-items" }, G1 = { class: "filter-item-wrap" }, X1 = { class: "filter-value" }, J1 = /* @__PURE__ */ re({
|
|
1065
1065
|
__name: "filterItem",
|
|
1066
1066
|
props: {
|
|
1067
1067
|
/**
|
|
@@ -1137,8 +1137,8 @@ const B1 = {
|
|
|
1137
1137
|
h.children.splice(m, 1), h.children.length === 1 && (h.itemID = h.children[0].itemID, h.condition = h.children[0].condition, h.value = h.children[0].value, h.children = void 0);
|
|
1138
1138
|
};
|
|
1139
1139
|
return (h, m) => {
|
|
1140
|
-
var
|
|
1141
|
-
const d = C("el-switch"), y = C("filter-item", !0), _ = be, b = C("el-option"), w = C("el-select"),
|
|
1140
|
+
var V, $, E;
|
|
1141
|
+
const d = C("el-switch"), y = C("filter-item", !0), _ = be, b = C("el-option"), w = C("el-select"), x = C("el-cascader"), D = C("el-input");
|
|
1142
1142
|
return n(a) ? (f(), S("div", B1, [
|
|
1143
1143
|
T("div", q1, [
|
|
1144
1144
|
t.showConditionType ? (f(), S(le, { key: 0 }, [
|
|
@@ -1155,9 +1155,9 @@ const B1 = {
|
|
|
1155
1155
|
}, null, 8, ["modelValue"])
|
|
1156
1156
|
], 64)) : z("", !0)
|
|
1157
1157
|
]),
|
|
1158
|
-
(
|
|
1158
|
+
(V = n(a).children) != null && V.length ? (f(), S("div", j1, [
|
|
1159
1159
|
T("div", W1, [
|
|
1160
|
-
(f(!0), S(le, null,
|
|
1160
|
+
(f(!0), S(le, null, pe(n(a).children, (A, W) => (f(), k(y, {
|
|
1161
1161
|
key: W,
|
|
1162
1162
|
modelValue: n(a).children[W],
|
|
1163
1163
|
"onUpdate:modelValue": (U) => n(a).children[W] = U,
|
|
@@ -1190,7 +1190,7 @@ const B1 = {
|
|
|
1190
1190
|
onChange: p
|
|
1191
1191
|
}, {
|
|
1192
1192
|
default: v(() => [
|
|
1193
|
-
(f(!0), S(le, null,
|
|
1193
|
+
(f(!0), S(le, null, pe(t.items, (A, W) => (f(), k(b, {
|
|
1194
1194
|
key: W,
|
|
1195
1195
|
label: A.label,
|
|
1196
1196
|
value: A.id
|
|
@@ -1206,7 +1206,7 @@ const B1 = {
|
|
|
1206
1206
|
onChange: m[5] || (m[5] = (A) => n(a).value = "")
|
|
1207
1207
|
}, {
|
|
1208
1208
|
default: v(() => [
|
|
1209
|
-
(f(!0), S(le, null,
|
|
1209
|
+
(f(!0), S(le, null, pe(t.filterConditions[n(a).itemID], (A, W) => (f(), k(b, {
|
|
1210
1210
|
key: W,
|
|
1211
1211
|
label: A.label,
|
|
1212
1212
|
value: A.value
|
|
@@ -1224,14 +1224,14 @@ const B1 = {
|
|
|
1224
1224
|
multiple: n(s)
|
|
1225
1225
|
}, {
|
|
1226
1226
|
default: v(() => [
|
|
1227
|
-
(f(!0), S(le, null,
|
|
1227
|
+
(f(!0), S(le, null, pe(t.conditionProps[n(a).itemID].options, (A, W) => (f(), k(b, {
|
|
1228
1228
|
key: W,
|
|
1229
1229
|
label: A.label,
|
|
1230
1230
|
value: A.value
|
|
1231
1231
|
}, null, 8, ["label", "value"]))), 128))
|
|
1232
1232
|
]),
|
|
1233
1233
|
_: 1
|
|
1234
|
-
}, 8, ["modelValue", "multiple"])) : ((E = t.conditionProps[n(a).itemID]) == null ? void 0 : E.type) === n(Ie).CASCADER_SELECTOR ? (f(), k(
|
|
1234
|
+
}, 8, ["modelValue", "multiple"])) : ((E = t.conditionProps[n(a).itemID]) == null ? void 0 : E.type) === n(Ie).CASCADER_SELECTOR ? (f(), k(x, {
|
|
1235
1235
|
key: 2,
|
|
1236
1236
|
class: "cascader-select",
|
|
1237
1237
|
modelValue: n(a).value,
|
|
@@ -1399,19 +1399,19 @@ function Ne() {
|
|
|
1399
1399
|
h ? y = u : y.push(u);
|
|
1400
1400
|
let _ = [], b = [];
|
|
1401
1401
|
return y.forEach((w) => {
|
|
1402
|
-
let
|
|
1403
|
-
p.forEach((
|
|
1404
|
-
const $ =
|
|
1402
|
+
let x = [], D = [];
|
|
1403
|
+
p.forEach((V) => {
|
|
1404
|
+
const $ = V[r];
|
|
1405
1405
|
if ($ === w) {
|
|
1406
|
-
|
|
1406
|
+
x.unshift($), D.unshift(V);
|
|
1407
1407
|
return;
|
|
1408
1408
|
}
|
|
1409
|
-
const E = s(w,
|
|
1409
|
+
const E = s(w, V[g], r, g);
|
|
1410
1410
|
if (E != null && E.length) {
|
|
1411
1411
|
const A = E[0], W = E[1];
|
|
1412
|
-
A != null && A.length && (
|
|
1412
|
+
A != null && A.length && (x.unshift($), x = [...x, ...A]), W.length && (D.unshift(V), D = [...D, ...W]);
|
|
1413
1413
|
}
|
|
1414
|
-
}), _.push(
|
|
1414
|
+
}), _.push(x), b.push(D);
|
|
1415
1415
|
}), h ? (m = _, b.forEach((w) => {
|
|
1416
1416
|
d.push(w[w.length - 1]);
|
|
1417
1417
|
})) : (m = _[0], d = b[0][b[0].length - 1]), [m, d];
|
|
@@ -1449,7 +1449,7 @@ function Ne() {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
const K1 = { class: "dynamic-filter no-rem" }, Z1 = {
|
|
1451
1451
|
name: "zhy-dynamic-filter"
|
|
1452
|
-
}, qt = /* @__PURE__ */
|
|
1452
|
+
}, qt = /* @__PURE__ */ re({
|
|
1453
1453
|
...Z1,
|
|
1454
1454
|
props: {
|
|
1455
1455
|
/**
|
|
@@ -1532,15 +1532,15 @@ const K1 = { class: "dynamic-filter no-rem" }, Z1 = {
|
|
|
1532
1532
|
]), m = (_, b) => {
|
|
1533
1533
|
var W, U, F, P, N, H;
|
|
1534
1534
|
let w = "";
|
|
1535
|
-
const
|
|
1536
|
-
let D = "label",
|
|
1537
|
-
if (a.conditionProps[
|
|
1535
|
+
const x = a.items.find((I) => I.id === _.itemID);
|
|
1536
|
+
let D = "label", V = "value", $ = (W = h.get(_.condition)) == null ? void 0 : W.expression.replace("{id}", `{${_.itemID}}`), E = (U = h.get(_.condition)) == null ? void 0 : U.content.replace("{id}", D.replace("label", x == null ? void 0 : x.label)), A = [];
|
|
1537
|
+
if (a.conditionProps[x == null ? void 0 : x.id].type === "selector" && (A = a.conditionProps[x == null ? void 0 : x.id].options), _.condition === "RANGE") {
|
|
1538
1538
|
const I = _.value.split(",");
|
|
1539
1539
|
if (b)
|
|
1540
1540
|
w = $ == null ? void 0 : $.replace("{value1}", I[0]).replace("{value2}", I[1]);
|
|
1541
1541
|
else {
|
|
1542
1542
|
let O = "", L = "";
|
|
1543
|
-
A.length ? (O = (F = A.find((q) => q.value === I[0])) == null ? void 0 : F.label, L = (P = A.find((q) => q.value === I[1])) == null ? void 0 : P.label) : (O =
|
|
1543
|
+
A.length ? (O = (F = A.find((q) => q.value === I[0])) == null ? void 0 : F.label, L = (P = A.find((q) => q.value === I[1])) == null ? void 0 : P.label) : (O = V.replace("value", I[0]), L = V.replace("value", I[1])), w = E == null ? void 0 : E.replace("{value1}", O).replace("{value2}", L);
|
|
1544
1544
|
}
|
|
1545
1545
|
return w;
|
|
1546
1546
|
}
|
|
@@ -1551,18 +1551,18 @@ const K1 = { class: "dynamic-filter no-rem" }, Z1 = {
|
|
|
1551
1551
|
let I = "";
|
|
1552
1552
|
if (A.length)
|
|
1553
1553
|
typeof _.value != "string" && _.value.length ? I = A.filter((O) => _.value.includes(O.value)).map((O) => O.label).join(",") : I = (N = A.find((O) => O.value === _.value)) == null ? void 0 : N.label;
|
|
1554
|
-
else if (a.conditionProps[
|
|
1554
|
+
else if (a.conditionProps[x == null ? void 0 : x.id].type === Ie.CASCADER_SELECTOR) {
|
|
1555
1555
|
let [O, L] = d(_);
|
|
1556
|
-
const q = l(O, a.conditionProps[
|
|
1556
|
+
const q = l(O, a.conditionProps[x == null ? void 0 : x.id].cascaders, "value", "children", L);
|
|
1557
1557
|
I = L ? q[1].filter((R) => R == null ? void 0 : R.label).map((R) => R.label).join(",") : ((H = q[1]) == null ? void 0 : H.label) ?? O;
|
|
1558
1558
|
} else
|
|
1559
1559
|
I = _.value;
|
|
1560
|
-
w = E == null ? void 0 : E.replace("{value}",
|
|
1560
|
+
w = E == null ? void 0 : E.replace("{value}", V.replace("value", I));
|
|
1561
1561
|
}
|
|
1562
1562
|
return w;
|
|
1563
1563
|
}, d = (_) => {
|
|
1564
1564
|
let b = _.value, w = typeof _.value != "string";
|
|
1565
|
-
return w && (b = _.value.map((
|
|
1565
|
+
return w && (b = _.value.map((x) => Array.isArray(x) && x.length ? x.at(-1) : x)), [b, w];
|
|
1566
1566
|
}, y = (_) => {
|
|
1567
1567
|
let b = {
|
|
1568
1568
|
filterConditionExpression: "",
|
|
@@ -1570,16 +1570,16 @@ const K1 = { class: "dynamic-filter no-rem" }, Z1 = {
|
|
|
1570
1570
|
filterConditions: [],
|
|
1571
1571
|
message: ""
|
|
1572
1572
|
};
|
|
1573
|
-
return _.forEach((w,
|
|
1573
|
+
return _.forEach((w, x) => {
|
|
1574
1574
|
var $;
|
|
1575
1575
|
if (b.message)
|
|
1576
1576
|
return b;
|
|
1577
|
-
const D = r(w.conditionType, !1),
|
|
1577
|
+
const D = r(w.conditionType, !1), V = r(w.conditionType, !0);
|
|
1578
1578
|
if (($ = w.children) != null && $.length) {
|
|
1579
1579
|
const E = y(w.children);
|
|
1580
1580
|
if (E.message)
|
|
1581
|
-
return b.message = `第${
|
|
1582
|
-
b.filterConditionExpression += `${
|
|
1581
|
+
return b.message = `第${x + 1}行子条件的${E.message}`, b;
|
|
1582
|
+
b.filterConditionExpression += `${x === 0 ? "" : V}(${E.filterConditionExpression})`, b.filterConditionContent += `${x === 0 ? "" : D}(${E.filterConditionContent})`, b.filterConditions.push({
|
|
1583
1583
|
condition: w.condition,
|
|
1584
1584
|
itemID: w.itemID,
|
|
1585
1585
|
value: w.value,
|
|
@@ -1588,8 +1588,8 @@ const K1 = { class: "dynamic-filter no-rem" }, Z1 = {
|
|
|
1588
1588
|
});
|
|
1589
1589
|
} else {
|
|
1590
1590
|
if (!w.itemID || !w.condition || w.condition !== "EMPTY" && !w.value && !String(w.value).length)
|
|
1591
|
-
return b.message = `第${
|
|
1592
|
-
b.filterConditionExpression += `${
|
|
1591
|
+
return b.message = `第${x + 1}行条件设置不完整`, b;
|
|
1592
|
+
b.filterConditionExpression += `${x === 0 ? "" : V}${m(w, !0)}`, b.filterConditionContent += `${x === 0 ? "" : D}${m(w, !1)}`;
|
|
1593
1593
|
let E = e(w);
|
|
1594
1594
|
E.value = typeof w.value != "string" ? w.value.map((A) => A.at(-1)) : w.value, b.filterConditions.push(E);
|
|
1595
1595
|
}
|
|
@@ -1606,26 +1606,26 @@ const K1 = { class: "dynamic-filter no-rem" }, Z1 = {
|
|
|
1606
1606
|
}), (_, b) => {
|
|
1607
1607
|
const w = be;
|
|
1608
1608
|
return f(), S("div", K1, [
|
|
1609
|
-
(f(!0), S(le, null,
|
|
1609
|
+
(f(!0), S(le, null, pe(n(s), (x, D) => (f(), S("div", {
|
|
1610
1610
|
key: D,
|
|
1611
1611
|
class: "filter-items"
|
|
1612
1612
|
}, [
|
|
1613
1613
|
c(J1, {
|
|
1614
1614
|
modelValue: n(s)[D],
|
|
1615
|
-
"onUpdate:modelValue": (
|
|
1615
|
+
"onUpdate:modelValue": (V) => n(s)[D] = V,
|
|
1616
1616
|
showConditionType: D > 0,
|
|
1617
1617
|
items: t.items,
|
|
1618
1618
|
filterConditions: n(i),
|
|
1619
1619
|
conditionProps: t.conditionProps,
|
|
1620
|
-
onAdd: b[0] || (b[0] = (
|
|
1621
|
-
onDelete: (
|
|
1620
|
+
onAdd: b[0] || (b[0] = (V) => u(n(s))),
|
|
1621
|
+
onDelete: (V) => p(D)
|
|
1622
1622
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "showConditionType", "items", "filterConditions", "conditionProps", "onDelete"])
|
|
1623
1623
|
]))), 128)),
|
|
1624
1624
|
c(w, {
|
|
1625
1625
|
name: "plus",
|
|
1626
1626
|
color: "#08c979",
|
|
1627
1627
|
class: "add-filter-item",
|
|
1628
|
-
onClick: b[1] || (b[1] = (
|
|
1628
|
+
onClick: b[1] || (b[1] = (x) => u(n(s)))
|
|
1629
1629
|
})
|
|
1630
1630
|
]);
|
|
1631
1631
|
};
|
|
@@ -2095,9 +2095,9 @@ function Nt(t) {
|
|
|
2095
2095
|
bubbles: !0,
|
|
2096
2096
|
cancelable: !0
|
|
2097
2097
|
}) : (_ = document.createEvent("Event"), _.initEvent(l, !0, !0)), _.to = s || e, _.from = u || e, _.item = a || e, _.clone = i, _.oldIndex = p, _.newIndex = r, _.oldDraggableIndex = g, _.newDraggableIndex = h, _.originalEvent = m, _.pullMode = d ? d.lastPutMode : void 0;
|
|
2098
|
-
var
|
|
2099
|
-
for (var D in
|
|
2100
|
-
_[D] =
|
|
2098
|
+
var x = dt(dt({}, y), eo.getEventProperties(l, o));
|
|
2099
|
+
for (var D in x)
|
|
2100
|
+
_[D] = x[D];
|
|
2101
2101
|
e && e.dispatchEvent(_), b[w] && b[w].call(o, _);
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
@@ -2483,7 +2483,7 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
2483
2483
|
canSort: h,
|
|
2484
2484
|
fromSortable: m,
|
|
2485
2485
|
target: l,
|
|
2486
|
-
completed:
|
|
2486
|
+
completed: x,
|
|
2487
2487
|
onMove: function(ce, ve) {
|
|
2488
2488
|
return ao(Ve, e, B, a, ce, De(ce), o, ve);
|
|
2489
2489
|
},
|
|
@@ -2493,7 +2493,7 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
2493
2493
|
function w() {
|
|
2494
2494
|
b("dragOverAnimationCapture"), y.captureAnimationState(), y !== m && m.captureAnimationState();
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function x(R) {
|
|
2497
2497
|
return b("dragOverCompleted", {
|
|
2498
2498
|
insertion: R
|
|
2499
2499
|
}), R && (g ? r._hideClone() : r._showClone(y), y !== m && (ke(B, Pe ? Pe.options.ghostClass : r.options.ghostClass, !1), ke(B, u.ghostClass, !0)), Pe !== y && y !== Q.active ? Pe = y : y === Q.active && Pe && (Pe = null), m === y && (y._ignoreWhileAnimating = l), y.animateAll(function() {
|
|
@@ -2513,24 +2513,24 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
2513
2513
|
if (o.preventDefault !== void 0 && o.cancelable && o.preventDefault(), l = Ge(l, u.draggable, e, !0), b("dragOver"), Q.eventCanceled)
|
|
2514
2514
|
return _;
|
|
2515
2515
|
if (B.contains(o.target) || l.animated && l.animatingX && l.animatingY || y._ignoreWhileAnimating === l)
|
|
2516
|
-
return
|
|
2516
|
+
return x(!1);
|
|
2517
2517
|
if (yo = !1, r && !u.disabled && (g ? h || (s = $e !== Ve) : Pe === this || (this.lastPutMode = oo.checkPull(this, r, B, o)) && p.checkPut(this, r, B, o))) {
|
|
2518
2518
|
if (d = this._getDirection(o, l) === "vertical", a = De(B), b("dragOverValid"), Q.eventCanceled)
|
|
2519
2519
|
return _;
|
|
2520
2520
|
if (s)
|
|
2521
|
-
return $e = Ve, w(), this._hideClone(), b("revert"), Q.eventCanceled || (Dt ? Ve.insertBefore(B, Dt) : Ve.appendChild(B)),
|
|
2522
|
-
var
|
|
2523
|
-
if (!
|
|
2524
|
-
if (
|
|
2525
|
-
return
|
|
2526
|
-
if (
|
|
2527
|
-
return w(),
|
|
2528
|
-
} else if (
|
|
2521
|
+
return $e = Ve, w(), this._hideClone(), b("revert"), Q.eventCanceled || (Dt ? Ve.insertBefore(B, Dt) : Ve.appendChild(B)), x(!0);
|
|
2522
|
+
var V = Zo(e, u.draggable);
|
|
2523
|
+
if (!V || Ds(o, d, this) && !V.animated) {
|
|
2524
|
+
if (V === B)
|
|
2525
|
+
return x(!1);
|
|
2526
|
+
if (V && e === o.target && (l = V), l && (i = De(l)), ao(Ve, e, B, a, l, i, o, !!l) !== !1)
|
|
2527
|
+
return w(), V && V.nextSibling ? e.insertBefore(B, V.nextSibling) : e.appendChild(B), $e = e, D(), x(!0);
|
|
2528
|
+
} else if (V && ws(o, d, this)) {
|
|
2529
2529
|
var $ = Lt(e, 0, u, !0);
|
|
2530
2530
|
if ($ === B)
|
|
2531
|
-
return
|
|
2531
|
+
return x(!1);
|
|
2532
2532
|
if (l = $, i = De(l), ao(Ve, e, B, a, l, i, o, !1) !== !1)
|
|
2533
|
-
return w(), e.insertBefore(B, $), $e = e, D(),
|
|
2533
|
+
return w(), e.insertBefore(B, $), $e = e, D(), x(!0);
|
|
2534
2534
|
} else if (l.parentNode === e) {
|
|
2535
2535
|
i = De(l);
|
|
2536
2536
|
var E = 0, A, W = B.parentNode !== e, U = !vs(B.animated && B.toRect || a, l.animated && l.toRect || i, d), F = d ? "top" : "left", P = ml(l, "top", "top") || ml(B, "top", "top"), N = P ? P.scrollTop : void 0;
|
|
@@ -2543,16 +2543,16 @@ Q.prototype = /** @lends Sortable.prototype */
|
|
|
2543
2543
|
while (H && (X(H, "display") === "none" || H === ae));
|
|
2544
2544
|
}
|
|
2545
2545
|
if (E === 0 || H === l)
|
|
2546
|
-
return
|
|
2546
|
+
return x(!1);
|
|
2547
2547
|
Et = l, Gt = E;
|
|
2548
2548
|
var O = l.nextElementSibling, L = !1;
|
|
2549
2549
|
L = E === 1;
|
|
2550
2550
|
var q = ao(Ve, e, B, a, l, i, o, L);
|
|
2551
2551
|
if (q !== !1)
|
|
2552
|
-
return (q === 1 || q === -1) && (L = q === 1), Bo = !0, setTimeout(bs, 30), w(), L && !O ? e.appendChild(B) : l.parentNode.insertBefore(B, L ? O : l), P && Ll(P, 0, N - P.scrollTop), $e = B.parentNode, A !== void 0 && !lo && (mo = Math.abs(A - De(l)[F])), D(),
|
|
2552
|
+
return (q === 1 || q === -1) && (L = q === 1), Bo = !0, setTimeout(bs, 30), w(), L && !O ? e.appendChild(B) : l.parentNode.insertBefore(B, L ? O : l), P && Ll(P, 0, N - P.scrollTop), $e = B.parentNode, A !== void 0 && !lo && (mo = Math.abs(A - De(l)[F])), D(), x(!0);
|
|
2553
2553
|
}
|
|
2554
2554
|
if (e.contains(B))
|
|
2555
|
-
return
|
|
2555
|
+
return x(!1);
|
|
2556
2556
|
}
|
|
2557
2557
|
return !1;
|
|
2558
2558
|
},
|
|
@@ -2882,9 +2882,9 @@ var No = Il(function(t, o, e, l) {
|
|
|
2882
2882
|
Yo !== e && (Yo = e, ho(), Rt = o.scroll, g = o.scrollFn, Rt === !0 && (Rt = vt(e, !0)));
|
|
2883
2883
|
var h = 0, m = Rt;
|
|
2884
2884
|
do {
|
|
2885
|
-
var d = m, y = De(d), _ = y.top, b = y.bottom, w = y.left,
|
|
2886
|
-
d === p ? ($ = D < A && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), E =
|
|
2887
|
-
var N = $ && (Math.abs(
|
|
2885
|
+
var d = m, y = De(d), _ = y.top, b = y.bottom, w = y.left, x = y.right, D = y.width, V = y.height, $ = void 0, E = void 0, A = d.scrollWidth, W = d.scrollHeight, U = X(d), F = d.scrollLeft, P = d.scrollTop;
|
|
2886
|
+
d === p ? ($ = D < A && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), E = V < W && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : ($ = D < A && (U.overflowX === "auto" || U.overflowX === "scroll"), E = V < W && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
2887
|
+
var N = $ && (Math.abs(x - a) <= s && F + D < A) - (Math.abs(w - a) <= s && !!F), H = E && (Math.abs(b - i) <= s && P + V < W) - (Math.abs(_ - i) <= s && !!P);
|
|
2888
2888
|
if (!ze[h])
|
|
2889
2889
|
for (var I = 0; I <= h; I++)
|
|
2890
2890
|
ze[I] || (ze[I] = {});
|
|
@@ -3134,11 +3134,11 @@ function Ts() {
|
|
|
3134
3134
|
}), l.shiftKey && At && s.el.contains(At)) {
|
|
3135
3135
|
var d = Te(At), y = Te(ye);
|
|
3136
3136
|
~d && ~y && d !== y && function() {
|
|
3137
|
-
var
|
|
3138
|
-
y > d ? (D = d,
|
|
3139
|
-
for (var
|
|
3137
|
+
var x, D;
|
|
3138
|
+
y > d ? (D = d, x = y) : (D = y, x = d + 1);
|
|
3139
|
+
for (var V = h.filter; D < x; D++)
|
|
3140
3140
|
if (!~ne.indexOf(m[D]) && Ge(m[D], h.draggable, i, !1)) {
|
|
3141
|
-
var $ =
|
|
3141
|
+
var $ = V && (typeof V == "function" ? V.call(s, l, m[D], s) : V.split(",").some(function(E) {
|
|
3142
3142
|
return Ge(m[D], E.trim(), i, !1);
|
|
3143
3143
|
}));
|
|
3144
3144
|
$ || (ke(m[D], h.selectedClass, !0), ne.push(m[D]), Nt({
|
|
@@ -3157,33 +3157,33 @@ function Ts() {
|
|
|
3157
3157
|
if (kt && this.isMultiDrag) {
|
|
3158
3158
|
if (We = !1, (i[Fe].options.sort || i !== a) && ne.length > 1) {
|
|
3159
3159
|
var _ = De(ye), b = Te(ye, ":not(." + this.options.selectedClass + ")");
|
|
3160
|
-
if (!Ut && h.animation && (ye.thisAnimationDuration = null), g.captureAnimationState(), !Ut && (h.animation && (ye.fromRect = _, ne.forEach(function(
|
|
3161
|
-
if (
|
|
3162
|
-
var D = We ? De(
|
|
3163
|
-
|
|
3164
|
-
target:
|
|
3160
|
+
if (!Ut && h.animation && (ye.thisAnimationDuration = null), g.captureAnimationState(), !Ut && (h.animation && (ye.fromRect = _, ne.forEach(function(x) {
|
|
3161
|
+
if (x.thisAnimationDuration = null, x !== ye) {
|
|
3162
|
+
var D = We ? De(x) : _;
|
|
3163
|
+
x.fromRect = D, g.addAnimationState({
|
|
3164
|
+
target: x,
|
|
3165
3165
|
rect: D
|
|
3166
3166
|
});
|
|
3167
3167
|
}
|
|
3168
|
-
})), so(), ne.forEach(function(
|
|
3169
|
-
m[b] ? i.insertBefore(
|
|
3168
|
+
})), so(), ne.forEach(function(x) {
|
|
3169
|
+
m[b] ? i.insertBefore(x, m[b]) : i.appendChild(x), b++;
|
|
3170
3170
|
}), p === Te(ye))) {
|
|
3171
3171
|
var w = !1;
|
|
3172
|
-
ne.forEach(function(
|
|
3173
|
-
if (
|
|
3172
|
+
ne.forEach(function(x) {
|
|
3173
|
+
if (x.sortableIndex !== Te(x)) {
|
|
3174
3174
|
w = !0;
|
|
3175
3175
|
return;
|
|
3176
3176
|
}
|
|
3177
3177
|
}), w && (u("update"), u("sort"));
|
|
3178
3178
|
}
|
|
3179
|
-
ne.forEach(function(
|
|
3180
|
-
zo(
|
|
3179
|
+
ne.forEach(function(x) {
|
|
3180
|
+
zo(x);
|
|
3181
3181
|
}), g.animateAll();
|
|
3182
3182
|
}
|
|
3183
3183
|
at = g;
|
|
3184
3184
|
}
|
|
3185
|
-
(a === i || r && r.lastPutMode !== "clone") && Ke.forEach(function(
|
|
3186
|
-
|
|
3185
|
+
(a === i || r && r.lastPutMode !== "clone") && Ke.forEach(function(x) {
|
|
3186
|
+
x.parentNode && x.parentNode.removeChild(x);
|
|
3187
3187
|
});
|
|
3188
3188
|
}
|
|
3189
3189
|
},
|
|
@@ -3608,7 +3608,7 @@ const Zs = {
|
|
|
3608
3608
|
required: !1,
|
|
3609
3609
|
default: null
|
|
3610
3610
|
}
|
|
3611
|
-
}, Qs = ["update:modelValue", "change", ...[...Wo.manageAndEmit, ...Wo.emit].map((t) => t.toLowerCase())], Ot =
|
|
3611
|
+
}, Qs = ["update:modelValue", "change", ...[...Wo.manageAndEmit, ...Wo.emit].map((t) => t.toLowerCase())], Ot = re({
|
|
3612
3612
|
name: "draggable",
|
|
3613
3613
|
inheritAttrs: !1,
|
|
3614
3614
|
props: Zs,
|
|
@@ -3931,11 +3931,11 @@ let Je = class {
|
|
|
3931
3931
|
this.type = o, this.name = e, this.isEdit = l, this.isInput = a, this.id = e3(), this.props = {}, this.rules = [{ message: "必填项", required: !1 }], this.excludeFilterConditions = [], this.filterConditionProps = void 0, this.isLayout = !1, this.children = void 0;
|
|
3932
3932
|
}
|
|
3933
3933
|
};
|
|
3934
|
-
const t3 = /* @__PURE__ */
|
|
3934
|
+
const t3 = /* @__PURE__ */ re({
|
|
3935
3935
|
__name: "propsEditor",
|
|
3936
3936
|
props: {},
|
|
3937
3937
|
setup(t) {
|
|
3938
|
-
let e =
|
|
3938
|
+
let e = se("formDesignerData").selectComponent.props;
|
|
3939
3939
|
return (l, a) => {
|
|
3940
3940
|
const i = C("el-color-picker"), s = C("el-form-item"), u = C("el-switch"), p = C("el-option"), r = C("el-select"), g = C("el-input-number"), h = C("el-form");
|
|
3941
3941
|
return f(), k(h, {
|
|
@@ -4052,7 +4052,7 @@ const t3 = /* @__PURE__ */ se({
|
|
|
4052
4052
|
const o3 = ["onClick"], l3 = {
|
|
4053
4053
|
key: 2,
|
|
4054
4054
|
class: "operates"
|
|
4055
|
-
}, ol = /* @__PURE__ */
|
|
4055
|
+
}, ol = /* @__PURE__ */ re({
|
|
4056
4056
|
__name: "componentDesigner",
|
|
4057
4057
|
props: {
|
|
4058
4058
|
/**
|
|
@@ -4066,7 +4066,7 @@ const o3 = ["onClick"], l3 = {
|
|
|
4066
4066
|
emits: ["update:components", "deleteComponent", "change"],
|
|
4067
4067
|
setup(t, { emit: o }) {
|
|
4068
4068
|
const e = { ...Vo, ...ko, ...So, ...Eo }, { getTempID: l, clone: a } = Ne(), i = o;
|
|
4069
|
-
let s =
|
|
4069
|
+
let s = se("formData"), u = se("formDesignerData");
|
|
4070
4070
|
const p = t, { components: r } = Le(p);
|
|
4071
4071
|
K(r, () => i("update:components", r), { immediate: !0, deep: !0 });
|
|
4072
4072
|
const g = (_) => {
|
|
@@ -4077,19 +4077,19 @@ const o3 = ["onClick"], l3 = {
|
|
|
4077
4077
|
const b = d(_);
|
|
4078
4078
|
r.value.push(b), h(b), i("change");
|
|
4079
4079
|
}, d = (_) => {
|
|
4080
|
-
var w,
|
|
4080
|
+
var w, x;
|
|
4081
4081
|
let b = a(_);
|
|
4082
4082
|
if (b.id = l(), delete b.itemID, (w = b.props.options) != null && w.length) {
|
|
4083
|
-
b.props.options.forEach((
|
|
4084
|
-
|
|
4083
|
+
b.props.options.forEach((V) => {
|
|
4084
|
+
V.value.includes("temp-") && (V.value = l());
|
|
4085
4085
|
});
|
|
4086
4086
|
let D = new e[_.type].component();
|
|
4087
4087
|
b.filterConditionProps = D.getFilterConditionProps(b.props);
|
|
4088
4088
|
}
|
|
4089
|
-
if (b.isLayout && ((
|
|
4089
|
+
if (b.isLayout && ((x = b.children) != null && x.length)) {
|
|
4090
4090
|
let D = [];
|
|
4091
|
-
b.children.forEach((
|
|
4092
|
-
D.push(d(
|
|
4091
|
+
b.children.forEach((V) => {
|
|
4092
|
+
D.push(d(V));
|
|
4093
4093
|
}), b.children = D;
|
|
4094
4094
|
}
|
|
4095
4095
|
return b;
|
|
@@ -4098,7 +4098,7 @@ const o3 = ["onClick"], l3 = {
|
|
|
4098
4098
|
r.value.splice(_, 1), u.selectComponent = void 0, i("change"), i("deleteComponent", b);
|
|
4099
4099
|
};
|
|
4100
4100
|
return (_, b) => {
|
|
4101
|
-
const w = C("el-form-item"),
|
|
4101
|
+
const w = C("el-form-item"), x = be;
|
|
4102
4102
|
return f(), k(n(Ot), {
|
|
4103
4103
|
list: n(r),
|
|
4104
4104
|
"item-key": "id",
|
|
@@ -4107,7 +4107,7 @@ const o3 = ["onClick"], l3 = {
|
|
|
4107
4107
|
group: { name: "component", pull: !0, put: !0 },
|
|
4108
4108
|
onChange: g
|
|
4109
4109
|
}, {
|
|
4110
|
-
item: v(({ element: D, index:
|
|
4110
|
+
item: v(({ element: D, index: V }) => [
|
|
4111
4111
|
T("div", {
|
|
4112
4112
|
onClick: uo(($) => h(D), ["stop"]),
|
|
4113
4113
|
class: Oe([
|
|
@@ -4125,8 +4125,8 @@ const o3 = ["onClick"], l3 = {
|
|
|
4125
4125
|
key: 0,
|
|
4126
4126
|
isDesigner: "",
|
|
4127
4127
|
componentID: D.id,
|
|
4128
|
-
component: n(r)[
|
|
4129
|
-
"onUpdate:component": ($) => n(r)[
|
|
4128
|
+
component: n(r)[V],
|
|
4129
|
+
"onUpdate:component": ($) => n(r)[V] = $,
|
|
4130
4130
|
onDeleteComponent: b[0] || (b[0] = ($) => i("deleteComponent", $)),
|
|
4131
4131
|
onChange: b[1] || (b[1] = ($) => i("change"))
|
|
4132
4132
|
}, null, 40, ["componentID", "component", "onUpdate:component"])) : (f(), k(w, {
|
|
@@ -4158,16 +4158,16 @@ const o3 = ["onClick"], l3 = {
|
|
|
4158
4158
|
_: 2
|
|
4159
4159
|
}, 1032, ["prop", "class", "label-width", "rules"])),
|
|
4160
4160
|
n(u).selectComponent == D ? (f(), S("div", l3, [
|
|
4161
|
-
D.allowRepeat ? (f(), k(
|
|
4161
|
+
D.allowRepeat ? (f(), k(x, {
|
|
4162
4162
|
key: 0,
|
|
4163
4163
|
name: "copy",
|
|
4164
4164
|
color: "#0000ff",
|
|
4165
4165
|
onClick: uo(($) => m(D), ["stop"])
|
|
4166
4166
|
}, null, 8, ["onClick"])) : z("", !0),
|
|
4167
|
-
c(
|
|
4167
|
+
c(x, {
|
|
4168
4168
|
name: "delete",
|
|
4169
4169
|
color: "#ff0000",
|
|
4170
|
-
onClick: uo(($) => y(
|
|
4170
|
+
onClick: uo(($) => y(V), ["stop"])
|
|
4171
4171
|
}, null, 8, ["onClick"])
|
|
4172
4172
|
])) : z("", !0)
|
|
4173
4173
|
], 14, o3)
|
|
@@ -4177,7 +4177,7 @@ const o3 = ["onClick"], l3 = {
|
|
|
4177
4177
|
};
|
|
4178
4178
|
}
|
|
4179
4179
|
});
|
|
4180
|
-
const n3 = /* @__PURE__ */
|
|
4180
|
+
const n3 = /* @__PURE__ */ re({
|
|
4181
4181
|
__name: "renderer",
|
|
4182
4182
|
props: {
|
|
4183
4183
|
/**
|
|
@@ -4274,7 +4274,7 @@ let a3 = class extends Je {
|
|
|
4274
4274
|
const i3 = { component: a3, renderer: n3, propEditor: t3 }, s3 = { class: "dictionary-binder" }, r3 = { class: "item" }, d3 = { class: "label" }, u3 = {
|
|
4275
4275
|
key: 0,
|
|
4276
4276
|
class: "item-souce-type"
|
|
4277
|
-
}, To = /* @__PURE__ */
|
|
4277
|
+
}, To = /* @__PURE__ */ re({
|
|
4278
4278
|
__name: "dictionaryBinder",
|
|
4279
4279
|
props: {
|
|
4280
4280
|
modelValue: {
|
|
@@ -4316,7 +4316,7 @@ const i3 = { component: a3, renderer: n3, propEditor: t3 }, s3 = { class: "dicti
|
|
|
4316
4316
|
Xo((y) => ({
|
|
4317
4317
|
c9ee9b68: t.height
|
|
4318
4318
|
}));
|
|
4319
|
-
let e =
|
|
4319
|
+
let e = se("defaultSourceType");
|
|
4320
4320
|
const l = t, a = G(), i = G(l.modelValue), s = (d = l.dictionary) == null ? void 0 : d.souceTypeMap;
|
|
4321
4321
|
a.value = (s == null ? void 0 : s.size) > 1;
|
|
4322
4322
|
let u = G([]);
|
|
@@ -4331,13 +4331,13 @@ const i3 = { component: a3, renderer: n3, propEditor: t3 }, s3 = { class: "dicti
|
|
|
4331
4331
|
}), g("update:modelValue", _.label), g("change", _);
|
|
4332
4332
|
};
|
|
4333
4333
|
return (y, _) => {
|
|
4334
|
-
var
|
|
4334
|
+
var x;
|
|
4335
4335
|
const b = C("el-select-v2"), w = C("el-input");
|
|
4336
4336
|
return f(), S("div", s3, [
|
|
4337
|
-
(
|
|
4337
|
+
(x = t.dictionary) != null && x.dictionaryItems.length ? (f(), k(b, {
|
|
4338
4338
|
key: 0,
|
|
4339
4339
|
modelValue: n(i),
|
|
4340
|
-
"onUpdate:modelValue": _[0] || (_[0] = (D) =>
|
|
4340
|
+
"onUpdate:modelValue": _[0] || (_[0] = (D) => fe(i) ? i.value = D : null),
|
|
4341
4341
|
filterable: "",
|
|
4342
4342
|
"allow-create": t.allowCreateDictionary,
|
|
4343
4343
|
"reserve-keyword": !1,
|
|
@@ -4362,7 +4362,7 @@ const i3 = { component: a3, renderer: n3, propEditor: t3 }, s3 = { class: "dicti
|
|
|
4362
4362
|
}, 8, ["modelValue", "allow-create", "placeholder", "options", "item-height", "height", "disabled"])) : (f(), k(w, {
|
|
4363
4363
|
key: 1,
|
|
4364
4364
|
modelValue: n(i),
|
|
4365
|
-
"onUpdate:modelValue": _[1] || (_[1] = (D) =>
|
|
4365
|
+
"onUpdate:modelValue": _[1] || (_[1] = (D) => fe(i) ? i.value = D : null),
|
|
4366
4366
|
autosize: { minRows: 2, maxRows: 5 },
|
|
4367
4367
|
type: "textarea",
|
|
4368
4368
|
disabled: t.disabled,
|
|
@@ -4372,7 +4372,7 @@ const i3 = { component: a3, renderer: n3, propEditor: t3 }, s3 = { class: "dicti
|
|
|
4372
4372
|
};
|
|
4373
4373
|
}
|
|
4374
4374
|
});
|
|
4375
|
-
const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */
|
|
4375
|
+
const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ re({
|
|
4376
4376
|
__name: "propsEditor",
|
|
4377
4377
|
props: {
|
|
4378
4378
|
/**
|
|
@@ -4389,7 +4389,7 @@ const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ se({
|
|
|
4389
4389
|
}
|
|
4390
4390
|
},
|
|
4391
4391
|
setup(t) {
|
|
4392
|
-
let o =
|
|
4392
|
+
let o = se("formDesignerData"), e = se("defaultSourceType"), l = o.selectComponent.props;
|
|
4393
4393
|
l.pages.forEach((p) => {
|
|
4394
4394
|
p.itemSourceType = e;
|
|
4395
4395
|
});
|
|
@@ -4401,8 +4401,8 @@ const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ se({
|
|
|
4401
4401
|
r.value = p.value, r.itemSourceType = p.itemSourceType;
|
|
4402
4402
|
};
|
|
4403
4403
|
return (p, r) => {
|
|
4404
|
-
const g = C("el-option"), h = C("el-select"), m = C("el-input"), d = C("el-form-item"), y = C("el-divider"), _ = be, b = C("el-button"), w = C("el-switch"),
|
|
4405
|
-
return f(), k(
|
|
4404
|
+
const g = C("el-option"), h = C("el-select"), m = C("el-input"), d = C("el-form-item"), y = C("el-divider"), _ = be, b = C("el-button"), w = C("el-switch"), x = C("el-form");
|
|
4405
|
+
return f(), k(x, {
|
|
4406
4406
|
"label-width": "80px",
|
|
4407
4407
|
"label-suffix": ":",
|
|
4408
4408
|
class: "tabs-props-editor"
|
|
@@ -4468,10 +4468,10 @@ const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ se({
|
|
|
4468
4468
|
"onUpdate:modelValue": r[3] || (r[3] = (D) => n(l).defaultValue = D)
|
|
4469
4469
|
}, {
|
|
4470
4470
|
default: v(() => [
|
|
4471
|
-
(f(!0), S(le, null,
|
|
4472
|
-
key:
|
|
4471
|
+
(f(!0), S(le, null, pe(n(l).pages, (D, V) => (f(), k(g, {
|
|
4472
|
+
key: V,
|
|
4473
4473
|
label: D.label,
|
|
4474
|
-
value: String(
|
|
4474
|
+
value: String(V)
|
|
4475
4475
|
}, null, 8, ["label", "value"]))), 128))
|
|
4476
4476
|
]),
|
|
4477
4477
|
_: 1
|
|
@@ -4497,7 +4497,7 @@ const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ se({
|
|
|
4497
4497
|
tag: "div",
|
|
4498
4498
|
group: { name: "componentOptions", put: !1 }
|
|
4499
4499
|
}, {
|
|
4500
|
-
item: v(({ element: D, index:
|
|
4500
|
+
item: v(({ element: D, index: V }) => [
|
|
4501
4501
|
T("div", c3, [
|
|
4502
4502
|
n(l).pages.length > 1 ? (f(), k(_, {
|
|
4503
4503
|
key: 0,
|
|
@@ -4522,7 +4522,7 @@ const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ se({
|
|
|
4522
4522
|
name: "delete",
|
|
4523
4523
|
color: "#ff0000",
|
|
4524
4524
|
size: "16px",
|
|
4525
|
-
onClick: ($) => s(
|
|
4525
|
+
onClick: ($) => s(V)
|
|
4526
4526
|
}, null, 8, ["onClick"])) : z("", !0)
|
|
4527
4527
|
])
|
|
4528
4528
|
]),
|
|
@@ -4537,7 +4537,7 @@ const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ se({
|
|
|
4537
4537
|
}, {
|
|
4538
4538
|
default: v(() => [
|
|
4539
4539
|
c(b, {
|
|
4540
|
-
class: "add-page-item",
|
|
4540
|
+
class: "zhy add-page-item",
|
|
4541
4541
|
text: "",
|
|
4542
4542
|
type: "primary",
|
|
4543
4543
|
onClick: i
|
|
@@ -4603,7 +4603,7 @@ const c3 = { class: "page-wrap" }, p3 = /* @__PURE__ */ se({
|
|
|
4603
4603
|
const m3 = {
|
|
4604
4604
|
key: 2,
|
|
4605
4605
|
class: "nav-btn"
|
|
4606
|
-
}, f3 = /* @__PURE__ */
|
|
4606
|
+
}, f3 = /* @__PURE__ */ re({
|
|
4607
4607
|
__name: "renderer",
|
|
4608
4608
|
props: {
|
|
4609
4609
|
/**
|
|
@@ -4688,23 +4688,23 @@ const m3 = {
|
|
|
4688
4688
|
class: Oe(["layout", "tabs-layout-component", { "is-designer": t.isDesigner }])
|
|
4689
4689
|
}, [
|
|
4690
4690
|
c(w, {
|
|
4691
|
-
class: "
|
|
4691
|
+
class: "zhy",
|
|
4692
4692
|
type: n(l).props.tabType,
|
|
4693
4693
|
"tab-position": n(l).props.tabPosition,
|
|
4694
4694
|
modelValue: n(i),
|
|
4695
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
4695
|
+
"onUpdate:modelValue": y[2] || (y[2] = (x) => fe(i) ? i.value = x : null)
|
|
4696
4696
|
}, {
|
|
4697
4697
|
default: v(() => [
|
|
4698
|
-
(f(!0), S(le, null,
|
|
4698
|
+
(f(!0), S(le, null, pe(n(l).props.pages, (x, D) => (f(), k(b, {
|
|
4699
4699
|
key: D,
|
|
4700
|
-
label:
|
|
4700
|
+
label: x.label,
|
|
4701
4701
|
name: String(D)
|
|
4702
4702
|
}, {
|
|
4703
4703
|
default: v(() => [
|
|
4704
4704
|
t.isDesigner ? (f(), k(ol, {
|
|
4705
4705
|
key: 0,
|
|
4706
4706
|
components: n(s)[D],
|
|
4707
|
-
"onUpdate:components": (
|
|
4707
|
+
"onUpdate:components": (V) => n(s)[D] = V,
|
|
4708
4708
|
onDeleteComponent: g,
|
|
4709
4709
|
onChange: h
|
|
4710
4710
|
}, null, 8, ["components", "onUpdate:components"])) : (f(), k(nl, {
|
|
@@ -4715,8 +4715,8 @@ const m3 = {
|
|
|
4715
4715
|
n(l).props.showNavigation ? (f(), S("div", m3, [
|
|
4716
4716
|
D !== 0 ? (f(), k(_, {
|
|
4717
4717
|
key: 0,
|
|
4718
|
-
|
|
4719
|
-
|
|
4718
|
+
class: "zhy print-button",
|
|
4719
|
+
onClick: y[0] || (y[0] = (V) => p("p"))
|
|
4720
4720
|
}, {
|
|
4721
4721
|
default: v(() => [
|
|
4722
4722
|
Y("上一页")
|
|
@@ -4725,7 +4725,8 @@ const m3 = {
|
|
|
4725
4725
|
})) : z("", !0),
|
|
4726
4726
|
D !== n(l).props.pages.length - 1 ? (f(), k(_, {
|
|
4727
4727
|
key: 1,
|
|
4728
|
-
|
|
4728
|
+
class: "zhy",
|
|
4729
|
+
onClick: y[1] || (y[1] = (V) => p("n")),
|
|
4729
4730
|
type: "success"
|
|
4730
4731
|
}, {
|
|
4731
4732
|
default: v(() => [
|
|
@@ -4769,11 +4770,11 @@ let h3 = class extends Je {
|
|
|
4769
4770
|
}, this.isLayout = !0, this.children = [];
|
|
4770
4771
|
}
|
|
4771
4772
|
};
|
|
4772
|
-
const v3 = { component: h3, renderer: f3, propEditor: p3 }, g3 = /* @__PURE__ */
|
|
4773
|
+
const v3 = { component: h3, renderer: f3, propEditor: p3 }, g3 = /* @__PURE__ */ re({
|
|
4773
4774
|
__name: "propsEditor",
|
|
4774
4775
|
props: {},
|
|
4775
4776
|
setup(t) {
|
|
4776
|
-
let e =
|
|
4777
|
+
let e = se("formDesignerData").selectComponent.props;
|
|
4777
4778
|
const l = G(e.fileSize);
|
|
4778
4779
|
return K(l, () => e.fileSize = Number(l.value)), (a, i) => {
|
|
4779
4780
|
const s = C("el-switch"), u = C("el-form-item"), p = C("el-input-number"), r = C("el-option"), g = C("el-select"), h = C("el-input"), m = C("el-form");
|
|
@@ -4810,7 +4811,7 @@ const v3 = { component: h3, renderer: f3, propEditor: p3 }, g3 = /* @__PURE__ */
|
|
|
4810
4811
|
type: "number",
|
|
4811
4812
|
min: 0,
|
|
4812
4813
|
modelValue: n(l),
|
|
4813
|
-
"onUpdate:modelValue": i[3] || (i[3] = (d) =>
|
|
4814
|
+
"onUpdate:modelValue": i[3] || (i[3] = (d) => fe(l) ? l.value = d : null),
|
|
4814
4815
|
modelModifiers: { number: !0 },
|
|
4815
4816
|
placeholder: "文件大小,0为不限"
|
|
4816
4817
|
}, {
|
|
@@ -4850,10 +4851,10 @@ const v3 = { component: h3, renderer: f3, propEditor: p3 }, g3 = /* @__PURE__ */
|
|
|
4850
4851
|
};
|
|
4851
4852
|
}
|
|
4852
4853
|
});
|
|
4853
|
-
const _3 = { class: "upload-component" }, y3 = /* @__PURE__ */ T("span", { class: "
|
|
4854
|
+
const _3 = { class: "upload-component" }, y3 = /* @__PURE__ */ T("span", { class: "ml-10 theme-color-hasBgFontColor" }, "上传文件", -1), b3 = {
|
|
4854
4855
|
key: 0,
|
|
4855
4856
|
class: "description"
|
|
4856
|
-
}, w3 = /* @__PURE__ */
|
|
4857
|
+
}, w3 = /* @__PURE__ */ re({
|
|
4857
4858
|
__name: "renderer",
|
|
4858
4859
|
props: {
|
|
4859
4860
|
/**
|
|
@@ -4894,7 +4895,7 @@ const _3 = { class: "upload-component" }, y3 = /* @__PURE__ */ T("span", { class
|
|
|
4894
4895
|
},
|
|
4895
4896
|
setup(t) {
|
|
4896
4897
|
const { checkFile: o } = Ne(), e = t;
|
|
4897
|
-
let l =
|
|
4898
|
+
let l = se("uploadOptions"), a = se("formData");
|
|
4898
4899
|
const { datas: i, componentProps: s } = Le(e), u = G();
|
|
4899
4900
|
i.value[e.componentID] || (i.value[e.componentID] = []);
|
|
4900
4901
|
const p = (m) => {
|
|
@@ -4950,8 +4951,7 @@ const _3 = { class: "upload-component" }, y3 = /* @__PURE__ */ T("span", { class
|
|
|
4950
4951
|
return [
|
|
4951
4952
|
n(s).fileLimit > (((w = n(i)[t.componentID]) == null ? void 0 : w.length) || 0) ? (f(), k(_, {
|
|
4952
4953
|
key: 0,
|
|
4953
|
-
|
|
4954
|
-
color: "#409eff"
|
|
4954
|
+
class: "zhy edit-button"
|
|
4955
4955
|
}, {
|
|
4956
4956
|
icon: v(() => [
|
|
4957
4957
|
c(y, {
|
|
@@ -4999,11 +4999,11 @@ let D3 = class extends Je {
|
|
|
4999
4999
|
};
|
|
5000
5000
|
}
|
|
5001
5001
|
};
|
|
5002
|
-
const C3 = { component: D3, renderer: w3, propEditor: g3 }, x3 = /* @__PURE__ */
|
|
5002
|
+
const C3 = { component: D3, renderer: w3, propEditor: g3 }, x3 = /* @__PURE__ */ re({
|
|
5003
5003
|
__name: "propsEditor",
|
|
5004
5004
|
props: {},
|
|
5005
5005
|
setup(t) {
|
|
5006
|
-
let e =
|
|
5006
|
+
let e = se("formDesignerData").selectComponent.props;
|
|
5007
5007
|
const l = G(e.fileSize);
|
|
5008
5008
|
return K(l, () => e.fileSize = Number(l.value)), (a, i) => {
|
|
5009
5009
|
const s = C("el-switch"), u = C("el-form-item"), p = C("el-input-number"), r = C("el-option"), g = C("el-select"), h = C("el-input"), m = C("el-form");
|
|
@@ -5040,7 +5040,7 @@ const C3 = { component: D3, renderer: w3, propEditor: g3 }, x3 = /* @__PURE__ */
|
|
|
5040
5040
|
type: "number",
|
|
5041
5041
|
min: 0,
|
|
5042
5042
|
modelValue: n(l),
|
|
5043
|
-
"onUpdate:modelValue": i[3] || (i[3] = (d) =>
|
|
5043
|
+
"onUpdate:modelValue": i[3] || (i[3] = (d) => fe(l) ? l.value = d : null),
|
|
5044
5044
|
placeholder: "文件大小,0为不限"
|
|
5045
5045
|
}, {
|
|
5046
5046
|
append: v(() => [
|
|
@@ -5083,7 +5083,7 @@ const C3 = { component: D3, renderer: w3, propEditor: g3 }, x3 = /* @__PURE__ */
|
|
|
5083
5083
|
const V3 = { class: "upload-image-component" }, S3 = { class: "el-upload-list__item-actions" }, E3 = { class: "el-upload-list__item-preview" }, k3 = { class: "el-upload-list__item-delete" }, $3 = {
|
|
5084
5084
|
key: 0,
|
|
5085
5085
|
class: "description"
|
|
5086
|
-
}, T3 = /* @__PURE__ */
|
|
5086
|
+
}, T3 = /* @__PURE__ */ re({
|
|
5087
5087
|
__name: "renderer",
|
|
5088
5088
|
props: {
|
|
5089
5089
|
/**
|
|
@@ -5124,7 +5124,7 @@ const V3 = { class: "upload-image-component" }, S3 = { class: "el-upload-list__i
|
|
|
5124
5124
|
},
|
|
5125
5125
|
setup(t) {
|
|
5126
5126
|
const { checkFile: o } = Ne(), e = t;
|
|
5127
|
-
let l =
|
|
5127
|
+
let l = se("uploadOptions"), a = se("formData");
|
|
5128
5128
|
const { datas: i, componentProps: s } = Le(e), u = G(), p = G();
|
|
5129
5129
|
i.value[e.componentID] || (i.value[e.componentID] = []);
|
|
5130
5130
|
const r = (d) => {
|
|
@@ -5157,13 +5157,13 @@ const V3 = { class: "upload-image-component" }, S3 = { class: "el-upload-list__i
|
|
|
5157
5157
|
(y = i.value[e.componentID]) != null && y.length && (d += `,您已上传了${i.value[e.componentID].length}个图片,最多还能选择${s.value.fileLimit - i.value[e.componentID].length}个图片`), Me("error", d);
|
|
5158
5158
|
};
|
|
5159
5159
|
return (d, y) => {
|
|
5160
|
-
var
|
|
5160
|
+
var x;
|
|
5161
5161
|
const _ = be, b = C("el-image"), w = C("el-upload");
|
|
5162
5162
|
return f(), S("div", V3, [
|
|
5163
5163
|
c(w, {
|
|
5164
5164
|
ref_key: "uploadImageRef",
|
|
5165
5165
|
ref: u,
|
|
5166
|
-
class: Oe({ "hidden-trigger": n(s).fileLimit <= (((
|
|
5166
|
+
class: Oe({ "hidden-trigger": n(s).fileLimit <= (((x = n(i)[t.componentID]) == null ? void 0 : x.length) || 0) }),
|
|
5167
5167
|
"list-type": "picture-card",
|
|
5168
5168
|
action: n(l).serverApi,
|
|
5169
5169
|
headers: n(l).headers,
|
|
@@ -5204,7 +5204,7 @@ const V3 = { class: "upload-image-component" }, S3 = { class: "el-upload-list__i
|
|
|
5204
5204
|
c(_, {
|
|
5205
5205
|
name: "delete",
|
|
5206
5206
|
color: "#ff0000",
|
|
5207
|
-
onClick: (
|
|
5207
|
+
onClick: (V) => g(D)
|
|
5208
5208
|
}, null, 8, ["onClick"])
|
|
5209
5209
|
])
|
|
5210
5210
|
])
|
|
@@ -5296,38 +5296,38 @@ function P3(t, o, e, l = {}) {
|
|
|
5296
5296
|
} = l, d = nn(), y = e || (d == null ? void 0 : d.emit) || ((a = d == null ? void 0 : d.$emit) == null ? void 0 : a.bind(d)) || ((s = (i = d == null ? void 0 : d.proxy) == null ? void 0 : i.$emit) == null ? void 0 : s.bind(d == null ? void 0 : d.proxy));
|
|
5297
5297
|
let _ = r;
|
|
5298
5298
|
o || (o = "modelValue"), _ = _ || `update:${o.toString()}`;
|
|
5299
|
-
const b = (D) => u ? typeof u == "function" ? u(D) : U3(D) : D, w = () => I3(t[o]) ? b(t[o]) : h,
|
|
5299
|
+
const b = (D) => u ? typeof u == "function" ? u(D) : U3(D) : D, w = () => I3(t[o]) ? b(t[o]) : h, x = (D) => {
|
|
5300
5300
|
m ? m(D) && y(_, D) : y(_, D);
|
|
5301
5301
|
};
|
|
5302
5302
|
if (p) {
|
|
5303
|
-
const D = w(),
|
|
5303
|
+
const D = w(), V = G(D);
|
|
5304
5304
|
let $ = !1;
|
|
5305
5305
|
return K(
|
|
5306
5306
|
() => t[o],
|
|
5307
5307
|
(E) => {
|
|
5308
|
-
$ || ($ = !0,
|
|
5308
|
+
$ || ($ = !0, V.value = b(E), gt(() => $ = !1));
|
|
5309
5309
|
}
|
|
5310
5310
|
), K(
|
|
5311
|
-
|
|
5311
|
+
V,
|
|
5312
5312
|
(E) => {
|
|
5313
|
-
!$ && (E !== t[o] || g) &&
|
|
5313
|
+
!$ && (E !== t[o] || g) && x(E);
|
|
5314
5314
|
},
|
|
5315
5315
|
{ deep: g }
|
|
5316
|
-
),
|
|
5316
|
+
), V;
|
|
5317
5317
|
} else
|
|
5318
5318
|
return Xe({
|
|
5319
5319
|
get() {
|
|
5320
5320
|
return w();
|
|
5321
5321
|
},
|
|
5322
5322
|
set(D) {
|
|
5323
|
-
|
|
5323
|
+
x(D);
|
|
5324
5324
|
}
|
|
5325
5325
|
});
|
|
5326
5326
|
}
|
|
5327
|
-
const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { style: { float: "right", color: "#8492a6" } }, R3 = /* @__PURE__ */
|
|
5327
|
+
const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { style: { float: "right", color: "#8492a6" } }, R3 = /* @__PURE__ */ re({
|
|
5328
5328
|
__name: "propsEditor",
|
|
5329
5329
|
setup(t) {
|
|
5330
|
-
let o =
|
|
5330
|
+
let o = se("formDesignerData"), e = o.selectComponent.props;
|
|
5331
5331
|
const l = G([]);
|
|
5332
5332
|
K(
|
|
5333
5333
|
() => e.options,
|
|
@@ -5360,7 +5360,7 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5360
5360
|
}, p.value = e.options;
|
|
5361
5361
|
};
|
|
5362
5362
|
return (m, d) => {
|
|
5363
|
-
const y = C("el-radio-button"), _ = C("el-radio-group"), b = C("el-form-item"), w = C("el-switch"),
|
|
5363
|
+
const y = C("el-radio-button"), _ = C("el-radio-group"), b = C("el-form-item"), w = C("el-switch"), x = C("el-input-number"), D = C("el-divider"), V = be, $ = C("el-option"), E = C("el-select"), A = C("el-button"), W = C("el-form");
|
|
5364
5364
|
return f(), k(W, {
|
|
5365
5365
|
"label-width": "80px",
|
|
5366
5366
|
"label-suffix": ":",
|
|
@@ -5427,7 +5427,7 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5427
5427
|
default: v(() => {
|
|
5428
5428
|
var U;
|
|
5429
5429
|
return [
|
|
5430
|
-
c(
|
|
5430
|
+
c(x, {
|
|
5431
5431
|
modelValue: n(e).min,
|
|
5432
5432
|
"onUpdate:modelValue": d[3] || (d[3] = (F) => n(e).min = F),
|
|
5433
5433
|
step: 1,
|
|
@@ -5442,7 +5442,7 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5442
5442
|
default: v(() => {
|
|
5443
5443
|
var U;
|
|
5444
5444
|
return [
|
|
5445
|
-
c(
|
|
5445
|
+
c(x, {
|
|
5446
5446
|
modelValue: n(e).max,
|
|
5447
5447
|
"onUpdate:modelValue": d[4] || (d[4] = (F) => n(e).max = F),
|
|
5448
5448
|
step: 1,
|
|
@@ -5472,7 +5472,7 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5472
5472
|
}, {
|
|
5473
5473
|
item: v(({ element: U, index: F }) => [
|
|
5474
5474
|
T("div", F3, [
|
|
5475
|
-
n(e).options.length > 1 ? (f(), k(
|
|
5475
|
+
n(e).options.length > 1 ? (f(), k(V, {
|
|
5476
5476
|
key: 0,
|
|
5477
5477
|
name: "move",
|
|
5478
5478
|
color: "#ff0000",
|
|
@@ -5493,7 +5493,7 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5493
5493
|
onChange: (P) => h(P, F)
|
|
5494
5494
|
}, {
|
|
5495
5495
|
default: v(() => [
|
|
5496
|
-
(f(!0), S(le, null,
|
|
5496
|
+
(f(!0), S(le, null, pe(n(p), (P, N) => (f(), k($, {
|
|
5497
5497
|
key: N,
|
|
5498
5498
|
label: P.label,
|
|
5499
5499
|
value: P.value
|
|
@@ -5513,7 +5513,7 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5513
5513
|
]),
|
|
5514
5514
|
_: 2
|
|
5515
5515
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "loading", "onChange"]),
|
|
5516
|
-
n(o).selectComponent.allowModify ? (f(), k(
|
|
5516
|
+
n(o).selectComponent.allowModify ? (f(), k(V, {
|
|
5517
5517
|
key: 1,
|
|
5518
5518
|
name: "delete",
|
|
5519
5519
|
color: "#ff0000",
|
|
@@ -5533,13 +5533,13 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5533
5533
|
}, {
|
|
5534
5534
|
default: v(() => [
|
|
5535
5535
|
c(A, {
|
|
5536
|
-
class: "add-option-item",
|
|
5536
|
+
class: "zhy add-option-item",
|
|
5537
5537
|
text: "",
|
|
5538
5538
|
type: "primary",
|
|
5539
5539
|
onClick: i
|
|
5540
5540
|
}, {
|
|
5541
5541
|
default: v(() => [
|
|
5542
|
-
c(
|
|
5542
|
+
c(V, {
|
|
5543
5543
|
name: "plus",
|
|
5544
5544
|
color: "#08c979",
|
|
5545
5545
|
size: "16px"
|
|
@@ -5560,7 +5560,7 @@ const F3 = { class: "option-wrap" }, N3 = { style: { float: "left" } }, H3 = { s
|
|
|
5560
5560
|
const B3 = { class: "employee-component" }, q3 = {
|
|
5561
5561
|
key: 3,
|
|
5562
5562
|
class: "description"
|
|
5563
|
-
}, Y3 = /* @__PURE__ */
|
|
5563
|
+
}, Y3 = /* @__PURE__ */ re({
|
|
5564
5564
|
__name: "renderer",
|
|
5565
5565
|
props: {
|
|
5566
5566
|
/**
|
|
@@ -5609,7 +5609,7 @@ const B3 = { class: "employee-component" }, q3 = {
|
|
|
5609
5609
|
emits: ["update:datas", "update:componentProps"],
|
|
5610
5610
|
setup(t, { emit: o }) {
|
|
5611
5611
|
const e = t;
|
|
5612
|
-
let l =
|
|
5612
|
+
let l = se("formData");
|
|
5613
5613
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
5614
5614
|
K(s, (g) => g ? a.value[e.componentID] = g : delete a.value[e.componentID]);
|
|
5615
5615
|
const u = o;
|
|
@@ -5628,18 +5628,19 @@ const B3 = { class: "employee-component" }, q3 = {
|
|
|
5628
5628
|
i.value.clearable && a.value[e.componentID] === h && (s.value = void 0, g.preventDefault());
|
|
5629
5629
|
};
|
|
5630
5630
|
return (g, h) => {
|
|
5631
|
-
const m = C("el-radio"), d = C("el-radio-group"), y = C("el-checkbox"), _ = C("el-checkbox-group"), b = C("el-option"), w = C("el-select"),
|
|
5631
|
+
const m = C("el-radio"), d = C("el-radio-group"), y = C("el-checkbox"), _ = C("el-checkbox-group"), b = C("el-option"), w = C("el-select"), x = be;
|
|
5632
5632
|
return f(), S("div", B3, [
|
|
5633
5633
|
n(i).type === "radio" ? (f(), k(d, {
|
|
5634
5634
|
key: 0,
|
|
5635
5635
|
class: Oe(["radio-type", { "new-line": n(i).newLine }]),
|
|
5636
5636
|
modelValue: n(s),
|
|
5637
|
-
"onUpdate:modelValue": h[0] || (h[0] = (D) =>
|
|
5637
|
+
"onUpdate:modelValue": h[0] || (h[0] = (D) => fe(s) ? s.value = D : null),
|
|
5638
5638
|
disabled: t.disabled
|
|
5639
5639
|
}, {
|
|
5640
5640
|
default: v(() => [
|
|
5641
|
-
(f(!0), S(le, null,
|
|
5642
|
-
|
|
5641
|
+
(f(!0), S(le, null, pe(n(i).options, (D, V) => (f(), k(m, {
|
|
5642
|
+
class: "zhy",
|
|
5643
|
+
key: V,
|
|
5643
5644
|
value: D.value,
|
|
5644
5645
|
onClick: ($) => r($, D.value)
|
|
5645
5646
|
}, {
|
|
@@ -5655,15 +5656,16 @@ const B3 = { class: "employee-component" }, q3 = {
|
|
|
5655
5656
|
key: 1,
|
|
5656
5657
|
class: Oe(["checkbox-type", { "new-line": n(i).newLine }]),
|
|
5657
5658
|
modelValue: n(s),
|
|
5658
|
-
"onUpdate:modelValue": h[1] || (h[1] = (D) =>
|
|
5659
|
+
"onUpdate:modelValue": h[1] || (h[1] = (D) => fe(s) ? s.value = D : null),
|
|
5659
5660
|
disabled: t.disabled,
|
|
5660
5661
|
min: n(i).min,
|
|
5661
5662
|
max: n(i).max
|
|
5662
5663
|
}, {
|
|
5663
5664
|
default: v(() => [
|
|
5664
|
-
(f(!0), S(le, null,
|
|
5665
|
+
(f(!0), S(le, null, pe(n(i).options, (D, V) => (f(), k(y, {
|
|
5666
|
+
class: "zhy",
|
|
5665
5667
|
value: D.value,
|
|
5666
|
-
key:
|
|
5668
|
+
key: V
|
|
5667
5669
|
}, {
|
|
5668
5670
|
default: v(() => [
|
|
5669
5671
|
Y(ie(D.label), 1)
|
|
@@ -5677,13 +5679,13 @@ const B3 = { class: "employee-component" }, q3 = {
|
|
|
5677
5679
|
key: 2,
|
|
5678
5680
|
class: "selector-type",
|
|
5679
5681
|
modelValue: n(s),
|
|
5680
|
-
"onUpdate:modelValue": h[2] || (h[2] = (D) =>
|
|
5682
|
+
"onUpdate:modelValue": h[2] || (h[2] = (D) => fe(s) ? s.value = D : null),
|
|
5681
5683
|
multiple: n(i).multiple,
|
|
5682
5684
|
placeholder: "请选择"
|
|
5683
5685
|
}, {
|
|
5684
5686
|
default: v(() => [
|
|
5685
|
-
(f(!0), S(le, null,
|
|
5686
|
-
key:
|
|
5687
|
+
(f(!0), S(le, null, pe(n(i).options, (D, V) => (f(), k(b, {
|
|
5688
|
+
key: V,
|
|
5687
5689
|
label: D.label,
|
|
5688
5690
|
value: D.value
|
|
5689
5691
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -5691,7 +5693,7 @@ const B3 = { class: "employee-component" }, q3 = {
|
|
|
5691
5693
|
_: 1
|
|
5692
5694
|
}, 8, ["modelValue", "multiple"])) : z("", !0),
|
|
5693
5695
|
t.isDesigner && n(i).description || t.showDescription && (n(l).props.formType === "2" || n(i).description) ? (f(), S("div", q3, [
|
|
5694
|
-
c(
|
|
5696
|
+
c(x, {
|
|
5695
5697
|
name: "tip",
|
|
5696
5698
|
color: "#ff0000"
|
|
5697
5699
|
}),
|
|
@@ -5773,10 +5775,10 @@ function ll() {
|
|
|
5773
5775
|
}
|
|
5774
5776
|
};
|
|
5775
5777
|
}
|
|
5776
|
-
const G3 = /* @__PURE__ */
|
|
5778
|
+
const G3 = /* @__PURE__ */ re({
|
|
5777
5779
|
__name: "propsEditor",
|
|
5778
5780
|
setup(t) {
|
|
5779
|
-
let o =
|
|
5781
|
+
let o = se("formDesignerData"), e = o.selectComponent.props;
|
|
5780
5782
|
const { getGradeItems: l } = ll(), a = G([]);
|
|
5781
5783
|
return K(e, () => {
|
|
5782
5784
|
a.value = l(e), o.selectComponent.filterConditionProps || (o.selectComponent.filterConditionProps = {}), o.selectComponent.filterConditionProps.options = a.value;
|
|
@@ -5797,7 +5799,7 @@ const G3 = /* @__PURE__ */ se({
|
|
|
5797
5799
|
placeholder: "请选择默认值"
|
|
5798
5800
|
}, {
|
|
5799
5801
|
default: v(() => [
|
|
5800
|
-
(f(!0), S(le, null,
|
|
5802
|
+
(f(!0), S(le, null, pe(n(a), (d, y) => (f(), k(u, {
|
|
5801
5803
|
key: y,
|
|
5802
5804
|
label: d.label,
|
|
5803
5805
|
value: d.value
|
|
@@ -5896,7 +5898,7 @@ const G3 = /* @__PURE__ */ se({
|
|
|
5896
5898
|
});
|
|
5897
5899
|
};
|
|
5898
5900
|
}
|
|
5899
|
-
}), X3 = { class: "auto-complete" }, J3 = { key: 0 }, K3 = /* @__PURE__ */
|
|
5901
|
+
}), X3 = { class: "auto-complete" }, J3 = { key: 0 }, K3 = /* @__PURE__ */ re({
|
|
5900
5902
|
__name: "autoComplete",
|
|
5901
5903
|
props: {
|
|
5902
5904
|
modelValue: {
|
|
@@ -5946,7 +5948,7 @@ const G3 = /* @__PURE__ */ se({
|
|
|
5946
5948
|
}, g = (d) => ({
|
|
5947
5949
|
start: (_) => _.value.toLowerCase().indexOf(d.toLowerCase()) === 0,
|
|
5948
5950
|
random: (_) => _.value.indexOf(d) >= 0
|
|
5949
|
-
})[l.matchMode], h =
|
|
5951
|
+
})[l.matchMode], h = se("convertPX"), m = Xe(() => `${h(i.value)}px`);
|
|
5950
5952
|
return (d, y) => {
|
|
5951
5953
|
const _ = C("el-autocomplete");
|
|
5952
5954
|
return f(), S("div", X3, [
|
|
@@ -5955,7 +5957,7 @@ const G3 = /* @__PURE__ */ se({
|
|
|
5955
5957
|
ref_key: "autoCompleteRef",
|
|
5956
5958
|
ref: e,
|
|
5957
5959
|
modelValue: n(u),
|
|
5958
|
-
"onUpdate:modelValue": y[0] || (y[0] = (b) =>
|
|
5960
|
+
"onUpdate:modelValue": y[0] || (y[0] = (b) => fe(u) ? u.value = b : null),
|
|
5959
5961
|
"select-when-unmatched": t.selectWhenUnmatched,
|
|
5960
5962
|
"fetch-suggestions": r,
|
|
5961
5963
|
"value-key": "value",
|
|
@@ -5975,7 +5977,7 @@ const G3 = /* @__PURE__ */ se({
|
|
|
5975
5977
|
const Z3 = { class: "grade-component" }, Q3 = {
|
|
5976
5978
|
key: 3,
|
|
5977
5979
|
class: "description"
|
|
5978
|
-
}, er = /* @__PURE__ */
|
|
5980
|
+
}, er = /* @__PURE__ */ re({
|
|
5979
5981
|
__name: "renderer",
|
|
5980
5982
|
props: {
|
|
5981
5983
|
/**
|
|
@@ -6024,7 +6026,7 @@ const Z3 = { class: "grade-component" }, Q3 = {
|
|
|
6024
6026
|
emits: ["update:datas"],
|
|
6025
6027
|
setup(t, { emit: o }) {
|
|
6026
6028
|
const e = t, { getGradeItems: l } = ll();
|
|
6027
|
-
let a =
|
|
6029
|
+
let a = se("formData");
|
|
6028
6030
|
const { datas: i, componentProps: s } = Le(e), u = G(i.value[e.componentID] || {});
|
|
6029
6031
|
K(
|
|
6030
6032
|
u,
|
|
@@ -6057,8 +6059,9 @@ const Z3 = { class: "grade-component" }, Q3 = {
|
|
|
6057
6059
|
disabled: t.disabled
|
|
6058
6060
|
}, {
|
|
6059
6061
|
default: v(() => [
|
|
6060
|
-
(f(!0), S(le, null,
|
|
6061
|
-
|
|
6062
|
+
(f(!0), S(le, null, pe(n(p), (w, x) => (f(), k(d, {
|
|
6063
|
+
class: "zhy",
|
|
6064
|
+
key: x,
|
|
6062
6065
|
value: w.value,
|
|
6063
6066
|
onClick: (D) => g(D, w.value)
|
|
6064
6067
|
}, {
|
|
@@ -6183,10 +6186,10 @@ let lr = class extends Je {
|
|
|
6183
6186
|
return ["INCLUDES", "EXCLUDE", "RANGE", "EMPTY"];
|
|
6184
6187
|
}
|
|
6185
6188
|
};
|
|
6186
|
-
const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */
|
|
6189
|
+
const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */ re({
|
|
6187
6190
|
__name: "propsEditor",
|
|
6188
6191
|
setup(t) {
|
|
6189
|
-
let o =
|
|
6192
|
+
let o = se("formDesignerData"), e = o.selectComponent.props;
|
|
6190
6193
|
K(
|
|
6191
6194
|
() => e.options,
|
|
6192
6195
|
() => {
|
|
@@ -6301,7 +6304,7 @@ const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */
|
|
|
6301
6304
|
}), ir = { class: "post-component" }, sr = {
|
|
6302
6305
|
key: 3,
|
|
6303
6306
|
class: "description"
|
|
6304
|
-
}, rr = /* @__PURE__ */
|
|
6307
|
+
}, rr = /* @__PURE__ */ re({
|
|
6305
6308
|
__name: "renderer",
|
|
6306
6309
|
props: {
|
|
6307
6310
|
/**
|
|
@@ -6350,7 +6353,7 @@ const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */
|
|
|
6350
6353
|
emits: ["update:datas", "update:componentProps"],
|
|
6351
6354
|
setup(t, { emit: o }) {
|
|
6352
6355
|
const e = t;
|
|
6353
|
-
let l =
|
|
6356
|
+
let l = se("formData");
|
|
6354
6357
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
6355
6358
|
K(s, (g) => g ? a.value[e.componentID] = g : delete a.value[e.componentID]);
|
|
6356
6359
|
const u = o;
|
|
@@ -6369,18 +6372,19 @@ const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */
|
|
|
6369
6372
|
i.value.clearable && a.value[e.componentID] === h && (s.value = void 0, g.preventDefault());
|
|
6370
6373
|
};
|
|
6371
6374
|
return (g, h) => {
|
|
6372
|
-
const m = C("el-radio"), d = C("el-radio-group"), y = C("el-checkbox"), _ = C("el-checkbox-group"), b = C("el-option"), w = C("el-select"),
|
|
6375
|
+
const m = C("el-radio"), d = C("el-radio-group"), y = C("el-checkbox"), _ = C("el-checkbox-group"), b = C("el-option"), w = C("el-select"), x = be;
|
|
6373
6376
|
return f(), S("div", ir, [
|
|
6374
6377
|
n(i).type === "radio" ? (f(), k(d, {
|
|
6375
6378
|
key: 0,
|
|
6376
6379
|
class: Oe(["radio-type", { "new-line": n(i).newLine }]),
|
|
6377
6380
|
modelValue: n(s),
|
|
6378
|
-
"onUpdate:modelValue": h[0] || (h[0] = (D) =>
|
|
6381
|
+
"onUpdate:modelValue": h[0] || (h[0] = (D) => fe(s) ? s.value = D : null),
|
|
6379
6382
|
disabled: t.disabled
|
|
6380
6383
|
}, {
|
|
6381
6384
|
default: v(() => [
|
|
6382
|
-
(f(!0), S(le, null,
|
|
6383
|
-
|
|
6385
|
+
(f(!0), S(le, null, pe(n(i).options, (D, V) => (f(), k(m, {
|
|
6386
|
+
class: "zhy",
|
|
6387
|
+
key: V,
|
|
6384
6388
|
value: D.value,
|
|
6385
6389
|
onClick: ($) => r($, D.value)
|
|
6386
6390
|
}, {
|
|
@@ -6396,15 +6400,16 @@ const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */
|
|
|
6396
6400
|
key: 1,
|
|
6397
6401
|
class: Oe(["checkbox-type", { "new-line": n(i).newLine }]),
|
|
6398
6402
|
modelValue: n(s),
|
|
6399
|
-
"onUpdate:modelValue": h[1] || (h[1] = (D) =>
|
|
6403
|
+
"onUpdate:modelValue": h[1] || (h[1] = (D) => fe(s) ? s.value = D : null),
|
|
6400
6404
|
disabled: t.disabled,
|
|
6401
6405
|
min: n(i).min,
|
|
6402
6406
|
max: n(i).max
|
|
6403
6407
|
}, {
|
|
6404
6408
|
default: v(() => [
|
|
6405
|
-
(f(!0), S(le, null,
|
|
6409
|
+
(f(!0), S(le, null, pe(n(i).options, (D, V) => (f(), k(y, {
|
|
6410
|
+
class: "zhy",
|
|
6406
6411
|
value: D.value,
|
|
6407
|
-
key:
|
|
6412
|
+
key: V
|
|
6408
6413
|
}, {
|
|
6409
6414
|
default: v(() => [
|
|
6410
6415
|
Y(ie(D.label), 1)
|
|
@@ -6418,13 +6423,13 @@ const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */
|
|
|
6418
6423
|
key: 2,
|
|
6419
6424
|
class: "selector-type",
|
|
6420
6425
|
modelValue: n(s),
|
|
6421
|
-
"onUpdate:modelValue": h[2] || (h[2] = (D) =>
|
|
6426
|
+
"onUpdate:modelValue": h[2] || (h[2] = (D) => fe(s) ? s.value = D : null),
|
|
6422
6427
|
multiple: n(i).multiple,
|
|
6423
6428
|
placeholder: "请选择"
|
|
6424
6429
|
}, {
|
|
6425
6430
|
default: v(() => [
|
|
6426
|
-
(f(!0), S(le, null,
|
|
6427
|
-
key:
|
|
6431
|
+
(f(!0), S(le, null, pe(n(i).options, (D, V) => (f(), k(b, {
|
|
6432
|
+
key: V,
|
|
6428
6433
|
label: D.label,
|
|
6429
6434
|
value: D.value
|
|
6430
6435
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -6432,7 +6437,7 @@ const nr = { component: lr, renderer: er, propEditor: G3 }, ar = /* @__PURE__ */
|
|
|
6432
6437
|
_: 1
|
|
6433
6438
|
}, 8, ["modelValue", "multiple"])) : z("", !0),
|
|
6434
6439
|
t.isDesigner && n(i).description || t.showDescription && (n(l).props.formType === "2" || n(i).description) ? (f(), S("div", sr, [
|
|
6435
|
-
c(
|
|
6440
|
+
c(x, {
|
|
6436
6441
|
name: "tip",
|
|
6437
6442
|
color: "#ff0000"
|
|
6438
6443
|
}),
|
|
@@ -6492,7 +6497,7 @@ let dr = class extends Je {
|
|
|
6492
6497
|
return ["INCLUDES", "EXCLUDE", "RANGE", "EMPTY"];
|
|
6493
6498
|
}
|
|
6494
6499
|
};
|
|
6495
|
-
const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "option-wrap" }, pr = /* @__PURE__ */
|
|
6500
|
+
const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "option-wrap" }, pr = /* @__PURE__ */ re({
|
|
6496
6501
|
__name: "propsEditor",
|
|
6497
6502
|
props: {
|
|
6498
6503
|
/**
|
|
@@ -6509,7 +6514,7 @@ const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "optio
|
|
|
6509
6514
|
}
|
|
6510
6515
|
},
|
|
6511
6516
|
setup(t) {
|
|
6512
|
-
let o =
|
|
6517
|
+
let o = se("formDesignerData"), e = se("defaultSourceType"), l = o.selectComponent.props;
|
|
6513
6518
|
K(l.options, () => {
|
|
6514
6519
|
o.selectComponent.filterConditionProps.options = l.options;
|
|
6515
6520
|
});
|
|
@@ -6521,8 +6526,8 @@ const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "optio
|
|
|
6521
6526
|
r.value = p.value, r.itemSourceType = p.itemSourceType;
|
|
6522
6527
|
};
|
|
6523
6528
|
return (p, r) => {
|
|
6524
|
-
const g = C("el-option"), h = C("el-select"), m = C("el-form-item"), d = C("el-switch"), y = C("el-input-number"), _ = C("el-divider"), b = be, w = C("el-checkbox"),
|
|
6525
|
-
return f(), k(
|
|
6529
|
+
const g = C("el-option"), h = C("el-select"), m = C("el-form-item"), d = C("el-switch"), y = C("el-input-number"), _ = C("el-divider"), b = be, w = C("el-checkbox"), x = C("el-tooltip"), D = C("el-button"), V = C("el-form");
|
|
6530
|
+
return f(), k(V, {
|
|
6526
6531
|
"label-width": "80px",
|
|
6527
6532
|
"label-suffix": ":",
|
|
6528
6533
|
class: "checkbox-props-editor"
|
|
@@ -6538,7 +6543,7 @@ const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "optio
|
|
|
6538
6543
|
placeholder: "请选择默认值"
|
|
6539
6544
|
}, {
|
|
6540
6545
|
default: v(() => [
|
|
6541
|
-
(f(!0), S(le, null,
|
|
6546
|
+
(f(!0), S(le, null, pe(n(l).options, ($, E) => (f(), k(g, {
|
|
6542
6547
|
key: E,
|
|
6543
6548
|
label: $.label,
|
|
6544
6549
|
value: $.value
|
|
@@ -6620,14 +6625,14 @@ const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "optio
|
|
|
6620
6625
|
disabled: !n(o).selectComponent.allowModify,
|
|
6621
6626
|
onChange: (A) => u(A, $)
|
|
6622
6627
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "dictionary", "allowCreateDictionary", "disabled", "onChange"]),
|
|
6623
|
-
c(
|
|
6628
|
+
c(x, {
|
|
6624
6629
|
effect: "dark",
|
|
6625
6630
|
content: "允许填空",
|
|
6626
6631
|
placement: "top"
|
|
6627
6632
|
}, {
|
|
6628
6633
|
default: v(() => [
|
|
6629
6634
|
c(w, {
|
|
6630
|
-
class: "input-enable",
|
|
6635
|
+
class: "zhy input-enable",
|
|
6631
6636
|
modelValue: $.inputEnable,
|
|
6632
6637
|
"onUpdate:modelValue": (A) => $.inputEnable = A
|
|
6633
6638
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -6654,7 +6659,7 @@ const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "optio
|
|
|
6654
6659
|
}, {
|
|
6655
6660
|
default: v(() => [
|
|
6656
6661
|
c(D, {
|
|
6657
|
-
class: "add-option-item",
|
|
6662
|
+
class: "zhy add-option-item",
|
|
6658
6663
|
text: "",
|
|
6659
6664
|
type: "primary",
|
|
6660
6665
|
onClick: i
|
|
@@ -6681,7 +6686,7 @@ const ur = { component: dr, renderer: rr, propEditor: ar }, cr = { class: "optio
|
|
|
6681
6686
|
const mr = { class: "checkbox-component" }, fr = {
|
|
6682
6687
|
key: 0,
|
|
6683
6688
|
class: "description"
|
|
6684
|
-
}, hr = /* @__PURE__ */
|
|
6689
|
+
}, hr = /* @__PURE__ */ re({
|
|
6685
6690
|
__name: "renderer",
|
|
6686
6691
|
props: {
|
|
6687
6692
|
/**
|
|
@@ -6730,7 +6735,7 @@ const mr = { class: "checkbox-component" }, fr = {
|
|
|
6730
6735
|
emits: ["update:datas"],
|
|
6731
6736
|
setup(t, { emit: o }) {
|
|
6732
6737
|
const e = t;
|
|
6733
|
-
let l =
|
|
6738
|
+
let l = se("formData");
|
|
6734
6739
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
6735
6740
|
K(s, (r) => a.value[e.componentID] = r);
|
|
6736
6741
|
const u = o;
|
|
@@ -6753,20 +6758,21 @@ const mr = { class: "checkbox-component" }, fr = {
|
|
|
6753
6758
|
c(d, {
|
|
6754
6759
|
class: Oe({ "new-line": n(i).newLine }),
|
|
6755
6760
|
modelValue: n(s),
|
|
6756
|
-
"onUpdate:modelValue": g[0] || (g[0] = (_) =>
|
|
6761
|
+
"onUpdate:modelValue": g[0] || (g[0] = (_) => fe(s) ? s.value = _ : null),
|
|
6757
6762
|
disabled: t.disabled,
|
|
6758
6763
|
min: n(i).min,
|
|
6759
6764
|
max: n(i).max,
|
|
6760
6765
|
onChange: p
|
|
6761
6766
|
}, {
|
|
6762
6767
|
default: v(() => [
|
|
6763
|
-
(f(!0), S(le, null,
|
|
6768
|
+
(f(!0), S(le, null, pe(n(i).options, (_, b) => {
|
|
6764
6769
|
var w;
|
|
6765
6770
|
return f(), S("div", {
|
|
6766
6771
|
class: "checkbox-wrap",
|
|
6767
6772
|
key: b
|
|
6768
6773
|
}, [
|
|
6769
6774
|
c(h, {
|
|
6775
|
+
class: "zhy",
|
|
6770
6776
|
value: _.value
|
|
6771
6777
|
}, {
|
|
6772
6778
|
default: v(() => [
|
|
@@ -6778,7 +6784,7 @@ const mr = { class: "checkbox-component" }, fr = {
|
|
|
6778
6784
|
key: 0,
|
|
6779
6785
|
class: "option-input",
|
|
6780
6786
|
modelValue: n(a)[`${t.componentID}||${_.value}`],
|
|
6781
|
-
"onUpdate:modelValue": (
|
|
6787
|
+
"onUpdate:modelValue": (x) => n(a)[`${t.componentID}||${_.value}`] = x
|
|
6782
6788
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : z("", !0)
|
|
6783
6789
|
]);
|
|
6784
6790
|
}), 128))
|
|
@@ -6849,11 +6855,11 @@ let vr = class extends Je {
|
|
|
6849
6855
|
return ["RANGE"];
|
|
6850
6856
|
}
|
|
6851
6857
|
};
|
|
6852
|
-
const gr = { component: vr, renderer: hr, propEditor: pr }, _r = /* @__PURE__ */
|
|
6858
|
+
const gr = { component: vr, renderer: hr, propEditor: pr }, _r = /* @__PURE__ */ re({
|
|
6853
6859
|
__name: "propsEditor",
|
|
6854
6860
|
setup(t) {
|
|
6855
6861
|
const { computedExpression: o } = Ne();
|
|
6856
|
-
let e =
|
|
6862
|
+
let e = se("formDesignerData"), l = e.selectComponent.props, a = e.selectComponent.rules;
|
|
6857
6863
|
const i = (p) => {
|
|
6858
6864
|
p && (a[1].pattern = o(p));
|
|
6859
6865
|
}, s = (p) => {
|
|
@@ -6948,7 +6954,7 @@ const gr = { component: vr, renderer: hr, propEditor: pr }, _r = /* @__PURE__ */
|
|
|
6948
6954
|
}), yr = { class: "input-component" }, br = {
|
|
6949
6955
|
key: 0,
|
|
6950
6956
|
class: "description"
|
|
6951
|
-
}, wr = /* @__PURE__ */
|
|
6957
|
+
}, wr = /* @__PURE__ */ re({
|
|
6952
6958
|
__name: "renderer",
|
|
6953
6959
|
props: {
|
|
6954
6960
|
/**
|
|
@@ -7004,7 +7010,7 @@ const gr = { component: vr, renderer: hr, propEditor: pr }, _r = /* @__PURE__ */
|
|
|
7004
7010
|
emits: ["update:datas"],
|
|
7005
7011
|
setup(t, { emit: o }) {
|
|
7006
7012
|
const e = t;
|
|
7007
|
-
let l =
|
|
7013
|
+
let l = se("formData");
|
|
7008
7014
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
7009
7015
|
K(s, (p) => a.value[e.componentID] = p);
|
|
7010
7016
|
const u = o;
|
|
@@ -7021,7 +7027,7 @@ const gr = { component: vr, renderer: hr, propEditor: pr }, _r = /* @__PURE__ */
|
|
|
7021
7027
|
type: n(i).type,
|
|
7022
7028
|
"show-password": n(i).showPassword,
|
|
7023
7029
|
modelValue: n(s),
|
|
7024
|
-
"onUpdate:modelValue": r[0] || (r[0] = (m) =>
|
|
7030
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => fe(s) ? s.value = m : null),
|
|
7025
7031
|
placeholder: n(i).placeholder,
|
|
7026
7032
|
clearable: n(i).clearable,
|
|
7027
7033
|
disabled: t.disabled,
|
|
@@ -7093,7 +7099,7 @@ let Dr = class extends Je {
|
|
|
7093
7099
|
return ["RANGE"];
|
|
7094
7100
|
}
|
|
7095
7101
|
};
|
|
7096
|
-
const Cr = { component: Dr, renderer: wr, propEditor: _r }, xr = /* @__PURE__ */
|
|
7102
|
+
const Cr = { component: Dr, renderer: wr, propEditor: _r }, xr = /* @__PURE__ */ re({
|
|
7097
7103
|
__name: "renderer",
|
|
7098
7104
|
props: {
|
|
7099
7105
|
componentProps: {
|
|
@@ -7129,7 +7135,7 @@ let Vr = class extends Je {
|
|
|
7129
7135
|
};
|
|
7130
7136
|
}
|
|
7131
7137
|
};
|
|
7132
|
-
const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "option-wrap" }, kr = /* @__PURE__ */
|
|
7138
|
+
const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "option-wrap" }, kr = /* @__PURE__ */ re({
|
|
7133
7139
|
__name: "propsEditor",
|
|
7134
7140
|
props: {
|
|
7135
7141
|
/**
|
|
@@ -7146,7 +7152,7 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7146
7152
|
}
|
|
7147
7153
|
},
|
|
7148
7154
|
setup(t) {
|
|
7149
|
-
let o =
|
|
7155
|
+
let o = se("formDesignerData"), e = se("defaultSourceType"), l = o.selectComponent.props;
|
|
7150
7156
|
K(l.options, () => {
|
|
7151
7157
|
o.selectComponent.filterConditionProps.options = l.options;
|
|
7152
7158
|
});
|
|
@@ -7158,7 +7164,7 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7158
7164
|
r.value = p.value, r.itemSourceType = p.itemSourceType;
|
|
7159
7165
|
};
|
|
7160
7166
|
return (p, r) => {
|
|
7161
|
-
const g = C("el-option"), h = C("el-select"), m = C("el-form-item"), d = C("el-switch"), y = C("el-divider"), _ = be, b = C("el-checkbox"), w = C("el-tooltip"),
|
|
7167
|
+
const g = C("el-option"), h = C("el-select"), m = C("el-form-item"), d = C("el-switch"), y = C("el-divider"), _ = be, b = C("el-checkbox"), w = C("el-tooltip"), x = C("el-button"), D = C("el-form");
|
|
7162
7168
|
return f(), k(D, {
|
|
7163
7169
|
"label-width": "80px",
|
|
7164
7170
|
"label-suffix": ":",
|
|
@@ -7169,15 +7175,15 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7169
7175
|
default: v(() => [
|
|
7170
7176
|
c(h, {
|
|
7171
7177
|
modelValue: n(l).defaultValue,
|
|
7172
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
7178
|
+
"onUpdate:modelValue": r[0] || (r[0] = (V) => n(l).defaultValue = V),
|
|
7173
7179
|
clearable: "",
|
|
7174
7180
|
placeholder: "请选择默认值"
|
|
7175
7181
|
}, {
|
|
7176
7182
|
default: v(() => [
|
|
7177
|
-
(f(!0), S(le, null,
|
|
7183
|
+
(f(!0), S(le, null, pe(n(l).options, (V, $) => (f(), k(g, {
|
|
7178
7184
|
key: $,
|
|
7179
|
-
label:
|
|
7180
|
-
value:
|
|
7185
|
+
label: V.label,
|
|
7186
|
+
value: V.value
|
|
7181
7187
|
}, null, 8, ["label", "value"]))), 128))
|
|
7182
7188
|
]),
|
|
7183
7189
|
_: 1
|
|
@@ -7189,7 +7195,7 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7189
7195
|
default: v(() => [
|
|
7190
7196
|
c(d, {
|
|
7191
7197
|
modelValue: n(l).newLine,
|
|
7192
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
7198
|
+
"onUpdate:modelValue": r[1] || (r[1] = (V) => n(l).newLine = V)
|
|
7193
7199
|
}, null, 8, ["modelValue"])
|
|
7194
7200
|
]),
|
|
7195
7201
|
_: 1
|
|
@@ -7212,7 +7218,7 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7212
7218
|
tag: "div",
|
|
7213
7219
|
group: { name: "componentOptions", put: !1 }
|
|
7214
7220
|
}, {
|
|
7215
|
-
item: v(({ element:
|
|
7221
|
+
item: v(({ element: V, index: $ }) => [
|
|
7216
7222
|
T("div", Er, [
|
|
7217
7223
|
n(l).options.length > 1 ? (f(), k(_, {
|
|
7218
7224
|
key: 0,
|
|
@@ -7222,15 +7228,15 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7222
7228
|
class: "cursor-move"
|
|
7223
7229
|
})) : z("", !0),
|
|
7224
7230
|
c(To, {
|
|
7225
|
-
modelValue:
|
|
7226
|
-
"onUpdate:modelValue": (E) =>
|
|
7231
|
+
modelValue: V.label,
|
|
7232
|
+
"onUpdate:modelValue": (E) => V.label = E,
|
|
7227
7233
|
dictionary: t.dictionary,
|
|
7228
7234
|
allowCreateDictionary: t.allowCreateDictionary,
|
|
7229
7235
|
placeholder: "请输入选项",
|
|
7230
7236
|
"item-height": 50,
|
|
7231
7237
|
height: "40px",
|
|
7232
7238
|
disabled: !n(o).selectComponent.allowModify,
|
|
7233
|
-
onChange: (E) => u(E,
|
|
7239
|
+
onChange: (E) => u(E, V)
|
|
7234
7240
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "dictionary", "allowCreateDictionary", "disabled", "onChange"]),
|
|
7235
7241
|
c(w, {
|
|
7236
7242
|
effect: "dark",
|
|
@@ -7239,9 +7245,9 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7239
7245
|
}, {
|
|
7240
7246
|
default: v(() => [
|
|
7241
7247
|
c(b, {
|
|
7242
|
-
class: "input-enable",
|
|
7243
|
-
modelValue:
|
|
7244
|
-
"onUpdate:modelValue": (E) =>
|
|
7248
|
+
class: "zhy input-enable",
|
|
7249
|
+
modelValue: V.inputEnable,
|
|
7250
|
+
"onUpdate:modelValue": (E) => V.inputEnable = E
|
|
7245
7251
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
7246
7252
|
]),
|
|
7247
7253
|
_: 2
|
|
@@ -7265,8 +7271,8 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7265
7271
|
class: "add-option"
|
|
7266
7272
|
}, {
|
|
7267
7273
|
default: v(() => [
|
|
7268
|
-
c(
|
|
7269
|
-
class: "add-option-item",
|
|
7274
|
+
c(x, {
|
|
7275
|
+
class: "zhy add-option-item",
|
|
7270
7276
|
text: "",
|
|
7271
7277
|
type: "primary",
|
|
7272
7278
|
onClick: i
|
|
@@ -7293,7 +7299,7 @@ const Sr = { component: Vr, renderer: xr, undefined: void 0 }, Er = { class: "op
|
|
|
7293
7299
|
const $r = { class: "radio-component" }, Tr = {
|
|
7294
7300
|
key: 0,
|
|
7295
7301
|
class: "description"
|
|
7296
|
-
}, Mr = /* @__PURE__ */
|
|
7302
|
+
}, Mr = /* @__PURE__ */ re({
|
|
7297
7303
|
__name: "renderer",
|
|
7298
7304
|
props: {
|
|
7299
7305
|
/**
|
|
@@ -7342,7 +7348,7 @@ const $r = { class: "radio-component" }, Tr = {
|
|
|
7342
7348
|
emits: ["update:datas"],
|
|
7343
7349
|
setup(t, { emit: o }) {
|
|
7344
7350
|
const e = t;
|
|
7345
|
-
let l =
|
|
7351
|
+
let l = se("formData");
|
|
7346
7352
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
7347
7353
|
K(s, (g) => a.value[e.componentID] = g);
|
|
7348
7354
|
const u = o;
|
|
@@ -7371,18 +7377,19 @@ const $r = { class: "radio-component" }, Tr = {
|
|
|
7371
7377
|
c(y, {
|
|
7372
7378
|
class: Oe({ "new-line": n(i).newLine }),
|
|
7373
7379
|
modelValue: n(s),
|
|
7374
|
-
"onUpdate:modelValue": h[0] || (h[0] = (b) =>
|
|
7380
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => fe(s) ? s.value = b : null),
|
|
7375
7381
|
disabled: t.disabled,
|
|
7376
7382
|
onChange: p
|
|
7377
7383
|
}, {
|
|
7378
7384
|
default: v(() => [
|
|
7379
|
-
(f(!0), S(le, null,
|
|
7380
|
-
var
|
|
7385
|
+
(f(!0), S(le, null, pe(n(i).options, (b, w) => {
|
|
7386
|
+
var x;
|
|
7381
7387
|
return f(), S("div", {
|
|
7382
7388
|
class: "radio-wrap",
|
|
7383
7389
|
key: w
|
|
7384
7390
|
}, [
|
|
7385
7391
|
c(m, {
|
|
7392
|
+
class: "zhy",
|
|
7386
7393
|
value: b.value,
|
|
7387
7394
|
onClick: (D) => r(D, b.value)
|
|
7388
7395
|
}, {
|
|
@@ -7391,7 +7398,7 @@ const $r = { class: "radio-component" }, Tr = {
|
|
|
7391
7398
|
]),
|
|
7392
7399
|
_: 2
|
|
7393
7400
|
}, 1032, ["value", "onClick"]),
|
|
7394
|
-
b.inputEnable && (t.isDesigner || (
|
|
7401
|
+
b.inputEnable && (t.isDesigner || (x = n(s)) != null && x.includes(b.value)) ? (f(), k(d, {
|
|
7395
7402
|
key: 0,
|
|
7396
7403
|
class: "option-input",
|
|
7397
7404
|
modelValue: n(a)[`${t.componentID}||${b.value}`],
|
|
@@ -7573,11 +7580,11 @@ function Kl() {
|
|
|
7573
7580
|
isDatetimeProp: (l) => e.includes(l)
|
|
7574
7581
|
};
|
|
7575
7582
|
}
|
|
7576
|
-
const Lr = { class: "unit" }, Or = { class: "unit" }, Ar = /* @__PURE__ */
|
|
7583
|
+
const Lr = { class: "unit" }, Or = { class: "unit" }, Ar = /* @__PURE__ */ re({
|
|
7577
7584
|
__name: "propsEditor",
|
|
7578
7585
|
setup(t) {
|
|
7579
7586
|
const { getDatetimeTypes: o, isDatetimeProp: e } = Kl();
|
|
7580
|
-
let a =
|
|
7587
|
+
let a = se("formDesignerData").selectComponent.props, i = o();
|
|
7581
7588
|
const s = G(), u = G(a.datetimeType || "datetime");
|
|
7582
7589
|
return K(
|
|
7583
7590
|
() => u.value,
|
|
@@ -7597,16 +7604,16 @@ const Lr = { class: "unit" }, Or = { class: "unit" }, Ar = /* @__PURE__ */ se({
|
|
|
7597
7604
|
class: "date-props-editor"
|
|
7598
7605
|
}, {
|
|
7599
7606
|
default: v(() => {
|
|
7600
|
-
var w,
|
|
7607
|
+
var w, x, D, V, $, E, A, W;
|
|
7601
7608
|
return [
|
|
7602
7609
|
c(m, { label: "类型" }, {
|
|
7603
7610
|
default: v(() => [
|
|
7604
7611
|
c(h, {
|
|
7605
7612
|
modelValue: n(u),
|
|
7606
|
-
"onUpdate:modelValue": r[0] || (r[0] = (U) =>
|
|
7613
|
+
"onUpdate:modelValue": r[0] || (r[0] = (U) => fe(u) ? u.value = U : null)
|
|
7607
7614
|
}, {
|
|
7608
7615
|
default: v(() => [
|
|
7609
|
-
(f(!0), S(le, null,
|
|
7616
|
+
(f(!0), S(le, null, pe(n(i), (U, F) => (f(), k(g, {
|
|
7610
7617
|
key: F,
|
|
7611
7618
|
label: U.typeName,
|
|
7612
7619
|
value: U.type,
|
|
@@ -7644,7 +7651,7 @@ const Lr = { class: "unit" }, Or = { class: "unit" }, Ar = /* @__PURE__ */ se({
|
|
|
7644
7651
|
]),
|
|
7645
7652
|
_: 1
|
|
7646
7653
|
})) : z("", !0),
|
|
7647
|
-
(
|
|
7654
|
+
(x = n(s)) != null && x.props.includes("format") ? (f(), k(m, {
|
|
7648
7655
|
key: 1,
|
|
7649
7656
|
label: "显示格式"
|
|
7650
7657
|
}, {
|
|
@@ -7670,7 +7677,7 @@ const Lr = { class: "unit" }, Or = { class: "unit" }, Ar = /* @__PURE__ */ se({
|
|
|
7670
7677
|
]),
|
|
7671
7678
|
_: 1
|
|
7672
7679
|
})) : z("", !0),
|
|
7673
|
-
(
|
|
7680
|
+
(V = n(s)) != null && V.props.includes("defaultValue") ? (f(), k(m, {
|
|
7674
7681
|
key: 3,
|
|
7675
7682
|
label: "最小值"
|
|
7676
7683
|
}, {
|
|
@@ -7765,13 +7772,13 @@ var Zl = { exports: {} };
|
|
|
7765
7772
|
(function(e, l) {
|
|
7766
7773
|
t.exports = l();
|
|
7767
7774
|
})(Ur, function() {
|
|
7768
|
-
var e = 1e3, l = 6e4, a = 36e5, i = "millisecond", s = "second", u = "minute", p = "hour", r = "day", g = "week", h = "month", m = "quarter", d = "year", y = "date", _ = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
7775
|
+
var e = 1e3, l = 6e4, a = 36e5, i = "millisecond", s = "second", u = "minute", p = "hour", r = "day", g = "week", h = "month", m = "quarter", d = "year", y = "date", _ = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
|
|
7769
7776
|
var O = ["th", "st", "nd", "rd"], L = I % 100;
|
|
7770
7777
|
return "[" + I + (O[(L - 20) % 10] || O[L] || O[0]) + "]";
|
|
7771
7778
|
} }, D = function(I, O, L) {
|
|
7772
7779
|
var q = String(I);
|
|
7773
7780
|
return !q || q.length >= O ? I : "" + Array(O + 1 - q.length).join(L) + I;
|
|
7774
|
-
},
|
|
7781
|
+
}, V = { s: D, z: function(I) {
|
|
7775
7782
|
var O = -I.utcOffset(), L = Math.abs(O), q = Math.floor(L / 60), R = L % 60;
|
|
7776
7783
|
return (O <= 0 ? "+" : "-") + D(q, 2, "0") + ":" + D(R, 2, "0");
|
|
7777
7784
|
}, m: function I(O, L) {
|
|
@@ -7786,7 +7793,7 @@ var Zl = { exports: {} };
|
|
|
7786
7793
|
}, u: function(I) {
|
|
7787
7794
|
return I === void 0;
|
|
7788
7795
|
} }, $ = "en", E = {};
|
|
7789
|
-
E[$] =
|
|
7796
|
+
E[$] = x;
|
|
7790
7797
|
var A = "$isDayjsObject", W = function(I) {
|
|
7791
7798
|
return I instanceof N || !(!I || !I[A]);
|
|
7792
7799
|
}, U = function I(O, L, q) {
|
|
@@ -7809,7 +7816,7 @@ var Zl = { exports: {} };
|
|
|
7809
7816
|
return I.clone();
|
|
7810
7817
|
var L = typeof O == "object" ? O : {};
|
|
7811
7818
|
return L.date = I, L.args = arguments, new N(L);
|
|
7812
|
-
}, P =
|
|
7819
|
+
}, P = V;
|
|
7813
7820
|
P.l = U, P.i = W, P.w = function(I, O) {
|
|
7814
7821
|
return F(I, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
|
7815
7822
|
};
|
|
@@ -8090,7 +8097,7 @@ function Br(t, o, e) {
|
|
|
8090
8097
|
const qr = { class: "date-component" }, Yr = {
|
|
8091
8098
|
key: 0,
|
|
8092
8099
|
class: "description"
|
|
8093
|
-
}, jr = /* @__PURE__ */
|
|
8100
|
+
}, jr = /* @__PURE__ */ re({
|
|
8094
8101
|
__name: "renderer",
|
|
8095
8102
|
props: {
|
|
8096
8103
|
/**
|
|
@@ -8146,7 +8153,7 @@ const qr = { class: "date-component" }, Yr = {
|
|
|
8146
8153
|
emits: ["update:datas"],
|
|
8147
8154
|
setup(t, { emit: o }) {
|
|
8148
8155
|
const e = t;
|
|
8149
|
-
let l =
|
|
8156
|
+
let l = se("formData");
|
|
8150
8157
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
8151
8158
|
K(s, (r) => a.value[e.componentID] = r);
|
|
8152
8159
|
const u = o;
|
|
@@ -8170,8 +8177,10 @@ const qr = { class: "date-component" }, Yr = {
|
|
|
8170
8177
|
const h = C("el-date-picker"), m = be;
|
|
8171
8178
|
return f(), S("div", qr, [
|
|
8172
8179
|
c(h, {
|
|
8180
|
+
class: "zhy",
|
|
8181
|
+
"popper-class": "zhy",
|
|
8173
8182
|
modelValue: n(s),
|
|
8174
|
-
"onUpdate:modelValue": g[0] || (g[0] = (d) =>
|
|
8183
|
+
"onUpdate:modelValue": g[0] || (g[0] = (d) => fe(s) ? s.value = d : null),
|
|
8175
8184
|
type: n(i).datetimeType,
|
|
8176
8185
|
format: n(i).format,
|
|
8177
8186
|
"value-format": n(i).valueFormat,
|
|
@@ -8244,11 +8253,11 @@ let Wr = class extends Je {
|
|
|
8244
8253
|
return ["RANGE", "INCLUDES", "EXCLUDE"];
|
|
8245
8254
|
}
|
|
8246
8255
|
};
|
|
8247
|
-
const Gr = { component: Wr, renderer: jr, propEditor: Ar }, Xr = /* @__PURE__ */
|
|
8256
|
+
const Gr = { component: Wr, renderer: jr, propEditor: Ar }, Xr = /* @__PURE__ */ re({
|
|
8248
8257
|
__name: "propsEditor",
|
|
8249
8258
|
setup(t) {
|
|
8250
8259
|
const { getTimeTypes: o, isDatetimeProp: e } = Kl();
|
|
8251
|
-
let a =
|
|
8260
|
+
let a = se("formDesignerData").selectComponent.props, i = o();
|
|
8252
8261
|
const s = G(), u = G(a.datetimeType || "timePicker");
|
|
8253
8262
|
return K(
|
|
8254
8263
|
() => u.value,
|
|
@@ -8275,16 +8284,16 @@ const Gr = { component: Wr, renderer: jr, propEditor: Ar }, Xr = /* @__PURE__ */
|
|
|
8275
8284
|
class: "time-props-editor"
|
|
8276
8285
|
}, {
|
|
8277
8286
|
default: v(() => {
|
|
8278
|
-
var
|
|
8287
|
+
var x, D, V, $, E, A, W, U, F, P;
|
|
8279
8288
|
return [
|
|
8280
8289
|
c(m, { label: "类型" }, {
|
|
8281
8290
|
default: v(() => [
|
|
8282
8291
|
c(h, {
|
|
8283
8292
|
modelValue: n(u),
|
|
8284
|
-
"onUpdate:modelValue": r[0] || (r[0] = (N) =>
|
|
8293
|
+
"onUpdate:modelValue": r[0] || (r[0] = (N) => fe(u) ? u.value = N : null)
|
|
8285
8294
|
}, {
|
|
8286
8295
|
default: v(() => [
|
|
8287
|
-
(f(!0), S(le, null,
|
|
8296
|
+
(f(!0), S(le, null, pe(n(i), (N, H) => (f(), k(g, {
|
|
8288
8297
|
key: H,
|
|
8289
8298
|
value: N.type
|
|
8290
8299
|
}, {
|
|
@@ -8309,7 +8318,7 @@ const Gr = { component: Wr, renderer: jr, propEditor: Ar }, Xr = /* @__PURE__ */
|
|
|
8309
8318
|
]),
|
|
8310
8319
|
_: 1
|
|
8311
8320
|
}),
|
|
8312
|
-
(
|
|
8321
|
+
(x = n(s)) != null && x.props.includes("isRange") ? (f(), k(m, {
|
|
8313
8322
|
key: 0,
|
|
8314
8323
|
label: "时间范围"
|
|
8315
8324
|
}, {
|
|
@@ -8334,7 +8343,7 @@ const Gr = { component: Wr, renderer: jr, propEditor: Ar }, Xr = /* @__PURE__ */
|
|
|
8334
8343
|
]),
|
|
8335
8344
|
_: 1
|
|
8336
8345
|
})) : z("", !0),
|
|
8337
|
-
(
|
|
8346
|
+
(V = n(s)) != null && V.props.includes("defaultValue") ? (f(), k(m, {
|
|
8338
8347
|
key: 2,
|
|
8339
8348
|
label: "默认值"
|
|
8340
8349
|
}, {
|
|
@@ -8469,7 +8478,7 @@ const Gr = { component: Wr, renderer: jr, propEditor: Ar }, Xr = /* @__PURE__ */
|
|
|
8469
8478
|
const Jr = { class: "date-component" }, Kr = {
|
|
8470
8479
|
key: 2,
|
|
8471
8480
|
class: "description"
|
|
8472
|
-
}, Zr = /* @__PURE__ */
|
|
8481
|
+
}, Zr = /* @__PURE__ */ re({
|
|
8473
8482
|
__name: "renderer",
|
|
8474
8483
|
props: {
|
|
8475
8484
|
/**
|
|
@@ -8525,7 +8534,7 @@ const Jr = { class: "date-component" }, Kr = {
|
|
|
8525
8534
|
emits: ["update:datas"],
|
|
8526
8535
|
setup(t, { emit: o }) {
|
|
8527
8536
|
const e = t;
|
|
8528
|
-
let l =
|
|
8537
|
+
let l = se("formData");
|
|
8529
8538
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
8530
8539
|
K(s, (d) => a.value[e.componentID] = d);
|
|
8531
8540
|
const u = o, p = Xe(() => i.value.minTime ? xo(i.value.minTime, "HH:mm") : ""), r = Xe(() => i.value.maxTime ? xo(i.value.maxTime, "HH:mm") : "");
|
|
@@ -8556,8 +8565,10 @@ const Jr = { class: "date-component" }, Kr = {
|
|
|
8556
8565
|
return f(), S("div", Jr, [
|
|
8557
8566
|
n(i).datetimeType === "timePicker" ? (f(), k(_, {
|
|
8558
8567
|
key: 0,
|
|
8568
|
+
class: "zhy",
|
|
8569
|
+
"popper-class": "zhy",
|
|
8559
8570
|
modelValue: n(s),
|
|
8560
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
8571
|
+
"onUpdate:modelValue": y[0] || (y[0] = (x) => fe(s) ? s.value = x : null),
|
|
8561
8572
|
format: n(i).format,
|
|
8562
8573
|
"value-format": n(i).valueFormat,
|
|
8563
8574
|
"disabled-hours": h,
|
|
@@ -8572,7 +8583,7 @@ const Jr = { class: "date-component" }, Kr = {
|
|
|
8572
8583
|
n(i).datetimeType === "timeSelect" ? (f(), k(b, {
|
|
8573
8584
|
key: 1,
|
|
8574
8585
|
modelValue: n(s),
|
|
8575
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
8586
|
+
"onUpdate:modelValue": y[1] || (y[1] = (x) => fe(s) ? s.value = x : null),
|
|
8576
8587
|
start: n(i).startTime,
|
|
8577
8588
|
end: n(i).endTime,
|
|
8578
8589
|
step: n(i).timeStep,
|
|
@@ -8645,10 +8656,10 @@ let Qr = class extends Je {
|
|
|
8645
8656
|
return ["RANGE", "INCLUDES", "EXCLUDE"];
|
|
8646
8657
|
}
|
|
8647
8658
|
};
|
|
8648
|
-
const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input-number-props-editor" }, o2 = { class: "operate-btn" }, l2 = { class: "operate-btn" }, n2 = /* @__PURE__ */
|
|
8659
|
+
const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input-number-props-editor" }, o2 = { class: "operate-btn" }, l2 = { class: "operate-btn" }, n2 = /* @__PURE__ */ re({
|
|
8649
8660
|
__name: "propsEditor",
|
|
8650
8661
|
setup(t) {
|
|
8651
|
-
let o =
|
|
8662
|
+
let o = se("formDesignerData"), e = o.selectComponent.props;
|
|
8652
8663
|
K(
|
|
8653
8664
|
() => e.allowText,
|
|
8654
8665
|
() => {
|
|
@@ -8684,7 +8695,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8684
8695
|
Me("warning", "此功能尚未开发!");
|
|
8685
8696
|
};
|
|
8686
8697
|
return (d, y) => {
|
|
8687
|
-
const _ = C("el-input-number"), b = C("el-form-item"), w = C("el-input"),
|
|
8698
|
+
const _ = C("el-input-number"), b = C("el-form-item"), w = C("el-input"), x = C("el-switch"), D = C("el-divider"), V = be, $ = C("el-button"), E = C("el-table-column"), A = C("el-table"), W = C("el-form"), U = C("el-option"), F = C("el-select"), P = C("el-drawer");
|
|
8688
8699
|
return f(), S("div", t2, [
|
|
8689
8700
|
c(W, {
|
|
8690
8701
|
"label-width": "80px",
|
|
@@ -8715,7 +8726,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8715
8726
|
}),
|
|
8716
8727
|
c(b, { label: "允许文本" }, {
|
|
8717
8728
|
default: v(() => [
|
|
8718
|
-
c(
|
|
8729
|
+
c(x, {
|
|
8719
8730
|
modelValue: n(e).allowText,
|
|
8720
8731
|
"onUpdate:modelValue": y[2] || (y[2] = (H) => n(e).allowText = H)
|
|
8721
8732
|
}, null, 8, ["modelValue"])
|
|
@@ -8731,7 +8742,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8731
8742
|
}),
|
|
8732
8743
|
c(b, { "label-width": "0" }, {
|
|
8733
8744
|
default: v(() => [
|
|
8734
|
-
(f(!0), S(le, null,
|
|
8745
|
+
(f(!0), S(le, null, pe(n(e).allowTextOptions, (H, I) => (f(), S("div", {
|
|
8735
8746
|
class: "option-wrap",
|
|
8736
8747
|
key: I
|
|
8737
8748
|
}, [
|
|
@@ -8739,7 +8750,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8739
8750
|
modelValue: n(e).allowTextOptions[I],
|
|
8740
8751
|
"onUpdate:modelValue": (O) => n(e).allowTextOptions[I] = O
|
|
8741
8752
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
8742
|
-
c(
|
|
8753
|
+
c(V, {
|
|
8743
8754
|
name: "delete",
|
|
8744
8755
|
color: "#ff0000",
|
|
8745
8756
|
size: "16px",
|
|
@@ -8755,13 +8766,13 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8755
8766
|
}, {
|
|
8756
8767
|
default: v(() => [
|
|
8757
8768
|
c($, {
|
|
8758
|
-
class: "add-text-item",
|
|
8769
|
+
class: "zhy add-text-item",
|
|
8759
8770
|
text: "",
|
|
8760
8771
|
type: "primary",
|
|
8761
8772
|
onClick: y[3] || (y[3] = (H) => n(e).allowTextOptions.push(""))
|
|
8762
8773
|
}, {
|
|
8763
8774
|
default: v(() => [
|
|
8764
|
-
c(
|
|
8775
|
+
c(V, {
|
|
8765
8776
|
name: "plus",
|
|
8766
8777
|
color: "#08c979",
|
|
8767
8778
|
size: "16px"
|
|
@@ -8782,12 +8793,12 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8782
8793
|
}),
|
|
8783
8794
|
T("div", o2, [
|
|
8784
8795
|
c($, {
|
|
8796
|
+
class: "zhy edit-button",
|
|
8785
8797
|
text: "",
|
|
8786
|
-
type: "primary",
|
|
8787
8798
|
onClick: u
|
|
8788
8799
|
}, {
|
|
8789
8800
|
default: v(() => [
|
|
8790
|
-
c(
|
|
8801
|
+
c(V, {
|
|
8791
8802
|
name: "edit",
|
|
8792
8803
|
color: "#116fff",
|
|
8793
8804
|
size: "16px"
|
|
@@ -8797,12 +8808,13 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8797
8808
|
_: 1
|
|
8798
8809
|
}),
|
|
8799
8810
|
c($, {
|
|
8811
|
+
class: "zhy",
|
|
8800
8812
|
text: "",
|
|
8801
8813
|
type: "danger",
|
|
8802
8814
|
onClick: m
|
|
8803
8815
|
}, {
|
|
8804
8816
|
default: v(() => [
|
|
8805
|
-
c(
|
|
8817
|
+
c(V, {
|
|
8806
8818
|
name: "fetchData",
|
|
8807
8819
|
color: "#ff0000",
|
|
8808
8820
|
size: "14px"
|
|
@@ -8814,6 +8826,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8814
8826
|
]),
|
|
8815
8827
|
(N = n(e).abnormalCheckList) != null && N.length ? (f(), k(A, {
|
|
8816
8828
|
key: 1,
|
|
8829
|
+
class: "zhy",
|
|
8817
8830
|
data: n(e).abnormalCheckList,
|
|
8818
8831
|
border: ""
|
|
8819
8832
|
}, {
|
|
@@ -8861,12 +8874,12 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8861
8874
|
}),
|
|
8862
8875
|
T("div", l2, [
|
|
8863
8876
|
c($, {
|
|
8877
|
+
class: "zhy edit-button",
|
|
8864
8878
|
text: "",
|
|
8865
|
-
type: "primary",
|
|
8866
8879
|
onClick: h
|
|
8867
8880
|
}, {
|
|
8868
8881
|
default: v(() => [
|
|
8869
|
-
c(
|
|
8882
|
+
c(V, {
|
|
8870
8883
|
name: "edit",
|
|
8871
8884
|
color: "#116fff",
|
|
8872
8885
|
size: "16px"
|
|
@@ -8876,12 +8889,13 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8876
8889
|
_: 1
|
|
8877
8890
|
}),
|
|
8878
8891
|
c($, {
|
|
8892
|
+
class: "zhy",
|
|
8879
8893
|
text: "",
|
|
8880
8894
|
type: "danger",
|
|
8881
8895
|
onClick: m
|
|
8882
8896
|
}, {
|
|
8883
8897
|
default: v(() => [
|
|
8884
|
-
c(
|
|
8898
|
+
c(V, {
|
|
8885
8899
|
name: "fetchData",
|
|
8886
8900
|
color: "#ff0000",
|
|
8887
8901
|
size: "14px"
|
|
@@ -8897,16 +8911,17 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8897
8911
|
}),
|
|
8898
8912
|
n(i) ? (f(), k(P, {
|
|
8899
8913
|
key: 0,
|
|
8900
|
-
class: "props-edit-drawer",
|
|
8914
|
+
class: "zhy props-edit-drawer",
|
|
8901
8915
|
title: "设置异常值检核",
|
|
8902
8916
|
modelValue: n(i),
|
|
8903
|
-
"onUpdate:modelValue": y[5] || (y[5] = (N) =>
|
|
8917
|
+
"onUpdate:modelValue": y[5] || (y[5] = (N) => fe(i) ? i.value = N : null),
|
|
8904
8918
|
"destroy-on-close": !0,
|
|
8905
8919
|
direction: "rtl",
|
|
8906
8920
|
size: "40%"
|
|
8907
8921
|
}, {
|
|
8908
8922
|
footer: v(() => [
|
|
8909
8923
|
c($, {
|
|
8924
|
+
class: "zhy",
|
|
8910
8925
|
onClick: y[4] || (y[4] = () => i.value = !1)
|
|
8911
8926
|
}, {
|
|
8912
8927
|
default: v(() => [
|
|
@@ -8915,6 +8930,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8915
8930
|
_: 1
|
|
8916
8931
|
}),
|
|
8917
8932
|
c($, {
|
|
8933
|
+
class: "zhy",
|
|
8918
8934
|
type: "primary",
|
|
8919
8935
|
onClick: g
|
|
8920
8936
|
}, {
|
|
@@ -8926,13 +8942,13 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8926
8942
|
]),
|
|
8927
8943
|
default: v(() => [
|
|
8928
8944
|
c($, {
|
|
8929
|
-
class: "add-option-item",
|
|
8945
|
+
class: "zhy add-option-item",
|
|
8930
8946
|
text: "",
|
|
8931
8947
|
type: "primary",
|
|
8932
8948
|
onClick: p
|
|
8933
8949
|
}, {
|
|
8934
8950
|
default: v(() => [
|
|
8935
|
-
c(
|
|
8951
|
+
c(V, {
|
|
8936
8952
|
name: "plus",
|
|
8937
8953
|
color: "#08c979",
|
|
8938
8954
|
size: "16px"
|
|
@@ -8942,6 +8958,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8942
8958
|
_: 1
|
|
8943
8959
|
}),
|
|
8944
8960
|
c(A, {
|
|
8961
|
+
class: "zhy",
|
|
8945
8962
|
data: n(s),
|
|
8946
8963
|
border: ""
|
|
8947
8964
|
}, {
|
|
@@ -8954,7 +8971,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8954
8971
|
placeholder: "检核类型"
|
|
8955
8972
|
}, {
|
|
8956
8973
|
default: v(() => [
|
|
8957
|
-
(f(!0), S(le, null,
|
|
8974
|
+
(f(!0), S(le, null, pe(n(l), (H, I) => (f(), k(U, {
|
|
8958
8975
|
key: I,
|
|
8959
8976
|
label: H.label,
|
|
8960
8977
|
value: H.value
|
|
@@ -8985,7 +9002,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
8985
9002
|
placeholder: "检核级别"
|
|
8986
9003
|
}, {
|
|
8987
9004
|
default: v(() => [
|
|
8988
|
-
(f(!0), S(le, null,
|
|
9005
|
+
(f(!0), S(le, null, pe(n(a), (H, I) => (f(), k(U, {
|
|
8989
9006
|
key: I,
|
|
8990
9007
|
label: H.label,
|
|
8991
9008
|
value: H.value
|
|
@@ -9002,7 +9019,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
9002
9019
|
width: "40px"
|
|
9003
9020
|
}, {
|
|
9004
9021
|
default: v(({ $index: N }) => [
|
|
9005
|
-
c(
|
|
9022
|
+
c(V, {
|
|
9006
9023
|
name: "delete",
|
|
9007
9024
|
color: "#ff0000",
|
|
9008
9025
|
size: "16px",
|
|
@@ -9024,7 +9041,7 @@ const e2 = { component: Qr, renderer: Zr, propEditor: Xr }, t2 = { class: "input
|
|
|
9024
9041
|
const a2 = { class: "input-number-component" }, i2 = {
|
|
9025
9042
|
key: 0,
|
|
9026
9043
|
class: "description"
|
|
9027
|
-
}, s2 = /* @__PURE__ */
|
|
9044
|
+
}, s2 = /* @__PURE__ */ re({
|
|
9028
9045
|
__name: "renderer",
|
|
9029
9046
|
props: {
|
|
9030
9047
|
/**
|
|
@@ -9080,7 +9097,7 @@ const a2 = { class: "input-number-component" }, i2 = {
|
|
|
9080
9097
|
emits: ["update:datas"],
|
|
9081
9098
|
setup(t, { emit: o }) {
|
|
9082
9099
|
const e = t;
|
|
9083
|
-
let l =
|
|
9100
|
+
let l = se("formData");
|
|
9084
9101
|
const { datas: a, componentProps: i } = Le(e), s = G(a.value[e.componentID]);
|
|
9085
9102
|
K(s, (m) => a.value[e.componentID] = m);
|
|
9086
9103
|
const u = o;
|
|
@@ -9126,7 +9143,7 @@ const a2 = { class: "input-number-component" }, i2 = {
|
|
|
9126
9143
|
c(y, {
|
|
9127
9144
|
type: n(p) ? "text" : "number",
|
|
9128
9145
|
modelValue: n(s),
|
|
9129
|
-
"onUpdate:modelValue": d[0] || (d[0] = (b) =>
|
|
9146
|
+
"onUpdate:modelValue": d[0] || (d[0] = (b) => fe(s) ? s.value = b : null),
|
|
9130
9147
|
placeholder: n(i).placeholder,
|
|
9131
9148
|
clearable: n(i).clearable,
|
|
9132
9149
|
disabled: t.disabled,
|
|
@@ -9207,7 +9224,7 @@ class r2 extends Je {
|
|
|
9207
9224
|
const d2 = { component: r2, renderer: s2, propEditor: n2 }, u2 = {
|
|
9208
9225
|
key: 0,
|
|
9209
9226
|
class: "component-readonly-mask"
|
|
9210
|
-
}, nl = /* @__PURE__ */
|
|
9227
|
+
}, nl = /* @__PURE__ */ re({
|
|
9211
9228
|
__name: "componentRenderer",
|
|
9212
9229
|
props: {
|
|
9213
9230
|
/**
|
|
@@ -9235,7 +9252,7 @@ const d2 = { component: r2, renderer: s2, propEditor: n2 }, u2 = {
|
|
|
9235
9252
|
emits: ["select"],
|
|
9236
9253
|
setup(t, { emit: o }) {
|
|
9237
9254
|
const e = { ...Vo, ...ko, ...So, ...Eo }, { computedExpression: l } = Ne();
|
|
9238
|
-
let a =
|
|
9255
|
+
let a = se("formData");
|
|
9239
9256
|
const i = t, { components: s, showDescription: u, selectMode: p } = Le(i), r = {
|
|
9240
9257
|
// 显示动态条件
|
|
9241
9258
|
show: (d) => {
|
|
@@ -9255,15 +9272,15 @@ const d2 = { component: r2, renderer: s2, propEditor: n2 }, u2 = {
|
|
|
9255
9272
|
return;
|
|
9256
9273
|
["true", "false"].includes(_) || _.match(/{(.*?)}/g).forEach((D) => {
|
|
9257
9274
|
var A;
|
|
9258
|
-
const
|
|
9259
|
-
let $ = a.value.datas[
|
|
9260
|
-
const E = s.value.find((W) => W.id ===
|
|
9261
|
-
(E == null ? void 0 : E.type) === "grade" && ($ = (A = a.value.datas[
|
|
9275
|
+
const V = D.replace(/\{|}/g, "");
|
|
9276
|
+
let $ = a.value.datas[V];
|
|
9277
|
+
const E = s.value.find((W) => W.id === V);
|
|
9278
|
+
(E == null ? void 0 : E.type) === "grade" && ($ = (A = a.value.datas[V]) == null ? void 0 : A.score), _ = _.replace(D, $ || "");
|
|
9262
9279
|
});
|
|
9263
9280
|
const b = l(_);
|
|
9264
9281
|
if (y === "show" && !b) {
|
|
9265
|
-
let
|
|
9266
|
-
d.isLayout && ((w = d.children) != null && w.length) ?
|
|
9282
|
+
let x = [];
|
|
9283
|
+
d.isLayout && ((w = d.children) != null && w.length) ? x = d.children : x = [d], x.forEach((D) => {
|
|
9267
9284
|
a.value.datas[D.id] && (D.type === "grade" ? delete a.value.datas[D.id].score : delete a.value.datas[D.id]);
|
|
9268
9285
|
});
|
|
9269
9286
|
}
|
|
@@ -9273,7 +9290,7 @@ const d2 = { component: r2, renderer: s2, propEditor: n2 }, u2 = {
|
|
|
9273
9290
|
};
|
|
9274
9291
|
return (d, y) => {
|
|
9275
9292
|
const _ = C("el-checkbox"), b = C("el-form-item");
|
|
9276
|
-
return f(!0), S(le, null,
|
|
9293
|
+
return f(!0), S(le, null, pe(n(s), (w, x) => (f(), S(le, { key: x }, [
|
|
9277
9294
|
n(p) || g(w, "show") ? (f(), S("div", {
|
|
9278
9295
|
key: 0,
|
|
9279
9296
|
class: Oe([
|
|
@@ -9291,7 +9308,7 @@ const d2 = { component: r2, renderer: s2, propEditor: n2 }, u2 = {
|
|
|
9291
9308
|
g(w, "readonly") ? (f(), S("div", u2)) : z("", !0),
|
|
9292
9309
|
n(p) ? (f(), k(_, {
|
|
9293
9310
|
key: 1,
|
|
9294
|
-
class: "select-item",
|
|
9311
|
+
class: "zhy select-item",
|
|
9295
9312
|
modelValue: w.selected,
|
|
9296
9313
|
"onUpdate:modelValue": (D) => w.selected = D,
|
|
9297
9314
|
label: "选择",
|
|
@@ -9301,8 +9318,8 @@ const d2 = { component: r2, renderer: s2, propEditor: n2 }, u2 = {
|
|
|
9301
9318
|
key: 2,
|
|
9302
9319
|
componentID: w.id,
|
|
9303
9320
|
showDescription: n(u),
|
|
9304
|
-
component: n(s)[
|
|
9305
|
-
"onUpdate:component": (D) => n(s)[
|
|
9321
|
+
component: n(s)[x],
|
|
9322
|
+
"onUpdate:component": (D) => n(s)[x] = D
|
|
9306
9323
|
}, null, 40, ["componentID", "showDescription", "component", "onUpdate:component"])) : (f(), k(b, {
|
|
9307
9324
|
key: 3,
|
|
9308
9325
|
class: Oe(["form-item", { "label-new-line": w.props.labelNewLine }]),
|
|
@@ -9351,7 +9368,7 @@ const c2 = {
|
|
|
9351
9368
|
class: "mobile-key"
|
|
9352
9369
|
}, v2 = {
|
|
9353
9370
|
name: "zhy-form-renderer"
|
|
9354
|
-
}, It = /* @__PURE__ */
|
|
9371
|
+
}, It = /* @__PURE__ */ re({
|
|
9355
9372
|
...v2,
|
|
9356
9373
|
props: {
|
|
9357
9374
|
/**
|
|
@@ -9426,24 +9443,24 @@ const c2 = {
|
|
|
9426
9443
|
setup(t, { expose: o, emit: e }) {
|
|
9427
9444
|
const { removeEmptyAttribute: l } = Ne(), a = { ...Vo, ...ko, ...So, ...Eo }, i = G(), s = G(!1), u = G(!1), p = G(!1), r = t, g = e, { formData: h, selectMode: m } = Le(r), d = G(r.selectComponents);
|
|
9428
9445
|
Mt("uploadOptions", r.uploadOptions), Mt("formData", h);
|
|
9429
|
-
const y = (
|
|
9446
|
+
const y = (V) => {
|
|
9430
9447
|
var $, E, A, W;
|
|
9431
|
-
if (($ = d.value) != null && $.length || (d.value = []), !
|
|
9448
|
+
if (($ = d.value) != null && $.length || (d.value = []), !V) {
|
|
9432
9449
|
d.value = [], h.value.components.forEach((U) => {
|
|
9433
9450
|
U.selected = u.value, u.value && d.value.push(U);
|
|
9434
9451
|
}), p.value = !1, g("select", d.value);
|
|
9435
9452
|
return;
|
|
9436
9453
|
}
|
|
9437
|
-
if (
|
|
9438
|
-
(E = d.value) == null || E.push(
|
|
9454
|
+
if (V.selected)
|
|
9455
|
+
(E = d.value) == null || E.push(V);
|
|
9439
9456
|
else {
|
|
9440
|
-
const U = (A = d.value) == null ? void 0 : A.findIndex((F) => F.id ===
|
|
9457
|
+
const U = (A = d.value) == null ? void 0 : A.findIndex((F) => F.id === V.id);
|
|
9441
9458
|
U !== -1 && ((W = d.value) == null || W.splice(U, 1));
|
|
9442
9459
|
}
|
|
9443
9460
|
g("select", d.value), _();
|
|
9444
9461
|
}, _ = () => {
|
|
9445
|
-
var
|
|
9446
|
-
if (!((
|
|
9462
|
+
var V, $;
|
|
9463
|
+
if (!((V = d.value) != null && V.length)) {
|
|
9447
9464
|
p.value = !1, u.value = !1;
|
|
9448
9465
|
return;
|
|
9449
9466
|
}
|
|
@@ -9452,8 +9469,8 @@ const c2 = {
|
|
|
9452
9469
|
return;
|
|
9453
9470
|
}
|
|
9454
9471
|
u.value = !0, p.value = !1;
|
|
9455
|
-
}, b = (
|
|
9456
|
-
|
|
9472
|
+
}, b = (V) => {
|
|
9473
|
+
V != null && V.length && (V.forEach(($) => {
|
|
9457
9474
|
var A, W;
|
|
9458
9475
|
let E = new a[$.type].component();
|
|
9459
9476
|
E.isEdit && ($.props.required || $.props.pattern) && ($.rules = E.getRules($.props)), r.selectMode && ((A = d.value) != null && A.length) && d.value.findIndex((F) => F.id === $.id) !== -1 && ($.selected = !0), $.isLayout && ((W = $ == null ? void 0 : $.children) != null && W.length) && b($.children);
|
|
@@ -9462,32 +9479,32 @@ const c2 = {
|
|
|
9462
9479
|
K(h, () => b(h.value.components), { immediate: !0 });
|
|
9463
9480
|
const w = () => {
|
|
9464
9481
|
var W;
|
|
9465
|
-
let
|
|
9466
|
-
const A = Object.keys(
|
|
9482
|
+
let V = l(h.value.datas), $ = [], E = [];
|
|
9483
|
+
const A = Object.keys(V);
|
|
9467
9484
|
for (let U of A) {
|
|
9468
9485
|
if (U.includes("||")) {
|
|
9469
9486
|
let F = U.split("||"), P = F[0], N = F[1], H = $.findIndex((I) => I.id === N && I.groupID === P);
|
|
9470
9487
|
if (H !== -1)
|
|
9471
|
-
$[H].value =
|
|
9488
|
+
$[H].value = V[U];
|
|
9472
9489
|
else {
|
|
9473
9490
|
const I = h.value.components.find((L) => L.id === U), O = {
|
|
9474
9491
|
sourceType: I == null ? void 0 : I.itemSourceType,
|
|
9475
9492
|
pageID: (W = I == null ? void 0 : I.props) == null ? void 0 : W.pageID,
|
|
9476
9493
|
parentID: P,
|
|
9477
9494
|
id: N,
|
|
9478
|
-
value:
|
|
9495
|
+
value: V[U]
|
|
9479
9496
|
};
|
|
9480
9497
|
$.push(O);
|
|
9481
9498
|
}
|
|
9482
9499
|
continue;
|
|
9483
9500
|
}
|
|
9484
|
-
|
|
9501
|
+
x(h.value.components, $, E, U, V);
|
|
9485
9502
|
}
|
|
9486
9503
|
return { data: $, fileList: E };
|
|
9487
|
-
},
|
|
9504
|
+
}, x = (V, $, E, A, W, U, F) => {
|
|
9488
9505
|
var P;
|
|
9489
|
-
for (let N = 0; N <
|
|
9490
|
-
const H =
|
|
9506
|
+
for (let N = 0; N < V.length; N++) {
|
|
9507
|
+
const H = V[N];
|
|
9491
9508
|
if (H.id === A) {
|
|
9492
9509
|
const I = H.props.pageID || F;
|
|
9493
9510
|
D($, E, A, W, H, U, I);
|
|
@@ -9495,15 +9512,15 @@ const c2 = {
|
|
|
9495
9512
|
}
|
|
9496
9513
|
if (H.isLayout && ((P = H == null ? void 0 : H.children) != null && P.length)) {
|
|
9497
9514
|
const I = H.id;
|
|
9498
|
-
|
|
9515
|
+
x(H.children, $, E, A, W, I, F);
|
|
9499
9516
|
}
|
|
9500
9517
|
}
|
|
9501
|
-
}, D = (
|
|
9518
|
+
}, D = (V, $, E, A, W, U, F) => {
|
|
9502
9519
|
var N, H;
|
|
9503
9520
|
let P = -1;
|
|
9504
9521
|
switch (W.type) {
|
|
9505
9522
|
case "radio":
|
|
9506
|
-
P =
|
|
9523
|
+
P = V.findIndex((I) => I.id === A[E]), P === -1 && V.push({
|
|
9507
9524
|
sourceType: W.itemSourceType,
|
|
9508
9525
|
pageID: F,
|
|
9509
9526
|
groupID: U,
|
|
@@ -9514,7 +9531,7 @@ const c2 = {
|
|
|
9514
9531
|
break;
|
|
9515
9532
|
case "checkbox":
|
|
9516
9533
|
A[E].forEach((I) => {
|
|
9517
|
-
P =
|
|
9534
|
+
P = V.findIndex((O) => O.id === O), P === -1 && V.push({
|
|
9518
9535
|
sourceType: W.itemSourceType,
|
|
9519
9536
|
pageID: F,
|
|
9520
9537
|
groupID: U,
|
|
@@ -9542,7 +9559,7 @@ const c2 = {
|
|
|
9542
9559
|
}
|
|
9543
9560
|
break;
|
|
9544
9561
|
default:
|
|
9545
|
-
|
|
9562
|
+
V.push({
|
|
9546
9563
|
sourceType: W.itemSourceType,
|
|
9547
9564
|
pageID: F,
|
|
9548
9565
|
groupID: U,
|
|
@@ -9556,8 +9573,8 @@ const c2 = {
|
|
|
9556
9573
|
return r.watching && K(
|
|
9557
9574
|
() => h.value.datas,
|
|
9558
9575
|
() => {
|
|
9559
|
-
const
|
|
9560
|
-
g("change",
|
|
9576
|
+
const V = w();
|
|
9577
|
+
g("change", V.data, V.fileList);
|
|
9561
9578
|
},
|
|
9562
9579
|
{ immediate: !0, deep: !0 }
|
|
9563
9580
|
), o({
|
|
@@ -9572,9 +9589,9 @@ const c2 = {
|
|
|
9572
9589
|
* @param callback
|
|
9573
9590
|
* @return
|
|
9574
9591
|
*/
|
|
9575
|
-
async validate(
|
|
9592
|
+
async validate(V = () => {
|
|
9576
9593
|
}) {
|
|
9577
|
-
return await i.value.validate(
|
|
9594
|
+
return await i.value.validate(V);
|
|
9578
9595
|
},
|
|
9579
9596
|
/**
|
|
9580
9597
|
* @description: 对该表单项进行重置,将其值重置为初始值并移除校验结果
|
|
@@ -9587,16 +9604,16 @@ const c2 = {
|
|
|
9587
9604
|
* @param prop
|
|
9588
9605
|
* @return
|
|
9589
9606
|
*/
|
|
9590
|
-
clearValidate(
|
|
9591
|
-
i.value.clearValidate(
|
|
9607
|
+
clearValidate(V) {
|
|
9608
|
+
i.value.clearValidate(V);
|
|
9592
9609
|
},
|
|
9593
9610
|
/**
|
|
9594
9611
|
* @description: 滚动到指定的字段
|
|
9595
9612
|
* @param prop
|
|
9596
9613
|
* @return
|
|
9597
9614
|
*/
|
|
9598
|
-
scrollToField(
|
|
9599
|
-
i.value.scrollToField(
|
|
9615
|
+
scrollToField(V) {
|
|
9616
|
+
i.value.scrollToField(V);
|
|
9600
9617
|
},
|
|
9601
9618
|
/**
|
|
9602
9619
|
* @description:显示/隐藏 项目说明/答案解析
|
|
@@ -9604,7 +9621,7 @@ const c2 = {
|
|
|
9604
9621
|
toggleDescription() {
|
|
9605
9622
|
s.value = !s.value;
|
|
9606
9623
|
}
|
|
9607
|
-
}), (
|
|
9624
|
+
}), (V, $) => {
|
|
9608
9625
|
const E = C("el-checkbox"), A = C("el-form");
|
|
9609
9626
|
return f(), S("div", {
|
|
9610
9627
|
class: Oe(["form-renderer", t.device, { "examination-paper": n(h).props.formType === "2" }, { "select-mode": n(m) }])
|
|
@@ -9612,9 +9629,9 @@ const c2 = {
|
|
|
9612
9629
|
n(m) ? (f(), S("div", c2, [
|
|
9613
9630
|
p2,
|
|
9614
9631
|
c(E, {
|
|
9615
|
-
class: "select
|
|
9632
|
+
class: "zhy all-select",
|
|
9616
9633
|
modelValue: n(u),
|
|
9617
|
-
"onUpdate:modelValue": $[0] || ($[0] = (W) =>
|
|
9634
|
+
"onUpdate:modelValue": $[0] || ($[0] = (W) => fe(u) ? u.value = W : null),
|
|
9618
9635
|
label: "全选",
|
|
9619
9636
|
indeterminate: n(p),
|
|
9620
9637
|
onChange: $[1] || ($[1] = (W) => y())
|
|
@@ -9649,7 +9666,7 @@ const c2 = {
|
|
|
9649
9666
|
};
|
|
9650
9667
|
}
|
|
9651
9668
|
});
|
|
9652
|
-
const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onClick"], b2 = ["title"], w2 = { class: "form-template" }, D2 = { class: "dialog-footer" }, C2 = { class: "left-wrap" }, x2 = { class: "select-count-wrap" }, V2 = { class: "count" }, S2 = { class: "right-wrap" }, E2 = /* @__PURE__ */
|
|
9669
|
+
const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onClick"], b2 = ["title"], w2 = { class: "form-template" }, D2 = { class: "dialog-footer" }, C2 = { class: "left-wrap" }, x2 = { class: "select-count-wrap" }, V2 = { class: "count" }, S2 = { class: "right-wrap" }, E2 = /* @__PURE__ */ re({
|
|
9653
9670
|
__name: "batchAddDialog",
|
|
9654
9671
|
props: /* @__PURE__ */ rl({
|
|
9655
9672
|
/**
|
|
@@ -9666,7 +9683,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9666
9683
|
}),
|
|
9667
9684
|
emits: /* @__PURE__ */ rl(["select"], ["update:modelValue"]),
|
|
9668
9685
|
setup(t, { emit: o }) {
|
|
9669
|
-
const { clone: e } = Ne(), l =
|
|
9686
|
+
const { clone: e } = Ne(), l = se("formData"), a = l.value.props.formType === "2" ? "试卷" : "表单", i = l.value.props.formType === "2" ? "题目" : "项目", s = sn(t, "modelValue"), u = t, { params: p } = Le(u), r = G({}), g = G(""), h = G({
|
|
9670
9687
|
datas: {},
|
|
9671
9688
|
components: [],
|
|
9672
9689
|
props: {}
|
|
@@ -9721,14 +9738,14 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9721
9738
|
components: [],
|
|
9722
9739
|
props: {}
|
|
9723
9740
|
}, p.value.getFormTemplate && (h.value = await p.value.getFormTemplate(F)));
|
|
9724
|
-
}, w = G(/* @__PURE__ */ new Map()),
|
|
9741
|
+
}, w = G(/* @__PURE__ */ new Map()), x = Xe(() => {
|
|
9725
9742
|
let F = 0;
|
|
9726
9743
|
for (const [, P] of w.value)
|
|
9727
9744
|
F += P.length;
|
|
9728
9745
|
return F;
|
|
9729
9746
|
}), D = (F) => {
|
|
9730
9747
|
w.value.has(g.value) ? F.length ? w.value.set(g.value, F) : w.value.delete(g.value) : w.value.set(g.value, F);
|
|
9731
|
-
},
|
|
9748
|
+
}, V = () => {
|
|
9732
9749
|
let F = [];
|
|
9733
9750
|
for (const [, P] of w.value)
|
|
9734
9751
|
P.forEach((N) => {
|
|
@@ -9748,18 +9765,18 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9748
9765
|
formType: l.value.props.formType
|
|
9749
9766
|
}
|
|
9750
9767
|
}), A = () => {
|
|
9751
|
-
E.value.components =
|
|
9768
|
+
E.value.components = V(), $.value = !0;
|
|
9752
9769
|
}, W = o, U = () => {
|
|
9753
|
-
const F =
|
|
9770
|
+
const F = V();
|
|
9754
9771
|
W("select", F), s.value = !1;
|
|
9755
9772
|
};
|
|
9756
9773
|
return (F, P) => {
|
|
9757
9774
|
const N = be, H = C("el-input"), I = C("el-option"), O = C("el-select"), L = C("el-cascader"), q = C("el-date-picker"), R = C("el-time-picker"), Z = C("el-form-item"), te = C("el-form"), ce = C("el-divider"), ve = C("el-empty"), ge = It, Se = C("el-link"), Ae = C("el-button"), Qe = C("el-dialog");
|
|
9758
9775
|
return f(), S("div", null, [
|
|
9759
9776
|
c(Qe, {
|
|
9777
|
+
class: "zhy batch-add-dialog",
|
|
9760
9778
|
modelValue: s.value,
|
|
9761
9779
|
"onUpdate:modelValue": P[1] || (P[1] = (Ce) => s.value = Ce),
|
|
9762
|
-
class: "batch-add-dialog",
|
|
9763
9780
|
"destroy-on-close": "",
|
|
9764
9781
|
title: `批量添加${n(i)}`
|
|
9765
9782
|
}, {
|
|
@@ -9768,7 +9785,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9768
9785
|
T("div", C2, [
|
|
9769
9786
|
T("span", x2, [
|
|
9770
9787
|
Y(" 已选 "),
|
|
9771
|
-
T("span", V2, ie(` ${n(
|
|
9788
|
+
T("span", V2, ie(` ${n(x)} `), 1),
|
|
9772
9789
|
T("span", null, ie(` 个${n(i)}`), 1)
|
|
9773
9790
|
]),
|
|
9774
9791
|
c(Se, {
|
|
@@ -9784,6 +9801,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9784
9801
|
]),
|
|
9785
9802
|
T("div", S2, [
|
|
9786
9803
|
c(Ae, {
|
|
9804
|
+
class: "zhy",
|
|
9787
9805
|
onClick: P[0] || (P[0] = (Ce) => s.value = !1)
|
|
9788
9806
|
}, {
|
|
9789
9807
|
default: v(() => [
|
|
@@ -9792,6 +9810,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9792
9810
|
_: 1
|
|
9793
9811
|
}),
|
|
9794
9812
|
c(Ae, {
|
|
9813
|
+
class: "zhy",
|
|
9795
9814
|
type: "primary",
|
|
9796
9815
|
onClick: U
|
|
9797
9816
|
}, {
|
|
@@ -9814,7 +9833,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9814
9833
|
"label-suffix": ":"
|
|
9815
9834
|
}, {
|
|
9816
9835
|
default: v(() => [
|
|
9817
|
-
(f(!0), S(le, null,
|
|
9836
|
+
(f(!0), S(le, null, pe(n(p).searchParams, (ee, qe) => (f(), k(Z, {
|
|
9818
9837
|
key: qe,
|
|
9819
9838
|
label: ee.label
|
|
9820
9839
|
}, {
|
|
@@ -9845,7 +9864,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9845
9864
|
onChange: (_e) => y(ee)
|
|
9846
9865
|
}, {
|
|
9847
9866
|
default: v(() => [
|
|
9848
|
-
(f(!0), S(le, null,
|
|
9867
|
+
(f(!0), S(le, null, pe(ee.options, (_e, pt) => (f(), k(I, {
|
|
9849
9868
|
key: pt,
|
|
9850
9869
|
label: _e.label,
|
|
9851
9870
|
value: _e.value
|
|
@@ -9894,7 +9913,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9894
9913
|
}, 8, ["model"])) : z("", !0),
|
|
9895
9914
|
c(ce),
|
|
9896
9915
|
T("div", _2, [
|
|
9897
|
-
(f(!0), S(le, null,
|
|
9916
|
+
(f(!0), S(le, null, pe(n(d), (ee, qe) => (f(), S("div", {
|
|
9898
9917
|
class: Oe(["form-item", { selected: n(g) === ee.formID }]),
|
|
9899
9918
|
key: qe,
|
|
9900
9919
|
onClick: (_e) => b(ee.formID)
|
|
@@ -9928,14 +9947,15 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9928
9947
|
_: 1
|
|
9929
9948
|
}, 8, ["modelValue", "title"]),
|
|
9930
9949
|
c(Qe, {
|
|
9950
|
+
class: "zhy select-preview-dialog",
|
|
9931
9951
|
modelValue: n($),
|
|
9932
|
-
"onUpdate:modelValue": P[3] || (P[3] = (Ce) =>
|
|
9933
|
-
class: "select-preview-dialog",
|
|
9952
|
+
"onUpdate:modelValue": P[3] || (P[3] = (Ce) => fe($) ? $.value = Ce : null),
|
|
9934
9953
|
"destroy-on-close": "",
|
|
9935
9954
|
title: `已选${n(i)}预览`
|
|
9936
9955
|
}, {
|
|
9937
9956
|
footer: v(() => [
|
|
9938
9957
|
c(Ae, {
|
|
9958
|
+
class: "zhy",
|
|
9939
9959
|
onClick: P[2] || (P[2] = (Ce) => $.value = !1)
|
|
9940
9960
|
}, {
|
|
9941
9961
|
default: v(() => [
|
|
@@ -9962,7 +9982,7 @@ const g2 = { class: "form-list-wrap" }, _2 = { class: "form-list" }, y2 = ["onCl
|
|
|
9962
9982
|
const k2 = {
|
|
9963
9983
|
key: 1,
|
|
9964
9984
|
class: "tip"
|
|
9965
|
-
}, $2 = ["innerHTML"], ro = /* @__PURE__ */
|
|
9985
|
+
}, $2 = ["innerHTML"], ro = /* @__PURE__ */ re({
|
|
9966
9986
|
__name: "conditionInput",
|
|
9967
9987
|
props: {
|
|
9968
9988
|
/**
|
|
@@ -10003,28 +10023,28 @@ const k2 = {
|
|
|
10003
10023
|
},
|
|
10004
10024
|
emits: ["result", "clear"],
|
|
10005
10025
|
setup(t, { emit: o }) {
|
|
10006
|
-
let e =
|
|
10026
|
+
let e = se("formDesignerData"), l = se("formData"), a = e.selectComponent;
|
|
10007
10027
|
const i = G(), s = G(!1), u = G([]), p = G({}), r = G({}), g = () => {
|
|
10008
10028
|
u.value = [], p.value = {}, r.value = {}, h(l.value.components), s.value = !0;
|
|
10009
10029
|
}, h = (b) => {
|
|
10010
10030
|
b.forEach((w) => {
|
|
10011
|
-
var
|
|
10031
|
+
var x;
|
|
10012
10032
|
if (a.id !== w.id) {
|
|
10013
|
-
if (w.isLayout && ((
|
|
10033
|
+
if (w.isLayout && ((x = w.children) != null && x.length)) {
|
|
10014
10034
|
h(w.children);
|
|
10015
10035
|
return;
|
|
10016
10036
|
}
|
|
10017
10037
|
w.isEdit && (u.value.push({ label: w.props.label, id: w.id }), p.value[w.id] = m(w.excludeFilterConditions), r.value[w.id] = w.filterConditionProps);
|
|
10018
10038
|
}
|
|
10019
10039
|
});
|
|
10020
|
-
}, m = (b) => Object.keys(go).filter((
|
|
10040
|
+
}, m = (b) => Object.keys(go).filter((x) => !(b != null && b.includes(x))), d = o, y = () => {
|
|
10021
10041
|
const b = i.value.getFilterData();
|
|
10022
10042
|
b.message || (s.value = !1, d("result", b));
|
|
10023
10043
|
}, _ = () => {
|
|
10024
10044
|
d("clear");
|
|
10025
10045
|
};
|
|
10026
10046
|
return (b, w) => {
|
|
10027
|
-
const
|
|
10047
|
+
const x = C("el-button"), D = C("el-dialog");
|
|
10028
10048
|
return f(), S(le, null, [
|
|
10029
10049
|
T("div", {
|
|
10030
10050
|
class: "condition-input",
|
|
@@ -10041,22 +10061,24 @@ const k2 = {
|
|
|
10041
10061
|
}, null, 8, $2)) : (f(), S("span", k2, "单击设置条件"))
|
|
10042
10062
|
]),
|
|
10043
10063
|
c(D, {
|
|
10044
|
-
class: "filter-dialog",
|
|
10064
|
+
class: "zhy filter-dialog",
|
|
10045
10065
|
modelValue: n(s),
|
|
10046
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
10066
|
+
"onUpdate:modelValue": w[1] || (w[1] = (V) => fe(s) ? s.value = V : null),
|
|
10047
10067
|
"destroy-on-close": "",
|
|
10048
10068
|
title: t.title
|
|
10049
10069
|
}, {
|
|
10050
10070
|
footer: v(() => [
|
|
10051
|
-
c(
|
|
10052
|
-
|
|
10071
|
+
c(x, {
|
|
10072
|
+
class: "zhy",
|
|
10073
|
+
onClick: w[0] || (w[0] = (V) => s.value = !1)
|
|
10053
10074
|
}, {
|
|
10054
10075
|
default: v(() => [
|
|
10055
10076
|
Y("取消")
|
|
10056
10077
|
]),
|
|
10057
10078
|
_: 1
|
|
10058
10079
|
}),
|
|
10059
|
-
c(
|
|
10080
|
+
c(x, {
|
|
10081
|
+
class: "zhy",
|
|
10060
10082
|
type: "primary",
|
|
10061
10083
|
onClick: y
|
|
10062
10084
|
}, {
|
|
@@ -10083,10 +10105,10 @@ const k2 = {
|
|
|
10083
10105
|
};
|
|
10084
10106
|
}
|
|
10085
10107
|
});
|
|
10086
|
-
const T2 = /* @__PURE__ */
|
|
10108
|
+
const T2 = /* @__PURE__ */ re({
|
|
10087
10109
|
__name: "componentAdvancedPropsEditor",
|
|
10088
10110
|
setup(t) {
|
|
10089
|
-
let e =
|
|
10111
|
+
let e = se("formDesignerData").selectComponent;
|
|
10090
10112
|
const l = (i, s) => {
|
|
10091
10113
|
e.props[`${s}Conditions`] = i.filterConditions, e.props[`${s}ConditionContent`] = i.filterConditionContent, e.props[`${s}ConditionExpression`] = i.filterConditionExpression;
|
|
10092
10114
|
}, a = (i) => {
|
|
@@ -10183,7 +10205,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10183
10205
|
});
|
|
10184
10206
|
};
|
|
10185
10207
|
}
|
|
10186
|
-
}), M2 = /* @__PURE__ */
|
|
10208
|
+
}), M2 = /* @__PURE__ */ re({
|
|
10187
10209
|
__name: "componentBasePropsEditor",
|
|
10188
10210
|
props: {
|
|
10189
10211
|
/**
|
|
@@ -10201,7 +10223,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10201
10223
|
},
|
|
10202
10224
|
setup(t) {
|
|
10203
10225
|
var m;
|
|
10204
|
-
const o =
|
|
10226
|
+
const o = se("formData"), e = se("formDesignerData");
|
|
10205
10227
|
let l = Xe(() => o.value.props.formType), a = e.selectComponent;
|
|
10206
10228
|
(m = e.selectComponent.rules) != null && m.length || (e.selectComponent.rules = [{}]);
|
|
10207
10229
|
let i = e.selectComponent.rules;
|
|
@@ -10226,7 +10248,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10226
10248
|
typeof d.value != "string" && (a.itemID = d.value), a.id = d.value, a.itemSourceType = d.itemSourceType;
|
|
10227
10249
|
};
|
|
10228
10250
|
return (d, y) => {
|
|
10229
|
-
const _ = C("el-switch"), b = C("el-form-item"), w = C("el-input-number"),
|
|
10251
|
+
const _ = C("el-switch"), b = C("el-form-item"), w = C("el-input-number"), x = C("el-color-picker"), D = C("el-slider"), V = C("el-input"), $ = C("el-form");
|
|
10230
10252
|
return f(), k($, {
|
|
10231
10253
|
"label-width": "80px",
|
|
10232
10254
|
"label-suffix": ":"
|
|
@@ -10312,7 +10334,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10312
10334
|
label: n(a).type === "label" ? "字体颜色" : n(l) === "1" ? "标题颜色" : "题目颜色"
|
|
10313
10335
|
}, {
|
|
10314
10336
|
default: v(() => [
|
|
10315
|
-
c(
|
|
10337
|
+
c(x, {
|
|
10316
10338
|
modelValue: n(a).props.color,
|
|
10317
10339
|
"onUpdate:modelValue": y[6] || (y[6] = (E) => n(a).props.color = E)
|
|
10318
10340
|
}, null, 8, ["modelValue"])
|
|
@@ -10358,7 +10380,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10358
10380
|
label: "占位提示"
|
|
10359
10381
|
}, {
|
|
10360
10382
|
default: v(() => [
|
|
10361
|
-
c(
|
|
10383
|
+
c(V, {
|
|
10362
10384
|
modelValue: n(a).props.placeholder,
|
|
10363
10385
|
"onUpdate:modelValue": y[10] || (y[10] = (E) => n(a).props.placeholder = E),
|
|
10364
10386
|
placeholder: "请输入占位提示"
|
|
@@ -10401,7 +10423,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10401
10423
|
label: "必填提示"
|
|
10402
10424
|
}, {
|
|
10403
10425
|
default: v(() => [
|
|
10404
|
-
c(
|
|
10426
|
+
c(V, {
|
|
10405
10427
|
onChange: g,
|
|
10406
10428
|
modelValue: n(a).props.requiredMessage,
|
|
10407
10429
|
"onUpdate:modelValue": y[14] || (y[14] = (E) => n(a).props.requiredMessage = E)
|
|
@@ -10425,7 +10447,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10425
10447
|
label: n(l) === "1" ? "项目说明" : "答案解析"
|
|
10426
10448
|
}, {
|
|
10427
10449
|
default: v(() => [
|
|
10428
|
-
c(
|
|
10450
|
+
c(V, {
|
|
10429
10451
|
modelValue: n(a).props.description,
|
|
10430
10452
|
"onUpdate:modelValue": y[16] || (y[16] = (E) => n(a).props.description = E),
|
|
10431
10453
|
autosize: { minRows: 2, maxRows: 5 },
|
|
@@ -10439,10 +10461,10 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10439
10461
|
});
|
|
10440
10462
|
};
|
|
10441
10463
|
}
|
|
10442
|
-
}), z2 = /* @__PURE__ */
|
|
10464
|
+
}), z2 = /* @__PURE__ */ re({
|
|
10443
10465
|
__name: "formPropsEditor",
|
|
10444
10466
|
setup(t, { expose: o }) {
|
|
10445
|
-
const e =
|
|
10467
|
+
const e = se("formData"), l = G(), a = () => {
|
|
10446
10468
|
e.value.props.formType === "2" && (e.value.props.labelPosition = "top");
|
|
10447
10469
|
};
|
|
10448
10470
|
return o({
|
|
@@ -10596,7 +10618,7 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10596
10618
|
}, 8, ["model"]);
|
|
10597
10619
|
};
|
|
10598
10620
|
}
|
|
10599
|
-
}), I2 = { class: "toolbar" }, L2 =
|
|
10621
|
+
}), I2 = { class: "toolbar" }, L2 = { class: "devices" }, O2 = { class: "operates" }, A2 = /* @__PURE__ */ T("span", null, "清空", -1), U2 = /* @__PURE__ */ T("span", null, "模板导入", -1), P2 = /* @__PURE__ */ T("span", null, "查看JSON", -1), F2 = /* @__PURE__ */ T("span", null, "预览", -1), N2 = /* @__PURE__ */ T("span", null, "保存", -1), H2 = /* @__PURE__ */ T("span", null, "验证表单", -1), R2 = /* @__PURE__ */ T("span", null, "重置表单", -1), B2 = /* @__PURE__ */ T("span", null, "表单数据", -1), kl = /* @__PURE__ */ re({
|
|
10600
10622
|
__name: "toolbar",
|
|
10601
10623
|
props: {
|
|
10602
10624
|
operates: {
|
|
@@ -10616,49 +10638,58 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10616
10638
|
"toggleDescription"
|
|
10617
10639
|
],
|
|
10618
10640
|
setup(t, { emit: o }) {
|
|
10619
|
-
const e =
|
|
10620
|
-
|
|
10621
|
-
}, i = () => {
|
|
10622
|
-
l("batchAdd");
|
|
10641
|
+
const e = se("formData"), l = se("formDesignerData"), a = o, i = () => {
|
|
10642
|
+
a("clearComponents");
|
|
10623
10643
|
}, s = () => {
|
|
10624
|
-
|
|
10644
|
+
a("batchAdd");
|
|
10625
10645
|
}, u = () => {
|
|
10626
|
-
|
|
10646
|
+
a("viewFormJson");
|
|
10627
10647
|
}, p = () => {
|
|
10628
|
-
|
|
10648
|
+
a("previewFrom");
|
|
10629
10649
|
}, r = () => {
|
|
10630
|
-
|
|
10650
|
+
a("saveFrom");
|
|
10631
10651
|
}, g = () => {
|
|
10632
|
-
|
|
10652
|
+
a("validateForm");
|
|
10633
10653
|
}, h = () => {
|
|
10634
|
-
|
|
10635
|
-
}, m =
|
|
10636
|
-
|
|
10654
|
+
a("resetForm");
|
|
10655
|
+
}, m = () => {
|
|
10656
|
+
a("viewDataJson");
|
|
10657
|
+
}, d = G(!1), y = () => {
|
|
10658
|
+
d.value = !d.value, a("toggleDescription", d.value);
|
|
10637
10659
|
};
|
|
10638
|
-
return (
|
|
10639
|
-
var
|
|
10640
|
-
const
|
|
10660
|
+
return (_, b) => {
|
|
10661
|
+
var V, $;
|
|
10662
|
+
const w = be, x = C("el-link"), D = C("el-popconfirm");
|
|
10641
10663
|
return f(), S("div", I2, [
|
|
10642
|
-
L2,
|
|
10664
|
+
T("div", L2, [
|
|
10665
|
+
(f(), S(le, null, pe(["pc", "pad", "mobile"], (E) => c(w, {
|
|
10666
|
+
color: n(l).device == E ? "#ff0000" : "#000000",
|
|
10667
|
+
key: E,
|
|
10668
|
+
onClick: (A) => n(l).device = E,
|
|
10669
|
+
class: "device",
|
|
10670
|
+
name: E,
|
|
10671
|
+
size: "24px"
|
|
10672
|
+
}, null, 8, ["color", "onClick", "name"])), 64))
|
|
10673
|
+
]),
|
|
10643
10674
|
T("div", O2, [
|
|
10644
|
-
t.operates.includes("clearComponents") ? (f(), k(
|
|
10675
|
+
t.operates.includes("clearComponents") ? (f(), k(D, {
|
|
10645
10676
|
key: 0,
|
|
10646
10677
|
confirmButtonText: "是",
|
|
10647
10678
|
cancelButtonText: "否",
|
|
10648
10679
|
title: "确定要清空所有组件吗?",
|
|
10649
|
-
width: ((
|
|
10650
|
-
onConfirm:
|
|
10680
|
+
width: ((V = n(e).components) == null ? void 0 : V.length) == 0 ? 0 : 160,
|
|
10681
|
+
onConfirm: i
|
|
10651
10682
|
}, {
|
|
10652
10683
|
reference: v(() => {
|
|
10653
|
-
var
|
|
10684
|
+
var E;
|
|
10654
10685
|
return [
|
|
10655
|
-
c(
|
|
10686
|
+
c(x, {
|
|
10656
10687
|
type: "danger",
|
|
10657
10688
|
underline: !1,
|
|
10658
|
-
disabled: ((
|
|
10689
|
+
disabled: ((E = n(e).components) == null ? void 0 : E.length) == 0
|
|
10659
10690
|
}, {
|
|
10660
10691
|
default: v(() => [
|
|
10661
|
-
c(
|
|
10692
|
+
c(w, {
|
|
10662
10693
|
name: "clear",
|
|
10663
10694
|
color: "#ff0000"
|
|
10664
10695
|
}),
|
|
@@ -10670,14 +10701,14 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10670
10701
|
}),
|
|
10671
10702
|
_: 1
|
|
10672
10703
|
}, 8, ["width"])) : z("", !0),
|
|
10673
|
-
t.operates.includes("batchAdd") ? (f(), k(
|
|
10704
|
+
t.operates.includes("batchAdd") ? (f(), k(x, {
|
|
10674
10705
|
key: 1,
|
|
10675
10706
|
type: "primary",
|
|
10676
10707
|
underline: !1,
|
|
10677
|
-
onClick:
|
|
10708
|
+
onClick: s
|
|
10678
10709
|
}, {
|
|
10679
10710
|
default: v(() => [
|
|
10680
|
-
c(
|
|
10711
|
+
c(w, {
|
|
10681
10712
|
name: "batchAdd",
|
|
10682
10713
|
color: "#116fff",
|
|
10683
10714
|
size: "16"
|
|
@@ -10686,27 +10717,27 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10686
10717
|
]),
|
|
10687
10718
|
_: 1
|
|
10688
10719
|
})) : z("", !0),
|
|
10689
|
-
t.operates.includes("viewFormJson") ? (f(), k(
|
|
10720
|
+
t.operates.includes("viewFormJson") ? (f(), k(x, {
|
|
10690
10721
|
key: 2,
|
|
10691
10722
|
type: "primary",
|
|
10692
10723
|
underline: !1,
|
|
10693
|
-
onClick:
|
|
10724
|
+
onClick: u
|
|
10694
10725
|
}, {
|
|
10695
10726
|
default: v(() => [
|
|
10696
|
-
c(
|
|
10727
|
+
c(w, { name: "json" }),
|
|
10697
10728
|
P2
|
|
10698
10729
|
]),
|
|
10699
10730
|
_: 1
|
|
10700
10731
|
})) : z("", !0),
|
|
10701
|
-
t.operates.includes("previewFrom") ? (f(), k(
|
|
10732
|
+
t.operates.includes("previewFrom") ? (f(), k(x, {
|
|
10702
10733
|
key: 3,
|
|
10703
10734
|
type: "primary",
|
|
10704
10735
|
underline: !1,
|
|
10705
|
-
disabled: ((
|
|
10706
|
-
onClick:
|
|
10736
|
+
disabled: (($ = n(e).components) == null ? void 0 : $.length) == 0,
|
|
10737
|
+
onClick: p
|
|
10707
10738
|
}, {
|
|
10708
10739
|
default: v(() => [
|
|
10709
|
-
c(
|
|
10740
|
+
c(w, {
|
|
10710
10741
|
name: "preview",
|
|
10711
10742
|
color: "#116fff"
|
|
10712
10743
|
}),
|
|
@@ -10714,14 +10745,14 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10714
10745
|
]),
|
|
10715
10746
|
_: 1
|
|
10716
10747
|
}, 8, ["disabled"])) : z("", !0),
|
|
10717
|
-
t.operates.includes("saveFrom") ? (f(), k(
|
|
10748
|
+
t.operates.includes("saveFrom") ? (f(), k(x, {
|
|
10718
10749
|
key: 4,
|
|
10719
10750
|
type: "primary",
|
|
10720
10751
|
underline: !1,
|
|
10721
|
-
onClick:
|
|
10752
|
+
onClick: r
|
|
10722
10753
|
}, {
|
|
10723
10754
|
default: v(() => [
|
|
10724
|
-
c(
|
|
10755
|
+
c(w, {
|
|
10725
10756
|
name: "save",
|
|
10726
10757
|
size: "14px",
|
|
10727
10758
|
color: "#08c979"
|
|
@@ -10730,14 +10761,14 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10730
10761
|
]),
|
|
10731
10762
|
_: 1
|
|
10732
10763
|
})) : z("", !0),
|
|
10733
|
-
t.operates.includes("validateForm") ? (f(), k(
|
|
10764
|
+
t.operates.includes("validateForm") ? (f(), k(x, {
|
|
10734
10765
|
key: 5,
|
|
10735
10766
|
type: "warning",
|
|
10736
10767
|
underline: !1,
|
|
10737
|
-
onClick:
|
|
10768
|
+
onClick: g
|
|
10738
10769
|
}, {
|
|
10739
10770
|
default: v(() => [
|
|
10740
|
-
c(
|
|
10771
|
+
c(w, {
|
|
10741
10772
|
name: "validate",
|
|
10742
10773
|
color: "#e6a23c"
|
|
10743
10774
|
}),
|
|
@@ -10745,14 +10776,14 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10745
10776
|
]),
|
|
10746
10777
|
_: 1
|
|
10747
10778
|
})) : z("", !0),
|
|
10748
|
-
t.operates.includes("resetForm") ? (f(), k(
|
|
10779
|
+
t.operates.includes("resetForm") ? (f(), k(x, {
|
|
10749
10780
|
key: 6,
|
|
10750
10781
|
type: "danger",
|
|
10751
10782
|
underline: !1,
|
|
10752
|
-
onClick:
|
|
10783
|
+
onClick: h
|
|
10753
10784
|
}, {
|
|
10754
10785
|
default: v(() => [
|
|
10755
|
-
c(
|
|
10786
|
+
c(w, {
|
|
10756
10787
|
name: "reset",
|
|
10757
10788
|
color: "#ff0000"
|
|
10758
10789
|
}),
|
|
@@ -10760,14 +10791,14 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10760
10791
|
]),
|
|
10761
10792
|
_: 1
|
|
10762
10793
|
})) : z("", !0),
|
|
10763
|
-
t.operates.includes("viewDataJson") ? (f(), k(
|
|
10794
|
+
t.operates.includes("viewDataJson") ? (f(), k(x, {
|
|
10764
10795
|
key: 7,
|
|
10765
10796
|
type: "primary",
|
|
10766
10797
|
underline: !1,
|
|
10767
|
-
onClick:
|
|
10798
|
+
onClick: m
|
|
10768
10799
|
}, {
|
|
10769
10800
|
default: v(() => [
|
|
10770
|
-
c(
|
|
10801
|
+
c(w, {
|
|
10771
10802
|
name: "previewData",
|
|
10772
10803
|
color: "#116fff"
|
|
10773
10804
|
}),
|
|
@@ -10775,18 +10806,18 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10775
10806
|
]),
|
|
10776
10807
|
_: 1
|
|
10777
10808
|
})) : z("", !0),
|
|
10778
|
-
t.operates.includes("toggleDescription") ? (f(), k(
|
|
10809
|
+
t.operates.includes("toggleDescription") ? (f(), k(x, {
|
|
10779
10810
|
key: 8,
|
|
10780
10811
|
type: "primary",
|
|
10781
10812
|
underline: !1,
|
|
10782
|
-
onClick:
|
|
10813
|
+
onClick: y
|
|
10783
10814
|
}, {
|
|
10784
10815
|
default: v(() => [
|
|
10785
|
-
c(
|
|
10816
|
+
c(w, {
|
|
10786
10817
|
name: "description",
|
|
10787
10818
|
color: "#08c979"
|
|
10788
10819
|
}),
|
|
10789
|
-
T("span", null, ie(`${n(
|
|
10820
|
+
T("span", null, ie(`${n(d) ? "隐藏" : "显示"}${n(e).props.formType === "1" ? "项目说明" : "答案解析"}`), 1)
|
|
10790
10821
|
]),
|
|
10791
10822
|
_: 1
|
|
10792
10823
|
})) : z("", !0)
|
|
@@ -10795,18 +10826,18 @@ const T2 = /* @__PURE__ */ se({
|
|
|
10795
10826
|
};
|
|
10796
10827
|
}
|
|
10797
10828
|
});
|
|
10798
|
-
const q2 = { class: "form-designer" }, Y2 = { class: "left-
|
|
10829
|
+
const q2 = { class: "zhy-form-designer relative wh-full min-h-800px min-w-600px bgc-#ffffff" }, Y2 = { class: "absolute top-0 left-0 h-full w-390 pt-5 pl-10 box-border shw-5-3-12-3-#000000-0.2" }, j2 = ["onClick", "title"], W2 = { class: "t-ofse-2 line-height-0.5 pl-3" }, G2 = {
|
|
10830
|
+
key: 0,
|
|
10831
|
+
class: "pos-absolute bottom-0.4 lc-50-30 w-60 h-60 border-rd-md bgc-#ffffff"
|
|
10832
|
+
}, X2 = {
|
|
10799
10833
|
key: 2,
|
|
10800
10834
|
class: "no-component-tip"
|
|
10801
|
-
}, X2 = {
|
|
10802
|
-
key: 3,
|
|
10803
|
-
class: "mobile-key"
|
|
10804
10835
|
}, J2 = ["title"], K2 = {
|
|
10805
10836
|
key: 1,
|
|
10806
|
-
class: "right-wrap"
|
|
10837
|
+
class: "right-wrap shw-0-3-12-3-#000000-0.2"
|
|
10807
10838
|
}, Z2 = { class: "preview-wrap" }, Q2 = {
|
|
10808
10839
|
name: "zhy-form-designer"
|
|
10809
|
-
}, vo = /* @__PURE__ */
|
|
10840
|
+
}, vo = /* @__PURE__ */ re({
|
|
10810
10841
|
...Q2,
|
|
10811
10842
|
props: {
|
|
10812
10843
|
/**
|
|
@@ -10884,14 +10915,14 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
10884
10915
|
selectComponent: void 0,
|
|
10885
10916
|
propTab: "form",
|
|
10886
10917
|
device: "pc"
|
|
10887
|
-
}), y = G(!0), _ = G([]), b = Xe(() => w.value.map((j) => j.expand && j.name)), w = G([]),
|
|
10918
|
+
}), y = G(!0), _ = G([]), b = Xe(() => w.value.map((j) => j.expand && j.name)), w = G([]), x = G(!1), D = {
|
|
10888
10919
|
labelPosition: "top",
|
|
10889
10920
|
labelWidth: 90,
|
|
10890
10921
|
size: "small",
|
|
10891
10922
|
column: 12,
|
|
10892
10923
|
formName: "",
|
|
10893
10924
|
formType: "1"
|
|
10894
|
-
},
|
|
10925
|
+
}, V = [
|
|
10895
10926
|
{
|
|
10896
10927
|
name: "基础组件",
|
|
10897
10928
|
expand: !0,
|
|
@@ -10955,38 +10986,38 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
10955
10986
|
E();
|
|
10956
10987
|
}), Mt("uploadOptions", e.uploadOptions), Mt("formDesignerData", d), Mt("formData", r), Mt("defaultSourceType", e.defaultSourceType);
|
|
10957
10988
|
const E = () => {
|
|
10958
|
-
d.selectComponent = void 0, r.value.datas || (r.value.datas = {}), r.value.components ? A(r.value.components) : r.value.components = [], r.value.props ? r.value.props = Object.assign(D, r.value.props) : r.value.props = D,
|
|
10989
|
+
d.selectComponent = void 0, r.value.datas || (r.value.datas = {}), r.value.components ? A(r.value.components) : r.value.components = [], r.value.props ? r.value.props = Object.assign(D, r.value.props) : r.value.props = D, x.value = !r.value.props.formName;
|
|
10959
10990
|
}, A = (j) => {
|
|
10960
10991
|
j.forEach(async (M) => {
|
|
10961
10992
|
var J;
|
|
10962
10993
|
let oe = new p[M.type].component();
|
|
10963
|
-
M.name = oe.name, M.isEdit = oe.isEdit, M.isInput = oe.isInput, M.props = Object.assign(oe.props, M.props), M.isEdit && ((M.props.required || M.props.pattern) && (M.rules = oe.getRules(M.props)), M.filterConditionProps = await oe.getFilterConditionProps(M.props), M.excludeFilterConditions = oe.getExcludeFilterConditions()), w.value.forEach((
|
|
10964
|
-
const Ue =
|
|
10965
|
-
Ue !== -1 && (M.allowRepeat =
|
|
10994
|
+
M.name = oe.name, M.isEdit = oe.isEdit, M.isInput = oe.isInput, M.props = Object.assign(oe.props, M.props), M.isEdit && ((M.props.required || M.props.pattern) && (M.rules = oe.getRules(M.props)), M.filterConditionProps = await oe.getFilterConditionProps(M.props), M.excludeFilterConditions = oe.getExcludeFilterConditions()), w.value.forEach((me) => {
|
|
10995
|
+
const Ue = me.types.findIndex((we) => we != null && we.id.includes("temp") ? we.type === M.type : (we == null ? void 0 : we.id) === M.id);
|
|
10996
|
+
Ue !== -1 && (M.allowRepeat = me.types[Ue].allowRepeat, M.allowModify = me.types[Ue].allowModify, U(M, me.types[Ue], !0), H(Ue, me));
|
|
10966
10997
|
}), M.isLayout && ((J = M == null ? void 0 : M.children) != null && J.length) && A(M.children);
|
|
10967
10998
|
});
|
|
10968
10999
|
}, W = () => {
|
|
10969
11000
|
var j;
|
|
10970
11001
|
if (w.value = [], !((j = g.value) != null && j.length)) {
|
|
10971
|
-
|
|
11002
|
+
V.forEach((M) => {
|
|
10972
11003
|
w.value.push(F(M));
|
|
10973
11004
|
});
|
|
10974
11005
|
return;
|
|
10975
11006
|
}
|
|
10976
11007
|
if (e.mergeGroup) {
|
|
10977
|
-
|
|
10978
|
-
let
|
|
11008
|
+
V.forEach((J) => {
|
|
11009
|
+
let me = J;
|
|
10979
11010
|
const Ue = g.value.find((we) => J.name === we.name);
|
|
10980
11011
|
if (Ue) {
|
|
10981
11012
|
let we = [];
|
|
10982
11013
|
J.components.forEach((xe) => {
|
|
10983
11014
|
const tt = Ue.components.find((Vt) => Vt.type === xe.type);
|
|
10984
11015
|
tt ? we.push(tt) : we.push(xe);
|
|
10985
|
-
}),
|
|
11016
|
+
}), me.components = we;
|
|
10986
11017
|
}
|
|
10987
|
-
w.value.push(F(
|
|
11018
|
+
w.value.push(F(me));
|
|
10988
11019
|
});
|
|
10989
|
-
const M =
|
|
11020
|
+
const M = V.map((J) => J.name);
|
|
10990
11021
|
g.value.filter((J) => !M.includes(J.name)).forEach((J) => {
|
|
10991
11022
|
w.value.push(F(J));
|
|
10992
11023
|
});
|
|
@@ -11002,7 +11033,7 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11002
11033
|
};
|
|
11003
11034
|
switch (j.type) {
|
|
11004
11035
|
case "employee":
|
|
11005
|
-
j.props.options = (oe ? M.props.options : M.options) || J.employee, M.searchEmployeeMethod ? j.searchEmployeeMethod = M.searchEmployeeMethod : j.searchEmployeeMethod = (
|
|
11036
|
+
j.props.options = (oe ? M.props.options : M.options) || J.employee, M.searchEmployeeMethod ? j.searchEmployeeMethod = M.searchEmployeeMethod : j.searchEmployeeMethod = (me) => [];
|
|
11006
11037
|
break;
|
|
11007
11038
|
case "post":
|
|
11008
11039
|
j.props.options = (oe ? M.props.options : M.options) || J.post;
|
|
@@ -11014,21 +11045,21 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11014
11045
|
}, F = (j) => {
|
|
11015
11046
|
let M = i(j);
|
|
11016
11047
|
return M.types = M.components.map((oe) => {
|
|
11017
|
-
var
|
|
11048
|
+
var me;
|
|
11018
11049
|
let J = new p[oe.type].component();
|
|
11019
|
-
return J.allowRepeat = oe.allowRepeat === void 0 ? !0 : oe.allowRepeat, J.allowModify = oe.allowModify === void 0 ? !0 : oe.allowModify, U(J, oe), !((
|
|
11050
|
+
return J.allowRepeat = oe.allowRepeat === void 0 ? !0 : oe.allowRepeat, J.allowModify = oe.allowModify === void 0 ? !0 : oe.allowModify, U(J, oe), !((me = oe.id) != null && me.includes("temp")) && !u(oe.props) && (J.props = Object.assign(J.props, oe.props), J.id = oe.id, J.name = oe.name), J;
|
|
11020
11051
|
}), M.dynamicTypes = i(M.types), M.components = M.components.map((oe) => oe.type), M;
|
|
11021
11052
|
}, P = (j, M) => {
|
|
11022
11053
|
const oe = N(j);
|
|
11023
11054
|
r.value.components.push(oe), Z();
|
|
11024
|
-
const J = M.types.findIndex((
|
|
11055
|
+
const J = M.types.findIndex((me) => j != null && j.id.includes("temp") ? me.type === j.type : (me == null ? void 0 : me.id) === j.id);
|
|
11025
11056
|
J !== -1 && H(J, M), d.selectComponent = void 0, gt(() => d.selectComponent = oe);
|
|
11026
11057
|
}, N = (j) => {
|
|
11027
|
-
var J,
|
|
11058
|
+
var J, me;
|
|
11028
11059
|
let M = i(j);
|
|
11029
11060
|
M.itemSourceType = e.defaultSourceType;
|
|
11030
11061
|
let oe = new p[j.type].component();
|
|
11031
|
-
return oe.isEdit && (M.filterConditionProps = oe.getFilterConditionProps(M.props)), !((J = M.id) != null && J.includes("temp")) || (M.id = a(), !((
|
|
11062
|
+
return oe.isEdit && (M.filterConditionProps = oe.getFilterConditionProps(M.props)), !((J = M.id) != null && J.includes("temp")) || (M.id = a(), !((me = M.props.options) != null && me.length) || ["employee", "post"].includes(M.type)) || M.props.options.forEach((Ue) => {
|
|
11032
11063
|
Ue.value = a(), Ue.itemSourceType = e.defaultSourceType;
|
|
11033
11064
|
}), M;
|
|
11034
11065
|
}, H = (j, M) => {
|
|
@@ -11036,8 +11067,8 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11036
11067
|
}, I = (j) => {
|
|
11037
11068
|
j.allowRepeat || w.value.forEach((M) => {
|
|
11038
11069
|
let oe = [];
|
|
11039
|
-
M.dynamicTypes.forEach((J,
|
|
11040
|
-
M.types.findIndex((we) => J != null && J.id.includes("temp") ? J.type === we.type : (J == null ? void 0 : J.id) === we.id) !== -1 && oe.push(i(M.dynamicTypes[
|
|
11070
|
+
M.dynamicTypes.forEach((J, me) => {
|
|
11071
|
+
M.types.findIndex((we) => J != null && J.id.includes("temp") ? J.type === we.type : (J == null ? void 0 : J.id) === we.id) !== -1 && oe.push(i(M.dynamicTypes[me])), (J != null && J.id.includes("temp") && J.type === j.type || (J == null ? void 0 : J.id) === j.id) && oe.push(i(M.dynamicTypes[me]));
|
|
11041
11072
|
}), M.types = oe;
|
|
11042
11073
|
});
|
|
11043
11074
|
}, O = () => {
|
|
@@ -11095,7 +11126,7 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11095
11126
|
if (oe.datas = {}, al(M, oe.components))
|
|
11096
11127
|
return oe;
|
|
11097
11128
|
}, al = (j, M, oe) => {
|
|
11098
|
-
var
|
|
11129
|
+
var me, Ue;
|
|
11099
11130
|
let J = !0;
|
|
11100
11131
|
for (let we = 0; we < M.length; we++) {
|
|
11101
11132
|
let xe = M[we];
|
|
@@ -11103,7 +11134,7 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11103
11134
|
Me("error", `请将${oe ? `【${oe}】中` : ""}第${we + 1}个项目的【${xe.props.label}】调整为合理描述!`), J = !1;
|
|
11104
11135
|
break;
|
|
11105
11136
|
}
|
|
11106
|
-
if ((
|
|
11137
|
+
if ((me = xe.props.options) != null && me.length) {
|
|
11107
11138
|
for (let tt = 0; tt < xe.props.options.length; tt++) {
|
|
11108
11139
|
let Vt = xe.props.options[tt];
|
|
11109
11140
|
if (j.find((to) => Vt.label.indexOf(to) === 0)) {
|
|
@@ -11122,26 +11153,27 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11122
11153
|
};
|
|
11123
11154
|
return (j, M) => {
|
|
11124
11155
|
var il;
|
|
11125
|
-
const oe = be, J = C("el-collapse-item"),
|
|
11156
|
+
const oe = be, J = C("el-collapse-item"), me = C("el-collapse"), Ue = C("el-input"), we = C("el-form"), xe = C("el-empty"), tt = C("el-tab-pane"), Vt = C("el-tabs"), to = C("el-dialog");
|
|
11126
11157
|
return f(), S(le, null, [
|
|
11127
11158
|
T("div", q2, [
|
|
11128
11159
|
T("div", Y2, [
|
|
11129
|
-
c(
|
|
11160
|
+
c(me, {
|
|
11161
|
+
class: "zhy",
|
|
11130
11162
|
modelValue: n(b),
|
|
11131
|
-
"onUpdate:modelValue": M[0] || (M[0] = (he) =>
|
|
11163
|
+
"onUpdate:modelValue": M[0] || (M[0] = (he) => fe(b) ? b.value = he : null)
|
|
11132
11164
|
}, {
|
|
11133
11165
|
default: v(() => [
|
|
11134
|
-
(f(!0), S(le, null,
|
|
11166
|
+
(f(!0), S(le, null, pe(n(w), (he, en) => (f(), k(J, {
|
|
11135
11167
|
key: en,
|
|
11136
11168
|
title: he.name,
|
|
11137
11169
|
name: he.name
|
|
11138
11170
|
}, {
|
|
11139
11171
|
default: v(() => [
|
|
11140
11172
|
c(n(Ot), {
|
|
11173
|
+
class: "aline-left",
|
|
11141
11174
|
list: he.types,
|
|
11142
|
-
"item-key": "
|
|
11175
|
+
"item-key": "id",
|
|
11143
11176
|
tag: "div",
|
|
11144
|
-
class: "component-list",
|
|
11145
11177
|
clone: (mt) => N(mt),
|
|
11146
11178
|
sort: !1,
|
|
11147
11179
|
onRemove: (mt) => H(mt.oldIndex, he),
|
|
@@ -11149,13 +11181,13 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11149
11181
|
}, {
|
|
11150
11182
|
item: v(({ element: mt }) => [
|
|
11151
11183
|
T("div", {
|
|
11152
|
-
class: "
|
|
11184
|
+
class: "flex items-center w-160 mx-5 my-8 px-10 py-5 box-border b-solid b-1 theme-bc-borderColor border-rd-0.1 theme-color-second cursor-pointer",
|
|
11153
11185
|
onClick: (o0) => P(mt, he),
|
|
11154
11186
|
title: mt.name
|
|
11155
11187
|
}, [
|
|
11156
11188
|
c(oe, {
|
|
11157
11189
|
name: mt.type,
|
|
11158
|
-
|
|
11190
|
+
class: "theme-color-second"
|
|
11159
11191
|
}, null, 8, ["name"]),
|
|
11160
11192
|
T("span", W2, ie(mt.name), 1)
|
|
11161
11193
|
], 8, j2)
|
|
@@ -11171,7 +11203,7 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11171
11203
|
]),
|
|
11172
11204
|
n(r).props ? (f(), S("div", {
|
|
11173
11205
|
key: 0,
|
|
11174
|
-
class: Oe(["
|
|
11206
|
+
class: Oe(["pos-absolute top-0 left-400px h-full wc--435 py-30 pb-15 box-border", { "wc--840": n(y) }])
|
|
11175
11207
|
}, [
|
|
11176
11208
|
c(kl, {
|
|
11177
11209
|
operates: n($),
|
|
@@ -11181,23 +11213,24 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11181
11213
|
onPreviewFrom: Ae,
|
|
11182
11214
|
onSaveFrom: ve
|
|
11183
11215
|
}, null, 8, ["operates"]),
|
|
11216
|
+
n(d).device === "mobile" ? (f(), S("div", G2)) : z("", !0),
|
|
11184
11217
|
T("div", {
|
|
11185
|
-
class: Oe(
|
|
11218
|
+
class: Oe(`component-form y-aline-start w-full hc--60 mx-auto box-border form-designer-device-${n(d).device}`)
|
|
11186
11219
|
}, [
|
|
11187
|
-
n(
|
|
11220
|
+
n(x) ? (f(), k(Ue, {
|
|
11188
11221
|
key: 0,
|
|
11189
11222
|
class: "title-input",
|
|
11190
11223
|
modelValue: n(r).props.formName,
|
|
11191
11224
|
"onUpdate:modelValue": M[1] || (M[1] = (he) => n(r).props.formName = he),
|
|
11192
11225
|
placeholder: "单击输入标题",
|
|
11193
|
-
onBlur: M[2] || (M[2] = (he) =>
|
|
11194
|
-
onKeydown: M[3] || (M[3] = dn((he) =>
|
|
11226
|
+
onBlur: M[2] || (M[2] = (he) => x.value = !1),
|
|
11227
|
+
onKeydown: M[3] || (M[3] = dn((he) => x.value = !1, ["enter"]))
|
|
11195
11228
|
}, null, 8, ["modelValue"])) : (f(), S("h2", {
|
|
11196
11229
|
key: 1,
|
|
11197
11230
|
class: "title",
|
|
11198
|
-
onClick: M[4] || (M[4] = (he) =>
|
|
11231
|
+
onClick: M[4] || (M[4] = (he) => x.value = !0)
|
|
11199
11232
|
}, ie(n(r).props.formName), 1)),
|
|
11200
|
-
(il = n(r).components) != null && il.length ? z("", !0) : (f(), S("div",
|
|
11233
|
+
(il = n(r).components) != null && il.length ? z("", !0) : (f(), S("div", X2, "从左侧拖拽组件")),
|
|
11201
11234
|
c(we, {
|
|
11202
11235
|
class: "designer-form",
|
|
11203
11236
|
"label-position": n(r).props.labelPosition,
|
|
@@ -11216,8 +11249,7 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11216
11249
|
}, null, 8, ["components"])
|
|
11217
11250
|
]),
|
|
11218
11251
|
_: 1
|
|
11219
|
-
}, 8, ["label-position", "label-width", "size"])
|
|
11220
|
-
n(d).device === "mobile" ? (f(), S("div", X2)) : z("", !0)
|
|
11252
|
+
}, 8, ["label-position", "label-width", "size"])
|
|
11221
11253
|
], 2)
|
|
11222
11254
|
], 2)) : z("", !0),
|
|
11223
11255
|
T("i", {
|
|
@@ -11227,7 +11259,7 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11227
11259
|
}, null, 10, J2),
|
|
11228
11260
|
n(y) ? (f(), S("div", K2, [
|
|
11229
11261
|
c(Vt, {
|
|
11230
|
-
class: "prop-tabs",
|
|
11262
|
+
class: "zhy prop-tabs",
|
|
11231
11263
|
modelValue: n(d).propTab,
|
|
11232
11264
|
"onUpdate:modelValue": M[10] || (M[10] = (he) => n(d).propTab = he),
|
|
11233
11265
|
type: "border-card"
|
|
@@ -11238,10 +11270,11 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11238
11270
|
name: "component"
|
|
11239
11271
|
}, {
|
|
11240
11272
|
default: v(() => [
|
|
11241
|
-
n(d).selectComponent ? (f(), k(
|
|
11273
|
+
n(d).selectComponent ? (f(), k(me, {
|
|
11242
11274
|
key: 1,
|
|
11275
|
+
class: "zhy",
|
|
11243
11276
|
modelValue: n(_),
|
|
11244
|
-
"onUpdate:modelValue": M[9] || (M[9] = (he) =>
|
|
11277
|
+
"onUpdate:modelValue": M[9] || (M[9] = (he) => fe(_) ? _.value = he : null)
|
|
11245
11278
|
}, {
|
|
11246
11279
|
default: v(() => [
|
|
11247
11280
|
c(J, {
|
|
@@ -11317,9 +11350,9 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11317
11350
|
])) : z("", !0)
|
|
11318
11351
|
]),
|
|
11319
11352
|
c(to, {
|
|
11353
|
+
class: "zhy preview-dialog",
|
|
11320
11354
|
modelValue: n(Se),
|
|
11321
|
-
"onUpdate:modelValue": M[11] || (M[11] = (he) =>
|
|
11322
|
-
class: "preview-dialog no-footer",
|
|
11355
|
+
"onUpdate:modelValue": M[11] || (M[11] = (he) => fe(Se) ? Se.value = he : null),
|
|
11323
11356
|
"destroy-on-close": "",
|
|
11324
11357
|
fullscreen: "",
|
|
11325
11358
|
title: "表单预览"
|
|
@@ -11347,9 +11380,9 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11347
11380
|
_: 1
|
|
11348
11381
|
}, 8, ["modelValue"]),
|
|
11349
11382
|
c(to, {
|
|
11383
|
+
class: "zhy",
|
|
11350
11384
|
modelValue: n(Ce),
|
|
11351
|
-
"onUpdate:modelValue": M[12] || (M[12] = (he) =>
|
|
11352
|
-
class: "no-footer",
|
|
11385
|
+
"onUpdate:modelValue": M[12] || (M[12] = (he) => fe(Ce) ? Ce.value = he : null),
|
|
11353
11386
|
"destroy-on-close": "",
|
|
11354
11387
|
title: "表单数据JSON",
|
|
11355
11388
|
width: "600px"
|
|
@@ -11362,7 +11395,7 @@ const q2 = { class: "form-designer" }, Y2 = { class: "left-wrap" }, j2 = ["onCli
|
|
|
11362
11395
|
n(L) ? (f(), k(E2, {
|
|
11363
11396
|
key: 0,
|
|
11364
11397
|
modelValue: n(L),
|
|
11365
|
-
"onUpdate:modelValue": M[13] || (M[13] = (he) =>
|
|
11398
|
+
"onUpdate:modelValue": M[13] || (M[13] = (he) => fe(L) ? L.value = he : null),
|
|
11366
11399
|
params: n(m),
|
|
11367
11400
|
onSelect: R
|
|
11368
11401
|
}, null, 8, ["modelValue", "params"])) : z("", !0)
|