mvframe 1.0.70 → 1.0.72
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/css/cpt.css +1 -1
- package/dist/vendor.js +721 -719
- package/package.json +1 -1
package/dist/vendor.js
CHANGED
|
@@ -2,7 +2,7 @@ import { u as va } from "./util.js";
|
|
|
2
2
|
import { d as ga } from "./directive.js";
|
|
3
3
|
import { s as $l, p as Ml, a as _a } from "./store-shared.js";
|
|
4
4
|
import { createRouter as ya, createWebHistory as wa, useRoute as Ol, useRouter as El } from "vue-router";
|
|
5
|
-
import { computed as j, openBlock as T, createElementBlock as E, mergeProps as fe, unref as s, Fragment as te, renderList as ie, normalizeClass as
|
|
5
|
+
import { computed as j, openBlock as T, createElementBlock as E, mergeProps as fe, unref as s, Fragment as te, renderList as ie, normalizeClass as K, createCommentVNode as G, createTextVNode as ce, toDisplayString as z, renderSlot as Z, createElementVNode as i, reactive as q, onUnmounted as Ee, watch as we, markRaw as ze, resolveComponent as I, createVNode as R, withCtx as O, createBlock as J, resolveDynamicComponent as zl, nextTick as Te, getCurrentInstance as ke, ref as ne, onMounted as me, normalizeStyle as xe, defineComponent as jl, cloneVNode as ul, h as dl, inject as De, withModifiers as pl, defineAsyncComponent as Ca, createSlots as Oe, normalizeProps as Pe, guardReactiveProps as Ze, useSlots as Sa, useAttrs as Be, Transition as Ta, withKeys as Aa, createStaticVNode as xa, isRef as qe, onBeforeMount as Ll, createApp as ka, shallowRef as $a, withDirectives as Ma, vShow as Oa } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { deepEqual as fl, isInView as Ea, loadMvframeTheme as za, MVFRAME_STORAGE_LANG as ml, download as Nl, useRemoteSummary as ja, formatSummaryCell as La, useOptions as Na, useLang as Ia } from "./composition.js";
|
|
8
8
|
import Re from "vuedraggable";
|
|
@@ -121,8 +121,8 @@ const Ua = {
|
|
|
121
121
|
function Za(l) {
|
|
122
122
|
return String(l || "en_us").toLowerCase().replace(/-/g, "_");
|
|
123
123
|
}
|
|
124
|
-
const
|
|
125
|
-
function
|
|
124
|
+
const Ri = We;
|
|
125
|
+
function Vi(l) {
|
|
126
126
|
const a = Za(l);
|
|
127
127
|
return { ...We[a] || We.en_us };
|
|
128
128
|
}
|
|
@@ -4053,7 +4053,7 @@ function rl(l, a) {
|
|
|
4053
4053
|
}
|
|
4054
4054
|
return t;
|
|
4055
4055
|
}
|
|
4056
|
-
function
|
|
4056
|
+
function Di() {
|
|
4057
4057
|
return ol();
|
|
4058
4058
|
}
|
|
4059
4059
|
function Fe(l) {
|
|
@@ -4061,7 +4061,7 @@ function Fe(l) {
|
|
|
4061
4061
|
}
|
|
4062
4062
|
Fe.lang = Yt;
|
|
4063
4063
|
Fe.jump = (l) => Ve(Le(sl(l)));
|
|
4064
|
-
function
|
|
4064
|
+
function Pi(l) {
|
|
4065
4065
|
!l || typeof l != "object" || Array.isArray(l) || (tl = rl(ol(), l));
|
|
4066
4066
|
}
|
|
4067
4067
|
function qt(l, a = {}) {
|
|
@@ -4177,26 +4177,26 @@ function Ne(l, a) {
|
|
|
4177
4177
|
console.error("[mvframe/message]", e);
|
|
4178
4178
|
return;
|
|
4179
4179
|
}
|
|
4180
|
-
const
|
|
4181
|
-
|
|
4180
|
+
const b = document.createElement("div");
|
|
4181
|
+
b.className = "mvframeTopToastItem", b.style.setProperty("--mvframe-toast-border", t.border), b.style.setProperty("--mvframe-toast-bg", t.bg), b.style.setProperty("--mvframe-toast-color", t.color), b.setAttribute(
|
|
4182
4182
|
"role",
|
|
4183
4183
|
l === "error" ? "alert" : "status"
|
|
4184
4184
|
);
|
|
4185
|
-
const
|
|
4186
|
-
|
|
4187
|
-
let
|
|
4185
|
+
const v = document.createElement("div");
|
|
4186
|
+
v.className = "mvframeTopToastText", v.textContent = e, b.appendChild(v);
|
|
4187
|
+
let h = null, m = null;
|
|
4188
4188
|
const C = () => {
|
|
4189
|
-
|
|
4190
|
-
|
|
4189
|
+
h && (clearTimeout(h), h = null), m && (clearTimeout(m), m = null), b.parentNode && (b.classList.add("mvframeTopToastLeave"), m = window.setTimeout(() => {
|
|
4190
|
+
b.remove(), m = null;
|
|
4191
4191
|
}, 200));
|
|
4192
4192
|
};
|
|
4193
4193
|
if (n || o === 0) {
|
|
4194
4194
|
const A = document.createElement("button");
|
|
4195
|
-
A.type = "button", A.className = "mvframeTopToastClose", A.setAttribute("aria-label", "Close"), A.textContent = "×", A.addEventListener("click", C),
|
|
4195
|
+
A.type = "button", A.className = "mvframeTopToastClose", A.setAttribute("aria-label", "Close"), A.textContent = "×", A.addEventListener("click", C), b.appendChild(A);
|
|
4196
4196
|
}
|
|
4197
|
-
f.appendChild(
|
|
4197
|
+
f.appendChild(b), o > 0 && (h = window.setTimeout(C, o));
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4199
|
+
function Bi() {
|
|
4200
4200
|
return {
|
|
4201
4201
|
success: (l) => Ne("success", l),
|
|
4202
4202
|
warning: (l) => Ne("warning", l),
|
|
@@ -4204,8 +4204,8 @@ function Fi() {
|
|
|
4204
4204
|
error: (l) => Ne("error", l)
|
|
4205
4205
|
};
|
|
4206
4206
|
}
|
|
4207
|
-
var
|
|
4208
|
-
function
|
|
4207
|
+
var Fi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4208
|
+
function Hi(l) {
|
|
4209
4209
|
return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
|
|
4210
4210
|
}
|
|
4211
4211
|
const Ie = (l) => {
|
|
@@ -4217,13 +4217,13 @@ const Ie = (l) => {
|
|
|
4217
4217
|
l.beforeEach((o, n, f) => {
|
|
4218
4218
|
Ie(!0), a && o.meta.admin ? t() ? f() : e && e(o, n, f) : f();
|
|
4219
4219
|
}), l.afterEach((o, n, f) => {
|
|
4220
|
-
var
|
|
4220
|
+
var v, h;
|
|
4221
4221
|
if (f) {
|
|
4222
4222
|
Ie(!1);
|
|
4223
4223
|
return;
|
|
4224
4224
|
}
|
|
4225
|
-
const
|
|
4226
|
-
document.title = ((
|
|
4225
|
+
const b = $l.tab(Ml);
|
|
4226
|
+
document.title = ((v = o.meta) == null ? void 0 : v.title) || ((h = globalThis.$config) == null ? void 0 : h.name), b.saveTab(o), Ie(!1);
|
|
4227
4227
|
}), l.onError(() => {
|
|
4228
4228
|
Ie(!1);
|
|
4229
4229
|
});
|
|
@@ -4280,13 +4280,13 @@ const Ie = (l) => {
|
|
|
4280
4280
|
},
|
|
4281
4281
|
emits: ["update:modelValue", "change"],
|
|
4282
4282
|
setup(l, { emit: a }) {
|
|
4283
|
-
const t = l, e = a, o = (
|
|
4284
|
-
const m =
|
|
4283
|
+
const t = l, e = a, o = (h) => {
|
|
4284
|
+
const m = h.value;
|
|
4285
4285
|
return m === t.modelValue && (m !== void 0 || t.modelValue !== void 0);
|
|
4286
|
-
}, n = (
|
|
4287
|
-
t.disabled || (e("update:modelValue",
|
|
4286
|
+
}, n = (h) => {
|
|
4287
|
+
t.disabled || (e("update:modelValue", h.value), e("change", h.value));
|
|
4288
4288
|
}, f = j(() => {
|
|
4289
|
-
const
|
|
4289
|
+
const h = t.options, m = Array.isArray(h) ? h : [], C = t.valueKey, A = t.labelKey, p = t.iconKey;
|
|
4290
4290
|
return m.filter((y) => y != null).map((y) => typeof y == "object" && !Array.isArray(y) ? {
|
|
4291
4291
|
value: y[C],
|
|
4292
4292
|
label: y[A] ?? "",
|
|
@@ -4300,23 +4300,23 @@ const Ie = (l) => {
|
|
|
4300
4300
|
disabled: y.disabled,
|
|
4301
4301
|
raw: y
|
|
4302
4302
|
});
|
|
4303
|
-
}),
|
|
4304
|
-
return (
|
|
4305
|
-
class: ["MvcBtnGroup flexMode", [s(
|
|
4306
|
-
},
|
|
4303
|
+
}), b = j(() => ({ small: "g4", default: "g6", large: "g8" })[t.size] ?? "g6"), v = j(() => t.size === "small" ? "sizeSmall" : t.size === "large" ? "sizeLarge" : "");
|
|
4304
|
+
return (h, m) => (T(), E("div", fe({
|
|
4305
|
+
class: ["MvcBtnGroup flexMode", [s(b), s(v), h.$attrs.class]]
|
|
4306
|
+
}, h.$attrs, { role: "group" }), [
|
|
4307
4307
|
(T(!0), E(te, null, ie(s(f), (C) => (T(), E("button", {
|
|
4308
4308
|
key: C.value,
|
|
4309
4309
|
type: "button",
|
|
4310
|
-
class:
|
|
4310
|
+
class: K(["btnItem", { isActive: o(C) }]),
|
|
4311
4311
|
disabled: t.disabled || C.disabled,
|
|
4312
4312
|
onClick: (A) => n(C)
|
|
4313
4313
|
}, [
|
|
4314
4314
|
C.icon ? (T(), E("i", {
|
|
4315
4315
|
key: 0,
|
|
4316
|
-
class:
|
|
4316
|
+
class: K([[C.icon, t.iconClass], "noShrink fs16"]),
|
|
4317
4317
|
"aria-hidden": "true"
|
|
4318
|
-
}, null, 2)) :
|
|
4319
|
-
ce(" " + z(
|
|
4318
|
+
}, null, 2)) : G("", !0),
|
|
4319
|
+
ce(" " + z(h.$l(C.label)), 1)
|
|
4320
4320
|
], 10, to))), 128))
|
|
4321
4321
|
], 16));
|
|
4322
4322
|
}
|
|
@@ -4369,21 +4369,21 @@ const Ie = (l) => {
|
|
|
4369
4369
|
}, t.$attrs), [
|
|
4370
4370
|
a.title || t.$slots.header ? (T(), E("div", {
|
|
4371
4371
|
key: 0,
|
|
4372
|
-
class:
|
|
4372
|
+
class: K(["header", a.headerClass])
|
|
4373
4373
|
}, [
|
|
4374
|
-
t.$slots.header ? Z(t.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (T(), E("span", ro, z(a.title), 1)) :
|
|
4375
|
-
], 2)) :
|
|
4374
|
+
t.$slots.header ? Z(t.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (T(), E("span", ro, z(a.title), 1)) : G("", !0)
|
|
4375
|
+
], 2)) : G("", !0),
|
|
4376
4376
|
i("div", {
|
|
4377
|
-
class:
|
|
4377
|
+
class: K(["body", a.bodyClass])
|
|
4378
4378
|
}, [
|
|
4379
4379
|
Z(t.$slots, "default", {}, void 0, !0)
|
|
4380
4380
|
], 2),
|
|
4381
4381
|
t.$slots.footer ? (T(), E("div", {
|
|
4382
4382
|
key: 1,
|
|
4383
|
-
class:
|
|
4383
|
+
class: K(["footer", a.footerClass])
|
|
4384
4384
|
}, [
|
|
4385
4385
|
Z(t.$slots, "footer", {}, void 0, !0)
|
|
4386
|
-
], 2)) :
|
|
4386
|
+
], 2)) : G("", !0)
|
|
4387
4387
|
], 16));
|
|
4388
4388
|
}
|
|
4389
4389
|
}), co = /* @__PURE__ */ ue(io, [["__scopeId", "data-v-610b0b4c"]]), uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4427,13 +4427,13 @@ const Ie = (l) => {
|
|
|
4427
4427
|
dragMode: !1
|
|
4428
4428
|
}), n = a, f = () => {
|
|
4429
4429
|
o.mounted = !0;
|
|
4430
|
-
},
|
|
4430
|
+
}, b = () => {
|
|
4431
4431
|
n("update:current", ""), o.mounted = !1, k.value ? o.drawerInfo = e() : Te(() => {
|
|
4432
4432
|
delete o.drawerInfo.cpt;
|
|
4433
4433
|
});
|
|
4434
|
-
},
|
|
4434
|
+
}, v = () => {
|
|
4435
4435
|
o.drawerInfo.visible && (n("update:current", ""), o.drawerInfo.visible = !1);
|
|
4436
|
-
},
|
|
4436
|
+
}, h = () => {
|
|
4437
4437
|
o.drawerInfo.cpt = o.cpt;
|
|
4438
4438
|
}, m = (w) => {
|
|
4439
4439
|
o.dragMode = !0, document.addEventListener("mousemove", C), document.addEventListener("mouseup", A);
|
|
@@ -4463,7 +4463,7 @@ const Ie = (l) => {
|
|
|
4463
4463
|
};
|
|
4464
4464
|
d.cpt ? (o.cpt = ze(d.cpt), delete d.cpt) : (o.cpt = null, f()), o.drawerInfo = d;
|
|
4465
4465
|
} else
|
|
4466
|
-
|
|
4466
|
+
v();
|
|
4467
4467
|
}
|
|
4468
4468
|
), (w, r) => {
|
|
4469
4469
|
const d = I("Loading"), c = I("el-drawer");
|
|
@@ -4477,23 +4477,23 @@ const Ie = (l) => {
|
|
|
4477
4477
|
size: s(o).drawerInfo.size,
|
|
4478
4478
|
direction: s(o).drawerInfo.direction,
|
|
4479
4479
|
"destroy-on-close": s(k),
|
|
4480
|
-
onClosed:
|
|
4481
|
-
onOpened:
|
|
4482
|
-
class:
|
|
4480
|
+
onClosed: b,
|
|
4481
|
+
onOpened: h,
|
|
4482
|
+
class: K(s(o).dragMode && "notransition noevent noselect")
|
|
4483
4483
|
}, {
|
|
4484
4484
|
default: O(() => [
|
|
4485
4485
|
i("div", fo, [
|
|
4486
4486
|
i("div", {
|
|
4487
|
-
class:
|
|
4487
|
+
class: K(["dragHandle", s(o).dragMode && "active"]),
|
|
4488
4488
|
onMousedown: m
|
|
4489
4489
|
}, [...r[1] || (r[1] = [
|
|
4490
4490
|
i("i", { class: "imicon im-handle fs12" }, null, -1)
|
|
4491
4491
|
])], 34)
|
|
4492
4492
|
]),
|
|
4493
|
-
s(y) ?
|
|
4493
|
+
s(y) ? G("", !0) : (T(), E("div", mo, [
|
|
4494
4494
|
i("i", {
|
|
4495
4495
|
class: "imicon im-close fs20 txt-dark7 hover-txt-primary",
|
|
4496
|
-
onClick:
|
|
4496
|
+
onClick: v
|
|
4497
4497
|
})
|
|
4498
4498
|
])),
|
|
4499
4499
|
R(d, {
|
|
@@ -4501,7 +4501,7 @@ const Ie = (l) => {
|
|
|
4501
4501
|
}, null, 8, ["loading"]),
|
|
4502
4502
|
w.$slots.default ? Z(w.$slots, "default", { key: 1 }, void 0, !0) : (T(), J(zl(s(o).drawerInfo.cpt), fe({ key: 2 }, w.$attrs, {
|
|
4503
4503
|
params: s(o).drawerInfo.params,
|
|
4504
|
-
onClose:
|
|
4504
|
+
onClose: v,
|
|
4505
4505
|
onMounted: f
|
|
4506
4506
|
}), null, 16, ["params"]))
|
|
4507
4507
|
]),
|
|
@@ -4577,13 +4577,13 @@ const Ie = (l) => {
|
|
|
4577
4577
|
me(() => {
|
|
4578
4578
|
f("mounted");
|
|
4579
4579
|
});
|
|
4580
|
-
const
|
|
4580
|
+
const b = () => {
|
|
4581
4581
|
f("close"), f("cancel");
|
|
4582
|
-
},
|
|
4582
|
+
}, v = () => {
|
|
4583
4583
|
f("submit");
|
|
4584
4584
|
};
|
|
4585
4585
|
a({
|
|
4586
|
-
toClose:
|
|
4586
|
+
toClose: b,
|
|
4587
4587
|
scrollTo: (A) => {
|
|
4588
4588
|
var p;
|
|
4589
4589
|
(p = n.value) == null || p.setScrollTop(A);
|
|
@@ -4596,7 +4596,7 @@ const Ie = (l) => {
|
|
|
4596
4596
|
const y = I("Loading"), k = I("el-scrollbar"), w = I("el-button");
|
|
4597
4597
|
return T(), E(te, null, [
|
|
4598
4598
|
i("div", {
|
|
4599
|
-
class:
|
|
4599
|
+
class: K(["MvcDrawerBody VAfter", s(m)]),
|
|
4600
4600
|
style: xe(s(C))
|
|
4601
4601
|
}, [
|
|
4602
4602
|
R(y, {
|
|
@@ -4615,45 +4615,45 @@ const Ie = (l) => {
|
|
|
4615
4615
|
_: 3
|
|
4616
4616
|
}, 512))
|
|
4617
4617
|
], 6),
|
|
4618
|
-
e.nofooter ?
|
|
4618
|
+
e.nofooter ? G("", !0) : (T(), E("div", {
|
|
4619
4619
|
key: 0,
|
|
4620
|
-
class:
|
|
4620
|
+
class: K(["drawerFooter relative flexMode vc hb h64", e.footerClass])
|
|
4621
4621
|
}, [
|
|
4622
4622
|
A.$slots.footer ? Z(A.$slots, "footer", { key: 0 }, void 0, !0) : (T(), E("div", vo, [
|
|
4623
4623
|
A.$slots.cancel ? Z(A.$slots, "cancel", { key: 0 }, void 0, !0) : e.showCancel ? (T(), J(w, {
|
|
4624
4624
|
key: 1,
|
|
4625
4625
|
plain: "",
|
|
4626
4626
|
size: "large",
|
|
4627
|
-
onClick:
|
|
4627
|
+
onClick: b
|
|
4628
4628
|
}, {
|
|
4629
4629
|
icon: O(() => [
|
|
4630
4630
|
i("i", {
|
|
4631
|
-
class:
|
|
4631
|
+
class: K(["imicon", e.cancelIcon])
|
|
4632
4632
|
}, null, 2)
|
|
4633
4633
|
]),
|
|
4634
4634
|
default: O(() => [
|
|
4635
4635
|
i("span", go, z(A.$l(e.cancelTxt)), 1)
|
|
4636
4636
|
]),
|
|
4637
4637
|
_: 1
|
|
4638
|
-
})) :
|
|
4638
|
+
})) : G("", !0),
|
|
4639
4639
|
A.$slots.submit ? Z(A.$slots, "submit", { key: 2 }, void 0, !0) : e.showConfirm ? (T(), J(w, {
|
|
4640
4640
|
key: 3,
|
|
4641
4641
|
type: "primary",
|
|
4642
4642
|
size: "large",
|
|
4643
4643
|
loading: e.loading,
|
|
4644
|
-
onClick:
|
|
4644
|
+
onClick: v
|
|
4645
4645
|
}, {
|
|
4646
4646
|
icon: O(() => [
|
|
4647
4647
|
i("i", {
|
|
4648
|
-
class:
|
|
4648
|
+
class: K(["imicon", e.confirmIcon])
|
|
4649
4649
|
}, null, 2)
|
|
4650
4650
|
]),
|
|
4651
4651
|
default: O(() => [
|
|
4652
4652
|
i("span", _o, z(A.$l(e.confirmTxt)), 1)
|
|
4653
4653
|
]),
|
|
4654
4654
|
_: 1
|
|
4655
|
-
}, 8, ["loading"])) :
|
|
4656
|
-
A.$slots.footerright ? Z(A.$slots, "footerright", { key: 4 }, void 0, !0) :
|
|
4655
|
+
}, 8, ["loading"])) : G("", !0),
|
|
4656
|
+
A.$slots.footerright ? Z(A.$slots, "footerright", { key: 4 }, void 0, !0) : G("", !0)
|
|
4657
4657
|
]))
|
|
4658
4658
|
], 2))
|
|
4659
4659
|
], 64);
|
|
@@ -4686,15 +4686,15 @@ const To = jl({
|
|
|
4686
4686
|
setup(l, a) {
|
|
4687
4687
|
function t(o) {
|
|
4688
4688
|
if (!Array.isArray(o)) return [];
|
|
4689
|
-
const n = o.filter((
|
|
4690
|
-
return f ||
|
|
4689
|
+
const n = o.filter((h) => h && h.children !== "v-if"), f = n.length !== o.length, b = n.map((h) => e(h));
|
|
4690
|
+
return f || b.some((h, m) => h !== n[m]) ? b : o;
|
|
4691
4691
|
}
|
|
4692
4692
|
function e(o) {
|
|
4693
|
-
var
|
|
4693
|
+
var b, v, h, m;
|
|
4694
4694
|
if (!o) return o;
|
|
4695
4695
|
const n = o.children, f = window.$getType(n);
|
|
4696
|
-
if (((
|
|
4697
|
-
const C = ((m = (
|
|
4696
|
+
if (((b = o.type) == null ? void 0 : b.name) === "ElFormItem" && ((v = o.props) == null ? void 0 : v.label) != null) {
|
|
4697
|
+
const C = ((m = (h = o.props.label).$l) == null ? void 0 : m.call(h)) || o.props.label;
|
|
4698
4698
|
if (f === "Array") {
|
|
4699
4699
|
const A = t(n);
|
|
4700
4700
|
return Cl(A, n) ? ul(o, { label: C }) : dl(o.type, { ...o.props || {}, label: C }, A);
|
|
@@ -4708,8 +4708,8 @@ const To = jl({
|
|
|
4708
4708
|
return o;
|
|
4709
4709
|
}
|
|
4710
4710
|
return () => {
|
|
4711
|
-
var f,
|
|
4712
|
-
const o = (
|
|
4711
|
+
var f, b;
|
|
4712
|
+
const o = (b = (f = a.slots).default) == null ? void 0 : b.call(f), n = So(o);
|
|
4713
4713
|
return t(n);
|
|
4714
4714
|
};
|
|
4715
4715
|
}
|
|
@@ -4734,14 +4734,14 @@ const To = jl({
|
|
|
4734
4734
|
setup(l, { expose: a, emit: t }) {
|
|
4735
4735
|
const e = l, o = q({
|
|
4736
4736
|
form: {}
|
|
4737
|
-
}), { proxy: n } = ke(), f = t,
|
|
4737
|
+
}), { proxy: n } = ke(), f = t, b = async () => {
|
|
4738
4738
|
var m;
|
|
4739
4739
|
try {
|
|
4740
|
-
return (m = n.$refs) != null && m.form ? (await n.$refs.form.validate(),
|
|
4740
|
+
return (m = n.$refs) != null && m.form ? (await n.$refs.form.validate(), v()) : !1;
|
|
4741
4741
|
} catch {
|
|
4742
4742
|
return !1;
|
|
4743
4743
|
}
|
|
4744
|
-
},
|
|
4744
|
+
}, v = () => o.form, h = j(() => {
|
|
4745
4745
|
const m = {};
|
|
4746
4746
|
for (let C in e.rules)
|
|
4747
4747
|
m[C] = e.rules[C].map((A) => ({
|
|
@@ -4768,14 +4768,14 @@ const To = jl({
|
|
|
4768
4768
|
deep: !0
|
|
4769
4769
|
}
|
|
4770
4770
|
), a({
|
|
4771
|
-
validate:
|
|
4771
|
+
validate: b
|
|
4772
4772
|
}), (m, C) => {
|
|
4773
4773
|
const A = I("el-form");
|
|
4774
4774
|
return T(), E("div", Ao, [
|
|
4775
4775
|
R(A, {
|
|
4776
4776
|
ref: "form",
|
|
4777
4777
|
model: s(o).form,
|
|
4778
|
-
rules: s(
|
|
4778
|
+
rules: s(h),
|
|
4779
4779
|
size: e.size,
|
|
4780
4780
|
"validate-on-rule-change": !1,
|
|
4781
4781
|
"label-position": "top"
|
|
@@ -4807,14 +4807,14 @@ const To = jl({
|
|
|
4807
4807
|
pageScrolled: !1
|
|
4808
4808
|
});
|
|
4809
4809
|
let t = null, e = null;
|
|
4810
|
-
const o = De("store"), n = o.tab(), f = o.rmenu(),
|
|
4810
|
+
const o = De("store"), n = o.tab(), f = o.rmenu(), b = Ol(), v = El(), { proxy: h } = ke();
|
|
4811
4811
|
me(() => {
|
|
4812
4812
|
m(), p();
|
|
4813
4813
|
});
|
|
4814
4814
|
const m = () => {
|
|
4815
|
-
|
|
4816
|
-
}, C = (
|
|
4817
|
-
let x =
|
|
4815
|
+
h.$el.addEventListener("scroll", k);
|
|
4816
|
+
}, C = (g) => {
|
|
4817
|
+
let x = g == null ? void 0 : g.parentElement;
|
|
4818
4818
|
for (; x && x !== document.body; ) {
|
|
4819
4819
|
const { overflowY: L, overflow: P } = getComputedStyle(x), V = L || P;
|
|
4820
4820
|
if ((V === "auto" || V === "scroll" || V === "overlay") && x.scrollHeight > x.clientHeight)
|
|
@@ -4823,37 +4823,37 @@ const To = jl({
|
|
|
4823
4823
|
}
|
|
4824
4824
|
return null;
|
|
4825
4825
|
}, A = () => {
|
|
4826
|
-
const
|
|
4827
|
-
a.pageScrolled =
|
|
4826
|
+
const g = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, x = t ? t.scrollTop : 0;
|
|
4827
|
+
a.pageScrolled = g > 0 || x > 0;
|
|
4828
4828
|
}, p = () => {
|
|
4829
|
-
t = C(
|
|
4830
|
-
const
|
|
4829
|
+
t = C(h.$el);
|
|
4830
|
+
const g = () => {
|
|
4831
4831
|
A();
|
|
4832
4832
|
};
|
|
4833
|
-
window.addEventListener("scroll",
|
|
4834
|
-
window.removeEventListener("scroll",
|
|
4833
|
+
window.addEventListener("scroll", g, { passive: !0 }), t && t.addEventListener("scroll", g, { passive: !0 }), A(), e = () => {
|
|
4834
|
+
window.removeEventListener("scroll", g), t && t.removeEventListener("scroll", g), t = null;
|
|
4835
4835
|
};
|
|
4836
4836
|
}, y = () => {
|
|
4837
|
-
const
|
|
4838
|
-
|
|
4839
|
-
}, k = (
|
|
4837
|
+
const g = localStorage.getItem("tabsScroll");
|
|
4838
|
+
g && (h.$el.scrollLeft = Number(g));
|
|
4839
|
+
}, k = (g) => {
|
|
4840
4840
|
let x = null;
|
|
4841
4841
|
x !== null && clearTimeout(x), x = setTimeout(function() {
|
|
4842
|
-
const { scrollLeft: L } =
|
|
4842
|
+
const { scrollLeft: L } = g.target;
|
|
4843
4843
|
localStorage.setItem("tabsScroll", L);
|
|
4844
4844
|
}, 100);
|
|
4845
4845
|
}, w = () => {
|
|
4846
4846
|
Te(() => {
|
|
4847
|
-
const
|
|
4848
|
-
Ea(
|
|
4847
|
+
const g = h.$el.querySelector(`#tab_${u.value}`);
|
|
4848
|
+
Ea(h.$el, g) ? y() : h.$el.scrollLeft = (g == null ? void 0 : g.offsetLeft) - 16;
|
|
4849
4849
|
});
|
|
4850
|
-
}, r = (
|
|
4850
|
+
}, r = (g, x, L) => {
|
|
4851
4851
|
f.saveData("type", "tabManager"), f.saveData("options", [
|
|
4852
4852
|
{
|
|
4853
4853
|
label: "Close",
|
|
4854
4854
|
value: "close",
|
|
4855
4855
|
icon: "im-close",
|
|
4856
|
-
disabled:
|
|
4856
|
+
disabled: _.value.length === 1,
|
|
4857
4857
|
cb: () => {
|
|
4858
4858
|
n.closeTab(x, L);
|
|
4859
4859
|
}
|
|
@@ -4862,7 +4862,7 @@ const To = jl({
|
|
|
4862
4862
|
label: "Close Right",
|
|
4863
4863
|
value: "closeRight",
|
|
4864
4864
|
icon: "im-right",
|
|
4865
|
-
disabled: L ===
|
|
4865
|
+
disabled: L === _.value.length - 1,
|
|
4866
4866
|
cb: () => {
|
|
4867
4867
|
n.closeRightTab(x, L);
|
|
4868
4868
|
}
|
|
@@ -4880,28 +4880,28 @@ const To = jl({
|
|
|
4880
4880
|
label: "Close Other",
|
|
4881
4881
|
value: "closeOther",
|
|
4882
4882
|
icon: "im-left",
|
|
4883
|
-
disabled:
|
|
4883
|
+
disabled: _.value.length === 1,
|
|
4884
4884
|
cb: () => {
|
|
4885
4885
|
n.closeOtherTab(x, L);
|
|
4886
4886
|
}
|
|
4887
4887
|
}
|
|
4888
|
-
]), f.show({ el:
|
|
4889
|
-
}, d = (
|
|
4890
|
-
const x =
|
|
4891
|
-
(!x || !L || !P) &&
|
|
4892
|
-
name:
|
|
4893
|
-
params:
|
|
4894
|
-
query:
|
|
4888
|
+
]), f.show({ el: g.target });
|
|
4889
|
+
}, d = (g) => {
|
|
4890
|
+
const x = g.name === u.value, L = JSON.stringify(g.params ?? {}) === JSON.stringify(b.params ?? {}), P = JSON.stringify(g.query ?? {}) === JSON.stringify(b.query ?? {});
|
|
4891
|
+
(!x || !L || !P) && v.push({
|
|
4892
|
+
name: g.name,
|
|
4893
|
+
params: g.params,
|
|
4894
|
+
query: g.query
|
|
4895
4895
|
});
|
|
4896
|
-
}, c = (
|
|
4897
|
-
console.info(
|
|
4898
|
-
}, $ = (
|
|
4899
|
-
n.closeTab(
|
|
4900
|
-
},
|
|
4896
|
+
}, c = (g) => {
|
|
4897
|
+
console.info(g.name, u.value), g.name === u.value ? v.replace({ name: g.name, query: { t: +/* @__PURE__ */ new Date() } }) : d(g);
|
|
4898
|
+
}, $ = (g, x) => {
|
|
4899
|
+
n.closeTab(g, x);
|
|
4900
|
+
}, _ = j(() => n.tabs), u = j(() => b.name), S = j(() => _.value.length);
|
|
4901
4901
|
return we(
|
|
4902
4902
|
() => S.value,
|
|
4903
|
-
(
|
|
4904
|
-
localStorage.setItem("tabs", JSON.stringify(
|
|
4903
|
+
(g) => {
|
|
4904
|
+
localStorage.setItem("tabs", JSON.stringify(_.value)), g && w();
|
|
4905
4905
|
},
|
|
4906
4906
|
{
|
|
4907
4907
|
immediate: !0
|
|
@@ -4914,15 +4914,15 @@ const To = jl({
|
|
|
4914
4914
|
});
|
|
4915
4915
|
}
|
|
4916
4916
|
), Ee(() => {
|
|
4917
|
-
|
|
4918
|
-
}), (
|
|
4917
|
+
h.$el.removeEventListener("scroll", k), e == null || e(), e = null;
|
|
4918
|
+
}), (g, x) => (T(), E("div", $o, [
|
|
4919
4919
|
i("div", Mo, [
|
|
4920
|
-
(T(!0), E(te, null, ie(s(
|
|
4920
|
+
(T(!0), E(te, null, ie(s(_), (L, P) => (T(), E("div", {
|
|
4921
4921
|
key: L.name,
|
|
4922
4922
|
id: `tab_${L.name}`,
|
|
4923
|
-
class:
|
|
4923
|
+
class: K(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
|
|
4924
4924
|
L.name === s(u) && "active",
|
|
4925
|
-
s(
|
|
4925
|
+
s(_).length > 1 && "hoverItem"
|
|
4926
4926
|
]]),
|
|
4927
4927
|
onContextmenu: pl((V) => r(V, L, P), ["prevent", "stop"]),
|
|
4928
4928
|
onClick: (V) => d(L),
|
|
@@ -4930,8 +4930,8 @@ const To = jl({
|
|
|
4930
4930
|
}, [
|
|
4931
4931
|
L.icon ? (T(), E("i", {
|
|
4932
4932
|
key: 0,
|
|
4933
|
-
class:
|
|
4934
|
-
}, null, 2)) :
|
|
4933
|
+
class: K(["imicon", L.icon])
|
|
4934
|
+
}, null, 2)) : G("", !0),
|
|
4935
4935
|
ce(" " + z(L.meta.title) + " ", 1),
|
|
4936
4936
|
i("div", {
|
|
4937
4937
|
class: "abs r flexMode hc vc w20 h20",
|
|
@@ -4943,7 +4943,7 @@ const To = jl({
|
|
|
4943
4943
|
x[1] || (x[1] = i("div", { class: "w16 h16 noShrink" }, null, -1))
|
|
4944
4944
|
]),
|
|
4945
4945
|
i("div", {
|
|
4946
|
-
class:
|
|
4946
|
+
class: K(["tabShadow", s(a).pageScrolled && "visible"])
|
|
4947
4947
|
}, null, 2)
|
|
4948
4948
|
]));
|
|
4949
4949
|
}
|
|
@@ -4972,15 +4972,15 @@ const To = jl({
|
|
|
4972
4972
|
setup(l, { emit: a }) {
|
|
4973
4973
|
const t = l, e = q({
|
|
4974
4974
|
collapse: !1
|
|
4975
|
-
}), o = Ol(), n = El(), f = De("store"),
|
|
4975
|
+
}), o = Ol(), n = El(), f = De("store"), b = f.launch();
|
|
4976
4976
|
me(() => {
|
|
4977
|
-
|
|
4977
|
+
h();
|
|
4978
4978
|
});
|
|
4979
|
-
const
|
|
4979
|
+
const v = a, h = () => {
|
|
4980
4980
|
const c = localStorage.getItem("collapse");
|
|
4981
4981
|
c && (e.collapse = JSON.parse(c)), document.addEventListener("keydown", C);
|
|
4982
4982
|
}, m = (c) => {
|
|
4983
|
-
e.collapse === !0 ? e.collapse = !1 : e.collapse === !1 ? e.collapse = !0 : e.collapse = c, localStorage.setItem("collapse", e.collapse),
|
|
4983
|
+
e.collapse === !0 ? e.collapse = !1 : e.collapse === !1 ? e.collapse = !0 : e.collapse = c, localStorage.setItem("collapse", e.collapse), v("on-collapse-change", e.collapse);
|
|
4984
4984
|
}, C = (c) => {
|
|
4985
4985
|
c.shiftKey && (c.metaKey || c.ctrlKey) && (c.keyCode === 37 ? m(!0) : c.keyCode === 39 && m(!1));
|
|
4986
4986
|
}, A = (c) => {
|
|
@@ -4988,7 +4988,7 @@ const To = jl({
|
|
|
4988
4988
|
return ($ = c == null ? void 0 : c.children) != null && $.length ? A(c.children[0]) : c;
|
|
4989
4989
|
}, p = (c) => {
|
|
4990
4990
|
var $;
|
|
4991
|
-
return (($ = c == null ? void 0 : c.children) == null ? void 0 : $.some((
|
|
4991
|
+
return (($ = c == null ? void 0 : c.children) == null ? void 0 : $.some((_) => _.name === o.name || p(_))) ?? !1;
|
|
4992
4992
|
}, y = (c) => {
|
|
4993
4993
|
const $ = A(c);
|
|
4994
4994
|
$ != null && $.name && n.push({ name: $.name });
|
|
@@ -5001,25 +5001,25 @@ const To = jl({
|
|
|
5001
5001
|
return ((c = globalThis.$config) == null ? void 0 : c.loginPageName) || "Entry";
|
|
5002
5002
|
}, r = () => {
|
|
5003
5003
|
const c = () => {
|
|
5004
|
-
var
|
|
5004
|
+
var _, u;
|
|
5005
5005
|
try {
|
|
5006
5006
|
const S = f.tab();
|
|
5007
|
-
(
|
|
5007
|
+
(_ = S.closeAllTab) == null || _.call(S), (u = S.$patch) == null || u.call(S, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
|
|
5008
5008
|
} catch {
|
|
5009
5009
|
}
|
|
5010
5010
|
}, $ = () => {
|
|
5011
|
-
if (c(), typeof
|
|
5012
|
-
|
|
5011
|
+
if (c(), typeof b.clearLogin == "function")
|
|
5012
|
+
b.clearLogin();
|
|
5013
5013
|
else {
|
|
5014
5014
|
try {
|
|
5015
5015
|
localStorage.removeItem("login");
|
|
5016
5016
|
} catch {
|
|
5017
5017
|
}
|
|
5018
|
-
|
|
5018
|
+
b.$patch({ login: !1, userinfo: {}, loggingOut: !1 });
|
|
5019
5019
|
}
|
|
5020
5020
|
};
|
|
5021
|
-
|
|
5022
|
-
|
|
5021
|
+
b.$patch({ loggingOut: !0 }), n.replace({ name: w() }).catch(() => n.replace({ path: "/" })).then($).catch(() => {
|
|
5022
|
+
b.$patch({ loggingOut: !1 });
|
|
5023
5023
|
try {
|
|
5024
5024
|
n.replace({ path: "/" });
|
|
5025
5025
|
} catch {
|
|
@@ -5030,9 +5030,9 @@ const To = jl({
|
|
|
5030
5030
|
return Ee(() => {
|
|
5031
5031
|
document.removeEventListener("keydown", C);
|
|
5032
5032
|
}), (c, $) => {
|
|
5033
|
-
const
|
|
5033
|
+
const _ = I("el-popconfirm");
|
|
5034
5034
|
return T(), E("div", {
|
|
5035
|
-
class:
|
|
5035
|
+
class: K(["FrameMenu sticky vh100 noselect noShrink", s(e).collapse && "collapse"])
|
|
5036
5036
|
}, [
|
|
5037
5037
|
i("div", Lo, [
|
|
5038
5038
|
i("div", No, [
|
|
@@ -5046,19 +5046,19 @@ const To = jl({
|
|
|
5046
5046
|
onClick: $[0] || ($[0] = (u) => m(s(e).collapse))
|
|
5047
5047
|
}, [
|
|
5048
5048
|
i("i", {
|
|
5049
|
-
class:
|
|
5049
|
+
class: K(["imicon fs20", s(d)])
|
|
5050
5050
|
}, null, 2)
|
|
5051
5051
|
])
|
|
5052
5052
|
]),
|
|
5053
5053
|
i("div", Ro, [
|
|
5054
5054
|
(T(!0), E(te, null, ie(t.routes, (u, S) => {
|
|
5055
|
-
var
|
|
5055
|
+
var g, x;
|
|
5056
5056
|
return T(), E("div", {
|
|
5057
5057
|
key: S,
|
|
5058
5058
|
class: "menuItemWrap mb2"
|
|
5059
5059
|
}, [
|
|
5060
5060
|
i("div", {
|
|
5061
|
-
class:
|
|
5061
|
+
class: K(["menuItem flexMode vc g8 radius4 p0-16", [
|
|
5062
5062
|
s(o).name === u.name && "active bg-primary",
|
|
5063
5063
|
s(e).collapse && "hc",
|
|
5064
5064
|
s(e).collapse && p(u) && "activeChild"
|
|
@@ -5069,11 +5069,11 @@ const To = jl({
|
|
|
5069
5069
|
i("div", Do, [
|
|
5070
5070
|
u.meta.icon ? (T(), E("i", {
|
|
5071
5071
|
key: 0,
|
|
5072
|
-
class:
|
|
5073
|
-
}, null, 2)) : (T(), E("span", Po, z(((
|
|
5072
|
+
class: K([t.iconClass, u.meta.icon])
|
|
5073
|
+
}, null, 2)) : (T(), E("span", Po, z(((g = u.meta.title) == null ? void 0 : g.substr(0, 1)) || "U"), 1))
|
|
5074
5074
|
]),
|
|
5075
5075
|
i("div", {
|
|
5076
|
-
class:
|
|
5076
|
+
class: K(["itemTitle txt-nowrap fs14", [
|
|
5077
5077
|
s(o).name === u.name && "active",
|
|
5078
5078
|
s(e).collapse && "hide"
|
|
5079
5079
|
]])
|
|
@@ -5082,29 +5082,29 @@ const To = jl({
|
|
|
5082
5082
|
(x = u.children) != null && x.length ? (T(), E("div", Bo, [
|
|
5083
5083
|
(T(!0), E(te, null, ie(u.children, (L, P) => (T(), E("div", {
|
|
5084
5084
|
key: P,
|
|
5085
|
-
class:
|
|
5085
|
+
class: K(["childrenItem flexMode vc g8 radius4 h40 p0-16", s(o).name === L.name && "active bg-primary"]),
|
|
5086
5086
|
onClick: (V) => y(L),
|
|
5087
5087
|
onDblclick: k
|
|
5088
5088
|
}, [
|
|
5089
5089
|
i("div", Ho, [
|
|
5090
5090
|
L.meta.icon ? (T(), E("i", {
|
|
5091
5091
|
key: 0,
|
|
5092
|
-
class:
|
|
5093
|
-
}, null, 2)) :
|
|
5092
|
+
class: K([t.iconClass, L.meta.icon])
|
|
5093
|
+
}, null, 2)) : G("", !0)
|
|
5094
5094
|
]),
|
|
5095
5095
|
i("div", {
|
|
5096
|
-
class:
|
|
5096
|
+
class: K(["itemTitle txt-nowrap fs14", [
|
|
5097
5097
|
s(o).name === L.name && "active",
|
|
5098
5098
|
s(e).collapse && "hide"
|
|
5099
5099
|
]])
|
|
5100
5100
|
}, z(L.meta.title), 3)
|
|
5101
5101
|
], 42, Fo))), 128))
|
|
5102
|
-
])) :
|
|
5102
|
+
])) : G("", !0)
|
|
5103
5103
|
]);
|
|
5104
5104
|
}), 128))
|
|
5105
5105
|
]),
|
|
5106
5106
|
i("div", Uo, [
|
|
5107
|
-
R(
|
|
5107
|
+
R(_, {
|
|
5108
5108
|
placement: "top",
|
|
5109
5109
|
title: c.$l("Log out?"),
|
|
5110
5110
|
onConfirm: r
|
|
@@ -5113,8 +5113,8 @@ const To = jl({
|
|
|
5113
5113
|
i("div", Ko, [
|
|
5114
5114
|
$[1] || ($[1] = i("i", { class: "imicon im-power fs24" }, null, -1)),
|
|
5115
5115
|
i("span", {
|
|
5116
|
-
class:
|
|
5117
|
-
}, z(s(
|
|
5116
|
+
class: K(["fs14", s(e).collapse && "hide"])
|
|
5117
|
+
}, z(s(b).userinfo[t.usernameKey]), 3)
|
|
5118
5118
|
])
|
|
5119
5119
|
]),
|
|
5120
5120
|
_: 1
|
|
@@ -5156,7 +5156,7 @@ const To = jl({
|
|
|
5156
5156
|
t.current = 0;
|
|
5157
5157
|
};
|
|
5158
5158
|
return (o, n) => {
|
|
5159
|
-
const f = I("Icon"),
|
|
5159
|
+
const f = I("Icon"), b = I("Drawer");
|
|
5160
5160
|
return T(), E(te, null, [
|
|
5161
5161
|
i("div", Qo, [
|
|
5162
5162
|
i("div", {
|
|
@@ -5169,9 +5169,9 @@ const To = jl({
|
|
|
5169
5169
|
})
|
|
5170
5170
|
])
|
|
5171
5171
|
]),
|
|
5172
|
-
R(
|
|
5172
|
+
R(b, {
|
|
5173
5173
|
current: s(t).current,
|
|
5174
|
-
"onUpdate:current": n[0] || (n[0] = (
|
|
5174
|
+
"onUpdate:current": n[0] || (n[0] = (v) => s(t).current = v),
|
|
5175
5175
|
drawer: s(t).list
|
|
5176
5176
|
}, null, 8, ["current", "drawer"])
|
|
5177
5177
|
], 64);
|
|
@@ -5205,8 +5205,8 @@ const To = jl({
|
|
|
5205
5205
|
f();
|
|
5206
5206
|
});
|
|
5207
5207
|
const f = () => {
|
|
5208
|
-
za(),
|
|
5209
|
-
},
|
|
5208
|
+
za(), b();
|
|
5209
|
+
}, b = () => {
|
|
5210
5210
|
var C, A, p, y, k, w;
|
|
5211
5211
|
if ((A = (C = globalThis.$config) == null ? void 0 : C.iconfont) != null && A.url) {
|
|
5212
5212
|
const r = document.createElement("script");
|
|
@@ -5214,15 +5214,15 @@ const To = jl({
|
|
|
5214
5214
|
return;
|
|
5215
5215
|
document.head.appendChild(r), (w = (k = globalThis.$config) == null ? void 0 : k.iconfont) == null || delete w.url;
|
|
5216
5216
|
}
|
|
5217
|
-
},
|
|
5217
|
+
}, v = (C) => {
|
|
5218
5218
|
t.collapse = C;
|
|
5219
|
-
},
|
|
5219
|
+
}, h = j(() => n.pageLoading), m = j(() => ({
|
|
5220
5220
|
maxWidth: t.collapse ? "calc(100% - 4rem)" : "calc(100% - 12rem)"
|
|
5221
5221
|
}));
|
|
5222
5222
|
return (C, A) => {
|
|
5223
5223
|
const p = I("Loading"), y = I("router-view");
|
|
5224
5224
|
return T(), E("div", ln, [
|
|
5225
|
-
R(Jo, fe(a.menu, { onOnCollapseChange:
|
|
5225
|
+
R(Jo, fe(a.menu, { onOnCollapseChange: v }), Oe({ _: 2 }, [
|
|
5226
5226
|
C.$slots.logo ? {
|
|
5227
5227
|
name: "logo",
|
|
5228
5228
|
fn: O(() => [
|
|
@@ -5242,8 +5242,8 @@ const To = jl({
|
|
|
5242
5242
|
class: "PageArea",
|
|
5243
5243
|
style: xe(s(m))
|
|
5244
5244
|
}, [
|
|
5245
|
-
R(p, { loading: s(
|
|
5246
|
-
s(o).useTab ? (T(), J(jo, { key: 0 })) :
|
|
5245
|
+
R(p, { loading: s(h) }, null, 8, ["loading"]),
|
|
5246
|
+
s(o).useTab ? (T(), J(jo, { key: 0 })) : G("", !0),
|
|
5247
5247
|
R(en),
|
|
5248
5248
|
R(y, Pe(Ze(a.page)), null, 16),
|
|
5249
5249
|
R(Xo)
|
|
@@ -5320,21 +5320,21 @@ const To = jl({
|
|
|
5320
5320
|
const f = q({
|
|
5321
5321
|
val: "",
|
|
5322
5322
|
isComposing: !1
|
|
5323
|
-
}),
|
|
5323
|
+
}), b = a, { proxy: v } = ke();
|
|
5324
5324
|
me(() => {
|
|
5325
5325
|
var w, r, d;
|
|
5326
5326
|
const k = (w = o.value) == null ? void 0 : w.$el;
|
|
5327
|
-
n = ((r = k == null ? void 0 : k.querySelector) == null ? void 0 : r.call(k, "input")) || ((d = k == null ? void 0 : k.querySelector) == null ? void 0 : d.call(k, "textarea")), n && (n.addEventListener("compositionstart",
|
|
5327
|
+
n = ((r = k == null ? void 0 : k.querySelector) == null ? void 0 : r.call(k, "input")) || ((d = k == null ? void 0 : k.querySelector) == null ? void 0 : d.call(k, "textarea")), n && (n.addEventListener("compositionstart", h), n.addEventListener("compositionend", m));
|
|
5328
5328
|
});
|
|
5329
|
-
const
|
|
5329
|
+
const h = () => {
|
|
5330
5330
|
f.isComposing = !0;
|
|
5331
5331
|
}, m = () => {
|
|
5332
5332
|
f.isComposing = !1, Te(() => A(f.val));
|
|
5333
5333
|
}, C = (k) => {
|
|
5334
5334
|
f.isComposing || A(k);
|
|
5335
5335
|
}, A = (k) => {
|
|
5336
|
-
|
|
5337
|
-
}, p = j(() => !!(
|
|
5336
|
+
b("update:modelValue", k), b("input", k);
|
|
5337
|
+
}, p = j(() => !!(v.$attrs.maxlength || y.value)), y = j(() => v.$attrs.max);
|
|
5338
5338
|
return we(
|
|
5339
5339
|
() => t.modelValue,
|
|
5340
5340
|
(k) => {
|
|
@@ -5343,7 +5343,7 @@ const To = jl({
|
|
|
5343
5343
|
},
|
|
5344
5344
|
{ immediate: !0 }
|
|
5345
5345
|
), Ee(() => {
|
|
5346
|
-
n && (n.removeEventListener("compositionstart",
|
|
5346
|
+
n && (n.removeEventListener("compositionstart", h), n.removeEventListener("compositionend", m), n = null);
|
|
5347
5347
|
}), (k, w) => {
|
|
5348
5348
|
const r = I("el-input");
|
|
5349
5349
|
return T(), J(r, fe({
|
|
@@ -5384,7 +5384,7 @@ const To = jl({
|
|
|
5384
5384
|
},
|
|
5385
5385
|
setup(l) {
|
|
5386
5386
|
const a = l, t = Be(), e = j(() => {
|
|
5387
|
-
const { class:
|
|
5387
|
+
const { class: h, ...m } = t;
|
|
5388
5388
|
return m;
|
|
5389
5389
|
}), o = q({
|
|
5390
5390
|
lang: "en_us"
|
|
@@ -5392,33 +5392,33 @@ const To = jl({
|
|
|
5392
5392
|
me(() => {
|
|
5393
5393
|
f();
|
|
5394
5394
|
});
|
|
5395
|
-
const n = (
|
|
5395
|
+
const n = (h) => {
|
|
5396
5396
|
var C;
|
|
5397
5397
|
const m = (typeof localStorage < "u" ? localStorage.getItem(ml) : null) || ((C = globalThis.$config) == null ? void 0 : C.lang) || "en_us";
|
|
5398
|
-
|
|
5398
|
+
h == null || h === m || (typeof localStorage < "u" && localStorage.setItem(ml, h), window.location.reload());
|
|
5399
5399
|
}, f = () => {
|
|
5400
5400
|
var C;
|
|
5401
|
-
const
|
|
5402
|
-
o.lang = m.includes(
|
|
5403
|
-
},
|
|
5401
|
+
const h = ((C = globalThis.$getLang) == null ? void 0 : C.call(globalThis)) || "en_us", m = b.value.map((A) => A.value);
|
|
5402
|
+
o.lang = m.includes(h) ? h : m[0] || "en_us";
|
|
5403
|
+
}, b = j(() => {
|
|
5404
5404
|
var m;
|
|
5405
5405
|
return ((m = globalThis.$config) != null && m.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : qa.filter((C) => C.use !== !1)).filter((C) => C && C.use !== !1 && C.value);
|
|
5406
|
-
}),
|
|
5407
|
-
return (
|
|
5406
|
+
}), v = j(() => b.value.find((h) => h.value === o.lang) ?? null);
|
|
5407
|
+
return (h, m) => {
|
|
5408
5408
|
const C = I("el-option"), A = I("el-select");
|
|
5409
5409
|
return T(), J(A, fe({
|
|
5410
5410
|
modelValue: o.lang,
|
|
5411
5411
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => o.lang = p),
|
|
5412
|
-
class: ["MvcLang w140",
|
|
5412
|
+
class: ["MvcLang w140", h.$attrs.class],
|
|
5413
5413
|
teleported: a.teleported
|
|
5414
5414
|
}, e.value, { onChange: n }), {
|
|
5415
5415
|
prefix: O(() => [
|
|
5416
|
-
|
|
5417
|
-
i("span", pn, z(
|
|
5418
|
-
])) :
|
|
5416
|
+
v.value ? (T(), E("div", dn, [
|
|
5417
|
+
i("span", pn, z(v.value.txt), 1)
|
|
5418
|
+
])) : G("", !0)
|
|
5419
5419
|
]),
|
|
5420
5420
|
default: O(() => [
|
|
5421
|
-
(T(!0), E(te, null, ie(
|
|
5421
|
+
(T(!0), E(te, null, ie(b.value, (p) => (T(), J(C, {
|
|
5422
5422
|
key: p.value,
|
|
5423
5423
|
label: p.label,
|
|
5424
5424
|
value: p.value
|
|
@@ -5497,7 +5497,7 @@ const To = jl({
|
|
|
5497
5497
|
var p;
|
|
5498
5498
|
const C = m.value, A = ((p = globalThis.$getType) == null ? void 0 : p.call(globalThis, C)) ?? typeof C;
|
|
5499
5499
|
return A === "Object" || A === "Array" ? JSON.stringify(C) : String(C);
|
|
5500
|
-
},
|
|
5500
|
+
}, b = j(() => {
|
|
5501
5501
|
const m = t.options, C = Array.isArray(m) ? m : [], A = t.valueKey, p = t.labelKey;
|
|
5502
5502
|
return C.filter((y) => y != null).map((y) => typeof y == "object" && !Array.isArray(y) ? {
|
|
5503
5503
|
value: y[A],
|
|
@@ -5510,7 +5510,7 @@ const To = jl({
|
|
|
5510
5510
|
disabled: !1,
|
|
5511
5511
|
raw: y
|
|
5512
5512
|
});
|
|
5513
|
-
}),
|
|
5513
|
+
}), v = j(() => t.size === "small" ? "sizeSmall" : t.size === "large" ? "sizeLarge" : ""), h = j(() => {
|
|
5514
5514
|
var C, A;
|
|
5515
5515
|
const m = (A = (C = t.loadingTxt) == null ? void 0 : C.trim) == null ? void 0 : A.call(C);
|
|
5516
5516
|
return {
|
|
@@ -5523,13 +5523,13 @@ const To = jl({
|
|
|
5523
5523
|
return (m, C) => {
|
|
5524
5524
|
const A = I("Loading");
|
|
5525
5525
|
return T(), E("div", fe({
|
|
5526
|
-
class: ["MvcList", [s(
|
|
5526
|
+
class: ["MvcList", [s(v), m.$attrs.class]]
|
|
5527
5527
|
}, m.$attrs), [
|
|
5528
5528
|
i("div", gn, [
|
|
5529
5529
|
i("div", _n, [
|
|
5530
|
-
(T(!0), E(te, null, ie(s(
|
|
5530
|
+
(T(!0), E(te, null, ie(s(b), (p) => (T(), E("div", {
|
|
5531
5531
|
key: f(p),
|
|
5532
|
-
class:
|
|
5532
|
+
class: K(["listItem", { active: o(p), isDisabled: p.disabled }]),
|
|
5533
5533
|
role: "option",
|
|
5534
5534
|
"aria-selected": o(p),
|
|
5535
5535
|
onClick: (y) => n(p)
|
|
@@ -5541,7 +5541,7 @@ const To = jl({
|
|
|
5541
5541
|
]),
|
|
5542
5542
|
R(A, fe({
|
|
5543
5543
|
loading: t.loading
|
|
5544
|
-
}, s(
|
|
5544
|
+
}, s(h)), null, 16, ["loading"])
|
|
5545
5545
|
])
|
|
5546
5546
|
], 16);
|
|
5547
5547
|
};
|
|
@@ -5601,15 +5601,15 @@ const To = jl({
|
|
|
5601
5601
|
}, [
|
|
5602
5602
|
i("div", Tn, [
|
|
5603
5603
|
i("i", {
|
|
5604
|
-
class:
|
|
5604
|
+
class: K([a.icon, `fs${a.size}`, "imicon ani-rotate"]),
|
|
5605
5605
|
"aria-hidden": "true"
|
|
5606
5606
|
}, null, 2),
|
|
5607
5607
|
a.showTxt ? (T(), E("span", {
|
|
5608
5608
|
key: 0,
|
|
5609
|
-
class:
|
|
5610
|
-
}, z(t.$l(a.txt)), 3)) :
|
|
5609
|
+
class: K(["loaderTxt fs14 txt-c", a.txtClass])
|
|
5610
|
+
}, z(t.$l(a.txt)), 3)) : G("", !0)
|
|
5611
5611
|
])
|
|
5612
|
-
], 4)) :
|
|
5612
|
+
], 4)) : G("", !0)
|
|
5613
5613
|
]),
|
|
5614
5614
|
_: 1
|
|
5615
5615
|
}));
|
|
@@ -5669,18 +5669,18 @@ const To = jl({
|
|
|
5669
5669
|
});
|
|
5670
5670
|
me(() => {
|
|
5671
5671
|
try {
|
|
5672
|
-
const
|
|
5673
|
-
if (
|
|
5674
|
-
const u = JSON.parse(
|
|
5672
|
+
const _ = localStorage.getItem(Ke);
|
|
5673
|
+
if (_) {
|
|
5674
|
+
const u = JSON.parse(_);
|
|
5675
5675
|
u && typeof u == "object" && u.remember && (f.remember = !0, u.username != null && (f.form.username = String(u.username)), u.password != null && (f.form.password = String(u.password)));
|
|
5676
5676
|
}
|
|
5677
5677
|
} catch {
|
|
5678
5678
|
}
|
|
5679
5679
|
});
|
|
5680
|
-
const
|
|
5680
|
+
const b = a, v = (_, u = "info") => {
|
|
5681
5681
|
const S = e == null ? void 0 : e.$message;
|
|
5682
|
-
S != null && S[u] && S[u](
|
|
5683
|
-
},
|
|
5682
|
+
S != null && S[u] && S[u](_);
|
|
5683
|
+
}, h = () => {
|
|
5684
5684
|
try {
|
|
5685
5685
|
f.remember ? localStorage.setItem(
|
|
5686
5686
|
Ke,
|
|
@@ -5693,18 +5693,18 @@ const To = jl({
|
|
|
5693
5693
|
} catch {
|
|
5694
5694
|
}
|
|
5695
5695
|
}, m = () => {
|
|
5696
|
-
|
|
5696
|
+
v("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
|
|
5697
5697
|
}, C = () => {
|
|
5698
|
-
|
|
5698
|
+
v("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
|
|
5699
5699
|
}, A = async () => {
|
|
5700
|
-
var
|
|
5700
|
+
var g, x;
|
|
5701
5701
|
if (t.loading || n.value) return;
|
|
5702
|
-
const
|
|
5703
|
-
if (!
|
|
5704
|
-
const u = String(
|
|
5702
|
+
const _ = await ((x = (g = o.value) == null ? void 0 : g.validate) == null ? void 0 : x.call(g));
|
|
5703
|
+
if (!_) return;
|
|
5704
|
+
const u = String(_.username ?? "").trim();
|
|
5705
5705
|
if (!u)
|
|
5706
5706
|
return;
|
|
5707
|
-
const S = String(
|
|
5707
|
+
const S = String(_.password ?? "").trim();
|
|
5708
5708
|
if (S) {
|
|
5709
5709
|
n.value = !0;
|
|
5710
5710
|
try {
|
|
@@ -5713,7 +5713,7 @@ const To = jl({
|
|
|
5713
5713
|
username: u,
|
|
5714
5714
|
password: S
|
|
5715
5715
|
}));
|
|
5716
|
-
|
|
5716
|
+
h(), b("submit", {
|
|
5717
5717
|
method: "password",
|
|
5718
5718
|
[w.value.username.valueKey]: L.username,
|
|
5719
5719
|
[w.value.password.valueKey]: L.password
|
|
@@ -5723,10 +5723,10 @@ const To = jl({
|
|
|
5723
5723
|
}
|
|
5724
5724
|
}
|
|
5725
5725
|
}, p = j(() => !!t.loading || n.value), y = j(() => {
|
|
5726
|
-
const
|
|
5726
|
+
const _ = globalThis.$config;
|
|
5727
5727
|
return {
|
|
5728
|
-
copyright: (
|
|
5729
|
-
author: (
|
|
5728
|
+
copyright: (_ == null ? void 0 : _.copyright) ?? "",
|
|
5729
|
+
author: (_ == null ? void 0 : _.author) ?? ""
|
|
5730
5730
|
};
|
|
5731
5731
|
}), k = j(() => c[f.method] ?? "Login"), w = j(() => ({
|
|
5732
5732
|
username: {
|
|
@@ -5758,7 +5758,7 @@ const To = jl({
|
|
|
5758
5758
|
{ value: "dingtalk", label: "DingTalk" },
|
|
5759
5759
|
{ value: "feishu", label: "Lark" },
|
|
5760
5760
|
{ value: "wechat", label: "Wechat" }
|
|
5761
|
-
].filter((
|
|
5761
|
+
].filter((_, u) => t.loginMethods.includes(u))), c = {
|
|
5762
5762
|
dingtalk: "DingTalk",
|
|
5763
5763
|
feishu: "Lark",
|
|
5764
5764
|
wechat: "Wechat"
|
|
@@ -5780,12 +5780,12 @@ const To = jl({
|
|
|
5780
5780
|
valueKey: "password"
|
|
5781
5781
|
}
|
|
5782
5782
|
};
|
|
5783
|
-
return (
|
|
5784
|
-
const S = I("BtnGroup"),
|
|
5783
|
+
return (_, u) => {
|
|
5784
|
+
const S = I("BtnGroup"), g = I("Input"), x = I("el-form-item"), L = I("el-checkbox"), P = I("el-button"), V = I("Form");
|
|
5785
5785
|
return T(), E("div", $n, [
|
|
5786
5786
|
i("div", Mn, [
|
|
5787
5787
|
i("div", On, [
|
|
5788
|
-
i("span", En, z(
|
|
5788
|
+
i("span", En, z(_.$l(t.title)), 1)
|
|
5789
5789
|
]),
|
|
5790
5790
|
R(S, {
|
|
5791
5791
|
modelValue: s(f).method,
|
|
@@ -5808,7 +5808,7 @@ const To = jl({
|
|
|
5808
5808
|
default: O(() => [
|
|
5809
5809
|
R(x, { prop: "username" }, {
|
|
5810
5810
|
default: O(() => [
|
|
5811
|
-
R(
|
|
5811
|
+
R(g, {
|
|
5812
5812
|
modelValue: s(f).form.username,
|
|
5813
5813
|
"onUpdate:modelValue": u[1] || (u[1] = (B) => s(f).form.username = B),
|
|
5814
5814
|
class: "wp100",
|
|
@@ -5821,7 +5821,7 @@ const To = jl({
|
|
|
5821
5821
|
name: "prefix",
|
|
5822
5822
|
fn: O(() => [
|
|
5823
5823
|
i("i", {
|
|
5824
|
-
class:
|
|
5824
|
+
class: K(s(w).username.icon)
|
|
5825
5825
|
}, null, 2)
|
|
5826
5826
|
]),
|
|
5827
5827
|
key: "0"
|
|
@@ -5832,7 +5832,7 @@ const To = jl({
|
|
|
5832
5832
|
}),
|
|
5833
5833
|
R(x, { prop: "password" }, {
|
|
5834
5834
|
default: O(() => [
|
|
5835
|
-
R(
|
|
5835
|
+
R(g, {
|
|
5836
5836
|
modelValue: s(f).form.password,
|
|
5837
5837
|
"onUpdate:modelValue": u[2] || (u[2] = (B) => s(f).form.password = B),
|
|
5838
5838
|
class: "wp100",
|
|
@@ -5848,7 +5848,7 @@ const To = jl({
|
|
|
5848
5848
|
name: "prefix",
|
|
5849
5849
|
fn: O(() => [
|
|
5850
5850
|
i("i", {
|
|
5851
|
-
class:
|
|
5851
|
+
class: K(s(w).password.icon)
|
|
5852
5852
|
}, null, 2)
|
|
5853
5853
|
]),
|
|
5854
5854
|
key: "0"
|
|
@@ -5865,7 +5865,7 @@ const To = jl({
|
|
|
5865
5865
|
disabled: s(p)
|
|
5866
5866
|
}, {
|
|
5867
5867
|
default: O(() => [
|
|
5868
|
-
ce(z(
|
|
5868
|
+
ce(z(_.$l(t.rememberTxt)), 1)
|
|
5869
5869
|
]),
|
|
5870
5870
|
_: 1
|
|
5871
5871
|
}, 8, ["modelValue", "disabled"])
|
|
@@ -5881,7 +5881,7 @@ const To = jl({
|
|
|
5881
5881
|
onClick: A
|
|
5882
5882
|
}, {
|
|
5883
5883
|
default: O(() => [
|
|
5884
|
-
ce(z(
|
|
5884
|
+
ce(z(_.$l(t.submitTxt)), 1)
|
|
5885
5885
|
]),
|
|
5886
5886
|
_: 1
|
|
5887
5887
|
}, 8, ["loading", "disabled"])
|
|
@@ -5921,7 +5921,7 @@ const To = jl({
|
|
|
5921
5921
|
])) : (T(), E("div", In, [
|
|
5922
5922
|
i("p", Rn, z(s(k)), 1),
|
|
5923
5923
|
i("div", {
|
|
5924
|
-
class:
|
|
5924
|
+
class: K(["qrBlock w180 h180 radius6", `qr-${s(f).method}`]),
|
|
5925
5925
|
"aria-hidden": "true"
|
|
5926
5926
|
}, null, 2)
|
|
5927
5927
|
]))
|
|
@@ -5974,10 +5974,10 @@ const To = jl({
|
|
|
5974
5974
|
}), Hn = /* @__PURE__ */ ue(Fn, [["__scopeId", "data-v-e3e84cc8"]]), Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5975
5975
|
__proto__: null,
|
|
5976
5976
|
default: Hn
|
|
5977
|
-
}, Symbol.toStringTag, { value: "Module" })), Kn = {
|
|
5977
|
+
}, Symbol.toStringTag, { value: "Module" })), Kn = {
|
|
5978
5978
|
key: 0,
|
|
5979
5979
|
class: "PageHeader"
|
|
5980
|
-
},
|
|
5980
|
+
}, Gn = { class: "PageHeaderLeft" }, Jn = { class: "PageHeaderTitle" }, Wn = { class: "PageHeaderSubTitle" }, Yn = { class: "PageHeaderRight" }, Zn = /* @__PURE__ */ Object.assign({
|
|
5981
5981
|
name: "MvcPage",
|
|
5982
5982
|
inheritAttrs: !1
|
|
5983
5983
|
}, {
|
|
@@ -6001,36 +6001,38 @@ const To = jl({
|
|
|
6001
6001
|
}
|
|
6002
6002
|
},
|
|
6003
6003
|
setup(l) {
|
|
6004
|
-
const a = l, { proxy: t } = ke(), o = De("store").tab(), n = j(() => a.title || a.subtitle), f = j(() => {
|
|
6005
|
-
let
|
|
6006
|
-
return o.useTab && (
|
|
6007
|
-
minHeight: `${
|
|
6004
|
+
const a = l, { proxy: t } = ke(), o = De("store").tab(), n = j(() => a.title || a.subtitle), f = j(() => o.useTab), b = j(() => {
|
|
6005
|
+
let v = "calc(100vh";
|
|
6006
|
+
return o.useTab && (v += " - 2.25rem"), a.noheader || (v += " - 4rem"), {
|
|
6007
|
+
minHeight: `${v})`
|
|
6008
6008
|
};
|
|
6009
6009
|
});
|
|
6010
|
-
return (
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6010
|
+
return (v, h) => (T(), E("div", {
|
|
6011
|
+
class: K(["MvcPage", s(f) && "hasTab"])
|
|
6012
|
+
}, [
|
|
6013
|
+
a.noheader ? G("", !0) : (T(), E("div", Kn, [
|
|
6014
|
+
i("div", Gn, [
|
|
6015
|
+
v.$slots.header ? Z(v.$slots, "header", { key: 0 }, void 0, !0) : s(n) ? (T(), E(te, { key: 1 }, [
|
|
6016
|
+
i("h3", Jn, z(a.title), 1),
|
|
6017
|
+
i("p", Wn, z(a.subtitle), 1)
|
|
6018
|
+
], 64)) : G("", !0)
|
|
6017
6019
|
]),
|
|
6018
|
-
i("div",
|
|
6019
|
-
|
|
6020
|
+
i("div", Yn, [
|
|
6021
|
+
v.$slots.right ? Z(v.$slots, "right", { key: 0 }, void 0, !0) : G("", !0)
|
|
6020
6022
|
])
|
|
6021
6023
|
])),
|
|
6022
6024
|
i("div", {
|
|
6023
|
-
class:
|
|
6024
|
-
style: xe(s(
|
|
6025
|
+
class: K(["PageBody", a.bodyClass]),
|
|
6026
|
+
style: xe(s(b))
|
|
6025
6027
|
}, [
|
|
6026
|
-
Z(
|
|
6028
|
+
Z(v.$slots, "default", {}, void 0, !0)
|
|
6027
6029
|
], 6)
|
|
6028
|
-
]));
|
|
6030
|
+
], 2));
|
|
6029
6031
|
}
|
|
6030
|
-
}),
|
|
6032
|
+
}), qn = /* @__PURE__ */ ue(Zn, [["__scopeId", "data-v-3ff06276"]]), Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6031
6033
|
__proto__: null,
|
|
6032
|
-
default:
|
|
6033
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6034
|
+
default: qn
|
|
6035
|
+
}, Symbol.toStringTag, { value: "Module" })), Qn = { class: "flexMode hb vc" }, es = { key: 1 }, ls = { class: "tag" }, as = { class: "flexMode hr" }, ts = /* @__PURE__ */ Object.assign({
|
|
6034
6036
|
name: "MvcSelect",
|
|
6035
6037
|
inheritAttrs: !1
|
|
6036
6038
|
}, {
|
|
@@ -6075,41 +6077,41 @@ const To = jl({
|
|
|
6075
6077
|
},
|
|
6076
6078
|
emits: ["update:modelValue", "change"],
|
|
6077
6079
|
setup(l, { emit: a }) {
|
|
6078
|
-
const t = l, e = ne(null), o = ne([]), n = ne(!1), f = ne(!1),
|
|
6079
|
-
t.multiple ? (o.value = Array.isArray(u) ? [...u] : [], k()) : (
|
|
6080
|
+
const t = l, e = ne(null), o = ne([]), n = ne(!1), f = ne(!1), b = ne(!1), v = a, h = (u) => {
|
|
6081
|
+
t.multiple ? (o.value = Array.isArray(u) ? [...u] : [], k()) : (v("update:modelValue", u), v("change", u));
|
|
6080
6082
|
}, m = (u) => {
|
|
6081
6083
|
if (n.value = u, u && t.multiple) {
|
|
6082
6084
|
const S = t.modelValue;
|
|
6083
6085
|
o.value = Array.isArray(S) ? [...S] : S ? [S] : [], k();
|
|
6084
6086
|
}
|
|
6085
6087
|
}, C = () => {
|
|
6086
|
-
var
|
|
6088
|
+
var g;
|
|
6087
6089
|
if (!t.filterable || !n.value) return y();
|
|
6088
|
-
const u = e.value, S = ((
|
|
6090
|
+
const u = e.value, S = ((g = u == null ? void 0 : u.optionsArray) == null ? void 0 : g.value) ?? (u == null ? void 0 : u.optionsArray) ?? [];
|
|
6089
6091
|
return Array.isArray(S) ? S.filter((x) => x.visible && !x.isDisabled).map((x) => x.value) : y();
|
|
6090
6092
|
}, A = (u) => {
|
|
6091
|
-
|
|
6093
|
+
b.value = !1;
|
|
6092
6094
|
const S = C();
|
|
6093
6095
|
if (u)
|
|
6094
6096
|
o.value = [.../* @__PURE__ */ new Set([...o.value, ...S])];
|
|
6095
6097
|
else {
|
|
6096
|
-
const
|
|
6097
|
-
o.value = o.value.filter((x) => !
|
|
6098
|
+
const g = new Set(S);
|
|
6099
|
+
o.value = o.value.filter((x) => !g.has(x));
|
|
6098
6100
|
}
|
|
6099
6101
|
}, p = () => {
|
|
6100
6102
|
var u, S;
|
|
6101
|
-
t.multiple && (
|
|
6103
|
+
t.multiple && (v("update:modelValue", o.value), v("change", o.value), (S = (u = e.value) == null ? void 0 : u.blur) == null || S.call(u));
|
|
6102
6104
|
}, y = () => {
|
|
6103
6105
|
const u = t.valueKey;
|
|
6104
6106
|
return (t.options || []).map((S) => typeof S == "object" ? S[u] : S);
|
|
6105
6107
|
}, k = () => {
|
|
6106
|
-
const u = C(), S = new Set(o.value ?? []),
|
|
6107
|
-
f.value = x > 0 &&
|
|
6108
|
+
const u = C(), S = new Set(o.value ?? []), g = u.filter((L) => S.has(L)).length, x = u.length;
|
|
6109
|
+
f.value = x > 0 && g === x, b.value = g > 0 && g < x;
|
|
6108
6110
|
}, w = j(() => t.multiple && n.value ? o.value : t.modelValue), r = j(() => {
|
|
6109
6111
|
const {
|
|
6110
6112
|
modelValue: u,
|
|
6111
6113
|
valueKey: S,
|
|
6112
|
-
labelKey:
|
|
6114
|
+
labelKey: g,
|
|
6113
6115
|
selectAllTxt: x,
|
|
6114
6116
|
confirmTxt: L,
|
|
6115
6117
|
nowrap: P,
|
|
@@ -6120,7 +6122,7 @@ const To = jl({
|
|
|
6120
6122
|
props: {
|
|
6121
6123
|
...B,
|
|
6122
6124
|
value: S,
|
|
6123
|
-
label:
|
|
6125
|
+
label: g
|
|
6124
6126
|
}
|
|
6125
6127
|
};
|
|
6126
6128
|
}), d = j(
|
|
@@ -6137,9 +6139,9 @@ const To = jl({
|
|
|
6137
6139
|
})), $ = j(() => {
|
|
6138
6140
|
const u = t.multiple && n.value ? o.value : t.modelValue, S = Array.isArray(u) ? u : u ? [u] : [];
|
|
6139
6141
|
if (!t.filterable || !n.value) return S.length;
|
|
6140
|
-
const
|
|
6141
|
-
return S.filter((x) =>
|
|
6142
|
-
}),
|
|
6142
|
+
const g = C();
|
|
6143
|
+
return S.filter((x) => g.includes(x)).length;
|
|
6144
|
+
}), _ = j(() => C().length);
|
|
6143
6145
|
return we(o, () => k(), { deep: !0 }), we(
|
|
6144
6146
|
() => t.modelValue,
|
|
6145
6147
|
(u) => {
|
|
@@ -6149,7 +6151,7 @@ const To = jl({
|
|
|
6149
6151
|
}
|
|
6150
6152
|
}
|
|
6151
6153
|
), (u, S) => {
|
|
6152
|
-
const
|
|
6154
|
+
const g = I("el-checkbox"), x = I("el-button"), L = I("el-select");
|
|
6153
6155
|
return T(), J(L, fe({
|
|
6154
6156
|
ref_key: "selectRef",
|
|
6155
6157
|
ref: e,
|
|
@@ -6157,7 +6159,7 @@ const To = jl({
|
|
|
6157
6159
|
"tag-effect": "plain",
|
|
6158
6160
|
class: "MvcSelect"
|
|
6159
6161
|
}, s(c), {
|
|
6160
|
-
"onUpdate:modelValue":
|
|
6162
|
+
"onUpdate:modelValue": h,
|
|
6161
6163
|
onVisibleChange: m
|
|
6162
6164
|
}), Oe({
|
|
6163
6165
|
default: O(() => [
|
|
@@ -6168,12 +6170,12 @@ const To = jl({
|
|
|
6168
6170
|
t.filterable ? {
|
|
6169
6171
|
name: "header",
|
|
6170
6172
|
fn: O(() => [
|
|
6171
|
-
i("div",
|
|
6172
|
-
t.multiple ? (T(), J(
|
|
6173
|
+
i("div", Qn, [
|
|
6174
|
+
t.multiple ? (T(), J(g, {
|
|
6173
6175
|
key: 0,
|
|
6174
6176
|
modelValue: s(f),
|
|
6175
6177
|
"onUpdate:modelValue": S[0] || (S[0] = (P) => qe(f) ? f.value = P : null),
|
|
6176
|
-
indeterminate: s(
|
|
6178
|
+
indeterminate: s(b),
|
|
6177
6179
|
class: "h24",
|
|
6178
6180
|
onChange: A
|
|
6179
6181
|
}, {
|
|
@@ -6181,8 +6183,8 @@ const To = jl({
|
|
|
6181
6183
|
ce(z(l.selectAllTxt), 1)
|
|
6182
6184
|
]),
|
|
6183
6185
|
_: 1
|
|
6184
|
-
}, 8, ["modelValue", "indeterminate"])) : (T(), E("span",
|
|
6185
|
-
i("span",
|
|
6186
|
+
}, 8, ["modelValue", "indeterminate"])) : (T(), E("span", es)),
|
|
6187
|
+
i("span", ls, z(s($)) + "/" + z(s(_)), 1)
|
|
6186
6188
|
])
|
|
6187
6189
|
]),
|
|
6188
6190
|
key: "0"
|
|
@@ -6190,7 +6192,7 @@ const To = jl({
|
|
|
6190
6192
|
t.multiple ? {
|
|
6191
6193
|
name: "footer",
|
|
6192
6194
|
fn: O(() => [
|
|
6193
|
-
i("div",
|
|
6195
|
+
i("div", as, [
|
|
6194
6196
|
R(x, {
|
|
6195
6197
|
type: "primary",
|
|
6196
6198
|
size: "small",
|
|
@@ -6208,10 +6210,10 @@ const To = jl({
|
|
|
6208
6210
|
]), 1040, ["model-value"]);
|
|
6209
6211
|
};
|
|
6210
6212
|
}
|
|
6211
|
-
}),
|
|
6213
|
+
}), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6212
6214
|
__proto__: null,
|
|
6213
|
-
default:
|
|
6214
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6215
|
+
default: ts
|
|
6216
|
+
}, Symbol.toStringTag, { value: "Module" })), ns = { class: "flexMode hb vc" }, ss = { key: 1 }, rs = { class: "tag" }, is = { class: "flexMode hr" }, cs = /* @__PURE__ */ Object.assign({
|
|
6215
6217
|
name: "MvcSelectV2",
|
|
6216
6218
|
inheritAttrs: !1
|
|
6217
6219
|
}, {
|
|
@@ -6256,8 +6258,8 @@ const To = jl({
|
|
|
6256
6258
|
},
|
|
6257
6259
|
emits: ["update:modelValue", "change"],
|
|
6258
6260
|
setup(l, { emit: a }) {
|
|
6259
|
-
const t = l, e = ne(null), o = ne([]), n = ne(!1), f = ne(!1),
|
|
6260
|
-
t.multiple ? (o.value = Array.isArray(u) ? [...u] : [], k()) : (
|
|
6261
|
+
const t = l, e = ne(null), o = ne([]), n = ne(!1), f = ne(!1), b = ne(!1), v = a, h = (u) => {
|
|
6262
|
+
t.multiple ? (o.value = Array.isArray(u) ? [...u] : [], k()) : (v("update:modelValue", u), v("change", u));
|
|
6261
6263
|
}, m = (u) => {
|
|
6262
6264
|
if (n.value = u, u && t.multiple) {
|
|
6263
6265
|
const S = t.modelValue;
|
|
@@ -6268,31 +6270,31 @@ const To = jl({
|
|
|
6268
6270
|
if (!t.filterable || !n.value) return y();
|
|
6269
6271
|
const u = e.value, S = ((x = u == null ? void 0 : u.filteredOptions) == null ? void 0 : x.value) ?? (u == null ? void 0 : u.filteredOptions) ?? [];
|
|
6270
6272
|
if (!Array.isArray(S)) return y();
|
|
6271
|
-
const
|
|
6272
|
-
return S.filter((L) => L.type !== "Group" && !L.disabled).map((L) => typeof L == "object" ? L[
|
|
6273
|
+
const g = t.valueKey;
|
|
6274
|
+
return S.filter((L) => L.type !== "Group" && !L.disabled).map((L) => typeof L == "object" ? L[g] : L);
|
|
6273
6275
|
}, A = (u) => {
|
|
6274
|
-
|
|
6276
|
+
b.value = !1;
|
|
6275
6277
|
const S = C();
|
|
6276
6278
|
if (u)
|
|
6277
6279
|
o.value = [.../* @__PURE__ */ new Set([...o.value, ...S])];
|
|
6278
6280
|
else {
|
|
6279
|
-
const
|
|
6280
|
-
o.value = o.value.filter((x) => !
|
|
6281
|
+
const g = new Set(S);
|
|
6282
|
+
o.value = o.value.filter((x) => !g.has(x));
|
|
6281
6283
|
}
|
|
6282
6284
|
}, p = () => {
|
|
6283
6285
|
var u, S;
|
|
6284
|
-
t.multiple && (
|
|
6286
|
+
t.multiple && (v("update:modelValue", o.value), v("change", o.value), (S = (u = e.value) == null ? void 0 : u.blur) == null || S.call(u));
|
|
6285
6287
|
}, y = () => {
|
|
6286
6288
|
const u = t.valueKey;
|
|
6287
6289
|
return (t.options || []).map((S) => typeof S == "object" ? S[u] : S);
|
|
6288
6290
|
}, k = () => {
|
|
6289
|
-
const u = C(), S = new Set(o.value ?? []),
|
|
6290
|
-
f.value = x > 0 &&
|
|
6291
|
+
const u = C(), S = new Set(o.value ?? []), g = u.filter((L) => S.has(L)).length, x = u.length;
|
|
6292
|
+
f.value = x > 0 && g === x, b.value = g > 0 && g < x;
|
|
6291
6293
|
}, w = j(() => t.multiple && n.value ? o.value : t.modelValue), r = j(() => {
|
|
6292
6294
|
const {
|
|
6293
6295
|
modelValue: u,
|
|
6294
6296
|
valueKey: S,
|
|
6295
|
-
labelKey:
|
|
6297
|
+
labelKey: g,
|
|
6296
6298
|
selectAllTxt: x,
|
|
6297
6299
|
confirmTxt: L,
|
|
6298
6300
|
nowrap: P,
|
|
@@ -6303,7 +6305,7 @@ const To = jl({
|
|
|
6303
6305
|
props: {
|
|
6304
6306
|
...B,
|
|
6305
6307
|
value: S,
|
|
6306
|
-
label:
|
|
6308
|
+
label: g
|
|
6307
6309
|
}
|
|
6308
6310
|
};
|
|
6309
6311
|
}), d = j(
|
|
@@ -6320,9 +6322,9 @@ const To = jl({
|
|
|
6320
6322
|
})), $ = j(() => {
|
|
6321
6323
|
const u = t.multiple && n.value ? o.value : t.modelValue, S = Array.isArray(u) ? u : u ? [u] : [];
|
|
6322
6324
|
if (!t.filterable || !n.value) return S.length;
|
|
6323
|
-
const
|
|
6324
|
-
return S.filter((x) =>
|
|
6325
|
-
}),
|
|
6325
|
+
const g = C();
|
|
6326
|
+
return S.filter((x) => g.includes(x)).length;
|
|
6327
|
+
}), _ = j(() => C().length);
|
|
6326
6328
|
return we(o, () => k(), { deep: !0 }), we(
|
|
6327
6329
|
() => t.modelValue,
|
|
6328
6330
|
(u) => {
|
|
@@ -6332,25 +6334,25 @@ const To = jl({
|
|
|
6332
6334
|
}
|
|
6333
6335
|
}
|
|
6334
6336
|
), (u, S) => {
|
|
6335
|
-
const
|
|
6337
|
+
const g = I("el-checkbox"), x = I("el-button"), L = I("el-select-v2");
|
|
6336
6338
|
return T(), J(L, fe({
|
|
6337
6339
|
ref_key: "selectRef",
|
|
6338
6340
|
ref: e,
|
|
6339
6341
|
"model-value": s(w),
|
|
6340
6342
|
class: "MvcSelectV2"
|
|
6341
6343
|
}, s(c), {
|
|
6342
|
-
"onUpdate:modelValue":
|
|
6344
|
+
"onUpdate:modelValue": h,
|
|
6343
6345
|
onVisibleChange: m
|
|
6344
6346
|
}), Oe({ _: 2 }, [
|
|
6345
6347
|
t.filterable ? {
|
|
6346
6348
|
name: "header",
|
|
6347
6349
|
fn: O(() => [
|
|
6348
|
-
i("div",
|
|
6349
|
-
t.multiple ? (T(), J(
|
|
6350
|
+
i("div", ns, [
|
|
6351
|
+
t.multiple ? (T(), J(g, {
|
|
6350
6352
|
key: 0,
|
|
6351
6353
|
modelValue: s(f),
|
|
6352
6354
|
"onUpdate:modelValue": S[0] || (S[0] = (P) => qe(f) ? f.value = P : null),
|
|
6353
|
-
indeterminate: s(
|
|
6355
|
+
indeterminate: s(b),
|
|
6354
6356
|
class: "h24",
|
|
6355
6357
|
onChange: A
|
|
6356
6358
|
}, {
|
|
@@ -6358,8 +6360,8 @@ const To = jl({
|
|
|
6358
6360
|
ce(z(l.selectAllTxt), 1)
|
|
6359
6361
|
]),
|
|
6360
6362
|
_: 1
|
|
6361
|
-
}, 8, ["modelValue", "indeterminate"])) : (T(), E("span",
|
|
6362
|
-
i("span",
|
|
6363
|
+
}, 8, ["modelValue", "indeterminate"])) : (T(), E("span", ss)),
|
|
6364
|
+
i("span", rs, z(s($)) + "/" + z(s(_)), 1)
|
|
6363
6365
|
])
|
|
6364
6366
|
]),
|
|
6365
6367
|
key: "0"
|
|
@@ -6374,7 +6376,7 @@ const To = jl({
|
|
|
6374
6376
|
t.multiple ? {
|
|
6375
6377
|
name: "footer",
|
|
6376
6378
|
fn: O(() => [
|
|
6377
|
-
i("div",
|
|
6379
|
+
i("div", is, [
|
|
6378
6380
|
R(x, {
|
|
6379
6381
|
type: "primary",
|
|
6380
6382
|
size: "small",
|
|
@@ -6392,10 +6394,10 @@ const To = jl({
|
|
|
6392
6394
|
]), 1040, ["model-value"]);
|
|
6393
6395
|
};
|
|
6394
6396
|
}
|
|
6395
|
-
}),
|
|
6397
|
+
}), us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6396
6398
|
__proto__: null,
|
|
6397
|
-
default:
|
|
6398
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6399
|
+
default: cs
|
|
6400
|
+
}, Symbol.toStringTag, { value: "Module" })), ds = jl({
|
|
6399
6401
|
name: "MvcTableColumnFilter",
|
|
6400
6402
|
props: {
|
|
6401
6403
|
tableName: {
|
|
@@ -6412,21 +6414,21 @@ const To = jl({
|
|
|
6412
6414
|
}
|
|
6413
6415
|
},
|
|
6414
6416
|
setup: (l, a) => {
|
|
6415
|
-
var
|
|
6417
|
+
var b;
|
|
6416
6418
|
const t = q({
|
|
6417
6419
|
options: [],
|
|
6418
6420
|
slots: []
|
|
6419
6421
|
}), e = l.tableName + "_Column";
|
|
6420
6422
|
let o = [];
|
|
6421
6423
|
(() => {
|
|
6422
|
-
const
|
|
6424
|
+
const v = a.slots.default()[0].children, h = {
|
|
6423
6425
|
normal: [],
|
|
6424
6426
|
mmp: [],
|
|
6425
6427
|
asa: [],
|
|
6426
6428
|
fixed: [],
|
|
6427
6429
|
columns: []
|
|
6428
6430
|
}, m = l.tableName ? JSON.parse(localStorage.getItem(e)) : null, C = [void 0];
|
|
6429
|
-
|
|
6431
|
+
v.forEach((p) => {
|
|
6430
6432
|
window.$getType(p.type) === "Symbol" ? o = o.concat(p.children) : o.push(p);
|
|
6431
6433
|
}), o.forEach((p, y) => {
|
|
6432
6434
|
var k;
|
|
@@ -6442,17 +6444,17 @@ const To = jl({
|
|
|
6442
6444
|
const { data: r } = m.filter1((d) => d.prop === p.props.prop);
|
|
6443
6445
|
r && (w.sort = r.sort, w.fixed = r.fixed, w.visible = r.visible);
|
|
6444
6446
|
}
|
|
6445
|
-
p.props.fixed &&
|
|
6447
|
+
p.props.fixed && h.fixed.push(w), p.props.type === "mmp" ? h.mmp.push(w) : p.props.type === "asa" ? h.asa.push(w) : h.normal.push(w), p.props = w;
|
|
6446
6448
|
}
|
|
6447
|
-
}), t.columnInfo =
|
|
6448
|
-
let A = [...
|
|
6449
|
+
}), t.columnInfo = h;
|
|
6450
|
+
let A = [...h.normal, ...h.mmp, ...h.asa];
|
|
6449
6451
|
l.tableName && (A = A.sort((p, y) => p.sort - y.sort), localStorage.setItem(e, JSON.stringify(A)));
|
|
6450
6452
|
})();
|
|
6451
6453
|
let f = [];
|
|
6452
|
-
if (o.forEach((
|
|
6453
|
-
window.$getType(
|
|
6454
|
-
}), (
|
|
6455
|
-
const
|
|
6454
|
+
if (o.forEach((v) => {
|
|
6455
|
+
window.$getType(v) !== "String" && v.props.visible && f.push(v);
|
|
6456
|
+
}), (b = l.group) != null && b.label) {
|
|
6457
|
+
const v = {
|
|
6456
6458
|
label: "Group By " + l.group.label,
|
|
6457
6459
|
// prop: props.group.value,
|
|
6458
6460
|
width: l.group.width,
|
|
@@ -6462,36 +6464,36 @@ const To = jl({
|
|
|
6462
6464
|
};
|
|
6463
6465
|
f[0].props.type === "selection" ? f.splice(1, 0, {
|
|
6464
6466
|
...f[1],
|
|
6465
|
-
props:
|
|
6467
|
+
props: v
|
|
6466
6468
|
}) : f.unshift({
|
|
6467
6469
|
...f[0],
|
|
6468
|
-
props:
|
|
6470
|
+
props: v
|
|
6469
6471
|
});
|
|
6470
6472
|
}
|
|
6471
|
-
return f = f.sort((
|
|
6473
|
+
return f = f.sort((v, h) => v.props.sort - h.props.sort), () => f;
|
|
6472
6474
|
}
|
|
6473
|
-
}),
|
|
6475
|
+
}), ps = { class: "hp100 flexMode" }, fs = { class: "w200 hp100 border-r fs14" }, ms = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, hs = { class: "p4" }, bs = ["onClick"], vs = {
|
|
6474
6476
|
class: "flexMode vs hp100",
|
|
6475
6477
|
style: { width: "calc(100% - 200px)" }
|
|
6476
|
-
},
|
|
6478
|
+
}, gs = { class: "wp50 border-r fs14" }, _s = { class: "flexMode vc g8 h36 p8 bg-gray3 border-b txt-nowrap" }, ys = { class: "tagArea blue small" }, ws = { class: "p4" }, Cs = {
|
|
6477
6479
|
key: 0,
|
|
6478
6480
|
class: "absCenter fs12 txt-dark5 txt-nowrap"
|
|
6479
|
-
},
|
|
6481
|
+
}, Ss = { class: "flexMode vc g8" }, Ts = ["txt", "onClick"], As = { class: "wp50 border-r fs14" }, xs = { class: "flexMode vc g8 h36 p8 bg-gray3 border-b txt-nowrap" }, ks = { class: "tagArea blue small" }, $s = {
|
|
6480
6482
|
class: "relative p4",
|
|
6481
6483
|
style: { height: "calc(100% - 36px)" }
|
|
6482
|
-
},
|
|
6484
|
+
}, Ms = {
|
|
6483
6485
|
class: "relative",
|
|
6484
6486
|
style: { height: "30%" }
|
|
6485
|
-
},
|
|
6487
|
+
}, Os = {
|
|
6486
6488
|
key: 0,
|
|
6487
6489
|
class: "absCenter fs12 txt-dark5 txt-nowrap"
|
|
6488
|
-
},
|
|
6490
|
+
}, Es = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4" }, zs = { class: "flexMode vc g8 txt-nowrap" }, js = { class: "flexMode vc g8" }, Ls = ["txt", "onClick"], Ns = {
|
|
6489
6491
|
class: "relative",
|
|
6490
6492
|
style: { height: "calc(70% - 10px)" }
|
|
6491
|
-
},
|
|
6493
|
+
}, Is = {
|
|
6492
6494
|
key: 0,
|
|
6493
6495
|
class: "absCenter fs12 txt-dark5 txt-nowrap"
|
|
6494
|
-
},
|
|
6496
|
+
}, Rs = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4" }, Vs = { class: "flexMode vc g8 txt-nowrap" }, Ds = { class: "flexMode vc" }, Ps = ["txt", "onClick"], Bs = ["txt", "onClick"], Fs = /* @__PURE__ */ Object.assign({
|
|
6495
6497
|
name: "MvcTableColumnConfig",
|
|
6496
6498
|
inheritAttrs: !1
|
|
6497
6499
|
}, {
|
|
@@ -6530,23 +6532,23 @@ const To = jl({
|
|
|
6530
6532
|
}), e.columnType = d;
|
|
6531
6533
|
}, f = (r) => {
|
|
6532
6534
|
e.type = r;
|
|
6533
|
-
},
|
|
6535
|
+
}, b = (r, d) => {
|
|
6534
6536
|
r.visible = !0, e.visible.unshift(r), r.type ? e.columns[r.type].splice(d, 1) : e.columns.normal.splice(d, 1);
|
|
6535
|
-
},
|
|
6537
|
+
}, v = (r, d) => {
|
|
6536
6538
|
e.fixed.unshift(r), e.visible.splice(d, 1);
|
|
6537
|
-
},
|
|
6539
|
+
}, h = (r, d) => {
|
|
6538
6540
|
e.visible.unshift(r), e.fixed.splice(d, 1);
|
|
6539
6541
|
}, m = (r, d) => {
|
|
6540
6542
|
e.visible.splice(d, 1), r.type ? e.columns[r.type].unshift(r) : e.columns.normal.unshift(r);
|
|
6541
6543
|
}, C = async () => {
|
|
6542
6544
|
e.loading = !0, window.$pm(() => {
|
|
6543
|
-
const { fixed: r, visible: d, columns: c, selection: $, operation:
|
|
6545
|
+
const { fixed: r, visible: d, columns: c, selection: $, operation: _ } = e;
|
|
6544
6546
|
let u = [];
|
|
6545
|
-
Object.keys(c).map((
|
|
6546
|
-
u = u.concat(c[
|
|
6547
|
-
}), r.forEach((
|
|
6548
|
-
const S = $.concat(r, d, u,
|
|
6549
|
-
S.forEach((
|
|
6547
|
+
Object.keys(c).map((g) => {
|
|
6548
|
+
u = u.concat(c[g]);
|
|
6549
|
+
}), r.forEach((g) => g.fixed = "left"), u.forEach((g) => g.visible = !1);
|
|
6550
|
+
const S = $.concat(r, d, u, _);
|
|
6551
|
+
S.forEach((g, x) => g.sort = x), localStorage.setItem(`${t.tableName}_Column`, JSON.stringify(S)), e.loading = !1, o("close"), o("init-column");
|
|
6550
6552
|
});
|
|
6551
6553
|
}, A = () => {
|
|
6552
6554
|
e.loading = !0, localStorage.removeItem(`${t.tableName}_Column`), window.$pm(() => {
|
|
@@ -6583,40 +6585,40 @@ const To = jl({
|
|
|
6583
6585
|
onSubmit: C
|
|
6584
6586
|
}, {
|
|
6585
6587
|
default: O(() => [
|
|
6586
|
-
i("div",
|
|
6587
|
-
i("div",
|
|
6588
|
-
i("div",
|
|
6589
|
-
i("div",
|
|
6590
|
-
(T(!0), E(te, null, ie(s(w), (
|
|
6591
|
-
key:
|
|
6592
|
-
class:
|
|
6593
|
-
onClick: (u) => f(
|
|
6594
|
-
}, z(
|
|
6588
|
+
i("div", ps, [
|
|
6589
|
+
i("div", fs, [
|
|
6590
|
+
i("div", ms, z(r.$l("Column Type")), 1),
|
|
6591
|
+
i("div", hs, [
|
|
6592
|
+
(T(!0), E(te, null, ie(s(w), (_) => (T(), E("div", {
|
|
6593
|
+
key: _.value,
|
|
6594
|
+
class: K(["typeItem p8-16 mb4 radius4 txt-nowrap", [s(e).type === _.value && "active", _.hide && "hide"]]),
|
|
6595
|
+
onClick: (u) => f(_.value)
|
|
6596
|
+
}, z(_.label), 11, bs))), 128))
|
|
6595
6597
|
])
|
|
6596
6598
|
]),
|
|
6597
|
-
i("div",
|
|
6598
|
-
i("div",
|
|
6599
|
-
i("div",
|
|
6599
|
+
i("div", vs, [
|
|
6600
|
+
i("div", gs, [
|
|
6601
|
+
i("div", _s, [
|
|
6600
6602
|
i("span", null, z(r.$l("Columns")), 1),
|
|
6601
|
-
i("span",
|
|
6603
|
+
i("span", ys, z(s(e).columns[s(e).type].length), 1)
|
|
6602
6604
|
]),
|
|
6603
6605
|
R(c, { style: { height: "calc(100% - 36px)" } }, {
|
|
6604
6606
|
default: O(() => [
|
|
6605
|
-
i("div",
|
|
6606
|
-
s(e).columns[s(e).type].length === 0 ? (T(), E("span",
|
|
6607
|
-
(T(!0), E(te, null, ie(s(e).columns[s(e).type], (
|
|
6608
|
-
key:
|
|
6607
|
+
i("div", ws, [
|
|
6608
|
+
s(e).columns[s(e).type].length === 0 ? (T(), E("span", Cs, z(r.$l("No Columns")), 1)) : G("", !0),
|
|
6609
|
+
(T(!0), E(te, null, ie(s(e).columns[s(e).type], (_, u) => (T(), E("div", {
|
|
6610
|
+
key: _.prop,
|
|
6609
6611
|
class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
|
|
6610
6612
|
}, [
|
|
6611
|
-
i("span", null, z(r.$l(
|
|
6612
|
-
i("div",
|
|
6613
|
+
i("span", null, z(r.$l(_.label)), 1),
|
|
6614
|
+
i("div", Ss, [
|
|
6613
6615
|
i("div", {
|
|
6614
6616
|
class: "tipbtn left",
|
|
6615
6617
|
txt: r.$l("Visible"),
|
|
6616
|
-
onClick: (S) =>
|
|
6618
|
+
onClick: (S) => b(_, u)
|
|
6617
6619
|
}, [...d[0] || (d[0] = [
|
|
6618
6620
|
i("i", { class: "imicon im-plus fs16" }, null, -1)
|
|
6619
|
-
])], 8,
|
|
6621
|
+
])], 8, Ts)
|
|
6620
6622
|
])
|
|
6621
6623
|
]))), 128))
|
|
6622
6624
|
])
|
|
@@ -6624,36 +6626,36 @@ const To = jl({
|
|
|
6624
6626
|
_: 1
|
|
6625
6627
|
})
|
|
6626
6628
|
]),
|
|
6627
|
-
i("div",
|
|
6628
|
-
i("div",
|
|
6629
|
+
i("div", As, [
|
|
6630
|
+
i("div", xs, [
|
|
6629
6631
|
i("span", null, z(r.$l("Visible Columns")), 1),
|
|
6630
|
-
i("span",
|
|
6632
|
+
i("span", ks, z(s(e).visible.length), 1)
|
|
6631
6633
|
]),
|
|
6632
|
-
i("div",
|
|
6633
|
-
i("div",
|
|
6634
|
-
s(e).fixed.length === 0 ? (T(), E("span",
|
|
6634
|
+
i("div", $s, [
|
|
6635
|
+
i("div", Ms, [
|
|
6636
|
+
s(e).fixed.length === 0 ? (T(), E("span", Os, z(r.$l("No Fixed Columns")), 1)) : G("", !0),
|
|
6635
6637
|
R(c, { height: s(y) }, {
|
|
6636
6638
|
default: O(() => [
|
|
6637
6639
|
R(s(Re), {
|
|
6638
6640
|
list: s(e).fixed,
|
|
6639
|
-
"item-key": (
|
|
6641
|
+
"item-key": (_) => _,
|
|
6640
6642
|
handle: ".im-handle",
|
|
6641
6643
|
"ghost-class": "ghost"
|
|
6642
6644
|
}, {
|
|
6643
|
-
item: O(({ element:
|
|
6644
|
-
i("div",
|
|
6645
|
-
i("div",
|
|
6645
|
+
item: O(({ element: _, index: u }) => [
|
|
6646
|
+
i("div", Es, [
|
|
6647
|
+
i("div", zs, [
|
|
6646
6648
|
d[1] || (d[1] = i("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
6647
|
-
i("span", null, z(r.$l(
|
|
6649
|
+
i("span", null, z(r.$l(_.label)), 1)
|
|
6648
6650
|
]),
|
|
6649
|
-
i("div",
|
|
6651
|
+
i("div", js, [
|
|
6650
6652
|
i("div", {
|
|
6651
6653
|
class: "tipbtn red left",
|
|
6652
6654
|
txt: r.$l("Unfixed"),
|
|
6653
|
-
onClick: (S) =>
|
|
6655
|
+
onClick: (S) => h(_, u)
|
|
6654
6656
|
}, [...d[2] || (d[2] = [
|
|
6655
6657
|
i("i", { class: "imicon im-download1 fs14" }, null, -1)
|
|
6656
|
-
])], 8,
|
|
6658
|
+
])], 8, Ls)
|
|
6657
6659
|
])
|
|
6658
6660
|
])
|
|
6659
6661
|
]),
|
|
@@ -6666,38 +6668,38 @@ const To = jl({
|
|
|
6666
6668
|
d[6] || (d[6] = i("div", { class: "p4-0" }, [
|
|
6667
6669
|
i("div", { class: "border-t" })
|
|
6668
6670
|
], -1)),
|
|
6669
|
-
i("div",
|
|
6670
|
-
s(e).visible.length === 0 ? (T(), E("span",
|
|
6671
|
+
i("div", Ns, [
|
|
6672
|
+
s(e).visible.length === 0 ? (T(), E("span", Is, z(r.$l("No Columns")), 1)) : G("", !0),
|
|
6671
6673
|
R(c, { height: s(k) }, {
|
|
6672
6674
|
default: O(() => [
|
|
6673
6675
|
R(s(Re), {
|
|
6674
6676
|
list: s(e).visible,
|
|
6675
|
-
"item-key": (
|
|
6677
|
+
"item-key": (_) => _,
|
|
6676
6678
|
options: { lockAxis: "y" },
|
|
6677
6679
|
handle: ".im-handle",
|
|
6678
6680
|
"ghost-class": "ghost"
|
|
6679
6681
|
}, {
|
|
6680
|
-
item: O(({ element:
|
|
6681
|
-
i("div",
|
|
6682
|
-
i("div",
|
|
6682
|
+
item: O(({ element: _, index: u }) => [
|
|
6683
|
+
i("div", Rs, [
|
|
6684
|
+
i("div", Vs, [
|
|
6683
6685
|
d[3] || (d[3] = i("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
6684
|
-
i("span", null, z(r.$l(
|
|
6686
|
+
i("span", null, z(r.$l(_.label)), 1)
|
|
6685
6687
|
]),
|
|
6686
|
-
i("div",
|
|
6688
|
+
i("div", Ds, [
|
|
6687
6689
|
i("div", {
|
|
6688
6690
|
class: "tipbtn left",
|
|
6689
6691
|
txt: r.$l("Fixed"),
|
|
6690
|
-
onClick: (S) => _
|
|
6692
|
+
onClick: (S) => v(_, u)
|
|
6691
6693
|
}, [...d[4] || (d[4] = [
|
|
6692
6694
|
i("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
|
|
6693
|
-
])], 8,
|
|
6695
|
+
])], 8, Ps),
|
|
6694
6696
|
i("div", {
|
|
6695
6697
|
class: "tipbtn red left",
|
|
6696
6698
|
txt: r.$l("Hide"),
|
|
6697
|
-
onClick: (S) => m(
|
|
6699
|
+
onClick: (S) => m(_, u)
|
|
6698
6700
|
}, [...d[5] || (d[5] = [
|
|
6699
6701
|
i("i", { class: "imicon im-close fs14" }, null, -1)
|
|
6700
|
-
])], 8,
|
|
6702
|
+
])], 8, Bs)
|
|
6701
6703
|
])
|
|
6702
6704
|
])
|
|
6703
6705
|
]),
|
|
@@ -6716,10 +6718,10 @@ const To = jl({
|
|
|
6716
6718
|
}, 8, ["loading"]);
|
|
6717
6719
|
};
|
|
6718
6720
|
}
|
|
6719
|
-
}),
|
|
6721
|
+
}), Hs = /* @__PURE__ */ ue(Fs, [["__scopeId", "data-v-1927ce52"]]), Us = { class: "p16 border-b" }, Ks = { class: "flexMode vc g8" }, Gs = {
|
|
6720
6722
|
key: 0,
|
|
6721
6723
|
class: "flexMode vc g8"
|
|
6722
|
-
},
|
|
6724
|
+
}, Js = { class: "flexMode g16 hr vc" }, Ws = { class: "TheEnd p16" }, Ys = { class: "sticky flexMode vc hb p4-8 mt16 mb8 fs14 txt-dark9 z9 backdrop border-l4-primary bg-gray3 radius4" }, Zs = { class: "fw700" }, qs = { class: "flexMode vc g8" }, Xs = /* @__PURE__ */ Object.assign({
|
|
6723
6725
|
name: "MvcTableColumnDownload",
|
|
6724
6726
|
inheritAttrs: !1
|
|
6725
6727
|
}, {
|
|
@@ -6752,19 +6754,19 @@ const To = jl({
|
|
|
6752
6754
|
n();
|
|
6753
6755
|
});
|
|
6754
6756
|
const o = a, n = () => {
|
|
6755
|
-
o("mounted"), f(),
|
|
6757
|
+
o("mounted"), f(), b();
|
|
6756
6758
|
}, f = () => {
|
|
6757
6759
|
const w = JSON.parse(localStorage.getItem(`${t.tableName}_Column`)), r = ["selection", "operation"];
|
|
6758
6760
|
e.columns = w.filter((d) => !r.includes(d.type) && d.label);
|
|
6759
|
-
},
|
|
6761
|
+
}, b = () => {
|
|
6760
6762
|
t.selection.length && (e.onlySelection = !0);
|
|
6761
|
-
},
|
|
6763
|
+
}, v = (w, r) => {
|
|
6762
6764
|
w ? r.children.forEach((d) => {
|
|
6763
6765
|
d.visible = !0;
|
|
6764
6766
|
}) : r.children.forEach((d) => {
|
|
6765
6767
|
d.visible = !1;
|
|
6766
6768
|
});
|
|
6767
|
-
},
|
|
6769
|
+
}, h = () => {
|
|
6768
6770
|
window.$copy(C());
|
|
6769
6771
|
}, m = async () => {
|
|
6770
6772
|
e.loading = !0;
|
|
@@ -6780,24 +6782,24 @@ const To = jl({
|
|
|
6780
6782
|
e.columns.filter((x) => x.visible).forEach((x) => {
|
|
6781
6783
|
c.push(window.$l(x.label)), d[x.prop] = !0;
|
|
6782
6784
|
});
|
|
6783
|
-
let $ = "",
|
|
6785
|
+
let $ = "", _ = [], u = w === "download" ? "," : " ";
|
|
6784
6786
|
(e.useHead || w) && ($ = c.join(u) + `
|
|
6785
6787
|
`);
|
|
6786
|
-
let S = [],
|
|
6788
|
+
let S = [], g;
|
|
6787
6789
|
return Object.keys(d).forEach((x, L) => {
|
|
6788
|
-
x.includes("country") && (
|
|
6790
|
+
x.includes("country") && (g = L);
|
|
6789
6791
|
const P = [];
|
|
6790
6792
|
r.forEach((V) => {
|
|
6791
6793
|
V[x] !== void 0 && P.push(V[x]);
|
|
6792
6794
|
}), S.push(P);
|
|
6793
6795
|
}), S.forEach((x, L) => {
|
|
6794
|
-
!e.useCountryCode &&
|
|
6796
|
+
!e.useCountryCode && g === L ? x.forEach((P, V) => {
|
|
6795
6797
|
let B = P;
|
|
6796
|
-
window.$getType(P) === "Array" ? B = P.map((Q) => k[Q.toUpperCase()].label.$l()).join(",") : window.$getType(P) === "String" ? B = P.split(",").map((Q) => k[Q.toUpperCase()].label.$l()).join(",") : B = JSON.stringify(P),
|
|
6798
|
+
window.$getType(P) === "Array" ? B = P.map((Q) => k[Q.toUpperCase()].label.$l()).join(",") : window.$getType(P) === "String" ? B = P.split(",").map((Q) => k[Q.toUpperCase()].label.$l()).join(",") : B = JSON.stringify(P), _[V] ? _[V] += B + u : _[V] = B + u;
|
|
6797
6799
|
}) : x.forEach((P, V) => {
|
|
6798
|
-
|
|
6800
|
+
_[V] ? _[V] += P + u : _[V] = P + u;
|
|
6799
6801
|
});
|
|
6800
|
-
}), `${$}${
|
|
6802
|
+
}), `${$}${_.join(`
|
|
6801
6803
|
`)}`;
|
|
6802
6804
|
}, A = j(() => {
|
|
6803
6805
|
const w = window.$d().format("YYYYMMDDHHmmss");
|
|
@@ -6823,12 +6825,12 @@ const To = jl({
|
|
|
6823
6825
|
"Check All".$l(), "Cancel All".$l();
|
|
6824
6826
|
const k = Fe("asa.countryAll.obj");
|
|
6825
6827
|
return (w, r) => {
|
|
6826
|
-
const d = I("el-checkbox"), c = I("el-button"), $ = I("MvcAlert"),
|
|
6828
|
+
const d = I("el-checkbox"), c = I("el-button"), $ = I("MvcAlert"), _ = I("el-switch"), u = I("Input"), S = I("DrawerArea");
|
|
6827
6829
|
return T(), J(S, fe(w.$attrs, { class: "MvcTableColumnDownload" }), {
|
|
6828
6830
|
cancel: O(() => [
|
|
6829
6831
|
R(u, {
|
|
6830
6832
|
modelValue: s(e).fileName,
|
|
6831
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
6833
|
+
"onUpdate:modelValue": r[3] || (r[3] = (g) => s(e).fileName = g),
|
|
6832
6834
|
icon: "catalog",
|
|
6833
6835
|
placeholder: s(A),
|
|
6834
6836
|
class: "w600"
|
|
@@ -6852,24 +6854,24 @@ const To = jl({
|
|
|
6852
6854
|
]),
|
|
6853
6855
|
submit: O(() => [...r[6] || (r[6] = [])]),
|
|
6854
6856
|
default: O(() => [
|
|
6855
|
-
i("div",
|
|
6857
|
+
i("div", Us, [
|
|
6856
6858
|
R($, null, {
|
|
6857
6859
|
default: O(() => [
|
|
6858
|
-
i("div",
|
|
6860
|
+
i("div", Ks, [
|
|
6859
6861
|
i("span", null, z(w.$l("Total")), 1),
|
|
6860
6862
|
i("span", null, z(t.list.length), 1)
|
|
6861
6863
|
]),
|
|
6862
|
-
t.selection.length ? (T(), E("div",
|
|
6864
|
+
t.selection.length ? (T(), E("div", Gs, [
|
|
6863
6865
|
i("span", null, z(w.$l("Selection")), 1),
|
|
6864
6866
|
i("span", null, z(t.selection.length), 1),
|
|
6865
6867
|
R(d, {
|
|
6866
6868
|
modelValue: s(e).onlySelection,
|
|
6867
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
6869
|
+
"onUpdate:modelValue": r[0] || (r[0] = (g) => s(e).onlySelection = g),
|
|
6868
6870
|
label: w.$l("Only Selection")
|
|
6869
6871
|
}, null, 8, ["modelValue", "label"])
|
|
6870
|
-
])) :
|
|
6871
|
-
i("div",
|
|
6872
|
-
R(c, { onClick:
|
|
6872
|
+
])) : G("", !0),
|
|
6873
|
+
i("div", Js, [
|
|
6874
|
+
R(c, { onClick: h }, {
|
|
6873
6875
|
icon: O(() => [...r[4] || (r[4] = [
|
|
6874
6876
|
i("i", { class: "imicon im-copy" }, null, -1)
|
|
6875
6877
|
])]),
|
|
@@ -6880,7 +6882,7 @@ const To = jl({
|
|
|
6880
6882
|
}),
|
|
6881
6883
|
R(d, {
|
|
6882
6884
|
modelValue: s(e).useHead,
|
|
6883
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
6885
|
+
"onUpdate:modelValue": r[1] || (r[1] = (g) => s(e).useHead = g),
|
|
6884
6886
|
label: w.$l("With Table Head")
|
|
6885
6887
|
}, null, 8, ["modelValue", "label"])
|
|
6886
6888
|
])
|
|
@@ -6888,21 +6890,21 @@ const To = jl({
|
|
|
6888
6890
|
_: 1
|
|
6889
6891
|
})
|
|
6890
6892
|
]),
|
|
6891
|
-
i("div",
|
|
6892
|
-
(T(!0), E(te, null, ie(s(p), (
|
|
6893
|
-
key:
|
|
6893
|
+
i("div", Ws, [
|
|
6894
|
+
(T(!0), E(te, null, ie(s(p), (g) => (T(), E("div", {
|
|
6895
|
+
key: g.type
|
|
6894
6896
|
}, [
|
|
6895
|
-
i("div",
|
|
6896
|
-
i("span",
|
|
6897
|
+
i("div", Ys, [
|
|
6898
|
+
i("span", Zs, z(g.label), 1),
|
|
6897
6899
|
R(d, {
|
|
6898
|
-
modelValue:
|
|
6899
|
-
"onUpdate:modelValue": (x) =>
|
|
6900
|
-
indeterminate:
|
|
6900
|
+
modelValue: g.checkstatus,
|
|
6901
|
+
"onUpdate:modelValue": (x) => g.checkstatus = x,
|
|
6902
|
+
indeterminate: g.indeterminate,
|
|
6901
6903
|
label: w.$l("Check"),
|
|
6902
|
-
onChange: (x) =>
|
|
6904
|
+
onChange: (x) => v(x, g)
|
|
6903
6905
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
|
|
6904
6906
|
]),
|
|
6905
|
-
(T(!0), E(te, null, ie(
|
|
6907
|
+
(T(!0), E(te, null, ie(g.children, (x, L) => (T(), J(d, {
|
|
6906
6908
|
modelValue: x.visible,
|
|
6907
6909
|
"onUpdate:modelValue": (P) => x.visible = P,
|
|
6908
6910
|
key: L,
|
|
@@ -6913,9 +6915,9 @@ const To = jl({
|
|
|
6913
6915
|
default: O(() => {
|
|
6914
6916
|
var P;
|
|
6915
6917
|
return [
|
|
6916
|
-
i("div",
|
|
6918
|
+
i("div", qs, [
|
|
6917
6919
|
i("span", null, z(x.label), 1),
|
|
6918
|
-
(P = x.prop) != null && P.includes("country") ? (T(), J(
|
|
6920
|
+
(P = x.prop) != null && P.includes("country") ? (T(), J(_, {
|
|
6919
6921
|
key: 0,
|
|
6920
6922
|
modelValue: s(e).useCountryCode,
|
|
6921
6923
|
"onUpdate:modelValue": r[2] || (r[2] = (V) => s(e).useCountryCode = V),
|
|
@@ -6923,7 +6925,7 @@ const To = jl({
|
|
|
6923
6925
|
"active-text": "Use Alpha-2 Code",
|
|
6924
6926
|
"inactive-text": "Use Country Name",
|
|
6925
6927
|
class: "primarySwitch"
|
|
6926
|
-
}, null, 8, ["modelValue"])) :
|
|
6928
|
+
}, null, 8, ["modelValue"])) : G("", !0)
|
|
6927
6929
|
])
|
|
6928
6930
|
];
|
|
6929
6931
|
}),
|
|
@@ -6936,13 +6938,13 @@ const To = jl({
|
|
|
6936
6938
|
}, 16);
|
|
6937
6939
|
};
|
|
6938
6940
|
}
|
|
6939
|
-
}),
|
|
6941
|
+
}), Qs = { class: "MvcTable" }, er = {
|
|
6940
6942
|
key: 0,
|
|
6941
6943
|
class: "flexMode vc"
|
|
6942
|
-
},
|
|
6944
|
+
}, lr = { class: "tableArea relative radius ctx-auto" }, ar = {
|
|
6943
6945
|
key: 1,
|
|
6944
6946
|
class: "flexMode vc h56 p16 xscroll nobar fadeout"
|
|
6945
|
-
},
|
|
6947
|
+
}, tr = /* @__PURE__ */ Object.assign({
|
|
6946
6948
|
name: "MvcTable",
|
|
6947
6949
|
inheritAttrs: !1
|
|
6948
6950
|
}, {
|
|
@@ -7047,23 +7049,23 @@ const To = jl({
|
|
|
7047
7049
|
{
|
|
7048
7050
|
title: "Table Column Customization",
|
|
7049
7051
|
size: 1024,
|
|
7050
|
-
cpt: ze(
|
|
7052
|
+
cpt: ze(Hs)
|
|
7051
7053
|
},
|
|
7052
7054
|
{
|
|
7053
7055
|
title: "Download from Current Table",
|
|
7054
|
-
cpt: ze(
|
|
7056
|
+
cpt: ze(Xs)
|
|
7055
7057
|
}
|
|
7056
7058
|
]
|
|
7057
|
-
}),
|
|
7059
|
+
}), b = ne(null), { proxy: v } = ke();
|
|
7058
7060
|
Ll(() => {
|
|
7059
7061
|
m();
|
|
7060
7062
|
}), me(() => {
|
|
7061
7063
|
C();
|
|
7062
7064
|
});
|
|
7063
|
-
const
|
|
7065
|
+
const h = t, m = () => {
|
|
7064
7066
|
o.loading = e.defaultLoading, e.pageSize && (n.pageSize = e.pageSize);
|
|
7065
7067
|
}, C = () => {
|
|
7066
|
-
|
|
7068
|
+
g(), e.defer === !1 && p();
|
|
7067
7069
|
}, A = (H) => {
|
|
7068
7070
|
p(H);
|
|
7069
7071
|
}, p = async (H = {}) => {
|
|
@@ -7096,7 +7098,7 @@ const To = jl({
|
|
|
7096
7098
|
}
|
|
7097
7099
|
return [];
|
|
7098
7100
|
}, w = () => {
|
|
7099
|
-
|
|
7101
|
+
b.value.$refs.scrollBarRef.setScrollTop(0);
|
|
7100
7102
|
}, r = () => {
|
|
7101
7103
|
p({
|
|
7102
7104
|
pageStart: 1
|
|
@@ -7104,22 +7106,22 @@ const To = jl({
|
|
|
7104
7106
|
}, d = () => {
|
|
7105
7107
|
p();
|
|
7106
7108
|
}, c = (H) => {
|
|
7107
|
-
if (o.selection = H,
|
|
7109
|
+
if (o.selection = H, h("selection-change", H), o.shiftKey) {
|
|
7108
7110
|
const Y = H[H.length - 2], _e = H[H.length - 1], oe = n.list.filter1((pe) => pe.id === Y.id).index || 0, de = n.list.filter1((pe) => pe.id === _e.id).index;
|
|
7109
7111
|
let Ce = oe, ye = de;
|
|
7110
7112
|
oe > de && (Ce = de, ye = oe);
|
|
7111
7113
|
for (let pe = Ce; pe <= ye; pe++)
|
|
7112
|
-
|
|
7114
|
+
v.$refs.body.toggleRowSelection(n.list[pe], !0);
|
|
7113
7115
|
}
|
|
7114
7116
|
}, $ = () => {
|
|
7115
|
-
o.loading || (p({ refresh: !0 }),
|
|
7116
|
-
},
|
|
7117
|
+
o.loading || (p({ refresh: !0 }), h("refresh"));
|
|
7118
|
+
}, _ = () => {
|
|
7117
7119
|
f.current = 0;
|
|
7118
7120
|
}, u = () => {
|
|
7119
7121
|
f.current = 1;
|
|
7120
7122
|
}, S = () => {
|
|
7121
7123
|
o.tableKey++;
|
|
7122
|
-
},
|
|
7124
|
+
}, g = () => {
|
|
7123
7125
|
document.addEventListener("keydown", x), document.addEventListener("keyup", L);
|
|
7124
7126
|
}, x = (H) => {
|
|
7125
7127
|
H.keyCode === 16 && (o.shiftKey = !0);
|
|
@@ -7151,17 +7153,17 @@ const To = jl({
|
|
|
7151
7153
|
editRow: V
|
|
7152
7154
|
}), (H, Y) => {
|
|
7153
7155
|
const _e = I("el-button"), oe = I("Loading"), de = I("el-table"), Ce = I("el-pagination"), ye = I("Drawer");
|
|
7154
|
-
return T(), E("div",
|
|
7156
|
+
return T(), E("div", Qs, [
|
|
7155
7157
|
e.noheader === !1 ? (T(), E("div", {
|
|
7156
7158
|
key: 0,
|
|
7157
|
-
class:
|
|
7159
|
+
class: K(["flexMode hb g12 p16 bg-white", e.autoHeader ? "minh64" : "h64"])
|
|
7158
7160
|
}, [
|
|
7159
7161
|
i("div", {
|
|
7160
|
-
class:
|
|
7162
|
+
class: K(["flexMode vc flexGrow maxwp100", e.headerClass])
|
|
7161
7163
|
}, [
|
|
7162
7164
|
Z(H.$slots, "header", {}, void 0, !0)
|
|
7163
7165
|
], 2),
|
|
7164
|
-
s(be) ? (T(), E("div",
|
|
7166
|
+
s(be) ? (T(), E("div", er, [
|
|
7165
7167
|
s(be).refresh ? (T(), J(_e, {
|
|
7166
7168
|
key: 0,
|
|
7167
7169
|
onClick: $
|
|
@@ -7173,10 +7175,10 @@ const To = jl({
|
|
|
7173
7175
|
ce(" " + z(H.$l("Refresh")), 1)
|
|
7174
7176
|
]),
|
|
7175
7177
|
_: 1
|
|
7176
|
-
})) :
|
|
7178
|
+
})) : G("", !0),
|
|
7177
7179
|
s(be).column ? (T(), J(_e, {
|
|
7178
7180
|
key: 1,
|
|
7179
|
-
onClick:
|
|
7181
|
+
onClick: _
|
|
7180
7182
|
}, {
|
|
7181
7183
|
icon: O(() => [...Y[3] || (Y[3] = [
|
|
7182
7184
|
i("i", { class: "imicon im-layout" }, null, -1)
|
|
@@ -7185,7 +7187,7 @@ const To = jl({
|
|
|
7185
7187
|
ce(" " + z(H.$l("Columns")), 1)
|
|
7186
7188
|
]),
|
|
7187
7189
|
_: 1
|
|
7188
|
-
})) :
|
|
7190
|
+
})) : G("", !0),
|
|
7189
7191
|
s(be).download ? (T(), J(_e, {
|
|
7190
7192
|
key: 2,
|
|
7191
7193
|
onClick: u
|
|
@@ -7197,16 +7199,16 @@ const To = jl({
|
|
|
7197
7199
|
ce(" " + z(H.$l("Download")), 1)
|
|
7198
7200
|
]),
|
|
7199
7201
|
_: 1
|
|
7200
|
-
})) :
|
|
7201
|
-
])) :
|
|
7202
|
-
], 2)) :
|
|
7203
|
-
i("div",
|
|
7202
|
+
})) : G("", !0)
|
|
7203
|
+
])) : G("", !0)
|
|
7204
|
+
], 2)) : G("", !0),
|
|
7205
|
+
i("div", lr, [
|
|
7204
7206
|
R(oe, {
|
|
7205
7207
|
loading: s(o).loading
|
|
7206
7208
|
}, null, 8, ["loading"]),
|
|
7207
7209
|
(T(), J(de, {
|
|
7208
7210
|
ref_key: "body",
|
|
7209
|
-
ref:
|
|
7211
|
+
ref: b,
|
|
7210
7212
|
key: s(o).tableKey,
|
|
7211
7213
|
height: s(B),
|
|
7212
7214
|
data: s(n).list,
|
|
@@ -7220,7 +7222,7 @@ const To = jl({
|
|
|
7220
7222
|
onSelectionChange: c
|
|
7221
7223
|
}, {
|
|
7222
7224
|
default: O(() => [
|
|
7223
|
-
R(s(
|
|
7225
|
+
R(s(ds), fe({
|
|
7224
7226
|
"table-name": e.tableName,
|
|
7225
7227
|
column: s(be) ? s(be).column : !1
|
|
7226
7228
|
}, H.$attrs), {
|
|
@@ -7233,7 +7235,7 @@ const To = jl({
|
|
|
7233
7235
|
_: 3
|
|
7234
7236
|
}, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
|
|
7235
7237
|
]),
|
|
7236
|
-
e.nofooter === !1 ? (T(), E("div",
|
|
7238
|
+
e.nofooter === !1 ? (T(), E("div", ar, [
|
|
7237
7239
|
R(Ce, {
|
|
7238
7240
|
"current-page": s(n).page,
|
|
7239
7241
|
"onUpdate:currentPage": Y[0] || (Y[0] = (pe) => s(n).page = pe),
|
|
@@ -7247,7 +7249,7 @@ const To = jl({
|
|
|
7247
7249
|
onSizeChange: r,
|
|
7248
7250
|
onCurrentChange: d
|
|
7249
7251
|
}, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
|
|
7250
|
-
])) :
|
|
7252
|
+
])) : G("", !0),
|
|
7251
7253
|
R(ye, {
|
|
7252
7254
|
current: s(f).current,
|
|
7253
7255
|
"onUpdate:current": Y[1] || (Y[1] = (pe) => s(f).current = pe),
|
|
@@ -7260,10 +7262,10 @@ const To = jl({
|
|
|
7260
7262
|
]);
|
|
7261
7263
|
};
|
|
7262
7264
|
}
|
|
7263
|
-
}),
|
|
7265
|
+
}), or = /* @__PURE__ */ ue(tr, [["__scopeId", "data-v-f79bf58d"]]), nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7264
7266
|
__proto__: null,
|
|
7265
|
-
default:
|
|
7266
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7267
|
+
default: or
|
|
7268
|
+
}, Symbol.toStringTag, { value: "Module" })), sr = { class: "minh480 pt16" }, rr = /* @__PURE__ */ Object.assign({
|
|
7267
7269
|
name: "MvcTabs",
|
|
7268
7270
|
inheritAttrs: !1
|
|
7269
7271
|
}, {
|
|
@@ -7314,14 +7316,14 @@ const To = jl({
|
|
|
7314
7316
|
e("update:modelValue", m);
|
|
7315
7317
|
const C = t.options.find((A) => n(A) === m);
|
|
7316
7318
|
e("change", m, C);
|
|
7317
|
-
},
|
|
7319
|
+
}, b = j(
|
|
7318
7320
|
() => t.options.find((m) => n(m) === t.modelValue)
|
|
7319
|
-
),
|
|
7320
|
-
const m =
|
|
7321
|
+
), v = j(() => {
|
|
7322
|
+
const m = b.value;
|
|
7321
7323
|
if (!(!m || !["Object", "Array"].includes(globalThis.$getType(m))))
|
|
7322
7324
|
return m[t.componentKey];
|
|
7323
|
-
}),
|
|
7324
|
-
const m =
|
|
7325
|
+
}), h = j(() => {
|
|
7326
|
+
const m = b.value;
|
|
7325
7327
|
return !m || !["Object", "Array"].includes(globalThis.$getType(m)) ? {} : m[t.panePropsKey] ?? {};
|
|
7326
7328
|
});
|
|
7327
7329
|
return (m, C) => {
|
|
@@ -7337,16 +7339,16 @@ const To = jl({
|
|
|
7337
7339
|
disabled: t.disabled,
|
|
7338
7340
|
"onUpdate:modelValue": f
|
|
7339
7341
|
}, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
|
|
7340
|
-
i("div",
|
|
7341
|
-
s(
|
|
7342
|
+
i("div", sr, [
|
|
7343
|
+
s(v) ? (T(), J(zl(s(v)), Pe(fe({ key: 0 }, s(h))), null, 16)) : G("", !0)
|
|
7342
7344
|
])
|
|
7343
7345
|
], 16);
|
|
7344
7346
|
};
|
|
7345
7347
|
}
|
|
7346
|
-
}),
|
|
7348
|
+
}), ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7347
7349
|
__proto__: null,
|
|
7348
|
-
default:
|
|
7349
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7350
|
+
default: rr
|
|
7351
|
+
}, Symbol.toStringTag, { value: "Module" })), cr = /* @__PURE__ */ Object.assign({
|
|
7350
7352
|
name: "MvcTextarea",
|
|
7351
7353
|
inheritAttrs: !1
|
|
7352
7354
|
}, {
|
|
@@ -7388,15 +7390,15 @@ const To = jl({
|
|
|
7388
7390
|
const n = q({
|
|
7389
7391
|
val: "",
|
|
7390
7392
|
isComposing: !1
|
|
7391
|
-
}), f = a, { proxy:
|
|
7393
|
+
}), f = a, { proxy: b } = ke();
|
|
7392
7394
|
me(() => {
|
|
7393
7395
|
var d, c;
|
|
7394
7396
|
const r = (d = e.value) == null ? void 0 : d.$el;
|
|
7395
|
-
o = (c = r == null ? void 0 : r.querySelector) == null ? void 0 : c.call(r, "textarea"), o && (o.addEventListener("compositionstart",
|
|
7397
|
+
o = (c = r == null ? void 0 : r.querySelector) == null ? void 0 : c.call(r, "textarea"), o && (o.addEventListener("compositionstart", v), o.addEventListener("compositionend", h));
|
|
7396
7398
|
});
|
|
7397
|
-
const
|
|
7399
|
+
const v = () => {
|
|
7398
7400
|
n.isComposing = !0;
|
|
7399
|
-
},
|
|
7401
|
+
}, h = () => {
|
|
7400
7402
|
n.isComposing = !1, Te(() => p(n.val));
|
|
7401
7403
|
}, m = (r) => {
|
|
7402
7404
|
n.isComposing || p(r);
|
|
@@ -7409,10 +7411,10 @@ const To = jl({
|
|
|
7409
7411
|
const d = C(r);
|
|
7410
7412
|
f("update:modelValue", d), f("input", d);
|
|
7411
7413
|
}, y = j(() => {
|
|
7412
|
-
if (!t.height) return
|
|
7414
|
+
if (!t.height) return b.$attrs["input-style"];
|
|
7413
7415
|
const r = typeof t.height == "number" ? `${t.height}px` : t.height;
|
|
7414
|
-
return { ...
|
|
7415
|
-
}), k = j(() => !!(
|
|
7416
|
+
return { ...b.$attrs["input-style"] && typeof b.$attrs["input-style"] == "object" ? { ...b.$attrs["input-style"] } : {}, height: r, minHeight: r };
|
|
7417
|
+
}), k = j(() => !!(b.$attrs.maxlength || w.value)), w = j(() => b.$attrs.max);
|
|
7416
7418
|
return we(
|
|
7417
7419
|
() => t.modelValue,
|
|
7418
7420
|
(r) => {
|
|
@@ -7421,7 +7423,7 @@ const To = jl({
|
|
|
7421
7423
|
},
|
|
7422
7424
|
{ immediate: !0 }
|
|
7423
7425
|
), Ee(() => {
|
|
7424
|
-
o && (o.removeEventListener("compositionstart",
|
|
7426
|
+
o && (o.removeEventListener("compositionstart", v), o.removeEventListener("compositionend", h), o = null);
|
|
7425
7427
|
}), (r, d) => {
|
|
7426
7428
|
const c = I("el-input");
|
|
7427
7429
|
return T(), J(c, fe({
|
|
@@ -7439,31 +7441,31 @@ const To = jl({
|
|
|
7439
7441
|
}, r.$attrs, { onInput: m }), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength"]);
|
|
7440
7442
|
};
|
|
7441
7443
|
}
|
|
7442
|
-
}),
|
|
7444
|
+
}), ur = /* @__PURE__ */ ue(cr, [["__scopeId", "data-v-4dba94bf"]]), dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7443
7445
|
__proto__: null,
|
|
7444
|
-
default:
|
|
7445
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7446
|
+
default: ur
|
|
7447
|
+
}, Symbol.toStringTag, { value: "Module" })), pr = { class: "hp100 flexMode g16 p16" }, fr = { class: "w200 hp100 border radius8 fs14" }, mr = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, hr = { class: "p4" }, br = ["onClick"], vr = { class: "txt-nowrap" }, gr = {
|
|
7446
7448
|
class: "flexMode vs hp100 border radius8",
|
|
7447
7449
|
style: { width: "calc(100% - 12.5rem)" }
|
|
7448
|
-
},
|
|
7450
|
+
}, _r = { class: "wp50 border-r fs14" }, yr = { class: "flexMode vc g8 h36 p8 bg-gray3 border-b txt-nowrap" }, wr = { class: "tagArea blue small" }, Cr = { class: "p4" }, Sr = {
|
|
7449
7451
|
key: 0,
|
|
7450
7452
|
class: "absCenter tag rect"
|
|
7451
|
-
},
|
|
7453
|
+
}, Tr = { class: "flexMode vc g8" }, Ar = ["txt", "onClick"], xr = { class: "wp50 border-r fs14" }, kr = { class: "flexMode vc g8 h36 p8 bg-gray3 border-b txt-nowrap" }, $r = { class: "tagArea blue small" }, Mr = {
|
|
7452
7454
|
class: "relative",
|
|
7453
7455
|
style: { height: "calc(100% - 2.25rem)" }
|
|
7454
|
-
},
|
|
7456
|
+
}, Or = {
|
|
7455
7457
|
class: "relative p4 bg-body",
|
|
7456
7458
|
style: { height: "30%" }
|
|
7457
|
-
},
|
|
7459
|
+
}, Er = {
|
|
7458
7460
|
key: 0,
|
|
7459
7461
|
class: "absCenter tag rect"
|
|
7460
|
-
},
|
|
7462
|
+
}, zr = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 border bg-white" }, jr = { class: "flexMode vc g8 txt-nowrap" }, Lr = { class: "flexMode vc g8" }, Nr = ["txt", "onClick"], Ir = { class: "h16 flexMode hc vc g4" }, Rr = { class: "fs10" }, Vr = {
|
|
7461
7463
|
class: "relative p4",
|
|
7462
7464
|
style: { height: "calc(70% - 1rem)" }
|
|
7463
|
-
},
|
|
7465
|
+
}, Dr = {
|
|
7464
7466
|
key: 0,
|
|
7465
7467
|
class: "absCenter tag rect"
|
|
7466
|
-
},
|
|
7468
|
+
}, Pr = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 border" }, Br = { class: "flexMode vc g8 txt-nowrap" }, Fr = { class: "flexMode vc g4" }, Hr = ["txt", "onClick"], Ur = ["txt", "onClick"], Kr = /* @__PURE__ */ Object.assign({
|
|
7467
7469
|
name: "MvcVTableColumnConfig",
|
|
7468
7470
|
inheritAttrs: !1
|
|
7469
7471
|
}, {
|
|
@@ -7502,23 +7504,23 @@ const To = jl({
|
|
|
7502
7504
|
}), e.columnType = d;
|
|
7503
7505
|
}, f = (r) => {
|
|
7504
7506
|
e.type = r;
|
|
7505
|
-
},
|
|
7507
|
+
}, b = (r, d) => {
|
|
7506
7508
|
r.visible = !0, e.visible.unshift(r), r.type ? e.columns[r.type].splice(d, 1) : e.columns.normal.splice(d, 1);
|
|
7507
|
-
},
|
|
7509
|
+
}, v = (r, d) => {
|
|
7508
7510
|
e.fixed.unshift(r), e.visible.splice(d, 1);
|
|
7509
|
-
},
|
|
7511
|
+
}, h = (r, d) => {
|
|
7510
7512
|
e.visible.unshift(r), e.fixed.splice(d, 1);
|
|
7511
7513
|
}, m = (r, d) => {
|
|
7512
7514
|
e.visible.splice(d, 1), r.type ? e.columns[r.type].unshift(r) : e.columns.normal.unshift(r);
|
|
7513
7515
|
}, C = async () => {
|
|
7514
7516
|
e.loading = !0, window.$pm(() => {
|
|
7515
|
-
const { fixed: r, visible: d, columns: c, selection: $, operation:
|
|
7517
|
+
const { fixed: r, visible: d, columns: c, selection: $, operation: _ } = e;
|
|
7516
7518
|
let u = [];
|
|
7517
|
-
Object.keys(c).map((
|
|
7518
|
-
u = u.concat(c[
|
|
7519
|
-
}), r.forEach((
|
|
7520
|
-
const S = $.concat(r, d, u,
|
|
7521
|
-
S.forEach((
|
|
7519
|
+
Object.keys(c).map((g) => {
|
|
7520
|
+
u = u.concat(c[g]);
|
|
7521
|
+
}), r.forEach((g) => g.fixed = "left"), u.forEach((g) => g.visible = !1);
|
|
7522
|
+
const S = $.concat(r, d, u, _);
|
|
7523
|
+
S.forEach((g, x) => g.sort = x), localStorage.setItem(`${t.tableName}_Column`, JSON.stringify(S)), e.loading = !1, o("close"), o("init-column");
|
|
7522
7524
|
});
|
|
7523
7525
|
}, A = () => {
|
|
7524
7526
|
e.loading = !0, localStorage.removeItem(`${t.tableName}_Column`), window.$pm(() => {
|
|
@@ -7555,42 +7557,42 @@ const To = jl({
|
|
|
7555
7557
|
onSubmit: C
|
|
7556
7558
|
}, {
|
|
7557
7559
|
default: O(() => [
|
|
7558
|
-
i("div",
|
|
7559
|
-
i("div",
|
|
7560
|
-
i("div",
|
|
7561
|
-
i("div",
|
|
7562
|
-
(T(!0), E(te, null, ie(s(w), (
|
|
7563
|
-
key:
|
|
7564
|
-
class:
|
|
7565
|
-
onClick: (u) => f(
|
|
7560
|
+
i("div", pr, [
|
|
7561
|
+
i("div", fr, [
|
|
7562
|
+
i("div", mr, z(r.$l("Column Type")), 1),
|
|
7563
|
+
i("div", hr, [
|
|
7564
|
+
(T(!0), E(te, null, ie(s(w), (_) => (T(), E("div", {
|
|
7565
|
+
key: _.value,
|
|
7566
|
+
class: K(["typeItem p8-16 mb4 radius4", [s(e).type === _.value && "active", _.hide && "hide"]]),
|
|
7567
|
+
onClick: (u) => f(_.value)
|
|
7566
7568
|
}, [
|
|
7567
|
-
i("span",
|
|
7568
|
-
], 10,
|
|
7569
|
+
i("span", vr, z(_.label), 1)
|
|
7570
|
+
], 10, br))), 128))
|
|
7569
7571
|
])
|
|
7570
7572
|
]),
|
|
7571
|
-
i("div",
|
|
7572
|
-
i("div",
|
|
7573
|
-
i("div",
|
|
7573
|
+
i("div", gr, [
|
|
7574
|
+
i("div", _r, [
|
|
7575
|
+
i("div", yr, [
|
|
7574
7576
|
i("span", null, z(r.$l("Columns")), 1),
|
|
7575
|
-
i("span",
|
|
7577
|
+
i("span", wr, z(s(e).columns[s(e).type].length), 1)
|
|
7576
7578
|
]),
|
|
7577
7579
|
R(c, { style: { height: "calc(100% - 2.25rem)" } }, {
|
|
7578
7580
|
default: O(() => [
|
|
7579
|
-
i("div",
|
|
7580
|
-
s(e).columns[s(e).type].length === 0 ? (T(), E("span",
|
|
7581
|
-
(T(!0), E(te, null, ie(s(e).columns[s(e).type], (
|
|
7582
|
-
key:
|
|
7581
|
+
i("div", Cr, [
|
|
7582
|
+
s(e).columns[s(e).type].length === 0 ? (T(), E("span", Sr, z(r.$l("No Columns")), 1)) : G("", !0),
|
|
7583
|
+
(T(!0), E(te, null, ie(s(e).columns[s(e).type], (_, u) => (T(), E("div", {
|
|
7584
|
+
key: _.prop,
|
|
7583
7585
|
class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 border radius4 txt-nowrap"
|
|
7584
7586
|
}, [
|
|
7585
|
-
i("span", null, z(r.$l(
|
|
7586
|
-
i("div",
|
|
7587
|
+
i("span", null, z(r.$l(_.label)), 1),
|
|
7588
|
+
i("div", Tr, [
|
|
7587
7589
|
i("div", {
|
|
7588
7590
|
class: "tipbtn left",
|
|
7589
7591
|
txt: r.$l("Visible"),
|
|
7590
|
-
onClick: (S) =>
|
|
7592
|
+
onClick: (S) => b(_, u)
|
|
7591
7593
|
}, [...d[0] || (d[0] = [
|
|
7592
7594
|
i("i", { class: "imicon im-plus-square fs20 txt-p hover" }, null, -1)
|
|
7593
|
-
])], 8,
|
|
7595
|
+
])], 8, Ar)
|
|
7594
7596
|
])
|
|
7595
7597
|
]))), 128))
|
|
7596
7598
|
])
|
|
@@ -7598,38 +7600,38 @@ const To = jl({
|
|
|
7598
7600
|
_: 1
|
|
7599
7601
|
})
|
|
7600
7602
|
]),
|
|
7601
|
-
i("div",
|
|
7602
|
-
i("div",
|
|
7603
|
+
i("div", xr, [
|
|
7604
|
+
i("div", kr, [
|
|
7603
7605
|
i("span", null, z(r.$l("Visible Columns")), 1),
|
|
7604
|
-
i("span",
|
|
7606
|
+
i("span", $r, z(s(e).visible.length), 1)
|
|
7605
7607
|
]),
|
|
7606
|
-
i("div",
|
|
7607
|
-
i("div",
|
|
7608
|
-
s(e).fixed.length === 0 ? (T(), E("span",
|
|
7608
|
+
i("div", Mr, [
|
|
7609
|
+
i("div", Or, [
|
|
7610
|
+
s(e).fixed.length === 0 ? (T(), E("span", Er, z(r.$l("No Fixed Columns")), 1)) : G("", !0),
|
|
7609
7611
|
R(c, { height: s(y) }, {
|
|
7610
7612
|
default: O(() => [
|
|
7611
7613
|
R(s(Re), {
|
|
7612
7614
|
list: s(e).fixed,
|
|
7613
|
-
"item-key": (
|
|
7615
|
+
"item-key": (_) => _,
|
|
7614
7616
|
handle: ".im-handle",
|
|
7615
7617
|
"ghost-class": "ghost"
|
|
7616
7618
|
}, {
|
|
7617
|
-
item: O(({ element:
|
|
7618
|
-
i("div",
|
|
7619
|
-
i("div",
|
|
7619
|
+
item: O(({ element: _, index: u }) => [
|
|
7620
|
+
i("div", zr, [
|
|
7621
|
+
i("div", jr, [
|
|
7620
7622
|
d[1] || (d[1] = i("div", { class: "flexMode hc vc w24 h24 radius4 grab hover-bg-fa" }, [
|
|
7621
7623
|
i("i", { class: "imicon im-handle" })
|
|
7622
7624
|
], -1)),
|
|
7623
|
-
i("span", null, z(r.$l(
|
|
7625
|
+
i("span", null, z(r.$l(_.label)), 1)
|
|
7624
7626
|
]),
|
|
7625
|
-
i("div",
|
|
7627
|
+
i("div", Lr, [
|
|
7626
7628
|
i("div", {
|
|
7627
7629
|
class: "tipbtn red left",
|
|
7628
7630
|
txt: r.$l("Unfixed"),
|
|
7629
|
-
onClick: (S) =>
|
|
7631
|
+
onClick: (S) => h(_, u)
|
|
7630
7632
|
}, [...d[2] || (d[2] = [
|
|
7631
7633
|
i("i", { class: "imicon im-minus-square fs20 txt-p hover" }, null, -1)
|
|
7632
|
-
])], 8,
|
|
7634
|
+
])], 8, Nr)
|
|
7633
7635
|
])
|
|
7634
7636
|
])
|
|
7635
7637
|
]),
|
|
@@ -7639,45 +7641,45 @@ const To = jl({
|
|
|
7639
7641
|
_: 1
|
|
7640
7642
|
}, 8, ["height"])
|
|
7641
7643
|
]),
|
|
7642
|
-
i("div",
|
|
7644
|
+
i("div", Ir, [
|
|
7643
7645
|
d[3] || (d[3] = i("i", { class: "imicon im-doubleup fs12" }, null, -1)),
|
|
7644
|
-
i("span",
|
|
7646
|
+
i("span", Rr, z(r.$l("Fixed")), 1),
|
|
7645
7647
|
d[4] || (d[4] = i("i", { class: "imicon im-doubleup fs12" }, null, -1))
|
|
7646
7648
|
]),
|
|
7647
|
-
i("div",
|
|
7648
|
-
s(e).visible.length === 0 ? (T(), E("span",
|
|
7649
|
+
i("div", Vr, [
|
|
7650
|
+
s(e).visible.length === 0 ? (T(), E("span", Dr, z(r.$l("No Columns")), 1)) : G("", !0),
|
|
7649
7651
|
R(c, { height: s(k) }, {
|
|
7650
7652
|
default: O(() => [
|
|
7651
7653
|
R(s(Re), {
|
|
7652
7654
|
list: s(e).visible,
|
|
7653
|
-
"item-key": (
|
|
7655
|
+
"item-key": (_) => _,
|
|
7654
7656
|
options: { lockAxis: "y" },
|
|
7655
7657
|
handle: ".im-handle",
|
|
7656
7658
|
"ghost-class": "ghost"
|
|
7657
7659
|
}, {
|
|
7658
|
-
item: O(({ element:
|
|
7659
|
-
i("div",
|
|
7660
|
-
i("div",
|
|
7660
|
+
item: O(({ element: _, index: u }) => [
|
|
7661
|
+
i("div", Pr, [
|
|
7662
|
+
i("div", Br, [
|
|
7661
7663
|
d[5] || (d[5] = i("div", { class: "flexMode hc vc w24 h24 radius4 grab hover-bg-fa" }, [
|
|
7662
7664
|
i("i", { class: "imicon im-handle" })
|
|
7663
7665
|
], -1)),
|
|
7664
|
-
i("span", null, z(r.$l(
|
|
7666
|
+
i("span", null, z(r.$l(_.label)), 1)
|
|
7665
7667
|
]),
|
|
7666
|
-
i("div",
|
|
7668
|
+
i("div", Fr, [
|
|
7667
7669
|
i("div", {
|
|
7668
7670
|
class: "tipbtn left",
|
|
7669
7671
|
txt: r.$l("Fixed"),
|
|
7670
|
-
onClick: (S) => _
|
|
7672
|
+
onClick: (S) => v(_, u)
|
|
7671
7673
|
}, [...d[6] || (d[6] = [
|
|
7672
7674
|
i("i", { class: "imicon im-plus-square fs20 txt-p hover" }, null, -1)
|
|
7673
|
-
])], 8,
|
|
7675
|
+
])], 8, Hr),
|
|
7674
7676
|
i("div", {
|
|
7675
7677
|
class: "tipbtn red left",
|
|
7676
7678
|
txt: r.$l("Hide"),
|
|
7677
|
-
onClick: (S) => m(
|
|
7679
|
+
onClick: (S) => m(_, u)
|
|
7678
7680
|
}, [...d[7] || (d[7] = [
|
|
7679
7681
|
i("i", { class: "imicon im-close-square fs20 txt-p hover" }, null, -1)
|
|
7680
|
-
])], 8,
|
|
7682
|
+
])], 8, Ur)
|
|
7681
7683
|
])
|
|
7682
7684
|
])
|
|
7683
7685
|
]),
|
|
@@ -7696,7 +7698,7 @@ const To = jl({
|
|
|
7696
7698
|
}, 8, ["loading"]);
|
|
7697
7699
|
};
|
|
7698
7700
|
}
|
|
7699
|
-
}),
|
|
7701
|
+
}), Gr = /* @__PURE__ */ ue(Kr, [["__scopeId", "data-v-73161392"]]), Jr = { class: "p16" }, Wr = { class: "flexMode vc hb p16 border radius8 bg-white" }, Yr = { class: "flexMode vc g8" }, Zr = { class: "m0" }, qr = { class: "p16" }, Xr = { class: "sticky flexMode vc g16 pb16 z9 backdrop radius4" }, Qr = { class: "fw700" }, ei = { class: "flexMode vc g8" }, li = /* @__PURE__ */ Object.assign({
|
|
7700
7702
|
name: "MvcVTableColumnDownload",
|
|
7701
7703
|
inheritAttrs: !1
|
|
7702
7704
|
}, {
|
|
@@ -7729,21 +7731,21 @@ const To = jl({
|
|
|
7729
7731
|
n();
|
|
7730
7732
|
});
|
|
7731
7733
|
const o = a, n = () => {
|
|
7732
|
-
o("mounted"), f(),
|
|
7734
|
+
o("mounted"), f(), b();
|
|
7733
7735
|
}, f = () => {
|
|
7734
7736
|
const d = JSON.parse(localStorage.getItem(`${t.tableName}_Column`)), c = ["selection", "operation"];
|
|
7735
7737
|
e.columns = d.filter(
|
|
7736
7738
|
($) => !c.includes($.type) && $.label
|
|
7737
7739
|
);
|
|
7738
|
-
},
|
|
7740
|
+
}, b = () => {
|
|
7739
7741
|
t.selection.length && (e.onlySelection = !0);
|
|
7740
|
-
},
|
|
7742
|
+
}, v = (d, c) => {
|
|
7741
7743
|
d ? c.children.forEach(($) => {
|
|
7742
7744
|
$.visible = !0;
|
|
7743
7745
|
}) : c.children.forEach(($) => {
|
|
7744
7746
|
$.visible = !1;
|
|
7745
7747
|
});
|
|
7746
|
-
},
|
|
7748
|
+
}, h = (d) => {
|
|
7747
7749
|
window.$copy(C({ type: d }));
|
|
7748
7750
|
}, m = async () => {
|
|
7749
7751
|
e.loading = !0;
|
|
@@ -7755,12 +7757,12 @@ const To = jl({
|
|
|
7755
7757
|
e.loading = !1;
|
|
7756
7758
|
}
|
|
7757
7759
|
}, C = (d) => {
|
|
7758
|
-
const c = e.onlySelection ? t.selection : t.list, $ = {},
|
|
7760
|
+
const c = e.onlySelection ? t.selection : t.list, $ = {}, _ = [];
|
|
7759
7761
|
e.columns.filter((P) => P.visible).forEach((P) => {
|
|
7760
|
-
|
|
7762
|
+
_.push(window.$l(P.label)), $[P.prop] = !0;
|
|
7761
7763
|
});
|
|
7762
|
-
let u = "", S = [],
|
|
7763
|
-
["download", "withHeadCopy"].includes(d) && (u =
|
|
7764
|
+
let u = "", S = [], g = d === "download" ? "," : " ";
|
|
7765
|
+
["download", "withHeadCopy"].includes(d) && (u = _.join(g) + `
|
|
7764
7766
|
`);
|
|
7765
7767
|
let x = [], L;
|
|
7766
7768
|
return Object.keys($).forEach((P, V) => {
|
|
@@ -7772,9 +7774,9 @@ const To = jl({
|
|
|
7772
7774
|
}), x.forEach((P, V) => {
|
|
7773
7775
|
!e.useCountryCode && L === V ? P.forEach((B, Q) => {
|
|
7774
7776
|
let he = B;
|
|
7775
|
-
window.$getType(B) === "Array" ? he = B.map((be) => r[be.toUpperCase()].label.$l()).join(",") : window.$getType(B) === "String" ? he = B.split(",").map((be) => r[be.toUpperCase()].label.$l()).join(",") : he = JSON.stringify(B), S[Q] ? S[Q] += he +
|
|
7777
|
+
window.$getType(B) === "Array" ? he = B.map((be) => r[be.toUpperCase()].label.$l()).join(",") : window.$getType(B) === "String" ? he = B.split(",").map((be) => r[be.toUpperCase()].label.$l()).join(",") : he = JSON.stringify(B), S[Q] ? S[Q] += he + g : S[Q] = he + g;
|
|
7776
7778
|
}) : P.forEach((B, Q) => {
|
|
7777
|
-
S[Q] ? S[Q] += B +
|
|
7779
|
+
S[Q] ? S[Q] += B + g : S[Q] = B + g;
|
|
7778
7780
|
});
|
|
7779
7781
|
}), `${u}${S.join(`
|
|
7780
7782
|
`)}`;
|
|
@@ -7784,15 +7786,15 @@ const To = jl({
|
|
|
7784
7786
|
}), p = j(() => {
|
|
7785
7787
|
const d = {};
|
|
7786
7788
|
return e.columns.forEach((c) => {
|
|
7787
|
-
const $ = c.type ? c.type : "normal",
|
|
7789
|
+
const $ = c.type ? c.type : "normal", _ = {
|
|
7788
7790
|
label: k[$],
|
|
7789
7791
|
type: $,
|
|
7790
7792
|
visible: 0
|
|
7791
7793
|
};
|
|
7792
|
-
d[$] ? (d[$].children.push(c), c.visible && d[$].visible++) : (
|
|
7794
|
+
d[$] ? (d[$].children.push(c), c.visible && d[$].visible++) : (_.children = [c], c.visible && _.visible++, d[$] = _);
|
|
7793
7795
|
}), Object.keys(d).forEach((c) => {
|
|
7794
|
-
const $ = d[c].visible === d[c].children.length,
|
|
7795
|
-
$ ? (d[c].checkstatus = !0, d[c].indeterminate = !1) :
|
|
7796
|
+
const $ = d[c].visible === d[c].children.length, _ = d[c].visible === 0;
|
|
7797
|
+
$ ? (d[c].checkstatus = !0, d[c].indeterminate = !1) : _ ? (d[c].checkstatus = !1, d[c].indeterminate = !1) : (d[c].checkstatus = !1, d[c].indeterminate = !0);
|
|
7796
7798
|
}), d;
|
|
7797
7799
|
}), y = j(() => {
|
|
7798
7800
|
const d = [];
|
|
@@ -7818,7 +7820,7 @@ const To = jl({
|
|
|
7818
7820
|
}
|
|
7819
7821
|
], r = {};
|
|
7820
7822
|
return (d, c) => {
|
|
7821
|
-
const $ = I("el-checkbox"),
|
|
7823
|
+
const $ = I("el-checkbox"), _ = I("el-button"), u = I("el-dropdown-item"), S = I("el-dropdown-menu"), g = I("el-dropdown"), x = I("el-switch"), L = I("Input"), P = I("DrawerArea");
|
|
7822
7824
|
return T(), J(P, fe(d.$attrs, { class: "MvcVTableColumnDownload" }), {
|
|
7823
7825
|
cancel: O(() => [
|
|
7824
7826
|
R(L, {
|
|
@@ -7832,7 +7834,7 @@ const To = jl({
|
|
|
7832
7834
|
i("i", { class: "imicon im-file-text" }, null, -1)
|
|
7833
7835
|
])]),
|
|
7834
7836
|
append: O(() => [
|
|
7835
|
-
R(
|
|
7837
|
+
R(_, {
|
|
7836
7838
|
loading: s(e).loading,
|
|
7837
7839
|
disabled: s(y),
|
|
7838
7840
|
onClick: m
|
|
@@ -7851,11 +7853,11 @@ const To = jl({
|
|
|
7851
7853
|
]),
|
|
7852
7854
|
submit: O(() => [...c[6] || (c[6] = [])]),
|
|
7853
7855
|
default: O(() => [
|
|
7854
|
-
i("div",
|
|
7855
|
-
i("div",
|
|
7856
|
+
i("div", Jr, [
|
|
7857
|
+
i("div", Wr, [
|
|
7856
7858
|
i("div", null, [
|
|
7857
|
-
i("div",
|
|
7858
|
-
i("h4",
|
|
7859
|
+
i("div", Yr, [
|
|
7860
|
+
i("h4", Zr, z(d.$l("Total")), 1),
|
|
7859
7861
|
i("span", null, z(t.list.length), 1)
|
|
7860
7862
|
]),
|
|
7861
7863
|
t.selection.length ? (T(), J($, {
|
|
@@ -7863,12 +7865,12 @@ const To = jl({
|
|
|
7863
7865
|
modelValue: s(e).onlySelection,
|
|
7864
7866
|
"onUpdate:modelValue": c[0] || (c[0] = (V) => s(e).onlySelection = V),
|
|
7865
7867
|
label: `${d.$l("Only Selection")}: ${t.selection.length}`
|
|
7866
|
-
}, null, 8, ["modelValue", "label"])) :
|
|
7868
|
+
}, null, 8, ["modelValue", "label"])) : G("", !0)
|
|
7867
7869
|
]),
|
|
7868
|
-
R(
|
|
7870
|
+
R(g, {
|
|
7869
7871
|
trigger: "click",
|
|
7870
7872
|
placement: "bottom",
|
|
7871
|
-
onCommand:
|
|
7873
|
+
onCommand: h
|
|
7872
7874
|
}, {
|
|
7873
7875
|
dropdown: O(() => [
|
|
7874
7876
|
R(S, null, {
|
|
@@ -7879,7 +7881,7 @@ const To = jl({
|
|
|
7879
7881
|
}, {
|
|
7880
7882
|
default: O(() => [
|
|
7881
7883
|
i("i", {
|
|
7882
|
-
class:
|
|
7884
|
+
class: K(["imicon", V.icon])
|
|
7883
7885
|
}, null, 2),
|
|
7884
7886
|
ce(" " + z(V.label.$l()), 1)
|
|
7885
7887
|
]),
|
|
@@ -7890,7 +7892,7 @@ const To = jl({
|
|
|
7890
7892
|
})
|
|
7891
7893
|
]),
|
|
7892
7894
|
default: O(() => [
|
|
7893
|
-
R(
|
|
7895
|
+
R(_, {
|
|
7894
7896
|
type: "primary",
|
|
7895
7897
|
class: "reverse"
|
|
7896
7898
|
}, {
|
|
@@ -7907,18 +7909,18 @@ const To = jl({
|
|
|
7907
7909
|
})
|
|
7908
7910
|
])
|
|
7909
7911
|
]),
|
|
7910
|
-
i("div",
|
|
7912
|
+
i("div", qr, [
|
|
7911
7913
|
(T(!0), E(te, null, ie(s(p), (V) => (T(), E("div", {
|
|
7912
7914
|
key: V.type
|
|
7913
7915
|
}, [
|
|
7914
|
-
i("div",
|
|
7915
|
-
i("span",
|
|
7916
|
+
i("div", Xr, [
|
|
7917
|
+
i("span", Qr, z(V.label), 1),
|
|
7916
7918
|
R($, {
|
|
7917
7919
|
modelValue: V.checkstatus,
|
|
7918
7920
|
"onUpdate:modelValue": (B) => V.checkstatus = B,
|
|
7919
7921
|
indeterminate: V.indeterminate,
|
|
7920
7922
|
label: d.$l("Check All"),
|
|
7921
|
-
onChange: (B) =>
|
|
7923
|
+
onChange: (B) => v(B, V)
|
|
7922
7924
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
|
|
7923
7925
|
]),
|
|
7924
7926
|
(T(!0), E(te, null, ie(V.children, (B, Q) => (T(), J($, {
|
|
@@ -7932,7 +7934,7 @@ const To = jl({
|
|
|
7932
7934
|
default: O(() => {
|
|
7933
7935
|
var he;
|
|
7934
7936
|
return [
|
|
7935
|
-
i("div",
|
|
7937
|
+
i("div", ei, [
|
|
7936
7938
|
i("span", null, z(B.label), 1),
|
|
7937
7939
|
(he = B.prop) != null && he.includes("country") ? (T(), J(x, {
|
|
7938
7940
|
key: 0,
|
|
@@ -7942,7 +7944,7 @@ const To = jl({
|
|
|
7942
7944
|
"active-text": "Use Alpha-2 Code",
|
|
7943
7945
|
"inactive-text": "Use Country Name",
|
|
7944
7946
|
class: "primarySwitch"
|
|
7945
|
-
}, null, 8, ["modelValue"])) :
|
|
7947
|
+
}, null, 8, ["modelValue"])) : G("", !0)
|
|
7946
7948
|
])
|
|
7947
7949
|
];
|
|
7948
7950
|
}),
|
|
@@ -7956,7 +7958,7 @@ const To = jl({
|
|
|
7956
7958
|
};
|
|
7957
7959
|
}
|
|
7958
7960
|
});
|
|
7959
|
-
class
|
|
7961
|
+
class ai {
|
|
7960
7962
|
constructor(a) {
|
|
7961
7963
|
this.editorType = "Input", this.eventHandlers = [], this.editorConfig = a != null && typeof a == "object" && !Array.isArray(a) ? a : /* @__PURE__ */ Object.create(null);
|
|
7962
7964
|
}
|
|
@@ -7979,23 +7981,23 @@ class ti {
|
|
|
7979
7981
|
a.addEventListener("focus", t), this.eventHandlers.push({ type: "focus", handler: t });
|
|
7980
7982
|
const e = () => {
|
|
7981
7983
|
if (a.style.setProperty("border-color", "var(--el-border-color)"), this.table && this.element && this.element.style.opacity === "0") {
|
|
7982
|
-
const
|
|
7983
|
-
(
|
|
7984
|
+
const b = this.table.stateManager.select.cellPos;
|
|
7985
|
+
(b.col !== this.col || b.row !== this.row) && this.onEnd();
|
|
7984
7986
|
}
|
|
7985
7987
|
};
|
|
7986
7988
|
a.addEventListener("blur", e), this.eventHandlers.push({ type: "blur", handler: e }), this.element = a, this.container.appendChild(a);
|
|
7987
|
-
const o = (
|
|
7988
|
-
var
|
|
7989
|
-
|
|
7989
|
+
const o = (b) => {
|
|
7990
|
+
var v, h;
|
|
7991
|
+
b.key === "a" && (b.ctrlKey || b.metaKey) && ((h = (v = this.table) == null ? void 0 : v.editorManager) != null && h.editingEditor) && b.stopPropagation();
|
|
7990
7992
|
};
|
|
7991
7993
|
a.addEventListener("keydown", o), this.eventHandlers.push({ type: "keydown", handler: o });
|
|
7992
|
-
const n = (
|
|
7993
|
-
|
|
7994
|
+
const n = (b) => {
|
|
7995
|
+
b.preventDefault();
|
|
7994
7996
|
};
|
|
7995
7997
|
a.addEventListener("wheel", n), this.eventHandlers.push({ type: "wheel", handler: n });
|
|
7996
|
-
const f = (
|
|
7997
|
-
var
|
|
7998
|
-
((
|
|
7998
|
+
const f = (b) => {
|
|
7999
|
+
var v;
|
|
8000
|
+
((v = this.element) == null ? void 0 : v.style.opacity) === "0" && b.preventDefault();
|
|
7999
8001
|
};
|
|
8000
8002
|
a.addEventListener("paste", f), this.eventHandlers.push({ type: "paste", handler: f });
|
|
8001
8003
|
}
|
|
@@ -8018,9 +8020,9 @@ class ti {
|
|
|
8018
8020
|
endEdit: o,
|
|
8019
8021
|
table: n,
|
|
8020
8022
|
col: f,
|
|
8021
|
-
row:
|
|
8023
|
+
row: b
|
|
8022
8024
|
}) {
|
|
8023
|
-
this.container = e, this.successCallback = o, this.table = n, this.col = f, this.row =
|
|
8025
|
+
this.container = e, this.successCallback = o, this.table = n, this.col = f, this.row = b, this.element ? e.contains(this.element) || (this.element.parentElement.removeChild(this.element), this.container.appendChild(this.element)) : (this.createElement(), t != null && t.rect && this.adjustPosition(t.rect)), a != null && this.setValue(a), this.element.style.opacity = "1", this.element.style.pointerEvents = "auto", this.element.focus();
|
|
8024
8026
|
}
|
|
8025
8027
|
adjustPosition(a) {
|
|
8026
8028
|
const t = a.top - 1, e = a.left - 1, o = a.width + 2, n = a.height + 2;
|
|
@@ -8052,14 +8054,14 @@ class ti {
|
|
|
8052
8054
|
}
|
|
8053
8055
|
}
|
|
8054
8056
|
const Sl = /* @__PURE__ */ new Set();
|
|
8055
|
-
function
|
|
8057
|
+
function ti(l, a, t) {
|
|
8056
8058
|
const e = String(l || "t").replace(/[^a-zA-Z0-9_]/g, "_"), o = String(a || "c").replace(/[^a-zA-Z0-9_]/g, "_"), n = `mvframe_input_${e}_${o}`;
|
|
8057
8059
|
if (Sl.has(n))
|
|
8058
8060
|
return n;
|
|
8059
8061
|
const f = t != null && typeof t == "object" && !Array.isArray(t) ? t : /* @__PURE__ */ Object.create(null);
|
|
8060
|
-
return Il(n, new
|
|
8062
|
+
return Il(n, new ai(f)), Sl.add(n), n;
|
|
8061
8063
|
}
|
|
8062
|
-
const
|
|
8064
|
+
const oi = /* @__PURE__ */ Object.assign({
|
|
8063
8065
|
name: "VTableElementSelectEditor",
|
|
8064
8066
|
inheritAttrs: !1
|
|
8065
8067
|
}, {
|
|
@@ -8080,13 +8082,13 @@ const ni = /* @__PURE__ */ Object.assign({
|
|
|
8080
8082
|
const e = l, o = t, n = ne(e.modelValue), f = ne(null);
|
|
8081
8083
|
me(() => {
|
|
8082
8084
|
Te(() => {
|
|
8083
|
-
var
|
|
8084
|
-
(m = (
|
|
8085
|
+
var h, m;
|
|
8086
|
+
(m = (h = f.value) == null ? void 0 : h.focus) == null || m.call(h);
|
|
8085
8087
|
});
|
|
8086
8088
|
});
|
|
8087
|
-
const
|
|
8088
|
-
o("update:modelValue",
|
|
8089
|
-
},
|
|
8089
|
+
const b = (h) => {
|
|
8090
|
+
o("update:modelValue", h), o("commit", h);
|
|
8091
|
+
}, v = j(() => (e.values || []).map((m) => {
|
|
8090
8092
|
if (m != null && typeof m == "object") {
|
|
8091
8093
|
const C = "value" in m ? m.value : "v" in m ? m.v : m.label ?? m.text, A = "label" in m ? m.label : "text" in m ? m.text : String(C);
|
|
8092
8094
|
return { value: C, label: A };
|
|
@@ -8095,16 +8097,16 @@ const ni = /* @__PURE__ */ Object.assign({
|
|
|
8095
8097
|
}));
|
|
8096
8098
|
return we(
|
|
8097
8099
|
() => e.modelValue,
|
|
8098
|
-
(
|
|
8099
|
-
n.value =
|
|
8100
|
+
(h) => {
|
|
8101
|
+
n.value = h;
|
|
8100
8102
|
}
|
|
8101
8103
|
), a({
|
|
8102
8104
|
focus: () => {
|
|
8103
|
-
var
|
|
8104
|
-
return (m = (
|
|
8105
|
+
var h, m;
|
|
8106
|
+
return (m = (h = f.value) == null ? void 0 : h.focus) == null ? void 0 : m.call(h);
|
|
8105
8107
|
},
|
|
8106
8108
|
getModelValue: () => n.value
|
|
8107
|
-
}), (
|
|
8109
|
+
}), (h, m) => {
|
|
8108
8110
|
const C = I("el-option"), A = I("el-select");
|
|
8109
8111
|
return T(), J(A, {
|
|
8110
8112
|
ref_key: "selRef",
|
|
@@ -8116,10 +8118,10 @@ const ni = /* @__PURE__ */ Object.assign({
|
|
|
8116
8118
|
filterable: "",
|
|
8117
8119
|
teleported: !1,
|
|
8118
8120
|
"automatic-dropdown": "",
|
|
8119
|
-
onChange:
|
|
8121
|
+
onChange: b
|
|
8120
8122
|
}, {
|
|
8121
8123
|
default: O(() => [
|
|
8122
|
-
(T(!0), E(te, null, ie(s(
|
|
8124
|
+
(T(!0), E(te, null, ie(s(v), (p) => (T(), J(C, {
|
|
8123
8125
|
key: String(p.value),
|
|
8124
8126
|
label: p.label,
|
|
8125
8127
|
value: p.value
|
|
@@ -8130,7 +8132,7 @@ const ni = /* @__PURE__ */ Object.assign({
|
|
|
8130
8132
|
};
|
|
8131
8133
|
}
|
|
8132
8134
|
}), Tl = /* @__PURE__ */ new Set();
|
|
8133
|
-
class
|
|
8135
|
+
class ni {
|
|
8134
8136
|
constructor(a) {
|
|
8135
8137
|
this.editorConfig = a || /* @__PURE__ */ Object.create(null), this.editorType = "Input", this.container = null, this.successCallback = null, this._rootEl = null, this._app = null, this._current = void 0;
|
|
8136
8138
|
}
|
|
@@ -8145,11 +8147,11 @@ class si {
|
|
|
8145
8147
|
const { container: t, value: e, referencePosition: o, endEdit: n } = a;
|
|
8146
8148
|
this.container = t, this.successCallback = n, this._current = e, this._rootEl = document.createElement("div"), this._rootEl.className = "MvcVTableElementSelectRoot", this._rootEl.style.position = "absolute", this._rootEl.style.boxSizing = "border-box", this._rootEl.style.zIndex = "30", t.appendChild(this._rootEl);
|
|
8147
8149
|
const f = this.editorConfig.values ?? [];
|
|
8148
|
-
this._app = ka(
|
|
8150
|
+
this._app = ka(oi, {
|
|
8149
8151
|
modelValue: e,
|
|
8150
8152
|
values: f,
|
|
8151
|
-
onCommit: (
|
|
8152
|
-
this._current =
|
|
8153
|
+
onCommit: (b) => {
|
|
8154
|
+
this._current = b, typeof this.successCallback == "function" && this.successCallback();
|
|
8153
8155
|
}
|
|
8154
8156
|
}), this._app.use(Ha), this._app.mount(this._rootEl), o != null && o.rect && this.adjustPosition(o.rect);
|
|
8155
8157
|
}
|
|
@@ -8190,19 +8192,19 @@ class si {
|
|
|
8190
8192
|
this._rootEl = null, this.container = null;
|
|
8191
8193
|
}
|
|
8192
8194
|
}
|
|
8193
|
-
function
|
|
8195
|
+
function si(l, a, t) {
|
|
8194
8196
|
if (!Array.isArray(t) || !t.length)
|
|
8195
8197
|
return "";
|
|
8196
8198
|
const e = String(l || "t").replace(/[^a-zA-Z0-9_]/g, "_"), o = String(a || "c").replace(/[^a-zA-Z0-9_]/g, "_"), n = `mvframe_list_${e}_${o}`;
|
|
8197
8199
|
return Tl.has(n) || (Il(
|
|
8198
8200
|
n,
|
|
8199
|
-
new
|
|
8201
|
+
new ni({ values: [...t] })
|
|
8200
8202
|
), Tl.add(n)), n;
|
|
8201
8203
|
}
|
|
8202
8204
|
function re(l, a = "") {
|
|
8203
8205
|
return typeof document > "u" ? a : getComputedStyle(document.documentElement).getPropertyValue(l).trim() || a;
|
|
8204
8206
|
}
|
|
8205
|
-
const
|
|
8207
|
+
const ri = 8;
|
|
8206
8208
|
function Al(l, a) {
|
|
8207
8209
|
var w, r;
|
|
8208
8210
|
if (typeof l != "string" || !l || typeof document > "u")
|
|
@@ -8210,11 +8212,11 @@ function Al(l, a) {
|
|
|
8210
8212
|
const e = `${typeof ((r = (w = globalThis.$config) == null ? void 0 : w.iconfont) == null ? void 0 : r.prefix) == "string" && globalThis.$config.iconfont.prefix ? globalThis.$config.iconfont.prefix : "imc"}-${l}`, o = document.getElementById(e);
|
|
8211
8213
|
if (!o || o.tagName.toLowerCase() !== "symbol")
|
|
8212
8214
|
return null;
|
|
8213
|
-
const n = o.getAttribute("viewBox") || "", f = o.innerHTML,
|
|
8215
|
+
const n = o.getAttribute("viewBox") || "", f = o.innerHTML, v = `<svg xmlns="http://www.w3.org/2000/svg"${n ? ` viewBox="${n.replace(/"/g, """)}"` : ""}>${f}</svg>`, h = (a == null ? void 0 : a.width) ?? 20, m = (a == null ? void 0 : a.height) ?? 20, C = (a == null ? void 0 : a.positionType) ?? "inlineFront", p = {
|
|
8214
8216
|
type: "svg",
|
|
8215
8217
|
name: (a == null ? void 0 : a.id) != null && String(a.id) !== "" ? String(a.id) : l,
|
|
8216
|
-
svg:
|
|
8217
|
-
width:
|
|
8218
|
+
svg: v,
|
|
8219
|
+
width: h,
|
|
8218
8220
|
height: m,
|
|
8219
8221
|
positionType: C
|
|
8220
8222
|
};
|
|
@@ -8251,7 +8253,7 @@ function ta(l) {
|
|
|
8251
8253
|
return null;
|
|
8252
8254
|
if (a.length > 1)
|
|
8253
8255
|
for (let t = 0; t < a.length; t++)
|
|
8254
|
-
a[t].marginRight = t < a.length - 1 ?
|
|
8256
|
+
a[t].marginRight = t < a.length - 1 ? ri : 0;
|
|
8255
8257
|
return a.length === 1 ? a[0] : a;
|
|
8256
8258
|
}
|
|
8257
8259
|
return typeof l == "string" ? Al(l) : l && typeof l == "object" && typeof l.name == "string" ? Al(l.name, l) : null;
|
|
@@ -8263,35 +8265,35 @@ function oa(l) {
|
|
|
8263
8265
|
function na(l) {
|
|
8264
8266
|
return `_${l}EditorLoading`;
|
|
8265
8267
|
}
|
|
8266
|
-
function
|
|
8268
|
+
function ii(l, a, t, e) {
|
|
8267
8269
|
const o = typeof t == "string" && t ? t : e(a), n = l.disable;
|
|
8268
8270
|
l.disable = (f) => {
|
|
8269
8271
|
try {
|
|
8270
|
-
const
|
|
8271
|
-
if (
|
|
8272
|
+
const b = f.table.getCellOriginRecord(f.col, f.row);
|
|
8273
|
+
if (b && b[o] === !0)
|
|
8272
8274
|
return !0;
|
|
8273
8275
|
} catch {
|
|
8274
8276
|
}
|
|
8275
8277
|
return typeof n == "function" ? n(f) : n === !0;
|
|
8276
8278
|
};
|
|
8277
8279
|
}
|
|
8278
|
-
function
|
|
8279
|
-
|
|
8280
|
+
function ci(l, a, t) {
|
|
8281
|
+
ii(
|
|
8280
8282
|
l,
|
|
8281
8283
|
a,
|
|
8282
8284
|
t,
|
|
8283
8285
|
oa
|
|
8284
8286
|
);
|
|
8285
8287
|
}
|
|
8286
|
-
function
|
|
8288
|
+
function ui(l, a, t) {
|
|
8287
8289
|
const e = typeof t == "string" && t ? t : na(a), o = l.editor;
|
|
8288
8290
|
if (o != null) {
|
|
8289
8291
|
if (typeof o == "string") {
|
|
8290
8292
|
const n = o;
|
|
8291
8293
|
l.editor = (f) => {
|
|
8292
8294
|
try {
|
|
8293
|
-
const
|
|
8294
|
-
if (
|
|
8295
|
+
const b = f.table.getCellOriginRecord(f.col, f.row);
|
|
8296
|
+
if (b && b[e] === !0)
|
|
8295
8297
|
return;
|
|
8296
8298
|
} catch {
|
|
8297
8299
|
}
|
|
@@ -8303,8 +8305,8 @@ function di(l, a, t) {
|
|
|
8303
8305
|
const n = o;
|
|
8304
8306
|
l.editor = (f) => {
|
|
8305
8307
|
try {
|
|
8306
|
-
const
|
|
8307
|
-
if (
|
|
8308
|
+
const b = f.table.getCellOriginRecord(f.col, f.row);
|
|
8309
|
+
if (b && b[e] === !0)
|
|
8308
8310
|
return;
|
|
8309
8311
|
} catch {
|
|
8310
8312
|
}
|
|
@@ -8324,7 +8326,7 @@ const Ge = {
|
|
|
8324
8326
|
/** 仅一列时两侧外边都去掉 */
|
|
8325
8327
|
noOuterBoth: [1, 0, 1, 0]
|
|
8326
8328
|
};
|
|
8327
|
-
function
|
|
8329
|
+
function di(l) {
|
|
8328
8330
|
const a = l.field;
|
|
8329
8331
|
if (!a)
|
|
8330
8332
|
return;
|
|
@@ -8332,20 +8334,20 @@ function pi(l) {
|
|
|
8332
8334
|
l.style = (e) => {
|
|
8333
8335
|
let o = {};
|
|
8334
8336
|
if (typeof t == "function") {
|
|
8335
|
-
const
|
|
8336
|
-
|
|
8337
|
+
const h = t(e);
|
|
8338
|
+
h && typeof h == "object" && (o = { ...h });
|
|
8337
8339
|
} else t && typeof t == "object" && (o = { ...t });
|
|
8338
8340
|
let n = !1;
|
|
8339
8341
|
try {
|
|
8340
|
-
const
|
|
8341
|
-
n = (
|
|
8342
|
+
const h = e.table.getCellOriginRecord(e.col, e.row);
|
|
8343
|
+
n = (h == null ? void 0 : h[a]) === !0;
|
|
8342
8344
|
} catch {
|
|
8343
8345
|
}
|
|
8344
8346
|
const f = re(
|
|
8345
8347
|
"--color-on-primary-text",
|
|
8346
8348
|
re("--color-txt-white", "#ffffff")
|
|
8347
|
-
),
|
|
8348
|
-
return { ...o, fill:
|
|
8349
|
+
), b = re("--color-txt-p", "#555555"), v = n ? f : b;
|
|
8350
|
+
return { ...o, fill: v, color: v };
|
|
8349
8351
|
};
|
|
8350
8352
|
}
|
|
8351
8353
|
function Je(l, a) {
|
|
@@ -8354,7 +8356,7 @@ function Je(l, a) {
|
|
|
8354
8356
|
...o && typeof o == "object" ? o : {}
|
|
8355
8357
|
}, borderLineWidth: t });
|
|
8356
8358
|
}
|
|
8357
|
-
function
|
|
8359
|
+
function pi(l, a) {
|
|
8358
8360
|
if (!l || !(a != null && a.length))
|
|
8359
8361
|
return;
|
|
8360
8362
|
const t = `${l}_Column`;
|
|
@@ -8374,7 +8376,7 @@ function fi(l, a) {
|
|
|
8374
8376
|
}));
|
|
8375
8377
|
localStorage.setItem(t, JSON.stringify(e));
|
|
8376
8378
|
}
|
|
8377
|
-
function
|
|
8379
|
+
function fi(l) {
|
|
8378
8380
|
if (!l)
|
|
8379
8381
|
return null;
|
|
8380
8382
|
try {
|
|
@@ -8384,13 +8386,13 @@ function mi(l) {
|
|
|
8384
8386
|
return null;
|
|
8385
8387
|
}
|
|
8386
8388
|
}
|
|
8387
|
-
function
|
|
8389
|
+
function mi({
|
|
8388
8390
|
tableName: l,
|
|
8389
8391
|
columnMetas: a,
|
|
8390
8392
|
summaryData: t,
|
|
8391
8393
|
summaryMetricProp: e
|
|
8392
8394
|
}) {
|
|
8393
|
-
const o = Array.isArray(a) ? a.filter((p) => p != null) : [], n =
|
|
8395
|
+
const o = Array.isArray(a) ? a.filter((p) => p != null) : [], n = fi(l);
|
|
8394
8396
|
let f;
|
|
8395
8397
|
n != null && n.length ? f = n.slice().sort((p, y) => p.sort - y.sort).filter((p) => p != null && p.visible) : f = o.map((p, y) => ({
|
|
8396
8398
|
prop: p.type === "selection" ? Me : p.field,
|
|
@@ -8402,8 +8404,8 @@ function hi({
|
|
|
8402
8404
|
type: p.type === "selection" ? "selection" : p.type === "operation" ? "operation" : p.type,
|
|
8403
8405
|
width: p.width
|
|
8404
8406
|
}));
|
|
8405
|
-
const
|
|
8406
|
-
let
|
|
8407
|
+
const b = [];
|
|
8408
|
+
let v = 0, h = !0, m = !1;
|
|
8407
8409
|
const C = (p) => {
|
|
8408
8410
|
var k, w;
|
|
8409
8411
|
const y = xl(p, e);
|
|
@@ -8413,38 +8415,38 @@ function hi({
|
|
|
8413
8415
|
if (p == null)
|
|
8414
8416
|
continue;
|
|
8415
8417
|
if (p.type === "selection") {
|
|
8416
|
-
m = !0,
|
|
8418
|
+
m = !0, b.push({
|
|
8417
8419
|
field: Me,
|
|
8418
8420
|
title: "",
|
|
8419
8421
|
width: p.width ?? 48,
|
|
8420
8422
|
minWidth: 48,
|
|
8421
8423
|
headerType: "checkbox",
|
|
8422
8424
|
cellType: "checkbox"
|
|
8423
|
-
}),
|
|
8425
|
+
}), h && v++;
|
|
8424
8426
|
continue;
|
|
8425
8427
|
}
|
|
8426
|
-
const y = o.find((
|
|
8428
|
+
const y = o.find((_) => _.field === p.prop);
|
|
8427
8429
|
let k = {}, w, r;
|
|
8428
8430
|
if (y != null && y.vtable && typeof y.vtable == "object") {
|
|
8429
8431
|
k = { ...y.vtable }, r = k.cellSelectable, delete k.cellSelectable, w = k.mvcIcon, delete k.mvcIcon, delete k.switchLoadingKey, delete k.editorLoadingKey;
|
|
8430
|
-
const
|
|
8432
|
+
const _ = k.inputEditor === !0, u = k.inputEditorConfig;
|
|
8431
8433
|
delete k.inputEditor, delete k.inputEditorConfig;
|
|
8432
8434
|
const S = k.editorValues;
|
|
8433
|
-
if (delete k.editorValues,
|
|
8434
|
-
const
|
|
8435
|
+
if (delete k.editorValues, _ && l && p.prop != null && p.prop !== "") {
|
|
8436
|
+
const g = ti(
|
|
8435
8437
|
l,
|
|
8436
8438
|
p.prop,
|
|
8437
8439
|
u
|
|
8438
8440
|
);
|
|
8439
|
-
|
|
8441
|
+
g && (k.editor = g);
|
|
8440
8442
|
}
|
|
8441
8443
|
if (Array.isArray(S) && S.length && l) {
|
|
8442
|
-
const
|
|
8444
|
+
const g = si(
|
|
8443
8445
|
l,
|
|
8444
8446
|
p.prop,
|
|
8445
8447
|
S
|
|
8446
8448
|
);
|
|
8447
|
-
|
|
8449
|
+
g && (k.editor = g);
|
|
8448
8450
|
}
|
|
8449
8451
|
}
|
|
8450
8452
|
const d = (y == null ? void 0 : y.minWidth) ?? 80, c = {
|
|
@@ -8456,28 +8458,28 @@ function hi({
|
|
|
8456
8458
|
...k
|
|
8457
8459
|
};
|
|
8458
8460
|
if (c.icon == null && w != null) {
|
|
8459
|
-
const
|
|
8460
|
-
|
|
8461
|
+
const _ = ta(w);
|
|
8462
|
+
_ && (c.icon = _);
|
|
8461
8463
|
}
|
|
8462
|
-
if (c.cellType === "switch" && p.prop != null && p.prop !== "" && (
|
|
8464
|
+
if (c.cellType === "switch" && p.prop != null && p.prop !== "" && (di(c), ci(
|
|
8463
8465
|
c,
|
|
8464
8466
|
p.prop,
|
|
8465
8467
|
y != null && y.vtable && typeof y.vtable.switchLoadingKey == "string" ? y.vtable.switchLoadingKey : void 0
|
|
8466
|
-
)), c.editor && p.prop != null && p.prop !== "" &&
|
|
8468
|
+
)), c.editor && p.prop != null && p.prop !== "" && ui(
|
|
8467
8469
|
c,
|
|
8468
8470
|
p.prop,
|
|
8469
8471
|
y != null && y.vtable && typeof y.vtable.editorLoadingKey == "string" ? y.vtable.editorLoadingKey : void 0
|
|
8470
8472
|
), t && typeof t == "object") {
|
|
8471
|
-
const
|
|
8473
|
+
const _ = t[p.prop];
|
|
8472
8474
|
c.aggregation = {
|
|
8473
8475
|
aggregationType: Ra.CUSTOM,
|
|
8474
|
-
aggregationFun: () =>
|
|
8476
|
+
aggregationFun: () => _ === void 0 ? "" : _,
|
|
8475
8477
|
formatFun: (u) => La(p.prop, u, C(p.prop))
|
|
8476
8478
|
};
|
|
8477
8479
|
}
|
|
8478
|
-
(p.type === "operation" || r === !1) && (c.disableSelect = !0, c.disableHeaderSelect = !0),
|
|
8480
|
+
(p.type === "operation" || r === !1) && (c.disableSelect = !0, c.disableHeaderSelect = !0), b.push(c);
|
|
8479
8481
|
const $ = p.fixed === "left" || p.fixed === !0;
|
|
8480
|
-
|
|
8482
|
+
h && $ ? v++ : $ || (h = !1);
|
|
8481
8483
|
}
|
|
8482
8484
|
let A = 0;
|
|
8483
8485
|
for (let p = f.length - 1; p >= 0; p--) {
|
|
@@ -8489,14 +8491,14 @@ function hi({
|
|
|
8489
8491
|
else
|
|
8490
8492
|
break;
|
|
8491
8493
|
}
|
|
8492
|
-
return
|
|
8494
|
+
return b.length === 1 ? Je(b[0], "both") : b.length > 1 && (Je(b[0], "start"), Je(b[b.length - 1], "end")), { columns: b, frozenColCount: v, rightFrozenColCount: A, hasSelection: m };
|
|
8493
8495
|
}
|
|
8494
8496
|
function xl(l, a) {
|
|
8495
8497
|
if (a != null)
|
|
8496
8498
|
return typeof a == "function" ? a(l) : a[l];
|
|
8497
8499
|
}
|
|
8498
|
-
function
|
|
8499
|
-
const { frameSideLines: a = !1 } = l, t = re("--color-border", "#e5e5e5"), e = re("--color-white", "#ffffff"), o = re("--color-bg-page-header", e), n = re("--color-bg-menu-children", "#f9f9f9"), f = re("--color-txt-h2", "#333333"),
|
|
8500
|
+
function hi(l = {}) {
|
|
8501
|
+
const { frameSideLines: a = !1 } = l, t = re("--color-border", "#e5e5e5"), e = re("--color-white", "#ffffff"), o = re("--color-bg-page-header", e), n = re("--color-bg-menu-children", "#f9f9f9"), f = re("--color-txt-h2", "#333333"), b = re("--color-txt-p", "#555555"), v = re("--color-primary", "#007bff"), h = re("--color-primary-bg-txt", "rgba(0, 123, 255, 0.12)"), m = re(
|
|
8500
8502
|
"--color-vtable-hover-cross",
|
|
8501
8503
|
"rgba(0, 123, 255, 0.045)"
|
|
8502
8504
|
), C = re("--color-on-primary-text", "#ffffff"), A = re("--color-bg-body", "#fafafa"), p = re("--color-txt-tip", "#999999"), y = typeof document < "u" && getComputedStyle(document.body).fontFamily || "system-ui,sans-serif", w = {
|
|
@@ -8507,9 +8509,9 @@ function bi(l = {}) {
|
|
|
8507
8509
|
headerStyle: {
|
|
8508
8510
|
bgColor: o,
|
|
8509
8511
|
color: (r) => {
|
|
8510
|
-
var S,
|
|
8511
|
-
const { col: d, row: c, table: $ } = r,
|
|
8512
|
-
if (typeof c != "number" || c < 0 || c >=
|
|
8512
|
+
var S, g, x, L;
|
|
8513
|
+
const { col: d, row: c, table: $ } = r, _ = $.columnHeaderLevelCount ?? 1;
|
|
8514
|
+
if (typeof c != "number" || c < 0 || c >= _ || (g = (S = $.options) == null ? void 0 : S.select) != null && g.disableHeaderSelect)
|
|
8513
8515
|
return f;
|
|
8514
8516
|
const u = (x = $.stateManager) == null ? void 0 : x.select;
|
|
8515
8517
|
if (!((L = u == null ? void 0 : u.ranges) != null && L.length) || u.highlightScope === "none")
|
|
@@ -8526,19 +8528,19 @@ function bi(l = {}) {
|
|
|
8526
8528
|
fontWeight: "600",
|
|
8527
8529
|
borderColor: t,
|
|
8528
8530
|
hover: {
|
|
8529
|
-
cellBgColor:
|
|
8531
|
+
cellBgColor: h
|
|
8530
8532
|
},
|
|
8531
8533
|
select: {
|
|
8532
|
-
cellBgColor:
|
|
8533
|
-
inlineColumnBgColor:
|
|
8534
|
+
cellBgColor: v,
|
|
8535
|
+
inlineColumnBgColor: v
|
|
8534
8536
|
}
|
|
8535
8537
|
},
|
|
8536
8538
|
bodyStyle: {
|
|
8537
8539
|
bgColor: (r) => {
|
|
8538
|
-
const { row: d, table: c } = r, $ = c.columnHeaderLevelCount ?? 1,
|
|
8539
|
-
return
|
|
8540
|
+
const { row: d, table: c } = r, $ = c.columnHeaderLevelCount ?? 1, _ = d - $;
|
|
8541
|
+
return _ < 0 || _ % 2 === 0 ? e : A;
|
|
8540
8542
|
},
|
|
8541
|
-
color:
|
|
8543
|
+
color: b,
|
|
8542
8544
|
fontSize: 14,
|
|
8543
8545
|
fontFamily: y,
|
|
8544
8546
|
borderColor: t,
|
|
@@ -8550,7 +8552,7 @@ function bi(l = {}) {
|
|
|
8550
8552
|
},
|
|
8551
8553
|
bottomFrozenStyle: {
|
|
8552
8554
|
bgColor: n,
|
|
8553
|
-
color:
|
|
8555
|
+
color: b,
|
|
8554
8556
|
borderColor: t,
|
|
8555
8557
|
fontFamily: y,
|
|
8556
8558
|
fontSize: 14
|
|
@@ -8572,7 +8574,7 @@ function bi(l = {}) {
|
|
|
8572
8574
|
// 见 vtable create-select-border:`overlay` 会给选区 rect 填 `cellBgColor`,易盖住单元格文本;
|
|
8573
8575
|
// `replace` 时 fill 为 false,只保留描边,文字保持可读。
|
|
8574
8576
|
selectionStyle: {
|
|
8575
|
-
cellBorderColor:
|
|
8577
|
+
cellBorderColor: v,
|
|
8576
8578
|
cellBorderLineWidth: 2,
|
|
8577
8579
|
selectionFillMode: "replace"
|
|
8578
8580
|
},
|
|
@@ -8585,22 +8587,22 @@ function bi(l = {}) {
|
|
|
8585
8587
|
},
|
|
8586
8588
|
tooltipStyle: {
|
|
8587
8589
|
bgColor: re("--color-bg-menu", e),
|
|
8588
|
-
color:
|
|
8590
|
+
color: b,
|
|
8589
8591
|
fontFamily: y,
|
|
8590
8592
|
fontSize: 12
|
|
8591
8593
|
},
|
|
8592
8594
|
functionalIconsStyle: {
|
|
8593
|
-
sort_color:
|
|
8595
|
+
sort_color: v,
|
|
8594
8596
|
sort_color_2: p,
|
|
8595
|
-
frozen_color:
|
|
8597
|
+
frozen_color: v
|
|
8596
8598
|
},
|
|
8597
8599
|
/** 未配置时 VTable 默认勾选项与表体底色接近,选中态几乎不可见 */
|
|
8598
8600
|
checkboxStyle: {
|
|
8599
8601
|
size: 16,
|
|
8600
8602
|
defaultFill: e,
|
|
8601
8603
|
defaultStroke: p,
|
|
8602
|
-
checkedFill:
|
|
8603
|
-
checkedStroke:
|
|
8604
|
+
checkedFill: v,
|
|
8605
|
+
checkedStroke: v
|
|
8604
8606
|
},
|
|
8605
8607
|
/**
|
|
8606
8608
|
* 开关:打开态轨道 `--color-primary`;标签字色由列 `style` 在 columns 内按
|
|
@@ -8610,14 +8612,14 @@ function bi(l = {}) {
|
|
|
8610
8612
|
boxWidth: 30,
|
|
8611
8613
|
boxHeight: 16,
|
|
8612
8614
|
circleRadius: 6,
|
|
8613
|
-
checkedFill:
|
|
8615
|
+
checkedFill: v,
|
|
8614
8616
|
uncheckedFill: t,
|
|
8615
8617
|
circleFill: e
|
|
8616
8618
|
}
|
|
8617
8619
|
};
|
|
8618
8620
|
return new Va(w, Da);
|
|
8619
8621
|
}
|
|
8620
|
-
function
|
|
8622
|
+
function bi(l = {}) {
|
|
8621
8623
|
const a = re("--color-txt-tip", "#999999"), t = typeof document < "u" && getComputedStyle(document.body).fontFamily || "system-ui,sans-serif", e = typeof globalThis.$l == "function" && globalThis.$l("No Data") || "No Data", o = l.text !== void 0 && l.text !== "" ? l.text : e, n = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" width="96" height="96"><g fill="none" stroke="${a}" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" opacity="0.5"><rect x="16" y="28" width="64" height="48" rx="4"/><path d="M16 40h64"/><ellipse cx="48" cy="52" rx="14" ry="6"/></g><circle cx="48" cy="20" r="7" fill="${a}" opacity="0.18"/></svg>`;
|
|
8622
8624
|
return {
|
|
8623
8625
|
displayMode: "basedOnContainer",
|
|
@@ -8638,13 +8640,13 @@ function vi(l = {}) {
|
|
|
8638
8640
|
}
|
|
8639
8641
|
};
|
|
8640
8642
|
}
|
|
8641
|
-
const
|
|
8643
|
+
const vi = {
|
|
8642
8644
|
key: 0,
|
|
8643
8645
|
class: "flexMode vc"
|
|
8644
|
-
},
|
|
8646
|
+
}, gi = { class: "tableArea relative radius ctx-auto" }, _i = {
|
|
8645
8647
|
key: 1,
|
|
8646
8648
|
class: "tableFooter relative flexMode vc h56 p16 xscroll nobar z9"
|
|
8647
|
-
},
|
|
8649
|
+
}, yi = /* @__PURE__ */ Object.assign({
|
|
8648
8650
|
name: "MvcVTable",
|
|
8649
8651
|
inheritAttrs: !1
|
|
8650
8652
|
}, {
|
|
@@ -8809,15 +8811,15 @@ const gi = {
|
|
|
8809
8811
|
{
|
|
8810
8812
|
title: "Table Column Customization",
|
|
8811
8813
|
size: 1024,
|
|
8812
|
-
cpt: ze(
|
|
8814
|
+
cpt: ze(Gr)
|
|
8813
8815
|
},
|
|
8814
8816
|
{
|
|
8815
8817
|
title: "Download from Current Table",
|
|
8816
|
-
cpt: ze(
|
|
8818
|
+
cpt: ze(li)
|
|
8817
8819
|
}
|
|
8818
8820
|
]
|
|
8819
|
-
}),
|
|
8820
|
-
let
|
|
8821
|
+
}), b = ne(null), v = $a(null);
|
|
8822
|
+
let h, m = !1, C, A, p = 0;
|
|
8821
8823
|
const y = q({
|
|
8822
8824
|
show: !1,
|
|
8823
8825
|
left: 0,
|
|
@@ -8830,7 +8832,7 @@ const gi = {
|
|
|
8830
8832
|
d();
|
|
8831
8833
|
}), me(() => {
|
|
8832
8834
|
var M;
|
|
8833
|
-
e.tableName && ((M = e.columnMetas) != null && M.length) &&
|
|
8835
|
+
e.tableName && ((M = e.columnMetas) != null && M.length) && pi(e.tableName, e.columnMetas), typeof MutationObserver < "u" && (C = new MutationObserver(() => {
|
|
8834
8836
|
clearTimeout(A), A = setTimeout(de, 80);
|
|
8835
8837
|
}), C.observe(document.documentElement, {
|
|
8836
8838
|
attributes: !0,
|
|
@@ -8847,7 +8849,7 @@ const gi = {
|
|
|
8847
8849
|
for (const N of M)
|
|
8848
8850
|
(!(Me in N) || N[Me] !== !0) && (N[Me] = !1);
|
|
8849
8851
|
return M;
|
|
8850
|
-
},
|
|
8852
|
+
}, _ = () => mi({
|
|
8851
8853
|
tableName: e.tableName,
|
|
8852
8854
|
columnMetas: e.columnMetas,
|
|
8853
8855
|
summaryData: n.summary || null,
|
|
@@ -8862,12 +8864,12 @@ const gi = {
|
|
|
8862
8864
|
for (const N of M)
|
|
8863
8865
|
!(N != null && N.field) || !N.editor || D.push(N.field);
|
|
8864
8866
|
return D;
|
|
8865
|
-
},
|
|
8867
|
+
}, g = () => {
|
|
8866
8868
|
var X, ee;
|
|
8867
|
-
const M =
|
|
8869
|
+
const M = v.value;
|
|
8868
8870
|
if (!((X = M == null ? void 0 : M.stateManager) != null && X.checkedState) || !((ee = M.dataSource) != null && ee.getIndexKey))
|
|
8869
8871
|
return;
|
|
8870
|
-
const D =
|
|
8872
|
+
const D = _(), N = u(D.columns);
|
|
8871
8873
|
if (!N.length)
|
|
8872
8874
|
return;
|
|
8873
8875
|
const U = M.stateManager.checkedState;
|
|
@@ -8886,23 +8888,23 @@ const gi = {
|
|
|
8886
8888
|
const D = (U = e.columnMetas) == null ? void 0 : U.find((ee) => ee != null && ee.field === M), N = (X = D == null ? void 0 : D.vtable) == null ? void 0 : X.editorLoadingKey;
|
|
8887
8889
|
return typeof N == "string" && N ? N : na(M);
|
|
8888
8890
|
}, P = () => {
|
|
8889
|
-
|
|
8891
|
+
g();
|
|
8890
8892
|
const M = Me;
|
|
8891
|
-
if (!
|
|
8893
|
+
if (!_().hasSelection) {
|
|
8892
8894
|
o.selection = [], r("selection-change", []);
|
|
8893
8895
|
return;
|
|
8894
8896
|
}
|
|
8895
8897
|
const N = n.list.filter((U) => U[M] === !0);
|
|
8896
8898
|
o.selection = N, r("selection-change", N);
|
|
8897
8899
|
}, V = () => {
|
|
8898
|
-
if (w != null &&
|
|
8900
|
+
if (w != null && v.value)
|
|
8899
8901
|
try {
|
|
8900
|
-
|
|
8902
|
+
v.value.off(w);
|
|
8901
8903
|
} catch {
|
|
8902
8904
|
}
|
|
8903
8905
|
w = null;
|
|
8904
8906
|
}, B = () => {
|
|
8905
|
-
const M =
|
|
8907
|
+
const M = v.value;
|
|
8906
8908
|
if (!M || !y.show)
|
|
8907
8909
|
return;
|
|
8908
8910
|
const { col: D, row: N } = k;
|
|
@@ -8919,7 +8921,7 @@ const gi = {
|
|
|
8919
8921
|
y.show = !1, k = { col: -1, row: -1 }, y.left = 0, y.top = 0, y.width = 0, y.height = 0, V();
|
|
8920
8922
|
}, he = (M, D, N) => {
|
|
8921
8923
|
V(), k = { col: D, row: N }, y.show = !0, Te(() => {
|
|
8922
|
-
if (B(), !M ||
|
|
8924
|
+
if (B(), !M || v.value !== M)
|
|
8923
8925
|
return;
|
|
8924
8926
|
const U = () => {
|
|
8925
8927
|
B();
|
|
@@ -8930,7 +8932,7 @@ const gi = {
|
|
|
8930
8932
|
);
|
|
8931
8933
|
});
|
|
8932
8934
|
}, be = (M, D) => {
|
|
8933
|
-
const N =
|
|
8935
|
+
const N = v.value;
|
|
8934
8936
|
!N || !Number.isFinite(M) || !Number.isFinite(D) || he(N, M, D);
|
|
8935
8937
|
}, H = (M) => {
|
|
8936
8938
|
if (m)
|
|
@@ -8958,7 +8960,7 @@ const gi = {
|
|
|
8958
8960
|
const W = F == null ? void 0 : F.field;
|
|
8959
8961
|
if (typeof W != "string" || !W)
|
|
8960
8962
|
return;
|
|
8961
|
-
const le =
|
|
8963
|
+
const le = _();
|
|
8962
8964
|
if (!new Set(S(le.columns)).has(W))
|
|
8963
8965
|
return;
|
|
8964
8966
|
const ge = F.recordIndex;
|
|
@@ -8984,9 +8986,9 @@ const gi = {
|
|
|
8984
8986
|
loadingKey: L(W)
|
|
8985
8987
|
});
|
|
8986
8988
|
}, X = (F) => {
|
|
8987
|
-
if (
|
|
8989
|
+
if (v.value !== M || F == null)
|
|
8988
8990
|
return;
|
|
8989
|
-
const W = F.col, le = F.row, ve =
|
|
8991
|
+
const W = F.col, le = F.row, ve = _(), ge = Number.isFinite(W) && W >= 0 && W < ve.columns.length ? ve.columns[W] : null, Se = (ge == null ? void 0 : ge.field) ?? null;
|
|
8990
8992
|
let ae = null;
|
|
8991
8993
|
try {
|
|
8992
8994
|
ae = M.getCellOriginRecord(W, le);
|
|
@@ -9012,7 +9014,7 @@ const gi = {
|
|
|
9012
9014
|
typeof globalThis.requestAnimationFrame != "function" || p !== 0 || (p = globalThis.requestAnimationFrame(() => {
|
|
9013
9015
|
var W, le, ve, ge, Se, ae;
|
|
9014
9016
|
p = 0;
|
|
9015
|
-
const F =
|
|
9017
|
+
const F = v.value;
|
|
9016
9018
|
if (!(!F || F !== M))
|
|
9017
9019
|
try {
|
|
9018
9020
|
(le = (W = F.scenegraph) == null ? void 0 : W.clearCells) == null || le.call(W), (ve = F.clearCellStyleCache) == null || ve.call(F), (Se = (ge = F.scenegraph) == null ? void 0 : ge.createSceneGraph) == null || Se.call(ge, !0), (ae = F.render) == null || ae.call(F);
|
|
@@ -9029,7 +9031,7 @@ const gi = {
|
|
|
9029
9031
|
!Number.isFinite(le) || !Number.isFinite(ve) || (async () => {
|
|
9030
9032
|
he(M, le, ve);
|
|
9031
9033
|
try {
|
|
9032
|
-
const ge = await e.loadTreeChildren({ record: W, col: le, row: ve }), Se = Array.isArray(ge) ? ge : [], ae =
|
|
9034
|
+
const ge = await e.loadTreeChildren({ record: W, col: le, row: ve }), Se = Array.isArray(ge) ? ge : [], ae = v.value;
|
|
9033
9035
|
if (!ae || ae !== M)
|
|
9034
9036
|
return;
|
|
9035
9037
|
ae.setRecordChildren(Se, le, ve);
|
|
@@ -9052,12 +9054,12 @@ const gi = {
|
|
|
9052
9054
|
Ae.DRAG_SELECT_END,
|
|
9053
9055
|
ee
|
|
9054
9056
|
), M.on(Ae.ICON_CLICK, X);
|
|
9055
|
-
}, Y = () =>
|
|
9057
|
+
}, Y = () => bi({
|
|
9056
9058
|
text: e.emptyText || void 0
|
|
9057
|
-
}), _e = () =>
|
|
9059
|
+
}), _e = () => hi({
|
|
9058
9060
|
frameSideLines: n.list.length === 0
|
|
9059
9061
|
}), oe = () => {
|
|
9060
|
-
const M =
|
|
9062
|
+
const M = _(), D = $(n.list, M.hasSelection), N = 40, U = M.columns.some((X) => (X == null ? void 0 : X.tree) === !0);
|
|
9061
9063
|
return {
|
|
9062
9064
|
records: D,
|
|
9063
9065
|
columns: M.columns,
|
|
@@ -9091,30 +9093,30 @@ const gi = {
|
|
|
9091
9093
|
};
|
|
9092
9094
|
}, de = async () => {
|
|
9093
9095
|
var M;
|
|
9094
|
-
if (!(!
|
|
9096
|
+
if (!(!v.value || o.loading || !((M = e.columnMetas) != null && M.length)))
|
|
9095
9097
|
try {
|
|
9096
|
-
await
|
|
9098
|
+
await v.value.updateOption(oe());
|
|
9097
9099
|
} catch {
|
|
9098
9100
|
}
|
|
9099
9101
|
}, Ce = () => {
|
|
9100
|
-
if (p !== 0 && globalThis.cancelAnimationFrame && (globalThis.cancelAnimationFrame(p), p = 0), clearTimeout(A), C == null || C.disconnect(), C = void 0,
|
|
9102
|
+
if (p !== 0 && globalThis.cancelAnimationFrame && (globalThis.cancelAnimationFrame(p), p = 0), clearTimeout(A), C == null || C.disconnect(), C = void 0, h == null || h.disconnect(), h = void 0, m = !1, Q(), v.value) {
|
|
9101
9103
|
try {
|
|
9102
|
-
|
|
9104
|
+
v.value.release();
|
|
9103
9105
|
} catch {
|
|
9104
9106
|
}
|
|
9105
|
-
|
|
9107
|
+
v.value = null;
|
|
9106
9108
|
}
|
|
9107
9109
|
}, ye = async () => {
|
|
9108
9110
|
var D;
|
|
9109
|
-
if (await Te(), !
|
|
9111
|
+
if (await Te(), !b.value || o.loading || !((D = e.columnMetas) != null && D.length))
|
|
9110
9112
|
return;
|
|
9111
9113
|
const M = oe();
|
|
9112
|
-
if (
|
|
9114
|
+
if (v.value ? await v.value.updateOption(M) : (v.value = new Ba(b.value, M), H(v.value), h = new ResizeObserver(() => {
|
|
9113
9115
|
var N, U;
|
|
9114
|
-
(U = (N =
|
|
9115
|
-
}),
|
|
9116
|
+
(U = (N = v.value) == null ? void 0 : N.resize) == null || U.call(N), B();
|
|
9117
|
+
}), h.observe(b.value)), v.value && e.scrollToTopOnLoad)
|
|
9116
9118
|
try {
|
|
9117
|
-
|
|
9119
|
+
v.value.scrollTop = 0;
|
|
9118
9120
|
} catch {
|
|
9119
9121
|
}
|
|
9120
9122
|
}, pe = (M) => {
|
|
@@ -9146,15 +9148,15 @@ const gi = {
|
|
|
9146
9148
|
await ye();
|
|
9147
9149
|
}, fa = async ({ i: M, row: D }) => {
|
|
9148
9150
|
var N, U, X, ee;
|
|
9149
|
-
if (n.list[M] = D,
|
|
9151
|
+
if (n.list[M] = D, v.value) {
|
|
9150
9152
|
await Te();
|
|
9151
9153
|
try {
|
|
9152
|
-
(U = (N =
|
|
9154
|
+
(U = (N = v.value.editorManager) == null ? void 0 : N.cancelEdit) == null || U.call(N);
|
|
9153
9155
|
} catch {
|
|
9154
9156
|
}
|
|
9155
9157
|
await Te();
|
|
9156
9158
|
try {
|
|
9157
|
-
await
|
|
9159
|
+
await v.value.updateOption(oe()), await Te(), (ee = (X = v.value).resize) == null || ee.call(X);
|
|
9158
9160
|
} catch {
|
|
9159
9161
|
}
|
|
9160
9162
|
}
|
|
@@ -9228,14 +9230,14 @@ const gi = {
|
|
|
9228
9230
|
}, null, 8, ["loading"]),
|
|
9229
9231
|
e.noheader === !1 ? (T(), E("div", {
|
|
9230
9232
|
key: 0,
|
|
9231
|
-
class:
|
|
9233
|
+
class: K(["tableHeader flexMode hb g12 p16", e.autoHeader ? "minh64" : "h64"])
|
|
9232
9234
|
}, [
|
|
9233
9235
|
i("div", {
|
|
9234
|
-
class:
|
|
9236
|
+
class: K(["flexMode vc flexGrow maxwp100", e.headerClass])
|
|
9235
9237
|
}, [
|
|
9236
9238
|
Z(M.$slots, "header", {}, void 0, !0)
|
|
9237
9239
|
], 2),
|
|
9238
|
-
s(il).length ? (T(), E("div",
|
|
9240
|
+
s(il).length ? (T(), E("div", vi, [
|
|
9239
9241
|
(T(!0), E(te, null, ie(s(il), (se) => (T(), J(U, {
|
|
9240
9242
|
key: se.key,
|
|
9241
9243
|
class: "tipbtn bottom fs20",
|
|
@@ -9245,7 +9247,7 @@ const gi = {
|
|
|
9245
9247
|
}, Oe({
|
|
9246
9248
|
icon: O(() => [
|
|
9247
9249
|
i("i", {
|
|
9248
|
-
class:
|
|
9250
|
+
class: K(["imicon", se.icon])
|
|
9249
9251
|
}, null, 2)
|
|
9250
9252
|
]),
|
|
9251
9253
|
_: 2
|
|
@@ -9258,16 +9260,16 @@ const gi = {
|
|
|
9258
9260
|
key: "0"
|
|
9259
9261
|
} : void 0
|
|
9260
9262
|
]), 1032, ["txt", "onClick"]))), 128))
|
|
9261
|
-
])) :
|
|
9262
|
-
], 2)) :
|
|
9263
|
-
i("div",
|
|
9263
|
+
])) : G("", !0)
|
|
9264
|
+
], 2)) : G("", !0),
|
|
9265
|
+
i("div", gi, [
|
|
9264
9266
|
i("div", {
|
|
9265
9267
|
class: "vtableWrapper relative wp100 z1",
|
|
9266
9268
|
style: xe({ height: `${s(ha)}px` })
|
|
9267
9269
|
}, [
|
|
9268
9270
|
i("div", {
|
|
9269
9271
|
ref_key: "vtableHost",
|
|
9270
|
-
ref:
|
|
9272
|
+
ref: b,
|
|
9271
9273
|
class: "vtableHost relative wp100 vtableHostFill"
|
|
9272
9274
|
}, null, 512),
|
|
9273
9275
|
Ma(i("div", {
|
|
@@ -9280,7 +9282,7 @@ const gi = {
|
|
|
9280
9282
|
])
|
|
9281
9283
|
], 4)
|
|
9282
9284
|
]),
|
|
9283
|
-
e.nofooter === !1 ? (T(), E("div",
|
|
9285
|
+
e.nofooter === !1 ? (T(), E("div", _i, [
|
|
9284
9286
|
R(X, {
|
|
9285
9287
|
"current-page": s(n).page,
|
|
9286
9288
|
"onUpdate:currentPage": D[0] || (D[0] = (se) => s(n).page = se),
|
|
@@ -9294,7 +9296,7 @@ const gi = {
|
|
|
9294
9296
|
onSizeChange: ra,
|
|
9295
9297
|
onCurrentChange: ia
|
|
9296
9298
|
}, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
|
|
9297
|
-
])) :
|
|
9299
|
+
])) : G("", !0),
|
|
9298
9300
|
R(aa, {
|
|
9299
9301
|
current: s(f).current,
|
|
9300
9302
|
"onUpdate:current": D[1] || (D[1] = (se) => s(f).current = se),
|
|
@@ -9309,18 +9311,18 @@ const gi = {
|
|
|
9309
9311
|
});
|
|
9310
9312
|
};
|
|
9311
9313
|
}
|
|
9312
|
-
}),
|
|
9314
|
+
}), wi = /* @__PURE__ */ ue(yi, [["__scopeId", "data-v-a13ba899"]]), Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9313
9315
|
__proto__: null,
|
|
9314
|
-
default:
|
|
9315
|
-
}, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.assign({ "../component/BtnGroup/index.vue": so, "../component/Card/index.vue": uo, "../component/Drawer/index.vue": bo, "../component/DrawerArea/index.vue": Co, "../component/Form/index.vue": ko, "../component/Frame/index.vue": on, "../component/Icon/index.vue": rn, "../component/Input/index.vue": un, "../component/Lang/index.vue": vn, "../component/List/index.vue": Sn, "../component/Loading/index.vue": kn, "../component/Login/index.vue": Bn, "../component/Note/index.vue": Un, "../component/Page/index.vue":
|
|
9316
|
+
default: wi
|
|
9317
|
+
}, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.assign({ "../component/BtnGroup/index.vue": so, "../component/Card/index.vue": uo, "../component/Drawer/index.vue": bo, "../component/DrawerArea/index.vue": Co, "../component/Form/index.vue": ko, "../component/Frame/index.vue": on, "../component/Icon/index.vue": rn, "../component/Input/index.vue": un, "../component/Lang/index.vue": vn, "../component/List/index.vue": Sn, "../component/Loading/index.vue": kn, "../component/Login/index.vue": Bn, "../component/Note/index.vue": Un, "../component/Page/index.vue": Xn, "../component/Select/index.vue": os, "../component/SelectV2/index.vue": us, "../component/Table/index.vue": nr, "../component/Tabs/index.vue": ir, "../component/Textarea/index.vue": dr, "../component/VTable/index.vue": Ci }), Si = (l) => {
|
|
9316
9318
|
for (let a in kl) {
|
|
9317
9319
|
let t = a.match(/\.\.\/component\/(.*)\/index.vue/)[1];
|
|
9318
9320
|
l.component(t, kl[a].default);
|
|
9319
9321
|
}
|
|
9320
|
-
},
|
|
9322
|
+
}, Ti = {
|
|
9321
9323
|
name: "Matt Avias Frame",
|
|
9322
9324
|
copyright: "©2026",
|
|
9323
|
-
version: "1.0.
|
|
9325
|
+
version: "1.0.72",
|
|
9324
9326
|
author: "Matt Avias",
|
|
9325
9327
|
date: "2026-02-26",
|
|
9326
9328
|
/** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
|
|
@@ -9333,34 +9335,34 @@ const gi = {
|
|
|
9333
9335
|
loginPageName: "Entry",
|
|
9334
9336
|
// Login为保留名称
|
|
9335
9337
|
firstPageName: "Overview_Home"
|
|
9336
|
-
},
|
|
9338
|
+
}, Ai = {
|
|
9337
9339
|
url: "//at.alicdn.com/t/c/font_4830641_s8ulvguq839.js",
|
|
9338
9340
|
prefix: "ant"
|
|
9339
|
-
},
|
|
9341
|
+
}, xi = (l, a = {}) => {
|
|
9340
9342
|
globalThis.$config = {
|
|
9341
|
-
...
|
|
9342
|
-
iconfont:
|
|
9343
|
+
...Ti,
|
|
9344
|
+
iconfont: Ai,
|
|
9343
9345
|
...a
|
|
9344
9346
|
};
|
|
9345
|
-
},
|
|
9346
|
-
l.use(
|
|
9347
|
+
}, Ui = (l, a) => {
|
|
9348
|
+
l.use(xi, a.config).use(qt, a.maps).use(Na, a).use(Si).use(va).use(ga).use(_a, a.pinia).use(ao, a.vueRouter).use(Ia, a.lang);
|
|
9347
9349
|
};
|
|
9348
9350
|
export {
|
|
9349
9351
|
qa as M,
|
|
9350
|
-
|
|
9352
|
+
Di as a,
|
|
9351
9353
|
Yt as b,
|
|
9352
9354
|
rl as c,
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9355
|
+
Hi as d,
|
|
9356
|
+
Bi as e,
|
|
9357
|
+
Fi as f,
|
|
9358
|
+
Vi as g,
|
|
9357
9359
|
qt as h,
|
|
9358
9360
|
Le as i,
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
+
Ri as j,
|
|
9362
|
+
Ui as k,
|
|
9361
9363
|
je as m,
|
|
9362
9364
|
Za as n,
|
|
9363
|
-
|
|
9365
|
+
Pi as p,
|
|
9364
9366
|
Ne as s,
|
|
9365
9367
|
Fe as u
|
|
9366
9368
|
};
|