vue-2024-ui 0.2.89 → 0.2.90
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/index.es.js +169 -169
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Xt, { dayjs as $l, ElForm as Vt, ElButtonGroup as Et, ElButton as Re, ElPopover as Ut, ElIcon as Lt, ElMessage as ft, ElMessageBox as Qt, ElDrawer as wl, ElDialog as kl } from "element-plus";
|
|
2
|
-
import { ref as re, useModel as ot, nextTick as rt, onMounted as _t, computed as Pe, resolveComponent as H, openBlock as p, createElementBlock as U, Fragment as ne, createElementVNode as J, createBlock as V, createCommentVNode as $e, unref as L, mergeProps as q, withCtx as _, renderSlot as x, renderList as P, createTextVNode as
|
|
2
|
+
import { ref as re, useModel as ot, nextTick as rt, onMounted as _t, computed as Pe, resolveComponent as H, openBlock as p, createElementBlock as U, Fragment as ne, createElementVNode as J, createBlock as V, createCommentVNode as $e, normalizeStyle as Ue, unref as L, mergeProps as q, withCtx as _, renderSlot as x, renderList as P, createTextVNode as Le, toDisplayString as Se, createSlots as be, createVNode as se, normalizeProps as Ot, resolveDynamicComponent as Ge, guardReactiveProps as Zt, mergeModels as ut, useSlots as Jt, inject as At, withModifiers as yt, Transition as _l, withDirectives as Cl, vShow as xl, h as Ce, useAttrs as Yt, onUnmounted as Ml, onBeforeUnmount as Sl, normalizeClass as Kt, watchEffect as Tl, onBeforeMount as Vl, watch as el, createApp as tl } from "vue";
|
|
3
3
|
import { Plus as El, ZoomIn as Dl, Delete as ll, Search as Ol, Refresh as al, More as Il, CircleClose as ql, CircleCheckFilled as Al, CircleCheck as jt, Minus as Yl, Close as zl, Switch as rl, FullScreen as Ul, InfoFilled as nl, Download as ol, DocumentCopy as Ll, Setting as jl, CirclePlus as Hl, Edit as Fl, View as Rl } from "@element-plus/icons-vue";
|
|
4
4
|
import ul from "sortablejs";
|
|
5
5
|
import { Dexie as Bl } from "dexie";
|
|
@@ -464,10 +464,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
464
464
|
for (const [l, n] of u)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
|
-
}, Wl = {
|
|
468
|
-
style: { display: "flex", width: "100%" },
|
|
469
|
-
class: "g-ctrl-container"
|
|
470
|
-
}, Gl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Xl = ["innerHTML"], Ql = ["innerHTML"], Zl = ["title"], Jl = ["innerHTML"], Kl = ["innerHTML"], ea = ["innerHTML"], ta = { key: 27 }, la = ["innerHTML"], aa = ["innerHTML"], ra = ["innerHTML"], na = ["innerHTML"], oa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
467
|
+
}, Wl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Gl = ["innerHTML"], Xl = ["innerHTML"], Ql = ["title"], Zl = ["innerHTML"], Jl = ["innerHTML"], Kl = ["innerHTML"], ea = { key: 27 }, ta = ["innerHTML"], la = ["innerHTML"], aa = ["innerHTML"], ra = ["innerHTML"], na = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
471
468
|
__name: "g-ctrl",
|
|
472
469
|
props: /* @__PURE__ */ ut(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
473
470
|
modelValue: { required: !0 },
|
|
@@ -485,7 +482,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
485
482
|
h.value = { ...h.value, justifyContent: A, ...j };
|
|
486
483
|
const E = () => {
|
|
487
484
|
const z = Jt(), T = Object.keys(z), X = `${u.t}-${n.value}-`;
|
|
488
|
-
return T.filter((
|
|
485
|
+
return T.filter((je) => je.startsWith(X)).map((je) => je.replace(X, ""));
|
|
489
486
|
}, k = re({
|
|
490
487
|
multiple: !1,
|
|
491
488
|
"show-file-list": !1,
|
|
@@ -539,9 +536,9 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
539
536
|
if (typeof X == "string")
|
|
540
537
|
S.value = [{ label: X, value: l.value }];
|
|
541
538
|
else {
|
|
542
|
-
const Ie = X == null ? void 0 : X.map((qe,
|
|
539
|
+
const Ie = X == null ? void 0 : X.map((qe, je) => ({
|
|
543
540
|
...qe,
|
|
544
|
-
value: qe.value ?? qe.label ??
|
|
541
|
+
value: qe.value ?? qe.label ?? je,
|
|
545
542
|
label: qe.label || "未知选项"
|
|
546
543
|
}));
|
|
547
544
|
S.value = Ie || [];
|
|
@@ -585,17 +582,17 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
585
582
|
}
|
|
586
583
|
let X = z.replace(/[^-\d.]/g, "");
|
|
587
584
|
if (X.includes("-") && (X.startsWith("-") ? X = "-" + X.substring(1).replace(/-/g, "") : X = X.replace(/-/g, "")), (X.match(/\./g) || []).length > 1) {
|
|
588
|
-
const
|
|
589
|
-
X = X.substring(0,
|
|
585
|
+
const je = X.indexOf(".");
|
|
586
|
+
X = X.substring(0, je + 1) + X.substring(je + 1).replace(/\./g, "");
|
|
590
587
|
}
|
|
591
588
|
if (X = X.replace(/^-\./, "-0."), X = X.replace(/^\./, "0."), X = X.replace(/^-0+(\d)/, "-$1"), X = X.replace(/^0+(\d)/, "$1"), (X === "-" || X === "" || X === ".") && (X = "0"), T >= 0 && X.includes(".")) {
|
|
592
|
-
const [
|
|
593
|
-
lt.length > T && (X =
|
|
589
|
+
const [je, lt] = X.split(".");
|
|
590
|
+
lt.length > T && (X = je + "." + lt.substring(0, T));
|
|
594
591
|
}
|
|
595
592
|
l.value = X;
|
|
596
593
|
};
|
|
597
594
|
_t(async () => {
|
|
598
|
-
var X, Ie, qe,
|
|
595
|
+
var X, Ie, qe, je, lt;
|
|
599
596
|
e.value && e.value["remote-method"] && (oe.value["remote-method"] = ue), (Ie = (X = t.value[n.value]) == null ? void 0 : X.options) != null && Ie.length && (S.value = t.value[n.value].options);
|
|
600
597
|
const z = (Be, Ze = "options", Je = t.value[n.value]) => {
|
|
601
598
|
typeof e.value.getDicts == "function" && me(Ze).catch((Ke) => {
|
|
@@ -634,7 +631,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
634
631
|
(Ke = (Je = t.value) == null ? void 0 : Je.table) == null || Ke.load();
|
|
635
632
|
});
|
|
636
633
|
}
|
|
637
|
-
i.value == "image" && (e.value.width && ((qe = Ve.value) != null && qe.$el) && Ve.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((
|
|
634
|
+
i.value == "image" && (e.value.width && ((qe = Ve.value) != null && qe.$el) && Ve.value.$el.style.setProperty("--up-width", typeof e.value.width == "number" ? e.value.width + "px" : e.value.width), e.value.height && ((je = Ve.value) != null && je.$el) && Ve.value.$el.style.setProperty("--up-height", typeof e.value.height == "number" ? e.value.height + "px" : e.value.height), e.value.fontSize && ((lt = Ve.value) != null && lt.$el) && Ve.value.$el.style.setProperty("--up-font-size", typeof e.value.fontSize == "number" ? e.value.fontSize + "px" : e.value.fontSize));
|
|
638
635
|
});
|
|
639
636
|
const w = Pe(() => {
|
|
640
637
|
var z;
|
|
@@ -642,7 +639,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
642
639
|
});
|
|
643
640
|
return (z, T) => {
|
|
644
641
|
var st, ee, ie, fe, vt, pt, it, dt, gt, W, ct, bt;
|
|
645
|
-
const X = H("el-image-viewer"), Ie = H("el-radio"), qe = H("el-radio-group"),
|
|
642
|
+
const X = H("el-image-viewer"), Ie = H("el-radio"), qe = H("el-radio-group"), je = H("el-radio-button"), lt = H("el-checkbox"), Be = H("el-checkbox-group"), Ze = H("el-checkbox-button"), Je = H("g-select-option"), Ke = H("el-option"), Ct = H("el-select"), xt = H("el-tree-select"), a = H("el-time-picker"), s = H("el-time-select"), y = H("el-date-picker"), C = H("el-color-picker"), I = H("el-rate"), F = H("el-slider"), R = H("el-switch"), ye = H("el-transfer"), _e = H("el-cascader"), De = H("el-icon"), Ae = H("el-image"), Fe = H("el-tooltip"), et = H("el-upload"), ht = H("el-autocomplete"), Mt = H("el-input-number"), St = H("el-input-tag"), Z = H("el-input"), ve = H("el-link"), ae = H("el-text"), We = H("el-avatar"), tt = H("el-tag");
|
|
646
643
|
return p(), U(ne, null, [
|
|
647
644
|
J("div", null, [
|
|
648
645
|
f.value ? (p(), V(X, {
|
|
@@ -653,7 +650,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
653
650
|
onClose: T[0] || (T[0] = (b) => f.value = !1)
|
|
654
651
|
}, null, 8, ["initial-index", "url-list"])) : $e("", !0)
|
|
655
652
|
]),
|
|
656
|
-
J("div",
|
|
653
|
+
J("div", {
|
|
654
|
+
style: Ue([{ display: "flex", width: "100%" }, h.value]),
|
|
655
|
+
class: "g-ctrl-container"
|
|
656
|
+
}, [
|
|
657
657
|
i.value == L(Me).RADIO ? (p(), V(qe, q({
|
|
658
658
|
key: 0,
|
|
659
659
|
modelValue: l.value,
|
|
@@ -679,7 +679,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
679
679
|
}, e.value), {
|
|
680
680
|
default: _(() => [
|
|
681
681
|
x(z.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
682
|
-
(p(!0), U(ne, null, P(S.value, (b) => (p(), V(
|
|
682
|
+
(p(!0), U(ne, null, P(S.value, (b) => (p(), V(je, q({ ref_for: !0 }, b), {
|
|
683
683
|
default: _(() => [
|
|
684
684
|
x(z.$slots, `${u.t}-${n.value}-options`, { option: b }, void 0, !0)
|
|
685
685
|
]),
|
|
@@ -696,7 +696,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
696
696
|
}, e.value), {
|
|
697
697
|
default: _(() => [
|
|
698
698
|
x(z.$slots, `${u.t}-${n.value}`, { data: e.value }, () => [
|
|
699
|
-
T[30] || (T[30] =
|
|
699
|
+
T[30] || (T[30] = Le(Se(" "), -1))
|
|
700
700
|
], !0)
|
|
701
701
|
]),
|
|
702
702
|
_: 3
|
|
@@ -711,7 +711,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
711
711
|
(p(!0), U(ne, null, P(S.value, (b) => (p(), V(lt, q({ ref_for: !0 }, b), {
|
|
712
712
|
default: _(() => [
|
|
713
713
|
x(z.$slots, `${u.t}-${n.value}-options`, { option: b }, () => [
|
|
714
|
-
|
|
714
|
+
Le(Se(b.label), 1)
|
|
715
715
|
], !0)
|
|
716
716
|
]),
|
|
717
717
|
_: 2
|
|
@@ -984,7 +984,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
984
984
|
onClick: T[20] || (T[20] = (pe) => pe.stopPropagation()),
|
|
985
985
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
986
986
|
}, [
|
|
987
|
-
J("div",
|
|
987
|
+
J("div", Wl, [
|
|
988
988
|
se(Ae, q({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: l.value
|
|
@@ -1085,7 +1085,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1085
1085
|
return [
|
|
1086
1086
|
J("div", {
|
|
1087
1087
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1088
|
-
}, null, 8,
|
|
1088
|
+
}, null, 8, Gl)
|
|
1089
1089
|
];
|
|
1090
1090
|
}),
|
|
1091
1091
|
key: "0"
|
|
@@ -1097,7 +1097,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1097
1097
|
return [
|
|
1098
1098
|
J("div", {
|
|
1099
1099
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1100
|
-
}, null, 8,
|
|
1100
|
+
}, null, 8, Xl)
|
|
1101
1101
|
];
|
|
1102
1102
|
}),
|
|
1103
1103
|
key: "1"
|
|
@@ -1113,7 +1113,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1113
1113
|
}))
|
|
1114
1114
|
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == L(Me).MONEY ? (p(), U("div", {
|
|
1115
1115
|
key: 20,
|
|
1116
|
-
style:
|
|
1116
|
+
style: Ue([{ position: "relative" }, h.value])
|
|
1117
1117
|
}, [
|
|
1118
1118
|
se(Z, q({
|
|
1119
1119
|
modelValue: l.value,
|
|
@@ -1127,7 +1127,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1127
1127
|
J("div", {
|
|
1128
1128
|
title: L(Rt)(l.value),
|
|
1129
1129
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1130
|
-
}, Se(L(Rt)(l.value)), 9,
|
|
1130
|
+
}, Se(L(Rt)(l.value)), 9, Ql)
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 2
|
|
1133
1133
|
}, [
|
|
@@ -1140,7 +1140,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1140
1140
|
]), 1040, ["modelValue", "placeholder", "maxlength"])
|
|
1141
1141
|
], 4)) : (vt = i.value) != null && vt.startsWith("link") ? (p(), U("div", {
|
|
1142
1142
|
key: 21,
|
|
1143
|
-
style:
|
|
1143
|
+
style: Ue(h.value)
|
|
1144
1144
|
}, [
|
|
1145
1145
|
se(ve, q(e.value, {
|
|
1146
1146
|
type: i.value.replace("link-", ""),
|
|
@@ -1148,7 +1148,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1148
1148
|
}), null, 16, ["type", "innerHTML"])
|
|
1149
1149
|
], 4)) : i.value != "textarea" && ((pt = i.value) != null && pt.startsWith("text")) ? (p(), U("div", {
|
|
1150
1150
|
key: 22,
|
|
1151
|
-
style:
|
|
1151
|
+
style: Ue(h.value)
|
|
1152
1152
|
}, [
|
|
1153
1153
|
se(ae, q(e.value, {
|
|
1154
1154
|
type: i.value.replace("text-", ""),
|
|
@@ -1156,17 +1156,17 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1156
1156
|
}), null, 16, ["type", "innerHTML"])
|
|
1157
1157
|
], 4)) : i.value == "avatar" ? (p(), U("div", {
|
|
1158
1158
|
key: 23,
|
|
1159
|
-
style:
|
|
1159
|
+
style: Ue(h.value)
|
|
1160
1160
|
}, [
|
|
1161
1161
|
Q.value ? (p(), V(We, Ot(q({ key: 0 }, e.value)), {
|
|
1162
1162
|
default: _(() => [
|
|
1163
|
-
J("div", { innerHTML: Q.value }, null, 8,
|
|
1163
|
+
J("div", { innerHTML: Q.value }, null, 8, Zl)
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 1
|
|
1166
1166
|
}, 16)) : (p(), V(We, Ot(q({ key: 1 }, e.value)), null, 16))
|
|
1167
1167
|
], 4)) : (it = i.value) != null && it.startsWith("tag") ? (p(), U("div", {
|
|
1168
1168
|
key: 24,
|
|
1169
|
-
style:
|
|
1169
|
+
style: Ue(h.value)
|
|
1170
1170
|
}, [
|
|
1171
1171
|
Array.isArray(Q.value) && Q.value.length > 0 ? (p(!0), U(ne, { key: 0 }, P(Q.value, (b, ce) => (p(), U(ne, { key: ce }, [
|
|
1172
1172
|
typeof b == "object" ? (p(), V(tt, q({
|
|
@@ -1193,10 +1193,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1193
1193
|
], 4)) : i.value == "div" ? (p(), U("div", q({ key: 25 }, e.value, {
|
|
1194
1194
|
innerHTML: Q.value || l.value,
|
|
1195
1195
|
style: h.value
|
|
1196
|
-
}), null, 16,
|
|
1196
|
+
}), null, 16, Jl)) : i.value == "span" ? (p(), U("span", q({ key: 26 }, e.value, {
|
|
1197
1197
|
innerHTML: Q.value || l.value,
|
|
1198
1198
|
style: h.value
|
|
1199
|
-
}), null, 16,
|
|
1199
|
+
}), null, 16, Kl)) : i.value == "custom" ? (p(), U("div", ea, [
|
|
1200
1200
|
(p(), V(Ge(e.value.component), Ot(Zt(L(Xe)(e.value, (b) => b != "component"))), null, 16))
|
|
1201
1201
|
])) : (p(), V(Z, q({
|
|
1202
1202
|
key: 28,
|
|
@@ -1221,7 +1221,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1221
1221
|
return [
|
|
1222
1222
|
J("div", {
|
|
1223
1223
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1224
|
-
}, null, 8,
|
|
1224
|
+
}, null, 8, ta)
|
|
1225
1225
|
];
|
|
1226
1226
|
}),
|
|
1227
1227
|
key: "0"
|
|
@@ -1233,7 +1233,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1233
1233
|
return [
|
|
1234
1234
|
J("div", {
|
|
1235
1235
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1236
|
-
}, null, 8,
|
|
1236
|
+
}, null, 8, la)
|
|
1237
1237
|
];
|
|
1238
1238
|
}),
|
|
1239
1239
|
key: "1"
|
|
@@ -1245,7 +1245,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1245
1245
|
return [
|
|
1246
1246
|
J("div", {
|
|
1247
1247
|
innerHTML: ((b = e.value) == null ? void 0 : b.append) || ""
|
|
1248
|
-
}, null, 8,
|
|
1248
|
+
}, null, 8, aa)
|
|
1249
1249
|
];
|
|
1250
1250
|
}),
|
|
1251
1251
|
key: "2"
|
|
@@ -1257,7 +1257,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1257
1257
|
return [
|
|
1258
1258
|
J("div", {
|
|
1259
1259
|
innerHTML: ((b = e.value) == null ? void 0 : b.prepend) || ""
|
|
1260
|
-
}, null, 8,
|
|
1260
|
+
}, null, 8, ra)
|
|
1261
1261
|
];
|
|
1262
1262
|
}),
|
|
1263
1263
|
key: "3"
|
|
@@ -1272,11 +1272,11 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1272
1272
|
])
|
|
1273
1273
|
}))
|
|
1274
1274
|
]), 1040, ["modelValue", "placeholder", "maxlength", "disabled"]))
|
|
1275
|
-
])
|
|
1275
|
+
], 4)
|
|
1276
1276
|
], 64);
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
|
-
}), kt = /* @__PURE__ */ nt(
|
|
1279
|
+
}), kt = /* @__PURE__ */ nt(na, [["__scopeId", "data-v-10605db6"]]), Nt = {
|
|
1280
1280
|
__name: "g-query-item",
|
|
1281
1281
|
props: /* @__PURE__ */ ut(["more"], {
|
|
1282
1282
|
modelValue: { required: !0 },
|
|
@@ -1358,10 +1358,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1358
1358
|
])), 128);
|
|
1359
1359
|
};
|
|
1360
1360
|
}
|
|
1361
|
-
},
|
|
1361
|
+
}, oa = {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
class: "outer"
|
|
1364
|
-
},
|
|
1364
|
+
}, ua = { class: "inner" }, sa = {
|
|
1365
1365
|
__name: "g-query",
|
|
1366
1366
|
props: {
|
|
1367
1367
|
modelValue: { required: !0 },
|
|
@@ -1531,7 +1531,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1531
1531
|
return p(), U(ne, null, [
|
|
1532
1532
|
J("div", {
|
|
1533
1533
|
class: "g-query-container",
|
|
1534
|
-
style:
|
|
1534
|
+
style: Ue({ ...A.value, ...((oe = (te = e.value.query) == null ? void 0 : te.container) == null ? void 0 : oe.style) || {} }),
|
|
1535
1535
|
onDblclick: j
|
|
1536
1536
|
}, [
|
|
1537
1537
|
se(L(Vt), q({
|
|
@@ -1547,7 +1547,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1547
1547
|
var de, ge, N, G, Ee;
|
|
1548
1548
|
return [
|
|
1549
1549
|
J("div", {
|
|
1550
|
-
style:
|
|
1550
|
+
style: Ue((ge = (de = e.value.query) == null ? void 0 : de.btns) == null ? void 0 : ge.style)
|
|
1551
1551
|
}, [
|
|
1552
1552
|
e.value.query.group ? (p(), V(L(Et), { key: 0 }, {
|
|
1553
1553
|
default: _(() => [
|
|
@@ -1581,7 +1581,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1581
1581
|
}, 16),
|
|
1582
1582
|
((Te = (me = (ue = e.value) == null ? void 0 : ue.query) == null ? void 0 : me.container) == null ? void 0 : Te.inline) === !1 ? (p(), U("div", {
|
|
1583
1583
|
key: 0,
|
|
1584
|
-
style:
|
|
1584
|
+
style: Ue([{ "margin-bottom": "18px" }, (he = (Oe = e.value.query) == null ? void 0 : Oe.btns) == null ? void 0 : he.style])
|
|
1585
1585
|
}, [
|
|
1586
1586
|
e.value.query.group ? (p(), V(L(Et), { key: 0 }, {
|
|
1587
1587
|
default: _(() => [
|
|
@@ -1647,7 +1647,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1647
1647
|
onClick: k[4] || (k[4] = (Y) => e.value.query.query.click())
|
|
1648
1648
|
}), {
|
|
1649
1649
|
default: _(() => [
|
|
1650
|
-
|
|
1650
|
+
Le(Se(e.value.query.query.label), 1)
|
|
1651
1651
|
]),
|
|
1652
1652
|
_: 1
|
|
1653
1653
|
}, 16),
|
|
@@ -1655,7 +1655,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1655
1655
|
onClick: k[5] || (k[5] = (Y) => e.value.query.reset.click())
|
|
1656
1656
|
}), {
|
|
1657
1657
|
default: _(() => [
|
|
1658
|
-
|
|
1658
|
+
Le(Se(e.value.query.reset.label), 1)
|
|
1659
1659
|
]),
|
|
1660
1660
|
_: 1
|
|
1661
1661
|
}, 16)
|
|
@@ -1672,8 +1672,8 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1672
1672
|
default: _(() => {
|
|
1673
1673
|
var Y, le, de;
|
|
1674
1674
|
return [
|
|
1675
|
-
i.value && !((de = (le = (Y = e.value) == null ? void 0 : Y.query) == null ? void 0 : le.more) != null && de.hidden) && e.value.query.more.mode == 1 ? (p(), U("div",
|
|
1676
|
-
J("div",
|
|
1675
|
+
i.value && !((de = (le = (Y = e.value) == null ? void 0 : Y.query) == null ? void 0 : le.more) != null && de.hidden) && e.value.query.more.mode == 1 ? (p(), U("div", oa, [
|
|
1676
|
+
J("div", ua, [
|
|
1677
1677
|
e.value.query.more.mode == 1 ? Cl((p(), V(L(Vt), q({
|
|
1678
1678
|
key: 0,
|
|
1679
1679
|
onSubmit: k[7] || (k[7] = yt(() => {
|
|
@@ -1695,7 +1695,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1695
1695
|
], 64);
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
},
|
|
1698
|
+
}, ia = /* @__PURE__ */ nt(sa, [["__scopeId", "data-v-eaca2240"]]), cl = {
|
|
1699
1699
|
inline: !0,
|
|
1700
1700
|
type: "hidden",
|
|
1701
1701
|
"scroll-to-error": !0,
|
|
@@ -1757,7 +1757,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1757
1757
|
type: "card",
|
|
1758
1758
|
editable: !1
|
|
1759
1759
|
}
|
|
1760
|
-
}, fl = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"],
|
|
1760
|
+
}, fl = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], da = { class: "g-form-container" }, ca = /* @__PURE__ */ Object.assign({
|
|
1761
1761
|
name: "g-form",
|
|
1762
1762
|
inheritAttrs: !1
|
|
1763
1763
|
}, {
|
|
@@ -2002,7 +2002,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2002
2002
|
}), (w, $) => {
|
|
2003
2003
|
var le, de, ge;
|
|
2004
2004
|
const g = H("el-form-item"), m = H("el-col"), M = H("el-tab-pane"), D = H("el-tabs"), O = H("el-form"), Y = H("el-button");
|
|
2005
|
-
return p(), U("div",
|
|
2005
|
+
return p(), U("div", da, [
|
|
2006
2006
|
se(O, q(
|
|
2007
2007
|
{
|
|
2008
2008
|
ref_key: "gform",
|
|
@@ -2111,7 +2111,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2111
2111
|
item: N,
|
|
2112
2112
|
model: l.value
|
|
2113
2113
|
}, () => [
|
|
2114
|
-
|
|
2114
|
+
Le(Se(N.label), 1)
|
|
2115
2115
|
], !0)
|
|
2116
2116
|
]),
|
|
2117
2117
|
default: _(() => [
|
|
@@ -2158,7 +2158,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2158
2158
|
}, 16, ["model"]),
|
|
2159
2159
|
(ge = (de = (le = l.value) == null ? void 0 : le.form) == null ? void 0 : de.footer) != null && ge.hidden ? $e("", !0) : x(w.$slots, "f-footer", { key: 0 }, () => [
|
|
2160
2160
|
J("div", {
|
|
2161
|
-
style:
|
|
2161
|
+
style: Ue({ justifyContent: k(l.value.form.footer.align), ...l.value.form.footer.style })
|
|
2162
2162
|
}, [
|
|
2163
2163
|
x(w.$slots, "f-footer-left", {}, void 0, !0),
|
|
2164
2164
|
(p(!0), U(ne, null, P(me.value, (N) => (p(), U(ne, null, [
|
|
@@ -2173,7 +2173,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2173
2173
|
onClick: yt((Ee) => N.click(d.value, l.value, N.flag), ["stop"])
|
|
2174
2174
|
}), {
|
|
2175
2175
|
default: _(() => [
|
|
2176
|
-
|
|
2176
|
+
Le(Se(N == null ? void 0 : N.label), 1)
|
|
2177
2177
|
]),
|
|
2178
2178
|
_: 2
|
|
2179
2179
|
}, 1040, ["onClick"]))
|
|
@@ -2187,10 +2187,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2187
2187
|
]);
|
|
2188
2188
|
};
|
|
2189
2189
|
}
|
|
2190
|
-
}), vl = /* @__PURE__ */ nt(
|
|
2190
|
+
}), vl = /* @__PURE__ */ nt(ca, [["__scopeId", "data-v-6a8d36f6"]]), fa = { class: "dialog-container" }, va = {
|
|
2191
2191
|
key: 1,
|
|
2192
2192
|
style: { overflow: "hidden" }
|
|
2193
|
-
},
|
|
2193
|
+
}, pa = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, ma = /* @__PURE__ */ Object.assign({
|
|
2194
2194
|
name: "g-model",
|
|
2195
2195
|
inheritAttrs: !1
|
|
2196
2196
|
}, {
|
|
@@ -2282,12 +2282,12 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
return u({
|
|
2284
2284
|
handleClose: () => v.value.handleClose()
|
|
2285
|
-
}), (te, oe) => (p(), U("div",
|
|
2285
|
+
}), (te, oe) => (p(), U("div", fa, [
|
|
2286
2286
|
o.value ? (p(), U("div", {
|
|
2287
2287
|
key: 0,
|
|
2288
2288
|
class: "minimize-ball",
|
|
2289
2289
|
onClick: K
|
|
2290
|
-
}, Se(r.title), 1)) : (p(), U("div",
|
|
2290
|
+
}, Se(r.title), 1)) : (p(), U("div", va, [
|
|
2291
2291
|
(p(), V(Ge(d.value), q({
|
|
2292
2292
|
ref_key: "dialogExtend",
|
|
2293
2293
|
ref: v,
|
|
@@ -2310,10 +2310,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2310
2310
|
}, () => [
|
|
2311
2311
|
J("div", {
|
|
2312
2312
|
class: "custom-header",
|
|
2313
|
-
style:
|
|
2313
|
+
style: Ue(l.headerStyle)
|
|
2314
2314
|
}, [
|
|
2315
2315
|
x(te.$slots, "title", {}, () => [
|
|
2316
|
-
J("span",
|
|
2316
|
+
J("span", pa, Se(r.title), 1)
|
|
2317
2317
|
], !0),
|
|
2318
2318
|
J("div", null, [
|
|
2319
2319
|
r.minimize ? (p(), V(L(Lt), {
|
|
@@ -2373,10 +2373,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2373
2373
|
]))
|
|
2374
2374
|
]));
|
|
2375
2375
|
}
|
|
2376
|
-
}), Bt = /* @__PURE__ */ nt(
|
|
2376
|
+
}), Bt = /* @__PURE__ */ nt(ma, [["__scopeId", "data-v-99d6bb1e"]]), ha = { style: { padding: "15px", "box-sizing": "border-box" } }, ya = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, ga = { style: { display: "flex", flex: "1", "align-items": "center" } }, ba = {
|
|
2377
2377
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2378
2378
|
id: "excelSortEl"
|
|
2379
|
-
},
|
|
2379
|
+
}, $a = ["textContent"], wa = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ka = {
|
|
2380
2380
|
__name: "check-excel-item",
|
|
2381
2381
|
props: {
|
|
2382
2382
|
items: Array,
|
|
@@ -2418,10 +2418,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2418
2418
|
});
|
|
2419
2419
|
}), (S, f) => {
|
|
2420
2420
|
const v = H("el-divider"), c = H("el-icon"), o = H("el-text"), h = H("el-checkbox"), A = H("el-button");
|
|
2421
|
-
return p(), U("div",
|
|
2421
|
+
return p(), U("div", ha, [
|
|
2422
2422
|
J("div", null, [
|
|
2423
|
-
J("div",
|
|
2424
|
-
J("div",
|
|
2423
|
+
J("div", ya, [
|
|
2424
|
+
J("div", ga, [
|
|
2425
2425
|
J("a", {
|
|
2426
2426
|
onClick: i,
|
|
2427
2427
|
style: { cursor: "pointer" }
|
|
@@ -2444,14 +2444,14 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2444
2444
|
]),
|
|
2445
2445
|
_: 1
|
|
2446
2446
|
}),
|
|
2447
|
-
f[0] || (f[0] =
|
|
2447
|
+
f[0] || (f[0] = Le(" 拖动列标题可以改变表格列的生成顺序 ! ", -1))
|
|
2448
2448
|
]),
|
|
2449
2449
|
_: 1
|
|
2450
2450
|
})
|
|
2451
2451
|
])
|
|
2452
2452
|
]),
|
|
2453
2453
|
f[1] || (f[1] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2454
|
-
J("div",
|
|
2454
|
+
J("div", ba, [
|
|
2455
2455
|
(p(!0), U(ne, null, P(n.value, (j) => (p(), V(h, {
|
|
2456
2456
|
class: "check-box-hover",
|
|
2457
2457
|
style: { width: "120px !important", height: "30px !important", border: "1px solid #dfe6ec", margin: "5px !important", "border-radius": "3px !important", "padding-left": "5px !important", display: "flex !important", "align-items": "center !important" },
|
|
@@ -2465,13 +2465,13 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2465
2465
|
J("span", {
|
|
2466
2466
|
textContent: Se(j.label),
|
|
2467
2467
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2468
|
-
}, null, 8,
|
|
2468
|
+
}, null, 8, $a)
|
|
2469
2469
|
]),
|
|
2470
2470
|
_: 2
|
|
2471
2471
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2472
2472
|
])
|
|
2473
2473
|
]),
|
|
2474
|
-
J("div",
|
|
2474
|
+
J("div", wa, [
|
|
2475
2475
|
se(A, {
|
|
2476
2476
|
type: "primary",
|
|
2477
2477
|
onClick: d,
|
|
@@ -2479,7 +2479,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2479
2479
|
disabled: n.value.filter((j) => j.value).length < 1
|
|
2480
2480
|
}, {
|
|
2481
2481
|
default: _(() => [
|
|
2482
|
-
|
|
2482
|
+
Le(Se(e.commitText), 1)
|
|
2483
2483
|
]),
|
|
2484
2484
|
_: 1
|
|
2485
2485
|
}, 8, ["icon", "disabled"])
|
|
@@ -2487,8 +2487,8 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2487
2487
|
]);
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
2490
|
-
},
|
|
2491
|
-
we.version(
|
|
2490
|
+
}, _a = /* @__PURE__ */ nt(ka, [["__scopeId", "data-v-13575747"]]), Ca = "vue-gyc-ui", xa = 1, we = new Bl(Ca);
|
|
2491
|
+
we.version(xa).stores({
|
|
2492
2492
|
// 记录表格项设置信息
|
|
2493
2493
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2494
2494
|
// 记录表格分页条数
|
|
@@ -2510,7 +2510,7 @@ async function Dt(r, u, e) {
|
|
|
2510
2510
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${u}, state: ${e}):`, l), l;
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
|
-
async function
|
|
2513
|
+
async function Ma(r, u, e) {
|
|
2514
2514
|
mt(r);
|
|
2515
2515
|
try {
|
|
2516
2516
|
const l = await we.tableWidths.where({ page: r, key: u }).first();
|
|
@@ -2519,7 +2519,7 @@ async function Sa(r, u, e) {
|
|
|
2519
2519
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${u}):`, l), l;
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
|
-
async function
|
|
2522
|
+
async function Sa(r) {
|
|
2523
2523
|
mt(r);
|
|
2524
2524
|
try {
|
|
2525
2525
|
return await we.tableWidths.where({ page: r }).toArray();
|
|
@@ -2527,7 +2527,7 @@ async function Ta(r) {
|
|
|
2527
2527
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, u), u;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
async function
|
|
2530
|
+
async function Ta(r) {
|
|
2531
2531
|
mt(r);
|
|
2532
2532
|
try {
|
|
2533
2533
|
const u = await we.tableColsState.where({ page: r }).toArray();
|
|
@@ -2536,7 +2536,7 @@ async function Va(r) {
|
|
|
2536
2536
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, u), u;
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
async function
|
|
2539
|
+
async function Va(r) {
|
|
2540
2540
|
mt(r);
|
|
2541
2541
|
try {
|
|
2542
2542
|
return await we.transaction("rw", we.tableWidths, we.pageInfo, we.sorts, we.tableColsState, async () => {
|
|
@@ -2551,7 +2551,7 @@ async function Ea(r) {
|
|
|
2551
2551
|
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, u), u;
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
|
-
async function
|
|
2554
|
+
async function Ea({ page: r, size: u }) {
|
|
2555
2555
|
mt(r);
|
|
2556
2556
|
try {
|
|
2557
2557
|
const e = await we.pageInfo.where({ page: r }).first();
|
|
@@ -2560,7 +2560,7 @@ async function Da({ page: r, size: u }) {
|
|
|
2560
2560
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
async function
|
|
2563
|
+
async function Da(r) {
|
|
2564
2564
|
mt(r);
|
|
2565
2565
|
try {
|
|
2566
2566
|
const u = await we.pageInfo.where({ page: r }).first();
|
|
@@ -2569,7 +2569,7 @@ async function Oa(r) {
|
|
|
2569
2569
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, u), u;
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
async function
|
|
2572
|
+
async function Oa(r, u) {
|
|
2573
2573
|
mt(r);
|
|
2574
2574
|
try {
|
|
2575
2575
|
const e = await we.sorts.where({ page: r }).first();
|
|
@@ -2578,7 +2578,7 @@ async function Ia(r, u) {
|
|
|
2578
2578
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
2581
|
-
async function
|
|
2581
|
+
async function Ia(r) {
|
|
2582
2582
|
mt(r);
|
|
2583
2583
|
try {
|
|
2584
2584
|
const u = await we.sorts.where({ page: r }).first();
|
|
@@ -2587,13 +2587,13 @@ async function qa(r) {
|
|
|
2587
2587
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, u), u;
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const qa = { style: { padding: "15px", "box-sizing": "border-box" } }, Aa = { style: { display: "flex", "align-items": "center", height: "30px" } }, Ya = {
|
|
2591
2591
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2592
2592
|
class: "allcheck"
|
|
2593
|
-
},
|
|
2593
|
+
}, za = {
|
|
2594
2594
|
id: "cols",
|
|
2595
2595
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2596
|
-
},
|
|
2596
|
+
}, Ua = ["textContent"], La = {
|
|
2597
2597
|
__name: "columns-setting",
|
|
2598
2598
|
props: /* @__PURE__ */ ut({
|
|
2599
2599
|
tuid: {
|
|
@@ -2620,7 +2620,7 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2620
2620
|
onEnd: async () => {
|
|
2621
2621
|
let h = o.toArray();
|
|
2622
2622
|
try {
|
|
2623
|
-
|
|
2623
|
+
Oa(e.tuid, h).then((A) => {
|
|
2624
2624
|
l("setting-drag-end");
|
|
2625
2625
|
});
|
|
2626
2626
|
} catch (A) {
|
|
@@ -2665,7 +2665,7 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2665
2665
|
cancelButtonText: "取消",
|
|
2666
2666
|
type: "warning"
|
|
2667
2667
|
}).then(() => {
|
|
2668
|
-
|
|
2668
|
+
Va(e.tuid).then((c) => {
|
|
2669
2669
|
window.location.reload();
|
|
2670
2670
|
}).catch((c) => {
|
|
2671
2671
|
console.error("复位操作出错:", c), ft({
|
|
@@ -2686,9 +2686,9 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2686
2686
|
})).sort((c, o) => c.sort - o.sort), d();
|
|
2687
2687
|
}), (c, o) => {
|
|
2688
2688
|
const h = H("el-divider"), A = H("el-icon"), j = H("el-text"), E = H("el-checkbox");
|
|
2689
|
-
return p(), U("div",
|
|
2690
|
-
J("div",
|
|
2691
|
-
J("div",
|
|
2689
|
+
return p(), U("div", qa, [
|
|
2690
|
+
J("div", Aa, [
|
|
2691
|
+
J("div", Ya, [
|
|
2692
2692
|
J("a", { onClick: S }, "全选"),
|
|
2693
2693
|
se(h, { direction: "vertical" }),
|
|
2694
2694
|
J("a", { onClick: f }, "全不选"),
|
|
@@ -2703,13 +2703,13 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2703
2703
|
]),
|
|
2704
2704
|
_: 1
|
|
2705
2705
|
}),
|
|
2706
|
-
o[0] || (o[0] =
|
|
2706
|
+
o[0] || (o[0] = Le(" 拖动表格列标题可以改变表格列显示顺序 !", -1))
|
|
2707
2707
|
]),
|
|
2708
2708
|
_: 1
|
|
2709
2709
|
})
|
|
2710
2710
|
]),
|
|
2711
2711
|
J("div", null, [
|
|
2712
|
-
J("div",
|
|
2712
|
+
J("div", za, [
|
|
2713
2713
|
(p(!0), U(ne, null, P(L(n), (k) => (p(), V(E, {
|
|
2714
2714
|
modelValue: k.showCol,
|
|
2715
2715
|
"onUpdate:modelValue": (Q) => k.showCol = Q,
|
|
@@ -2726,7 +2726,7 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2726
2726
|
J("span", {
|
|
2727
2727
|
textContent: Se(k.label),
|
|
2728
2728
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2729
|
-
}, null, 8,
|
|
2729
|
+
}, null, 8, Ua)
|
|
2730
2730
|
]),
|
|
2731
2731
|
_: 2
|
|
2732
2732
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2735,7 +2735,7 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2735
2735
|
]);
|
|
2736
2736
|
};
|
|
2737
2737
|
}
|
|
2738
|
-
},
|
|
2738
|
+
}, ja = /* @__PURE__ */ nt(La, [["__scopeId", "data-v-750b37bc"]]), Ha = { class: "title" }, Fa = { class: "content" }, Ra = {
|
|
2739
2739
|
__name: "g-cell-toopTip",
|
|
2740
2740
|
props: {
|
|
2741
2741
|
content: {
|
|
@@ -2753,9 +2753,9 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2753
2753
|
};
|
|
2754
2754
|
return (l, n) => (p(), U("div", {
|
|
2755
2755
|
class: "g-cell-toopTip",
|
|
2756
|
-
style:
|
|
2756
|
+
style: Ue({ width: u.column.width + "px" })
|
|
2757
2757
|
}, [
|
|
2758
|
-
J("div",
|
|
2758
|
+
J("div", Ha, [
|
|
2759
2759
|
n[0] || (n[0] = J("span", { class: "title-text" }, "内容", -1)),
|
|
2760
2760
|
J("span", {
|
|
2761
2761
|
class: "copy-btn",
|
|
@@ -2765,10 +2765,10 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2765
2765
|
se(L(Ll))
|
|
2766
2766
|
])
|
|
2767
2767
|
]),
|
|
2768
|
-
J("div",
|
|
2768
|
+
J("div", Fa, Se(u.content), 1)
|
|
2769
2769
|
], 4));
|
|
2770
2770
|
}
|
|
2771
|
-
},
|
|
2771
|
+
}, Ba = /* @__PURE__ */ nt(Ra, [["__scopeId", "data-v-f28912da"]]), Pa = /* @__PURE__ */ Object.assign({
|
|
2772
2772
|
name: "g-detail",
|
|
2773
2773
|
inheritAttrs: !1
|
|
2774
2774
|
}, {
|
|
@@ -2839,7 +2839,7 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2839
2839
|
const A = H("el-descriptions-item"), j = H("el-descriptions");
|
|
2840
2840
|
return p(), U("div", {
|
|
2841
2841
|
class: "g-detail-container",
|
|
2842
|
-
style:
|
|
2842
|
+
style: Ue(((E = n.value) == null ? void 0 : E.style) || {})
|
|
2843
2843
|
}, [
|
|
2844
2844
|
se(j, q({ border: "" }, L(Xe)(n.value, (k) => !["container"].includes(k))), be({
|
|
2845
2845
|
default: _(() => [
|
|
@@ -2854,7 +2854,7 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2854
2854
|
}, () => {
|
|
2855
2855
|
var oe;
|
|
2856
2856
|
return [
|
|
2857
|
-
|
|
2857
|
+
Le(Se((oe = u.m[k]) == null ? void 0 : oe.label), 1)
|
|
2858
2858
|
];
|
|
2859
2859
|
}, !0)
|
|
2860
2860
|
]),
|
|
@@ -2890,7 +2890,7 @@ const Aa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ya = { st
|
|
|
2890
2890
|
], 4);
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
|
-
}), pl = /* @__PURE__ */ nt(
|
|
2893
|
+
}), pl = /* @__PURE__ */ nt(Pa, [["__scopeId", "data-v-4902ce5a"]]);
|
|
2894
2894
|
var ml = { exports: {} }, hl = { exports: {} };
|
|
2895
2895
|
(function() {
|
|
2896
2896
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = {
|
|
@@ -2957,7 +2957,7 @@ var ml = { exports: {} }, hl = { exports: {} };
|
|
|
2957
2957
|
};
|
|
2958
2958
|
hl.exports = u;
|
|
2959
2959
|
})();
|
|
2960
|
-
var
|
|
2960
|
+
var Na = hl.exports, Ht = {
|
|
2961
2961
|
// UTF-8 encoding
|
|
2962
2962
|
utf8: {
|
|
2963
2963
|
// Convert a string to a byte array
|
|
@@ -2991,17 +2991,17 @@ var Wa = hl.exports, Ht = {
|
|
|
2991
2991
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2992
2992
|
* @license MIT
|
|
2993
2993
|
*/
|
|
2994
|
-
var
|
|
2995
|
-
return r != null && (yl(r) ||
|
|
2994
|
+
var Wa = function(r) {
|
|
2995
|
+
return r != null && (yl(r) || Ga(r) || !!r._isBuffer);
|
|
2996
2996
|
};
|
|
2997
2997
|
function yl(r) {
|
|
2998
2998
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
2999
2999
|
}
|
|
3000
|
-
function
|
|
3000
|
+
function Ga(r) {
|
|
3001
3001
|
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && yl(r.slice(0, 0));
|
|
3002
3002
|
}
|
|
3003
3003
|
(function() {
|
|
3004
|
-
var r =
|
|
3004
|
+
var r = Na, u = Wt.utf8, e = Wa, l = Wt.bin, n = function(i, t) {
|
|
3005
3005
|
i.constructor == String ? t && t.encoding === "binary" ? i = l.stringToBytes(i) : i = u.stringToBytes(i) : e(i) ? i = Array.prototype.slice.call(i, 0) : !Array.isArray(i) && i.constructor !== Uint8Array && (i = i.toString());
|
|
3006
3006
|
for (var d = r.bytesToWords(i), S = i.length * 8, f = 1732584193, v = -271733879, c = -1732584194, o = 271733878, h = 0; h < d.length; h++)
|
|
3007
3007
|
d[h] = (d[h] << 8 | d[h] >>> 24) & 16711935 | (d[h] << 24 | d[h] >>> 8) & 4278255360;
|
|
@@ -3031,11 +3031,11 @@ function Xa(r) {
|
|
|
3031
3031
|
return t && t.asBytes ? d : t && t.asString ? l.bytesToString(d) : r.bytesToHex(d);
|
|
3032
3032
|
};
|
|
3033
3033
|
})();
|
|
3034
|
-
var
|
|
3035
|
-
const
|
|
3034
|
+
var Xa = ml.exports;
|
|
3035
|
+
const Qa = /* @__PURE__ */ il(Xa), Za = { class: "g-table-container" }, Ja = {
|
|
3036
3036
|
key: 0,
|
|
3037
3037
|
class: "table-query-container"
|
|
3038
|
-
},
|
|
3038
|
+
}, Ka = { class: "table-container" }, er = ["innerHTML"], tr = /* @__PURE__ */ Object.assign({
|
|
3039
3039
|
name: "g-table",
|
|
3040
3040
|
inheritAttrs: !1
|
|
3041
3041
|
}, {
|
|
@@ -3115,7 +3115,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3115
3115
|
stripe: !0,
|
|
3116
3116
|
type: "hidden",
|
|
3117
3117
|
load: async () => {
|
|
3118
|
-
const a = Number(await
|
|
3118
|
+
const a = Number(await Da(K.value));
|
|
3119
3119
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3120
3120
|
let { currentPage: s, pageSize: y } = t.value.table.page;
|
|
3121
3121
|
try {
|
|
@@ -3141,7 +3141,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
},
|
|
3143
3143
|
onHeaderDragend: (a, s, y) => {
|
|
3144
|
-
|
|
3144
|
+
Ma(K.value, y.property, a);
|
|
3145
3145
|
},
|
|
3146
3146
|
onRowDblclick: (a, s, y) => {
|
|
3147
3147
|
t.value.table.dblclickType == "edit" ? M(a, s, y, t) : t.value.table.dblclickType == "view" ? O(a, s, y, t) : t.value.table.dblclickType == "delete" ? D(a, s, y, t) : t.value.table.dblclickType(a, s, y, t);
|
|
@@ -3164,7 +3164,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3164
3164
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3165
3165
|
},
|
|
3166
3166
|
onSizeChange: (a) => {
|
|
3167
|
-
|
|
3167
|
+
Ea({ page: K.value, size: a }).then(() => {
|
|
3168
3168
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3169
3169
|
});
|
|
3170
3170
|
}
|
|
@@ -3338,7 +3338,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3338
3338
|
"min-width": 100,
|
|
3339
3339
|
align: "center",
|
|
3340
3340
|
formatter: (a, s, y, C) => y,
|
|
3341
|
-
"tooltip-formatter": ({ row: a, column: s, cellValue: y }) => Ce(
|
|
3341
|
+
"tooltip-formatter": ({ row: a, column: s, cellValue: y }) => Ce(Ba, { content: y, column: s })
|
|
3342
3342
|
};
|
|
3343
3343
|
t.value.tableColumns = ze(
|
|
3344
3344
|
Oe,
|
|
@@ -3398,7 +3398,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
return a.type === "money" && (a.align = a.align || "right", a.width = a.width || 130, y = `<span title="${Rt(
|
|
3400
3400
|
parseFloat(y)
|
|
3401
|
-
)}">${
|
|
3401
|
+
)}">${yr(parseFloat(y), (a == null ? void 0 : a.precision) || 2, (a == null ? void 0 : a.removeZero) || !1)}</span>`), a.prefix && y && (y = `<span>${a.prefix}${y}</span>`), a.suffix && y && (y = `${y}<span>${a.suffix}</span>`), y;
|
|
3402
3402
|
}, Qe = (a) => {
|
|
3403
3403
|
S.value = Object.fromEntries(v), t.value.table.load();
|
|
3404
3404
|
}, w = (a) => {
|
|
@@ -3500,7 +3500,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
3502
|
);
|
|
3503
|
-
}, de =
|
|
3503
|
+
}, de = gr((a, s, y) => {
|
|
3504
3504
|
i("submit", t.value.form.modalState, a, s, (C) => {
|
|
3505
3505
|
C && (y === 1 && (c.value = !1), Y(a), s.table.load());
|
|
3506
3506
|
});
|
|
@@ -3517,7 +3517,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3517
3517
|
size: s.control.download(a, s).size || 480,
|
|
3518
3518
|
width: s.control.download(a, s).width || 600,
|
|
3519
3519
|
slots: {
|
|
3520
|
-
default: () => Ce(
|
|
3520
|
+
default: () => Ce(_a, {
|
|
3521
3521
|
items: y,
|
|
3522
3522
|
commitText: s.control.download(a, s).excelLabel,
|
|
3523
3523
|
onExcel: (F, R) => {
|
|
@@ -3537,7 +3537,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3537
3537
|
size: s.control.setting(a, s).size || 470,
|
|
3538
3538
|
width: s.control.setting(a, s).width || 600,
|
|
3539
3539
|
slots: {
|
|
3540
|
-
default: () => Ce(
|
|
3540
|
+
default: () => Ce(ja, {
|
|
3541
3541
|
modelValue: s,
|
|
3542
3542
|
tuid: K.value,
|
|
3543
3543
|
onSettingDragEnd: async () => {
|
|
@@ -3617,9 +3617,9 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3617
3617
|
const qe = async () => {
|
|
3618
3618
|
try {
|
|
3619
3619
|
const [a, s, y] = await Promise.all([
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3620
|
+
Sa(K.value),
|
|
3621
|
+
Ia(K.value),
|
|
3622
|
+
Ta(K.value)
|
|
3623
3623
|
]);
|
|
3624
3624
|
a && Array.isArray(a) && a.forEach((C) => {
|
|
3625
3625
|
const I = t.value[C.key];
|
|
@@ -3638,9 +3638,9 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3638
3638
|
t.value[s].showCol === void 0 && (t.value[s].showCol = !0);
|
|
3639
3639
|
});
|
|
3640
3640
|
}
|
|
3641
|
-
},
|
|
3641
|
+
}, je = () => Qa(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3642
3642
|
return Vl(() => {
|
|
3643
|
-
K.value =
|
|
3643
|
+
K.value = je();
|
|
3644
3644
|
}), _t(async () => {
|
|
3645
3645
|
try {
|
|
3646
3646
|
h.value = Object.entries(t.value).filter(
|
|
@@ -3721,10 +3721,10 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3721
3721
|
key: "3"
|
|
3722
3722
|
} : void 0
|
|
3723
3723
|
]), 1040, ["modelValue", "type"])) : $e("", !0),
|
|
3724
|
-
J("div",
|
|
3725
|
-
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (p(), U("div",
|
|
3724
|
+
J("div", Za, [
|
|
3725
|
+
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (p(), U("div", Ja, [
|
|
3726
3726
|
x(a.$slots, "query", {}, () => [
|
|
3727
|
-
se(
|
|
3727
|
+
se(ia, {
|
|
3728
3728
|
modelValue: t.value,
|
|
3729
3729
|
"onUpdate:modelValue": s[3] || (s[3] = (Z) => t.value = Z),
|
|
3730
3730
|
info: S.value,
|
|
@@ -3748,7 +3748,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3748
3748
|
onClick: (st) => ae.func(k.value, t.value, h.value)
|
|
3749
3749
|
}), {
|
|
3750
3750
|
default: _(() => [
|
|
3751
|
-
|
|
3751
|
+
Le(Se(ae.label), 1)
|
|
3752
3752
|
]),
|
|
3753
3753
|
_: 2
|
|
3754
3754
|
}, 1040, ["title", "disabled", "onClick"])) : (p(), V(L(Re), q({
|
|
@@ -3777,7 +3777,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3777
3777
|
onClick: (st) => ae.func(k.value, t.value, h.value)
|
|
3778
3778
|
}), {
|
|
3779
3779
|
default: _(() => [
|
|
3780
|
-
|
|
3780
|
+
Le(Se(ae.label), 1)
|
|
3781
3781
|
]),
|
|
3782
3782
|
_: 2
|
|
3783
3783
|
}, 1040, ["title", "disabled", "onClick"])) : (p(), V(L(Re), q({
|
|
@@ -3812,7 +3812,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3812
3812
|
model: t.value,
|
|
3813
3813
|
queryInfo: S.value
|
|
3814
3814
|
}, void 0, !0),
|
|
3815
|
-
J("div",
|
|
3815
|
+
J("div", Ka, [
|
|
3816
3816
|
f.value ? (p(), V(ye, q({ key: 0 }, {
|
|
3817
3817
|
...a.$attrs,
|
|
3818
3818
|
...L(Xe)(
|
|
@@ -3880,7 +3880,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3880
3880
|
return [
|
|
3881
3881
|
J("div", {
|
|
3882
3882
|
class: Kt(["control", (vt = t.value.control) == null ? void 0 : vt.class]),
|
|
3883
|
-
style:
|
|
3883
|
+
style: Ue((pt = t.value.control) == null ? void 0 : pt.style)
|
|
3884
3884
|
}, [
|
|
3885
3885
|
x(a.$slots, "control", {}, () => [
|
|
3886
3886
|
x(a.$slots, "control-left", {
|
|
@@ -3910,7 +3910,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3910
3910
|
onClick: (ct) => W.func(ee, ie, fe, t.value)
|
|
3911
3911
|
}), {
|
|
3912
3912
|
default: _(() => [
|
|
3913
|
-
|
|
3913
|
+
Le(Se(W.label), 1)
|
|
3914
3914
|
]),
|
|
3915
3915
|
_: 2
|
|
3916
3916
|
}, 1040, ["title", "onClick"])) : (p(), V(L(Re), q({
|
|
@@ -3962,7 +3962,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3962
3962
|
onClick: (ce) => W.func(ee, ie, fe, t.value)
|
|
3963
3963
|
}), {
|
|
3964
3964
|
default: _(() => [
|
|
3965
|
-
|
|
3965
|
+
Le(Se(W.label), 1)
|
|
3966
3966
|
]),
|
|
3967
3967
|
_: 2
|
|
3968
3968
|
}, 1040, ["title", "onClick"])) : (p(), V(L(Re), q({
|
|
@@ -3990,7 +3990,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
3990
3990
|
default: _(() => {
|
|
3991
3991
|
var W;
|
|
3992
3992
|
return [
|
|
3993
|
-
|
|
3993
|
+
Le(Se((W = Te(ee, ie, fe, t.value)) == null ? void 0 : W.label) + " ", 1)
|
|
3994
3994
|
];
|
|
3995
3995
|
}),
|
|
3996
3996
|
_: 2
|
|
@@ -4015,7 +4015,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4015
4015
|
onClick: (ct) => W.func(ee, ie, fe, t.value)
|
|
4016
4016
|
}), {
|
|
4017
4017
|
default: _(() => [
|
|
4018
|
-
|
|
4018
|
+
Le(Se(W.label), 1)
|
|
4019
4019
|
]),
|
|
4020
4020
|
_: 2
|
|
4021
4021
|
}, 1040, ["title", "onClick"])) : (p(), V(L(Re), q({
|
|
@@ -4088,12 +4088,12 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4088
4088
|
index: fe
|
|
4089
4089
|
}, () => [
|
|
4090
4090
|
J("div", {
|
|
4091
|
-
style:
|
|
4091
|
+
style: Ue([{ width: "100%", "text-overflow": "ellipsis", overflow: "hidden" }, Z == null ? void 0 : Z.style]),
|
|
4092
4092
|
innerHTML: Ve(
|
|
4093
4093
|
Z,
|
|
4094
4094
|
typeof ie.formatter == "function" ? ie.formatter(ee, ie, ee[ve], fe) : ee[ve]
|
|
4095
4095
|
)
|
|
4096
|
-
}, null, 12,
|
|
4096
|
+
}, null, 12, er)
|
|
4097
4097
|
], !0)
|
|
4098
4098
|
]),
|
|
4099
4099
|
key: "2"
|
|
@@ -4122,7 +4122,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4122
4122
|
], 64);
|
|
4123
4123
|
};
|
|
4124
4124
|
}
|
|
4125
|
-
}),
|
|
4125
|
+
}), lr = /* @__PURE__ */ nt(tr, [["__scopeId", "data-v-32011496"]]), ar = { class: "g-tree-table" }, rr = { class: "g-tree-container" }, nr = { class: "g-tree-table-container" }, or = /* @__PURE__ */ Object.assign({
|
|
4126
4126
|
name: "g-tree-table",
|
|
4127
4127
|
inheritAttrs: !1
|
|
4128
4128
|
}, {
|
|
@@ -4150,10 +4150,10 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4150
4150
|
f.value.filter(k);
|
|
4151
4151
|
}), (k, Q) => {
|
|
4152
4152
|
const K = H("el-input"), te = H("el-tree"), oe = H("g-table");
|
|
4153
|
-
return p(), U("div",
|
|
4153
|
+
return p(), U("div", ar, [
|
|
4154
4154
|
J("div", {
|
|
4155
4155
|
class: "g-tree-left",
|
|
4156
|
-
style:
|
|
4156
|
+
style: Ue({ width: i.value })
|
|
4157
4157
|
}, [
|
|
4158
4158
|
t.value ? (p(), V(K, {
|
|
4159
4159
|
key: 0,
|
|
@@ -4163,7 +4163,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4163
4163
|
placeholder: "输入节点查询",
|
|
4164
4164
|
clearable: ""
|
|
4165
4165
|
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
4166
|
-
J("div",
|
|
4166
|
+
J("div", rr, [
|
|
4167
4167
|
se(te, q({
|
|
4168
4168
|
style: { width: i.value },
|
|
4169
4169
|
"filter-node-method": v,
|
|
@@ -4191,7 +4191,7 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4191
4191
|
]), 1040, ["style"])
|
|
4192
4192
|
])
|
|
4193
4193
|
], 4),
|
|
4194
|
-
J("div",
|
|
4194
|
+
J("div", nr, [
|
|
4195
4195
|
se(oe, q({
|
|
4196
4196
|
modelValue: l.value,
|
|
4197
4197
|
"onUpdate:modelValue": Q[1] || (Q[1] = (ue) => l.value = ue)
|
|
@@ -4210,14 +4210,14 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4210
4210
|
]);
|
|
4211
4211
|
};
|
|
4212
4212
|
}
|
|
4213
|
-
}),
|
|
4213
|
+
}), ur = /* @__PURE__ */ nt(or, [["__scopeId", "data-v-30eb4f60"]]), sr = {
|
|
4214
4214
|
key: 0,
|
|
4215
4215
|
class: "op-group"
|
|
4216
|
-
},
|
|
4216
|
+
}, ir = {
|
|
4217
4217
|
key: 1,
|
|
4218
4218
|
class: "op-items",
|
|
4219
4219
|
style: { width: "100%", height: "100%" }
|
|
4220
|
-
},
|
|
4220
|
+
}, dr = ["title"], Gt = "100px", cr = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
4221
4221
|
__name: "g-select-option",
|
|
4222
4222
|
props: {
|
|
4223
4223
|
columns: {
|
|
@@ -4239,42 +4239,42 @@ const Za = /* @__PURE__ */ il(Qa), Ja = { class: "g-table-container" }, Ka = {
|
|
|
4239
4239
|
},
|
|
4240
4240
|
setup(r) {
|
|
4241
4241
|
const u = r;
|
|
4242
|
-
return (e, l) => u.title ? (p(), U("div",
|
|
4242
|
+
return (e, l) => u.title ? (p(), U("div", sr, [
|
|
4243
4243
|
(p(!0), U(ne, null, P(u.columns, (n) => (p(), U("span", {
|
|
4244
|
-
style:
|
|
4244
|
+
style: Ue({ width: (n == null ? void 0 : n.width) || Gt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
4245
4245
|
key: n.key
|
|
4246
4246
|
}, [
|
|
4247
4247
|
x(e.$slots, `${r.t}-title-${n.key}`, { col: n }, () => [
|
|
4248
|
-
|
|
4248
|
+
Le(Se(n.label), 1)
|
|
4249
4249
|
], !0)
|
|
4250
4250
|
], 4))), 128))
|
|
4251
|
-
])) : (p(), U("div",
|
|
4251
|
+
])) : (p(), U("div", ir, [
|
|
4252
4252
|
(p(!0), U(ne, null, P(u.columns, (n) => (p(), U("span", {
|
|
4253
|
-
style:
|
|
4253
|
+
style: Ue({ width: (n == null ? void 0 : n.width) || Gt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4254
4254
|
key: n.key,
|
|
4255
4255
|
title: r.data[n.key]
|
|
4256
4256
|
}, [
|
|
4257
4257
|
x(e.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4258
|
-
|
|
4258
|
+
Le(Se(r.data[n.key] ?? "-"), 1)
|
|
4259
4259
|
], !0)
|
|
4260
|
-
], 12,
|
|
4260
|
+
], 12, dr))), 128))
|
|
4261
4261
|
]));
|
|
4262
4262
|
}
|
|
4263
|
-
}),
|
|
4263
|
+
}), fr = /* @__PURE__ */ nt(cr, [["__scopeId", "data-v-c0ac6b77"]]), vr = Object.freeze({}), Pt = [lr, vl, ur, fr, Bt, pl];
|
|
4264
4264
|
let qt = {};
|
|
4265
|
-
const
|
|
4265
|
+
const Sr = {
|
|
4266
4266
|
install: (r, u = {}) => {
|
|
4267
|
-
qt = Object.freeze({ ...
|
|
4267
|
+
qt = Object.freeze({ ...vr, ...u }), Pt.forEach((e) => {
|
|
4268
4268
|
r.component(e.name, e);
|
|
4269
4269
|
}), r.provide("options", qt), r.config.globalProperties.$openModal = Ft, r.config.globalProperties.$open = gl;
|
|
4270
4270
|
}
|
|
4271
|
-
},
|
|
4271
|
+
}, pr = (r) => ({ dialog: kl, drawer: wl })[r] || null, Ft = (r = {}, u = "dialog") => {
|
|
4272
4272
|
if (typeof document > "u") return () => {
|
|
4273
4273
|
};
|
|
4274
4274
|
const e = document.createElement("div");
|
|
4275
4275
|
let l = () => {
|
|
4276
4276
|
};
|
|
4277
|
-
const n =
|
|
4277
|
+
const n = pr(u);
|
|
4278
4278
|
if (!n) return () => {
|
|
4279
4279
|
};
|
|
4280
4280
|
const i = re(!0), t = tl({
|
|
@@ -4342,7 +4342,7 @@ const Tr = {
|
|
|
4342
4342
|
n.component(i.name, i);
|
|
4343
4343
|
}), n.provide("options", qt), n.use(Xt, { locale: sl }), document.body.appendChild(u), n.mount(u), e;
|
|
4344
4344
|
};
|
|
4345
|
-
function
|
|
4345
|
+
function mr(r, u = window.innerWidth) {
|
|
4346
4346
|
if (typeof r == "number")
|
|
4347
4347
|
return r;
|
|
4348
4348
|
if (r.endsWith("px"))
|
|
@@ -4364,7 +4364,7 @@ function hr(r, u = window.innerWidth) {
|
|
|
4364
4364
|
throw new Error("Invalid calc expression");
|
|
4365
4365
|
};
|
|
4366
4366
|
const n = r.slice(5, -1).trim();
|
|
4367
|
-
return i(n.replace(/([0-9.]+)([a-z%]+)/g, (d, S, f) =>
|
|
4367
|
+
return i(n.replace(/([0-9.]+)([a-z%]+)/g, (d, S, f) => mr(S + f, u)));
|
|
4368
4368
|
}
|
|
4369
4369
|
throw new Error("Unsupported unit in value: " + r);
|
|
4370
4370
|
}
|
|
@@ -4380,12 +4380,12 @@ function Xe(r, u = (e, l) => l != null) {
|
|
|
4380
4380
|
r.hasOwnProperty(l) && u(l, r[l]) && (e[l] = r[l]);
|
|
4381
4381
|
return e;
|
|
4382
4382
|
}
|
|
4383
|
-
function
|
|
4383
|
+
function hr(r, u, e = "value", l = "label", n = "children") {
|
|
4384
4384
|
for (const i of r) {
|
|
4385
4385
|
if (i[e] === u)
|
|
4386
4386
|
return i[l];
|
|
4387
4387
|
if (i[n] && i[n].length > 0) {
|
|
4388
|
-
const t =
|
|
4388
|
+
const t = hr(i[n], u, e, l, n);
|
|
4389
4389
|
if (t)
|
|
4390
4390
|
return t;
|
|
4391
4391
|
}
|
|
@@ -4411,7 +4411,7 @@ function Rt(r) {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
return n + i.replace(/(零.)*零元/, "元").replace(/(零.)+/g, "零").replace(/^整$/, "零元整");
|
|
4413
4413
|
}
|
|
4414
|
-
function
|
|
4414
|
+
function yr(r, u = 2, e = !1) {
|
|
4415
4415
|
let l = Number(r);
|
|
4416
4416
|
if (isNaN(l) || !isFinite(l))
|
|
4417
4417
|
return "0.00";
|
|
@@ -4422,7 +4422,7 @@ function gr(r, u = 2, e = !1) {
|
|
|
4422
4422
|
const [t, d] = i.split("."), S = t.replace(/\B(?=(\d{3})+(?!\d))/g, ","), f = d ? `${S}.${d}` : S;
|
|
4423
4423
|
return n ? `-${f}` : f;
|
|
4424
4424
|
}
|
|
4425
|
-
function
|
|
4425
|
+
function gr(r, u) {
|
|
4426
4426
|
let e = null;
|
|
4427
4427
|
return function(...l) {
|
|
4428
4428
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
@@ -4430,7 +4430,7 @@ function br(r, u) {
|
|
|
4430
4430
|
}, u);
|
|
4431
4431
|
};
|
|
4432
4432
|
}
|
|
4433
|
-
function
|
|
4433
|
+
function Tr(r, u) {
|
|
4434
4434
|
let e = null;
|
|
4435
4435
|
return function(...l) {
|
|
4436
4436
|
e || (e = setTimeout(() => {
|
|
@@ -4472,10 +4472,10 @@ const Me = {
|
|
|
4472
4472
|
const r = document.querySelector(".el-dialog");
|
|
4473
4473
|
if (!r || r.querySelector(".dialog-resize-handle"))
|
|
4474
4474
|
return;
|
|
4475
|
-
const u =
|
|
4476
|
-
r.appendChild(u),
|
|
4475
|
+
const u = br();
|
|
4476
|
+
r.appendChild(u), $r(r), wr(r, u);
|
|
4477
4477
|
});
|
|
4478
|
-
},
|
|
4478
|
+
}, br = () => {
|
|
4479
4479
|
const r = document.createElement("div");
|
|
4480
4480
|
return Object.assign(r.style, {
|
|
4481
4481
|
position: "absolute",
|
|
@@ -4487,7 +4487,7 @@ const Me = {
|
|
|
4487
4487
|
cursor: "nwse-resize",
|
|
4488
4488
|
zIndex: "999999999999"
|
|
4489
4489
|
}), r.className = "dialog-resize-handle", r;
|
|
4490
|
-
},
|
|
4490
|
+
}, $r = (r) => {
|
|
4491
4491
|
Object.assign(r.style, {
|
|
4492
4492
|
transition: "none",
|
|
4493
4493
|
minWidth: "300px",
|
|
@@ -4495,7 +4495,7 @@ const Me = {
|
|
|
4495
4495
|
resize: "none"
|
|
4496
4496
|
// 防止与原生resize冲突
|
|
4497
4497
|
});
|
|
4498
|
-
},
|
|
4498
|
+
}, wr = (r, u) => {
|
|
4499
4499
|
let e = !1, l, n, i, t;
|
|
4500
4500
|
const d = (v) => {
|
|
4501
4501
|
v.preventDefault(), e = !0, l = v.clientX, n = v.clientY, i = parseInt(document.defaultView.getComputedStyle(r).width), t = parseInt(document.defaultView.getComputedStyle(r).height), document.addEventListener("mousemove", S), document.addEventListener("mouseup", f);
|
|
@@ -4511,15 +4511,15 @@ const Me = {
|
|
|
4511
4511
|
export {
|
|
4512
4512
|
Me as CT,
|
|
4513
4513
|
wt as bindResize,
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4514
|
+
mr as convertToPx,
|
|
4515
|
+
gr as debounce,
|
|
4516
|
+
Sr as default,
|
|
4517
4517
|
Xe as filterObject,
|
|
4518
|
-
|
|
4519
|
-
|
|
4518
|
+
hr as findTreeLabelByValue,
|
|
4519
|
+
yr as formatAmount,
|
|
4520
4520
|
ze as mergeObjects,
|
|
4521
4521
|
Rt as moneyToChinese,
|
|
4522
4522
|
gl as open,
|
|
4523
4523
|
Ft as openModal,
|
|
4524
|
-
|
|
4524
|
+
Tr as throttle
|
|
4525
4525
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-
|
|
1
|
+
.custom-upload[data-v-10605db6]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-10605db6] .custom-upload img{width:100%;height:100%}[data-v-10605db6] .custom-upload .el-upload--picture-card,[data-v-10605db6] .custom-upload .el-upload-dragger,[data-v-10605db6] .custom-upload .el-upload-list__item{width:var(--up-width);height:var(--up-height);line-height:var(--up-height);box-sizing:border-box}[data-v-10605db6] .custom-upload .el-upload-dragger{display:flex;align-items:center;justify-content:center;border:1px dashed var(--el-border-color);border-radius:6px;background-color:var(--el-fill-color-light);transition:border-color .3s}[data-v-10605db6] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-10605db6] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-10605db6]:hover{background-color:#0003}.g-query-container[data-v-eaca2240]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;box-sizing:border-box}.outer[data-v-eaca2240]{min-height:100px;border-radius:4px;background-color:var(--el-bg-color);top:60px;padding-top:10px;width:100%;box-sizing:border-box}.inner[data-v-eaca2240]{border-radius:4px;min-height:100px;border:1px solid var(--el-border-color);padding:18px 18px 0;box-sizing:border-box;width:100%;background-color:var(--el-bg-color)}.nested-enter-active[data-v-eaca2240],.nested-leave-active[data-v-eaca2240]{transition:all .3s ease-in-out}.nested-leave-active[data-v-eaca2240]{transition-delay:.25s}.nested-enter-from[data-v-eaca2240],.nested-leave-to[data-v-eaca2240]{transform:translateY(-100px);opacity:0}.nested-enter-active .inner[data-v-eaca2240],.nested-leave-active .inner[data-v-eaca2240]{transition:all .3s ease-in-out}.nested-enter-active .inner[data-v-eaca2240]{transition-delay:.25s}.nested-enter-from .inner[data-v-eaca2240],.nested-leave-to .inner[data-v-eaca2240]{transform:translateY(-100px);opacity:.001}.query-form[data-v-eaca2240]{padding:20px;background-color:var(--el-bg-color);border:1px solid var(--el-border-color);margin:5px;border-radius:4px}.g-form-container[data-v-6a8d36f6]{width:100%;display:flex;flex-direction:column;overflow:hidden}.custom-header[data-v-99d6bb1e]{display:flex;align-items:center;width:100%;height:100%;margin:0;box-sizing:border-box;color:var(--el-text-color-regular);border-bottom:1px solid var(--el-border-color)}.btn-icon[data-v-99d6bb1e]{cursor:pointer;margin:15px 10px;color:var(--el-text-color-regular);font-size:18px;padding:3px}.btn-icon[data-v-99d6bb1e]:hover{color:var(--el-color-primary);transition:all .2s;font-weight:700;background-color:var(--el-color-primary-light-7);border-radius:4px}.minimize-ball[data-v-99d6bb1e]{position:fixed;right:30px;bottom:30px;min-width:120px;height:42px;line-height:42px;background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:6px;box-shadow:var(--el-box-shadow-light);text-align:center;cursor:pointer;z-index:9999;color:var(--el-text-color-regular);font-size:14px;transition:all .2s}.minimize-ball[data-v-99d6bb1e]:hover{border-color:var(--el-color-primary-light-7);background:var(--el-fill-color-light);color:var(--el-color-primary)}[data-v-99d6bb1e] .el-dialog{padding:0;box-sizing:border-box}[data-v-99d6bb1e] .el-dialog__header,[data-v-99d6bb1e] .el-drawer__header{padding:0!important;margin:0!important}.check-box-hover[data-v-13575747]:hover,.check-box-hover[data-v-750b37bc]:hover{background:var(--el-border-color)}.allcheck a[data-v-750b37bc]{cursor:pointer}.filtered[data-v-750b37bc]{pointer-events:none}.g-cell-toopTip[data-v-f28912da]{max-height:400px;border-radius:var(--el-border-radius-base);padding:12px;transition:all .3s ease}.g-cell-toopTip .title[data-v-f28912da]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:24px;border-bottom:1px solid var(--el-border-color)}.g-cell-toopTip .title .title-text[data-v-f28912da]{font-weight:700;line-height:24px}.g-cell-toopTip .content[data-v-f28912da]{max-height:300px;overflow-y:auto;line-height:1.5;padding:4px 0}.copy-btn[data-v-f28912da]{width:16px;height:16px;cursor:pointer}.copy-btn[data-v-f28912da]:hover{color:var(--el-color-success)}.g-detail-container[data-v-4902ce5a]{padding-top:5px}.control .el-button[data-v-32011496]{padding:0 3px;margin:0 3px}.g-table-container[data-v-32011496]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-32011496]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-32011496]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-32011496]{cursor:pointer;color:var(--el-text-color)}.max[data-v-32011496]:hover{color:var(--el-color-primary)}.btns[data-v-32011496]{display:flex}[data-v-32011496] .drag-dialog{resize:both;overflow:auto}[data-v-32011496] .el-dialog__header,[data-v-32011496] .el-dialog__body{pointer-events:auto!important}.g-tree-table[data-v-30eb4f60]{width:100%;display:flex;box-sizing:border-box}.g-tree-container[data-v-30eb4f60]{display:flex;width:100%;box-sizing:border-box;border-radius:4px;overflow:auto;height:100%;border:1px solid var(--el-border-color-lighter)}.g-tree-table-container[data-v-30eb4f60]{display:flex;flex:1;overflow:auto}.g-tree-left[data-v-30eb4f60]{display:flex;flex-direction:column;box-sizing:border-box;margin-right:10px;overflow:auto}.op-group[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#fff;padding:5px 25px;box-sizing:border-box;background-color:var(--el-color-primary-light-3)}.op-items[data-v-c0ac6b77]{display:flex;justify-content:space-between;align-items:center;color:#666;margin-left:12px}.op-items span[data-v-c0ac6b77]{background-color:var(--el-color-primary-light-7);border-radius:3px;margin:2px 2px 0 0;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
|