vue-2024-ui 0.2.91 → 0.2.92
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 +166 -166
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Xt, { dayjs 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 Ye, 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
|
|
3
|
-
import { Plus as
|
|
1
|
+
import Xt, { dayjs as bl, ElForm as Vt, ElButtonGroup as Et, ElButton as Re, ElPopover as Lt, ElIcon as jt, ElMessage as ft, ElMessageBox as Qt, ElDrawer as $l, ElDialog as wl } 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, normalizeStyle as Ye, 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 Yt, withModifiers as yt, Transition as kl, withDirectives as _l, vShow as Cl, h as Ce, useAttrs as zt, onUnmounted as xl, onBeforeUnmount as Ml, normalizeClass as Kt, watchEffect as Sl, onBeforeMount as Tl, watch as el, createApp as tl } from "vue";
|
|
3
|
+
import { Plus as Vl, ZoomIn as El, Delete as ll, Search as Dl, Refresh as al, More as Ol, CircleClose as Il, CircleCheckFilled as ql, CircleCheck as Ht, Minus as Al, Close as Yl, Switch as rl, FullScreen as zl, InfoFilled as nl, Download as ol, DocumentCopy as Ul, Setting as Ll, CirclePlus as jl, Edit as Hl, View as Fl } from "@element-plus/icons-vue";
|
|
4
4
|
import ul from "sortablejs";
|
|
5
|
-
import { Dexie as
|
|
5
|
+
import { Dexie as Rl } from "dexie";
|
|
6
6
|
var sl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
@@ -178,7 +178,7 @@ var sl = {
|
|
|
178
178
|
indicator: "幻灯片切换至索引 {index}"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
182
|
function il(r) {
|
|
183
183
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
184
184
|
}
|
|
@@ -186,7 +186,7 @@ var dl = { exports: {} };
|
|
|
186
186
|
(function(r, u) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
r.exports = l();
|
|
189
|
-
})(
|
|
189
|
+
})(Bl, function() {
|
|
190
190
|
var e = 1e3, l = 6e4, n = 36e5, i = "millisecond", t = "second", d = "minute", S = "hour", f = "day", v = "week", c = "month", o = "quarter", m = "year", A = "date", j = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|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, Q = { 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(w) {
|
|
191
191
|
var $ = ["th", "st", "nd", "rd"], g = w % 100;
|
|
192
192
|
return "[" + w + ($[(g - 20) % 10] || $[g] || $[0]) + "]";
|
|
@@ -458,13 +458,13 @@ var dl = { exports: {} };
|
|
|
458
458
|
}, he.en = ue[oe], he.Ls = ue, he.p = {}, he;
|
|
459
459
|
});
|
|
460
460
|
})(dl);
|
|
461
|
-
var
|
|
462
|
-
const It = /* @__PURE__ */ il(
|
|
461
|
+
var Pl = dl.exports;
|
|
462
|
+
const It = /* @__PURE__ */ il(Pl), nt = (r, u) => {
|
|
463
463
|
const e = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of u)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
|
-
},
|
|
467
|
+
}, Nl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Wl = ["innerHTML"], Gl = ["innerHTML"], Xl = ["title"], Ql = ["innerHTML"], Zl = ["innerHTML"], Jl = ["innerHTML"], Kl = ["innerHTML"], ea = ["innerHTML"], ta = ["innerHTML"], la = ["innerHTML"], aa = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
468
468
|
__name: "g-ctrl",
|
|
469
469
|
props: /* @__PURE__ */ ut(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
470
470
|
modelValue: { required: !0 },
|
|
@@ -491,7 +491,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
491
491
|
});
|
|
492
492
|
Object.hasOwn(e.value, "showDel") && (k.value.showDel = e.value.showDel);
|
|
493
493
|
const Q = re(e.value.value);
|
|
494
|
-
(Ne = e == null ? void 0 : e.value) != null && Ne.format && (Q.value =
|
|
494
|
+
(Ne = e == null ? void 0 : e.value) != null && Ne.format && (Q.value = bl(l.value).format(e.value.format || "YYYY-MM-DD"));
|
|
495
495
|
const K = (z) => [
|
|
496
496
|
"year",
|
|
497
497
|
"years",
|
|
@@ -741,7 +741,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
741
741
|
modelValue: l.value,
|
|
742
742
|
"onUpdate:modelValue": T[6] || (T[6] = (b) => l.value = b),
|
|
743
743
|
placeholder: o.value,
|
|
744
|
-
clearable:
|
|
744
|
+
clearable: u.t == "q",
|
|
745
745
|
onClear: T[7] || (T[7] = () => {
|
|
746
746
|
u.t == "q" && t.value.table.load();
|
|
747
747
|
}),
|
|
@@ -776,10 +776,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
776
776
|
data: ce,
|
|
777
777
|
t: u.t
|
|
778
778
|
}, be({ _: 2 }, [
|
|
779
|
-
P(z.$slots, ($t,
|
|
780
|
-
name:
|
|
779
|
+
P(z.$slots, ($t, Ut) => ({
|
|
780
|
+
name: Ut,
|
|
781
781
|
fn: _((Tt) => [
|
|
782
|
-
x(z.$slots,
|
|
782
|
+
x(z.$slots, Ut, {
|
|
783
783
|
option: ce,
|
|
784
784
|
data: Tt,
|
|
785
785
|
form: r.formInfo
|
|
@@ -815,12 +815,12 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
815
815
|
data: pe,
|
|
816
816
|
t: u.t
|
|
817
817
|
}, be({ _: 2 }, [
|
|
818
|
-
P(z.$slots, (
|
|
818
|
+
P(z.$slots, (Ut, Tt) => ({
|
|
819
819
|
name: Tt,
|
|
820
|
-
fn: _((
|
|
820
|
+
fn: _((gl) => [
|
|
821
821
|
x(z.$slots, Tt, {
|
|
822
822
|
option: pe,
|
|
823
|
-
data:
|
|
823
|
+
data: gl,
|
|
824
824
|
form: r.formInfo
|
|
825
825
|
}, void 0, !0)
|
|
826
826
|
])
|
|
@@ -865,7 +865,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
865
865
|
x(z.$slots, `${u.t}-${n.value}-${b}`, { form: r.formInfo }, void 0, !0)
|
|
866
866
|
])
|
|
867
867
|
}))
|
|
868
|
-
]), 1040, ["modelValue", "placeholder", "disabled"])) : i.value == L(Me).TREESELECT ? (p(), V(xt, q({
|
|
868
|
+
]), 1040, ["modelValue", "placeholder", "clearable", "disabled"])) : i.value == L(Me).TREESELECT ? (p(), V(xt, q({
|
|
869
869
|
key: 6,
|
|
870
870
|
modelValue: l.value,
|
|
871
871
|
"onUpdate:modelValue": T[8] || (T[8] = (b) => l.value = b),
|
|
@@ -976,7 +976,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
976
976
|
return [
|
|
977
977
|
!l.value || ((b = e.value) == null ? void 0 : b.multiple) === !0 ? (p(), V(De, { key: 0 }, {
|
|
978
978
|
default: _(() => [
|
|
979
|
-
se(L(
|
|
979
|
+
se(L(Vl))
|
|
980
980
|
]),
|
|
981
981
|
_: 1
|
|
982
982
|
})) : (p(), U("div", {
|
|
@@ -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", Nl, [
|
|
988
988
|
se(Ae, q({
|
|
989
989
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
990
990
|
src: l.value
|
|
@@ -1009,7 +1009,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1009
1009
|
placement: "top"
|
|
1010
1010
|
}, {
|
|
1011
1011
|
default: _(() => [
|
|
1012
|
-
se(L(
|
|
1012
|
+
se(L(El), {
|
|
1013
1013
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1014
1014
|
color: "white",
|
|
1015
1015
|
onClick: B
|
|
@@ -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, Wl)
|
|
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, Gl)
|
|
1101
1101
|
];
|
|
1102
1102
|
}),
|
|
1103
1103
|
key: "1"
|
|
@@ -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, Xl)
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 2
|
|
1133
1133
|
}, [
|
|
@@ -1160,7 +1160,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
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, Ql)
|
|
1164
1164
|
]),
|
|
1165
1165
|
_: 1
|
|
1166
1166
|
}, 16)) : (p(), V(We, Ot(q({ key: 1 }, e.value)), null, 16))
|
|
@@ -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: m.value
|
|
1196
|
-
}), null, 16,
|
|
1196
|
+
}), null, 16, Zl)) : i.value == "span" ? (p(), U("span", q({ key: 26 }, e.value, {
|
|
1197
1197
|
innerHTML: Q.value || l.value,
|
|
1198
1198
|
style: m.value
|
|
1199
|
-
}), null, 16,
|
|
1199
|
+
}), null, 16, Jl)) : i.value == "custom" ? (p(), U("div", {
|
|
1200
1200
|
key: 27,
|
|
1201
1201
|
style: Ye(m.value)
|
|
1202
1202
|
}, [
|
|
@@ -1224,7 +1224,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1224
1224
|
return [
|
|
1225
1225
|
J("div", {
|
|
1226
1226
|
innerHTML: ((b = e.value) == null ? void 0 : b.suffix) || ""
|
|
1227
|
-
}, null, 8,
|
|
1227
|
+
}, null, 8, Kl)
|
|
1228
1228
|
];
|
|
1229
1229
|
}),
|
|
1230
1230
|
key: "0"
|
|
@@ -1236,7 +1236,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1236
1236
|
return [
|
|
1237
1237
|
J("div", {
|
|
1238
1238
|
innerHTML: ((b = e.value) == null ? void 0 : b.prefix) || ""
|
|
1239
|
-
}, null, 8,
|
|
1239
|
+
}, null, 8, ea)
|
|
1240
1240
|
];
|
|
1241
1241
|
}),
|
|
1242
1242
|
key: "1"
|
|
@@ -1248,7 +1248,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1248
1248
|
return [
|
|
1249
1249
|
J("div", {
|
|
1250
1250
|
innerHTML: ((b = e.value) == null ? void 0 : b.append) || ""
|
|
1251
|
-
}, null, 8,
|
|
1251
|
+
}, null, 8, ta)
|
|
1252
1252
|
];
|
|
1253
1253
|
}),
|
|
1254
1254
|
key: "2"
|
|
@@ -1260,7 +1260,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1260
1260
|
return [
|
|
1261
1261
|
J("div", {
|
|
1262
1262
|
innerHTML: ((b = e.value) == null ? void 0 : b.prepend) || ""
|
|
1263
|
-
}, null, 8,
|
|
1263
|
+
}, null, 8, la)
|
|
1264
1264
|
];
|
|
1265
1265
|
}),
|
|
1266
1266
|
key: "3"
|
|
@@ -1279,7 +1279,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1279
1279
|
], 64);
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
}), kt = /* @__PURE__ */ nt(
|
|
1282
|
+
}), kt = /* @__PURE__ */ nt(aa, [["__scopeId", "data-v-fc3fe0eb"]]), Nt = {
|
|
1283
1283
|
__name: "g-query-item",
|
|
1284
1284
|
props: /* @__PURE__ */ ut(["more"], {
|
|
1285
1285
|
modelValue: { required: !0 },
|
|
@@ -1361,10 +1361,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1361
1361
|
])), 128);
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
},
|
|
1364
|
+
}, ra = {
|
|
1365
1365
|
key: 0,
|
|
1366
1366
|
class: "outer"
|
|
1367
|
-
},
|
|
1367
|
+
}, na = { class: "inner" }, oa = {
|
|
1368
1368
|
__name: "g-query",
|
|
1369
1369
|
props: {
|
|
1370
1370
|
modelValue: { required: !0 },
|
|
@@ -1374,7 +1374,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1374
1374
|
},
|
|
1375
1375
|
emits: /* @__PURE__ */ ut(["query", "reset"], ["update:modelValue", "update:info"]),
|
|
1376
1376
|
setup(r, { emit: u }) {
|
|
1377
|
-
const e = ot(r, "modelValue"), l = u, n =
|
|
1377
|
+
const e = ot(r, "modelValue"), l = u, n = Yt("options"), i = re(!1), t = ot(r, "info"), d = Pe(() => {
|
|
1378
1378
|
var Q, K, te;
|
|
1379
1379
|
const E = Ue((Q = n == null ? void 0 : n.query) == null ? void 0 : Q.btns, (te = (K = e.value) == null ? void 0 : K.query) == null ? void 0 : te.btns) || { align: "left" };
|
|
1380
1380
|
return {
|
|
@@ -1397,7 +1397,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1397
1397
|
hidden: !0,
|
|
1398
1398
|
type: "primary",
|
|
1399
1399
|
label: "更多",
|
|
1400
|
-
icon: () => Ce(
|
|
1400
|
+
icon: () => Ce(Ol),
|
|
1401
1401
|
click: () => {
|
|
1402
1402
|
i.value = !i.value;
|
|
1403
1403
|
}
|
|
@@ -1416,7 +1416,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1416
1416
|
hidden: !1,
|
|
1417
1417
|
type: "primary",
|
|
1418
1418
|
label: "查询",
|
|
1419
|
-
icon: () => Ce(
|
|
1419
|
+
icon: () => Ce(Dl),
|
|
1420
1420
|
click: () => {
|
|
1421
1421
|
l("query", t.value), i.value = !1;
|
|
1422
1422
|
}
|
|
@@ -1506,7 +1506,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1506
1506
|
{
|
|
1507
1507
|
key: "more",
|
|
1508
1508
|
hidden: (he = (Oe = (Te = e.value) == null ? void 0 : Te.query) == null ? void 0 : Oe.more) == null ? void 0 : he.hidden,
|
|
1509
|
-
component: e.value.query.more.mode === 3 ?
|
|
1509
|
+
component: e.value.query.more.mode === 3 ? Lt : Re,
|
|
1510
1510
|
props: e.value.query.more.mode === 3 ? { ...e.value.query.more.dialog } : {
|
|
1511
1511
|
...e.value.query.more,
|
|
1512
1512
|
onClick: e.value.query.more.click
|
|
@@ -1519,7 +1519,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1519
1519
|
}, () => c({ slots: o }, !0)) : null
|
|
1520
1520
|
}
|
|
1521
1521
|
];
|
|
1522
|
-
return E.sort((B, Ve) => B.sort - Ve.sort), E.filter((B) => !B.hidden).map((B) => B.key === "more" && B.component ===
|
|
1522
|
+
return E.sort((B, Ve) => B.sort - Ve.sort), E.filter((B) => !B.hidden).map((B) => B.key === "more" && B.component === Lt ? Ce(Lt, B.props, {
|
|
1523
1523
|
reference: () => Ce(Re, e.value.query.more, () => B.label),
|
|
1524
1524
|
default: B.content
|
|
1525
1525
|
}) : (B.props.slot = "query-" + B.key, B.label ? Ce(B.component, B.props, () => B.label) : Ce(B.component, B.props)));
|
|
@@ -1667,7 +1667,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1667
1667
|
key: "0"
|
|
1668
1668
|
}
|
|
1669
1669
|
]), 1040, ["modelValue"])) : $e("", !0),
|
|
1670
|
-
se(
|
|
1670
|
+
se(kl, {
|
|
1671
1671
|
duration: 300,
|
|
1672
1672
|
name: "nested",
|
|
1673
1673
|
style: { padding: "10px" }
|
|
@@ -1675,9 +1675,9 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1675
1675
|
default: _(() => {
|
|
1676
1676
|
var Y, le, de;
|
|
1677
1677
|
return [
|
|
1678
|
-
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",
|
|
1679
|
-
J("div",
|
|
1680
|
-
e.value.query.more.mode == 1 ?
|
|
1678
|
+
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", ra, [
|
|
1679
|
+
J("div", na, [
|
|
1680
|
+
e.value.query.more.mode == 1 ? _l((p(), V(L(Vt), q({
|
|
1681
1681
|
key: 0,
|
|
1682
1682
|
onSubmit: k[7] || (k[7] = yt(() => {
|
|
1683
1683
|
}, ["prevent"]))
|
|
@@ -1687,7 +1687,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 1
|
|
1689
1689
|
}, 16)), [
|
|
1690
|
-
[
|
|
1690
|
+
[Cl, i.value]
|
|
1691
1691
|
]) : $e("", !0)
|
|
1692
1692
|
])
|
|
1693
1693
|
])) : $e("", !0)
|
|
@@ -1698,7 +1698,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1698
1698
|
], 64);
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
},
|
|
1701
|
+
}, ua = /* @__PURE__ */ nt(oa, [["__scopeId", "data-v-eaca2240"]]), cl = {
|
|
1702
1702
|
inline: !0,
|
|
1703
1703
|
type: "hidden",
|
|
1704
1704
|
"scroll-to-error": !0,
|
|
@@ -1729,7 +1729,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1729
1729
|
label: "提交",
|
|
1730
1730
|
plain: !0,
|
|
1731
1731
|
hidden: !1,
|
|
1732
|
-
icon: () => Ce(
|
|
1732
|
+
icon: () => Ce(Ht)
|
|
1733
1733
|
},
|
|
1734
1734
|
//保存并提交按钮属性
|
|
1735
1735
|
saveSubmit: {
|
|
@@ -1738,7 +1738,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1738
1738
|
label: "保存提交",
|
|
1739
1739
|
plain: !0,
|
|
1740
1740
|
hidden: !0,
|
|
1741
|
-
icon: () => Ce(
|
|
1741
|
+
icon: () => Ce(ql)
|
|
1742
1742
|
},
|
|
1743
1743
|
//表单重置按钮属性
|
|
1744
1744
|
reset: {
|
|
@@ -1753,14 +1753,14 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1753
1753
|
label: "取消",
|
|
1754
1754
|
hidden: !0,
|
|
1755
1755
|
plain: !0,
|
|
1756
|
-
icon: () => Ce(
|
|
1756
|
+
icon: () => Ce(Il)
|
|
1757
1757
|
},
|
|
1758
1758
|
slots: {},
|
|
1759
1759
|
tabs: {
|
|
1760
1760
|
type: "card",
|
|
1761
1761
|
editable: !1
|
|
1762
1762
|
}
|
|
1763
|
-
}, fl = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"],
|
|
1763
|
+
}, fl = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], sa = { class: "g-form-container" }, ia = /* @__PURE__ */ Object.assign({
|
|
1764
1764
|
name: "g-form",
|
|
1765
1765
|
inheritAttrs: !1
|
|
1766
1766
|
}, {
|
|
@@ -1772,14 +1772,14 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1772
1772
|
emits: /* @__PURE__ */ ut(["submit", "reset"], ["update:modelValue"]),
|
|
1773
1773
|
setup(r, { expose: u, emit: e }) {
|
|
1774
1774
|
var Te, Oe, he, B, Ve, Qe;
|
|
1775
|
-
const l = ot(r, "modelValue"), n = e, i = re(null), t =
|
|
1775
|
+
const l = ot(r, "modelValue"), n = e, i = re(null), t = Yt("options"), d = re({}), S = re(""), f = r;
|
|
1776
1776
|
l.value.form = Ue(
|
|
1777
1777
|
cl,
|
|
1778
1778
|
t == null ? void 0 : t.form,
|
|
1779
1779
|
(Te = l.value) == null ? void 0 : Te.form
|
|
1780
1780
|
), l.value.form.style = Ue(
|
|
1781
1781
|
(he = (Oe = l.value) == null ? void 0 : Oe.form) == null ? void 0 : he.style,
|
|
1782
|
-
{ ...(B =
|
|
1782
|
+
{ ...(B = zt()) == null ? void 0 : B.style }
|
|
1783
1783
|
);
|
|
1784
1784
|
const v = async (w, $, g) => {
|
|
1785
1785
|
let h = 5;
|
|
@@ -1909,7 +1909,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
1909
1909
|
}, k = (w) => w === "left" ? "flex-start" : w === "right" ? "flex-end" : w === "center" ? "center" : "flex-end";
|
|
1910
1910
|
_t(() => {
|
|
1911
1911
|
Q(), f != null && f.editForm ? d.value = f.editForm : d.value = te.value;
|
|
1912
|
-
}),
|
|
1912
|
+
}), xl(() => {
|
|
1913
1913
|
i.value = null;
|
|
1914
1914
|
});
|
|
1915
1915
|
const Q = () => {
|
|
@@ -2005,7 +2005,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2005
2005
|
}), (w, $) => {
|
|
2006
2006
|
var le, de, ge;
|
|
2007
2007
|
const g = H("el-form-item"), h = H("el-col"), M = H("el-tab-pane"), D = H("el-tabs"), O = H("el-form"), Y = H("el-button");
|
|
2008
|
-
return p(), U("div",
|
|
2008
|
+
return p(), U("div", sa, [
|
|
2009
2009
|
se(O, q(
|
|
2010
2010
|
{
|
|
2011
2011
|
ref_key: "gform",
|
|
@@ -2190,10 +2190,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2190
2190
|
]);
|
|
2191
2191
|
};
|
|
2192
2192
|
}
|
|
2193
|
-
}), vl = /* @__PURE__ */ nt(
|
|
2193
|
+
}), vl = /* @__PURE__ */ nt(ia, [["__scopeId", "data-v-6a8d36f6"]]), da = { class: "dialog-container" }, ca = {
|
|
2194
2194
|
key: 1,
|
|
2195
2195
|
style: { overflow: "hidden" }
|
|
2196
|
-
},
|
|
2196
|
+
}, fa = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, va = /* @__PURE__ */ Object.assign({
|
|
2197
2197
|
name: "g-model",
|
|
2198
2198
|
inheritAttrs: !1
|
|
2199
2199
|
}, {
|
|
@@ -2217,10 +2217,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2217
2217
|
maximize: { type: Boolean, default: !1 },
|
|
2218
2218
|
minimize: { type: Boolean, default: !1 },
|
|
2219
2219
|
// 图标配置
|
|
2220
|
-
maxIcon: { type: Object, default: () =>
|
|
2220
|
+
maxIcon: { type: Object, default: () => zl },
|
|
2221
2221
|
resizeIcon: { type: Object, default: () => rl },
|
|
2222
|
-
closeIcon: { type: Object, default: () =>
|
|
2223
|
-
minIcon: { type: Object, default: () =>
|
|
2222
|
+
closeIcon: { type: Object, default: () => Yl },
|
|
2223
|
+
minIcon: { type: Object, default: () => Al },
|
|
2224
2224
|
draggable: { type: Boolean, default: !0 },
|
|
2225
2225
|
showClose: { type: Boolean, default: !0 },
|
|
2226
2226
|
fullscreen: { type: Boolean, default: !1 },
|
|
@@ -2238,7 +2238,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2238
2238
|
"restore"
|
|
2239
2239
|
],
|
|
2240
2240
|
setup(r, { expose: u, emit: e }) {
|
|
2241
|
-
const l = r, n =
|
|
2241
|
+
const l = r, n = zt(), i = e, t = re(l.fullscreen), d = Pe(() => l.type === "drawer" ? "el-drawer" : "el-dialog"), S = Pe(() => {
|
|
2242
2242
|
const te = {
|
|
2243
2243
|
modal: l.modal,
|
|
2244
2244
|
closeOnClickModal: l.type !== "dialog",
|
|
@@ -2285,12 +2285,12 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2285
2285
|
}
|
|
2286
2286
|
return u({
|
|
2287
2287
|
handleClose: () => v.value.handleClose()
|
|
2288
|
-
}), (te, oe) => (p(), U("div",
|
|
2288
|
+
}), (te, oe) => (p(), U("div", da, [
|
|
2289
2289
|
o.value ? (p(), U("div", {
|
|
2290
2290
|
key: 0,
|
|
2291
2291
|
class: "minimize-ball",
|
|
2292
2292
|
onClick: K
|
|
2293
|
-
}, Se(r.title), 1)) : (p(), U("div",
|
|
2293
|
+
}, Se(r.title), 1)) : (p(), U("div", ca, [
|
|
2294
2294
|
(p(), V(Ge(d.value), q({
|
|
2295
2295
|
ref_key: "dialogExtend",
|
|
2296
2296
|
ref: v,
|
|
@@ -2316,10 +2316,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2316
2316
|
style: Ye(l.headerStyle)
|
|
2317
2317
|
}, [
|
|
2318
2318
|
x(te.$slots, "title", {}, () => [
|
|
2319
|
-
J("span",
|
|
2319
|
+
J("span", fa, Se(r.title), 1)
|
|
2320
2320
|
], !0),
|
|
2321
2321
|
J("div", null, [
|
|
2322
|
-
r.minimize ? (p(), V(L(
|
|
2322
|
+
r.minimize ? (p(), V(L(jt), {
|
|
2323
2323
|
key: 0,
|
|
2324
2324
|
class: "btn-icon",
|
|
2325
2325
|
onClick: yt(Q, ["stop"])
|
|
@@ -2329,7 +2329,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2329
2329
|
]),
|
|
2330
2330
|
_: 1
|
|
2331
2331
|
})) : $e("", !0),
|
|
2332
|
-
r.maximize ? (p(), V(L(
|
|
2332
|
+
r.maximize ? (p(), V(L(jt), {
|
|
2333
2333
|
key: 1,
|
|
2334
2334
|
class: "btn-icon",
|
|
2335
2335
|
onClick: yt(k, ["stop"])
|
|
@@ -2339,7 +2339,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2339
2339
|
]),
|
|
2340
2340
|
_: 1
|
|
2341
2341
|
})) : $e("", !0),
|
|
2342
|
-
l.showClose ? (p(), V(L(
|
|
2342
|
+
l.showClose ? (p(), V(L(jt), {
|
|
2343
2343
|
key: 2,
|
|
2344
2344
|
class: "btn-icon",
|
|
2345
2345
|
onClick: oe[0] || (oe[0] = yt((Te) => v.value.handleClose(), ["stop"]))
|
|
@@ -2376,10 +2376,10 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2376
2376
|
]))
|
|
2377
2377
|
]));
|
|
2378
2378
|
}
|
|
2379
|
-
}), Bt = /* @__PURE__ */ nt(
|
|
2379
|
+
}), Bt = /* @__PURE__ */ nt(va, [["__scopeId", "data-v-99d6bb1e"]]), pa = { style: { padding: "15px", "box-sizing": "border-box" } }, ma = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, ha = { style: { display: "flex", flex: "1", "align-items": "center" } }, ya = {
|
|
2380
2380
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2381
2381
|
id: "excelSortEl"
|
|
2382
|
-
},
|
|
2382
|
+
}, ga = ["textContent"], ba = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, $a = {
|
|
2383
2383
|
__name: "check-excel-item",
|
|
2384
2384
|
props: {
|
|
2385
2385
|
items: Array,
|
|
@@ -2416,15 +2416,15 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2416
2416
|
S.toArray();
|
|
2417
2417
|
}
|
|
2418
2418
|
}), f = S;
|
|
2419
|
-
|
|
2419
|
+
Ml(() => {
|
|
2420
2420
|
f && f.destroy();
|
|
2421
2421
|
});
|
|
2422
2422
|
}), (S, f) => {
|
|
2423
2423
|
const v = H("el-divider"), c = H("el-icon"), o = H("el-text"), m = H("el-checkbox"), A = H("el-button");
|
|
2424
|
-
return p(), U("div",
|
|
2424
|
+
return p(), U("div", pa, [
|
|
2425
2425
|
J("div", null, [
|
|
2426
|
-
J("div",
|
|
2427
|
-
J("div",
|
|
2426
|
+
J("div", ma, [
|
|
2427
|
+
J("div", ha, [
|
|
2428
2428
|
J("a", {
|
|
2429
2429
|
onClick: i,
|
|
2430
2430
|
style: { cursor: "pointer" }
|
|
@@ -2454,7 +2454,7 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2454
2454
|
])
|
|
2455
2455
|
]),
|
|
2456
2456
|
f[1] || (f[1] = J("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2457
|
-
J("div",
|
|
2457
|
+
J("div", ya, [
|
|
2458
2458
|
(p(!0), U(ne, null, P(n.value, (j) => (p(), V(m, {
|
|
2459
2459
|
class: "check-box-hover",
|
|
2460
2460
|
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" },
|
|
@@ -2468,13 +2468,13 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2468
2468
|
J("span", {
|
|
2469
2469
|
textContent: Se(j.label),
|
|
2470
2470
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2471
|
-
}, null, 8,
|
|
2471
|
+
}, null, 8, ga)
|
|
2472
2472
|
]),
|
|
2473
2473
|
_: 2
|
|
2474
2474
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2475
2475
|
])
|
|
2476
2476
|
]),
|
|
2477
|
-
J("div",
|
|
2477
|
+
J("div", ba, [
|
|
2478
2478
|
se(A, {
|
|
2479
2479
|
type: "primary",
|
|
2480
2480
|
onClick: d,
|
|
@@ -2490,8 +2490,8 @@ const It = /* @__PURE__ */ il(Nl), nt = (r, u) => {
|
|
|
2490
2490
|
]);
|
|
2491
2491
|
};
|
|
2492
2492
|
}
|
|
2493
|
-
},
|
|
2494
|
-
we.version(
|
|
2493
|
+
}, wa = /* @__PURE__ */ nt($a, [["__scopeId", "data-v-13575747"]]), ka = "vue-gyc-ui", _a = 1, we = new Rl(ka);
|
|
2494
|
+
we.version(_a).stores({
|
|
2495
2495
|
// 记录表格项设置信息
|
|
2496
2496
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2497
2497
|
// 记录表格分页条数
|
|
@@ -2513,7 +2513,7 @@ async function Dt(r, u, e) {
|
|
|
2513
2513
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${u}, state: ${e}):`, l), l;
|
|
2514
2514
|
}
|
|
2515
2515
|
}
|
|
2516
|
-
async function
|
|
2516
|
+
async function Ca(r, u, e) {
|
|
2517
2517
|
mt(r);
|
|
2518
2518
|
try {
|
|
2519
2519
|
const l = await we.tableWidths.where({ page: r, key: u }).first();
|
|
@@ -2522,7 +2522,7 @@ async function xa(r, u, e) {
|
|
|
2522
2522
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${u}):`, l), l;
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
|
-
async function
|
|
2525
|
+
async function xa(r) {
|
|
2526
2526
|
mt(r);
|
|
2527
2527
|
try {
|
|
2528
2528
|
return await we.tableWidths.where({ page: r }).toArray();
|
|
@@ -2530,7 +2530,7 @@ async function Ma(r) {
|
|
|
2530
2530
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, u), u;
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
|
-
async function
|
|
2533
|
+
async function Ma(r) {
|
|
2534
2534
|
mt(r);
|
|
2535
2535
|
try {
|
|
2536
2536
|
const u = await we.tableColsState.where({ page: r }).toArray();
|
|
@@ -2539,7 +2539,7 @@ async function Sa(r) {
|
|
|
2539
2539
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, u), u;
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
|
-
async function
|
|
2542
|
+
async function Sa(r) {
|
|
2543
2543
|
mt(r);
|
|
2544
2544
|
try {
|
|
2545
2545
|
return await we.transaction("rw", we.tableWidths, we.pageInfo, we.sorts, we.tableColsState, async () => {
|
|
@@ -2554,7 +2554,7 @@ async function Ta(r) {
|
|
|
2554
2554
|
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, u), u;
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
|
-
async function
|
|
2557
|
+
async function Ta({ page: r, size: u }) {
|
|
2558
2558
|
mt(r);
|
|
2559
2559
|
try {
|
|
2560
2560
|
const e = await we.pageInfo.where({ page: r }).first();
|
|
@@ -2563,7 +2563,7 @@ async function Va({ page: r, size: u }) {
|
|
|
2563
2563
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2564
2564
|
}
|
|
2565
2565
|
}
|
|
2566
|
-
async function
|
|
2566
|
+
async function Va(r) {
|
|
2567
2567
|
mt(r);
|
|
2568
2568
|
try {
|
|
2569
2569
|
const u = await we.pageInfo.where({ page: r }).first();
|
|
@@ -2572,7 +2572,7 @@ async function Ea(r) {
|
|
|
2572
2572
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, u), u;
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
|
-
async function
|
|
2575
|
+
async function Ea(r, u) {
|
|
2576
2576
|
mt(r);
|
|
2577
2577
|
try {
|
|
2578
2578
|
const e = await we.sorts.where({ page: r }).first();
|
|
@@ -2581,7 +2581,7 @@ async function Da(r, u) {
|
|
|
2581
2581
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2582
2582
|
}
|
|
2583
2583
|
}
|
|
2584
|
-
async function
|
|
2584
|
+
async function Da(r) {
|
|
2585
2585
|
mt(r);
|
|
2586
2586
|
try {
|
|
2587
2587
|
const u = await we.sorts.where({ page: r }).first();
|
|
@@ -2590,13 +2590,13 @@ async function Oa(r) {
|
|
|
2590
2590
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, u), u;
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
|
-
const
|
|
2593
|
+
const Oa = { style: { padding: "15px", "box-sizing": "border-box" } }, Ia = { style: { display: "flex", "align-items": "center", height: "30px" } }, qa = {
|
|
2594
2594
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2595
2595
|
class: "allcheck"
|
|
2596
|
-
},
|
|
2596
|
+
}, Aa = {
|
|
2597
2597
|
id: "cols",
|
|
2598
2598
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2599
|
-
},
|
|
2599
|
+
}, Ya = ["textContent"], za = {
|
|
2600
2600
|
__name: "columns-setting",
|
|
2601
2601
|
props: /* @__PURE__ */ ut({
|
|
2602
2602
|
tuid: {
|
|
@@ -2623,7 +2623,7 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2623
2623
|
onEnd: async () => {
|
|
2624
2624
|
let m = o.toArray();
|
|
2625
2625
|
try {
|
|
2626
|
-
|
|
2626
|
+
Ea(e.tuid, m).then((A) => {
|
|
2627
2627
|
l("setting-drag-end");
|
|
2628
2628
|
});
|
|
2629
2629
|
} catch (A) {
|
|
@@ -2668,7 +2668,7 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2668
2668
|
cancelButtonText: "取消",
|
|
2669
2669
|
type: "warning"
|
|
2670
2670
|
}).then(() => {
|
|
2671
|
-
|
|
2671
|
+
Sa(e.tuid).then((c) => {
|
|
2672
2672
|
window.location.reload();
|
|
2673
2673
|
}).catch((c) => {
|
|
2674
2674
|
console.error("复位操作出错:", c), ft({
|
|
@@ -2689,9 +2689,9 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2689
2689
|
})).sort((c, o) => c.sort - o.sort), d();
|
|
2690
2690
|
}), (c, o) => {
|
|
2691
2691
|
const m = H("el-divider"), A = H("el-icon"), j = H("el-text"), E = H("el-checkbox");
|
|
2692
|
-
return p(), U("div",
|
|
2693
|
-
J("div",
|
|
2694
|
-
J("div",
|
|
2692
|
+
return p(), U("div", Oa, [
|
|
2693
|
+
J("div", Ia, [
|
|
2694
|
+
J("div", qa, [
|
|
2695
2695
|
J("a", { onClick: S }, "全选"),
|
|
2696
2696
|
se(m, { direction: "vertical" }),
|
|
2697
2697
|
J("a", { onClick: f }, "全不选"),
|
|
@@ -2712,7 +2712,7 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2712
2712
|
})
|
|
2713
2713
|
]),
|
|
2714
2714
|
J("div", null, [
|
|
2715
|
-
J("div",
|
|
2715
|
+
J("div", Aa, [
|
|
2716
2716
|
(p(!0), U(ne, null, P(L(n), (k) => (p(), V(E, {
|
|
2717
2717
|
modelValue: k.showCol,
|
|
2718
2718
|
"onUpdate:modelValue": (Q) => k.showCol = Q,
|
|
@@ -2729,7 +2729,7 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2729
2729
|
J("span", {
|
|
2730
2730
|
textContent: Se(k.label),
|
|
2731
2731
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2732
|
-
}, null, 8,
|
|
2732
|
+
}, null, 8, Ya)
|
|
2733
2733
|
]),
|
|
2734
2734
|
_: 2
|
|
2735
2735
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2738,7 +2738,7 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2738
2738
|
]);
|
|
2739
2739
|
};
|
|
2740
2740
|
}
|
|
2741
|
-
},
|
|
2741
|
+
}, Ua = /* @__PURE__ */ nt(za, [["__scopeId", "data-v-750b37bc"]]), La = { class: "title" }, ja = { class: "content" }, Ha = {
|
|
2742
2742
|
__name: "g-cell-toopTip",
|
|
2743
2743
|
props: {
|
|
2744
2744
|
content: {
|
|
@@ -2758,20 +2758,20 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2758
2758
|
class: "g-cell-toopTip",
|
|
2759
2759
|
style: Ye({ width: u.column.width + "px" })
|
|
2760
2760
|
}, [
|
|
2761
|
-
J("div",
|
|
2761
|
+
J("div", La, [
|
|
2762
2762
|
n[0] || (n[0] = J("span", { class: "title-text" }, "内容", -1)),
|
|
2763
2763
|
J("span", {
|
|
2764
2764
|
class: "copy-btn",
|
|
2765
2765
|
onClick: e,
|
|
2766
2766
|
title: "复制内容"
|
|
2767
2767
|
}, [
|
|
2768
|
-
se(L(
|
|
2768
|
+
se(L(Ul))
|
|
2769
2769
|
])
|
|
2770
2770
|
]),
|
|
2771
|
-
J("div",
|
|
2771
|
+
J("div", ja, Se(u.content), 1)
|
|
2772
2772
|
], 4));
|
|
2773
2773
|
}
|
|
2774
|
-
},
|
|
2774
|
+
}, Fa = /* @__PURE__ */ nt(Ha, [["__scopeId", "data-v-f28912da"]]), Ra = /* @__PURE__ */ Object.assign({
|
|
2775
2775
|
name: "g-detail",
|
|
2776
2776
|
inheritAttrs: !1
|
|
2777
2777
|
}, {
|
|
@@ -2792,7 +2792,7 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2792
2792
|
}
|
|
2793
2793
|
},
|
|
2794
2794
|
setup(r) {
|
|
2795
|
-
const u = r, e =
|
|
2795
|
+
const u = r, e = Yt("options"), l = {
|
|
2796
2796
|
border: !0,
|
|
2797
2797
|
labelWidth: "100px",
|
|
2798
2798
|
column: 2
|
|
@@ -2893,7 +2893,7 @@ const Ia = { style: { padding: "15px", "box-sizing": "border-box" } }, qa = { st
|
|
|
2893
2893
|
], 4);
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
|
-
}), pl = /* @__PURE__ */ nt(
|
|
2896
|
+
}), pl = /* @__PURE__ */ nt(Ra, [["__scopeId", "data-v-4902ce5a"]]);
|
|
2897
2897
|
var ml = { exports: {} }, hl = { exports: {} };
|
|
2898
2898
|
(function() {
|
|
2899
2899
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = {
|
|
@@ -2960,16 +2960,16 @@ var ml = { exports: {} }, hl = { exports: {} };
|
|
|
2960
2960
|
};
|
|
2961
2961
|
hl.exports = u;
|
|
2962
2962
|
})();
|
|
2963
|
-
var
|
|
2963
|
+
var Ba = hl.exports, Ft = {
|
|
2964
2964
|
// UTF-8 encoding
|
|
2965
2965
|
utf8: {
|
|
2966
2966
|
// Convert a string to a byte array
|
|
2967
2967
|
stringToBytes: function(r) {
|
|
2968
|
-
return
|
|
2968
|
+
return Ft.bin.stringToBytes(unescape(encodeURIComponent(r)));
|
|
2969
2969
|
},
|
|
2970
2970
|
// Convert a byte array to a string
|
|
2971
2971
|
bytesToString: function(r) {
|
|
2972
|
-
return decodeURIComponent(escape(
|
|
2972
|
+
return decodeURIComponent(escape(Ft.bin.bytesToString(r)));
|
|
2973
2973
|
}
|
|
2974
2974
|
},
|
|
2975
2975
|
// Binary encoding
|
|
@@ -2987,24 +2987,24 @@ var Pa = hl.exports, Ht = {
|
|
|
2987
2987
|
return u.join("");
|
|
2988
2988
|
}
|
|
2989
2989
|
}
|
|
2990
|
-
}, Wt =
|
|
2990
|
+
}, Wt = Ft;
|
|
2991
2991
|
/*!
|
|
2992
2992
|
* Determine if an object is a Buffer
|
|
2993
2993
|
*
|
|
2994
2994
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
2995
2995
|
* @license MIT
|
|
2996
2996
|
*/
|
|
2997
|
-
var
|
|
2998
|
-
return r != null && (yl(r) ||
|
|
2997
|
+
var Pa = function(r) {
|
|
2998
|
+
return r != null && (yl(r) || Na(r) || !!r._isBuffer);
|
|
2999
2999
|
};
|
|
3000
3000
|
function yl(r) {
|
|
3001
3001
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
3002
3002
|
}
|
|
3003
|
-
function
|
|
3003
|
+
function Na(r) {
|
|
3004
3004
|
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && yl(r.slice(0, 0));
|
|
3005
3005
|
}
|
|
3006
3006
|
(function() {
|
|
3007
|
-
var r =
|
|
3007
|
+
var r = Ba, u = Wt.utf8, e = Pa, l = Wt.bin, n = function(i, t) {
|
|
3008
3008
|
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());
|
|
3009
3009
|
for (var d = r.bytesToWords(i), S = i.length * 8, f = 1732584193, v = -271733879, c = -1732584194, o = 271733878, m = 0; m < d.length; m++)
|
|
3010
3010
|
d[m] = (d[m] << 8 | d[m] >>> 24) & 16711935 | (d[m] << 24 | d[m] >>> 8) & 4278255360;
|
|
@@ -3034,11 +3034,11 @@ function Wa(r) {
|
|
|
3034
3034
|
return t && t.asBytes ? d : t && t.asString ? l.bytesToString(d) : r.bytesToHex(d);
|
|
3035
3035
|
};
|
|
3036
3036
|
})();
|
|
3037
|
-
var
|
|
3038
|
-
const
|
|
3037
|
+
var Wa = ml.exports;
|
|
3038
|
+
const Ga = /* @__PURE__ */ il(Wa), Xa = { class: "g-table-container" }, Qa = {
|
|
3039
3039
|
key: 0,
|
|
3040
3040
|
class: "table-query-container"
|
|
3041
|
-
},
|
|
3041
|
+
}, Za = { class: "table-container" }, Ja = ["innerHTML"], Ka = /* @__PURE__ */ Object.assign({
|
|
3042
3042
|
name: "g-table",
|
|
3043
3043
|
inheritAttrs: !1
|
|
3044
3044
|
}, {
|
|
@@ -3068,7 +3068,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3068
3068
|
], ["update:modelValue", "update:selectedRows"]),
|
|
3069
3069
|
setup(r, { expose: u, emit: e }) {
|
|
3070
3070
|
var lt, Be, Ze, Je, Ke, Ct, xt;
|
|
3071
|
-
const l = re(""), n = r, i = e, t = ot(r, "modelValue"), d =
|
|
3071
|
+
const l = re(""), n = r, i = e, t = ot(r, "modelValue"), d = Yt("options"), S = re({}), f = re(!0), v = Object.entries(t.value).filter(([a, s]) => (s == null ? void 0 : s.search) !== void 0).map(([a, s]) => {
|
|
3072
3072
|
var C;
|
|
3073
3073
|
let y;
|
|
3074
3074
|
if (typeof s.search == "function") {
|
|
@@ -3108,7 +3108,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3108
3108
|
"filter-multiple",
|
|
3109
3109
|
"filter-method",
|
|
3110
3110
|
"filtered-value"
|
|
3111
|
-
], m = re([]), A =
|
|
3111
|
+
], m = re([]), A = zt(), j = re({}), E = re([]), k = re(null), Q = re(""), K = re("/"), te = ot(r, "selectedRows"), oe = re({
|
|
3112
3112
|
autoWatch: !1,
|
|
3113
3113
|
data: [],
|
|
3114
3114
|
border: !0,
|
|
@@ -3118,7 +3118,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3118
3118
|
stripe: !0,
|
|
3119
3119
|
type: "hidden",
|
|
3120
3120
|
load: async () => {
|
|
3121
|
-
const a = Number(await
|
|
3121
|
+
const a = Number(await Va(K.value));
|
|
3122
3122
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3123
3123
|
let { currentPage: s, pageSize: y } = t.value.table.page;
|
|
3124
3124
|
try {
|
|
@@ -3144,7 +3144,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3144
3144
|
}
|
|
3145
3145
|
},
|
|
3146
3146
|
onHeaderDragend: (a, s, y) => {
|
|
3147
|
-
|
|
3147
|
+
Ca(K.value, y.property, a);
|
|
3148
3148
|
},
|
|
3149
3149
|
onRowDblclick: (a, s, y) => {
|
|
3150
3150
|
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);
|
|
@@ -3167,7 +3167,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3167
3167
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3168
3168
|
},
|
|
3169
3169
|
onSizeChange: (a) => {
|
|
3170
|
-
|
|
3170
|
+
Ta({ page: K.value, size: a }).then(() => {
|
|
3171
3171
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3172
3172
|
});
|
|
3173
3173
|
}
|
|
@@ -3204,7 +3204,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3204
3204
|
mode: "dialog",
|
|
3205
3205
|
"view-mode": "description",
|
|
3206
3206
|
// description || readonly
|
|
3207
|
-
icon: () => Ce(
|
|
3207
|
+
icon: () => Ce(Fl),
|
|
3208
3208
|
auth: () => {
|
|
3209
3209
|
var I;
|
|
3210
3210
|
return !(((I = C == null ? void 0 : C.control) == null ? void 0 : I.add(a, C).inline) === !0 && y === 0);
|
|
@@ -3215,7 +3215,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3215
3215
|
text: !0,
|
|
3216
3216
|
type: "primary",
|
|
3217
3217
|
mode: "dialog",
|
|
3218
|
-
icon: () => Ce(
|
|
3218
|
+
icon: () => Ce(Hl),
|
|
3219
3219
|
auth: () => {
|
|
3220
3220
|
var I;
|
|
3221
3221
|
return ((I = C == null ? void 0 : C.control) == null ? void 0 : I.add(a, C).inline) !== !0;
|
|
@@ -3245,7 +3245,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3245
3245
|
return {
|
|
3246
3246
|
label: ((I = C.control) == null ? void 0 : I.add(a, C).inline) !== !0 ? "保存" : y === 0 ? "新增" : "保存",
|
|
3247
3247
|
text: !0,
|
|
3248
|
-
icon: () => Ce(
|
|
3248
|
+
icon: () => Ce(Ht),
|
|
3249
3249
|
type: ((F = C.control) == null ? void 0 : F.add(a, C).inline) !== !0 || y === 0 ? "primary" : "success",
|
|
3250
3250
|
sort: -1,
|
|
3251
3251
|
auth: () => {
|
|
@@ -3260,7 +3260,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3260
3260
|
type: "primary",
|
|
3261
3261
|
mode: "dialog",
|
|
3262
3262
|
inline: !1,
|
|
3263
|
-
icon: () => Ce(
|
|
3263
|
+
icon: () => Ce(jl),
|
|
3264
3264
|
auth: () => !0
|
|
3265
3265
|
}),
|
|
3266
3266
|
toggleExpand: (a, s) => ({
|
|
@@ -3276,7 +3276,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3276
3276
|
text: !1,
|
|
3277
3277
|
type: "primary",
|
|
3278
3278
|
mode: "dialog",
|
|
3279
|
-
icon: () => Ce(
|
|
3279
|
+
icon: () => Ce(Ht),
|
|
3280
3280
|
auth: () => !1
|
|
3281
3281
|
}),
|
|
3282
3282
|
download: (a, s) => ({
|
|
@@ -3293,7 +3293,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3293
3293
|
text: !1,
|
|
3294
3294
|
type: "primary",
|
|
3295
3295
|
mode: "dialog",
|
|
3296
|
-
icon: () => Ce(
|
|
3296
|
+
icon: () => Ce(Ll),
|
|
3297
3297
|
auth: () => !0
|
|
3298
3298
|
}),
|
|
3299
3299
|
dropdown: (a, s, y, C) => ({
|
|
@@ -3341,7 +3341,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3341
3341
|
"min-width": 100,
|
|
3342
3342
|
align: "center",
|
|
3343
3343
|
formatter: (a, s, y, C) => y,
|
|
3344
|
-
"tooltip-formatter": ({ row: a, column: s, cellValue: y }) => Ce(
|
|
3344
|
+
"tooltip-formatter": ({ row: a, column: s, cellValue: y }) => Ce(Fa, { content: y, column: s })
|
|
3345
3345
|
};
|
|
3346
3346
|
t.value.tableColumns = Ue(
|
|
3347
3347
|
Oe,
|
|
@@ -3470,7 +3470,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3470
3470
|
}
|
|
3471
3471
|
(F = t.value.control.view(a, s, y, C)) != null && F.click ? t.value.control.view(a, s, y, C).click(a, s, y, C) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, s, y, C).mode, t.value.dialog.title = t.value.control.view(a, s, y, C).title || t.value.control.view(a, s, y, C).label || "详情", Object.keys(a).forEach((_e) => {
|
|
3472
3472
|
t.value[_e] && (t.value[_e].value = a[_e]);
|
|
3473
|
-
}), ((R = t.value.control.view(a, s, y, C)) == null ? void 0 : R["view-mode"]) === "description" ?
|
|
3473
|
+
}), ((R = t.value.control.view(a, s, y, C)) == null ? void 0 : R["view-mode"]) === "description" ? qt({
|
|
3474
3474
|
...t.value.dialog,
|
|
3475
3475
|
type: t.value.dialog.mode,
|
|
3476
3476
|
slots: {
|
|
@@ -3514,13 +3514,14 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3514
3514
|
if ((C = s.control.download(a, s)) != null && C.click)
|
|
3515
3515
|
s.control.download(a, s).click(a, s, y);
|
|
3516
3516
|
else {
|
|
3517
|
-
let I =
|
|
3517
|
+
let I = qt(
|
|
3518
3518
|
{
|
|
3519
3519
|
title: s.control.download(a, s).title || s.control.download(a, s).label || "下载",
|
|
3520
3520
|
size: s.control.download(a, s).size || 480,
|
|
3521
3521
|
width: s.control.download(a, s).width || 600,
|
|
3522
|
+
type: s.control.download(a, s).mode || "dialog",
|
|
3522
3523
|
slots: {
|
|
3523
|
-
default: () => Ce(
|
|
3524
|
+
default: () => Ce(wa, {
|
|
3524
3525
|
items: y,
|
|
3525
3526
|
commitText: s.control.download(a, s).excelLabel,
|
|
3526
3527
|
onExcel: (F, R) => {
|
|
@@ -3528,19 +3529,19 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3528
3529
|
}
|
|
3529
3530
|
})
|
|
3530
3531
|
}
|
|
3531
|
-
}
|
|
3532
|
-
s.control.download(a, s).mode
|
|
3532
|
+
}
|
|
3533
3533
|
);
|
|
3534
3534
|
}
|
|
3535
3535
|
}, G = (a, s) => {
|
|
3536
3536
|
var y;
|
|
3537
|
-
(y = s.control.setting(a, s)) != null && y.click ? s.control.setting(a, s).click(a, s) :
|
|
3537
|
+
(y = s.control.setting(a, s)) != null && y.click ? s.control.setting(a, s).click(a, s) : qt(
|
|
3538
3538
|
{
|
|
3539
3539
|
title: s.control.setting(a, s).title || s.control.setting(a, s).label || "设置",
|
|
3540
3540
|
size: s.control.setting(a, s).size || 470,
|
|
3541
3541
|
width: s.control.setting(a, s).width || 600,
|
|
3542
|
+
type: s.control.setting(a, s).mode || "dialog",
|
|
3542
3543
|
slots: {
|
|
3543
|
-
default: () => Ce(
|
|
3544
|
+
default: () => Ce(Ua, {
|
|
3544
3545
|
modelValue: s,
|
|
3545
3546
|
tuid: K.value,
|
|
3546
3547
|
onSettingDragEnd: async () => {
|
|
@@ -3551,8 +3552,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3551
3552
|
}
|
|
3552
3553
|
})
|
|
3553
3554
|
}
|
|
3554
|
-
}
|
|
3555
|
-
s.control.setting(a, s).mode
|
|
3555
|
+
}
|
|
3556
3556
|
);
|
|
3557
3557
|
}, Ee = t.value.control, ke = {
|
|
3558
3558
|
add: $,
|
|
@@ -3614,15 +3614,15 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3614
3614
|
}, Ie = () => {
|
|
3615
3615
|
c.value = !1;
|
|
3616
3616
|
};
|
|
3617
|
-
|
|
3617
|
+
Sl(() => {
|
|
3618
3618
|
t.value.table.autoWatch && t.value.table.load();
|
|
3619
3619
|
});
|
|
3620
3620
|
const qe = async () => {
|
|
3621
3621
|
try {
|
|
3622
3622
|
const [a, s, y] = await Promise.all([
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3623
|
+
xa(K.value),
|
|
3624
|
+
Da(K.value),
|
|
3625
|
+
Ma(K.value)
|
|
3626
3626
|
]);
|
|
3627
3627
|
a && Array.isArray(a) && a.forEach((C) => {
|
|
3628
3628
|
const I = t.value[C.key];
|
|
@@ -3641,8 +3641,8 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3641
3641
|
t.value[s].showCol === void 0 && (t.value[s].showCol = !0);
|
|
3642
3642
|
});
|
|
3643
3643
|
}
|
|
3644
|
-
}, je = () =>
|
|
3645
|
-
return
|
|
3644
|
+
}, je = () => Ga(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3645
|
+
return Tl(() => {
|
|
3646
3646
|
K.value = je();
|
|
3647
3647
|
}), _t(async () => {
|
|
3648
3648
|
try {
|
|
@@ -3724,10 +3724,10 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3724
3724
|
key: "3"
|
|
3725
3725
|
} : void 0
|
|
3726
3726
|
]), 1040, ["modelValue", "type"])) : $e("", !0),
|
|
3727
|
-
J("div",
|
|
3728
|
-
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (p(), U("div",
|
|
3727
|
+
J("div", Xa, [
|
|
3728
|
+
((et = (Fe = t.value) == null ? void 0 : Fe.query) == null ? void 0 : et.hidden) != !0 ? (p(), U("div", Qa, [
|
|
3729
3729
|
x(a.$slots, "query", {}, () => [
|
|
3730
|
-
se(
|
|
3730
|
+
se(ua, {
|
|
3731
3731
|
modelValue: t.value,
|
|
3732
3732
|
"onUpdate:modelValue": s[3] || (s[3] = (Z) => t.value = Z),
|
|
3733
3733
|
info: S.value,
|
|
@@ -3815,7 +3815,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
3815
3815
|
model: t.value,
|
|
3816
3816
|
queryInfo: S.value
|
|
3817
3817
|
}, void 0, !0),
|
|
3818
|
-
J("div",
|
|
3818
|
+
J("div", Za, [
|
|
3819
3819
|
f.value ? (p(), V(ye, q({ key: 0 }, {
|
|
3820
3820
|
...a.$attrs,
|
|
3821
3821
|
...L(Xe)(
|
|
@@ -4096,7 +4096,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4096
4096
|
Z,
|
|
4097
4097
|
typeof ie.formatter == "function" ? ie.formatter(ee, ie, ee[ve], fe) : ee[ve]
|
|
4098
4098
|
)
|
|
4099
|
-
}, null, 12,
|
|
4099
|
+
}, null, 12, Ja)
|
|
4100
4100
|
], !0)
|
|
4101
4101
|
]),
|
|
4102
4102
|
key: "2"
|
|
@@ -4125,7 +4125,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4125
4125
|
], 64);
|
|
4126
4126
|
};
|
|
4127
4127
|
}
|
|
4128
|
-
}),
|
|
4128
|
+
}), er = /* @__PURE__ */ nt(Ka, [["__scopeId", "data-v-3f37744f"]]), tr = { class: "g-tree-table" }, lr = { class: "g-tree-container" }, ar = { class: "g-tree-table-container" }, rr = /* @__PURE__ */ Object.assign({
|
|
4129
4129
|
name: "g-tree-table",
|
|
4130
4130
|
inheritAttrs: !1
|
|
4131
4131
|
}, {
|
|
@@ -4137,7 +4137,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4137
4137
|
emits: /* @__PURE__ */ ut(["load"], ["update:modelValue"]),
|
|
4138
4138
|
setup(r, { emit: u }) {
|
|
4139
4139
|
var m, A, j, E;
|
|
4140
|
-
const e = u, l = ot(r, "modelValue"), n =
|
|
4140
|
+
const e = u, l = ot(r, "modelValue"), n = zt(), i = re(
|
|
4141
4141
|
typeof ((m = n == null ? void 0 : n.tree) == null ? void 0 : m.width) == "number" ? `${n.tree.width}px` : ((A = n == null ? void 0 : n.tree) == null ? void 0 : A.width) || "180px"
|
|
4142
4142
|
), t = re(((j = n == null ? void 0 : n.tree) == null ? void 0 : j.search) === void 0 ? !0 : (E = n == null ? void 0 : n.tree) == null ? void 0 : E.search), d = re({}), S = re(""), f = re(null), v = (k, Q) => {
|
|
4143
4143
|
var te, oe;
|
|
@@ -4153,7 +4153,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4153
4153
|
f.value.filter(k);
|
|
4154
4154
|
}), (k, Q) => {
|
|
4155
4155
|
const K = H("el-input"), te = H("el-tree"), oe = H("g-table");
|
|
4156
|
-
return p(), U("div",
|
|
4156
|
+
return p(), U("div", tr, [
|
|
4157
4157
|
J("div", {
|
|
4158
4158
|
class: "g-tree-left",
|
|
4159
4159
|
style: Ye({ width: i.value })
|
|
@@ -4166,7 +4166,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4166
4166
|
placeholder: "输入节点查询",
|
|
4167
4167
|
clearable: ""
|
|
4168
4168
|
}, null, 8, ["modelValue"])) : $e("", !0),
|
|
4169
|
-
J("div",
|
|
4169
|
+
J("div", lr, [
|
|
4170
4170
|
se(te, q({
|
|
4171
4171
|
style: { width: i.value },
|
|
4172
4172
|
"filter-node-method": v,
|
|
@@ -4194,7 +4194,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4194
4194
|
]), 1040, ["style"])
|
|
4195
4195
|
])
|
|
4196
4196
|
], 4),
|
|
4197
|
-
J("div",
|
|
4197
|
+
J("div", ar, [
|
|
4198
4198
|
se(oe, q({
|
|
4199
4199
|
modelValue: l.value,
|
|
4200
4200
|
"onUpdate:modelValue": Q[1] || (Q[1] = (ue) => l.value = ue)
|
|
@@ -4213,14 +4213,14 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4213
4213
|
]);
|
|
4214
4214
|
};
|
|
4215
4215
|
}
|
|
4216
|
-
}),
|
|
4216
|
+
}), nr = /* @__PURE__ */ nt(rr, [["__scopeId", "data-v-30eb4f60"]]), or = {
|
|
4217
4217
|
key: 0,
|
|
4218
4218
|
class: "op-group"
|
|
4219
|
-
},
|
|
4219
|
+
}, ur = {
|
|
4220
4220
|
key: 1,
|
|
4221
4221
|
class: "op-items",
|
|
4222
4222
|
style: { width: "100%", height: "100%" }
|
|
4223
|
-
},
|
|
4223
|
+
}, sr = ["title"], Gt = "100px", ir = /* @__PURE__ */ Object.assign({ name: "g-select-option" }, {
|
|
4224
4224
|
__name: "g-select-option",
|
|
4225
4225
|
props: {
|
|
4226
4226
|
columns: {
|
|
@@ -4242,7 +4242,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4242
4242
|
},
|
|
4243
4243
|
setup(r) {
|
|
4244
4244
|
const u = r;
|
|
4245
|
-
return (e, l) => u.title ? (p(), U("div",
|
|
4245
|
+
return (e, l) => u.title ? (p(), U("div", or, [
|
|
4246
4246
|
(p(!0), U(ne, null, P(u.columns, (n) => (p(), U("span", {
|
|
4247
4247
|
style: Ye({ width: (n == null ? void 0 : n.width) || Gt, ...n == null ? void 0 : n.titleStyle, textAlign: (n == null ? void 0 : n.align) || "center" }),
|
|
4248
4248
|
key: n.key
|
|
@@ -4251,7 +4251,7 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4251
4251
|
Le(Se(n.label), 1)
|
|
4252
4252
|
], !0)
|
|
4253
4253
|
], 4))), 128))
|
|
4254
|
-
])) : (p(), U("div",
|
|
4254
|
+
])) : (p(), U("div", ur, [
|
|
4255
4255
|
(p(!0), U(ne, null, P(u.columns, (n) => (p(), U("span", {
|
|
4256
4256
|
style: Ye({ width: (n == null ? void 0 : n.width) || Gt, textAlign: (n == null ? void 0 : n.align) || "center", ...n == null ? void 0 : n.style }),
|
|
4257
4257
|
key: n.key,
|
|
@@ -4260,24 +4260,24 @@ const Xa = /* @__PURE__ */ il(Ga), Qa = { class: "g-table-container" }, Za = {
|
|
|
4260
4260
|
x(e.$slots, `${r.t}-option-${n.key}`, { col: n }, () => [
|
|
4261
4261
|
Le(Se(r.data[n.key] ?? "-"), 1)
|
|
4262
4262
|
], !0)
|
|
4263
|
-
], 12,
|
|
4263
|
+
], 12, sr))), 128))
|
|
4264
4264
|
]));
|
|
4265
4265
|
}
|
|
4266
|
-
}),
|
|
4267
|
-
let
|
|
4266
|
+
}), dr = /* @__PURE__ */ nt(ir, [["__scopeId", "data-v-c0ac6b77"]]), cr = Object.freeze({}), Pt = [er, vl, nr, dr, Bt, pl];
|
|
4267
|
+
let At = {};
|
|
4268
4268
|
const Mr = {
|
|
4269
4269
|
install: (r, u = {}) => {
|
|
4270
|
-
|
|
4270
|
+
At = Object.freeze({ ...cr, ...u }), Pt.forEach((e) => {
|
|
4271
4271
|
r.component(e.name, e);
|
|
4272
|
-
}), r.provide("options",
|
|
4272
|
+
}), r.provide("options", At), r.config.globalProperties.$openModal = vr, r.config.globalProperties.$open = qt;
|
|
4273
4273
|
}
|
|
4274
|
-
},
|
|
4274
|
+
}, fr = (r) => ({ dialog: wl, drawer: $l })[r] || null, vr = (r = {}, u = "dialog") => {
|
|
4275
4275
|
if (typeof document > "u") return () => {
|
|
4276
4276
|
};
|
|
4277
4277
|
const e = document.createElement("div");
|
|
4278
4278
|
let l = () => {
|
|
4279
4279
|
};
|
|
4280
|
-
const n =
|
|
4280
|
+
const n = fr(u);
|
|
4281
4281
|
if (!n) return () => {
|
|
4282
4282
|
};
|
|
4283
4283
|
const i = re(!0), t = tl({
|
|
@@ -4311,8 +4311,8 @@ const Mr = {
|
|
|
4311
4311
|
});
|
|
4312
4312
|
return Pt.forEach((d) => {
|
|
4313
4313
|
t.component(d.name, d);
|
|
4314
|
-
}), t.provide("options",
|
|
4315
|
-
},
|
|
4314
|
+
}), t.provide("options", At), t.use(Xt, { locale: sl }), document.body.appendChild(e), t.mount(e), l;
|
|
4315
|
+
}, qt = (r = {}) => {
|
|
4316
4316
|
if (typeof document > "u") return () => {
|
|
4317
4317
|
};
|
|
4318
4318
|
const u = document.createElement("div");
|
|
@@ -4343,7 +4343,7 @@ const Mr = {
|
|
|
4343
4343
|
});
|
|
4344
4344
|
return Pt.forEach((i) => {
|
|
4345
4345
|
n.component(i.name, i);
|
|
4346
|
-
}), n.provide("options",
|
|
4346
|
+
}), n.provide("options", At), n.use(Xt, { locale: sl }), document.body.appendChild(u), n.mount(u), e;
|
|
4347
4347
|
};
|
|
4348
4348
|
function pr(r, u = window.innerWidth) {
|
|
4349
4349
|
if (typeof r == "number")
|
|
@@ -4522,7 +4522,7 @@ export {
|
|
|
4522
4522
|
hr as formatAmount,
|
|
4523
4523
|
Ue as mergeObjects,
|
|
4524
4524
|
Rt as moneyToChinese,
|
|
4525
|
-
|
|
4526
|
-
|
|
4525
|
+
qt as open,
|
|
4526
|
+
vr as openModal,
|
|
4527
4527
|
Sr as throttle
|
|
4528
4528
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.custom-upload[data-v-
|
|
1
|
+
.custom-upload[data-v-fc3fe0eb]{--up-width: 100px;--up-height: 100px;--up-font-size: 18px}[data-v-fc3fe0eb] .custom-upload img{width:100%;height:100%}[data-v-fc3fe0eb] .custom-upload .el-upload--picture-card,[data-v-fc3fe0eb] .custom-upload .el-upload-dragger,[data-v-fc3fe0eb] .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-fc3fe0eb] .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-fc3fe0eb] .custom-upload .el-upload-dragger:hover{border-color:var(--el-color-primary)}[data-v-fc3fe0eb] .custom-upload .el-icon{font-size:var(--up-font-size)}.up-view[data-v-fc3fe0eb]: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-3f37744f]{padding:0 3px;margin:0 3px}.g-table-container[data-v-3f37744f]{margin:0;padding:0;width:100%;height:100%}.table-query-container[data-v-3f37744f]{background-color:var(--el-bg-color);margin-bottom:10px;border:1px solid var(--el-border-color-lighter)}.table-container[data-v-3f37744f]{box-sizing:border-box;background-color:var(--el-bg-color)}.max[data-v-3f37744f]{cursor:pointer;color:var(--el-text-color)}.max[data-v-3f37744f]:hover{color:var(--el-color-primary)}.btns[data-v-3f37744f]{display:flex}[data-v-3f37744f] .drag-dialog{resize:both;overflow:auto}[data-v-3f37744f] .el-dialog__header,[data-v-3f37744f] .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}
|