vue-2024-ui 0.2.86 → 0.2.87
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 +117 -117
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Nt, { dayjs as
|
|
2
|
-
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as Fe, resolveComponent as F, openBlock as h, createElementBlock as z, Fragment as re, createElementVNode as Z, createBlock as E, createCommentVNode as be, unref as U, mergeProps as A, withCtx as _, renderSlot as x, renderList as N, createTextVNode as Ae, toDisplayString as Me, createSlots as ge, createVNode as se, normalizeStyle as Ye, normalizeProps as Vt, resolveDynamicComponent as Pe, guardReactiveProps as Gt, mergeModels as at, useSlots as Xt, inject as Ot, withModifiers as vt, Transition as
|
|
3
|
-
import { Plus as
|
|
1
|
+
import Nt, { dayjs as yl, ElForm as Mt, ElButtonGroup as St, ElButton as He, ElPopover as At, ElIcon as Yt, ElMessage as ut, ElMessageBox as Wt, ElDrawer as gl, ElDialog as bl } from "element-plus";
|
|
2
|
+
import { ref as ae, useModel as lt, nextTick as Ke, onMounted as yt, computed as Fe, resolveComponent as F, openBlock as h, createElementBlock as z, Fragment as re, createElementVNode as Z, createBlock as E, createCommentVNode as be, unref as U, mergeProps as A, withCtx as _, renderSlot as x, renderList as N, createTextVNode as Ae, toDisplayString as Me, createSlots as ge, createVNode as se, normalizeStyle as Ye, normalizeProps as Vt, resolveDynamicComponent as Pe, guardReactiveProps as Gt, mergeModels as at, useSlots as Xt, inject as Ot, withModifiers as vt, Transition as $l, withDirectives as wl, vShow as kl, h as _e, useAttrs as It, onUnmounted as _l, onBeforeUnmount as Cl, normalizeClass as Qt, watchEffect as xl, onBeforeMount as Ml, watch as Zt, createApp as Jt } from "vue";
|
|
3
|
+
import { Plus as Sl, ZoomIn as Tl, Delete as Kt, Search as Vl, Refresh as el, More as El, CircleClose as Dl, CircleCheckFilled as Ol, CircleCheck as zt, Minus as Il, Close as ql, Switch as tl, FullScreen as Al, InfoFilled as ll, Download as al, DocumentCopy as Yl, Setting as zl, CirclePlus as Ul, Edit as Ll, View as Hl } from "@element-plus/icons-vue";
|
|
4
4
|
import rl from "sortablejs";
|
|
5
|
-
import { Dexie as
|
|
5
|
+
import { Dexie as jl } from "dexie";
|
|
6
6
|
var nl = {
|
|
7
7
|
name: "zh-cn",
|
|
8
8
|
el: {
|
|
@@ -178,7 +178,7 @@ var nl = {
|
|
|
178
178
|
indicator: "幻灯片切换至索引 {index}"
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, Fl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
182
182
|
function ol(r) {
|
|
183
183
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
184
184
|
}
|
|
@@ -186,7 +186,7 @@ var ul = { exports: {} };
|
|
|
186
186
|
(function(r, s) {
|
|
187
187
|
(function(e, l) {
|
|
188
188
|
r.exports = l();
|
|
189
|
-
})(
|
|
189
|
+
})(Fl, function() {
|
|
190
190
|
var e = 1e3, l = 6e4, n = 36e5, d = "millisecond", t = "second", c = "minute", T = "hour", v = "day", m = "week", f = "month", o = "quarter", p = "year", L = "date", H = "Invalid Date", I = /^(\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, X = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
191
191
|
var $ = ["th", "st", "nd", "rd"], b = w % 100;
|
|
192
192
|
return "[" + w + ($[(b - 20) % 10] || $[b] || $[0]) + "]";
|
|
@@ -458,16 +458,16 @@ var ul = { exports: {} };
|
|
|
458
458
|
}, me.en = ue[ne], me.Ls = ue, me.p = {}, me;
|
|
459
459
|
});
|
|
460
460
|
})(ul);
|
|
461
|
-
var
|
|
462
|
-
const Et = /* @__PURE__ */ ol(
|
|
461
|
+
var Rl = ul.exports;
|
|
462
|
+
const Et = /* @__PURE__ */ ol(Rl), et = (r, s) => {
|
|
463
463
|
const e = r.__vccOpts || r;
|
|
464
464
|
for (const [l, n] of s)
|
|
465
465
|
e[l] = n;
|
|
466
466
|
return e;
|
|
467
|
-
},
|
|
467
|
+
}, Bl = {
|
|
468
468
|
style: { display: "flex", width: "100%" },
|
|
469
469
|
class: "g-ctrl-container"
|
|
470
|
-
},
|
|
470
|
+
}, Pl = { style: { width: "var(--up-width)", height: "var(--up-height)", position: "relative", "box-sizing": "border-box" } }, Nl = ["innerHTML"], Wl = ["innerHTML"], Gl = ["title"], Xl = ["innerHTML"], Ql = ["innerHTML"], Zl = ["innerHTML"], Jl = ["innerHTML"], Kl = ["innerHTML"], ea = ["innerHTML"], ta = ["innerHTML"], la = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
471
471
|
__name: "g-ctrl",
|
|
472
472
|
props: /* @__PURE__ */ at(["t", "ctrlKey", "item", "model", "ctrlType", "formInfo"], {
|
|
473
473
|
modelValue: { required: !0 },
|
|
@@ -491,7 +491,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
491
491
|
});
|
|
492
492
|
Object.hasOwn(e.value, "showDel") && (k.value.showDel = e.value.showDel);
|
|
493
493
|
const X = ae(e.value.value);
|
|
494
|
-
(Ie = e == null ? void 0 : e.value) != null && Ie.format && (X.value =
|
|
494
|
+
(Ie = e == null ? void 0 : e.value) != null && Ie.format && (X.value = yl(l.value).format(e.value.format || "YYYY-MM-DD"));
|
|
495
495
|
const J = (V) => [
|
|
496
496
|
"year",
|
|
497
497
|
"years",
|
|
@@ -650,7 +650,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
650
650
|
onClose: M[0] || (M[0] = (i) => v.value = !1)
|
|
651
651
|
}, null, 8, ["initial-index", "url-list"])) : be("", !0)
|
|
652
652
|
]),
|
|
653
|
-
Z("div",
|
|
653
|
+
Z("div", Bl, [
|
|
654
654
|
d.value == U(xe).RADIO ? (h(), E(ze, A({
|
|
655
655
|
key: 0,
|
|
656
656
|
modelValue: l.value,
|
|
@@ -814,10 +814,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
814
814
|
}, ge({ _: 2 }, [
|
|
815
815
|
N(V.$slots, (qt, xt) => ({
|
|
816
816
|
name: xt,
|
|
817
|
-
fn: _((
|
|
817
|
+
fn: _((hl) => [
|
|
818
818
|
x(V.$slots, xt, {
|
|
819
819
|
option: ce,
|
|
820
|
-
data:
|
|
820
|
+
data: hl,
|
|
821
821
|
form: r.formInfo
|
|
822
822
|
}, void 0, !0)
|
|
823
823
|
])
|
|
@@ -973,7 +973,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
973
973
|
return [
|
|
974
974
|
!l.value || ((i = e.value) == null ? void 0 : i.multiple) === !0 ? (h(), E(B, { key: 0 }, {
|
|
975
975
|
default: _(() => [
|
|
976
|
-
se(U(
|
|
976
|
+
se(U(Sl))
|
|
977
977
|
]),
|
|
978
978
|
_: 1
|
|
979
979
|
})) : (h(), z("div", {
|
|
@@ -981,7 +981,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
981
981
|
onClick: M[20] || (M[20] = (ce) => ce.stopPropagation()),
|
|
982
982
|
style: { display: "flex", width: "var(--up-width)", height: "var(--up-height)", position: "relative", "align-items": "center", "justify-content": "center", "box-sizing": "border-box" }
|
|
983
983
|
}, [
|
|
984
|
-
Z("div",
|
|
984
|
+
Z("div", Pl, [
|
|
985
985
|
se(he, A({
|
|
986
986
|
style: { width: "var(--up-width)", height: "var(--up-height)" },
|
|
987
987
|
src: l.value
|
|
@@ -1006,7 +1006,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1006
1006
|
placement: "top"
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: _(() => [
|
|
1009
|
-
se(U(
|
|
1009
|
+
se(U(Tl), {
|
|
1010
1010
|
style: { width: "1.5em", height: "1.5em", "margin-right": "12px" },
|
|
1011
1011
|
color: "white",
|
|
1012
1012
|
onClick: P
|
|
@@ -1082,7 +1082,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1082
1082
|
return [
|
|
1083
1083
|
Z("div", {
|
|
1084
1084
|
innerHTML: ((i = e.value) == null ? void 0 : i.suffix) || ""
|
|
1085
|
-
}, null, 8,
|
|
1085
|
+
}, null, 8, Nl)
|
|
1086
1086
|
];
|
|
1087
1087
|
}),
|
|
1088
1088
|
key: "0"
|
|
@@ -1094,7 +1094,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1094
1094
|
return [
|
|
1095
1095
|
Z("div", {
|
|
1096
1096
|
innerHTML: ((i = e.value) == null ? void 0 : i.prefix) || ""
|
|
1097
|
-
}, null, 8,
|
|
1097
|
+
}, null, 8, Wl)
|
|
1098
1098
|
];
|
|
1099
1099
|
}),
|
|
1100
1100
|
key: "1"
|
|
@@ -1124,7 +1124,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1124
1124
|
Z("div", {
|
|
1125
1125
|
title: U(Ht)(l.value),
|
|
1126
1126
|
style: { "font-size": "10px", display: "block", width: "80px", "text-align": "right", overflow: "hidden", "text-overflow": "ellipsis" }
|
|
1127
|
-
}, Me(U(Ht)(l.value)), 9,
|
|
1127
|
+
}, Me(U(Ht)(l.value)), 9, Gl)
|
|
1128
1128
|
]),
|
|
1129
1129
|
_: 2
|
|
1130
1130
|
}, [
|
|
@@ -1157,7 +1157,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1157
1157
|
}, [
|
|
1158
1158
|
X.value ? (h(), E(Q, Vt(A({ key: 0 }, e.value)), {
|
|
1159
1159
|
default: _(() => [
|
|
1160
|
-
Z("div", { innerHTML: X.value }, null, 8,
|
|
1160
|
+
Z("div", { innerHTML: X.value }, null, 8, Xl)
|
|
1161
1161
|
]),
|
|
1162
1162
|
_: 1
|
|
1163
1163
|
}, 16)) : (h(), E(Q, Vt(A({ key: 1 }, e.value)), null, 16))
|
|
@@ -1190,10 +1190,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1190
1190
|
], 4)) : d.value == "div" ? (h(), z("div", A({ key: 25 }, e.value, {
|
|
1191
1191
|
innerHTML: X.value || l.value,
|
|
1192
1192
|
style: p.value
|
|
1193
|
-
}), null, 16,
|
|
1193
|
+
}), null, 16, Ql)) : d.value == "span" ? (h(), z("span", A({ key: 26 }, e.value, {
|
|
1194
1194
|
innerHTML: X.value || l.value,
|
|
1195
1195
|
style: p.value
|
|
1196
|
-
}), null, 16,
|
|
1196
|
+
}), null, 16, Zl)) : d.value == "custom" ? (h(), z("div", {
|
|
1197
1197
|
key: 27,
|
|
1198
1198
|
style: Ye(p.value)
|
|
1199
1199
|
}, [
|
|
@@ -1221,7 +1221,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1221
1221
|
return [
|
|
1222
1222
|
Z("div", {
|
|
1223
1223
|
innerHTML: ((i = e.value) == null ? void 0 : i.suffix) || ""
|
|
1224
|
-
}, null, 8,
|
|
1224
|
+
}, null, 8, Jl)
|
|
1225
1225
|
];
|
|
1226
1226
|
}),
|
|
1227
1227
|
key: "0"
|
|
@@ -1233,7 +1233,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1233
1233
|
return [
|
|
1234
1234
|
Z("div", {
|
|
1235
1235
|
innerHTML: ((i = e.value) == null ? void 0 : i.prefix) || ""
|
|
1236
|
-
}, null, 8,
|
|
1236
|
+
}, null, 8, Kl)
|
|
1237
1237
|
];
|
|
1238
1238
|
}),
|
|
1239
1239
|
key: "1"
|
|
@@ -1245,7 +1245,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1245
1245
|
return [
|
|
1246
1246
|
Z("div", {
|
|
1247
1247
|
innerHTML: ((i = e.value) == null ? void 0 : i.append) || ""
|
|
1248
|
-
}, null, 8,
|
|
1248
|
+
}, null, 8, ea)
|
|
1249
1249
|
];
|
|
1250
1250
|
}),
|
|
1251
1251
|
key: "2"
|
|
@@ -1257,7 +1257,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1257
1257
|
return [
|
|
1258
1258
|
Z("div", {
|
|
1259
1259
|
innerHTML: ((i = e.value) == null ? void 0 : i.prepend) || ""
|
|
1260
|
-
}, null, 8,
|
|
1260
|
+
}, null, 8, ta)
|
|
1261
1261
|
];
|
|
1262
1262
|
}),
|
|
1263
1263
|
key: "3"
|
|
@@ -1276,7 +1276,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1276
1276
|
], 64);
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
|
-
}), ht = /* @__PURE__ */ et(
|
|
1279
|
+
}), ht = /* @__PURE__ */ et(la, [["__scopeId", "data-v-70919846"]]), Rt = {
|
|
1280
1280
|
__name: "g-query-item",
|
|
1281
1281
|
props: /* @__PURE__ */ at(["more"], {
|
|
1282
1282
|
modelValue: { required: !0 },
|
|
@@ -1358,10 +1358,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1358
1358
|
])), 128);
|
|
1359
1359
|
};
|
|
1360
1360
|
}
|
|
1361
|
-
},
|
|
1361
|
+
}, aa = {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
class: "outer"
|
|
1364
|
-
},
|
|
1364
|
+
}, ra = { class: "inner" }, na = {
|
|
1365
1365
|
__name: "g-query",
|
|
1366
1366
|
props: {
|
|
1367
1367
|
modelValue: { required: !0 },
|
|
@@ -1394,7 +1394,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1394
1394
|
hidden: !0,
|
|
1395
1395
|
type: "primary",
|
|
1396
1396
|
label: "更多",
|
|
1397
|
-
icon: () => _e(
|
|
1397
|
+
icon: () => _e(El),
|
|
1398
1398
|
click: () => {
|
|
1399
1399
|
d.value = !d.value;
|
|
1400
1400
|
}
|
|
@@ -1413,7 +1413,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1413
1413
|
hidden: !1,
|
|
1414
1414
|
type: "primary",
|
|
1415
1415
|
label: "查询",
|
|
1416
|
-
icon: () => _e(
|
|
1416
|
+
icon: () => _e(Vl),
|
|
1417
1417
|
click: () => {
|
|
1418
1418
|
l("query", t.value), d.value = !1;
|
|
1419
1419
|
}
|
|
@@ -1664,7 +1664,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1664
1664
|
key: "0"
|
|
1665
1665
|
}
|
|
1666
1666
|
]), 1040, ["modelValue"])) : be("", !0),
|
|
1667
|
-
se(
|
|
1667
|
+
se($l, {
|
|
1668
1668
|
duration: 300,
|
|
1669
1669
|
name: "nested",
|
|
1670
1670
|
style: { padding: "10px" }
|
|
@@ -1672,9 +1672,9 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1672
1672
|
default: _(() => {
|
|
1673
1673
|
var Y, le, de;
|
|
1674
1674
|
return [
|
|
1675
|
-
d.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 ? (h(), z("div",
|
|
1676
|
-
Z("div",
|
|
1677
|
-
e.value.query.more.mode == 1 ?
|
|
1675
|
+
d.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 ? (h(), z("div", aa, [
|
|
1676
|
+
Z("div", ra, [
|
|
1677
|
+
e.value.query.more.mode == 1 ? wl((h(), E(U(Mt), A({
|
|
1678
1678
|
key: 0,
|
|
1679
1679
|
onSubmit: k[7] || (k[7] = vt(() => {
|
|
1680
1680
|
}, ["prevent"]))
|
|
@@ -1684,7 +1684,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1684
1684
|
]),
|
|
1685
1685
|
_: 1
|
|
1686
1686
|
}, 16)), [
|
|
1687
|
-
[
|
|
1687
|
+
[kl, d.value]
|
|
1688
1688
|
]) : be("", !0)
|
|
1689
1689
|
])
|
|
1690
1690
|
])) : be("", !0)
|
|
@@ -1695,7 +1695,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1695
1695
|
], 64);
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
},
|
|
1698
|
+
}, oa = /* @__PURE__ */ et(na, [["__scopeId", "data-v-eaca2240"]]), sl = {
|
|
1699
1699
|
inline: !0,
|
|
1700
1700
|
type: "hidden",
|
|
1701
1701
|
"scroll-to-error": !0,
|
|
@@ -1735,7 +1735,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1735
1735
|
label: "保存提交",
|
|
1736
1736
|
plain: !0,
|
|
1737
1737
|
hidden: !0,
|
|
1738
|
-
icon: () => _e(
|
|
1738
|
+
icon: () => _e(Ol)
|
|
1739
1739
|
},
|
|
1740
1740
|
//表单重置按钮属性
|
|
1741
1741
|
reset: {
|
|
@@ -1750,14 +1750,14 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1750
1750
|
label: "取消",
|
|
1751
1751
|
hidden: !0,
|
|
1752
1752
|
plain: !0,
|
|
1753
|
-
icon: () => _e(
|
|
1753
|
+
icon: () => _e(Dl)
|
|
1754
1754
|
},
|
|
1755
1755
|
slots: {},
|
|
1756
1756
|
tabs: {
|
|
1757
1757
|
type: "card",
|
|
1758
1758
|
editable: !1
|
|
1759
1759
|
}
|
|
1760
|
-
}, il = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"],
|
|
1760
|
+
}, il = ["table", "tableColumns", "query", "queryItems", "form", "formItems", "control", "dialog"], ua = { class: "g-form-container" }, sa = /* @__PURE__ */ Object.assign({
|
|
1761
1761
|
name: "g-form",
|
|
1762
1762
|
inheritAttrs: !1
|
|
1763
1763
|
}, {
|
|
@@ -1906,7 +1906,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
1906
1906
|
}, k = (w) => w === "left" ? "flex-start" : w === "right" ? "flex-end" : w === "center" ? "center" : "flex-end";
|
|
1907
1907
|
yt(() => {
|
|
1908
1908
|
X(), v != null && v.editForm ? c.value = v.editForm : c.value = ee.value;
|
|
1909
|
-
}),
|
|
1909
|
+
}), _l(() => {
|
|
1910
1910
|
d.value = null;
|
|
1911
1911
|
});
|
|
1912
1912
|
const X = () => {
|
|
@@ -2002,7 +2002,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2002
2002
|
}), (w, $) => {
|
|
2003
2003
|
var le, de, ye;
|
|
2004
2004
|
const b = F("el-form-item"), y = F("el-col"), S = F("el-tab-pane"), D = F("el-tabs"), O = F("el-form"), Y = F("el-button");
|
|
2005
|
-
return h(), z("div",
|
|
2005
|
+
return h(), z("div", ua, [
|
|
2006
2006
|
se(O, A(
|
|
2007
2007
|
{
|
|
2008
2008
|
ref_key: "gform",
|
|
@@ -2187,10 +2187,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2187
2187
|
]);
|
|
2188
2188
|
};
|
|
2189
2189
|
}
|
|
2190
|
-
}), dl = /* @__PURE__ */ et(
|
|
2190
|
+
}), dl = /* @__PURE__ */ et(sa, [["__scopeId", "data-v-6a8d36f6"]]), ia = { class: "dialog-container" }, da = {
|
|
2191
2191
|
key: 1,
|
|
2192
2192
|
style: { overflow: "hidden" }
|
|
2193
|
-
},
|
|
2193
|
+
}, ca = { style: { display: "flex", flex: "1", "margin-left": "10px" } }, fa = /* @__PURE__ */ Object.assign({
|
|
2194
2194
|
name: "g-model",
|
|
2195
2195
|
inheritAttrs: !1
|
|
2196
2196
|
}, {
|
|
@@ -2214,10 +2214,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2214
2214
|
maximize: { type: Boolean, default: !1 },
|
|
2215
2215
|
minimize: { type: Boolean, default: !1 },
|
|
2216
2216
|
// 图标配置
|
|
2217
|
-
maxIcon: { type: Object, default: () =>
|
|
2217
|
+
maxIcon: { type: Object, default: () => Al },
|
|
2218
2218
|
resizeIcon: { type: Object, default: () => tl },
|
|
2219
|
-
closeIcon: { type: Object, default: () =>
|
|
2220
|
-
minIcon: { type: Object, default: () =>
|
|
2219
|
+
closeIcon: { type: Object, default: () => ql },
|
|
2220
|
+
minIcon: { type: Object, default: () => Il },
|
|
2221
2221
|
draggable: { type: Boolean, default: !0 },
|
|
2222
2222
|
showClose: { type: Boolean, default: !0 },
|
|
2223
2223
|
fullscreen: { type: Boolean, default: !1 },
|
|
@@ -2282,12 +2282,12 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
return s({
|
|
2284
2284
|
handleClose: () => m.value.handleClose()
|
|
2285
|
-
}), (ee, ne) => (h(), z("div",
|
|
2285
|
+
}), (ee, ne) => (h(), z("div", ia, [
|
|
2286
2286
|
o.value ? (h(), z("div", {
|
|
2287
2287
|
key: 0,
|
|
2288
2288
|
class: "minimize-ball",
|
|
2289
2289
|
onClick: J
|
|
2290
|
-
}, Me(r.title), 1)) : (h(), z("div",
|
|
2290
|
+
}, Me(r.title), 1)) : (h(), z("div", da, [
|
|
2291
2291
|
(h(), E(Pe(c.value), A({
|
|
2292
2292
|
ref_key: "dialogExtend",
|
|
2293
2293
|
ref: m,
|
|
@@ -2313,7 +2313,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2313
2313
|
style: Ye(l.headerStyle)
|
|
2314
2314
|
}, [
|
|
2315
2315
|
x(ee.$slots, "title", {}, () => [
|
|
2316
|
-
Z("span",
|
|
2316
|
+
Z("span", ca, Me(r.title), 1)
|
|
2317
2317
|
], !0),
|
|
2318
2318
|
Z("div", null, [
|
|
2319
2319
|
r.minimize ? (h(), E(U(Yt), {
|
|
@@ -2373,10 +2373,10 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2373
2373
|
]))
|
|
2374
2374
|
]));
|
|
2375
2375
|
}
|
|
2376
|
-
}), jt = /* @__PURE__ */ et(
|
|
2376
|
+
}), jt = /* @__PURE__ */ et(fa, [["__scopeId", "data-v-99d6bb1e"]]), va = { style: { padding: "15px", "box-sizing": "border-box" } }, pa = { style: { display: "flex", flex: "1", "align-items": "center", height: "30px" } }, ma = { style: { display: "flex", flex: "1", "align-items": "center" } }, ha = {
|
|
2377
2377
|
style: { display: "flex", "flex-wrap": "wrap" },
|
|
2378
2378
|
id: "excelSortEl"
|
|
2379
|
-
},
|
|
2379
|
+
}, ya = ["textContent"], ga = { style: { width: "100%", display: "flex", padding: "10px", "box-sizing": "border-box", "justify-content": "center", "border-top": "1px solid #dcdfe6" } }, ba = {
|
|
2380
2380
|
__name: "check-excel-item",
|
|
2381
2381
|
props: {
|
|
2382
2382
|
items: Array,
|
|
@@ -2413,15 +2413,15 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2413
2413
|
T.toArray();
|
|
2414
2414
|
}
|
|
2415
2415
|
}), v = T;
|
|
2416
|
-
|
|
2416
|
+
Cl(() => {
|
|
2417
2417
|
v && v.destroy();
|
|
2418
2418
|
});
|
|
2419
2419
|
}), (T, v) => {
|
|
2420
2420
|
const m = F("el-divider"), f = F("el-icon"), o = F("el-text"), p = F("el-checkbox"), L = F("el-button");
|
|
2421
|
-
return h(), z("div",
|
|
2421
|
+
return h(), z("div", va, [
|
|
2422
2422
|
Z("div", null, [
|
|
2423
|
-
Z("div",
|
|
2424
|
-
Z("div",
|
|
2423
|
+
Z("div", pa, [
|
|
2424
|
+
Z("div", ma, [
|
|
2425
2425
|
Z("a", {
|
|
2426
2426
|
onClick: d,
|
|
2427
2427
|
style: { cursor: "pointer" }
|
|
@@ -2451,7 +2451,7 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2451
2451
|
])
|
|
2452
2452
|
]),
|
|
2453
2453
|
v[1] || (v[1] = Z("div", { style: { margin: "1px 0" } }, null, -1)),
|
|
2454
|
-
Z("div",
|
|
2454
|
+
Z("div", ha, [
|
|
2455
2455
|
(h(!0), z(re, null, N(n.value, (H) => (h(), E(p, {
|
|
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 Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2465
2465
|
Z("span", {
|
|
2466
2466
|
textContent: Me(H.label),
|
|
2467
2467
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2468
|
-
}, null, 8,
|
|
2468
|
+
}, null, 8, ya)
|
|
2469
2469
|
]),
|
|
2470
2470
|
_: 2
|
|
2471
2471
|
}, 1032, ["data-id", "modelValue", "onUpdate:modelValue", "title"]))), 128))
|
|
2472
2472
|
])
|
|
2473
2473
|
]),
|
|
2474
|
-
Z("div",
|
|
2474
|
+
Z("div", ga, [
|
|
2475
2475
|
se(L, {
|
|
2476
2476
|
type: "primary",
|
|
2477
2477
|
onClick: c,
|
|
@@ -2487,8 +2487,8 @@ const Et = /* @__PURE__ */ ol(Fl), et = (r, s) => {
|
|
|
2487
2487
|
]);
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
2490
|
-
},
|
|
2491
|
-
$e.version(
|
|
2490
|
+
}, $a = /* @__PURE__ */ et(ba, [["__scopeId", "data-v-13575747"]]), wa = "vue-gyc-ui", ka = 1, $e = new jl(wa);
|
|
2491
|
+
$e.version(ka).stores({
|
|
2492
2492
|
// 记录表格项设置信息
|
|
2493
2493
|
tableWidths: "++id, [page+key], page, key,width",
|
|
2494
2494
|
// 记录表格分页条数
|
|
@@ -2510,7 +2510,7 @@ async function Tt(r, s, e) {
|
|
|
2510
2510
|
throw console.error(`处理表格列状态时出错 (page: ${r}, key: ${s}, state: ${e}):`, l), l;
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
|
-
async function
|
|
2513
|
+
async function _a(r, s, e) {
|
|
2514
2514
|
ct(r);
|
|
2515
2515
|
try {
|
|
2516
2516
|
const l = await $e.tableWidths.where({ page: r, key: s }).first();
|
|
@@ -2519,7 +2519,7 @@ async function ka(r, s, e) {
|
|
|
2519
2519
|
throw console.error(`保存表格项设置信息时出错 (page: ${r}, key: ${s}):`, l), l;
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
|
-
async function
|
|
2522
|
+
async function Ca(r) {
|
|
2523
2523
|
ct(r);
|
|
2524
2524
|
try {
|
|
2525
2525
|
return await $e.tableWidths.where({ page: r }).toArray();
|
|
@@ -2527,7 +2527,7 @@ async function _a(r) {
|
|
|
2527
2527
|
throw console.error(`获取表格项设置信息时出错 (page: ${r}):`, s), s;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
async function
|
|
2530
|
+
async function xa(r) {
|
|
2531
2531
|
ct(r);
|
|
2532
2532
|
try {
|
|
2533
2533
|
const s = await $e.tableColsState.where({ page: r }).toArray();
|
|
@@ -2536,7 +2536,7 @@ async function Ca(r) {
|
|
|
2536
2536
|
throw console.error(`获取表格列状态时出错 (page: ${r}):`, s), s;
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
async function
|
|
2539
|
+
async function Ma(r) {
|
|
2540
2540
|
ct(r);
|
|
2541
2541
|
try {
|
|
2542
2542
|
return await $e.transaction("rw", $e.tableWidths, $e.pageInfo, $e.sorts, $e.tableColsState, async () => {
|
|
@@ -2551,7 +2551,7 @@ async function xa(r) {
|
|
|
2551
2551
|
throw console.error(`删除页面"${r}"的表格设置信息时出错:`, s), s;
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
|
-
async function
|
|
2554
|
+
async function Sa({ page: r, size: s }) {
|
|
2555
2555
|
ct(r);
|
|
2556
2556
|
try {
|
|
2557
2557
|
const e = await $e.pageInfo.where({ page: r }).first();
|
|
@@ -2560,7 +2560,7 @@ async function Ma({ page: r, size: s }) {
|
|
|
2560
2560
|
throw console.error(`保存分页条数时出错 (page: ${r}):`, e), e;
|
|
2561
2561
|
}
|
|
2562
2562
|
}
|
|
2563
|
-
async function
|
|
2563
|
+
async function Ta(r) {
|
|
2564
2564
|
ct(r);
|
|
2565
2565
|
try {
|
|
2566
2566
|
const s = await $e.pageInfo.where({ page: r }).first();
|
|
@@ -2569,7 +2569,7 @@ async function Sa(r) {
|
|
|
2569
2569
|
throw console.error(`获取分页条数时出错 (page: ${r}):`, s), s;
|
|
2570
2570
|
}
|
|
2571
2571
|
}
|
|
2572
|
-
async function
|
|
2572
|
+
async function Va(r, s) {
|
|
2573
2573
|
ct(r);
|
|
2574
2574
|
try {
|
|
2575
2575
|
const e = await $e.sorts.where({ page: r }).first();
|
|
@@ -2578,7 +2578,7 @@ async function Ta(r, s) {
|
|
|
2578
2578
|
throw console.error(`保存表格字段顺序时出错 (page: ${r}):`, e), e;
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
2581
|
-
async function
|
|
2581
|
+
async function Ea(r) {
|
|
2582
2582
|
ct(r);
|
|
2583
2583
|
try {
|
|
2584
2584
|
const s = await $e.sorts.where({ page: r }).first();
|
|
@@ -2587,13 +2587,13 @@ async function Va(r) {
|
|
|
2587
2587
|
throw console.error(`获取表格字段顺序时出错 (page: ${r}):`, s), s;
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const Da = { style: { padding: "15px", "box-sizing": "border-box" } }, Oa = { style: { display: "flex", "align-items": "center", height: "30px" } }, Ia = {
|
|
2591
2591
|
style: { display: "flex", flex: "1", "align-items": "center" },
|
|
2592
2592
|
class: "allcheck"
|
|
2593
|
-
},
|
|
2593
|
+
}, qa = {
|
|
2594
2594
|
id: "cols",
|
|
2595
2595
|
style: { display: "flex", "flex-wrap": "wrap", margin: "0 !important", padding: "0 !important" }
|
|
2596
|
-
},
|
|
2596
|
+
}, Aa = ["textContent"], Ya = {
|
|
2597
2597
|
__name: "columns-setting",
|
|
2598
2598
|
props: /* @__PURE__ */ at({
|
|
2599
2599
|
tuid: {
|
|
@@ -2620,7 +2620,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2620
2620
|
onEnd: async () => {
|
|
2621
2621
|
let p = o.toArray();
|
|
2622
2622
|
try {
|
|
2623
|
-
|
|
2623
|
+
Va(e.tuid, p).then((L) => {
|
|
2624
2624
|
l("setting-drag-end");
|
|
2625
2625
|
});
|
|
2626
2626
|
} catch (L) {
|
|
@@ -2665,7 +2665,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2665
2665
|
cancelButtonText: "取消",
|
|
2666
2666
|
type: "warning"
|
|
2667
2667
|
}).then(() => {
|
|
2668
|
-
|
|
2668
|
+
Ma(e.tuid).then((f) => {
|
|
2669
2669
|
window.location.reload();
|
|
2670
2670
|
}).catch((f) => {
|
|
2671
2671
|
console.error("复位操作出错:", f), ut({
|
|
@@ -2686,9 +2686,9 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2686
2686
|
})).sort((f, o) => f.sort - o.sort), c();
|
|
2687
2687
|
}), (f, o) => {
|
|
2688
2688
|
const p = F("el-divider"), L = F("el-icon"), H = F("el-text"), I = F("el-checkbox");
|
|
2689
|
-
return h(), z("div",
|
|
2690
|
-
Z("div",
|
|
2691
|
-
Z("div",
|
|
2689
|
+
return h(), z("div", Da, [
|
|
2690
|
+
Z("div", Oa, [
|
|
2691
|
+
Z("div", Ia, [
|
|
2692
2692
|
Z("a", { onClick: T }, "全选"),
|
|
2693
2693
|
se(p, { direction: "vertical" }),
|
|
2694
2694
|
Z("a", { onClick: v }, "全不选"),
|
|
@@ -2709,7 +2709,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2709
2709
|
})
|
|
2710
2710
|
]),
|
|
2711
2711
|
Z("div", null, [
|
|
2712
|
-
Z("div",
|
|
2712
|
+
Z("div", qa, [
|
|
2713
2713
|
(h(!0), z(re, null, N(U(n), (k) => (h(), E(I, {
|
|
2714
2714
|
modelValue: k.showCol,
|
|
2715
2715
|
"onUpdate:modelValue": (X) => k.showCol = X,
|
|
@@ -2726,7 +2726,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2726
2726
|
Z("span", {
|
|
2727
2727
|
textContent: Me(k.label),
|
|
2728
2728
|
style: { display: "block", "text-overflow": "ellipsis", width: "95px", overflow: "hidden" }
|
|
2729
|
-
}, null, 8,
|
|
2729
|
+
}, null, 8, Aa)
|
|
2730
2730
|
]),
|
|
2731
2731
|
_: 2
|
|
2732
2732
|
}, 1032, ["modelValue", "onUpdate:modelValue", "data-id", "class", "onChange", "value", "title", "disabled"]))), 128))
|
|
@@ -2735,7 +2735,7 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2735
2735
|
]);
|
|
2736
2736
|
};
|
|
2737
2737
|
}
|
|
2738
|
-
},
|
|
2738
|
+
}, za = /* @__PURE__ */ et(Ya, [["__scopeId", "data-v-750b37bc"]]), Ua = { class: "title" }, La = { class: "content" }, Ha = {
|
|
2739
2739
|
__name: "g-cell-toopTip",
|
|
2740
2740
|
props: {
|
|
2741
2741
|
content: {
|
|
@@ -2755,20 +2755,20 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2755
2755
|
class: "g-cell-toopTip",
|
|
2756
2756
|
style: Ye({ width: s.column.width + "px" })
|
|
2757
2757
|
}, [
|
|
2758
|
-
Z("div",
|
|
2758
|
+
Z("div", Ua, [
|
|
2759
2759
|
n[0] || (n[0] = Z("span", { class: "title-text" }, "内容", -1)),
|
|
2760
2760
|
Z("span", {
|
|
2761
2761
|
class: "copy-btn",
|
|
2762
2762
|
onClick: e,
|
|
2763
2763
|
title: "复制内容"
|
|
2764
2764
|
}, [
|
|
2765
|
-
se(U(
|
|
2765
|
+
se(U(Yl))
|
|
2766
2766
|
])
|
|
2767
2767
|
]),
|
|
2768
|
-
Z("div",
|
|
2768
|
+
Z("div", La, Me(s.content), 1)
|
|
2769
2769
|
], 4));
|
|
2770
2770
|
}
|
|
2771
|
-
},
|
|
2771
|
+
}, ja = /* @__PURE__ */ et(Ha, [["__scopeId", "data-v-f28912da"]]), Fa = {
|
|
2772
2772
|
__name: "g-detail",
|
|
2773
2773
|
props: {
|
|
2774
2774
|
row: {
|
|
@@ -2887,8 +2887,8 @@ const Ea = { style: { padding: "15px", "box-sizing": "border-box" } }, Da = { st
|
|
|
2887
2887
|
], 4);
|
|
2888
2888
|
};
|
|
2889
2889
|
}
|
|
2890
|
-
},
|
|
2891
|
-
var
|
|
2890
|
+
}, cl = /* @__PURE__ */ et(Fa, [["__scopeId", "data-v-532cc5ec"]]);
|
|
2891
|
+
var fl = { exports: {} }, vl = { exports: {} };
|
|
2892
2892
|
(function() {
|
|
2893
2893
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = {
|
|
2894
2894
|
// Bit-wise rotation left
|
|
@@ -2952,9 +2952,9 @@ var cl = { exports: {} }, fl = { exports: {} };
|
|
|
2952
2952
|
return l;
|
|
2953
2953
|
}
|
|
2954
2954
|
};
|
|
2955
|
-
|
|
2955
|
+
vl.exports = s;
|
|
2956
2956
|
})();
|
|
2957
|
-
var Ra =
|
|
2957
|
+
var Ra = vl.exports, Ut = {
|
|
2958
2958
|
// UTF-8 encoding
|
|
2959
2959
|
utf8: {
|
|
2960
2960
|
// Convert a string to a byte array
|
|
@@ -2989,13 +2989,13 @@ var Ra = fl.exports, Ut = {
|
|
|
2989
2989
|
* @license MIT
|
|
2990
2990
|
*/
|
|
2991
2991
|
var Ba = function(r) {
|
|
2992
|
-
return r != null && (
|
|
2992
|
+
return r != null && (pl(r) || Pa(r) || !!r._isBuffer);
|
|
2993
2993
|
};
|
|
2994
|
-
function
|
|
2994
|
+
function pl(r) {
|
|
2995
2995
|
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
2996
2996
|
}
|
|
2997
2997
|
function Pa(r) {
|
|
2998
|
-
return typeof r.readFloatLE == "function" && typeof r.slice == "function" &&
|
|
2998
|
+
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && pl(r.slice(0, 0));
|
|
2999
2999
|
}
|
|
3000
3000
|
(function() {
|
|
3001
3001
|
var r = Ra, s = Bt.utf8, e = Ba, l = Bt.bin, n = function(d, t) {
|
|
@@ -3021,14 +3021,14 @@ function Pa(r) {
|
|
|
3021
3021
|
}, n._ii = function(d, t, c, T, v, m, f) {
|
|
3022
3022
|
var o = d + (c ^ (t | ~T)) + (v >>> 0) + f;
|
|
3023
3023
|
return (o << m | o >>> 32 - m) + t;
|
|
3024
|
-
}, n._blocksize = 16, n._digestsize = 16,
|
|
3024
|
+
}, n._blocksize = 16, n._digestsize = 16, fl.exports = function(d, t) {
|
|
3025
3025
|
if (d == null)
|
|
3026
3026
|
throw new Error("Illegal argument " + d);
|
|
3027
3027
|
var c = r.wordsToBytes(n(d, t));
|
|
3028
3028
|
return t && t.asBytes ? c : t && t.asString ? l.bytesToString(c) : r.bytesToHex(c);
|
|
3029
3029
|
};
|
|
3030
3030
|
})();
|
|
3031
|
-
var Na =
|
|
3031
|
+
var Na = fl.exports;
|
|
3032
3032
|
const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
3033
3033
|
key: 0,
|
|
3034
3034
|
class: "table-query-container"
|
|
@@ -3112,7 +3112,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3112
3112
|
stripe: !0,
|
|
3113
3113
|
type: "hidden",
|
|
3114
3114
|
load: async () => {
|
|
3115
|
-
const a = Number(await
|
|
3115
|
+
const a = Number(await Ta(J.value));
|
|
3116
3116
|
a && a > 0 && (t.value.table.page.pageSize = a);
|
|
3117
3117
|
let { currentPage: u, pageSize: g } = t.value.table.page;
|
|
3118
3118
|
try {
|
|
@@ -3138,7 +3138,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
},
|
|
3140
3140
|
onHeaderDragend: (a, u, g) => {
|
|
3141
|
-
|
|
3141
|
+
_a(J.value, g.property, a);
|
|
3142
3142
|
},
|
|
3143
3143
|
onRowDblclick: (a, u, g) => {
|
|
3144
3144
|
t.value.table.dblclickType == "edit" ? S(a, u, g, t) : t.value.table.dblclickType == "view" ? O(a, u, g, t) : t.value.table.dblclickType == "delete" ? D(a, u, g, t) : t.value.table.dblclickType(a, u, g, t);
|
|
@@ -3161,7 +3161,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3161
3161
|
t.value.table.page.currentPage = a, t.value.table.load();
|
|
3162
3162
|
},
|
|
3163
3163
|
onSizeChange: (a) => {
|
|
3164
|
-
|
|
3164
|
+
Sa({ page: J.value, size: a }).then(() => {
|
|
3165
3165
|
t.value.table.page.pageSize = a, t.value.table.load();
|
|
3166
3166
|
});
|
|
3167
3167
|
}
|
|
@@ -3198,7 +3198,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3198
3198
|
mode: "dialog",
|
|
3199
3199
|
"view-mode": "description",
|
|
3200
3200
|
// description || readonly
|
|
3201
|
-
icon: () => _e(
|
|
3201
|
+
icon: () => _e(Hl),
|
|
3202
3202
|
auth: () => {
|
|
3203
3203
|
var q;
|
|
3204
3204
|
return !(((q = C == null ? void 0 : C.control) == null ? void 0 : q.add(a, C).inline) === !0 && g === 0);
|
|
@@ -3209,7 +3209,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3209
3209
|
text: !0,
|
|
3210
3210
|
type: "primary",
|
|
3211
3211
|
mode: "dialog",
|
|
3212
|
-
icon: () => _e(
|
|
3212
|
+
icon: () => _e(Ll),
|
|
3213
3213
|
auth: () => {
|
|
3214
3214
|
var q;
|
|
3215
3215
|
return ((q = C == null ? void 0 : C.control) == null ? void 0 : q.add(a, C).inline) !== !0;
|
|
@@ -3254,7 +3254,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3254
3254
|
type: "primary",
|
|
3255
3255
|
mode: "dialog",
|
|
3256
3256
|
inline: !1,
|
|
3257
|
-
icon: () => _e(
|
|
3257
|
+
icon: () => _e(Ul),
|
|
3258
3258
|
auth: () => !0
|
|
3259
3259
|
}),
|
|
3260
3260
|
toggleExpand: (a, u) => ({
|
|
@@ -3287,7 +3287,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3287
3287
|
text: !1,
|
|
3288
3288
|
type: "primary",
|
|
3289
3289
|
mode: "dialog",
|
|
3290
|
-
icon: () => _e(
|
|
3290
|
+
icon: () => _e(zl),
|
|
3291
3291
|
auth: () => !0
|
|
3292
3292
|
}),
|
|
3293
3293
|
dropdown: (a, u, g, C) => ({
|
|
@@ -3335,7 +3335,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3335
3335
|
"min-width": 100,
|
|
3336
3336
|
align: "center",
|
|
3337
3337
|
formatter: (a, u, g, C) => g,
|
|
3338
|
-
"tooltip-formatter": ({ row: a, column: u, cellValue: g }) => _e(
|
|
3338
|
+
"tooltip-formatter": ({ row: a, column: u, cellValue: g }) => _e(ja, { content: g, column: u })
|
|
3339
3339
|
};
|
|
3340
3340
|
t.value.tableColumns = qe(
|
|
3341
3341
|
De,
|
|
@@ -3464,13 +3464,13 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3464
3464
|
}
|
|
3465
3465
|
(R = t.value.control.view(a, u, g, C)) != null && R.click ? t.value.control.view(a, u, g, C).click(a, u, g, C) : (t.value.form.disabled = !0, t.value.dialog.mode = t.value.control.view(a, u, g, C).mode, t.value.dialog.title = t.value.control.view(a, u, g, C).title || t.value.control.view(a, u, g, C).label || "详情", Object.keys(a).forEach((we) => {
|
|
3466
3466
|
t.value[we] && (t.value[we].value = a[we]);
|
|
3467
|
-
}), ((B = t.value.control.view(a, u, g, C)) == null ? void 0 : B["view-mode"]) === "description" ?
|
|
3467
|
+
}), ((B = t.value.control.view(a, u, g, C)) == null ? void 0 : B["view-mode"]) === "description" ? ml({
|
|
3468
3468
|
...t.value.dialog,
|
|
3469
3469
|
type: t.value.dialog.mode,
|
|
3470
3470
|
slots: {
|
|
3471
3471
|
default: () => {
|
|
3472
3472
|
var we, Ee, Oe;
|
|
3473
|
-
return _e(
|
|
3473
|
+
return _e(cl, {
|
|
3474
3474
|
row: a,
|
|
3475
3475
|
m: C,
|
|
3476
3476
|
container: ((we = t.value.control.view(a, u, g, C)) == null ? void 0 : we.container) || {}
|
|
@@ -3514,7 +3514,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3514
3514
|
size: u.control.download(a, u).size || 480,
|
|
3515
3515
|
width: u.control.download(a, u).width || 600,
|
|
3516
3516
|
slots: {
|
|
3517
|
-
default: () => _e(
|
|
3517
|
+
default: () => _e($a, {
|
|
3518
3518
|
items: g,
|
|
3519
3519
|
commitText: u.control.download(a, u).excelLabel,
|
|
3520
3520
|
onExcel: (R, B) => {
|
|
@@ -3534,7 +3534,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3534
3534
|
size: u.control.setting(a, u).size || 470,
|
|
3535
3535
|
width: u.control.setting(a, u).width || 600,
|
|
3536
3536
|
slots: {
|
|
3537
|
-
default: () => _e(
|
|
3537
|
+
default: () => _e(za, {
|
|
3538
3538
|
modelValue: u,
|
|
3539
3539
|
tuid: J.value,
|
|
3540
3540
|
onSettingDragEnd: async () => {
|
|
@@ -3608,15 +3608,15 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3608
3608
|
}, tt = () => {
|
|
3609
3609
|
f.value = !1;
|
|
3610
3610
|
};
|
|
3611
|
-
|
|
3611
|
+
xl(() => {
|
|
3612
3612
|
t.value.table.autoWatch && t.value.table.load();
|
|
3613
3613
|
});
|
|
3614
3614
|
const Le = async () => {
|
|
3615
3615
|
try {
|
|
3616
3616
|
const [a, u, g] = await Promise.all([
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3617
|
+
Ca(J.value),
|
|
3618
|
+
Ea(J.value),
|
|
3619
|
+
xa(J.value)
|
|
3620
3620
|
]);
|
|
3621
3621
|
a && Array.isArray(a) && a.forEach((C) => {
|
|
3622
3622
|
const q = t.value[C.key];
|
|
@@ -3636,7 +3636,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3636
3636
|
});
|
|
3637
3637
|
}
|
|
3638
3638
|
}, Qe = () => Wa(Object.keys(t.value).toString()).toUpperCase().substring(8, 24);
|
|
3639
|
-
return
|
|
3639
|
+
return Ml(() => {
|
|
3640
3640
|
J.value = Qe();
|
|
3641
3641
|
}), yt(async () => {
|
|
3642
3642
|
try {
|
|
@@ -3721,7 +3721,7 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
3721
3721
|
Z("div", Ga, [
|
|
3722
3722
|
((Ze = (je = t.value) == null ? void 0 : je.query) == null ? void 0 : Ze.hidden) != !0 ? (h(), z("div", Xa, [
|
|
3723
3723
|
x(a.$slots, "query", {}, () => [
|
|
3724
|
-
se(
|
|
3724
|
+
se(oa, {
|
|
3725
3725
|
modelValue: t.value,
|
|
3726
3726
|
"onUpdate:modelValue": u[3] || (u[3] = (Q) => t.value = Q),
|
|
3727
3727
|
info: T.value,
|
|
@@ -4257,15 +4257,15 @@ const Wa = /* @__PURE__ */ ol(Na), Ga = { class: "g-table-container" }, Xa = {
|
|
|
4257
4257
|
], 12, ur))), 128))
|
|
4258
4258
|
]));
|
|
4259
4259
|
}
|
|
4260
|
-
}), ir = /* @__PURE__ */ et(sr, [["__scopeId", "data-v-c0ac6b77"]]), dr = Object.freeze({}), Ft = [Ka, dl, rr, ir, jt];
|
|
4260
|
+
}), ir = /* @__PURE__ */ et(sr, [["__scopeId", "data-v-c0ac6b77"]]), dr = Object.freeze({}), Ft = [Ka, dl, rr, ir, jt, cl];
|
|
4261
4261
|
let Dt = {};
|
|
4262
4262
|
const Cr = {
|
|
4263
4263
|
install: (r, s = {}) => {
|
|
4264
4264
|
Dt = Object.freeze({ ...dr, ...s }), Ft.forEach((e) => {
|
|
4265
4265
|
r.component(e.name, e);
|
|
4266
|
-
}), r.provide("options", Dt), r.config.globalProperties.$openModal = Lt, r.config.globalProperties.$open =
|
|
4266
|
+
}), r.provide("options", Dt), r.config.globalProperties.$openModal = Lt, r.config.globalProperties.$open = ml;
|
|
4267
4267
|
}
|
|
4268
|
-
}, cr = (r) => ({ dialog:
|
|
4268
|
+
}, cr = (r) => ({ dialog: bl, drawer: gl })[r] || null, Lt = (r = {}, s = "dialog") => {
|
|
4269
4269
|
if (typeof document > "u") return () => {
|
|
4270
4270
|
};
|
|
4271
4271
|
const e = document.createElement("div");
|
|
@@ -4306,7 +4306,7 @@ const Cr = {
|
|
|
4306
4306
|
return Ft.forEach((c) => {
|
|
4307
4307
|
t.component(c.name, c);
|
|
4308
4308
|
}), t.provide("options", Dt), t.use(Nt, { locale: nl }), document.body.appendChild(e), t.mount(e), l;
|
|
4309
|
-
},
|
|
4309
|
+
}, ml = (r = {}) => {
|
|
4310
4310
|
if (typeof document > "u") return () => {
|
|
4311
4311
|
};
|
|
4312
4312
|
const s = document.createElement("div");
|
|
@@ -4516,7 +4516,7 @@ export {
|
|
|
4516
4516
|
pr as formatAmount,
|
|
4517
4517
|
qe as mergeObjects,
|
|
4518
4518
|
Ht as moneyToChinese,
|
|
4519
|
-
|
|
4519
|
+
ml as open,
|
|
4520
4520
|
Lt as openModal,
|
|
4521
4521
|
xr as throttle
|
|
4522
4522
|
};
|