mvframe 1.0.83 → 1.0.88
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/composition.js +148 -130
- package/dist/css/cpt.css +1 -1
- package/dist/css/style.css +1 -1
- package/dist/vendor.js +1222 -1206
- package/package.json +1 -1
- package/scripts/install-codex-agents.js +6 -2
package/dist/vendor.js
CHANGED
|
@@ -2,9 +2,9 @@ import { u as Ol } from "./util.js";
|
|
|
2
2
|
import { d as Ml } from "./directive.js";
|
|
3
3
|
import { s as Qe, p as el, a as $l } from "./store-shared.js";
|
|
4
4
|
import { createRouter as zl, createWebHistory as El, useRoute as ll, useRouter as al } from "vue-router";
|
|
5
|
-
import { computed as
|
|
5
|
+
import { computed as k, openBlock as S, createElementBlock as $, mergeProps as le, unref as n, Fragment as ee, renderList as oe, normalizeClass as V, createCommentVNode as U, createTextVNode as ae, toDisplayString as E, renderSlot as J, createElementVNode as u, reactive as W, onUnmounted as ce, watch as ne, markRaw as we, resolveComponent as I, createVNode as N, withCtx as L, createBlock as q, resolveDynamicComponent as tl, nextTick as de, getCurrentInstance as ue, ref as Z, onMounted as te, normalizeStyle as se, defineComponent as ol, cloneVNode as Ie, h as Be, inject as ge, withModifiers as me, defineAsyncComponent as nl, Teleport as Ll, Transition as sl, createSlots as pe, normalizeProps as Te, guardReactiveProps as xe, useSlots as jl, useAttrs as be, withKeys as Pl, createStaticVNode as Nl, isRef as rl, onBeforeMount as Rl } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { deepEqual as
|
|
7
|
+
import { deepEqual as Ve, isInView as Dl, loadMvframeTheme as Il, MVFRAME_STORAGE_LANG as Fe, download as Bl, useRemoteSummary as Vl, useOptions as Fl, useLang as Ul } from "./composition.js";
|
|
8
8
|
import Ue from "vuedraggable";
|
|
9
9
|
import Gl from "./notify.js";
|
|
10
10
|
const Kl = {
|
|
@@ -1139,7 +1139,7 @@ const Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1139
1139
|
campany: "MStars All Rights Reserved.",
|
|
1140
1140
|
copyright: "© 2026 mstars.ai",
|
|
1141
1141
|
email: "info@mstars.ai"
|
|
1142
|
-
},
|
|
1142
|
+
}, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1143
1143
|
__proto__: null,
|
|
1144
1144
|
default: Ia
|
|
1145
1145
|
}, Symbol.toStringTag, { value: "Module" })), Ge = Object.freeze([
|
|
@@ -3594,7 +3594,7 @@ function Je(e) {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
return Object.freeze(o);
|
|
3596
3596
|
}
|
|
3597
|
-
function
|
|
3597
|
+
function Va(e) {
|
|
3598
3598
|
const o = /* @__PURE__ */ Object.create(null);
|
|
3599
3599
|
for (const l of e) {
|
|
3600
3600
|
const a = l == null ? void 0 : l.children;
|
|
@@ -3610,7 +3610,7 @@ const Fa = Object.freeze({
|
|
|
3610
3610
|
all: Ge,
|
|
3611
3611
|
allObj: Je(Ge),
|
|
3612
3612
|
group: Ke,
|
|
3613
|
-
groupObj:
|
|
3613
|
+
groupObj: Va(Ke),
|
|
3614
3614
|
asa: He,
|
|
3615
3615
|
asaObj: Je(He)
|
|
3616
3616
|
}), Ua = {
|
|
@@ -3634,7 +3634,7 @@ const Fa = Object.freeze({
|
|
|
3634
3634
|
],
|
|
3635
3635
|
/** `common/timezone.js`:Ads Manager 时区整点偏移选项与工具方法 */
|
|
3636
3636
|
...Da,
|
|
3637
|
-
meta:
|
|
3637
|
+
meta: Ba,
|
|
3638
3638
|
/** `common/country/`:国家/地区列表与分组,含 `*Obj` 映射 */
|
|
3639
3639
|
country: Fa
|
|
3640
3640
|
}, Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -4060,7 +4060,7 @@ function De(e) {
|
|
|
4060
4060
|
}
|
|
4061
4061
|
De.lang = Za;
|
|
4062
4062
|
De.jump = (e) => Se(he(Ne(e)));
|
|
4063
|
-
function
|
|
4063
|
+
function Bs(e) {
|
|
4064
4064
|
!e || typeof e != "object" || Array.isArray(e) || (Le = Re(je(), e));
|
|
4065
4065
|
}
|
|
4066
4066
|
function Xa(e, o = {}) {
|
|
@@ -4183,19 +4183,19 @@ function _e(e, o) {
|
|
|
4183
4183
|
);
|
|
4184
4184
|
const A = document.createElement("div");
|
|
4185
4185
|
A.className = "mvframeTopToastText", A.textContent = a, _.appendChild(A);
|
|
4186
|
-
let
|
|
4186
|
+
let b = null, i = null;
|
|
4187
4187
|
const g = () => {
|
|
4188
|
-
|
|
4189
|
-
_.remove(),
|
|
4188
|
+
b && (clearTimeout(b), b = null), i && (clearTimeout(i), i = null), _.parentNode && (_.classList.add("mvframeTopToastLeave"), i = window.setTimeout(() => {
|
|
4189
|
+
_.remove(), i = null;
|
|
4190
4190
|
}, 200));
|
|
4191
4191
|
};
|
|
4192
4192
|
if (s || t === 0) {
|
|
4193
|
-
const
|
|
4194
|
-
|
|
4193
|
+
const T = document.createElement("button");
|
|
4194
|
+
T.type = "button", T.className = "mvframeTopToastClose", T.setAttribute("aria-label", "Close"), T.textContent = "×", T.addEventListener("click", g), _.appendChild(T);
|
|
4195
4195
|
}
|
|
4196
|
-
c.appendChild(_), t > 0 && (
|
|
4196
|
+
c.appendChild(_), t > 0 && (b = window.setTimeout(g, t));
|
|
4197
4197
|
}
|
|
4198
|
-
function
|
|
4198
|
+
function Vs() {
|
|
4199
4199
|
return {
|
|
4200
4200
|
success: (e) => _e("success", e),
|
|
4201
4201
|
warning: (e) => _e("warning", e),
|
|
@@ -4216,13 +4216,13 @@ const ye = (e) => {
|
|
|
4216
4216
|
e.beforeEach((t, s, c) => {
|
|
4217
4217
|
ye(!0), o && t.meta.admin ? l() ? c() : a && a(t, s, c) : c();
|
|
4218
4218
|
}), e.afterEach((t, s, c) => {
|
|
4219
|
-
var A,
|
|
4219
|
+
var A, b;
|
|
4220
4220
|
if (c) {
|
|
4221
4221
|
ye(!1);
|
|
4222
4222
|
return;
|
|
4223
4223
|
}
|
|
4224
4224
|
const _ = Qe.tab(el);
|
|
4225
|
-
document.title = ((A = t.meta) == null ? void 0 : A.title) || ((
|
|
4225
|
+
document.title = ((A = t.meta) == null ? void 0 : A.title) || ((b = globalThis.$config) == null ? void 0 : b.name), _.saveTab(t), ye(!1);
|
|
4226
4226
|
}), e.onError(() => {
|
|
4227
4227
|
ye(!1);
|
|
4228
4228
|
});
|
|
@@ -4232,7 +4232,7 @@ const ye = (e) => {
|
|
|
4232
4232
|
routes: o
|
|
4233
4233
|
});
|
|
4234
4234
|
l && l(c), at({ router: c, useAdmin: a, adminPermission: t, noaccess: s }), e.use(c), globalThis.$router = c;
|
|
4235
|
-
},
|
|
4235
|
+
}, Q = (e, o) => {
|
|
4236
4236
|
const l = e.__vccOpts || e;
|
|
4237
4237
|
for (const [a, t] of o)
|
|
4238
4238
|
l[a] = t;
|
|
@@ -4279,47 +4279,47 @@ const ye = (e) => {
|
|
|
4279
4279
|
},
|
|
4280
4280
|
emits: ["update:modelValue", "change"],
|
|
4281
4281
|
setup(e, { emit: o }) {
|
|
4282
|
-
const l = e, a = o, t = (
|
|
4283
|
-
const
|
|
4284
|
-
return
|
|
4285
|
-
}, s = (
|
|
4286
|
-
l.disabled || (a("update:modelValue",
|
|
4287
|
-
}, c =
|
|
4288
|
-
const
|
|
4289
|
-
return
|
|
4290
|
-
value:
|
|
4291
|
-
label:
|
|
4292
|
-
icon:
|
|
4293
|
-
disabled:
|
|
4294
|
-
raw:
|
|
4282
|
+
const l = e, a = o, t = (b) => {
|
|
4283
|
+
const i = b.value;
|
|
4284
|
+
return i === l.modelValue && (i !== void 0 || l.modelValue !== void 0);
|
|
4285
|
+
}, s = (b) => {
|
|
4286
|
+
l.disabled || (a("update:modelValue", b.value), a("change", b.value));
|
|
4287
|
+
}, c = k(() => {
|
|
4288
|
+
const b = l.options, i = Array.isArray(b) ? b : [], g = l.valueKey, T = l.labelKey, y = l.iconKey;
|
|
4289
|
+
return i.filter((z) => z != null).map((z) => typeof z == "object" && !Array.isArray(z) ? {
|
|
4290
|
+
value: z[g],
|
|
4291
|
+
label: z[T] ?? "",
|
|
4292
|
+
icon: z[y] || "",
|
|
4293
|
+
disabled: z.disabled,
|
|
4294
|
+
raw: z
|
|
4295
4295
|
} : {
|
|
4296
|
-
value:
|
|
4297
|
-
label: String(
|
|
4296
|
+
value: z,
|
|
4297
|
+
label: String(z),
|
|
4298
4298
|
icon: "",
|
|
4299
|
-
disabled:
|
|
4300
|
-
raw:
|
|
4299
|
+
disabled: z.disabled,
|
|
4300
|
+
raw: z
|
|
4301
4301
|
});
|
|
4302
|
-
}), _ =
|
|
4303
|
-
return (
|
|
4304
|
-
class: ["MvcBtnGroup flexMode", [n(_), n(A),
|
|
4305
|
-
},
|
|
4306
|
-
(
|
|
4302
|
+
}), _ = k(() => ({ small: "g4", default: "g6", large: "g8" })[l.size] ?? "g6"), A = k(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : "");
|
|
4303
|
+
return (b, i) => (S(), $("div", le({
|
|
4304
|
+
class: ["MvcBtnGroup flexMode", [n(_), n(A), b.$attrs.class]]
|
|
4305
|
+
}, b.$attrs, { role: "group" }), [
|
|
4306
|
+
(S(!0), $(ee, null, oe(n(c), (g) => (S(), $("button", {
|
|
4307
4307
|
key: g.value,
|
|
4308
4308
|
type: "button",
|
|
4309
|
-
class:
|
|
4309
|
+
class: V(["btnItem", { isActive: t(g) }]),
|
|
4310
4310
|
disabled: l.disabled || g.disabled,
|
|
4311
|
-
onClick: (
|
|
4311
|
+
onClick: (T) => s(g)
|
|
4312
4312
|
}, [
|
|
4313
|
-
g.icon ? (
|
|
4313
|
+
g.icon ? (S(), $("i", {
|
|
4314
4314
|
key: 0,
|
|
4315
|
-
class:
|
|
4315
|
+
class: V([[g.icon, l.iconClass], "noShrink fs16"]),
|
|
4316
4316
|
"aria-hidden": "true"
|
|
4317
4317
|
}, null, 2)) : U("", !0),
|
|
4318
|
-
|
|
4318
|
+
ae(" " + E(b.$l(g.label)), 1)
|
|
4319
4319
|
], 10, ot))), 128))
|
|
4320
4320
|
], 16));
|
|
4321
4321
|
}
|
|
4322
|
-
}), st = /* @__PURE__ */
|
|
4322
|
+
}), st = /* @__PURE__ */ Q(nt, [["__scopeId", "data-v-97a2b9b8"]]), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4323
4323
|
__proto__: null,
|
|
4324
4324
|
default: st
|
|
4325
4325
|
}, Symbol.toStringTag, { value: "Module" })), it = {
|
|
@@ -4363,29 +4363,29 @@ const ye = (e) => {
|
|
|
4363
4363
|
},
|
|
4364
4364
|
setup(e) {
|
|
4365
4365
|
const o = e;
|
|
4366
|
-
return (l, a) => (
|
|
4366
|
+
return (l, a) => (S(), $("div", le({
|
|
4367
4367
|
class: ["MvcCard", { "MvcCard--fillParent": o.fillParent }]
|
|
4368
4368
|
}, l.$attrs), [
|
|
4369
|
-
o.title || l.$slots.header ? (
|
|
4369
|
+
o.title || l.$slots.header ? (S(), $("div", {
|
|
4370
4370
|
key: 0,
|
|
4371
|
-
class:
|
|
4371
|
+
class: V(["header", o.headerClass])
|
|
4372
4372
|
}, [
|
|
4373
|
-
l.$slots.header ?
|
|
4373
|
+
l.$slots.header ? J(l.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (S(), $("span", it, E(o.title), 1)) : U("", !0)
|
|
4374
4374
|
], 2)) : U("", !0),
|
|
4375
4375
|
u("div", {
|
|
4376
|
-
class:
|
|
4376
|
+
class: V(["body", o.bodyClass])
|
|
4377
4377
|
}, [
|
|
4378
|
-
|
|
4378
|
+
J(l.$slots, "default", {}, void 0, !0)
|
|
4379
4379
|
], 2),
|
|
4380
|
-
l.$slots.footer ? (
|
|
4380
|
+
l.$slots.footer ? (S(), $("div", {
|
|
4381
4381
|
key: 1,
|
|
4382
|
-
class:
|
|
4382
|
+
class: V(["footer", o.footerClass])
|
|
4383
4383
|
}, [
|
|
4384
|
-
|
|
4384
|
+
J(l.$slots, "footer", {}, void 0, !0)
|
|
4385
4385
|
], 2)) : U("", !0)
|
|
4386
4386
|
], 16));
|
|
4387
4387
|
}
|
|
4388
|
-
}), ct = /* @__PURE__ */
|
|
4388
|
+
}), ct = /* @__PURE__ */ Q(ut, [["__scopeId", "data-v-610b0b4c"]]), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4389
4389
|
__proto__: null,
|
|
4390
4390
|
default: ct
|
|
4391
4391
|
}, Symbol.toStringTag, { value: "Module" })), pt = { class: "MvcDrawer" }, bt = { class: "dragArea" }, ft = {
|
|
@@ -4427,79 +4427,79 @@ const ye = (e) => {
|
|
|
4427
4427
|
}), s = o, c = () => {
|
|
4428
4428
|
t.mounted = !0;
|
|
4429
4429
|
}, _ = () => {
|
|
4430
|
-
s("update:current", ""), t.mounted = !1,
|
|
4430
|
+
s("update:current", ""), t.mounted = !1, B.value ? t.drawerInfo = a() : de(() => {
|
|
4431
4431
|
delete t.drawerInfo.cpt;
|
|
4432
4432
|
});
|
|
4433
4433
|
}, A = () => {
|
|
4434
4434
|
t.drawerInfo.visible && (s("update:current", ""), t.drawerInfo.visible = !1);
|
|
4435
|
-
},
|
|
4435
|
+
}, b = () => {
|
|
4436
4436
|
t.drawerInfo.cpt = t.cpt;
|
|
4437
|
-
},
|
|
4438
|
-
t.dragMode = !0, document.addEventListener("mousemove", g), document.addEventListener("mouseup",
|
|
4439
|
-
}, g = (
|
|
4440
|
-
var
|
|
4441
|
-
if (
|
|
4442
|
-
const
|
|
4443
|
-
|
|
4437
|
+
}, i = (m) => {
|
|
4438
|
+
t.dragMode = !0, document.addEventListener("mousemove", g), document.addEventListener("mouseup", T);
|
|
4439
|
+
}, g = (m) => {
|
|
4440
|
+
var p, x;
|
|
4441
|
+
if (m.x > 80) {
|
|
4442
|
+
const C = (((x = (p = globalThis.$config) == null ? void 0 : p.options) == null ? void 0 : x.innerWidth) ?? window.innerWidth) - m.x;
|
|
4443
|
+
C > 480 && (t.drawerInfo.size = C);
|
|
4444
4444
|
}
|
|
4445
|
-
},
|
|
4445
|
+
}, T = () => {
|
|
4446
4446
|
t.dragMode = !1, y();
|
|
4447
4447
|
}, y = () => {
|
|
4448
|
-
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup",
|
|
4449
|
-
},
|
|
4450
|
-
return
|
|
4448
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", T);
|
|
4449
|
+
}, z = k(() => !!t.drawerInfo.title), B = k(() => !l.keepalive);
|
|
4450
|
+
return ce(() => {
|
|
4451
4451
|
y();
|
|
4452
|
-
}),
|
|
4452
|
+
}), ne(
|
|
4453
4453
|
() => l.current,
|
|
4454
|
-
(
|
|
4454
|
+
(m) => {
|
|
4455
4455
|
if (l.drawer.length)
|
|
4456
|
-
if (window.$getType(
|
|
4457
|
-
const
|
|
4458
|
-
...
|
|
4459
|
-
size:
|
|
4460
|
-
direction:
|
|
4456
|
+
if (window.$getType(m) === "Number") {
|
|
4457
|
+
const p = l.drawer[m], x = {
|
|
4458
|
+
...p,
|
|
4459
|
+
size: p.size || 640,
|
|
4460
|
+
direction: p.direction || "rtl",
|
|
4461
4461
|
visible: !0
|
|
4462
4462
|
};
|
|
4463
|
-
|
|
4463
|
+
x.cpt ? (t.cpt = we(x.cpt), delete x.cpt) : (t.cpt = null, c()), t.drawerInfo = x;
|
|
4464
4464
|
} else
|
|
4465
4465
|
A();
|
|
4466
4466
|
}
|
|
4467
|
-
), (
|
|
4468
|
-
const
|
|
4469
|
-
return
|
|
4470
|
-
N(
|
|
4467
|
+
), (m, p) => {
|
|
4468
|
+
const x = I("Loading"), d = I("el-drawer");
|
|
4469
|
+
return S(), $("div", pt, [
|
|
4470
|
+
N(d, {
|
|
4471
4471
|
modelValue: n(t).drawerInfo.visible,
|
|
4472
|
-
"onUpdate:modelValue":
|
|
4473
|
-
title:
|
|
4474
|
-
"with-header": n(
|
|
4472
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => n(t).drawerInfo.visible = C),
|
|
4473
|
+
title: m.$l(n(t).drawerInfo.title),
|
|
4474
|
+
"with-header": n(z),
|
|
4475
4475
|
"append-to-body": "",
|
|
4476
4476
|
size: n(t).drawerInfo.size,
|
|
4477
4477
|
height: n(t).drawerInfo.height,
|
|
4478
4478
|
direction: n(t).drawerInfo.direction,
|
|
4479
|
-
"destroy-on-close": n(
|
|
4479
|
+
"destroy-on-close": n(B),
|
|
4480
4480
|
onClosed: _,
|
|
4481
|
-
onOpened:
|
|
4482
|
-
class:
|
|
4481
|
+
onOpened: b,
|
|
4482
|
+
class: V(n(t).dragMode && "notransition noevent noselect")
|
|
4483
4483
|
}, {
|
|
4484
|
-
default:
|
|
4484
|
+
default: L(() => [
|
|
4485
4485
|
u("div", bt, [
|
|
4486
4486
|
u("div", {
|
|
4487
|
-
class:
|
|
4488
|
-
onMousedown:
|
|
4489
|
-
}, [...
|
|
4487
|
+
class: V(["dragHandle", n(t).dragMode && "active"]),
|
|
4488
|
+
onMousedown: i
|
|
4489
|
+
}, [...p[1] || (p[1] = [
|
|
4490
4490
|
u("i", { class: "imicon im-handle fs12" }, null, -1)
|
|
4491
4491
|
])], 34)
|
|
4492
4492
|
]),
|
|
4493
|
-
n(
|
|
4493
|
+
n(z) ? U("", !0) : (S(), $("div", ft, [
|
|
4494
4494
|
u("i", {
|
|
4495
4495
|
class: "imicon im-close fs20 txt-dark7 hover-txt-primary",
|
|
4496
4496
|
onClick: A
|
|
4497
4497
|
})
|
|
4498
4498
|
])),
|
|
4499
|
-
N(
|
|
4499
|
+
N(x, {
|
|
4500
4500
|
loading: !n(t).mounted
|
|
4501
4501
|
}, null, 8, ["loading"]),
|
|
4502
|
-
|
|
4502
|
+
m.$slots.default ? J(m.$slots, "default", { key: 1 }, void 0, !0) : (S(), q(tl(n(t).drawerInfo.cpt), le({ key: 2 }, m.$attrs, {
|
|
4503
4503
|
params: n(t).drawerInfo.params,
|
|
4504
4504
|
onClose: A,
|
|
4505
4505
|
onMounted: c
|
|
@@ -4510,7 +4510,7 @@ const ye = (e) => {
|
|
|
4510
4510
|
]);
|
|
4511
4511
|
};
|
|
4512
4512
|
}
|
|
4513
|
-
}), vt = /* @__PURE__ */
|
|
4513
|
+
}), vt = /* @__PURE__ */ Q(mt, [["__scopeId", "data-v-3bd55143"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4514
4514
|
__proto__: null,
|
|
4515
4515
|
default: vt
|
|
4516
4516
|
}, Symbol.toStringTag, { value: "Module" })), gt = {
|
|
@@ -4577,8 +4577,8 @@ const ye = (e) => {
|
|
|
4577
4577
|
},
|
|
4578
4578
|
emits: ["close", "submit", "cancel", "mounted"],
|
|
4579
4579
|
setup(e, { expose: o, emit: l }) {
|
|
4580
|
-
const a = e, { proxy: t } =
|
|
4581
|
-
|
|
4580
|
+
const a = e, { proxy: t } = ue(), s = Z(), c = l;
|
|
4581
|
+
te(() => {
|
|
4582
4582
|
c("mounted");
|
|
4583
4583
|
});
|
|
4584
4584
|
const _ = () => {
|
|
@@ -4588,85 +4588,85 @@ const ye = (e) => {
|
|
|
4588
4588
|
};
|
|
4589
4589
|
o({
|
|
4590
4590
|
toClose: _,
|
|
4591
|
-
scrollTo: (
|
|
4591
|
+
scrollTo: (T) => {
|
|
4592
4592
|
var y;
|
|
4593
|
-
(y = s.value) == null || y.setScrollTop(
|
|
4593
|
+
(y = s.value) == null || y.setScrollTop(T);
|
|
4594
4594
|
}
|
|
4595
4595
|
});
|
|
4596
|
-
const
|
|
4596
|
+
const i = k(() => [a.loading && "noevent", t.$attrs.class]), g = k(() => {
|
|
4597
4597
|
const y = a.nofooter ? 0 : 4;
|
|
4598
4598
|
return {
|
|
4599
4599
|
height: a.height ? `${3.5 + y + a.height / 16}rem` : `calc(100vh - ${3.5}rem - ${y}rem - ${a.minusHeight / 16}rem)`
|
|
4600
4600
|
};
|
|
4601
4601
|
});
|
|
4602
|
-
return (
|
|
4603
|
-
const
|
|
4604
|
-
return
|
|
4602
|
+
return (T, y) => {
|
|
4603
|
+
const z = I("Loading"), B = I("el-scrollbar"), m = I("el-button");
|
|
4604
|
+
return S(), $(ee, null, [
|
|
4605
4605
|
u("div", {
|
|
4606
|
-
class:
|
|
4607
|
-
style:
|
|
4606
|
+
class: V(["MvcDrawerBody VAfter", n(i)]),
|
|
4607
|
+
style: se(n(g))
|
|
4608
4608
|
}, [
|
|
4609
|
-
N(
|
|
4609
|
+
N(z, {
|
|
4610
4610
|
loading: a.loading,
|
|
4611
4611
|
txt: a.loadingTxt
|
|
4612
4612
|
}, null, 8, ["loading", "txt"]),
|
|
4613
|
-
a.noscroll ?
|
|
4613
|
+
a.noscroll ? J(T.$slots, "default", { key: 0 }, void 0, !0) : (S(), q(B, {
|
|
4614
4614
|
key: 1,
|
|
4615
4615
|
ref_key: "scrollbar",
|
|
4616
4616
|
ref: s,
|
|
4617
4617
|
class: "wp100"
|
|
4618
4618
|
}, {
|
|
4619
|
-
default:
|
|
4620
|
-
|
|
4619
|
+
default: L(() => [
|
|
4620
|
+
J(T.$slots, "default", {}, void 0, !0)
|
|
4621
4621
|
]),
|
|
4622
4622
|
_: 3
|
|
4623
4623
|
}, 512))
|
|
4624
4624
|
], 6),
|
|
4625
|
-
a.nofooter ? U("", !0) : (
|
|
4625
|
+
a.nofooter ? U("", !0) : (S(), $("div", {
|
|
4626
4626
|
key: 0,
|
|
4627
|
-
class:
|
|
4627
|
+
class: V(["drawerFooter relative flexMode vc hb h64", a.footerClass])
|
|
4628
4628
|
}, [
|
|
4629
|
-
|
|
4630
|
-
|
|
4629
|
+
T.$slots.footer ? J(T.$slots, "footer", { key: 0 }, void 0, !0) : (S(), $("div", gt, [
|
|
4630
|
+
T.$slots.cancel ? J(T.$slots, "cancel", { key: 0 }, void 0, !0) : a.showCancel ? (S(), q(m, {
|
|
4631
4631
|
key: 1,
|
|
4632
4632
|
plain: "",
|
|
4633
4633
|
size: "large",
|
|
4634
4634
|
onClick: _
|
|
4635
4635
|
}, {
|
|
4636
|
-
icon:
|
|
4636
|
+
icon: L(() => [
|
|
4637
4637
|
u("i", {
|
|
4638
|
-
class:
|
|
4638
|
+
class: V(["imicon", a.cancelIcon])
|
|
4639
4639
|
}, null, 2)
|
|
4640
4640
|
]),
|
|
4641
|
-
default:
|
|
4642
|
-
u("span", _t,
|
|
4641
|
+
default: L(() => [
|
|
4642
|
+
u("span", _t, E(T.$l(a.cancelTxt)), 1)
|
|
4643
4643
|
]),
|
|
4644
4644
|
_: 1
|
|
4645
4645
|
})) : U("", !0),
|
|
4646
|
-
|
|
4646
|
+
T.$slots.submit ? J(T.$slots, "submit", { key: 2 }, void 0, !0) : a.showConfirm ? (S(), q(m, {
|
|
4647
4647
|
key: 3,
|
|
4648
4648
|
type: "primary",
|
|
4649
4649
|
size: "large",
|
|
4650
4650
|
loading: a.loading,
|
|
4651
4651
|
onClick: A
|
|
4652
4652
|
}, {
|
|
4653
|
-
icon:
|
|
4653
|
+
icon: L(() => [
|
|
4654
4654
|
u("i", {
|
|
4655
|
-
class:
|
|
4655
|
+
class: V(["imicon", a.confirmIcon])
|
|
4656
4656
|
}, null, 2)
|
|
4657
4657
|
]),
|
|
4658
|
-
default:
|
|
4659
|
-
u("span", yt,
|
|
4658
|
+
default: L(() => [
|
|
4659
|
+
u("span", yt, E(T.$l(a.confirmTxt)), 1)
|
|
4660
4660
|
]),
|
|
4661
4661
|
_: 1
|
|
4662
4662
|
}, 8, ["loading"])) : U("", !0),
|
|
4663
|
-
|
|
4663
|
+
T.$slots.footerright ? J(T.$slots, "footerright", { key: 4 }, void 0, !0) : U("", !0)
|
|
4664
4664
|
]))
|
|
4665
4665
|
], 2))
|
|
4666
4666
|
], 64);
|
|
4667
4667
|
};
|
|
4668
4668
|
}
|
|
4669
|
-
}), St = /* @__PURE__ */
|
|
4669
|
+
}), St = /* @__PURE__ */ Q(wt, [["__scopeId", "data-v-33acb7b3"]]), Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4670
4670
|
__proto__: null,
|
|
4671
4671
|
default: St
|
|
4672
4672
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -4674,7 +4674,7 @@ function At(e) {
|
|
|
4674
4674
|
var l;
|
|
4675
4675
|
if (e == null) return [];
|
|
4676
4676
|
const o = Array.isArray(e) ? e : [e];
|
|
4677
|
-
if (o.length === 1 && ((l = o[0]) == null ? void 0 : l.type) ===
|
|
4677
|
+
if (o.length === 1 && ((l = o[0]) == null ? void 0 : l.type) === ee) {
|
|
4678
4678
|
const a = o[0].children;
|
|
4679
4679
|
return a == null ? [] : Array.isArray(a) ? a : [a];
|
|
4680
4680
|
}
|
|
@@ -4693,24 +4693,24 @@ const Ct = ol({
|
|
|
4693
4693
|
setup(e, o) {
|
|
4694
4694
|
function l(t) {
|
|
4695
4695
|
if (!Array.isArray(t)) return [];
|
|
4696
|
-
const s = t.filter((
|
|
4697
|
-
return c || _.some((
|
|
4696
|
+
const s = t.filter((b) => b && b.children !== "v-if"), c = s.length !== t.length, _ = s.map((b) => a(b));
|
|
4697
|
+
return c || _.some((b, i) => b !== s[i]) ? _ : t;
|
|
4698
4698
|
}
|
|
4699
4699
|
function a(t) {
|
|
4700
|
-
var _, A,
|
|
4700
|
+
var _, A, b, i;
|
|
4701
4701
|
if (!t) return t;
|
|
4702
4702
|
const s = t.children, c = window.$getType(s);
|
|
4703
4703
|
if (((_ = t.type) == null ? void 0 : _.name) === "ElFormItem" && ((A = t.props) == null ? void 0 : A.label) != null) {
|
|
4704
|
-
const g = ((
|
|
4704
|
+
const g = ((i = (b = t.props.label).$l) == null ? void 0 : i.call(b)) || t.props.label;
|
|
4705
4705
|
if (c === "Array") {
|
|
4706
|
-
const
|
|
4707
|
-
return qe(
|
|
4706
|
+
const T = l(s);
|
|
4707
|
+
return qe(T, s) ? Ie(t, { label: g }) : Be(t.type, { ...t.props || {}, label: g }, T);
|
|
4708
4708
|
}
|
|
4709
4709
|
return Ie(t, { label: g });
|
|
4710
4710
|
}
|
|
4711
4711
|
if (c === "Array") {
|
|
4712
4712
|
const g = l(s);
|
|
4713
|
-
return qe(g, s) ? t :
|
|
4713
|
+
return qe(g, s) ? t : Be(t.type, t.props, g);
|
|
4714
4714
|
}
|
|
4715
4715
|
return t;
|
|
4716
4716
|
}
|
|
@@ -4741,34 +4741,34 @@ const Ct = ol({
|
|
|
4741
4741
|
setup(e, { expose: o, emit: l }) {
|
|
4742
4742
|
const a = e, t = W({
|
|
4743
4743
|
form: {}
|
|
4744
|
-
}), { proxy: s } =
|
|
4745
|
-
var
|
|
4744
|
+
}), { proxy: s } = ue(), c = l, _ = async () => {
|
|
4745
|
+
var i;
|
|
4746
4746
|
try {
|
|
4747
|
-
return (
|
|
4747
|
+
return (i = s.$refs) != null && i.form ? (await s.$refs.form.validate(), A()) : !1;
|
|
4748
4748
|
} catch {
|
|
4749
4749
|
return !1;
|
|
4750
4750
|
}
|
|
4751
|
-
}, A = () => t.form,
|
|
4752
|
-
const
|
|
4751
|
+
}, A = () => t.form, b = k(() => {
|
|
4752
|
+
const i = {};
|
|
4753
4753
|
for (let g in a.rules)
|
|
4754
|
-
|
|
4755
|
-
...
|
|
4756
|
-
...
|
|
4754
|
+
i[g] = a.rules[g].map((T) => ({
|
|
4755
|
+
...T,
|
|
4756
|
+
...T.message && { message: window.$l(T.message) }
|
|
4757
4757
|
}));
|
|
4758
|
-
return
|
|
4758
|
+
return i;
|
|
4759
4759
|
});
|
|
4760
|
-
return
|
|
4760
|
+
return ne(
|
|
4761
4761
|
() => t.form,
|
|
4762
|
-
(
|
|
4763
|
-
|
|
4762
|
+
(i) => {
|
|
4763
|
+
i && !Ve(i, a.modelValue) && c("update:modelValue", i);
|
|
4764
4764
|
},
|
|
4765
4765
|
{
|
|
4766
4766
|
deep: !0
|
|
4767
4767
|
}
|
|
4768
|
-
),
|
|
4768
|
+
), ne(
|
|
4769
4769
|
() => a.modelValue,
|
|
4770
|
-
(
|
|
4771
|
-
|
|
4770
|
+
(i) => {
|
|
4771
|
+
i && !Ve(i, t.form) && (t.form = i);
|
|
4772
4772
|
},
|
|
4773
4773
|
{
|
|
4774
4774
|
immediate: !0,
|
|
@@ -4776,21 +4776,21 @@ const Ct = ol({
|
|
|
4776
4776
|
}
|
|
4777
4777
|
), o({
|
|
4778
4778
|
validate: _
|
|
4779
|
-
}), (
|
|
4780
|
-
const
|
|
4781
|
-
return
|
|
4782
|
-
N(
|
|
4779
|
+
}), (i, g) => {
|
|
4780
|
+
const T = I("el-form");
|
|
4781
|
+
return S(), $("div", kt, [
|
|
4782
|
+
N(T, {
|
|
4783
4783
|
ref: "form",
|
|
4784
4784
|
model: n(t).form,
|
|
4785
|
-
rules: n(
|
|
4785
|
+
rules: n(b),
|
|
4786
4786
|
size: a.size,
|
|
4787
4787
|
"validate-on-rule-change": !1,
|
|
4788
4788
|
"label-position": "top"
|
|
4789
4789
|
}, {
|
|
4790
|
-
default:
|
|
4790
|
+
default: L(() => [
|
|
4791
4791
|
N(n(Ct), null, {
|
|
4792
|
-
default:
|
|
4793
|
-
|
|
4792
|
+
default: L(() => [
|
|
4793
|
+
J(i.$slots, "default")
|
|
4794
4794
|
]),
|
|
4795
4795
|
_: 3
|
|
4796
4796
|
})
|
|
@@ -4814,149 +4814,149 @@ const Ct = ol({
|
|
|
4814
4814
|
pageScrolled: !1
|
|
4815
4815
|
});
|
|
4816
4816
|
let l = null, a = null;
|
|
4817
|
-
const t = ge("store"), s = t.tab(), c = t.rmenu(), _ = ll(), A = al(), { proxy:
|
|
4818
|
-
|
|
4819
|
-
|
|
4817
|
+
const t = ge("store"), s = t.tab(), c = t.rmenu(), _ = ll(), A = al(), { proxy: b } = ue();
|
|
4818
|
+
te(() => {
|
|
4819
|
+
i(), y();
|
|
4820
4820
|
});
|
|
4821
|
-
const
|
|
4822
|
-
|
|
4823
|
-
}, g = (
|
|
4824
|
-
let
|
|
4825
|
-
for (;
|
|
4826
|
-
const { overflowY:
|
|
4827
|
-
if ((
|
|
4828
|
-
return
|
|
4829
|
-
|
|
4821
|
+
const i = () => {
|
|
4822
|
+
b.$el.addEventListener("scroll", B);
|
|
4823
|
+
}, g = (f) => {
|
|
4824
|
+
let O = f == null ? void 0 : f.parentElement;
|
|
4825
|
+
for (; O && O !== document.body; ) {
|
|
4826
|
+
const { overflowY: M, overflow: j } = getComputedStyle(O), F = M || j;
|
|
4827
|
+
if ((F === "auto" || F === "scroll" || F === "overlay") && O.scrollHeight > O.clientHeight)
|
|
4828
|
+
return O;
|
|
4829
|
+
O = O.parentElement;
|
|
4830
4830
|
}
|
|
4831
4831
|
return null;
|
|
4832
|
-
},
|
|
4833
|
-
const
|
|
4834
|
-
o.pageScrolled =
|
|
4832
|
+
}, T = () => {
|
|
4833
|
+
const f = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop, O = l ? l.scrollTop : 0;
|
|
4834
|
+
o.pageScrolled = f > 0 || O > 0;
|
|
4835
4835
|
}, y = () => {
|
|
4836
|
-
l = g(
|
|
4837
|
-
const
|
|
4838
|
-
|
|
4836
|
+
l = g(b.$el);
|
|
4837
|
+
const f = () => {
|
|
4838
|
+
T();
|
|
4839
4839
|
};
|
|
4840
|
-
window.addEventListener("scroll",
|
|
4841
|
-
window.removeEventListener("scroll",
|
|
4840
|
+
window.addEventListener("scroll", f, { passive: !0 }), l && l.addEventListener("scroll", f, { passive: !0 }), T(), a = () => {
|
|
4841
|
+
window.removeEventListener("scroll", f), l && l.removeEventListener("scroll", f), l = null;
|
|
4842
4842
|
};
|
|
4843
|
-
},
|
|
4844
|
-
const
|
|
4845
|
-
|
|
4846
|
-
},
|
|
4847
|
-
let
|
|
4848
|
-
|
|
4849
|
-
const { scrollLeft:
|
|
4850
|
-
localStorage.setItem("tabsScroll",
|
|
4843
|
+
}, z = () => {
|
|
4844
|
+
const f = localStorage.getItem("tabsScroll");
|
|
4845
|
+
f && (b.$el.scrollLeft = Number(f));
|
|
4846
|
+
}, B = (f) => {
|
|
4847
|
+
let O = null;
|
|
4848
|
+
O !== null && clearTimeout(O), O = setTimeout(function() {
|
|
4849
|
+
const { scrollLeft: M } = f.target;
|
|
4850
|
+
localStorage.setItem("tabsScroll", M);
|
|
4851
4851
|
}, 100);
|
|
4852
|
-
},
|
|
4853
|
-
|
|
4854
|
-
const
|
|
4855
|
-
Dl(
|
|
4852
|
+
}, m = () => {
|
|
4853
|
+
de(() => {
|
|
4854
|
+
const f = b.$el.querySelector(`#tab_${w.value}`);
|
|
4855
|
+
Dl(b.$el, f) ? z() : b.$el.scrollLeft = (f == null ? void 0 : f.offsetLeft) - 16;
|
|
4856
4856
|
});
|
|
4857
|
-
},
|
|
4857
|
+
}, p = (f, O, M) => {
|
|
4858
4858
|
c.saveData("type", "tabManager"), c.saveData("options", [
|
|
4859
4859
|
{
|
|
4860
4860
|
label: "Close",
|
|
4861
4861
|
value: "close",
|
|
4862
4862
|
icon: "im-close",
|
|
4863
|
-
disabled:
|
|
4863
|
+
disabled: v.value.length === 1,
|
|
4864
4864
|
cb: () => {
|
|
4865
|
-
s.closeTab(
|
|
4865
|
+
s.closeTab(O, M);
|
|
4866
4866
|
}
|
|
4867
4867
|
},
|
|
4868
4868
|
{
|
|
4869
4869
|
label: "Close Right",
|
|
4870
4870
|
value: "closeRight",
|
|
4871
4871
|
icon: "im-right",
|
|
4872
|
-
disabled:
|
|
4872
|
+
disabled: M === v.value.length - 1,
|
|
4873
4873
|
cb: () => {
|
|
4874
|
-
s.closeRightTab(
|
|
4874
|
+
s.closeRightTab(O, M);
|
|
4875
4875
|
}
|
|
4876
4876
|
},
|
|
4877
4877
|
{
|
|
4878
4878
|
label: "Close Left",
|
|
4879
4879
|
value: "closeLeft",
|
|
4880
4880
|
icon: "im-left",
|
|
4881
|
-
disabled:
|
|
4881
|
+
disabled: M === 0,
|
|
4882
4882
|
cb: () => {
|
|
4883
|
-
s.closeLeftTab(
|
|
4883
|
+
s.closeLeftTab(O, M);
|
|
4884
4884
|
}
|
|
4885
4885
|
},
|
|
4886
4886
|
{
|
|
4887
4887
|
label: "Close Other",
|
|
4888
4888
|
value: "closeOther",
|
|
4889
4889
|
icon: "im-left",
|
|
4890
|
-
disabled:
|
|
4890
|
+
disabled: v.value.length === 1,
|
|
4891
4891
|
cb: () => {
|
|
4892
|
-
s.closeOtherTab(
|
|
4892
|
+
s.closeOtherTab(O, M);
|
|
4893
4893
|
}
|
|
4894
4894
|
}
|
|
4895
4895
|
]), c.show({
|
|
4896
4896
|
position: {
|
|
4897
|
-
x:
|
|
4898
|
-
y:
|
|
4897
|
+
x: f.clientX,
|
|
4898
|
+
y: f.clientY
|
|
4899
4899
|
}
|
|
4900
4900
|
});
|
|
4901
|
-
},
|
|
4902
|
-
const
|
|
4903
|
-
(!
|
|
4904
|
-
name:
|
|
4905
|
-
params:
|
|
4906
|
-
query:
|
|
4901
|
+
}, x = (f) => {
|
|
4902
|
+
const O = f.name === w.value, M = JSON.stringify(f.params ?? {}) === JSON.stringify(_.params ?? {}), j = JSON.stringify(f.query ?? {}) === JSON.stringify(_.query ?? {});
|
|
4903
|
+
(!O || !M || !j) && A.push({
|
|
4904
|
+
name: f.name,
|
|
4905
|
+
params: f.params,
|
|
4906
|
+
query: f.query
|
|
4907
4907
|
});
|
|
4908
|
-
},
|
|
4909
|
-
console.info(
|
|
4910
|
-
},
|
|
4911
|
-
s.closeTab(
|
|
4912
|
-
},
|
|
4913
|
-
return
|
|
4914
|
-
() =>
|
|
4915
|
-
(
|
|
4916
|
-
localStorage.setItem("tabs", JSON.stringify(
|
|
4908
|
+
}, d = (f) => {
|
|
4909
|
+
console.info(f.name, w.value), f.name === w.value ? A.replace({ name: f.name, query: { t: +/* @__PURE__ */ new Date() } }) : x(f);
|
|
4910
|
+
}, C = (f, O) => {
|
|
4911
|
+
s.closeTab(f, O);
|
|
4912
|
+
}, v = k(() => s.tabs), w = k(() => _.name), D = k(() => v.value.length);
|
|
4913
|
+
return ne(
|
|
4914
|
+
() => D.value,
|
|
4915
|
+
(f) => {
|
|
4916
|
+
localStorage.setItem("tabs", JSON.stringify(v.value)), f && m();
|
|
4917
4917
|
},
|
|
4918
4918
|
{
|
|
4919
4919
|
immediate: !0
|
|
4920
4920
|
}
|
|
4921
|
-
),
|
|
4922
|
-
() =>
|
|
4921
|
+
), ne(
|
|
4922
|
+
() => w.value,
|
|
4923
4923
|
() => {
|
|
4924
|
-
|
|
4925
|
-
|
|
4924
|
+
de(() => {
|
|
4925
|
+
T();
|
|
4926
4926
|
});
|
|
4927
4927
|
}
|
|
4928
|
-
),
|
|
4929
|
-
|
|
4930
|
-
}), (
|
|
4928
|
+
), ce(() => {
|
|
4929
|
+
b.$el.removeEventListener("scroll", B), a == null || a(), a = null;
|
|
4930
|
+
}), (f, O) => (S(), $("div", Mt, [
|
|
4931
4931
|
u("div", $t, [
|
|
4932
|
-
(
|
|
4933
|
-
key:
|
|
4934
|
-
id: `tab_${
|
|
4935
|
-
class:
|
|
4936
|
-
|
|
4937
|
-
n(
|
|
4932
|
+
(S(!0), $(ee, null, oe(n(v), (M, j) => (S(), $("div", {
|
|
4933
|
+
key: M.name,
|
|
4934
|
+
id: `tab_${M.name}`,
|
|
4935
|
+
class: V(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
|
|
4936
|
+
M.name === n(w) && "active",
|
|
4937
|
+
n(v).length > 1 && "hoverItem"
|
|
4938
4938
|
]]),
|
|
4939
|
-
onContextmenu: me((
|
|
4940
|
-
onClick: (
|
|
4941
|
-
onDblclick: (
|
|
4939
|
+
onContextmenu: me((F) => p(F, M, j), ["prevent", "stop"]),
|
|
4940
|
+
onClick: (F) => x(M),
|
|
4941
|
+
onDblclick: (F) => d(M)
|
|
4942
4942
|
}, [
|
|
4943
|
-
|
|
4943
|
+
M.icon ? (S(), $("i", {
|
|
4944
4944
|
key: 0,
|
|
4945
|
-
class:
|
|
4945
|
+
class: V(["imicon", M.icon])
|
|
4946
4946
|
}, null, 2)) : U("", !0),
|
|
4947
|
-
|
|
4947
|
+
ae(" " + E(M.meta.title) + " ", 1),
|
|
4948
4948
|
u("div", {
|
|
4949
4949
|
class: "abs r flexMode hc vc w20 h20",
|
|
4950
|
-
onClick: me((
|
|
4951
|
-
}, [...
|
|
4950
|
+
onClick: me((F) => C(M, j), ["stop"])
|
|
4951
|
+
}, [...O[0] || (O[0] = [
|
|
4952
4952
|
u("span", null, "✕", -1)
|
|
4953
4953
|
])], 8, Et)
|
|
4954
4954
|
], 42, zt))), 128)),
|
|
4955
|
-
|
|
4955
|
+
O[1] || (O[1] = u("div", { class: "w16 h16 noShrink" }, null, -1))
|
|
4956
4956
|
])
|
|
4957
4957
|
]));
|
|
4958
4958
|
}
|
|
4959
|
-
}), jt = /* @__PURE__ */
|
|
4959
|
+
}), jt = /* @__PURE__ */ Q(Lt, [["__scopeId", "data-v-e9bf80ea"]]), Pt = { class: "LogoArea flexMode vc h64 p0-16 relative" }, Nt = { class: "logo" }, Rt = { class: "logomini" }, Dt = { class: "MenuArea p4 yscroll" }, It = ["onClick"], Bt = { class: "itemIcon w24 txt-c txt-tip fs18" }, Vt = { key: 1 }, Ft = {
|
|
4960
4960
|
key: 0,
|
|
4961
4961
|
class: "itemChildrenArea mt2 p4"
|
|
4962
4962
|
}, Ut = ["onClick"], Gt = { class: "itemIcon w24 txt-c txt-tip fs18" }, Kt = { class: "h64 p8-4" }, Ht = { class: "flexMode vc g8 p8-16 radius4 hover" }, Jt = /* @__PURE__ */ Object.assign({
|
|
@@ -4982,42 +4982,42 @@ const Ct = ol({
|
|
|
4982
4982
|
const l = e, a = W({
|
|
4983
4983
|
collapse: !1
|
|
4984
4984
|
}), t = ll(), s = al(), c = ge("store"), _ = c.launch();
|
|
4985
|
-
|
|
4986
|
-
|
|
4985
|
+
te(() => {
|
|
4986
|
+
b();
|
|
4987
4987
|
});
|
|
4988
|
-
const A = o,
|
|
4989
|
-
const
|
|
4990
|
-
|
|
4991
|
-
},
|
|
4992
|
-
a.collapse === !0 ? a.collapse = !1 : a.collapse === !1 ? a.collapse = !0 : a.collapse =
|
|
4993
|
-
}, g = (
|
|
4994
|
-
|
|
4995
|
-
},
|
|
4996
|
-
var
|
|
4997
|
-
return (
|
|
4998
|
-
}, y = (
|
|
4999
|
-
var
|
|
5000
|
-
return ((
|
|
5001
|
-
},
|
|
5002
|
-
const
|
|
5003
|
-
|
|
5004
|
-
},
|
|
5005
|
-
const
|
|
5006
|
-
s.replace(
|
|
4988
|
+
const A = o, b = () => {
|
|
4989
|
+
const d = localStorage.getItem("collapse");
|
|
4990
|
+
d && (a.collapse = JSON.parse(d)), document.addEventListener("keydown", g);
|
|
4991
|
+
}, i = (d) => {
|
|
4992
|
+
a.collapse === !0 ? a.collapse = !1 : a.collapse === !1 ? a.collapse = !0 : a.collapse = d, localStorage.setItem("collapse", a.collapse), A("on-collapse-change", a.collapse);
|
|
4993
|
+
}, g = (d) => {
|
|
4994
|
+
d.shiftKey && (d.metaKey || d.ctrlKey) && (d.keyCode === 37 ? i(!0) : d.keyCode === 39 && i(!1));
|
|
4995
|
+
}, T = (d) => {
|
|
4996
|
+
var C;
|
|
4997
|
+
return (C = d == null ? void 0 : d.children) != null && C.length ? T(d.children[0]) : d;
|
|
4998
|
+
}, y = (d) => {
|
|
4999
|
+
var C;
|
|
5000
|
+
return ((C = d == null ? void 0 : d.children) == null ? void 0 : C.some((v) => v.name === t.name || y(v))) ?? !1;
|
|
5001
|
+
}, z = (d) => {
|
|
5002
|
+
const C = T(d);
|
|
5003
|
+
C != null && C.name && s.push({ name: C.name });
|
|
5004
|
+
}, B = () => {
|
|
5005
|
+
const d = { ...t.query, _: Date.now() }, C = t.name ? { name: t.name, params: t.params, query: d } : { path: t.path, query: d };
|
|
5006
|
+
s.replace(C).catch(() => {
|
|
5007
5007
|
});
|
|
5008
|
-
},
|
|
5009
|
-
var
|
|
5010
|
-
return ((
|
|
5011
|
-
},
|
|
5012
|
-
const
|
|
5013
|
-
var
|
|
5008
|
+
}, m = () => {
|
|
5009
|
+
var d;
|
|
5010
|
+
return ((d = globalThis.$config) == null ? void 0 : d.loginPageName) || "Entry";
|
|
5011
|
+
}, p = () => {
|
|
5012
|
+
const d = () => {
|
|
5013
|
+
var v, w;
|
|
5014
5014
|
try {
|
|
5015
|
-
const
|
|
5016
|
-
(
|
|
5015
|
+
const D = c.tab();
|
|
5016
|
+
(v = D.closeAllTab) == null || v.call(D), (w = D.$patch) == null || w.call(D, { ctab: {} }), localStorage.removeItem("tabs"), localStorage.removeItem("ctab");
|
|
5017
5017
|
} catch {
|
|
5018
5018
|
}
|
|
5019
|
-
},
|
|
5020
|
-
if (
|
|
5019
|
+
}, C = () => {
|
|
5020
|
+
if (d(), typeof _.clearLogin == "function")
|
|
5021
5021
|
_.clearLogin();
|
|
5022
5022
|
else {
|
|
5023
5023
|
try {
|
|
@@ -5027,103 +5027,103 @@ const Ct = ol({
|
|
|
5027
5027
|
_.$patch({ login: !1, userinfo: {}, loggingOut: !1 });
|
|
5028
5028
|
}
|
|
5029
5029
|
};
|
|
5030
|
-
_.$patch({ loggingOut: !0 }), s.replace({ name:
|
|
5030
|
+
_.$patch({ loggingOut: !0 }), s.replace({ name: m() }).catch(() => s.replace({ path: "/" })).then(C).catch(() => {
|
|
5031
5031
|
_.$patch({ loggingOut: !1 });
|
|
5032
5032
|
try {
|
|
5033
5033
|
s.replace({ path: "/" });
|
|
5034
5034
|
} catch {
|
|
5035
5035
|
}
|
|
5036
|
-
|
|
5036
|
+
C();
|
|
5037
5037
|
});
|
|
5038
|
-
},
|
|
5039
|
-
return
|
|
5038
|
+
}, x = k(() => a.collapse ? "im-verticalleft" : "im-verticalright");
|
|
5039
|
+
return ce(() => {
|
|
5040
5040
|
document.removeEventListener("keydown", g);
|
|
5041
|
-
}), (
|
|
5042
|
-
const
|
|
5043
|
-
return
|
|
5044
|
-
class:
|
|
5041
|
+
}), (d, C) => {
|
|
5042
|
+
const v = I("el-popconfirm");
|
|
5043
|
+
return S(), $("div", {
|
|
5044
|
+
class: V(["FrameMenu sticky vh100 noselect noShrink", n(a).collapse && "collapse"])
|
|
5045
5045
|
}, [
|
|
5046
5046
|
u("div", Pt, [
|
|
5047
5047
|
u("div", Nt, [
|
|
5048
|
-
|
|
5048
|
+
J(d.$slots, "logo", {}, void 0, !0)
|
|
5049
5049
|
]),
|
|
5050
5050
|
u("div", Rt, [
|
|
5051
|
-
|
|
5051
|
+
J(d.$slots, "logomini", {}, void 0, !0)
|
|
5052
5052
|
]),
|
|
5053
5053
|
u("div", {
|
|
5054
5054
|
class: "collapseArea hover abs",
|
|
5055
|
-
onClick:
|
|
5055
|
+
onClick: C[0] || (C[0] = (w) => i(n(a).collapse))
|
|
5056
5056
|
}, [
|
|
5057
5057
|
u("i", {
|
|
5058
|
-
class:
|
|
5058
|
+
class: V(["imicon fs20", n(x)])
|
|
5059
5059
|
}, null, 2)
|
|
5060
5060
|
])
|
|
5061
5061
|
]),
|
|
5062
5062
|
u("div", Dt, [
|
|
5063
|
-
(
|
|
5064
|
-
var
|
|
5065
|
-
return
|
|
5066
|
-
key:
|
|
5063
|
+
(S(!0), $(ee, null, oe(l.routes, (w, D) => {
|
|
5064
|
+
var f, O;
|
|
5065
|
+
return S(), $("div", {
|
|
5066
|
+
key: D,
|
|
5067
5067
|
class: "menuItemWrap mb2"
|
|
5068
5068
|
}, [
|
|
5069
5069
|
u("div", {
|
|
5070
|
-
class:
|
|
5071
|
-
n(t).name ===
|
|
5070
|
+
class: V(["menuItem flexMode vc g8 radius4 p0-16", [
|
|
5071
|
+
n(t).name === w.name && "active bg-primary",
|
|
5072
5072
|
n(a).collapse && "hc",
|
|
5073
|
-
n(a).collapse && y(
|
|
5073
|
+
n(a).collapse && y(w) && "activeChild"
|
|
5074
5074
|
]]),
|
|
5075
|
-
onClick: (
|
|
5076
|
-
onDblclick:
|
|
5075
|
+
onClick: (M) => z(w),
|
|
5076
|
+
onDblclick: B
|
|
5077
5077
|
}, [
|
|
5078
|
-
u("div",
|
|
5079
|
-
|
|
5078
|
+
u("div", Bt, [
|
|
5079
|
+
w.meta.icon ? (S(), $("i", {
|
|
5080
5080
|
key: 0,
|
|
5081
|
-
class:
|
|
5082
|
-
}, null, 2)) : (
|
|
5081
|
+
class: V([l.iconClass, w.meta.icon])
|
|
5082
|
+
}, null, 2)) : (S(), $("span", Vt, E(((f = w.meta.title) == null ? void 0 : f.substr(0, 1)) || "U"), 1))
|
|
5083
5083
|
]),
|
|
5084
5084
|
u("div", {
|
|
5085
|
-
class:
|
|
5086
|
-
n(t).name ===
|
|
5085
|
+
class: V(["itemTitle txt-nowrap fs14", [
|
|
5086
|
+
n(t).name === w.name && "active",
|
|
5087
5087
|
n(a).collapse && "hide"
|
|
5088
5088
|
]])
|
|
5089
|
-
},
|
|
5089
|
+
}, E(w.meta.title), 3)
|
|
5090
5090
|
], 42, It),
|
|
5091
|
-
(
|
|
5092
|
-
(
|
|
5093
|
-
key:
|
|
5094
|
-
class:
|
|
5095
|
-
onClick: (
|
|
5096
|
-
onDblclick:
|
|
5091
|
+
(O = w.children) != null && O.length ? (S(), $("div", Ft, [
|
|
5092
|
+
(S(!0), $(ee, null, oe(w.children, (M, j) => (S(), $("div", {
|
|
5093
|
+
key: j,
|
|
5094
|
+
class: V(["childrenItem flexMode vc g8 radius4 h40 p0-16", n(t).name === M.name && "active bg-primary"]),
|
|
5095
|
+
onClick: (F) => z(M),
|
|
5096
|
+
onDblclick: B
|
|
5097
5097
|
}, [
|
|
5098
5098
|
u("div", Gt, [
|
|
5099
|
-
|
|
5099
|
+
M.meta.icon ? (S(), $("i", {
|
|
5100
5100
|
key: 0,
|
|
5101
|
-
class:
|
|
5101
|
+
class: V([l.iconClass, M.meta.icon])
|
|
5102
5102
|
}, null, 2)) : U("", !0)
|
|
5103
5103
|
]),
|
|
5104
5104
|
u("div", {
|
|
5105
|
-
class:
|
|
5106
|
-
n(t).name ===
|
|
5105
|
+
class: V(["itemTitle txt-nowrap fs14", [
|
|
5106
|
+
n(t).name === M.name && "active",
|
|
5107
5107
|
n(a).collapse && "hide"
|
|
5108
5108
|
]])
|
|
5109
|
-
},
|
|
5109
|
+
}, E(M.meta.title), 3)
|
|
5110
5110
|
], 42, Ut))), 128))
|
|
5111
5111
|
])) : U("", !0)
|
|
5112
5112
|
]);
|
|
5113
5113
|
}), 128))
|
|
5114
5114
|
]),
|
|
5115
5115
|
u("div", Kt, [
|
|
5116
|
-
N(
|
|
5116
|
+
N(v, {
|
|
5117
5117
|
placement: "top",
|
|
5118
|
-
title:
|
|
5119
|
-
onConfirm:
|
|
5118
|
+
title: d.$l("Log out?"),
|
|
5119
|
+
onConfirm: p
|
|
5120
5120
|
}, {
|
|
5121
|
-
reference:
|
|
5121
|
+
reference: L(() => [
|
|
5122
5122
|
u("div", Ht, [
|
|
5123
|
-
|
|
5123
|
+
C[1] || (C[1] = u("i", { class: "imicon im-power fs24" }, null, -1)),
|
|
5124
5124
|
u("span", {
|
|
5125
|
-
class:
|
|
5126
|
-
},
|
|
5125
|
+
class: V(["fs14", n(a).collapse && "hide"])
|
|
5126
|
+
}, E(n(_).userinfo[l.usernameKey]), 3)
|
|
5127
5127
|
])
|
|
5128
5128
|
]),
|
|
5129
5129
|
_: 1
|
|
@@ -5132,20 +5132,20 @@ const Ct = ol({
|
|
|
5132
5132
|
], 2);
|
|
5133
5133
|
};
|
|
5134
5134
|
}
|
|
5135
|
-
}), Yt = /* @__PURE__ */
|
|
5135
|
+
}), Yt = /* @__PURE__ */ Q(Jt, [["__scopeId", "data-v-d7eb624b"]]), Wt = { class: "FrameFooter" }, Zt = { class: "txt-tip" }, qt = { class: "txt-primary" }, Xt = /* @__PURE__ */ Object.assign({
|
|
5136
5136
|
name: "FrameFooter",
|
|
5137
5137
|
inheritAttrs: !1
|
|
5138
5138
|
}, {
|
|
5139
5139
|
__name: "Footer",
|
|
5140
5140
|
setup(e) {
|
|
5141
5141
|
W({});
|
|
5142
|
-
const o =
|
|
5143
|
-
return (l, a) => (
|
|
5144
|
-
u("span", Zt,
|
|
5145
|
-
u("span", qt,
|
|
5142
|
+
const o = k(() => globalThis.$config);
|
|
5143
|
+
return (l, a) => (S(), $("div", Wt, [
|
|
5144
|
+
u("span", Zt, E(n(o).copyright), 1),
|
|
5145
|
+
u("span", qt, E(n(o).author), 1)
|
|
5146
5146
|
]));
|
|
5147
5147
|
}
|
|
5148
|
-
}), Qt = /* @__PURE__ */
|
|
5148
|
+
}), Qt = /* @__PURE__ */ Q(Xt, [["__scopeId", "data-v-c3ba0162"]]), eo = { class: "FrameTool fixed r t flexMode vc g8 p0-8 w40 h40 noShrink z9" }, lo = /* @__PURE__ */ Object.assign({
|
|
5149
5149
|
name: "FrameTool",
|
|
5150
5150
|
inheritAttrs: !1
|
|
5151
5151
|
}, {
|
|
@@ -5165,8 +5165,8 @@ const Ct = ol({
|
|
|
5165
5165
|
l.current = 0;
|
|
5166
5166
|
};
|
|
5167
5167
|
return (t, s) => {
|
|
5168
|
-
const c =
|
|
5169
|
-
return
|
|
5168
|
+
const c = I("Icon"), _ = I("Drawer");
|
|
5169
|
+
return S(), $(ee, null, [
|
|
5170
5170
|
u("div", eo, [
|
|
5171
5171
|
u("div", {
|
|
5172
5172
|
class: "hover w24 h24 flexMode hc vc radius",
|
|
@@ -5199,64 +5199,64 @@ const Ct = ol({
|
|
|
5199
5199
|
x: 0,
|
|
5200
5200
|
y: 0,
|
|
5201
5201
|
ready: !1
|
|
5202
|
-
}), s = (
|
|
5203
|
-
const { position:
|
|
5204
|
-
if (
|
|
5205
|
-
const
|
|
5202
|
+
}), s = (d, C, v) => Math.min(Math.max(d, C), v), c = (d) => Number.isFinite(Number(d)), _ = () => {
|
|
5203
|
+
const { position: d, el: C } = l;
|
|
5204
|
+
if (C != null && C.getBoundingClientRect) {
|
|
5205
|
+
const v = C.getBoundingClientRect();
|
|
5206
5206
|
return {
|
|
5207
|
-
x:
|
|
5208
|
-
y:
|
|
5207
|
+
x: v.left,
|
|
5208
|
+
y: v.bottom + 4
|
|
5209
5209
|
};
|
|
5210
5210
|
}
|
|
5211
|
-
return
|
|
5212
|
-
x: Number(
|
|
5213
|
-
y: Number(
|
|
5211
|
+
return d && c(d.x) && c(d.y) ? {
|
|
5212
|
+
x: Number(d.x),
|
|
5213
|
+
y: Number(d.y)
|
|
5214
5214
|
} : {
|
|
5215
5215
|
x: 0,
|
|
5216
5216
|
y: 0
|
|
5217
5217
|
};
|
|
5218
5218
|
}, A = async () => {
|
|
5219
|
-
if (t.ready = !1, !
|
|
5219
|
+
if (t.ready = !1, !p.value)
|
|
5220
5220
|
return;
|
|
5221
|
-
await
|
|
5222
|
-
const
|
|
5223
|
-
if (!
|
|
5221
|
+
await de();
|
|
5222
|
+
const d = a.value;
|
|
5223
|
+
if (!d)
|
|
5224
5224
|
return;
|
|
5225
|
-
const
|
|
5226
|
-
t.x = s(
|
|
5227
|
-
},
|
|
5225
|
+
const C = _(), v = d.getBoundingClientRect(), w = 8, D = Math.max(w, window.innerWidth - v.width - w), f = Math.max(w, window.innerHeight - v.height - w);
|
|
5226
|
+
t.x = s(C.x, w, D), t.y = s(C.y, w, f), t.ready = !0;
|
|
5227
|
+
}, b = () => {
|
|
5228
5228
|
l.visible && l.hide(), t.ready = !1;
|
|
5229
|
-
},
|
|
5230
|
-
var
|
|
5231
|
-
!
|
|
5232
|
-
}, g = (
|
|
5233
|
-
var
|
|
5234
|
-
!
|
|
5235
|
-
},
|
|
5236
|
-
|
|
5237
|
-
}, y = (
|
|
5238
|
-
var
|
|
5239
|
-
if (!y(
|
|
5229
|
+
}, i = (d) => {
|
|
5230
|
+
var C;
|
|
5231
|
+
!p.value || (C = a.value) != null && C.contains(d.target) || b();
|
|
5232
|
+
}, g = (d) => {
|
|
5233
|
+
var C;
|
|
5234
|
+
!p.value || (C = a.value) != null && C.contains(d.target) || b();
|
|
5235
|
+
}, T = (d) => {
|
|
5236
|
+
d.key === "Escape" && b();
|
|
5237
|
+
}, y = (d) => typeof d.disabled == "function" ? d.disabled(d) : !!d.disabled, z = (d, C) => d.value ?? d.label ?? C, B = (d) => {
|
|
5238
|
+
var C, v;
|
|
5239
|
+
if (!y(d))
|
|
5240
5240
|
try {
|
|
5241
|
-
(
|
|
5241
|
+
(C = d.cb) == null || C.call(d, d), (v = d.onClick) == null || v.call(d, d);
|
|
5242
5242
|
} finally {
|
|
5243
|
-
|
|
5243
|
+
b();
|
|
5244
5244
|
}
|
|
5245
|
-
},
|
|
5245
|
+
}, m = k(() => Array.isArray(l.options) ? l.options.filter(Boolean) : []), p = k(() => l.visible && m.value.length > 0), x = k(() => ({
|
|
5246
5246
|
left: `${t.x}px`,
|
|
5247
5247
|
top: `${t.y}px`,
|
|
5248
5248
|
visibility: t.ready ? "visible" : "hidden"
|
|
5249
5249
|
}));
|
|
5250
|
-
return
|
|
5250
|
+
return ne(
|
|
5251
5251
|
() => {
|
|
5252
|
-
var
|
|
5252
|
+
var d, C;
|
|
5253
5253
|
return [
|
|
5254
5254
|
l.visible,
|
|
5255
5255
|
l.el,
|
|
5256
5256
|
l.options,
|
|
5257
|
-
(
|
|
5258
|
-
(
|
|
5259
|
-
|
|
5257
|
+
(d = l.position) == null ? void 0 : d.x,
|
|
5258
|
+
(C = l.position) == null ? void 0 : C.y,
|
|
5259
|
+
m.value.length
|
|
5260
5260
|
];
|
|
5261
5261
|
},
|
|
5262
5262
|
() => {
|
|
@@ -5265,41 +5265,41 @@ const Ct = ol({
|
|
|
5265
5265
|
{
|
|
5266
5266
|
flush: "post"
|
|
5267
5267
|
}
|
|
5268
|
-
),
|
|
5269
|
-
document.addEventListener("pointerdown",
|
|
5270
|
-
}),
|
|
5271
|
-
document.removeEventListener("pointerdown",
|
|
5272
|
-
}), (
|
|
5268
|
+
), te(() => {
|
|
5269
|
+
document.addEventListener("pointerdown", i, !0), document.addEventListener("contextmenu", g, !0), document.addEventListener("keydown", T), window.addEventListener("resize", b), window.addEventListener("scroll", b, !0);
|
|
5270
|
+
}), ce(() => {
|
|
5271
|
+
document.removeEventListener("pointerdown", i, !0), document.removeEventListener("contextmenu", g, !0), document.removeEventListener("keydown", T), window.removeEventListener("resize", b), window.removeEventListener("scroll", b, !0);
|
|
5272
|
+
}), (d, C) => (S(), q(Ll, { to: "body" }, [
|
|
5273
5273
|
N(sl, { name: "FrameRightMenuFade" }, {
|
|
5274
|
-
default:
|
|
5275
|
-
n(
|
|
5274
|
+
default: L(() => [
|
|
5275
|
+
n(p) ? (S(), $("div", {
|
|
5276
5276
|
key: 0,
|
|
5277
5277
|
ref_key: "menuRef",
|
|
5278
5278
|
ref: a,
|
|
5279
5279
|
class: "FrameRightMenu",
|
|
5280
|
-
style:
|
|
5281
|
-
onClick:
|
|
5280
|
+
style: se(n(x)),
|
|
5281
|
+
onClick: C[0] || (C[0] = me(() => {
|
|
5282
5282
|
}, ["stop"])),
|
|
5283
|
-
onPointerdown:
|
|
5283
|
+
onPointerdown: C[1] || (C[1] = me(() => {
|
|
5284
5284
|
}, ["stop"])),
|
|
5285
|
-
onContextmenu:
|
|
5285
|
+
onContextmenu: C[2] || (C[2] = me(() => {
|
|
5286
5286
|
}, ["prevent", "stop"]))
|
|
5287
5287
|
}, [
|
|
5288
|
-
(
|
|
5289
|
-
key:
|
|
5288
|
+
(S(!0), $(ee, null, oe(n(m), (v, w) => (S(), $(ee, {
|
|
5289
|
+
key: z(v, w)
|
|
5290
5290
|
}, [
|
|
5291
|
-
|
|
5291
|
+
v.divider ? (S(), $("div", ao)) : (S(), $("button", {
|
|
5292
5292
|
key: 1,
|
|
5293
5293
|
type: "button",
|
|
5294
|
-
class:
|
|
5295
|
-
disabled: y(
|
|
5296
|
-
onClick: (
|
|
5294
|
+
class: V(["menuItem", { disabled: y(v) }]),
|
|
5295
|
+
disabled: y(v),
|
|
5296
|
+
onClick: (D) => B(v)
|
|
5297
5297
|
}, [
|
|
5298
|
-
|
|
5298
|
+
v.icon ? (S(), $("i", {
|
|
5299
5299
|
key: 0,
|
|
5300
|
-
class:
|
|
5300
|
+
class: V(["imicon menuIcon", v.icon])
|
|
5301
5301
|
}, null, 2)) : U("", !0),
|
|
5302
|
-
u("span", oo,
|
|
5302
|
+
u("span", oo, E(v.label), 1)
|
|
5303
5303
|
], 10, to))
|
|
5304
5304
|
], 64))), 128))
|
|
5305
5305
|
], 36)) : U("", !0)
|
|
@@ -5308,7 +5308,7 @@ const Ct = ol({
|
|
|
5308
5308
|
})
|
|
5309
5309
|
]));
|
|
5310
5310
|
}
|
|
5311
|
-
}), so = /* @__PURE__ */
|
|
5311
|
+
}), so = /* @__PURE__ */ Q(no, [["__scopeId", "data-v-388539e5"]]), ro = { class: "MvcFrame" }, io = /* @__PURE__ */ Object.assign({
|
|
5312
5312
|
name: "MvcFrame",
|
|
5313
5313
|
inheritAttrs: !1
|
|
5314
5314
|
}, {
|
|
@@ -5332,58 +5332,58 @@ const Ct = ol({
|
|
|
5332
5332
|
},
|
|
5333
5333
|
setup(e) {
|
|
5334
5334
|
const o = e, l = W({}), a = ge("store"), t = a.tab(), s = a.init();
|
|
5335
|
-
|
|
5335
|
+
te(() => {
|
|
5336
5336
|
c();
|
|
5337
5337
|
});
|
|
5338
5338
|
const c = () => {
|
|
5339
5339
|
Il(), _();
|
|
5340
5340
|
}, _ = () => {
|
|
5341
|
-
var g,
|
|
5342
|
-
if ((
|
|
5343
|
-
const
|
|
5344
|
-
if (
|
|
5341
|
+
var g, T, y, z, B, m;
|
|
5342
|
+
if ((T = (g = globalThis.$config) == null ? void 0 : g.iconfont) != null && T.url) {
|
|
5343
|
+
const p = document.createElement("script");
|
|
5344
|
+
if (p.id = "iconfont", p.type = "text/javascript", p.src = (z = (y = globalThis.$config) == null ? void 0 : y.iconfont) == null ? void 0 : z.url, document.getElementById("iconfont"))
|
|
5345
5345
|
return;
|
|
5346
|
-
document.head.appendChild(
|
|
5346
|
+
document.head.appendChild(p), (m = (B = globalThis.$config) == null ? void 0 : B.iconfont) == null || delete m.url;
|
|
5347
5347
|
}
|
|
5348
5348
|
}, A = (g) => {
|
|
5349
5349
|
l.collapse = g;
|
|
5350
|
-
},
|
|
5350
|
+
}, b = k(() => s.pageLoading), i = k(() => ({
|
|
5351
5351
|
maxWidth: l.collapse ? "calc(100% - 4rem)" : "calc(100% - 12rem)"
|
|
5352
5352
|
}));
|
|
5353
|
-
return (g,
|
|
5354
|
-
const y =
|
|
5355
|
-
return
|
|
5356
|
-
N(Yt,
|
|
5353
|
+
return (g, T) => {
|
|
5354
|
+
const y = I("Loading"), z = I("router-view");
|
|
5355
|
+
return S(), $("div", ro, [
|
|
5356
|
+
N(Yt, le(o.menu, { onOnCollapseChange: A }), pe({ _: 2 }, [
|
|
5357
5357
|
g.$slots.logo ? {
|
|
5358
5358
|
name: "logo",
|
|
5359
|
-
fn:
|
|
5360
|
-
|
|
5359
|
+
fn: L(() => [
|
|
5360
|
+
J(g.$slots, "logo", {}, void 0, !0)
|
|
5361
5361
|
]),
|
|
5362
5362
|
key: "0"
|
|
5363
5363
|
} : void 0,
|
|
5364
5364
|
g.$slots.logomini ? {
|
|
5365
5365
|
name: "logomini",
|
|
5366
|
-
fn:
|
|
5367
|
-
|
|
5366
|
+
fn: L(() => [
|
|
5367
|
+
J(g.$slots, "logomini", {}, void 0, !0)
|
|
5368
5368
|
]),
|
|
5369
5369
|
key: "1"
|
|
5370
5370
|
} : void 0
|
|
5371
5371
|
]), 1040),
|
|
5372
5372
|
u("div", {
|
|
5373
5373
|
class: "PageArea",
|
|
5374
|
-
style:
|
|
5374
|
+
style: se(n(i))
|
|
5375
5375
|
}, [
|
|
5376
|
-
N(y, { loading: n(
|
|
5377
|
-
n(t).useTab ? (
|
|
5376
|
+
N(y, { loading: n(b) }, null, 8, ["loading"]),
|
|
5377
|
+
n(t).useTab ? (S(), q(jt, { key: 0 })) : U("", !0),
|
|
5378
5378
|
N(lo),
|
|
5379
|
-
N(
|
|
5379
|
+
N(z, Te(xe(o.page)), null, 16),
|
|
5380
5380
|
N(Qt)
|
|
5381
5381
|
], 4),
|
|
5382
5382
|
N(so)
|
|
5383
5383
|
]);
|
|
5384
5384
|
};
|
|
5385
5385
|
}
|
|
5386
|
-
}), uo = /* @__PURE__ */
|
|
5386
|
+
}), uo = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-ae3008b4"]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5387
5387
|
__proto__: null,
|
|
5388
5388
|
default: uo
|
|
5389
5389
|
}, Symbol.toStringTag, { value: "Module" })), po = ["xlink:href"], bo = /* @__PURE__ */ Object.assign({
|
|
@@ -5404,21 +5404,21 @@ const Ct = ol({
|
|
|
5404
5404
|
const o = e, l = W({
|
|
5405
5405
|
prefix: "imc"
|
|
5406
5406
|
});
|
|
5407
|
-
|
|
5407
|
+
te(() => {
|
|
5408
5408
|
var t, s;
|
|
5409
5409
|
(s = (t = globalThis.$config) == null ? void 0 : t.iconfont) != null && s.prefix && (l.prefix = globalThis.$config.iconfont.prefix);
|
|
5410
5410
|
});
|
|
5411
|
-
const a =
|
|
5411
|
+
const a = k(() => {
|
|
5412
5412
|
const s = `${(Number(o.size) || 20) / 16}rem`;
|
|
5413
5413
|
return {
|
|
5414
5414
|
width: s,
|
|
5415
5415
|
height: s
|
|
5416
5416
|
};
|
|
5417
5417
|
});
|
|
5418
|
-
return (t, s) => (
|
|
5418
|
+
return (t, s) => (S(), $("svg", {
|
|
5419
5419
|
class: "MvcIcon",
|
|
5420
5420
|
"aria-hidden": "true",
|
|
5421
|
-
style:
|
|
5421
|
+
style: se(n(a))
|
|
5422
5422
|
}, [
|
|
5423
5423
|
u("use", {
|
|
5424
5424
|
"xlink:href": `#${n(l).prefix}-${e.name}`
|
|
@@ -5458,75 +5458,79 @@ const Ct = ol({
|
|
|
5458
5458
|
"focus"
|
|
5459
5459
|
],
|
|
5460
5460
|
setup(e, { emit: o }) {
|
|
5461
|
-
const l = e, a = jl(), t =
|
|
5461
|
+
const l = e, a = jl(), t = be(), s = Z(null);
|
|
5462
5462
|
let c = null;
|
|
5463
5463
|
const _ = W({
|
|
5464
5464
|
val: "",
|
|
5465
5465
|
isComposing: !1,
|
|
5466
5466
|
focused: !1
|
|
5467
|
-
}), A = o, { proxy:
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5467
|
+
}), A = o, { proxy: b } = ue(), i = k(() => {
|
|
5468
|
+
const { class: f, ...O } = t;
|
|
5469
|
+
return O;
|
|
5470
|
+
});
|
|
5471
|
+
te(() => {
|
|
5472
|
+
var O, M, j;
|
|
5473
|
+
const f = (O = s.value) == null ? void 0 : O.$el;
|
|
5474
|
+
c = ((M = f == null ? void 0 : f.querySelector) == null ? void 0 : M.call(f, "input")) || ((j = f == null ? void 0 : f.querySelector) == null ? void 0 : j.call(f, "textarea")), c && (c.addEventListener("compositionstart", g), c.addEventListener("compositionend", T));
|
|
5472
5475
|
});
|
|
5473
|
-
const
|
|
5476
|
+
const g = () => {
|
|
5474
5477
|
_.isComposing = !0;
|
|
5475
|
-
},
|
|
5476
|
-
_.isComposing = !1,
|
|
5477
|
-
},
|
|
5478
|
-
_.isComposing ||
|
|
5479
|
-
},
|
|
5480
|
-
_.focused = !0, A("focus",
|
|
5481
|
-
},
|
|
5482
|
-
_.focused = !1, A("blur",
|
|
5483
|
-
},
|
|
5484
|
-
A("update:modelValue",
|
|
5485
|
-
},
|
|
5486
|
-
() => l.materialLabel && (_.focused ||
|
|
5487
|
-
),
|
|
5478
|
+
}, T = () => {
|
|
5479
|
+
_.isComposing = !1, de(() => m(_.val));
|
|
5480
|
+
}, y = (f) => {
|
|
5481
|
+
_.isComposing || m(f);
|
|
5482
|
+
}, z = (f) => {
|
|
5483
|
+
_.focused = !0, A("focus", f);
|
|
5484
|
+
}, B = (f) => {
|
|
5485
|
+
_.focused = !1, A("blur", f);
|
|
5486
|
+
}, m = (f) => {
|
|
5487
|
+
A("update:modelValue", f), A("input", f);
|
|
5488
|
+
}, p = k(() => !!(b.$attrs.maxlength || x.value)), x = k(() => b.$attrs.max), d = k(() => String(_.val ?? "").length > 0), C = k(() => !!t.placeholder), v = k(
|
|
5489
|
+
() => l.materialLabel && (_.focused || d.value || C.value)
|
|
5490
|
+
), w = k(() => ({
|
|
5491
|
+
[t.class]: !!t.class,
|
|
5488
5492
|
hasLabel: !!l.label,
|
|
5489
5493
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
5490
5494
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
5491
|
-
isFloat:
|
|
5495
|
+
isFloat: v.value,
|
|
5492
5496
|
isFocused: _.focused,
|
|
5493
5497
|
isDisabled: !!t.disabled
|
|
5494
|
-
})),
|
|
5498
|
+
})), D = k(
|
|
5495
5499
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
5496
5500
|
);
|
|
5497
|
-
return
|
|
5501
|
+
return ne(
|
|
5498
5502
|
() => l.modelValue,
|
|
5499
|
-
(
|
|
5500
|
-
const
|
|
5501
|
-
String(_.val) !==
|
|
5503
|
+
(f) => {
|
|
5504
|
+
const O = String(f ?? "");
|
|
5505
|
+
String(_.val) !== O && (_.val = O);
|
|
5502
5506
|
},
|
|
5503
5507
|
{ immediate: !0 }
|
|
5504
|
-
),
|
|
5505
|
-
c && (c.removeEventListener("compositionstart",
|
|
5506
|
-
}), (
|
|
5507
|
-
const
|
|
5508
|
-
return
|
|
5509
|
-
class:
|
|
5510
|
-
style:
|
|
5508
|
+
), ce(() => {
|
|
5509
|
+
c && (c.removeEventListener("compositionstart", g), c.removeEventListener("compositionend", T), c = null);
|
|
5510
|
+
}), (f, O) => {
|
|
5511
|
+
const M = I("el-input");
|
|
5512
|
+
return S(), $("div", {
|
|
5513
|
+
class: V(["MvcField MvcFieldInput", n(w)]),
|
|
5514
|
+
style: se(n(D))
|
|
5511
5515
|
}, [
|
|
5512
|
-
l.label ? (
|
|
5513
|
-
N(
|
|
5516
|
+
l.label ? (S(), $("label", mo, E(l.label), 1)) : U("", !0),
|
|
5517
|
+
N(M, le({
|
|
5514
5518
|
ref_key: "inputRef",
|
|
5515
5519
|
ref: s,
|
|
5516
5520
|
modelValue: n(_).val,
|
|
5517
|
-
"onUpdate:modelValue":
|
|
5518
|
-
"show-word-limit": n(
|
|
5519
|
-
maxlength: n(
|
|
5521
|
+
"onUpdate:modelValue": O[0] || (O[0] = (j) => n(_).val = j),
|
|
5522
|
+
"show-word-limit": n(p),
|
|
5523
|
+
maxlength: n(x),
|
|
5520
5524
|
class: "MvcInput"
|
|
5521
|
-
},
|
|
5522
|
-
onInput:
|
|
5523
|
-
onFocus:
|
|
5524
|
-
onBlur:
|
|
5525
|
-
}),
|
|
5526
|
-
|
|
5527
|
-
name:
|
|
5528
|
-
fn:
|
|
5529
|
-
|
|
5525
|
+
}, n(i), {
|
|
5526
|
+
onInput: y,
|
|
5527
|
+
onFocus: z,
|
|
5528
|
+
onBlur: B
|
|
5529
|
+
}), pe({ _: 2 }, [
|
|
5530
|
+
oe(n(a), (j, F) => ({
|
|
5531
|
+
name: F,
|
|
5532
|
+
fn: L((H) => [
|
|
5533
|
+
J(f.$slots, F, Te(xe(H || {})))
|
|
5530
5534
|
])
|
|
5531
5535
|
}))
|
|
5532
5536
|
]), 1040, ["modelValue", "show-word-limit", "maxlength"])
|
|
@@ -5552,50 +5556,50 @@ const Ct = ol({
|
|
|
5552
5556
|
}
|
|
5553
5557
|
},
|
|
5554
5558
|
setup(e) {
|
|
5555
|
-
const o = e, l =
|
|
5556
|
-
const { class:
|
|
5557
|
-
return
|
|
5559
|
+
const o = e, l = be(), a = k(() => {
|
|
5560
|
+
const { class: b, ...i } = l;
|
|
5561
|
+
return i;
|
|
5558
5562
|
}), t = W({
|
|
5559
5563
|
lang: "en_us"
|
|
5560
5564
|
});
|
|
5561
|
-
|
|
5565
|
+
te(() => {
|
|
5562
5566
|
c();
|
|
5563
5567
|
});
|
|
5564
|
-
const s = (
|
|
5568
|
+
const s = (b) => {
|
|
5565
5569
|
var g;
|
|
5566
|
-
const
|
|
5567
|
-
|
|
5570
|
+
const i = (typeof localStorage < "u" ? localStorage.getItem(Fe) : null) || ((g = globalThis.$config) == null ? void 0 : g.lang) || "en_us";
|
|
5571
|
+
b == null || b === i || (typeof localStorage < "u" && localStorage.setItem(Fe, b), window.location.reload());
|
|
5568
5572
|
}, c = () => {
|
|
5569
5573
|
var g;
|
|
5570
|
-
const
|
|
5571
|
-
t.lang =
|
|
5572
|
-
}, _ =
|
|
5573
|
-
var
|
|
5574
|
-
return ((
|
|
5575
|
-
}), A =
|
|
5576
|
-
return (
|
|
5577
|
-
const g =
|
|
5578
|
-
return
|
|
5574
|
+
const b = ((g = globalThis.$getLang) == null ? void 0 : g.call(globalThis)) || "en_us", i = _.value.map((T) => T.value);
|
|
5575
|
+
t.lang = i.includes(b) ? b : i[0] || "en_us";
|
|
5576
|
+
}, _ = k(() => {
|
|
5577
|
+
var i;
|
|
5578
|
+
return ((i = globalThis.$config) != null && i.langUse && Array.isArray(globalThis.$config.langUse) && globalThis.$config.langUse.length > 0 ? globalThis.$config.langUse : Xl.filter((g) => g.use !== !1)).filter((g) => g && g.use !== !1 && g.value);
|
|
5579
|
+
}), A = k(() => _.value.find((b) => b.value === t.lang) ?? null);
|
|
5580
|
+
return (b, i) => {
|
|
5581
|
+
const g = I("el-option"), T = I("el-select");
|
|
5582
|
+
return S(), q(T, le({
|
|
5579
5583
|
modelValue: t.lang,
|
|
5580
|
-
"onUpdate:modelValue":
|
|
5581
|
-
class: ["MvcLang w140",
|
|
5584
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => t.lang = y),
|
|
5585
|
+
class: ["MvcLang w140", b.$attrs.class],
|
|
5582
5586
|
teleported: o.teleported
|
|
5583
5587
|
}, a.value, { onChange: s }), {
|
|
5584
|
-
prefix:
|
|
5585
|
-
A.value ? (
|
|
5586
|
-
u("span", _o,
|
|
5588
|
+
prefix: L(() => [
|
|
5589
|
+
A.value ? (S(), $("div", go, [
|
|
5590
|
+
u("span", _o, E(A.value.txt), 1)
|
|
5587
5591
|
])) : U("", !0)
|
|
5588
5592
|
]),
|
|
5589
|
-
default:
|
|
5590
|
-
(
|
|
5593
|
+
default: L(() => [
|
|
5594
|
+
(S(!0), $(ee, null, oe(_.value, (y) => (S(), q(g, {
|
|
5591
5595
|
key: y.value,
|
|
5592
5596
|
label: y.label,
|
|
5593
5597
|
value: y.value
|
|
5594
5598
|
}, {
|
|
5595
|
-
default:
|
|
5599
|
+
default: L(() => [
|
|
5596
5600
|
u("div", yo, [
|
|
5597
|
-
u("span", wo,
|
|
5598
|
-
u("span", So,
|
|
5601
|
+
u("span", wo, E(y.txt), 1),
|
|
5602
|
+
u("span", So, E(y.label), 1)
|
|
5599
5603
|
])
|
|
5600
5604
|
]),
|
|
5601
5605
|
_: 2
|
|
@@ -5661,65 +5665,65 @@ const Ct = ol({
|
|
|
5661
5665
|
},
|
|
5662
5666
|
emits: ["update:modelValue", "change"],
|
|
5663
5667
|
setup(e, { emit: o }) {
|
|
5664
|
-
const l = e, a = o, t = (
|
|
5665
|
-
l.loading || l.disabled ||
|
|
5666
|
-
}, c = (
|
|
5668
|
+
const l = e, a = o, t = (i) => i.value === l.modelValue, s = (i) => {
|
|
5669
|
+
l.loading || l.disabled || i.disabled || (a("update:modelValue", i.value), a("change", i.value, i.raw));
|
|
5670
|
+
}, c = (i) => {
|
|
5667
5671
|
var y;
|
|
5668
|
-
const g =
|
|
5669
|
-
return
|
|
5670
|
-
}, _ =
|
|
5671
|
-
const
|
|
5672
|
-
return g.filter((
|
|
5673
|
-
value:
|
|
5674
|
-
label:
|
|
5675
|
-
disabled: !!
|
|
5676
|
-
raw:
|
|
5672
|
+
const g = i.value, T = ((y = globalThis.$getType) == null ? void 0 : y.call(globalThis, g)) ?? typeof g;
|
|
5673
|
+
return T === "Object" || T === "Array" ? JSON.stringify(g) : String(g);
|
|
5674
|
+
}, _ = k(() => {
|
|
5675
|
+
const i = l.options, g = Array.isArray(i) ? i : [], T = l.valueKey, y = l.labelKey;
|
|
5676
|
+
return g.filter((z) => z != null).map((z) => typeof z == "object" && !Array.isArray(z) ? {
|
|
5677
|
+
value: z[T],
|
|
5678
|
+
label: z[y] ?? "",
|
|
5679
|
+
disabled: !!z.disabled,
|
|
5680
|
+
raw: z
|
|
5677
5681
|
} : {
|
|
5678
|
-
value:
|
|
5679
|
-
label: String(
|
|
5682
|
+
value: z,
|
|
5683
|
+
label: String(z),
|
|
5680
5684
|
disabled: !1,
|
|
5681
|
-
raw:
|
|
5685
|
+
raw: z
|
|
5682
5686
|
});
|
|
5683
|
-
}), A =
|
|
5684
|
-
var g,
|
|
5685
|
-
const
|
|
5687
|
+
}), A = k(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : ""), b = k(() => {
|
|
5688
|
+
var g, T;
|
|
5689
|
+
const i = (T = (g = l.loadingTxt) == null ? void 0 : g.trim) == null ? void 0 : T.call(g);
|
|
5686
5690
|
return {
|
|
5687
5691
|
icon: l.loadingIcon,
|
|
5688
|
-
showTxt: !!
|
|
5689
|
-
txt:
|
|
5692
|
+
showTxt: !!i,
|
|
5693
|
+
txt: i || "- LOADING -",
|
|
5690
5694
|
radius: 8
|
|
5691
5695
|
};
|
|
5692
5696
|
});
|
|
5693
|
-
return (
|
|
5694
|
-
const
|
|
5695
|
-
return
|
|
5696
|
-
class: ["MvcList", [n(A),
|
|
5697
|
-
},
|
|
5697
|
+
return (i, g) => {
|
|
5698
|
+
const T = I("Loading");
|
|
5699
|
+
return S(), $("div", le({
|
|
5700
|
+
class: ["MvcList", [n(A), i.$attrs.class]]
|
|
5701
|
+
}, i.$attrs), [
|
|
5698
5702
|
u("div", Co, [
|
|
5699
5703
|
u("div", {
|
|
5700
|
-
class:
|
|
5704
|
+
class: V(["listScroll yscroll", l.listClass]),
|
|
5701
5705
|
role: "listbox"
|
|
5702
5706
|
}, [
|
|
5703
|
-
(
|
|
5707
|
+
(S(!0), $(ee, null, oe(n(_), (y) => (S(), $("div", {
|
|
5704
5708
|
key: c(y),
|
|
5705
|
-
class:
|
|
5709
|
+
class: V(["listItem", { active: t(y), isDisabled: y.disabled }]),
|
|
5706
5710
|
role: "option",
|
|
5707
5711
|
"aria-selected": t(y),
|
|
5708
|
-
onClick: (
|
|
5712
|
+
onClick: (z) => s(y)
|
|
5709
5713
|
}, [
|
|
5710
|
-
|
|
5711
|
-
|
|
5714
|
+
J(i.$slots, "item", { option: y }, () => [
|
|
5715
|
+
ae(E(i.$l(y.label)), 1)
|
|
5712
5716
|
], !0)
|
|
5713
5717
|
], 10, ko))), 128))
|
|
5714
5718
|
], 2),
|
|
5715
|
-
N(
|
|
5719
|
+
N(T, le({
|
|
5716
5720
|
loading: l.loading
|
|
5717
|
-
}, n(
|
|
5721
|
+
}, n(b)), null, 16, ["loading"])
|
|
5718
5722
|
])
|
|
5719
5723
|
], 16);
|
|
5720
5724
|
};
|
|
5721
5725
|
}
|
|
5722
|
-
}), Oo = /* @__PURE__ */
|
|
5726
|
+
}), Oo = /* @__PURE__ */ Q(xo, [["__scopeId", "data-v-cb49a0b9"]]), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5723
5727
|
__proto__: null,
|
|
5724
5728
|
default: Oo
|
|
5725
5729
|
}, Symbol.toStringTag, { value: "Module" })), $o = { class: "content flexMode flexV vc g12 relative z1" }, zo = /* @__PURE__ */ Object.assign({
|
|
@@ -5762,38 +5766,38 @@ const Ct = ol({
|
|
|
5762
5766
|
},
|
|
5763
5767
|
setup(e) {
|
|
5764
5768
|
const o = e;
|
|
5765
|
-
return (l, a) => (
|
|
5766
|
-
default:
|
|
5767
|
-
o.loading ? (
|
|
5769
|
+
return (l, a) => (S(), q(sl, { name: "loadingFade" }, {
|
|
5770
|
+
default: L(() => [
|
|
5771
|
+
o.loading ? (S(), $("div", {
|
|
5768
5772
|
key: 0,
|
|
5769
5773
|
class: "MvcLoading absFull hp100 flexMode flexV vc hc ztop",
|
|
5770
5774
|
role: "status",
|
|
5771
5775
|
"aria-busy": "true",
|
|
5772
5776
|
"aria-live": "polite",
|
|
5773
|
-
style:
|
|
5777
|
+
style: se({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
|
|
5774
5778
|
}, [
|
|
5775
5779
|
u("div", $o, [
|
|
5776
5780
|
u("i", {
|
|
5777
|
-
class:
|
|
5781
|
+
class: V([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
|
|
5778
5782
|
"aria-hidden": "true"
|
|
5779
5783
|
}, null, 2),
|
|
5780
|
-
o.showTxt ? (
|
|
5784
|
+
o.showTxt ? (S(), $("span", {
|
|
5781
5785
|
key: 0,
|
|
5782
|
-
class:
|
|
5783
|
-
},
|
|
5786
|
+
class: V(["loaderTxt fs14 txt-c", o.txtClass])
|
|
5787
|
+
}, E(l.$l(o.txt)), 3)) : U("", !0)
|
|
5784
5788
|
])
|
|
5785
5789
|
], 4)) : U("", !0)
|
|
5786
5790
|
]),
|
|
5787
5791
|
_: 1
|
|
5788
5792
|
}));
|
|
5789
5793
|
}
|
|
5790
|
-
}), Eo = /* @__PURE__ */
|
|
5794
|
+
}), Eo = /* @__PURE__ */ Q(zo, [["__scopeId", "data-v-89f58c94"]]), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5791
5795
|
__proto__: null,
|
|
5792
5796
|
default: Eo
|
|
5793
5797
|
}, Symbol.toStringTag, { value: "Module" })), jo = { class: "MvcLogin flexMode flexV hc vc wp100 vh100 p24-16" }, Po = { class: "panelWrap wp100 maxw400 p24 radius8 border noShrink" }, No = { class: "flexMode vc hb mb16" }, Ro = { class: "pl8 fs20 fw700 txt-h1" }, Do = { class: "contentArea minh160" }, Io = {
|
|
5794
5798
|
key: 1,
|
|
5795
5799
|
class: "oauthAuthPanel flexMode flexV g8 wp100 vl"
|
|
5796
|
-
},
|
|
5800
|
+
}, Bo = ["disabled"], Vo = ["disabled"], Fo = {
|
|
5797
5801
|
key: 2,
|
|
5798
5802
|
class: "scanArea flexMode flexV vc g12"
|
|
5799
5803
|
}, Uo = { class: "scanTitle m0 block fs14 txt-h2" }, Go = { class: "footerLine flexMode flexWrap hc g8 mt24 fs12 txt-tip" }, Ae = "mvframe_login_remember", Ko = /* @__PURE__ */ Object.assign({
|
|
@@ -5835,25 +5839,25 @@ const Ct = ol({
|
|
|
5835
5839
|
},
|
|
5836
5840
|
emits: ["success", "submit"],
|
|
5837
5841
|
setup(e, { emit: o }) {
|
|
5838
|
-
const l = e, { proxy: a } =
|
|
5842
|
+
const l = e, { proxy: a } = ue(), t = Z(null), s = Z(!1), c = W({
|
|
5839
5843
|
method: "password",
|
|
5840
5844
|
form: {},
|
|
5841
5845
|
remember: !1
|
|
5842
5846
|
});
|
|
5843
|
-
|
|
5847
|
+
te(() => {
|
|
5844
5848
|
try {
|
|
5845
|
-
const
|
|
5846
|
-
if (
|
|
5847
|
-
const
|
|
5848
|
-
|
|
5849
|
+
const v = localStorage.getItem(Ae);
|
|
5850
|
+
if (v) {
|
|
5851
|
+
const w = JSON.parse(v);
|
|
5852
|
+
w && typeof w == "object" && w.remember && (c.remember = !0, w.username != null && (c.form.username = String(w.username)), w.password != null && (c.form.password = String(w.password)));
|
|
5849
5853
|
}
|
|
5850
5854
|
} catch {
|
|
5851
5855
|
}
|
|
5852
5856
|
});
|
|
5853
|
-
const _ = o, A = (
|
|
5854
|
-
const
|
|
5855
|
-
|
|
5856
|
-
},
|
|
5857
|
+
const _ = o, A = (v, w = "info") => {
|
|
5858
|
+
const D = a == null ? void 0 : a.$message;
|
|
5859
|
+
D != null && D[w] && D[w](v);
|
|
5860
|
+
}, b = () => {
|
|
5857
5861
|
try {
|
|
5858
5862
|
c.remember ? localStorage.setItem(
|
|
5859
5863
|
Ae,
|
|
@@ -5865,77 +5869,77 @@ const Ct = ol({
|
|
|
5865
5869
|
) : localStorage.removeItem(Ae);
|
|
5866
5870
|
} catch {
|
|
5867
5871
|
}
|
|
5868
|
-
},
|
|
5872
|
+
}, i = () => {
|
|
5869
5873
|
A("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
|
|
5870
5874
|
}, g = () => {
|
|
5871
5875
|
A("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
|
|
5872
|
-
},
|
|
5873
|
-
var
|
|
5876
|
+
}, T = async () => {
|
|
5877
|
+
var f, O;
|
|
5874
5878
|
if (l.loading || s.value) return;
|
|
5875
|
-
const
|
|
5876
|
-
if (!
|
|
5877
|
-
const
|
|
5878
|
-
if (!
|
|
5879
|
+
const v = await ((O = (f = t.value) == null ? void 0 : f.validate) == null ? void 0 : O.call(f));
|
|
5880
|
+
if (!v) return;
|
|
5881
|
+
const w = String(v.username ?? "").trim();
|
|
5882
|
+
if (!w)
|
|
5879
5883
|
return;
|
|
5880
|
-
const
|
|
5881
|
-
if (
|
|
5884
|
+
const D = String(v.password ?? "").trim();
|
|
5885
|
+
if (D) {
|
|
5882
5886
|
s.value = !0;
|
|
5883
5887
|
try {
|
|
5884
|
-
const
|
|
5888
|
+
const M = await globalThis.$pm(async () => ({
|
|
5885
5889
|
method: "password",
|
|
5886
|
-
username:
|
|
5887
|
-
password:
|
|
5890
|
+
username: w,
|
|
5891
|
+
password: D
|
|
5888
5892
|
}));
|
|
5889
|
-
|
|
5893
|
+
b(), _("submit", {
|
|
5890
5894
|
method: "password",
|
|
5891
|
-
[
|
|
5892
|
-
[
|
|
5895
|
+
[m.value.username.valueKey]: M.username,
|
|
5896
|
+
[m.value.password.valueKey]: M.password
|
|
5893
5897
|
}), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
|
|
5894
5898
|
} finally {
|
|
5895
5899
|
s.value = !1;
|
|
5896
5900
|
}
|
|
5897
5901
|
}
|
|
5898
|
-
}, y =
|
|
5899
|
-
const
|
|
5902
|
+
}, y = k(() => !!l.loading || s.value), z = k(() => {
|
|
5903
|
+
const v = globalThis.$config;
|
|
5900
5904
|
return {
|
|
5901
|
-
copyright: (
|
|
5902
|
-
author: (
|
|
5905
|
+
copyright: (v == null ? void 0 : v.copyright) ?? "",
|
|
5906
|
+
author: (v == null ? void 0 : v.author) ?? ""
|
|
5903
5907
|
};
|
|
5904
|
-
}),
|
|
5908
|
+
}), B = k(() => d[c.method] ?? "Login"), m = k(() => ({
|
|
5905
5909
|
username: {
|
|
5906
|
-
...
|
|
5910
|
+
...C.username,
|
|
5907
5911
|
...l.formFileds.username || {}
|
|
5908
5912
|
},
|
|
5909
5913
|
password: {
|
|
5910
|
-
...
|
|
5914
|
+
...C.password,
|
|
5911
5915
|
...l.formFileds.password || {}
|
|
5912
5916
|
}
|
|
5913
|
-
})),
|
|
5917
|
+
})), p = k(() => ({
|
|
5914
5918
|
username: [
|
|
5915
5919
|
{
|
|
5916
5920
|
required: !0,
|
|
5917
|
-
message:
|
|
5921
|
+
message: m.value.username.message,
|
|
5918
5922
|
trigger: "blur"
|
|
5919
5923
|
}
|
|
5920
5924
|
],
|
|
5921
5925
|
password: [
|
|
5922
5926
|
{
|
|
5923
5927
|
required: !0,
|
|
5924
|
-
message:
|
|
5928
|
+
message: m.value.password.message,
|
|
5925
5929
|
trigger: "blur"
|
|
5926
5930
|
}
|
|
5927
5931
|
]
|
|
5928
|
-
})),
|
|
5932
|
+
})), x = k(() => [
|
|
5929
5933
|
{ value: "password", label: "Account" },
|
|
5930
5934
|
{ value: "auth", label: "Google/Apple" },
|
|
5931
5935
|
{ value: "dingtalk", label: "DingTalk" },
|
|
5932
5936
|
{ value: "feishu", label: "Lark" },
|
|
5933
5937
|
{ value: "wechat", label: "Wechat" }
|
|
5934
|
-
].filter((
|
|
5938
|
+
].filter((v, w) => l.loginMethods.includes(w))), d = {
|
|
5935
5939
|
dingtalk: "DingTalk",
|
|
5936
5940
|
feishu: "Lark",
|
|
5937
5941
|
wechat: "Wechat"
|
|
5938
|
-
},
|
|
5942
|
+
}, C = {
|
|
5939
5943
|
username: {
|
|
5940
5944
|
label: "Account",
|
|
5941
5945
|
placeholder: "Enter your account",
|
|
@@ -5953,48 +5957,48 @@ const Ct = ol({
|
|
|
5953
5957
|
valueKey: "password"
|
|
5954
5958
|
}
|
|
5955
5959
|
};
|
|
5956
|
-
return (
|
|
5957
|
-
const
|
|
5958
|
-
return
|
|
5960
|
+
return (v, w) => {
|
|
5961
|
+
const D = I("BtnGroup"), f = I("Input"), O = I("el-form-item"), M = I("el-checkbox"), j = I("el-button"), F = I("Form");
|
|
5962
|
+
return S(), $("div", jo, [
|
|
5959
5963
|
u("div", Po, [
|
|
5960
5964
|
u("div", No, [
|
|
5961
|
-
u("span", Ro,
|
|
5965
|
+
u("span", Ro, E(v.$l(l.title)), 1)
|
|
5962
5966
|
]),
|
|
5963
|
-
N(
|
|
5967
|
+
N(D, {
|
|
5964
5968
|
modelValue: n(c).method,
|
|
5965
|
-
"onUpdate:modelValue":
|
|
5966
|
-
options: n(
|
|
5969
|
+
"onUpdate:modelValue": w[0] || (w[0] = (H) => n(c).method = H),
|
|
5970
|
+
options: n(x),
|
|
5967
5971
|
disabled: n(y),
|
|
5968
5972
|
size: "small",
|
|
5969
5973
|
class: "mb32"
|
|
5970
5974
|
}, null, 8, ["modelValue", "options", "disabled"]),
|
|
5971
5975
|
u("div", Do, [
|
|
5972
|
-
n(c).method === "password" ? (
|
|
5976
|
+
n(c).method === "password" ? (S(), q(F, {
|
|
5973
5977
|
key: 0,
|
|
5974
5978
|
ref_key: "pwdFormRef",
|
|
5975
5979
|
ref: t,
|
|
5976
5980
|
modelValue: n(c).form,
|
|
5977
|
-
"onUpdate:modelValue":
|
|
5981
|
+
"onUpdate:modelValue": w[4] || (w[4] = (H) => n(c).form = H),
|
|
5978
5982
|
size: "default",
|
|
5979
|
-
rules: n(
|
|
5983
|
+
rules: n(p)
|
|
5980
5984
|
}, {
|
|
5981
|
-
default:
|
|
5982
|
-
N(
|
|
5983
|
-
default:
|
|
5984
|
-
N(
|
|
5985
|
+
default: L(() => [
|
|
5986
|
+
N(O, { prop: "username" }, {
|
|
5987
|
+
default: L(() => [
|
|
5988
|
+
N(f, {
|
|
5985
5989
|
modelValue: n(c).form.username,
|
|
5986
|
-
"onUpdate:modelValue":
|
|
5990
|
+
"onUpdate:modelValue": w[1] || (w[1] = (H) => n(c).form.username = H),
|
|
5987
5991
|
class: "wp100",
|
|
5988
5992
|
size: "large",
|
|
5989
5993
|
name: "username",
|
|
5990
|
-
placeholder: n(
|
|
5994
|
+
placeholder: n(m).username.placeholder,
|
|
5991
5995
|
disabled: n(y)
|
|
5992
|
-
},
|
|
5993
|
-
n(
|
|
5996
|
+
}, pe({ _: 2 }, [
|
|
5997
|
+
n(m).username.showPrefix ? {
|
|
5994
5998
|
name: "prefix",
|
|
5995
|
-
fn:
|
|
5999
|
+
fn: L(() => [
|
|
5996
6000
|
u("i", {
|
|
5997
|
-
class:
|
|
6001
|
+
class: V(n(m).username.icon)
|
|
5998
6002
|
}, null, 2)
|
|
5999
6003
|
]),
|
|
6000
6004
|
key: "0"
|
|
@@ -6003,25 +6007,25 @@ const Ct = ol({
|
|
|
6003
6007
|
]),
|
|
6004
6008
|
_: 1
|
|
6005
6009
|
}),
|
|
6006
|
-
N(
|
|
6007
|
-
default:
|
|
6008
|
-
N(
|
|
6010
|
+
N(O, { prop: "password" }, {
|
|
6011
|
+
default: L(() => [
|
|
6012
|
+
N(f, {
|
|
6009
6013
|
modelValue: n(c).form.password,
|
|
6010
|
-
"onUpdate:modelValue":
|
|
6014
|
+
"onUpdate:modelValue": w[2] || (w[2] = (H) => n(c).form.password = H),
|
|
6011
6015
|
class: "wp100",
|
|
6012
6016
|
size: "large",
|
|
6013
6017
|
type: "password",
|
|
6014
6018
|
name: "password",
|
|
6015
|
-
placeholder: n(
|
|
6019
|
+
placeholder: n(m).password.placeholder,
|
|
6016
6020
|
"show-password": "",
|
|
6017
6021
|
disabled: n(y),
|
|
6018
|
-
onKeyup: Pl(
|
|
6019
|
-
},
|
|
6020
|
-
n(
|
|
6022
|
+
onKeyup: Pl(T, ["enter"])
|
|
6023
|
+
}, pe({ _: 2 }, [
|
|
6024
|
+
n(m).password.showPrefix ? {
|
|
6021
6025
|
name: "prefix",
|
|
6022
|
-
fn:
|
|
6026
|
+
fn: L(() => [
|
|
6023
6027
|
u("i", {
|
|
6024
|
-
class:
|
|
6028
|
+
class: V(n(m).password.icon)
|
|
6025
6029
|
}, null, 2)
|
|
6026
6030
|
]),
|
|
6027
6031
|
key: "0"
|
|
@@ -6030,52 +6034,52 @@ const Ct = ol({
|
|
|
6030
6034
|
]),
|
|
6031
6035
|
_: 1
|
|
6032
6036
|
}),
|
|
6033
|
-
N(
|
|
6034
|
-
default:
|
|
6035
|
-
N(
|
|
6037
|
+
N(O, null, {
|
|
6038
|
+
default: L(() => [
|
|
6039
|
+
N(M, {
|
|
6036
6040
|
modelValue: n(c).remember,
|
|
6037
|
-
"onUpdate:modelValue":
|
|
6041
|
+
"onUpdate:modelValue": w[3] || (w[3] = (H) => n(c).remember = H),
|
|
6038
6042
|
disabled: n(y)
|
|
6039
6043
|
}, {
|
|
6040
|
-
default:
|
|
6041
|
-
|
|
6044
|
+
default: L(() => [
|
|
6045
|
+
ae(E(v.$l(l.rememberTxt)), 1)
|
|
6042
6046
|
]),
|
|
6043
6047
|
_: 1
|
|
6044
6048
|
}, 8, ["modelValue", "disabled"])
|
|
6045
6049
|
]),
|
|
6046
6050
|
_: 1
|
|
6047
6051
|
}),
|
|
6048
|
-
N(
|
|
6052
|
+
N(j, {
|
|
6049
6053
|
type: "primary",
|
|
6050
6054
|
size: "large",
|
|
6051
6055
|
class: "wp100",
|
|
6052
6056
|
loading: n(y),
|
|
6053
6057
|
disabled: n(y),
|
|
6054
|
-
onClick:
|
|
6058
|
+
onClick: T
|
|
6055
6059
|
}, {
|
|
6056
|
-
default:
|
|
6057
|
-
|
|
6060
|
+
default: L(() => [
|
|
6061
|
+
ae(E(v.$l(l.submitTxt)), 1)
|
|
6058
6062
|
]),
|
|
6059
6063
|
_: 1
|
|
6060
6064
|
}, 8, ["loading", "disabled"])
|
|
6061
6065
|
]),
|
|
6062
6066
|
_: 1
|
|
6063
|
-
}, 8, ["modelValue", "rules"])) : n(c).method === "auth" ? (
|
|
6064
|
-
|
|
6067
|
+
}, 8, ["modelValue", "rules"])) : n(c).method === "auth" ? (S(), $("div", Io, [
|
|
6068
|
+
w[7] || (w[7] = u("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
|
|
6065
6069
|
u("button", {
|
|
6066
6070
|
type: "button",
|
|
6067
6071
|
class: "oauthGoogle wp100 mb36",
|
|
6068
6072
|
disabled: n(y),
|
|
6069
|
-
onClick:
|
|
6070
|
-
}, [...
|
|
6073
|
+
onClick: i
|
|
6074
|
+
}, [...w[5] || (w[5] = [
|
|
6071
6075
|
Nl('<svg class="oauthGoogleLogo noShrink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="18" height="18" aria-hidden="true" data-v-6faa6992><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" data-v-6faa6992></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" data-v-6faa6992></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" data-v-6faa6992></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z" data-v-6faa6992></path></svg><span class="oauthGoogleLabel" data-v-6faa6992>Sign in with Google</span>', 2)
|
|
6072
|
-
])], 8,
|
|
6076
|
+
])], 8, Bo),
|
|
6073
6077
|
u("button", {
|
|
6074
6078
|
type: "button",
|
|
6075
6079
|
class: "oauthApple wp100 mb16",
|
|
6076
6080
|
disabled: n(y),
|
|
6077
6081
|
onClick: g
|
|
6078
|
-
}, [...
|
|
6082
|
+
}, [...w[6] || (w[6] = [
|
|
6079
6083
|
u("svg", {
|
|
6080
6084
|
class: "oauthAppleLogo noShrink",
|
|
6081
6085
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6090,24 +6094,24 @@ const Ct = ol({
|
|
|
6090
6094
|
})
|
|
6091
6095
|
], -1),
|
|
6092
6096
|
u("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
|
|
6093
|
-
])], 8,
|
|
6094
|
-
])) : (
|
|
6095
|
-
u("p", Uo,
|
|
6097
|
+
])], 8, Vo)
|
|
6098
|
+
])) : (S(), $("div", Fo, [
|
|
6099
|
+
u("p", Uo, E(n(B)), 1),
|
|
6096
6100
|
u("div", {
|
|
6097
|
-
class:
|
|
6101
|
+
class: V(["qrBlock w180 h180 radius6", `qr-${n(c).method}`]),
|
|
6098
6102
|
"aria-hidden": "true"
|
|
6099
6103
|
}, null, 2)
|
|
6100
6104
|
]))
|
|
6101
6105
|
])
|
|
6102
6106
|
]),
|
|
6103
6107
|
u("div", Go, [
|
|
6104
|
-
u("span", null,
|
|
6105
|
-
u("span", null,
|
|
6108
|
+
u("span", null, E(n(z).copyright), 1),
|
|
6109
|
+
u("span", null, E(n(z).author), 1)
|
|
6106
6110
|
])
|
|
6107
6111
|
]);
|
|
6108
6112
|
};
|
|
6109
6113
|
}
|
|
6110
|
-
}), Ho = /* @__PURE__ */
|
|
6114
|
+
}), Ho = /* @__PURE__ */ Q(Ko, [["__scopeId", "data-v-6faa6992"]]), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6111
6115
|
__proto__: null,
|
|
6112
6116
|
default: Ho
|
|
6113
6117
|
}, Symbol.toStringTag, { value: "Module" })), Yo = /* @__PURE__ */ Object.assign({
|
|
@@ -6134,17 +6138,17 @@ const Ct = ol({
|
|
|
6134
6138
|
setup(e) {
|
|
6135
6139
|
const o = e;
|
|
6136
6140
|
W({});
|
|
6137
|
-
const l =
|
|
6141
|
+
const l = k(() => ({
|
|
6138
6142
|
borderInlineStart: `${(Number(o.size) || 4) / 16}rem ${o.type} var(--color-${o.color})`
|
|
6139
6143
|
}));
|
|
6140
|
-
return (a, t) => (
|
|
6144
|
+
return (a, t) => (S(), $("div", {
|
|
6141
6145
|
class: "MvcNote",
|
|
6142
|
-
style:
|
|
6146
|
+
style: se(n(l))
|
|
6143
6147
|
}, [
|
|
6144
|
-
|
|
6148
|
+
J(a.$slots, "default", {}, void 0, !0)
|
|
6145
6149
|
], 4));
|
|
6146
6150
|
}
|
|
6147
|
-
}), Wo = /* @__PURE__ */
|
|
6151
|
+
}), Wo = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e3e84cc8"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6148
6152
|
__proto__: null,
|
|
6149
6153
|
default: Wo
|
|
6150
6154
|
}, Symbol.toStringTag, { value: "Module" })), qo = {
|
|
@@ -6174,35 +6178,35 @@ const Ct = ol({
|
|
|
6174
6178
|
}
|
|
6175
6179
|
},
|
|
6176
6180
|
setup(e) {
|
|
6177
|
-
const o = e, { proxy: l } =
|
|
6181
|
+
const o = e, { proxy: l } = ue(), t = ge("store").tab(), s = k(() => o.title || o.subtitle), c = k(() => t.useTab), _ = k(() => {
|
|
6178
6182
|
let A = "calc(100vh";
|
|
6179
6183
|
return t.useTab && (A += " - 2.25rem"), o.noheader || (A += " - 4rem"), {
|
|
6180
6184
|
minHeight: `${A})`
|
|
6181
6185
|
};
|
|
6182
6186
|
});
|
|
6183
|
-
return (A,
|
|
6184
|
-
class:
|
|
6187
|
+
return (A, b) => (S(), $("div", {
|
|
6188
|
+
class: V(["MvcPage", n(c) && "hasTab"])
|
|
6185
6189
|
}, [
|
|
6186
|
-
o.noheader ? U("", !0) : (
|
|
6190
|
+
o.noheader ? U("", !0) : (S(), $("div", qo, [
|
|
6187
6191
|
u("div", Xo, [
|
|
6188
|
-
A.$slots.header ?
|
|
6189
|
-
u("h3", Qo,
|
|
6190
|
-
u("p", en,
|
|
6192
|
+
A.$slots.header ? J(A.$slots, "header", { key: 0 }, void 0, !0) : n(s) ? (S(), $(ee, { key: 1 }, [
|
|
6193
|
+
u("h3", Qo, E(o.title), 1),
|
|
6194
|
+
u("p", en, E(o.subtitle), 1)
|
|
6191
6195
|
], 64)) : U("", !0)
|
|
6192
6196
|
]),
|
|
6193
6197
|
u("div", ln, [
|
|
6194
|
-
A.$slots.right ?
|
|
6198
|
+
A.$slots.right ? J(A.$slots, "right", { key: 0 }, void 0, !0) : U("", !0)
|
|
6195
6199
|
])
|
|
6196
6200
|
])),
|
|
6197
6201
|
u("div", {
|
|
6198
|
-
class:
|
|
6199
|
-
style:
|
|
6202
|
+
class: V(["PageBody", o.bodyClass]),
|
|
6203
|
+
style: se(n(_))
|
|
6200
6204
|
}, [
|
|
6201
|
-
|
|
6205
|
+
J(A.$slots, "default", {}, void 0, !0)
|
|
6202
6206
|
], 6)
|
|
6203
6207
|
], 2));
|
|
6204
6208
|
}
|
|
6205
|
-
}), tn = /* @__PURE__ */
|
|
6209
|
+
}), tn = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-060130ad"]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6206
6210
|
__proto__: null,
|
|
6207
6211
|
default: tn
|
|
6208
6212
|
}, Symbol.toStringTag, { value: "Module" })), nn = {
|
|
@@ -6261,164 +6265,168 @@ const Ct = ol({
|
|
|
6261
6265
|
},
|
|
6262
6266
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
6263
6267
|
setup(e, { emit: o }) {
|
|
6264
|
-
const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1),
|
|
6265
|
-
l.multiple ? (t.value = Array.isArray(
|
|
6266
|
-
},
|
|
6267
|
-
if (s.value =
|
|
6268
|
-
const
|
|
6269
|
-
t.value = Array.isArray(
|
|
6268
|
+
const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1), b = be(), i = o, g = (r) => {
|
|
6269
|
+
l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
|
|
6270
|
+
}, T = (r) => {
|
|
6271
|
+
if (s.value = r, r && l.multiple) {
|
|
6272
|
+
const h = l.modelValue;
|
|
6273
|
+
t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
|
|
6270
6274
|
}
|
|
6271
|
-
}, y = (
|
|
6272
|
-
A.value = !0,
|
|
6273
|
-
},
|
|
6274
|
-
A.value = !1,
|
|
6275
|
-
},
|
|
6276
|
-
var
|
|
6277
|
-
if (!l.filterable || !s.value) return
|
|
6278
|
-
const
|
|
6279
|
-
return Array.isArray(
|
|
6280
|
-
},
|
|
6281
|
-
const
|
|
6282
|
-
return Number.isFinite(
|
|
6283
|
-
},
|
|
6284
|
-
const
|
|
6285
|
-
if (
|
|
6286
|
-
const
|
|
6287
|
-
for (const
|
|
6288
|
-
if (!
|
|
6289
|
-
if (
|
|
6290
|
-
|
|
6275
|
+
}, y = (r) => {
|
|
6276
|
+
A.value = !0, i("focus", r);
|
|
6277
|
+
}, z = (r) => {
|
|
6278
|
+
A.value = !1, i("blur", r);
|
|
6279
|
+
}, B = () => {
|
|
6280
|
+
var R;
|
|
6281
|
+
if (!l.filterable || !s.value) return d();
|
|
6282
|
+
const r = a.value, h = ((R = r == null ? void 0 : r.optionsArray) == null ? void 0 : R.value) ?? (r == null ? void 0 : r.optionsArray) ?? [];
|
|
6283
|
+
return Array.isArray(h) ? h.filter((P) => P.visible && !P.isDisabled).map((P) => P.value) : d();
|
|
6284
|
+
}, m = () => {
|
|
6285
|
+
const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
|
|
6286
|
+
return Number.isFinite(h) && h > 0 ? h : 0;
|
|
6287
|
+
}, p = (r) => {
|
|
6288
|
+
const h = B();
|
|
6289
|
+
if (r) {
|
|
6290
|
+
const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
|
|
6291
|
+
for (const Y of h)
|
|
6292
|
+
if (!G.has(Y)) {
|
|
6293
|
+
if (R > 0 && K.length >= R) break;
|
|
6294
|
+
G.add(Y), K.push(Y);
|
|
6291
6295
|
}
|
|
6292
6296
|
t.value = K;
|
|
6293
6297
|
} else {
|
|
6294
|
-
const
|
|
6295
|
-
t.value = t.value.filter((
|
|
6298
|
+
const R = new Set(h);
|
|
6299
|
+
t.value = t.value.filter((P) => !R.has(P));
|
|
6296
6300
|
}
|
|
6297
|
-
|
|
6298
|
-
},
|
|
6299
|
-
var
|
|
6300
|
-
l.multiple && (
|
|
6301
|
-
},
|
|
6302
|
-
const
|
|
6303
|
-
return (l.options || []).map((
|
|
6304
|
-
},
|
|
6305
|
-
const
|
|
6306
|
-
c.value =
|
|
6307
|
-
},
|
|
6301
|
+
C();
|
|
6302
|
+
}, x = () => {
|
|
6303
|
+
var r, h;
|
|
6304
|
+
l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
|
|
6305
|
+
}, d = () => {
|
|
6306
|
+
const r = l.valueKey;
|
|
6307
|
+
return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
|
|
6308
|
+
}, C = () => {
|
|
6309
|
+
const r = B(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
|
|
6310
|
+
c.value = P > 0 && R === P, _.value = R > 0 && R < P;
|
|
6311
|
+
}, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
|
|
6308
6312
|
const {
|
|
6309
|
-
modelValue:
|
|
6310
|
-
valueKey:
|
|
6311
|
-
labelKey:
|
|
6312
|
-
selectAllTxt:
|
|
6313
|
-
confirmTxt:
|
|
6313
|
+
modelValue: r,
|
|
6314
|
+
valueKey: h,
|
|
6315
|
+
labelKey: R,
|
|
6316
|
+
selectAllTxt: P,
|
|
6317
|
+
confirmTxt: G,
|
|
6314
6318
|
nowrap: K,
|
|
6315
|
-
...
|
|
6316
|
-
} = l,
|
|
6319
|
+
...Y
|
|
6320
|
+
} = l, X = Y.props ?? {};
|
|
6317
6321
|
return {
|
|
6318
|
-
...
|
|
6322
|
+
...Y,
|
|
6319
6323
|
props: {
|
|
6320
|
-
...
|
|
6321
|
-
value:
|
|
6322
|
-
label:
|
|
6324
|
+
...X,
|
|
6325
|
+
value: h,
|
|
6326
|
+
label: R
|
|
6323
6327
|
}
|
|
6324
6328
|
};
|
|
6325
|
-
}),
|
|
6329
|
+
}), D = k(
|
|
6326
6330
|
() => l.nowrap ? {
|
|
6327
6331
|
collapseTags: !0,
|
|
6328
6332
|
collapseTagsTooltip: !0,
|
|
6329
6333
|
maxCollapseTags: 1,
|
|
6330
6334
|
tagTooltip: { popperStyle: { maxWidth: "400px" } }
|
|
6331
6335
|
} : {}
|
|
6332
|
-
),
|
|
6333
|
-
...
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
const
|
|
6344
|
-
return
|
|
6345
|
-
}),
|
|
6346
|
-
|
|
6347
|
-
|
|
6336
|
+
), f = k(() => {
|
|
6337
|
+
const { class: r, ...h } = b;
|
|
6338
|
+
return h;
|
|
6339
|
+
}), O = k(() => ({
|
|
6340
|
+
...D.value,
|
|
6341
|
+
...f.value,
|
|
6342
|
+
...w.value,
|
|
6343
|
+
placeholder: b.placeholder ?? ""
|
|
6344
|
+
})), M = k(() => {
|
|
6345
|
+
const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
|
|
6346
|
+
if (!l.filterable || !s.value) return h.length;
|
|
6347
|
+
const R = B();
|
|
6348
|
+
return h.filter((P) => R.includes(P)).length;
|
|
6349
|
+
}), j = k(() => B().length), F = k(() => {
|
|
6350
|
+
const r = l.multiple && s.value ? t.value : l.modelValue;
|
|
6351
|
+
return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
|
|
6352
|
+
}), H = k(() => !!b.placeholder), ie = k(
|
|
6353
|
+
() => l.materialLabel && (A.value || s.value || F.value || H.value)
|
|
6354
|
+
), fe = k(() => ({
|
|
6355
|
+
[b.class]: !!b.class,
|
|
6348
6356
|
hasLabel: !!l.label,
|
|
6349
6357
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
6350
6358
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
6351
|
-
isFloat:
|
|
6359
|
+
isFloat: ie.value,
|
|
6352
6360
|
isFocused: A.value,
|
|
6353
|
-
isDisabled: !!
|
|
6361
|
+
isDisabled: !!b.disabled,
|
|
6354
6362
|
isSelect: !0
|
|
6355
|
-
})),
|
|
6363
|
+
})), re = k(
|
|
6356
6364
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
6357
6365
|
);
|
|
6358
|
-
return
|
|
6366
|
+
return ne(t, () => C(), { deep: !0 }), ne(
|
|
6359
6367
|
() => l.modelValue,
|
|
6360
|
-
(
|
|
6368
|
+
(r) => {
|
|
6361
6369
|
if (l.multiple && s.value) {
|
|
6362
|
-
const
|
|
6363
|
-
JSON.stringify(
|
|
6370
|
+
const h = Array.isArray(r) ? [...r] : r ? [r] : [];
|
|
6371
|
+
JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
|
|
6364
6372
|
}
|
|
6365
6373
|
}
|
|
6366
|
-
), (
|
|
6367
|
-
const
|
|
6368
|
-
return
|
|
6369
|
-
class:
|
|
6370
|
-
style:
|
|
6374
|
+
), (r, h) => {
|
|
6375
|
+
const R = I("el-checkbox"), P = I("el-button"), G = I("el-select");
|
|
6376
|
+
return S(), $("div", {
|
|
6377
|
+
class: V(["MvcField MvcFieldSelect", n(fe)]),
|
|
6378
|
+
style: se(n(re))
|
|
6371
6379
|
}, [
|
|
6372
|
-
l.label ? (
|
|
6373
|
-
N(
|
|
6380
|
+
l.label ? (S(), $("label", nn, E(l.label), 1)) : U("", !0),
|
|
6381
|
+
N(G, le({
|
|
6374
6382
|
ref_key: "selectRef",
|
|
6375
6383
|
ref: a,
|
|
6376
|
-
"model-value": n(
|
|
6384
|
+
"model-value": n(v),
|
|
6377
6385
|
"tag-effect": "plain",
|
|
6378
6386
|
class: "MvcSelect"
|
|
6379
|
-
}, n(
|
|
6387
|
+
}, n(O), {
|
|
6380
6388
|
"onUpdate:modelValue": g,
|
|
6381
|
-
onVisibleChange:
|
|
6389
|
+
onVisibleChange: T,
|
|
6382
6390
|
onFocus: y,
|
|
6383
|
-
onBlur:
|
|
6384
|
-
}),
|
|
6385
|
-
default:
|
|
6386
|
-
|
|
6391
|
+
onBlur: z
|
|
6392
|
+
}), pe({
|
|
6393
|
+
default: L(() => [
|
|
6394
|
+
J(r.$slots, "default")
|
|
6387
6395
|
]),
|
|
6388
6396
|
_: 2
|
|
6389
6397
|
}, [
|
|
6390
6398
|
l.filterable && l.multiple ? {
|
|
6391
6399
|
name: "header",
|
|
6392
|
-
fn:
|
|
6400
|
+
fn: L(() => [
|
|
6393
6401
|
u("div", sn, [
|
|
6394
|
-
N(
|
|
6402
|
+
N(R, {
|
|
6395
6403
|
modelValue: n(c),
|
|
6396
|
-
"onUpdate:modelValue":
|
|
6404
|
+
"onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
|
|
6397
6405
|
indeterminate: n(_),
|
|
6398
6406
|
class: "h24",
|
|
6399
|
-
onChange:
|
|
6407
|
+
onChange: p
|
|
6400
6408
|
}, {
|
|
6401
|
-
default:
|
|
6402
|
-
|
|
6409
|
+
default: L(() => [
|
|
6410
|
+
ae(E(e.selectAllTxt), 1)
|
|
6403
6411
|
]),
|
|
6404
6412
|
_: 1
|
|
6405
6413
|
}, 8, ["modelValue", "indeterminate"]),
|
|
6406
|
-
u("span", rn,
|
|
6414
|
+
u("span", rn, E(n(M)) + "/" + E(n(j)), 1)
|
|
6407
6415
|
])
|
|
6408
6416
|
]),
|
|
6409
6417
|
key: "0"
|
|
6410
6418
|
} : void 0,
|
|
6411
6419
|
l.multiple ? {
|
|
6412
6420
|
name: "footer",
|
|
6413
|
-
fn:
|
|
6421
|
+
fn: L(() => [
|
|
6414
6422
|
u("div", un, [
|
|
6415
|
-
N(
|
|
6423
|
+
N(P, {
|
|
6416
6424
|
type: "primary",
|
|
6417
6425
|
size: "small",
|
|
6418
|
-
onClick:
|
|
6426
|
+
onClick: x
|
|
6419
6427
|
}, {
|
|
6420
|
-
default:
|
|
6421
|
-
|
|
6428
|
+
default: L(() => [
|
|
6429
|
+
ae(E(e.confirmTxt), 1)
|
|
6422
6430
|
]),
|
|
6423
6431
|
_: 1
|
|
6424
6432
|
})
|
|
@@ -6489,167 +6497,171 @@ const Ct = ol({
|
|
|
6489
6497
|
},
|
|
6490
6498
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
6491
6499
|
setup(e, { emit: o }) {
|
|
6492
|
-
const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1),
|
|
6493
|
-
l.multiple ? (t.value = Array.isArray(
|
|
6494
|
-
},
|
|
6495
|
-
if (s.value =
|
|
6496
|
-
const
|
|
6497
|
-
t.value = Array.isArray(
|
|
6500
|
+
const l = e, a = Z(null), t = Z([]), s = Z(!1), c = Z(!1), _ = Z(!1), A = Z(!1), b = be(), i = o, g = (r) => {
|
|
6501
|
+
l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
|
|
6502
|
+
}, T = (r) => {
|
|
6503
|
+
if (s.value = r, r && l.multiple) {
|
|
6504
|
+
const h = l.modelValue;
|
|
6505
|
+
t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
|
|
6498
6506
|
}
|
|
6499
|
-
}, y = (
|
|
6500
|
-
A.value = !0,
|
|
6501
|
-
},
|
|
6502
|
-
A.value = !1,
|
|
6503
|
-
},
|
|
6504
|
-
var
|
|
6505
|
-
if (!l.filterable || !s.value) return
|
|
6506
|
-
const
|
|
6507
|
-
if (!Array.isArray(
|
|
6508
|
-
const
|
|
6509
|
-
return
|
|
6510
|
-
},
|
|
6511
|
-
const
|
|
6512
|
-
return Number.isFinite(
|
|
6513
|
-
},
|
|
6514
|
-
const
|
|
6515
|
-
if (
|
|
6516
|
-
const
|
|
6517
|
-
for (const
|
|
6518
|
-
if (!
|
|
6519
|
-
if (
|
|
6520
|
-
|
|
6507
|
+
}, y = (r) => {
|
|
6508
|
+
A.value = !0, i("focus", r);
|
|
6509
|
+
}, z = (r) => {
|
|
6510
|
+
A.value = !1, i("blur", r);
|
|
6511
|
+
}, B = () => {
|
|
6512
|
+
var P;
|
|
6513
|
+
if (!l.filterable || !s.value) return d();
|
|
6514
|
+
const r = a.value, h = ((P = r == null ? void 0 : r.filteredOptions) == null ? void 0 : P.value) ?? (r == null ? void 0 : r.filteredOptions) ?? [];
|
|
6515
|
+
if (!Array.isArray(h)) return d();
|
|
6516
|
+
const R = l.valueKey;
|
|
6517
|
+
return h.filter((G) => G.type !== "Group" && !G.disabled).map((G) => typeof G == "object" ? G[R] : G);
|
|
6518
|
+
}, m = () => {
|
|
6519
|
+
const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
|
|
6520
|
+
return Number.isFinite(h) && h > 0 ? h : 0;
|
|
6521
|
+
}, p = (r) => {
|
|
6522
|
+
const h = B();
|
|
6523
|
+
if (r) {
|
|
6524
|
+
const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
|
|
6525
|
+
for (const Y of h)
|
|
6526
|
+
if (!G.has(Y)) {
|
|
6527
|
+
if (R > 0 && K.length >= R) break;
|
|
6528
|
+
G.add(Y), K.push(Y);
|
|
6521
6529
|
}
|
|
6522
6530
|
t.value = K;
|
|
6523
6531
|
} else {
|
|
6524
|
-
const
|
|
6525
|
-
t.value = t.value.filter((
|
|
6532
|
+
const R = new Set(h);
|
|
6533
|
+
t.value = t.value.filter((P) => !R.has(P));
|
|
6526
6534
|
}
|
|
6527
|
-
|
|
6528
|
-
},
|
|
6529
|
-
var
|
|
6530
|
-
l.multiple && (
|
|
6531
|
-
},
|
|
6532
|
-
const
|
|
6533
|
-
return (l.options || []).map((
|
|
6534
|
-
},
|
|
6535
|
-
const
|
|
6536
|
-
c.value =
|
|
6537
|
-
},
|
|
6535
|
+
C();
|
|
6536
|
+
}, x = () => {
|
|
6537
|
+
var r, h;
|
|
6538
|
+
l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
|
|
6539
|
+
}, d = () => {
|
|
6540
|
+
const r = l.valueKey;
|
|
6541
|
+
return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
|
|
6542
|
+
}, C = () => {
|
|
6543
|
+
const r = B(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
|
|
6544
|
+
c.value = P > 0 && R === P, _.value = R > 0 && R < P;
|
|
6545
|
+
}, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
|
|
6538
6546
|
const {
|
|
6539
|
-
modelValue:
|
|
6540
|
-
valueKey:
|
|
6541
|
-
labelKey:
|
|
6542
|
-
selectAllTxt:
|
|
6543
|
-
confirmTxt:
|
|
6547
|
+
modelValue: r,
|
|
6548
|
+
valueKey: h,
|
|
6549
|
+
labelKey: R,
|
|
6550
|
+
selectAllTxt: P,
|
|
6551
|
+
confirmTxt: G,
|
|
6544
6552
|
nowrap: K,
|
|
6545
|
-
...
|
|
6546
|
-
} = l,
|
|
6553
|
+
...Y
|
|
6554
|
+
} = l, X = Y.props ?? {};
|
|
6547
6555
|
return {
|
|
6548
|
-
...
|
|
6556
|
+
...Y,
|
|
6549
6557
|
props: {
|
|
6550
|
-
...
|
|
6551
|
-
value:
|
|
6552
|
-
label:
|
|
6558
|
+
...X,
|
|
6559
|
+
value: h,
|
|
6560
|
+
label: R
|
|
6553
6561
|
}
|
|
6554
6562
|
};
|
|
6555
|
-
}),
|
|
6563
|
+
}), D = k(
|
|
6556
6564
|
() => l.nowrap ? {
|
|
6557
6565
|
collapseTags: !0,
|
|
6558
6566
|
collapseTagsTooltip: !0,
|
|
6559
6567
|
maxCollapseTags: 1,
|
|
6560
6568
|
tagTooltip: { popperStyle: { maxWidth: "400px" } }
|
|
6561
6569
|
} : {}
|
|
6562
|
-
),
|
|
6563
|
-
...
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
const
|
|
6574
|
-
return
|
|
6575
|
-
}),
|
|
6576
|
-
|
|
6577
|
-
|
|
6570
|
+
), f = k(() => {
|
|
6571
|
+
const { class: r, ...h } = b;
|
|
6572
|
+
return h;
|
|
6573
|
+
}), O = k(() => ({
|
|
6574
|
+
...D.value,
|
|
6575
|
+
...f.value,
|
|
6576
|
+
...w.value,
|
|
6577
|
+
placeholder: b.placeholder ?? ""
|
|
6578
|
+
})), M = k(() => {
|
|
6579
|
+
const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
|
|
6580
|
+
if (!l.filterable || !s.value) return h.length;
|
|
6581
|
+
const R = B();
|
|
6582
|
+
return h.filter((P) => R.includes(P)).length;
|
|
6583
|
+
}), j = k(() => B().length), F = k(() => {
|
|
6584
|
+
const r = l.multiple && s.value ? t.value : l.modelValue;
|
|
6585
|
+
return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
|
|
6586
|
+
}), H = k(() => !!b.placeholder), ie = k(
|
|
6587
|
+
() => l.materialLabel && (A.value || s.value || F.value || H.value)
|
|
6588
|
+
), fe = k(() => ({
|
|
6589
|
+
[b.class]: !!b.class,
|
|
6578
6590
|
hasLabel: !!l.label,
|
|
6579
6591
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
6580
6592
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
6581
|
-
isFloat:
|
|
6593
|
+
isFloat: ie.value,
|
|
6582
6594
|
isFocused: A.value,
|
|
6583
|
-
isDisabled: !!
|
|
6595
|
+
isDisabled: !!b.disabled,
|
|
6584
6596
|
isSelect: !0
|
|
6585
|
-
})),
|
|
6597
|
+
})), re = k(
|
|
6586
6598
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
6587
6599
|
);
|
|
6588
|
-
return
|
|
6600
|
+
return ne(t, () => C(), { deep: !0 }), ne(
|
|
6589
6601
|
() => l.modelValue,
|
|
6590
|
-
(
|
|
6602
|
+
(r) => {
|
|
6591
6603
|
if (l.multiple && s.value) {
|
|
6592
|
-
const
|
|
6593
|
-
JSON.stringify(
|
|
6604
|
+
const h = Array.isArray(r) ? [...r] : r ? [r] : [];
|
|
6605
|
+
JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
|
|
6594
6606
|
}
|
|
6595
6607
|
}
|
|
6596
|
-
), (
|
|
6597
|
-
const
|
|
6598
|
-
return
|
|
6599
|
-
class:
|
|
6600
|
-
style:
|
|
6608
|
+
), (r, h) => {
|
|
6609
|
+
const R = I("el-checkbox"), P = I("el-button"), G = I("el-select-v2");
|
|
6610
|
+
return S(), $("div", {
|
|
6611
|
+
class: V(["MvcField MvcFieldSelectV2", n(fe)]),
|
|
6612
|
+
style: se(n(re))
|
|
6601
6613
|
}, [
|
|
6602
|
-
l.label ? (
|
|
6603
|
-
N(
|
|
6614
|
+
l.label ? (S(), $("label", pn, E(l.label), 1)) : U("", !0),
|
|
6615
|
+
N(G, le({
|
|
6604
6616
|
ref_key: "selectRef",
|
|
6605
6617
|
ref: a,
|
|
6606
|
-
"model-value": n(
|
|
6618
|
+
"model-value": n(v),
|
|
6607
6619
|
class: "MvcSelectV2"
|
|
6608
|
-
}, n(
|
|
6620
|
+
}, n(O), {
|
|
6609
6621
|
"onUpdate:modelValue": g,
|
|
6610
|
-
onVisibleChange:
|
|
6622
|
+
onVisibleChange: T,
|
|
6611
6623
|
onFocus: y,
|
|
6612
|
-
onBlur:
|
|
6613
|
-
}),
|
|
6624
|
+
onBlur: z
|
|
6625
|
+
}), pe({ _: 2 }, [
|
|
6614
6626
|
l.filterable && l.multiple ? {
|
|
6615
6627
|
name: "header",
|
|
6616
|
-
fn:
|
|
6628
|
+
fn: L(() => [
|
|
6617
6629
|
u("div", bn, [
|
|
6618
|
-
N(
|
|
6630
|
+
N(R, {
|
|
6619
6631
|
modelValue: n(c),
|
|
6620
|
-
"onUpdate:modelValue":
|
|
6632
|
+
"onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
|
|
6621
6633
|
indeterminate: n(_),
|
|
6622
6634
|
class: "h24",
|
|
6623
|
-
onChange:
|
|
6635
|
+
onChange: p
|
|
6624
6636
|
}, {
|
|
6625
|
-
default:
|
|
6626
|
-
|
|
6637
|
+
default: L(() => [
|
|
6638
|
+
ae(E(e.selectAllTxt), 1)
|
|
6627
6639
|
]),
|
|
6628
6640
|
_: 1
|
|
6629
6641
|
}, 8, ["modelValue", "indeterminate"]),
|
|
6630
|
-
u("span", fn,
|
|
6642
|
+
u("span", fn, E(n(M)) + "/" + E(n(j)), 1)
|
|
6631
6643
|
])
|
|
6632
6644
|
]),
|
|
6633
6645
|
key: "0"
|
|
6634
6646
|
} : void 0,
|
|
6635
|
-
|
|
6647
|
+
r.$slots.default ? {
|
|
6636
6648
|
name: "default",
|
|
6637
|
-
fn:
|
|
6638
|
-
|
|
6649
|
+
fn: L((K) => [
|
|
6650
|
+
J(r.$slots, "default", Te(xe(K)))
|
|
6639
6651
|
]),
|
|
6640
6652
|
key: "1"
|
|
6641
6653
|
} : void 0,
|
|
6642
6654
|
l.multiple ? {
|
|
6643
6655
|
name: "footer",
|
|
6644
|
-
fn:
|
|
6656
|
+
fn: L(() => [
|
|
6645
6657
|
u("div", mn, [
|
|
6646
|
-
N(
|
|
6658
|
+
N(P, {
|
|
6647
6659
|
type: "primary",
|
|
6648
6660
|
size: "small",
|
|
6649
|
-
onClick:
|
|
6661
|
+
onClick: x
|
|
6650
6662
|
}, {
|
|
6651
|
-
default:
|
|
6652
|
-
|
|
6663
|
+
default: L(() => [
|
|
6664
|
+
ae(E(e.confirmTxt), 1)
|
|
6653
6665
|
]),
|
|
6654
6666
|
_: 1
|
|
6655
6667
|
})
|
|
@@ -6688,34 +6700,34 @@ const Ct = ol({
|
|
|
6688
6700
|
}), a = e.tableName + "_Column";
|
|
6689
6701
|
let t = [];
|
|
6690
6702
|
(() => {
|
|
6691
|
-
const A = o.slots.default()[0].children,
|
|
6703
|
+
const A = o.slots.default()[0].children, b = {
|
|
6692
6704
|
normal: [],
|
|
6693
6705
|
mmp: [],
|
|
6694
6706
|
asa: [],
|
|
6695
6707
|
fixed: [],
|
|
6696
6708
|
columns: []
|
|
6697
|
-
},
|
|
6709
|
+
}, i = e.tableName ? JSON.parse(localStorage.getItem(a)) : null, g = [void 0];
|
|
6698
6710
|
A.forEach((y) => {
|
|
6699
6711
|
window.$getType(y.type) === "Symbol" ? t = t.concat(y.children) : t.push(y);
|
|
6700
|
-
}), t.forEach((y,
|
|
6701
|
-
var
|
|
6702
|
-
if (window.$getType(y.type), ((
|
|
6703
|
-
let
|
|
6712
|
+
}), t.forEach((y, z) => {
|
|
6713
|
+
var B;
|
|
6714
|
+
if (window.$getType(y.type), ((B = y.type) == null ? void 0 : B.name) === "ElTableColumn") {
|
|
6715
|
+
let m = {
|
|
6704
6716
|
...y.props,
|
|
6705
|
-
sort:
|
|
6717
|
+
sort: z,
|
|
6706
6718
|
nomove: y.props.nomove || y.props.nomove === "" || y.props.type === "selection" || y.props.label === "Operation",
|
|
6707
6719
|
resizable: !0,
|
|
6708
6720
|
visible: y.props.visible !== !1
|
|
6709
6721
|
};
|
|
6710
|
-
if (
|
|
6711
|
-
const { data:
|
|
6712
|
-
|
|
6722
|
+
if (m.labelKey || (m.labelKey = m.label), m.label = window.$l(m.labelKey), e.column && (i != null && i.length) && g.indexOf(y.props.prop) === -1) {
|
|
6723
|
+
const { data: p } = i.filter1((x) => x.prop === y.props.prop);
|
|
6724
|
+
p && (m.sort = p.sort, m.fixed = p.fixed, m.visible = p.visible);
|
|
6713
6725
|
}
|
|
6714
|
-
y.props.fixed &&
|
|
6726
|
+
y.props.fixed && b.fixed.push(m), y.props.type === "mmp" ? b.mmp.push(m) : y.props.type === "asa" ? b.asa.push(m) : b.normal.push(m), y.props = m;
|
|
6715
6727
|
}
|
|
6716
|
-
}), l.columnInfo =
|
|
6717
|
-
let
|
|
6718
|
-
e.tableName && (
|
|
6728
|
+
}), l.columnInfo = b;
|
|
6729
|
+
let T = [...b.normal, ...b.mmp, ...b.asa];
|
|
6730
|
+
e.tableName && (T = T.sort((y, z) => y.sort - z.sort), localStorage.setItem(a, JSON.stringify(T)));
|
|
6719
6731
|
})();
|
|
6720
6732
|
let c = [];
|
|
6721
6733
|
if (t.forEach((A) => {
|
|
@@ -6737,7 +6749,7 @@ const Ct = ol({
|
|
|
6737
6749
|
props: A
|
|
6738
6750
|
});
|
|
6739
6751
|
}
|
|
6740
|
-
return c = c.sort((A,
|
|
6752
|
+
return c = c.sort((A, b) => A.props.sort - b.props.sort), () => c;
|
|
6741
6753
|
}
|
|
6742
6754
|
}), _n = { class: "hp100 flexMode" }, yn = { class: "w200 hp100 border-r fs14" }, wn = { class: "flexMode vc h36 p8 bg-gray3 border-b txt-nowrap" }, Sn = { class: "p4" }, Tn = ["onClick"], An = {
|
|
6743
6755
|
class: "flexMode vs hp100",
|
|
@@ -6754,7 +6766,7 @@ const Ct = ol({
|
|
|
6754
6766
|
}, Rn = {
|
|
6755
6767
|
key: 0,
|
|
6756
6768
|
class: "absCenter fs12 txt-dark5 txt-nowrap"
|
|
6757
|
-
}, Dn = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4" }, In = { class: "flexMode vc g8 txt-nowrap" },
|
|
6769
|
+
}, Dn = { class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4" }, In = { class: "flexMode vc g8 txt-nowrap" }, Bn = { class: "flexMode vc g8" }, Vn = ["txt", "onClick"], Fn = {
|
|
6758
6770
|
class: "relative",
|
|
6759
6771
|
style: { height: "calc(70% - 10px)" }
|
|
6760
6772
|
}, Un = {
|
|
@@ -6788,43 +6800,43 @@ const Ct = ol({
|
|
|
6788
6800
|
columnType: {},
|
|
6789
6801
|
mounted: !1
|
|
6790
6802
|
});
|
|
6791
|
-
|
|
6803
|
+
te(() => {
|
|
6792
6804
|
s();
|
|
6793
6805
|
});
|
|
6794
6806
|
const t = o, s = () => {
|
|
6795
6807
|
t("mounted");
|
|
6796
|
-
const
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
}), a.columnType =
|
|
6800
|
-
}, c = (
|
|
6801
|
-
a.type =
|
|
6802
|
-
}, _ = (
|
|
6803
|
-
|
|
6804
|
-
}, A = (
|
|
6805
|
-
a.fixed.unshift(
|
|
6806
|
-
},
|
|
6807
|
-
a.visible.unshift(
|
|
6808
|
-
},
|
|
6809
|
-
a.visible.splice(
|
|
6808
|
+
const p = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), x = {};
|
|
6809
|
+
p.forEach((d) => {
|
|
6810
|
+
d.type && (x[d.type] = !0), d.visible ? d.type === "selection" ? a.selection.push(d) : d.type === "operation" ? a.operation.push(d) : d.label && (d.fixed ? a.fixed.push(d) : a.visible.push(d)) : d.type === "mmp" ? a.columns.mmp.push(d) : d.type === "asa" ? a.columns.asa.push(d) : a.columns.normal.push(d);
|
|
6811
|
+
}), a.columnType = x;
|
|
6812
|
+
}, c = (p) => {
|
|
6813
|
+
a.type = p;
|
|
6814
|
+
}, _ = (p, x) => {
|
|
6815
|
+
p.visible = !0, a.visible.unshift(p), p.type ? a.columns[p.type].splice(x, 1) : a.columns.normal.splice(x, 1);
|
|
6816
|
+
}, A = (p, x) => {
|
|
6817
|
+
a.fixed.unshift(p), a.visible.splice(x, 1);
|
|
6818
|
+
}, b = (p, x) => {
|
|
6819
|
+
a.visible.unshift(p), a.fixed.splice(x, 1);
|
|
6820
|
+
}, i = (p, x) => {
|
|
6821
|
+
a.visible.splice(x, 1), p.type ? a.columns[p.type].unshift(p) : a.columns.normal.unshift(p);
|
|
6810
6822
|
}, g = async () => {
|
|
6811
6823
|
a.loading = !0, window.$pm(() => {
|
|
6812
|
-
const { fixed:
|
|
6813
|
-
let
|
|
6814
|
-
Object.keys(
|
|
6815
|
-
|
|
6816
|
-
}),
|
|
6817
|
-
const
|
|
6818
|
-
|
|
6824
|
+
const { fixed: p, visible: x, columns: d, selection: C, operation: v } = a;
|
|
6825
|
+
let w = [];
|
|
6826
|
+
Object.keys(d).map((f) => {
|
|
6827
|
+
w = w.concat(d[f]);
|
|
6828
|
+
}), p.forEach((f) => f.fixed = "left"), w.forEach((f) => f.visible = !1);
|
|
6829
|
+
const D = C.concat(p, x, w, v);
|
|
6830
|
+
D.forEach((f, O) => f.sort = O), localStorage.setItem(`${l.tableName}_Column`, JSON.stringify(D)), a.loading = !1, t("close"), t("init-column");
|
|
6819
6831
|
});
|
|
6820
|
-
},
|
|
6832
|
+
}, T = () => {
|
|
6821
6833
|
a.loading = !0, localStorage.removeItem(`${l.tableName}_Column`), window.$pm(() => {
|
|
6822
6834
|
a.loading = !1, t("close"), t("init-column");
|
|
6823
6835
|
}, 4);
|
|
6824
|
-
}, y =
|
|
6825
|
-
var
|
|
6826
|
-
return ((
|
|
6827
|
-
}),
|
|
6836
|
+
}, y = k(() => {
|
|
6837
|
+
var p;
|
|
6838
|
+
return ((p = globalThis.$config.options) == null ? void 0 : p.drawerHeight) || 540;
|
|
6839
|
+
}), z = k(() => (y.value * 0.3).toFixed(0)), B = k(() => (y.value * 0.7 - 10).toFixed(0)), m = k(() => [
|
|
6828
6840
|
{
|
|
6829
6841
|
label: "Base Info",
|
|
6830
6842
|
value: "normal"
|
|
@@ -6840,50 +6852,50 @@ const Ct = ol({
|
|
|
6840
6852
|
hide: !a.columnType.mmp
|
|
6841
6853
|
}
|
|
6842
6854
|
]);
|
|
6843
|
-
return (
|
|
6844
|
-
const
|
|
6845
|
-
return
|
|
6855
|
+
return (p, x) => {
|
|
6856
|
+
const d = I("el-scrollbar"), C = I("DrawerArea");
|
|
6857
|
+
return S(), q(C, {
|
|
6846
6858
|
loading: n(a).loading,
|
|
6847
6859
|
noscroll: "",
|
|
6848
6860
|
"cancel-txt": "Reset",
|
|
6849
6861
|
"cancel-icon": "im-sync",
|
|
6850
6862
|
class: "MvcTableColumnConfig",
|
|
6851
|
-
onCancel:
|
|
6863
|
+
onCancel: T,
|
|
6852
6864
|
onSubmit: g
|
|
6853
6865
|
}, {
|
|
6854
|
-
default:
|
|
6866
|
+
default: L(() => [
|
|
6855
6867
|
u("div", _n, [
|
|
6856
6868
|
u("div", yn, [
|
|
6857
|
-
u("div", wn,
|
|
6869
|
+
u("div", wn, E(p.$l("Column Type")), 1),
|
|
6858
6870
|
u("div", Sn, [
|
|
6859
|
-
(
|
|
6860
|
-
key:
|
|
6861
|
-
class:
|
|
6862
|
-
onClick: (
|
|
6863
|
-
},
|
|
6871
|
+
(S(!0), $(ee, null, oe(n(m), (v) => (S(), $("div", {
|
|
6872
|
+
key: v.value,
|
|
6873
|
+
class: V(["typeItem p8-16 mb4 radius4 txt-nowrap", [n(a).type === v.value && "active", v.hide && "hide"]]),
|
|
6874
|
+
onClick: (w) => c(v.value)
|
|
6875
|
+
}, E(v.label), 11, Tn))), 128))
|
|
6864
6876
|
])
|
|
6865
6877
|
]),
|
|
6866
6878
|
u("div", An, [
|
|
6867
6879
|
u("div", Cn, [
|
|
6868
6880
|
u("div", kn, [
|
|
6869
|
-
u("span", null,
|
|
6870
|
-
u("span", xn,
|
|
6881
|
+
u("span", null, E(p.$l("Columns")), 1),
|
|
6882
|
+
u("span", xn, E(n(a).columns[n(a).type].length), 1)
|
|
6871
6883
|
]),
|
|
6872
|
-
N(
|
|
6873
|
-
default:
|
|
6884
|
+
N(d, { style: { height: "calc(100% - 36px)" } }, {
|
|
6885
|
+
default: L(() => [
|
|
6874
6886
|
u("div", On, [
|
|
6875
|
-
n(a).columns[n(a).type].length === 0 ? (
|
|
6876
|
-
(
|
|
6877
|
-
key:
|
|
6887
|
+
n(a).columns[n(a).type].length === 0 ? (S(), $("span", Mn, E(p.$l("No Columns")), 1)) : U("", !0),
|
|
6888
|
+
(S(!0), $(ee, null, oe(n(a).columns[n(a).type], (v, w) => (S(), $("div", {
|
|
6889
|
+
key: v.prop,
|
|
6878
6890
|
class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
|
|
6879
6891
|
}, [
|
|
6880
|
-
u("span", null,
|
|
6892
|
+
u("span", null, E(p.$l(v.label)), 1),
|
|
6881
6893
|
u("div", $n, [
|
|
6882
6894
|
u("div", {
|
|
6883
6895
|
class: "tipbtn left",
|
|
6884
|
-
txt:
|
|
6885
|
-
onClick: (
|
|
6886
|
-
}, [...
|
|
6896
|
+
txt: p.$l("Visible"),
|
|
6897
|
+
onClick: (D) => _(v, w)
|
|
6898
|
+
}, [...x[0] || (x[0] = [
|
|
6887
6899
|
u("i", { class: "imicon im-plus fs16" }, null, -1)
|
|
6888
6900
|
])], 8, zn)
|
|
6889
6901
|
])
|
|
@@ -6895,34 +6907,34 @@ const Ct = ol({
|
|
|
6895
6907
|
]),
|
|
6896
6908
|
u("div", En, [
|
|
6897
6909
|
u("div", Ln, [
|
|
6898
|
-
u("span", null,
|
|
6899
|
-
u("span", jn,
|
|
6910
|
+
u("span", null, E(p.$l("Visible Columns")), 1),
|
|
6911
|
+
u("span", jn, E(n(a).visible.length), 1)
|
|
6900
6912
|
]),
|
|
6901
6913
|
u("div", Pn, [
|
|
6902
6914
|
u("div", Nn, [
|
|
6903
|
-
n(a).fixed.length === 0 ? (
|
|
6904
|
-
N(
|
|
6905
|
-
default:
|
|
6915
|
+
n(a).fixed.length === 0 ? (S(), $("span", Rn, E(p.$l("No Fixed Columns")), 1)) : U("", !0),
|
|
6916
|
+
N(d, { height: n(z) }, {
|
|
6917
|
+
default: L(() => [
|
|
6906
6918
|
N(n(Ue), {
|
|
6907
6919
|
list: n(a).fixed,
|
|
6908
|
-
"item-key": (
|
|
6920
|
+
"item-key": (v) => v,
|
|
6909
6921
|
handle: ".im-handle",
|
|
6910
6922
|
"ghost-class": "ghost"
|
|
6911
6923
|
}, {
|
|
6912
|
-
item:
|
|
6924
|
+
item: L(({ element: v, index: w }) => [
|
|
6913
6925
|
u("div", Dn, [
|
|
6914
6926
|
u("div", In, [
|
|
6915
|
-
|
|
6916
|
-
u("span", null,
|
|
6927
|
+
x[1] || (x[1] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
6928
|
+
u("span", null, E(p.$l(v.label)), 1)
|
|
6917
6929
|
]),
|
|
6918
|
-
u("div",
|
|
6930
|
+
u("div", Bn, [
|
|
6919
6931
|
u("div", {
|
|
6920
6932
|
class: "tipbtn red left",
|
|
6921
|
-
txt:
|
|
6922
|
-
onClick: (
|
|
6923
|
-
}, [...
|
|
6933
|
+
txt: p.$l("Unfixed"),
|
|
6934
|
+
onClick: (D) => b(v, w)
|
|
6935
|
+
}, [...x[2] || (x[2] = [
|
|
6924
6936
|
u("i", { class: "imicon im-download1 fs14" }, null, -1)
|
|
6925
|
-
])], 8,
|
|
6937
|
+
])], 8, Vn)
|
|
6926
6938
|
])
|
|
6927
6939
|
])
|
|
6928
6940
|
]),
|
|
@@ -6932,39 +6944,39 @@ const Ct = ol({
|
|
|
6932
6944
|
_: 1
|
|
6933
6945
|
}, 8, ["height"])
|
|
6934
6946
|
]),
|
|
6935
|
-
|
|
6947
|
+
x[6] || (x[6] = u("div", { class: "p4-0" }, [
|
|
6936
6948
|
u("div", { class: "border-t" })
|
|
6937
6949
|
], -1)),
|
|
6938
6950
|
u("div", Fn, [
|
|
6939
|
-
n(a).visible.length === 0 ? (
|
|
6940
|
-
N(
|
|
6941
|
-
default:
|
|
6951
|
+
n(a).visible.length === 0 ? (S(), $("span", Un, E(p.$l("No Columns")), 1)) : U("", !0),
|
|
6952
|
+
N(d, { height: n(B) }, {
|
|
6953
|
+
default: L(() => [
|
|
6942
6954
|
N(n(Ue), {
|
|
6943
6955
|
list: n(a).visible,
|
|
6944
|
-
"item-key": (
|
|
6956
|
+
"item-key": (v) => v,
|
|
6945
6957
|
options: { lockAxis: "y" },
|
|
6946
6958
|
handle: ".im-handle",
|
|
6947
6959
|
"ghost-class": "ghost"
|
|
6948
6960
|
}, {
|
|
6949
|
-
item:
|
|
6961
|
+
item: L(({ element: v, index: w }) => [
|
|
6950
6962
|
u("div", Gn, [
|
|
6951
6963
|
u("div", Kn, [
|
|
6952
|
-
|
|
6953
|
-
u("span", null,
|
|
6964
|
+
x[3] || (x[3] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
6965
|
+
u("span", null, E(p.$l(v.label)), 1)
|
|
6954
6966
|
]),
|
|
6955
6967
|
u("div", Hn, [
|
|
6956
6968
|
u("div", {
|
|
6957
6969
|
class: "tipbtn left",
|
|
6958
|
-
txt:
|
|
6959
|
-
onClick: (
|
|
6960
|
-
}, [...
|
|
6970
|
+
txt: p.$l("Fixed"),
|
|
6971
|
+
onClick: (D) => A(v, w)
|
|
6972
|
+
}, [...x[4] || (x[4] = [
|
|
6961
6973
|
u("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
|
|
6962
6974
|
])], 8, Jn),
|
|
6963
6975
|
u("div", {
|
|
6964
6976
|
class: "tipbtn red left",
|
|
6965
|
-
txt:
|
|
6966
|
-
onClick: (
|
|
6967
|
-
}, [...
|
|
6977
|
+
txt: p.$l("Hide"),
|
|
6978
|
+
onClick: (D) => i(v, w)
|
|
6979
|
+
}, [...x[5] || (x[5] = [
|
|
6968
6980
|
u("i", { class: "imicon im-close fs14" }, null, -1)
|
|
6969
6981
|
])], 8, Yn)
|
|
6970
6982
|
])
|
|
@@ -6985,7 +6997,7 @@ const Ct = ol({
|
|
|
6985
6997
|
}, 8, ["loading"]);
|
|
6986
6998
|
};
|
|
6987
6999
|
}
|
|
6988
|
-
}), Zn = /* @__PURE__ */
|
|
7000
|
+
}), Zn = /* @__PURE__ */ Q(Wn, [["__scopeId", "data-v-1927ce52"]]), qn = { class: "p16 border-b" }, Xn = { class: "flexMode vc g8" }, Qn = {
|
|
6989
7001
|
key: 0,
|
|
6990
7002
|
class: "flexMode vc g8"
|
|
6991
7003
|
}, es = { class: "flexMode g16 hr vc" }, ls = { class: "TheEnd p16" }, as = { class: "sticky flexMode vc hb p4-8 mt16 mb8 fs14 txt-dark9 z9 backdrop border-l4-primary bg-gray3 radius4" }, ts = { class: "fw700" }, os = { class: "flexMode vc g8" }, ns = /* @__PURE__ */ Object.assign({
|
|
@@ -7017,101 +7029,101 @@ const Ct = ol({
|
|
|
7017
7029
|
onlySelection: !1,
|
|
7018
7030
|
mounted: !1
|
|
7019
7031
|
});
|
|
7020
|
-
|
|
7032
|
+
te(() => {
|
|
7021
7033
|
s();
|
|
7022
7034
|
});
|
|
7023
7035
|
const t = o, s = () => {
|
|
7024
7036
|
t("mounted"), c(), _();
|
|
7025
7037
|
}, c = () => {
|
|
7026
|
-
const
|
|
7027
|
-
a.columns =
|
|
7038
|
+
const m = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), p = ["selection", "operation"];
|
|
7039
|
+
a.columns = m.filter((x) => !p.includes(x.type) && x.label);
|
|
7028
7040
|
}, _ = () => {
|
|
7029
7041
|
l.selection.length && (a.onlySelection = !0);
|
|
7030
|
-
}, A = (
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
}) :
|
|
7034
|
-
|
|
7042
|
+
}, A = (m, p) => {
|
|
7043
|
+
m ? p.children.forEach((x) => {
|
|
7044
|
+
x.visible = !0;
|
|
7045
|
+
}) : p.children.forEach((x) => {
|
|
7046
|
+
x.visible = !1;
|
|
7035
7047
|
});
|
|
7036
|
-
},
|
|
7048
|
+
}, b = () => {
|
|
7037
7049
|
window.$copy(g());
|
|
7038
|
-
},
|
|
7050
|
+
}, i = async () => {
|
|
7039
7051
|
a.loading = !0;
|
|
7040
7052
|
try {
|
|
7041
|
-
const
|
|
7042
|
-
let
|
|
7043
|
-
|
|
7053
|
+
const m = g("download");
|
|
7054
|
+
let p = a.fileName || T.value;
|
|
7055
|
+
p && !p.toLowerCase().endsWith(".csv") && (p = `${p}.csv`), await Bl({ content: m, filename: p, bom: !0 });
|
|
7044
7056
|
} finally {
|
|
7045
7057
|
a.loading = !1;
|
|
7046
7058
|
}
|
|
7047
|
-
}, g = (
|
|
7048
|
-
const
|
|
7049
|
-
a.columns.filter((
|
|
7050
|
-
|
|
7059
|
+
}, g = (m) => {
|
|
7060
|
+
const p = a.onlySelection ? l.selection : l.list, x = {}, d = [];
|
|
7061
|
+
a.columns.filter((O) => O.visible).forEach((O) => {
|
|
7062
|
+
d.push(window.$l(O.label)), x[O.prop] = !0;
|
|
7051
7063
|
});
|
|
7052
|
-
let
|
|
7053
|
-
(a.useHead ||
|
|
7064
|
+
let C = "", v = [], w = m === "download" ? "," : " ";
|
|
7065
|
+
(a.useHead || m) && (C = d.join(w) + `
|
|
7054
7066
|
`);
|
|
7055
|
-
let
|
|
7056
|
-
return Object.keys(
|
|
7057
|
-
|
|
7058
|
-
const
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
}),
|
|
7062
|
-
}),
|
|
7063
|
-
!a.useCountryCode &&
|
|
7064
|
-
let
|
|
7065
|
-
window.$getType(
|
|
7066
|
-
}) :
|
|
7067
|
-
|
|
7067
|
+
let D = [], f;
|
|
7068
|
+
return Object.keys(x).forEach((O, M) => {
|
|
7069
|
+
O.includes("country") && (f = M);
|
|
7070
|
+
const j = [];
|
|
7071
|
+
p.forEach((F) => {
|
|
7072
|
+
F[O] !== void 0 && j.push(F[O]);
|
|
7073
|
+
}), D.push(j);
|
|
7074
|
+
}), D.forEach((O, M) => {
|
|
7075
|
+
!a.useCountryCode && f === M ? O.forEach((j, F) => {
|
|
7076
|
+
let H = j;
|
|
7077
|
+
window.$getType(j) === "Array" ? H = j.map((ie) => B[ie.toUpperCase()].label.$l()).join(",") : window.$getType(j) === "String" ? H = j.split(",").map((ie) => B[ie.toUpperCase()].label.$l()).join(",") : H = JSON.stringify(j), v[F] ? v[F] += H + w : v[F] = H + w;
|
|
7078
|
+
}) : O.forEach((j, F) => {
|
|
7079
|
+
v[F] ? v[F] += j + w : v[F] = j + w;
|
|
7068
7080
|
});
|
|
7069
|
-
}), `${
|
|
7081
|
+
}), `${C}${v.join(`
|
|
7070
7082
|
`)}`;
|
|
7071
|
-
},
|
|
7072
|
-
const
|
|
7073
|
-
return `${l.tableName}_${
|
|
7074
|
-
}), y =
|
|
7075
|
-
const
|
|
7076
|
-
return a.columns.forEach((
|
|
7077
|
-
const
|
|
7078
|
-
label:
|
|
7079
|
-
type:
|
|
7083
|
+
}, T = k(() => {
|
|
7084
|
+
const m = window.$d().format("YYYYMMDDHHmmss");
|
|
7085
|
+
return `${l.tableName}_${m}`;
|
|
7086
|
+
}), y = k(() => {
|
|
7087
|
+
const m = {};
|
|
7088
|
+
return a.columns.forEach((p) => {
|
|
7089
|
+
const x = p.type ? p.type : "normal", d = {
|
|
7090
|
+
label: z[x],
|
|
7091
|
+
type: x,
|
|
7080
7092
|
visible: 0
|
|
7081
7093
|
};
|
|
7082
|
-
|
|
7083
|
-
}), Object.keys(
|
|
7084
|
-
const
|
|
7085
|
-
|
|
7086
|
-
}),
|
|
7087
|
-
}),
|
|
7094
|
+
m[x] ? (m[x].children.push(p), p.visible && m[x].visible++) : (d.children = [p], p.visible && d.visible++, m[x] = d);
|
|
7095
|
+
}), Object.keys(m).forEach((p) => {
|
|
7096
|
+
const x = m[p].visible === m[p].children.length, d = m[p].visible === 0;
|
|
7097
|
+
x ? (m[p].checkstatus = !0, m[p].indeterminate = !1) : d ? (m[p].checkstatus = !1, m[p].indeterminate = !1) : (m[p].checkstatus = !1, m[p].indeterminate = !0);
|
|
7098
|
+
}), m;
|
|
7099
|
+
}), z = {
|
|
7088
7100
|
asa: "Asa Metrics",
|
|
7089
7101
|
normal: "Base Info",
|
|
7090
7102
|
mmp: "MMP Metrics"
|
|
7091
7103
|
};
|
|
7092
7104
|
"Check All".$l(), "Cancel All".$l();
|
|
7093
|
-
const
|
|
7094
|
-
return (
|
|
7095
|
-
const
|
|
7096
|
-
return
|
|
7097
|
-
cancel:
|
|
7098
|
-
N(
|
|
7105
|
+
const B = De("asa.countryAll.obj");
|
|
7106
|
+
return (m, p) => {
|
|
7107
|
+
const x = I("el-checkbox"), d = I("el-button"), C = I("MvcAlert"), v = I("el-switch"), w = I("Input"), D = I("DrawerArea");
|
|
7108
|
+
return S(), q(D, le(m.$attrs, { class: "MvcTableColumnDownload" }), {
|
|
7109
|
+
cancel: L(() => [
|
|
7110
|
+
N(w, {
|
|
7099
7111
|
modelValue: n(a).fileName,
|
|
7100
|
-
"onUpdate:modelValue":
|
|
7112
|
+
"onUpdate:modelValue": p[3] || (p[3] = (f) => n(a).fileName = f),
|
|
7101
7113
|
icon: "catalog",
|
|
7102
|
-
placeholder: n(
|
|
7114
|
+
placeholder: n(T),
|
|
7103
7115
|
class: "w600"
|
|
7104
7116
|
}, {
|
|
7105
|
-
append:
|
|
7106
|
-
N(
|
|
7117
|
+
append: L(() => [
|
|
7118
|
+
N(d, {
|
|
7107
7119
|
loading: n(a).loading,
|
|
7108
|
-
onClick:
|
|
7120
|
+
onClick: i
|
|
7109
7121
|
}, {
|
|
7110
|
-
icon:
|
|
7122
|
+
icon: L(() => [...p[5] || (p[5] = [
|
|
7111
7123
|
u("i", { class: "imicon im-download1" }, null, -1)
|
|
7112
7124
|
])]),
|
|
7113
|
-
default:
|
|
7114
|
-
|
|
7125
|
+
default: L(() => [
|
|
7126
|
+
ae(" " + E(m.$l("Download")), 1)
|
|
7115
7127
|
]),
|
|
7116
7128
|
_: 1
|
|
7117
7129
|
}, 8, ["loading"])
|
|
@@ -7119,38 +7131,38 @@ const Ct = ol({
|
|
|
7119
7131
|
_: 1
|
|
7120
7132
|
}, 8, ["modelValue", "placeholder"])
|
|
7121
7133
|
]),
|
|
7122
|
-
submit:
|
|
7123
|
-
default:
|
|
7134
|
+
submit: L(() => [...p[6] || (p[6] = [])]),
|
|
7135
|
+
default: L(() => [
|
|
7124
7136
|
u("div", qn, [
|
|
7125
|
-
N(
|
|
7126
|
-
default:
|
|
7137
|
+
N(C, null, {
|
|
7138
|
+
default: L(() => [
|
|
7127
7139
|
u("div", Xn, [
|
|
7128
|
-
u("span", null,
|
|
7129
|
-
u("span", null,
|
|
7140
|
+
u("span", null, E(m.$l("Total")), 1),
|
|
7141
|
+
u("span", null, E(l.list.length), 1)
|
|
7130
7142
|
]),
|
|
7131
|
-
l.selection.length ? (
|
|
7132
|
-
u("span", null,
|
|
7133
|
-
u("span", null,
|
|
7134
|
-
N(
|
|
7143
|
+
l.selection.length ? (S(), $("div", Qn, [
|
|
7144
|
+
u("span", null, E(m.$l("Selection")), 1),
|
|
7145
|
+
u("span", null, E(l.selection.length), 1),
|
|
7146
|
+
N(x, {
|
|
7135
7147
|
modelValue: n(a).onlySelection,
|
|
7136
|
-
"onUpdate:modelValue":
|
|
7137
|
-
label:
|
|
7148
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => n(a).onlySelection = f),
|
|
7149
|
+
label: m.$l("Only Selection")
|
|
7138
7150
|
}, null, 8, ["modelValue", "label"])
|
|
7139
7151
|
])) : U("", !0),
|
|
7140
7152
|
u("div", es, [
|
|
7141
|
-
N(
|
|
7142
|
-
icon:
|
|
7153
|
+
N(d, { onClick: b }, {
|
|
7154
|
+
icon: L(() => [...p[4] || (p[4] = [
|
|
7143
7155
|
u("i", { class: "imicon im-copy" }, null, -1)
|
|
7144
7156
|
])]),
|
|
7145
|
-
default:
|
|
7146
|
-
|
|
7157
|
+
default: L(() => [
|
|
7158
|
+
ae(" " + E(m.$l("Copy to Clipboard")), 1)
|
|
7147
7159
|
]),
|
|
7148
7160
|
_: 1
|
|
7149
7161
|
}),
|
|
7150
|
-
N(
|
|
7162
|
+
N(x, {
|
|
7151
7163
|
modelValue: n(a).useHead,
|
|
7152
|
-
"onUpdate:modelValue":
|
|
7153
|
-
label:
|
|
7164
|
+
"onUpdate:modelValue": p[1] || (p[1] = (f) => n(a).useHead = f),
|
|
7165
|
+
label: m.$l("With Table Head")
|
|
7154
7166
|
}, null, 8, ["modelValue", "label"])
|
|
7155
7167
|
])
|
|
7156
7168
|
]),
|
|
@@ -7158,36 +7170,36 @@ const Ct = ol({
|
|
|
7158
7170
|
})
|
|
7159
7171
|
]),
|
|
7160
7172
|
u("div", ls, [
|
|
7161
|
-
(
|
|
7162
|
-
key:
|
|
7173
|
+
(S(!0), $(ee, null, oe(n(y), (f) => (S(), $("div", {
|
|
7174
|
+
key: f.type
|
|
7163
7175
|
}, [
|
|
7164
7176
|
u("div", as, [
|
|
7165
|
-
u("span", ts,
|
|
7166
|
-
N(
|
|
7167
|
-
modelValue:
|
|
7168
|
-
"onUpdate:modelValue": (
|
|
7169
|
-
indeterminate:
|
|
7170
|
-
label:
|
|
7171
|
-
onChange: (
|
|
7177
|
+
u("span", ts, E(f.label), 1),
|
|
7178
|
+
N(x, {
|
|
7179
|
+
modelValue: f.checkstatus,
|
|
7180
|
+
"onUpdate:modelValue": (O) => f.checkstatus = O,
|
|
7181
|
+
indeterminate: f.indeterminate,
|
|
7182
|
+
label: m.$l("Check"),
|
|
7183
|
+
onChange: (O) => A(O, f)
|
|
7172
7184
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
|
|
7173
7185
|
]),
|
|
7174
|
-
(
|
|
7175
|
-
modelValue:
|
|
7176
|
-
"onUpdate:modelValue": (
|
|
7177
|
-
key:
|
|
7178
|
-
label:
|
|
7179
|
-
value:
|
|
7186
|
+
(S(!0), $(ee, null, oe(f.children, (O, M) => (S(), q(x, {
|
|
7187
|
+
modelValue: O.visible,
|
|
7188
|
+
"onUpdate:modelValue": (j) => O.visible = j,
|
|
7189
|
+
key: M,
|
|
7190
|
+
label: O.label,
|
|
7191
|
+
value: O.value,
|
|
7180
7192
|
class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
|
|
7181
7193
|
}, {
|
|
7182
|
-
default:
|
|
7183
|
-
var
|
|
7194
|
+
default: L(() => {
|
|
7195
|
+
var j;
|
|
7184
7196
|
return [
|
|
7185
7197
|
u("div", os, [
|
|
7186
|
-
u("span", null,
|
|
7187
|
-
(
|
|
7198
|
+
u("span", null, E(O.label), 1),
|
|
7199
|
+
(j = O.prop) != null && j.includes("country") ? (S(), q(v, {
|
|
7188
7200
|
key: 0,
|
|
7189
7201
|
modelValue: n(a).useCountryCode,
|
|
7190
|
-
"onUpdate:modelValue":
|
|
7202
|
+
"onUpdate:modelValue": p[2] || (p[2] = (F) => n(a).useCountryCode = F),
|
|
7191
7203
|
"inline-prompt": "",
|
|
7192
7204
|
"active-text": "Use Alpha-2 Code",
|
|
7193
7205
|
"inactive-text": "Use Country Name",
|
|
@@ -7323,178 +7335,178 @@ const Ct = ol({
|
|
|
7323
7335
|
cpt: we(ns)
|
|
7324
7336
|
}
|
|
7325
7337
|
]
|
|
7326
|
-
}), _ = Z(null), { proxy: A } =
|
|
7338
|
+
}), _ = Z(null), { proxy: A } = ue();
|
|
7327
7339
|
Rl(() => {
|
|
7328
|
-
|
|
7329
|
-
}),
|
|
7340
|
+
i();
|
|
7341
|
+
}), te(() => {
|
|
7330
7342
|
g();
|
|
7331
7343
|
});
|
|
7332
|
-
const
|
|
7344
|
+
const b = l, i = () => {
|
|
7333
7345
|
t.loading = a.defaultLoading, a.pageSize && (s.pageSize = a.pageSize);
|
|
7334
7346
|
}, g = () => {
|
|
7335
|
-
|
|
7336
|
-
},
|
|
7337
|
-
y(
|
|
7338
|
-
}, y = async (
|
|
7339
|
-
var
|
|
7340
|
-
if (
|
|
7347
|
+
f(), a.defer === !1 && y();
|
|
7348
|
+
}, T = (r) => {
|
|
7349
|
+
y(r);
|
|
7350
|
+
}, y = async (r = {}) => {
|
|
7351
|
+
var K, Y;
|
|
7352
|
+
if (r.refresh && t.loading)
|
|
7341
7353
|
return;
|
|
7342
7354
|
t.loading = !0;
|
|
7343
|
-
const
|
|
7344
|
-
pageSize:
|
|
7345
|
-
pageStart:
|
|
7355
|
+
const h = {
|
|
7356
|
+
pageSize: r.pageSize || s.pageSize,
|
|
7357
|
+
pageStart: r.pageStart || s.page
|
|
7346
7358
|
};
|
|
7347
|
-
|
|
7348
|
-
const { list: R = [], total:
|
|
7349
|
-
s.list = R.map((
|
|
7350
|
-
},
|
|
7351
|
-
|
|
7352
|
-
},
|
|
7359
|
+
r.refresh && (h.remote = !0);
|
|
7360
|
+
const { list: R = [], total: P, summary: G } = await a.loadData(h) || {};
|
|
7361
|
+
s.list = R.map((X, xl) => (X.index = xl, X)), P === void 0 ? (s.total = s.list.length, s.nopagination = !0) : (s.total = P, s.nopagination = !1), (Y = (K = globalThis.$config) == null ? void 0 : K.table) != null && Y.scrollToTop && m(), z(G), t.loading = !1;
|
|
7362
|
+
}, z = (r) => {
|
|
7363
|
+
r ? s.summary = r : s.summary = !1;
|
|
7364
|
+
}, B = (r) => {
|
|
7353
7365
|
if (s.summaryType === "locale")
|
|
7354
7366
|
return [];
|
|
7355
7367
|
if (s.summaryType === "remote") {
|
|
7356
|
-
const
|
|
7357
|
-
if (
|
|
7358
|
-
return typeof
|
|
7359
|
-
}, R = (
|
|
7360
|
-
var
|
|
7361
|
-
const
|
|
7362
|
-
return
|
|
7368
|
+
const h = (P, G) => {
|
|
7369
|
+
if (P != null)
|
|
7370
|
+
return typeof P == "function" ? P(G) : P[G];
|
|
7371
|
+
}, R = (P) => {
|
|
7372
|
+
var K, Y;
|
|
7373
|
+
const G = h(a.summaryMetric, P);
|
|
7374
|
+
return G !== void 0 ? G : h((Y = (K = globalThis.$config) == null ? void 0 : K.table) == null ? void 0 : Y.summaryMetric, P);
|
|
7363
7375
|
};
|
|
7364
|
-
return
|
|
7376
|
+
return Vl(r, s.summary, { resolveMetric: R });
|
|
7365
7377
|
}
|
|
7366
7378
|
return [];
|
|
7367
|
-
},
|
|
7379
|
+
}, m = () => {
|
|
7368
7380
|
_.value.$refs.scrollBarRef.setScrollTop(0);
|
|
7369
|
-
},
|
|
7381
|
+
}, p = () => {
|
|
7370
7382
|
y({
|
|
7371
7383
|
pageStart: 1
|
|
7372
7384
|
});
|
|
7373
|
-
},
|
|
7385
|
+
}, x = () => {
|
|
7374
7386
|
y();
|
|
7375
|
-
},
|
|
7376
|
-
if (t.selection =
|
|
7377
|
-
const
|
|
7378
|
-
let
|
|
7379
|
-
|
|
7380
|
-
for (let
|
|
7381
|
-
A.$refs.body.toggleRowSelection(s.list[
|
|
7387
|
+
}, d = (r) => {
|
|
7388
|
+
if (t.selection = r, b("selection-change", r), t.shiftKey) {
|
|
7389
|
+
const h = r[r.length - 2], R = r[r.length - 1], P = s.list.filter1((X) => X.id === h.id).index || 0, G = s.list.filter1((X) => X.id === R.id).index;
|
|
7390
|
+
let K = P, Y = G;
|
|
7391
|
+
P > G && (K = G, Y = P);
|
|
7392
|
+
for (let X = K; X <= Y; X++)
|
|
7393
|
+
A.$refs.body.toggleRowSelection(s.list[X], !0);
|
|
7382
7394
|
}
|
|
7383
|
-
},
|
|
7384
|
-
t.loading || (y({ refresh: !0 }),
|
|
7385
|
-
},
|
|
7395
|
+
}, C = () => {
|
|
7396
|
+
t.loading || (y({ refresh: !0 }), b("refresh"));
|
|
7397
|
+
}, v = () => {
|
|
7386
7398
|
c.current = 0;
|
|
7387
|
-
},
|
|
7399
|
+
}, w = () => {
|
|
7388
7400
|
c.current = 1;
|
|
7389
|
-
},
|
|
7401
|
+
}, D = () => {
|
|
7390
7402
|
t.tableKey++;
|
|
7391
|
-
},
|
|
7392
|
-
document.addEventListener("keydown",
|
|
7393
|
-
},
|
|
7394
|
-
|
|
7395
|
-
},
|
|
7396
|
-
|
|
7397
|
-
},
|
|
7398
|
-
document.removeEventListener("keydown",
|
|
7399
|
-
},
|
|
7400
|
-
s.list[
|
|
7401
|
-
},
|
|
7402
|
-
var
|
|
7403
|
-
let
|
|
7404
|
-
return a.noheader === !1 && (
|
|
7405
|
-
}), ie =
|
|
7403
|
+
}, f = () => {
|
|
7404
|
+
document.addEventListener("keydown", O), document.addEventListener("keyup", M);
|
|
7405
|
+
}, O = (r) => {
|
|
7406
|
+
r.keyCode === 16 && (t.shiftKey = !0);
|
|
7407
|
+
}, M = (r) => {
|
|
7408
|
+
r.keyCode === 16 && (t.shiftKey = !1);
|
|
7409
|
+
}, j = () => {
|
|
7410
|
+
document.removeEventListener("keydown", O), document.removeEventListener("keyup", M);
|
|
7411
|
+
}, F = ({ i: r, row: h }) => {
|
|
7412
|
+
s.list[r] = h;
|
|
7413
|
+
}, H = k(() => {
|
|
7414
|
+
var h;
|
|
7415
|
+
let r = a.height || ((h = globalThis.$config.options) == null ? void 0 : h.pageHeight) || 640;
|
|
7416
|
+
return a.noheader === !1 && (r -= 64), a.nofooter === !1 && (r -= 56), r -= a.minusHeight, r;
|
|
7417
|
+
}), ie = k(() => !!s.summary), fe = k(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), re = k(() => {
|
|
7406
7418
|
if (a.tool) {
|
|
7407
|
-
const { column:
|
|
7419
|
+
const { column: r = !0, download: h = !0, refresh: R = !0 } = a.tool;
|
|
7408
7420
|
return {
|
|
7409
|
-
column:
|
|
7410
|
-
download:
|
|
7421
|
+
column: r,
|
|
7422
|
+
download: h,
|
|
7411
7423
|
refresh: R
|
|
7412
7424
|
};
|
|
7413
7425
|
} else
|
|
7414
7426
|
return !1;
|
|
7415
7427
|
});
|
|
7416
|
-
return
|
|
7417
|
-
|
|
7428
|
+
return ce(() => {
|
|
7429
|
+
j();
|
|
7418
7430
|
}), o({
|
|
7419
|
-
initTable:
|
|
7420
|
-
editRow:
|
|
7421
|
-
}), (
|
|
7422
|
-
const R =
|
|
7423
|
-
return
|
|
7424
|
-
a.noheader === !1 ? (
|
|
7431
|
+
initTable: T,
|
|
7432
|
+
editRow: F
|
|
7433
|
+
}), (r, h) => {
|
|
7434
|
+
const R = I("el-button"), P = I("Loading"), G = I("el-table"), K = I("el-pagination"), Y = I("Drawer");
|
|
7435
|
+
return S(), $("div", ss, [
|
|
7436
|
+
a.noheader === !1 ? (S(), $("div", {
|
|
7425
7437
|
key: 0,
|
|
7426
|
-
class:
|
|
7438
|
+
class: V(["flexMode hb g12 p16 bg-white", a.autoHeader ? "minh64" : "h64"])
|
|
7427
7439
|
}, [
|
|
7428
7440
|
u("div", {
|
|
7429
|
-
class:
|
|
7441
|
+
class: V(["flexMode vc flexGrow maxwp100", a.headerClass])
|
|
7430
7442
|
}, [
|
|
7431
|
-
|
|
7443
|
+
J(r.$slots, "header", {}, void 0, !0)
|
|
7432
7444
|
], 2),
|
|
7433
|
-
n(
|
|
7434
|
-
n(
|
|
7445
|
+
n(re) ? (S(), $("div", rs, [
|
|
7446
|
+
n(re).refresh ? (S(), q(R, {
|
|
7435
7447
|
key: 0,
|
|
7436
|
-
onClick:
|
|
7448
|
+
onClick: C
|
|
7437
7449
|
}, {
|
|
7438
|
-
icon:
|
|
7450
|
+
icon: L(() => [...h[2] || (h[2] = [
|
|
7439
7451
|
u("i", { class: "imicon im-reload" }, null, -1)
|
|
7440
7452
|
])]),
|
|
7441
|
-
default:
|
|
7442
|
-
|
|
7453
|
+
default: L(() => [
|
|
7454
|
+
ae(" " + E(r.$l("Refresh")), 1)
|
|
7443
7455
|
]),
|
|
7444
7456
|
_: 1
|
|
7445
7457
|
})) : U("", !0),
|
|
7446
|
-
n(
|
|
7458
|
+
n(re).column ? (S(), q(R, {
|
|
7447
7459
|
key: 1,
|
|
7448
|
-
onClick:
|
|
7460
|
+
onClick: v
|
|
7449
7461
|
}, {
|
|
7450
|
-
icon:
|
|
7462
|
+
icon: L(() => [...h[3] || (h[3] = [
|
|
7451
7463
|
u("i", { class: "imicon im-layout" }, null, -1)
|
|
7452
7464
|
])]),
|
|
7453
|
-
default:
|
|
7454
|
-
|
|
7465
|
+
default: L(() => [
|
|
7466
|
+
ae(" " + E(r.$l("Columns")), 1)
|
|
7455
7467
|
]),
|
|
7456
7468
|
_: 1
|
|
7457
7469
|
})) : U("", !0),
|
|
7458
|
-
n(
|
|
7470
|
+
n(re).download ? (S(), q(R, {
|
|
7459
7471
|
key: 2,
|
|
7460
|
-
onClick:
|
|
7472
|
+
onClick: w
|
|
7461
7473
|
}, {
|
|
7462
|
-
icon:
|
|
7474
|
+
icon: L(() => [...h[4] || (h[4] = [
|
|
7463
7475
|
u("i", { class: "imicon im-download" }, null, -1)
|
|
7464
7476
|
])]),
|
|
7465
|
-
default:
|
|
7466
|
-
|
|
7477
|
+
default: L(() => [
|
|
7478
|
+
ae(" " + E(r.$l("Download")), 1)
|
|
7467
7479
|
]),
|
|
7468
7480
|
_: 1
|
|
7469
7481
|
})) : U("", !0)
|
|
7470
7482
|
])) : U("", !0)
|
|
7471
7483
|
], 2)) : U("", !0),
|
|
7472
7484
|
u("div", is, [
|
|
7473
|
-
N(
|
|
7485
|
+
N(P, {
|
|
7474
7486
|
loading: n(t).loading
|
|
7475
7487
|
}, null, 8, ["loading"]),
|
|
7476
|
-
(
|
|
7488
|
+
(S(), q(G, {
|
|
7477
7489
|
ref_key: "body",
|
|
7478
7490
|
ref: _,
|
|
7479
7491
|
key: n(t).tableKey,
|
|
7480
|
-
height: n(
|
|
7492
|
+
height: n(H),
|
|
7481
7493
|
data: n(s).list,
|
|
7482
7494
|
"default-expand-all": a.defaultExpandAll,
|
|
7483
7495
|
"row-key": a.rowKey,
|
|
7484
7496
|
stripe: "",
|
|
7485
7497
|
border: "",
|
|
7486
7498
|
"show-summary": n(ie),
|
|
7487
|
-
"summary-method":
|
|
7499
|
+
"summary-method": B,
|
|
7488
7500
|
class: "MainTable",
|
|
7489
|
-
onSelectionChange:
|
|
7501
|
+
onSelectionChange: d
|
|
7490
7502
|
}, {
|
|
7491
|
-
default:
|
|
7492
|
-
N(n(gn),
|
|
7503
|
+
default: L(() => [
|
|
7504
|
+
N(n(gn), le({
|
|
7493
7505
|
"table-name": a.tableName,
|
|
7494
|
-
column: n(
|
|
7495
|
-
},
|
|
7496
|
-
default:
|
|
7497
|
-
|
|
7506
|
+
column: n(re) ? n(re).column : !1
|
|
7507
|
+
}, r.$attrs), {
|
|
7508
|
+
default: L(() => [
|
|
7509
|
+
J(r.$slots, "default", {}, void 0, !0)
|
|
7498
7510
|
]),
|
|
7499
7511
|
_: 3
|
|
7500
7512
|
}, 16, ["table-name", "column"])
|
|
@@ -7502,10 +7514,10 @@ const Ct = ol({
|
|
|
7502
7514
|
_: 3
|
|
7503
7515
|
}, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
|
|
7504
7516
|
]),
|
|
7505
|
-
a.nofooter === !1 ? (
|
|
7506
|
-
N(
|
|
7517
|
+
a.nofooter === !1 ? (S(), $("div", us, [
|
|
7518
|
+
N(K, {
|
|
7507
7519
|
"current-page": n(s).page,
|
|
7508
|
-
"onUpdate:currentPage":
|
|
7520
|
+
"onUpdate:currentPage": h[0] || (h[0] = (X) => n(s).page = X),
|
|
7509
7521
|
background: "",
|
|
7510
7522
|
total: n(s).total,
|
|
7511
7523
|
"default-page-size": n(s).pageSize,
|
|
@@ -7513,23 +7525,23 @@ const Ct = ol({
|
|
|
7513
7525
|
"pager-count": 5,
|
|
7514
7526
|
layout: n(fe),
|
|
7515
7527
|
class: "wp100",
|
|
7516
|
-
onSizeChange:
|
|
7517
|
-
onCurrentChange:
|
|
7528
|
+
onSizeChange: p,
|
|
7529
|
+
onCurrentChange: x
|
|
7518
7530
|
}, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
|
|
7519
7531
|
])) : U("", !0),
|
|
7520
|
-
N(
|
|
7532
|
+
N(Y, {
|
|
7521
7533
|
current: n(c).current,
|
|
7522
|
-
"onUpdate:current":
|
|
7534
|
+
"onUpdate:current": h[1] || (h[1] = (X) => n(c).current = X),
|
|
7523
7535
|
"table-name": a.tableName,
|
|
7524
7536
|
drawer: n(c).list,
|
|
7525
7537
|
list: n(s).list,
|
|
7526
7538
|
selection: n(t).selection,
|
|
7527
|
-
onInitColumn:
|
|
7539
|
+
onInitColumn: D
|
|
7528
7540
|
}, null, 8, ["current", "table-name", "drawer", "list", "selection"])
|
|
7529
7541
|
]);
|
|
7530
7542
|
};
|
|
7531
7543
|
}
|
|
7532
|
-
}), ds = /* @__PURE__ */
|
|
7544
|
+
}), ds = /* @__PURE__ */ Q(cs, [["__scopeId", "data-v-f79bf58d"]]), ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7533
7545
|
__proto__: null,
|
|
7534
7546
|
default: ds
|
|
7535
7547
|
}, Symbol.toStringTag, { value: "Module" })), bs = { class: "minh480 pt16" }, fs = /* @__PURE__ */ Object.assign({
|
|
@@ -7579,24 +7591,24 @@ const Ct = ol({
|
|
|
7579
7591
|
},
|
|
7580
7592
|
emits: ["update:modelValue", "change"],
|
|
7581
7593
|
setup(e, { emit: o }) {
|
|
7582
|
-
const l = e, a = o, t =
|
|
7583
|
-
a("update:modelValue",
|
|
7584
|
-
const g = l.options.find((
|
|
7585
|
-
a("change",
|
|
7586
|
-
}, _ =
|
|
7587
|
-
() => l.options.find((
|
|
7588
|
-
), A =
|
|
7589
|
-
const
|
|
7590
|
-
if (!(!
|
|
7591
|
-
return
|
|
7592
|
-
}),
|
|
7593
|
-
const
|
|
7594
|
-
return !
|
|
7594
|
+
const l = e, a = o, t = be(), s = (i) => i == null ? i : ["Object", "Array"].includes(globalThis.$getType(i)) ? i[l.valueKey] : i, c = (i) => {
|
|
7595
|
+
a("update:modelValue", i);
|
|
7596
|
+
const g = l.options.find((T) => s(T) === i);
|
|
7597
|
+
a("change", i, g);
|
|
7598
|
+
}, _ = k(
|
|
7599
|
+
() => l.options.find((i) => s(i) === l.modelValue)
|
|
7600
|
+
), A = k(() => {
|
|
7601
|
+
const i = _.value;
|
|
7602
|
+
if (!(!i || !["Object", "Array"].includes(globalThis.$getType(i))))
|
|
7603
|
+
return i[l.componentKey];
|
|
7604
|
+
}), b = k(() => {
|
|
7605
|
+
const i = _.value;
|
|
7606
|
+
return !i || !["Object", "Array"].includes(globalThis.$getType(i)) ? {} : i[l.panePropsKey] ?? {};
|
|
7595
7607
|
});
|
|
7596
|
-
return (
|
|
7597
|
-
const
|
|
7598
|
-
return
|
|
7599
|
-
N(
|
|
7608
|
+
return (i, g) => {
|
|
7609
|
+
const T = I("BtnGroup");
|
|
7610
|
+
return S(), $("div", le({ class: "MvcTabs" }, n(t)), [
|
|
7611
|
+
N(T, {
|
|
7600
7612
|
"model-value": l.modelValue,
|
|
7601
7613
|
options: l.options,
|
|
7602
7614
|
"value-key": l.valueKey,
|
|
@@ -7607,7 +7619,7 @@ const Ct = ol({
|
|
|
7607
7619
|
"onUpdate:modelValue": c
|
|
7608
7620
|
}, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
|
|
7609
7621
|
u("div", bs, [
|
|
7610
|
-
n(A) ? (
|
|
7622
|
+
n(A) ? (S(), q(tl(n(A)), Te(le({ key: 0 }, n(b))), null, 16)) : U("", !0)
|
|
7611
7623
|
])
|
|
7612
7624
|
], 16);
|
|
7613
7625
|
};
|
|
@@ -7663,90 +7675,94 @@ const Ct = ol({
|
|
|
7663
7675
|
"focus"
|
|
7664
7676
|
],
|
|
7665
7677
|
setup(e, { emit: o }) {
|
|
7666
|
-
const l = e, a =
|
|
7678
|
+
const l = e, a = be(), t = Z(null);
|
|
7667
7679
|
let s = null;
|
|
7668
7680
|
const c = W({
|
|
7669
7681
|
val: "",
|
|
7670
7682
|
isComposing: !1,
|
|
7671
7683
|
focused: !1
|
|
7672
|
-
}), _ = o, { proxy: A } =
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7684
|
+
}), _ = o, { proxy: A } = ue(), b = k(() => {
|
|
7685
|
+
const { class: M, ...j } = a;
|
|
7686
|
+
return j;
|
|
7687
|
+
});
|
|
7688
|
+
te(() => {
|
|
7689
|
+
var j, F;
|
|
7690
|
+
const M = (j = t.value) == null ? void 0 : j.$el;
|
|
7691
|
+
s = (F = M == null ? void 0 : M.querySelector) == null ? void 0 : F.call(M, "textarea"), s && (s.addEventListener("compositionstart", i), s.addEventListener("compositionend", g));
|
|
7677
7692
|
});
|
|
7678
|
-
const
|
|
7693
|
+
const i = () => {
|
|
7679
7694
|
c.isComposing = !0;
|
|
7680
|
-
},
|
|
7681
|
-
c.isComposing = !1,
|
|
7682
|
-
},
|
|
7683
|
-
c.isComposing ||
|
|
7684
|
-
},
|
|
7685
|
-
c.focused = !0, _("focus",
|
|
7686
|
-
},
|
|
7687
|
-
c.focused = !1, _("blur",
|
|
7688
|
-
},
|
|
7689
|
-
const
|
|
7690
|
-
return l.output === "array" ?
|
|
7691
|
-
},
|
|
7692
|
-
`) : String(
|
|
7693
|
-
`),
|
|
7694
|
-
const
|
|
7695
|
-
_("update:modelValue",
|
|
7696
|
-
},
|
|
7695
|
+
}, g = () => {
|
|
7696
|
+
c.isComposing = !1, de(() => p(c.val));
|
|
7697
|
+
}, T = (M) => {
|
|
7698
|
+
c.isComposing || p(M);
|
|
7699
|
+
}, y = (M) => {
|
|
7700
|
+
c.focused = !0, _("focus", M);
|
|
7701
|
+
}, z = (M) => {
|
|
7702
|
+
c.focused = !1, _("blur", M);
|
|
7703
|
+
}, B = (M) => {
|
|
7704
|
+
const j = String(M ?? "").split(/\r?\n/);
|
|
7705
|
+
return l.output === "array" ? j : j.join(",");
|
|
7706
|
+
}, m = (M) => Array.isArray(M) ? M.join(`
|
|
7707
|
+
`) : String(M ?? "").replace(/,/g, `
|
|
7708
|
+
`), p = (M) => {
|
|
7709
|
+
const j = B(M);
|
|
7710
|
+
_("update:modelValue", j), _("input", j);
|
|
7711
|
+
}, x = k(() => {
|
|
7697
7712
|
if (!l.height) return A.$attrs["input-style"];
|
|
7698
|
-
const
|
|
7699
|
-
return { ...A.$attrs["input-style"] && typeof A.$attrs["input-style"] == "object" ? { ...A.$attrs["input-style"] } : {}, height:
|
|
7700
|
-
}),
|
|
7701
|
-
() => l.materialLabel && (c.focused ||
|
|
7702
|
-
),
|
|
7713
|
+
const M = typeof l.height == "number" ? `${l.height}px` : l.height;
|
|
7714
|
+
return { ...A.$attrs["input-style"] && typeof A.$attrs["input-style"] == "object" ? { ...A.$attrs["input-style"] } : {}, height: M, minHeight: M };
|
|
7715
|
+
}), d = k(() => !!(A.$attrs.maxlength || C.value)), C = k(() => A.$attrs.max), v = k(() => String(c.val ?? "").length > 0), w = k(() => !!a.placeholder), D = k(
|
|
7716
|
+
() => l.materialLabel && (c.focused || v.value || w.value)
|
|
7717
|
+
), f = k(() => ({
|
|
7718
|
+
[a.class]: !!a.class,
|
|
7703
7719
|
hasLabel: !!l.label,
|
|
7704
7720
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
7705
7721
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
7706
|
-
isFloat:
|
|
7722
|
+
isFloat: D.value,
|
|
7707
7723
|
isFocused: c.focused,
|
|
7708
7724
|
isDisabled: !!a.disabled,
|
|
7709
7725
|
isTextarea: !0
|
|
7710
|
-
})),
|
|
7726
|
+
})), O = k(
|
|
7711
7727
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
7712
7728
|
);
|
|
7713
|
-
return
|
|
7729
|
+
return ne(
|
|
7714
7730
|
() => l.modelValue,
|
|
7715
|
-
(
|
|
7716
|
-
const
|
|
7717
|
-
c.val !==
|
|
7731
|
+
(M) => {
|
|
7732
|
+
const j = m(M);
|
|
7733
|
+
c.val !== j && (c.val = j);
|
|
7718
7734
|
},
|
|
7719
7735
|
{ immediate: !0 }
|
|
7720
|
-
),
|
|
7721
|
-
s && (s.removeEventListener("compositionstart",
|
|
7722
|
-
}), (
|
|
7723
|
-
const
|
|
7724
|
-
return
|
|
7725
|
-
class:
|
|
7726
|
-
style:
|
|
7736
|
+
), ce(() => {
|
|
7737
|
+
s && (s.removeEventListener("compositionstart", i), s.removeEventListener("compositionend", g), s = null);
|
|
7738
|
+
}), (M, j) => {
|
|
7739
|
+
const F = I("el-input");
|
|
7740
|
+
return S(), $("div", {
|
|
7741
|
+
class: V(["MvcField MvcFieldTextarea", n(f)]),
|
|
7742
|
+
style: se(n(O))
|
|
7727
7743
|
}, [
|
|
7728
|
-
l.label ? (
|
|
7729
|
-
N(
|
|
7744
|
+
l.label ? (S(), $("label", vs, E(l.label), 1)) : U("", !0),
|
|
7745
|
+
N(F, le({
|
|
7730
7746
|
ref_key: "inputRef",
|
|
7731
7747
|
ref: t,
|
|
7732
7748
|
type: "textarea",
|
|
7733
7749
|
modelValue: n(c).val,
|
|
7734
|
-
"onUpdate:modelValue":
|
|
7750
|
+
"onUpdate:modelValue": j[0] || (j[0] = (H) => n(c).val = H),
|
|
7735
7751
|
rows: l.rows,
|
|
7736
|
-
style:
|
|
7737
|
-
"input-style": n(
|
|
7738
|
-
"show-word-limit": n(
|
|
7739
|
-
maxlength: n(
|
|
7752
|
+
style: n(b).style,
|
|
7753
|
+
"input-style": n(x),
|
|
7754
|
+
"show-word-limit": n(d),
|
|
7755
|
+
maxlength: n(C),
|
|
7740
7756
|
class: "MvcTextarea"
|
|
7741
|
-
},
|
|
7742
|
-
onInput:
|
|
7743
|
-
onFocus:
|
|
7744
|
-
onBlur:
|
|
7757
|
+
}, n(b), {
|
|
7758
|
+
onInput: T,
|
|
7759
|
+
onFocus: y,
|
|
7760
|
+
onBlur: z
|
|
7745
7761
|
}), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength"])
|
|
7746
7762
|
], 6);
|
|
7747
7763
|
};
|
|
7748
7764
|
}
|
|
7749
|
-
}), gs = /* @__PURE__ */
|
|
7765
|
+
}), gs = /* @__PURE__ */ Q(hs, [["__scopeId", "data-v-e6e80c47"]]), _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7750
7766
|
__proto__: null,
|
|
7751
7767
|
default: gs
|
|
7752
7768
|
}, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
|
|
@@ -7798,7 +7814,7 @@ const As = (e, o = {}) => {
|
|
|
7798
7814
|
}, Cs = {
|
|
7799
7815
|
name: "Matt Avias Frame",
|
|
7800
7816
|
copyright: "©2026",
|
|
7801
|
-
version: "1.0.
|
|
7817
|
+
version: "1.0.88",
|
|
7802
7818
|
author: "Matt Avias",
|
|
7803
7819
|
date: "2026-02-26",
|
|
7804
7820
|
/** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
|
|
@@ -7834,12 +7850,12 @@ const As = (e, o = {}) => {
|
|
|
7834
7850
|
export {
|
|
7835
7851
|
vt as D,
|
|
7836
7852
|
Xl as M,
|
|
7837
|
-
|
|
7853
|
+
Q as _,
|
|
7838
7854
|
Is as a,
|
|
7839
7855
|
Za as b,
|
|
7840
7856
|
Re as c,
|
|
7841
7857
|
Us as d,
|
|
7842
|
-
|
|
7858
|
+
Vs as e,
|
|
7843
7859
|
Fs as f,
|
|
7844
7860
|
Ds as g,
|
|
7845
7861
|
Xa as h,
|
|
@@ -7848,7 +7864,7 @@ export {
|
|
|
7848
7864
|
Gs as k,
|
|
7849
7865
|
ve as m,
|
|
7850
7866
|
ql as n,
|
|
7851
|
-
|
|
7867
|
+
Bs as p,
|
|
7852
7868
|
_e as s,
|
|
7853
7869
|
De as u
|
|
7854
7870
|
};
|