mvframe 1.0.82 → 1.0.86
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/.cursor/rules/style-system.mdc +45 -0
- package/README.cn.md +23 -0
- package/README.md +23 -0
- package/dist/composition.js +148 -130
- package/dist/css/cpt.css +1 -1
- package/dist/css/style.css +1 -1
- package/dist/vendor.js +1176 -1164
- package/package.json +1 -1
- package/scripts/install-codex-agents.js +6 -2
- package/scripts/scaffold-app.js +23 -0
package/dist/vendor.js
CHANGED
|
@@ -2,7 +2,7 @@ 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 B, 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 Ve, 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
7
|
import { deepEqual as Be, isInView as Dl, loadMvframeTheme as Il, MVFRAME_STORAGE_LANG as Fe, download as Vl, useRemoteSummary as Bl, useOptions as Fl, useLang as Ul } from "./composition.js";
|
|
8
8
|
import Ue from "vuedraggable";
|
|
@@ -4183,17 +4183,17 @@ 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
4198
|
function Bs() {
|
|
4199
4199
|
return {
|
|
@@ -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
4309
|
class: B(["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
4315
|
class: B([[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
4371
|
class: B(["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
4376
|
class: B(["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
4382
|
class: B(["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, V.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), V = 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(V),
|
|
4480
4480
|
onClosed: _,
|
|
4481
|
-
onOpened:
|
|
4481
|
+
onOpened: b,
|
|
4482
4482
|
class: B(n(t).dragMode && "notransition noevent noselect")
|
|
4483
4483
|
}, {
|
|
4484
|
-
default:
|
|
4484
|
+
default: L(() => [
|
|
4485
4485
|
u("div", bt, [
|
|
4486
4486
|
u("div", {
|
|
4487
4487
|
class: B(["dragHandle", n(t).dragMode && "active"]),
|
|
4488
|
-
onMousedown:
|
|
4489
|
-
}, [...
|
|
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"), V = I("el-scrollbar"), m = I("el-button");
|
|
4604
|
+
return S(), $(ee, null, [
|
|
4605
4605
|
u("div", {
|
|
4606
|
-
class: B(["MvcDrawerBody VAfter", n(
|
|
4607
|
-
style:
|
|
4606
|
+
class: B(["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(V, {
|
|
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
4627
|
class: B(["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
4638
|
class: B(["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
4655
|
class: B(["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,18 +4693,18 @@ 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 }) : Ve(t.type, { ...t.props || {}, label: g }, T);
|
|
4708
4708
|
}
|
|
4709
4709
|
return Ie(t, { label: g });
|
|
4710
4710
|
}
|
|
@@ -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 && !Be(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 && !Be(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", V);
|
|
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
|
+
}, V = (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", V), a == null || a(), a = null;
|
|
4930
|
+
}), (f, O) => (S(), $("div", Mt, [
|
|
4931
4931
|
u("div", $t, [
|
|
4932
|
-
(
|
|
4933
|
-
key:
|
|
4934
|
-
id: `tab_${
|
|
4932
|
+
(S(!0), $(ee, null, oe(n(v), (M, j) => (S(), $("div", {
|
|
4933
|
+
key: M.name,
|
|
4934
|
+
id: `tab_${M.name}`,
|
|
4935
4935
|
class: B(["tabItem relative flexMode vc g4 noShrink h32 p0-8 fs12 radius4 point noselect", [
|
|
4936
|
-
|
|
4937
|
-
n(
|
|
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: B(["imicon",
|
|
4945
|
+
class: B(["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"], Vt = { class: "itemIcon w24 txt-c txt-tip fs18" }, Bt = { 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
|
+
}, V = () => {
|
|
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
|
|
5041
|
+
}), (d, C) => {
|
|
5042
|
+
const v = I("el-popconfirm");
|
|
5043
|
+
return S(), $("div", {
|
|
5044
5044
|
class: B(["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: B(["imicon fs20", n(
|
|
5058
|
+
class: B(["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
5070
|
class: B(["menuItem flexMode vc g8 radius4 p0-16", [
|
|
5071
|
-
n(t).name ===
|
|
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: V
|
|
5077
5077
|
}, [
|
|
5078
5078
|
u("div", Vt, [
|
|
5079
|
-
|
|
5079
|
+
w.meta.icon ? (S(), $("i", {
|
|
5080
5080
|
key: 0,
|
|
5081
|
-
class: B([l.iconClass,
|
|
5082
|
-
}, null, 2)) : (
|
|
5081
|
+
class: B([l.iconClass, w.meta.icon])
|
|
5082
|
+
}, null, 2)) : (S(), $("span", Bt, E(((f = w.meta.title) == null ? void 0 : f.substr(0, 1)) || "U"), 1))
|
|
5083
5083
|
]),
|
|
5084
5084
|
u("div", {
|
|
5085
5085
|
class: B(["itemTitle txt-nowrap fs14", [
|
|
5086
|
-
n(t).name ===
|
|
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: B(["childrenItem flexMode vc g8 radius4 h40 p0-16", n(t).name ===
|
|
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: B(["childrenItem flexMode vc g8 radius4 h40 p0-16", n(t).name === M.name && "active bg-primary"]),
|
|
5095
|
+
onClick: (F) => z(M),
|
|
5096
|
+
onDblclick: V
|
|
5097
5097
|
}, [
|
|
5098
5098
|
u("div", Gt, [
|
|
5099
|
-
|
|
5099
|
+
M.meta.icon ? (S(), $("i", {
|
|
5100
5100
|
key: 0,
|
|
5101
|
-
class: B([l.iconClass,
|
|
5101
|
+
class: B([l.iconClass, M.meta.icon])
|
|
5102
5102
|
}, null, 2)) : U("", !0)
|
|
5103
5103
|
]),
|
|
5104
5104
|
u("div", {
|
|
5105
5105
|
class: B(["itemTitle txt-nowrap fs14", [
|
|
5106
|
-
n(t).name ===
|
|
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
5125
|
class: B(["fs14", n(a).collapse && "hide"])
|
|
5126
|
-
},
|
|
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, V = (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: B(["menuItem", { disabled: y(
|
|
5295
|
-
disabled: y(
|
|
5296
|
-
onClick: (
|
|
5294
|
+
class: B(["menuItem", { disabled: y(v) }]),
|
|
5295
|
+
disabled: y(v),
|
|
5296
|
+
onClick: (D) => V(v)
|
|
5297
5297
|
}, [
|
|
5298
|
-
|
|
5298
|
+
v.icon ? (S(), $("i", {
|
|
5299
5299
|
key: 0,
|
|
5300
|
-
class: B(["imicon menuIcon",
|
|
5300
|
+
class: B(["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, V, 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 = (V = globalThis.$config) == null ? void 0 : V.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,78 @@ 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
|
+
}, V = (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(() => ({
|
|
5488
5491
|
hasLabel: !!l.label,
|
|
5489
5492
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
5490
5493
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
5491
|
-
isFloat:
|
|
5494
|
+
isFloat: v.value,
|
|
5492
5495
|
isFocused: _.focused,
|
|
5493
5496
|
isDisabled: !!t.disabled
|
|
5494
|
-
})),
|
|
5497
|
+
})), D = k(
|
|
5495
5498
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
5496
5499
|
);
|
|
5497
|
-
return
|
|
5500
|
+
return ne(
|
|
5498
5501
|
() => l.modelValue,
|
|
5499
|
-
(
|
|
5500
|
-
const
|
|
5501
|
-
String(_.val) !==
|
|
5502
|
+
(f) => {
|
|
5503
|
+
const O = String(f ?? "");
|
|
5504
|
+
String(_.val) !== O && (_.val = O);
|
|
5502
5505
|
},
|
|
5503
5506
|
{ immediate: !0 }
|
|
5504
|
-
),
|
|
5505
|
-
c && (c.removeEventListener("compositionstart",
|
|
5506
|
-
}), (
|
|
5507
|
-
const
|
|
5508
|
-
return
|
|
5509
|
-
class: B(["MvcField MvcFieldInput", n(
|
|
5510
|
-
style:
|
|
5507
|
+
), ce(() => {
|
|
5508
|
+
c && (c.removeEventListener("compositionstart", g), c.removeEventListener("compositionend", T), c = null);
|
|
5509
|
+
}), (f, O) => {
|
|
5510
|
+
const M = I("el-input");
|
|
5511
|
+
return S(), $("div", {
|
|
5512
|
+
class: B(["MvcField MvcFieldInput", n(w)]),
|
|
5513
|
+
style: se(n(D))
|
|
5511
5514
|
}, [
|
|
5512
|
-
l.label ? (
|
|
5513
|
-
N(
|
|
5515
|
+
l.label ? (S(), $("label", mo, E(l.label), 1)) : U("", !0),
|
|
5516
|
+
N(M, le({
|
|
5514
5517
|
ref_key: "inputRef",
|
|
5515
5518
|
ref: s,
|
|
5516
5519
|
modelValue: n(_).val,
|
|
5517
|
-
"onUpdate:modelValue":
|
|
5518
|
-
"show-word-limit": n(
|
|
5519
|
-
maxlength: n(
|
|
5520
|
+
"onUpdate:modelValue": O[0] || (O[0] = (j) => n(_).val = j),
|
|
5521
|
+
"show-word-limit": n(p),
|
|
5522
|
+
maxlength: n(x),
|
|
5520
5523
|
class: "MvcInput"
|
|
5521
|
-
},
|
|
5522
|
-
onInput:
|
|
5523
|
-
onFocus:
|
|
5524
|
-
onBlur:
|
|
5525
|
-
}),
|
|
5526
|
-
|
|
5527
|
-
name:
|
|
5528
|
-
fn:
|
|
5529
|
-
|
|
5524
|
+
}, n(i), {
|
|
5525
|
+
onInput: y,
|
|
5526
|
+
onFocus: z,
|
|
5527
|
+
onBlur: V
|
|
5528
|
+
}), pe({ _: 2 }, [
|
|
5529
|
+
oe(n(a), (j, F) => ({
|
|
5530
|
+
name: F,
|
|
5531
|
+
fn: L((H) => [
|
|
5532
|
+
J(f.$slots, F, Te(xe(H || {})))
|
|
5530
5533
|
])
|
|
5531
5534
|
}))
|
|
5532
5535
|
]), 1040, ["modelValue", "show-word-limit", "maxlength"])
|
|
@@ -5552,50 +5555,50 @@ const Ct = ol({
|
|
|
5552
5555
|
}
|
|
5553
5556
|
},
|
|
5554
5557
|
setup(e) {
|
|
5555
|
-
const o = e, l =
|
|
5556
|
-
const { class:
|
|
5557
|
-
return
|
|
5558
|
+
const o = e, l = be(), a = k(() => {
|
|
5559
|
+
const { class: b, ...i } = l;
|
|
5560
|
+
return i;
|
|
5558
5561
|
}), t = W({
|
|
5559
5562
|
lang: "en_us"
|
|
5560
5563
|
});
|
|
5561
|
-
|
|
5564
|
+
te(() => {
|
|
5562
5565
|
c();
|
|
5563
5566
|
});
|
|
5564
|
-
const s = (
|
|
5567
|
+
const s = (b) => {
|
|
5565
5568
|
var g;
|
|
5566
|
-
const
|
|
5567
|
-
|
|
5569
|
+
const i = (typeof localStorage < "u" ? localStorage.getItem(Fe) : null) || ((g = globalThis.$config) == null ? void 0 : g.lang) || "en_us";
|
|
5570
|
+
b == null || b === i || (typeof localStorage < "u" && localStorage.setItem(Fe, b), window.location.reload());
|
|
5568
5571
|
}, c = () => {
|
|
5569
5572
|
var g;
|
|
5570
|
-
const
|
|
5571
|
-
t.lang =
|
|
5572
|
-
}, _ =
|
|
5573
|
-
var
|
|
5574
|
-
return ((
|
|
5575
|
-
}), A =
|
|
5576
|
-
return (
|
|
5577
|
-
const g =
|
|
5578
|
-
return
|
|
5573
|
+
const b = ((g = globalThis.$getLang) == null ? void 0 : g.call(globalThis)) || "en_us", i = _.value.map((T) => T.value);
|
|
5574
|
+
t.lang = i.includes(b) ? b : i[0] || "en_us";
|
|
5575
|
+
}, _ = k(() => {
|
|
5576
|
+
var i;
|
|
5577
|
+
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);
|
|
5578
|
+
}), A = k(() => _.value.find((b) => b.value === t.lang) ?? null);
|
|
5579
|
+
return (b, i) => {
|
|
5580
|
+
const g = I("el-option"), T = I("el-select");
|
|
5581
|
+
return S(), q(T, le({
|
|
5579
5582
|
modelValue: t.lang,
|
|
5580
|
-
"onUpdate:modelValue":
|
|
5581
|
-
class: ["MvcLang w140",
|
|
5583
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => t.lang = y),
|
|
5584
|
+
class: ["MvcLang w140", b.$attrs.class],
|
|
5582
5585
|
teleported: o.teleported
|
|
5583
5586
|
}, a.value, { onChange: s }), {
|
|
5584
|
-
prefix:
|
|
5585
|
-
A.value ? (
|
|
5586
|
-
u("span", _o,
|
|
5587
|
+
prefix: L(() => [
|
|
5588
|
+
A.value ? (S(), $("div", go, [
|
|
5589
|
+
u("span", _o, E(A.value.txt), 1)
|
|
5587
5590
|
])) : U("", !0)
|
|
5588
5591
|
]),
|
|
5589
|
-
default:
|
|
5590
|
-
(
|
|
5592
|
+
default: L(() => [
|
|
5593
|
+
(S(!0), $(ee, null, oe(_.value, (y) => (S(), q(g, {
|
|
5591
5594
|
key: y.value,
|
|
5592
5595
|
label: y.label,
|
|
5593
5596
|
value: y.value
|
|
5594
5597
|
}, {
|
|
5595
|
-
default:
|
|
5598
|
+
default: L(() => [
|
|
5596
5599
|
u("div", yo, [
|
|
5597
|
-
u("span", wo,
|
|
5598
|
-
u("span", So,
|
|
5600
|
+
u("span", wo, E(y.txt), 1),
|
|
5601
|
+
u("span", So, E(y.label), 1)
|
|
5599
5602
|
])
|
|
5600
5603
|
]),
|
|
5601
5604
|
_: 2
|
|
@@ -5661,65 +5664,65 @@ const Ct = ol({
|
|
|
5661
5664
|
},
|
|
5662
5665
|
emits: ["update:modelValue", "change"],
|
|
5663
5666
|
setup(e, { emit: o }) {
|
|
5664
|
-
const l = e, a = o, t = (
|
|
5665
|
-
l.loading || l.disabled ||
|
|
5666
|
-
}, c = (
|
|
5667
|
+
const l = e, a = o, t = (i) => i.value === l.modelValue, s = (i) => {
|
|
5668
|
+
l.loading || l.disabled || i.disabled || (a("update:modelValue", i.value), a("change", i.value, i.raw));
|
|
5669
|
+
}, c = (i) => {
|
|
5667
5670
|
var y;
|
|
5668
|
-
const g =
|
|
5669
|
-
return
|
|
5670
|
-
}, _ =
|
|
5671
|
-
const
|
|
5672
|
-
return g.filter((
|
|
5673
|
-
value:
|
|
5674
|
-
label:
|
|
5675
|
-
disabled: !!
|
|
5676
|
-
raw:
|
|
5671
|
+
const g = i.value, T = ((y = globalThis.$getType) == null ? void 0 : y.call(globalThis, g)) ?? typeof g;
|
|
5672
|
+
return T === "Object" || T === "Array" ? JSON.stringify(g) : String(g);
|
|
5673
|
+
}, _ = k(() => {
|
|
5674
|
+
const i = l.options, g = Array.isArray(i) ? i : [], T = l.valueKey, y = l.labelKey;
|
|
5675
|
+
return g.filter((z) => z != null).map((z) => typeof z == "object" && !Array.isArray(z) ? {
|
|
5676
|
+
value: z[T],
|
|
5677
|
+
label: z[y] ?? "",
|
|
5678
|
+
disabled: !!z.disabled,
|
|
5679
|
+
raw: z
|
|
5677
5680
|
} : {
|
|
5678
|
-
value:
|
|
5679
|
-
label: String(
|
|
5681
|
+
value: z,
|
|
5682
|
+
label: String(z),
|
|
5680
5683
|
disabled: !1,
|
|
5681
|
-
raw:
|
|
5684
|
+
raw: z
|
|
5682
5685
|
});
|
|
5683
|
-
}), A =
|
|
5684
|
-
var g,
|
|
5685
|
-
const
|
|
5686
|
+
}), A = k(() => l.size === "small" ? "sizeSmall" : l.size === "large" ? "sizeLarge" : ""), b = k(() => {
|
|
5687
|
+
var g, T;
|
|
5688
|
+
const i = (T = (g = l.loadingTxt) == null ? void 0 : g.trim) == null ? void 0 : T.call(g);
|
|
5686
5689
|
return {
|
|
5687
5690
|
icon: l.loadingIcon,
|
|
5688
|
-
showTxt: !!
|
|
5689
|
-
txt:
|
|
5691
|
+
showTxt: !!i,
|
|
5692
|
+
txt: i || "- LOADING -",
|
|
5690
5693
|
radius: 8
|
|
5691
5694
|
};
|
|
5692
5695
|
});
|
|
5693
|
-
return (
|
|
5694
|
-
const
|
|
5695
|
-
return
|
|
5696
|
-
class: ["MvcList", [n(A),
|
|
5697
|
-
},
|
|
5696
|
+
return (i, g) => {
|
|
5697
|
+
const T = I("Loading");
|
|
5698
|
+
return S(), $("div", le({
|
|
5699
|
+
class: ["MvcList", [n(A), i.$attrs.class]]
|
|
5700
|
+
}, i.$attrs), [
|
|
5698
5701
|
u("div", Co, [
|
|
5699
5702
|
u("div", {
|
|
5700
5703
|
class: B(["listScroll yscroll", l.listClass]),
|
|
5701
5704
|
role: "listbox"
|
|
5702
5705
|
}, [
|
|
5703
|
-
(
|
|
5706
|
+
(S(!0), $(ee, null, oe(n(_), (y) => (S(), $("div", {
|
|
5704
5707
|
key: c(y),
|
|
5705
5708
|
class: B(["listItem", { active: t(y), isDisabled: y.disabled }]),
|
|
5706
5709
|
role: "option",
|
|
5707
5710
|
"aria-selected": t(y),
|
|
5708
|
-
onClick: (
|
|
5711
|
+
onClick: (z) => s(y)
|
|
5709
5712
|
}, [
|
|
5710
|
-
|
|
5711
|
-
|
|
5713
|
+
J(i.$slots, "item", { option: y }, () => [
|
|
5714
|
+
ae(E(i.$l(y.label)), 1)
|
|
5712
5715
|
], !0)
|
|
5713
5716
|
], 10, ko))), 128))
|
|
5714
5717
|
], 2),
|
|
5715
|
-
N(
|
|
5718
|
+
N(T, le({
|
|
5716
5719
|
loading: l.loading
|
|
5717
|
-
}, n(
|
|
5720
|
+
}, n(b)), null, 16, ["loading"])
|
|
5718
5721
|
])
|
|
5719
5722
|
], 16);
|
|
5720
5723
|
};
|
|
5721
5724
|
}
|
|
5722
|
-
}), Oo = /* @__PURE__ */
|
|
5725
|
+
}), Oo = /* @__PURE__ */ Q(xo, [["__scopeId", "data-v-cb49a0b9"]]), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5723
5726
|
__proto__: null,
|
|
5724
5727
|
default: Oo
|
|
5725
5728
|
}, Symbol.toStringTag, { value: "Module" })), $o = { class: "content flexMode flexV vc g12 relative z1" }, zo = /* @__PURE__ */ Object.assign({
|
|
@@ -5762,32 +5765,32 @@ const Ct = ol({
|
|
|
5762
5765
|
},
|
|
5763
5766
|
setup(e) {
|
|
5764
5767
|
const o = e;
|
|
5765
|
-
return (l, a) => (
|
|
5766
|
-
default:
|
|
5767
|
-
o.loading ? (
|
|
5768
|
+
return (l, a) => (S(), q(sl, { name: "loadingFade" }, {
|
|
5769
|
+
default: L(() => [
|
|
5770
|
+
o.loading ? (S(), $("div", {
|
|
5768
5771
|
key: 0,
|
|
5769
5772
|
class: "MvcLoading absFull hp100 flexMode flexV vc hc ztop",
|
|
5770
5773
|
role: "status",
|
|
5771
5774
|
"aria-busy": "true",
|
|
5772
5775
|
"aria-live": "polite",
|
|
5773
|
-
style:
|
|
5776
|
+
style: se({ borderRadius: `${(Number(o.radius) || 0) / 16}rem` })
|
|
5774
5777
|
}, [
|
|
5775
5778
|
u("div", $o, [
|
|
5776
5779
|
u("i", {
|
|
5777
5780
|
class: B([o.icon, `fs${o.size}`, "imicon ani-rotate"]),
|
|
5778
5781
|
"aria-hidden": "true"
|
|
5779
5782
|
}, null, 2),
|
|
5780
|
-
o.showTxt ? (
|
|
5783
|
+
o.showTxt ? (S(), $("span", {
|
|
5781
5784
|
key: 0,
|
|
5782
5785
|
class: B(["loaderTxt fs14 txt-c", o.txtClass])
|
|
5783
|
-
},
|
|
5786
|
+
}, E(l.$l(o.txt)), 3)) : U("", !0)
|
|
5784
5787
|
])
|
|
5785
5788
|
], 4)) : U("", !0)
|
|
5786
5789
|
]),
|
|
5787
5790
|
_: 1
|
|
5788
5791
|
}));
|
|
5789
5792
|
}
|
|
5790
|
-
}), Eo = /* @__PURE__ */
|
|
5793
|
+
}), Eo = /* @__PURE__ */ Q(zo, [["__scopeId", "data-v-89f58c94"]]), Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5791
5794
|
__proto__: null,
|
|
5792
5795
|
default: Eo
|
|
5793
5796
|
}, 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 = {
|
|
@@ -5835,25 +5838,25 @@ const Ct = ol({
|
|
|
5835
5838
|
},
|
|
5836
5839
|
emits: ["success", "submit"],
|
|
5837
5840
|
setup(e, { emit: o }) {
|
|
5838
|
-
const l = e, { proxy: a } =
|
|
5841
|
+
const l = e, { proxy: a } = ue(), t = Z(null), s = Z(!1), c = W({
|
|
5839
5842
|
method: "password",
|
|
5840
5843
|
form: {},
|
|
5841
5844
|
remember: !1
|
|
5842
5845
|
});
|
|
5843
|
-
|
|
5846
|
+
te(() => {
|
|
5844
5847
|
try {
|
|
5845
|
-
const
|
|
5846
|
-
if (
|
|
5847
|
-
const
|
|
5848
|
-
|
|
5848
|
+
const v = localStorage.getItem(Ae);
|
|
5849
|
+
if (v) {
|
|
5850
|
+
const w = JSON.parse(v);
|
|
5851
|
+
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
5852
|
}
|
|
5850
5853
|
} catch {
|
|
5851
5854
|
}
|
|
5852
5855
|
});
|
|
5853
|
-
const _ = o, A = (
|
|
5854
|
-
const
|
|
5855
|
-
|
|
5856
|
-
},
|
|
5856
|
+
const _ = o, A = (v, w = "info") => {
|
|
5857
|
+
const D = a == null ? void 0 : a.$message;
|
|
5858
|
+
D != null && D[w] && D[w](v);
|
|
5859
|
+
}, b = () => {
|
|
5857
5860
|
try {
|
|
5858
5861
|
c.remember ? localStorage.setItem(
|
|
5859
5862
|
Ae,
|
|
@@ -5865,77 +5868,77 @@ const Ct = ol({
|
|
|
5865
5868
|
) : localStorage.removeItem(Ae);
|
|
5866
5869
|
} catch {
|
|
5867
5870
|
}
|
|
5868
|
-
},
|
|
5871
|
+
}, i = () => {
|
|
5869
5872
|
A("Google 登录需按官方物料与 OAuth 配置 token,当前未发起跳转。");
|
|
5870
5873
|
}, g = () => {
|
|
5871
5874
|
A("Sign in with Apple 需按 Apple 人机界面指南配置服务,当前未发起跳转。");
|
|
5872
|
-
},
|
|
5873
|
-
var
|
|
5875
|
+
}, T = async () => {
|
|
5876
|
+
var f, O;
|
|
5874
5877
|
if (l.loading || s.value) return;
|
|
5875
|
-
const
|
|
5876
|
-
if (!
|
|
5877
|
-
const
|
|
5878
|
-
if (!
|
|
5878
|
+
const v = await ((O = (f = t.value) == null ? void 0 : f.validate) == null ? void 0 : O.call(f));
|
|
5879
|
+
if (!v) return;
|
|
5880
|
+
const w = String(v.username ?? "").trim();
|
|
5881
|
+
if (!w)
|
|
5879
5882
|
return;
|
|
5880
|
-
const
|
|
5881
|
-
if (
|
|
5883
|
+
const D = String(v.password ?? "").trim();
|
|
5884
|
+
if (D) {
|
|
5882
5885
|
s.value = !0;
|
|
5883
5886
|
try {
|
|
5884
|
-
const
|
|
5887
|
+
const M = await globalThis.$pm(async () => ({
|
|
5885
5888
|
method: "password",
|
|
5886
|
-
username:
|
|
5887
|
-
password:
|
|
5889
|
+
username: w,
|
|
5890
|
+
password: D
|
|
5888
5891
|
}));
|
|
5889
|
-
|
|
5892
|
+
b(), _("submit", {
|
|
5890
5893
|
method: "password",
|
|
5891
|
-
[
|
|
5892
|
-
[
|
|
5894
|
+
[m.value.username.valueKey]: M.username,
|
|
5895
|
+
[m.value.password.valueKey]: M.password
|
|
5893
5896
|
}), localStorage.removeItem("ctab"), localStorage.removeItem("tabs");
|
|
5894
5897
|
} finally {
|
|
5895
5898
|
s.value = !1;
|
|
5896
5899
|
}
|
|
5897
5900
|
}
|
|
5898
|
-
}, y =
|
|
5899
|
-
const
|
|
5901
|
+
}, y = k(() => !!l.loading || s.value), z = k(() => {
|
|
5902
|
+
const v = globalThis.$config;
|
|
5900
5903
|
return {
|
|
5901
|
-
copyright: (
|
|
5902
|
-
author: (
|
|
5904
|
+
copyright: (v == null ? void 0 : v.copyright) ?? "",
|
|
5905
|
+
author: (v == null ? void 0 : v.author) ?? ""
|
|
5903
5906
|
};
|
|
5904
|
-
}),
|
|
5907
|
+
}), V = k(() => d[c.method] ?? "Login"), m = k(() => ({
|
|
5905
5908
|
username: {
|
|
5906
|
-
...
|
|
5909
|
+
...C.username,
|
|
5907
5910
|
...l.formFileds.username || {}
|
|
5908
5911
|
},
|
|
5909
5912
|
password: {
|
|
5910
|
-
...
|
|
5913
|
+
...C.password,
|
|
5911
5914
|
...l.formFileds.password || {}
|
|
5912
5915
|
}
|
|
5913
|
-
})),
|
|
5916
|
+
})), p = k(() => ({
|
|
5914
5917
|
username: [
|
|
5915
5918
|
{
|
|
5916
5919
|
required: !0,
|
|
5917
|
-
message:
|
|
5920
|
+
message: m.value.username.message,
|
|
5918
5921
|
trigger: "blur"
|
|
5919
5922
|
}
|
|
5920
5923
|
],
|
|
5921
5924
|
password: [
|
|
5922
5925
|
{
|
|
5923
5926
|
required: !0,
|
|
5924
|
-
message:
|
|
5927
|
+
message: m.value.password.message,
|
|
5925
5928
|
trigger: "blur"
|
|
5926
5929
|
}
|
|
5927
5930
|
]
|
|
5928
|
-
})),
|
|
5931
|
+
})), x = k(() => [
|
|
5929
5932
|
{ value: "password", label: "Account" },
|
|
5930
5933
|
{ value: "auth", label: "Google/Apple" },
|
|
5931
5934
|
{ value: "dingtalk", label: "DingTalk" },
|
|
5932
5935
|
{ value: "feishu", label: "Lark" },
|
|
5933
5936
|
{ value: "wechat", label: "Wechat" }
|
|
5934
|
-
].filter((
|
|
5937
|
+
].filter((v, w) => l.loginMethods.includes(w))), d = {
|
|
5935
5938
|
dingtalk: "DingTalk",
|
|
5936
5939
|
feishu: "Lark",
|
|
5937
5940
|
wechat: "Wechat"
|
|
5938
|
-
},
|
|
5941
|
+
}, C = {
|
|
5939
5942
|
username: {
|
|
5940
5943
|
label: "Account",
|
|
5941
5944
|
placeholder: "Enter your account",
|
|
@@ -5953,48 +5956,48 @@ const Ct = ol({
|
|
|
5953
5956
|
valueKey: "password"
|
|
5954
5957
|
}
|
|
5955
5958
|
};
|
|
5956
|
-
return (
|
|
5957
|
-
const
|
|
5958
|
-
return
|
|
5959
|
+
return (v, w) => {
|
|
5960
|
+
const D = I("BtnGroup"), f = I("Input"), O = I("el-form-item"), M = I("el-checkbox"), j = I("el-button"), F = I("Form");
|
|
5961
|
+
return S(), $("div", jo, [
|
|
5959
5962
|
u("div", Po, [
|
|
5960
5963
|
u("div", No, [
|
|
5961
|
-
u("span", Ro,
|
|
5964
|
+
u("span", Ro, E(v.$l(l.title)), 1)
|
|
5962
5965
|
]),
|
|
5963
|
-
N(
|
|
5966
|
+
N(D, {
|
|
5964
5967
|
modelValue: n(c).method,
|
|
5965
|
-
"onUpdate:modelValue":
|
|
5966
|
-
options: n(
|
|
5968
|
+
"onUpdate:modelValue": w[0] || (w[0] = (H) => n(c).method = H),
|
|
5969
|
+
options: n(x),
|
|
5967
5970
|
disabled: n(y),
|
|
5968
5971
|
size: "small",
|
|
5969
5972
|
class: "mb32"
|
|
5970
5973
|
}, null, 8, ["modelValue", "options", "disabled"]),
|
|
5971
5974
|
u("div", Do, [
|
|
5972
|
-
n(c).method === "password" ? (
|
|
5975
|
+
n(c).method === "password" ? (S(), q(F, {
|
|
5973
5976
|
key: 0,
|
|
5974
5977
|
ref_key: "pwdFormRef",
|
|
5975
5978
|
ref: t,
|
|
5976
5979
|
modelValue: n(c).form,
|
|
5977
|
-
"onUpdate:modelValue":
|
|
5980
|
+
"onUpdate:modelValue": w[4] || (w[4] = (H) => n(c).form = H),
|
|
5978
5981
|
size: "default",
|
|
5979
|
-
rules: n(
|
|
5982
|
+
rules: n(p)
|
|
5980
5983
|
}, {
|
|
5981
|
-
default:
|
|
5982
|
-
N(
|
|
5983
|
-
default:
|
|
5984
|
-
N(
|
|
5984
|
+
default: L(() => [
|
|
5985
|
+
N(O, { prop: "username" }, {
|
|
5986
|
+
default: L(() => [
|
|
5987
|
+
N(f, {
|
|
5985
5988
|
modelValue: n(c).form.username,
|
|
5986
|
-
"onUpdate:modelValue":
|
|
5989
|
+
"onUpdate:modelValue": w[1] || (w[1] = (H) => n(c).form.username = H),
|
|
5987
5990
|
class: "wp100",
|
|
5988
5991
|
size: "large",
|
|
5989
5992
|
name: "username",
|
|
5990
|
-
placeholder: n(
|
|
5993
|
+
placeholder: n(m).username.placeholder,
|
|
5991
5994
|
disabled: n(y)
|
|
5992
|
-
},
|
|
5993
|
-
n(
|
|
5995
|
+
}, pe({ _: 2 }, [
|
|
5996
|
+
n(m).username.showPrefix ? {
|
|
5994
5997
|
name: "prefix",
|
|
5995
|
-
fn:
|
|
5998
|
+
fn: L(() => [
|
|
5996
5999
|
u("i", {
|
|
5997
|
-
class: B(n(
|
|
6000
|
+
class: B(n(m).username.icon)
|
|
5998
6001
|
}, null, 2)
|
|
5999
6002
|
]),
|
|
6000
6003
|
key: "0"
|
|
@@ -6003,25 +6006,25 @@ const Ct = ol({
|
|
|
6003
6006
|
]),
|
|
6004
6007
|
_: 1
|
|
6005
6008
|
}),
|
|
6006
|
-
N(
|
|
6007
|
-
default:
|
|
6008
|
-
N(
|
|
6009
|
+
N(O, { prop: "password" }, {
|
|
6010
|
+
default: L(() => [
|
|
6011
|
+
N(f, {
|
|
6009
6012
|
modelValue: n(c).form.password,
|
|
6010
|
-
"onUpdate:modelValue":
|
|
6013
|
+
"onUpdate:modelValue": w[2] || (w[2] = (H) => n(c).form.password = H),
|
|
6011
6014
|
class: "wp100",
|
|
6012
6015
|
size: "large",
|
|
6013
6016
|
type: "password",
|
|
6014
6017
|
name: "password",
|
|
6015
|
-
placeholder: n(
|
|
6018
|
+
placeholder: n(m).password.placeholder,
|
|
6016
6019
|
"show-password": "",
|
|
6017
6020
|
disabled: n(y),
|
|
6018
|
-
onKeyup: Pl(
|
|
6019
|
-
},
|
|
6020
|
-
n(
|
|
6021
|
+
onKeyup: Pl(T, ["enter"])
|
|
6022
|
+
}, pe({ _: 2 }, [
|
|
6023
|
+
n(m).password.showPrefix ? {
|
|
6021
6024
|
name: "prefix",
|
|
6022
|
-
fn:
|
|
6025
|
+
fn: L(() => [
|
|
6023
6026
|
u("i", {
|
|
6024
|
-
class: B(n(
|
|
6027
|
+
class: B(n(m).password.icon)
|
|
6025
6028
|
}, null, 2)
|
|
6026
6029
|
]),
|
|
6027
6030
|
key: "0"
|
|
@@ -6030,44 +6033,44 @@ const Ct = ol({
|
|
|
6030
6033
|
]),
|
|
6031
6034
|
_: 1
|
|
6032
6035
|
}),
|
|
6033
|
-
N(
|
|
6034
|
-
default:
|
|
6035
|
-
N(
|
|
6036
|
+
N(O, null, {
|
|
6037
|
+
default: L(() => [
|
|
6038
|
+
N(M, {
|
|
6036
6039
|
modelValue: n(c).remember,
|
|
6037
|
-
"onUpdate:modelValue":
|
|
6040
|
+
"onUpdate:modelValue": w[3] || (w[3] = (H) => n(c).remember = H),
|
|
6038
6041
|
disabled: n(y)
|
|
6039
6042
|
}, {
|
|
6040
|
-
default:
|
|
6041
|
-
|
|
6043
|
+
default: L(() => [
|
|
6044
|
+
ae(E(v.$l(l.rememberTxt)), 1)
|
|
6042
6045
|
]),
|
|
6043
6046
|
_: 1
|
|
6044
6047
|
}, 8, ["modelValue", "disabled"])
|
|
6045
6048
|
]),
|
|
6046
6049
|
_: 1
|
|
6047
6050
|
}),
|
|
6048
|
-
N(
|
|
6051
|
+
N(j, {
|
|
6049
6052
|
type: "primary",
|
|
6050
6053
|
size: "large",
|
|
6051
6054
|
class: "wp100",
|
|
6052
6055
|
loading: n(y),
|
|
6053
6056
|
disabled: n(y),
|
|
6054
|
-
onClick:
|
|
6057
|
+
onClick: T
|
|
6055
6058
|
}, {
|
|
6056
|
-
default:
|
|
6057
|
-
|
|
6059
|
+
default: L(() => [
|
|
6060
|
+
ae(E(v.$l(l.submitTxt)), 1)
|
|
6058
6061
|
]),
|
|
6059
6062
|
_: 1
|
|
6060
6063
|
}, 8, ["loading", "disabled"])
|
|
6061
6064
|
]),
|
|
6062
6065
|
_: 1
|
|
6063
|
-
}, 8, ["modelValue", "rules"])) : n(c).method === "auth" ? (
|
|
6064
|
-
|
|
6066
|
+
}, 8, ["modelValue", "rules"])) : n(c).method === "auth" ? (S(), $("div", Io, [
|
|
6067
|
+
w[7] || (w[7] = u("p", { class: "oauthAuthTip m0 block fs12 lh20 txt-tip mb16" }, " 需在应用中配置 OAuth Client 与 token;以下为品牌示意按钮,不发起跳转。 ", -1)),
|
|
6065
6068
|
u("button", {
|
|
6066
6069
|
type: "button",
|
|
6067
6070
|
class: "oauthGoogle wp100 mb36",
|
|
6068
6071
|
disabled: n(y),
|
|
6069
|
-
onClick:
|
|
6070
|
-
}, [...
|
|
6072
|
+
onClick: i
|
|
6073
|
+
}, [...w[5] || (w[5] = [
|
|
6071
6074
|
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
6075
|
])], 8, Vo),
|
|
6073
6076
|
u("button", {
|
|
@@ -6075,7 +6078,7 @@ const Ct = ol({
|
|
|
6075
6078
|
class: "oauthApple wp100 mb16",
|
|
6076
6079
|
disabled: n(y),
|
|
6077
6080
|
onClick: g
|
|
6078
|
-
}, [...
|
|
6081
|
+
}, [...w[6] || (w[6] = [
|
|
6079
6082
|
u("svg", {
|
|
6080
6083
|
class: "oauthAppleLogo noShrink",
|
|
6081
6084
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6091,8 +6094,8 @@ const Ct = ol({
|
|
|
6091
6094
|
], -1),
|
|
6092
6095
|
u("span", { class: "oauthAppleLabel fs14" }, "Sign in with Apple", -1)
|
|
6093
6096
|
])], 8, Bo)
|
|
6094
|
-
])) : (
|
|
6095
|
-
u("p", Uo,
|
|
6097
|
+
])) : (S(), $("div", Fo, [
|
|
6098
|
+
u("p", Uo, E(n(V)), 1),
|
|
6096
6099
|
u("div", {
|
|
6097
6100
|
class: B(["qrBlock w180 h180 radius6", `qr-${n(c).method}`]),
|
|
6098
6101
|
"aria-hidden": "true"
|
|
@@ -6101,13 +6104,13 @@ const Ct = ol({
|
|
|
6101
6104
|
])
|
|
6102
6105
|
]),
|
|
6103
6106
|
u("div", Go, [
|
|
6104
|
-
u("span", null,
|
|
6105
|
-
u("span", null,
|
|
6107
|
+
u("span", null, E(n(z).copyright), 1),
|
|
6108
|
+
u("span", null, E(n(z).author), 1)
|
|
6106
6109
|
])
|
|
6107
6110
|
]);
|
|
6108
6111
|
};
|
|
6109
6112
|
}
|
|
6110
|
-
}), Ho = /* @__PURE__ */
|
|
6113
|
+
}), Ho = /* @__PURE__ */ Q(Ko, [["__scopeId", "data-v-6faa6992"]]), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6111
6114
|
__proto__: null,
|
|
6112
6115
|
default: Ho
|
|
6113
6116
|
}, Symbol.toStringTag, { value: "Module" })), Yo = /* @__PURE__ */ Object.assign({
|
|
@@ -6134,17 +6137,17 @@ const Ct = ol({
|
|
|
6134
6137
|
setup(e) {
|
|
6135
6138
|
const o = e;
|
|
6136
6139
|
W({});
|
|
6137
|
-
const l =
|
|
6140
|
+
const l = k(() => ({
|
|
6138
6141
|
borderInlineStart: `${(Number(o.size) || 4) / 16}rem ${o.type} var(--color-${o.color})`
|
|
6139
6142
|
}));
|
|
6140
|
-
return (a, t) => (
|
|
6143
|
+
return (a, t) => (S(), $("div", {
|
|
6141
6144
|
class: "MvcNote",
|
|
6142
|
-
style:
|
|
6145
|
+
style: se(n(l))
|
|
6143
6146
|
}, [
|
|
6144
|
-
|
|
6147
|
+
J(a.$slots, "default", {}, void 0, !0)
|
|
6145
6148
|
], 4));
|
|
6146
6149
|
}
|
|
6147
|
-
}), Wo = /* @__PURE__ */
|
|
6150
|
+
}), Wo = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e3e84cc8"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6148
6151
|
__proto__: null,
|
|
6149
6152
|
default: Wo
|
|
6150
6153
|
}, Symbol.toStringTag, { value: "Module" })), qo = {
|
|
@@ -6174,35 +6177,35 @@ const Ct = ol({
|
|
|
6174
6177
|
}
|
|
6175
6178
|
},
|
|
6176
6179
|
setup(e) {
|
|
6177
|
-
const o = e, { proxy: l } =
|
|
6180
|
+
const o = e, { proxy: l } = ue(), t = ge("store").tab(), s = k(() => o.title || o.subtitle), c = k(() => t.useTab), _ = k(() => {
|
|
6178
6181
|
let A = "calc(100vh";
|
|
6179
6182
|
return t.useTab && (A += " - 2.25rem"), o.noheader || (A += " - 4rem"), {
|
|
6180
6183
|
minHeight: `${A})`
|
|
6181
6184
|
};
|
|
6182
6185
|
});
|
|
6183
|
-
return (A,
|
|
6186
|
+
return (A, b) => (S(), $("div", {
|
|
6184
6187
|
class: B(["MvcPage", n(c) && "hasTab"])
|
|
6185
6188
|
}, [
|
|
6186
|
-
o.noheader ? U("", !0) : (
|
|
6189
|
+
o.noheader ? U("", !0) : (S(), $("div", qo, [
|
|
6187
6190
|
u("div", Xo, [
|
|
6188
|
-
A.$slots.header ?
|
|
6189
|
-
u("h3", Qo,
|
|
6190
|
-
u("p", en,
|
|
6191
|
+
A.$slots.header ? J(A.$slots, "header", { key: 0 }, void 0, !0) : n(s) ? (S(), $(ee, { key: 1 }, [
|
|
6192
|
+
u("h3", Qo, E(o.title), 1),
|
|
6193
|
+
u("p", en, E(o.subtitle), 1)
|
|
6191
6194
|
], 64)) : U("", !0)
|
|
6192
6195
|
]),
|
|
6193
6196
|
u("div", ln, [
|
|
6194
|
-
A.$slots.right ?
|
|
6197
|
+
A.$slots.right ? J(A.$slots, "right", { key: 0 }, void 0, !0) : U("", !0)
|
|
6195
6198
|
])
|
|
6196
6199
|
])),
|
|
6197
6200
|
u("div", {
|
|
6198
6201
|
class: B(["PageBody", o.bodyClass]),
|
|
6199
|
-
style:
|
|
6202
|
+
style: se(n(_))
|
|
6200
6203
|
}, [
|
|
6201
|
-
|
|
6204
|
+
J(A.$slots, "default", {}, void 0, !0)
|
|
6202
6205
|
], 6)
|
|
6203
6206
|
], 2));
|
|
6204
6207
|
}
|
|
6205
|
-
}), tn = /* @__PURE__ */
|
|
6208
|
+
}), tn = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-060130ad"]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6206
6209
|
__proto__: null,
|
|
6207
6210
|
default: tn
|
|
6208
6211
|
}, Symbol.toStringTag, { value: "Module" })), nn = {
|
|
@@ -6261,164 +6264,167 @@ const Ct = ol({
|
|
|
6261
6264
|
},
|
|
6262
6265
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
6263
6266
|
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(
|
|
6267
|
+
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) => {
|
|
6268
|
+
l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
|
|
6269
|
+
}, T = (r) => {
|
|
6270
|
+
if (s.value = r, r && l.multiple) {
|
|
6271
|
+
const h = l.modelValue;
|
|
6272
|
+
t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
|
|
6270
6273
|
}
|
|
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
|
-
|
|
6274
|
+
}, y = (r) => {
|
|
6275
|
+
A.value = !0, i("focus", r);
|
|
6276
|
+
}, z = (r) => {
|
|
6277
|
+
A.value = !1, i("blur", r);
|
|
6278
|
+
}, V = () => {
|
|
6279
|
+
var R;
|
|
6280
|
+
if (!l.filterable || !s.value) return d();
|
|
6281
|
+
const r = a.value, h = ((R = r == null ? void 0 : r.optionsArray) == null ? void 0 : R.value) ?? (r == null ? void 0 : r.optionsArray) ?? [];
|
|
6282
|
+
return Array.isArray(h) ? h.filter((P) => P.visible && !P.isDisabled).map((P) => P.value) : d();
|
|
6283
|
+
}, m = () => {
|
|
6284
|
+
const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
|
|
6285
|
+
return Number.isFinite(h) && h > 0 ? h : 0;
|
|
6286
|
+
}, p = (r) => {
|
|
6287
|
+
const h = V();
|
|
6288
|
+
if (r) {
|
|
6289
|
+
const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
|
|
6290
|
+
for (const Y of h)
|
|
6291
|
+
if (!G.has(Y)) {
|
|
6292
|
+
if (R > 0 && K.length >= R) break;
|
|
6293
|
+
G.add(Y), K.push(Y);
|
|
6291
6294
|
}
|
|
6292
6295
|
t.value = K;
|
|
6293
6296
|
} else {
|
|
6294
|
-
const
|
|
6295
|
-
t.value = t.value.filter((
|
|
6297
|
+
const R = new Set(h);
|
|
6298
|
+
t.value = t.value.filter((P) => !R.has(P));
|
|
6296
6299
|
}
|
|
6297
|
-
|
|
6298
|
-
},
|
|
6299
|
-
var
|
|
6300
|
-
l.multiple && (
|
|
6301
|
-
},
|
|
6302
|
-
const
|
|
6303
|
-
return (l.options || []).map((
|
|
6304
|
-
},
|
|
6305
|
-
const
|
|
6306
|
-
c.value =
|
|
6307
|
-
},
|
|
6300
|
+
C();
|
|
6301
|
+
}, x = () => {
|
|
6302
|
+
var r, h;
|
|
6303
|
+
l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
|
|
6304
|
+
}, d = () => {
|
|
6305
|
+
const r = l.valueKey;
|
|
6306
|
+
return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
|
|
6307
|
+
}, C = () => {
|
|
6308
|
+
const r = V(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
|
|
6309
|
+
c.value = P > 0 && R === P, _.value = R > 0 && R < P;
|
|
6310
|
+
}, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
|
|
6308
6311
|
const {
|
|
6309
|
-
modelValue:
|
|
6310
|
-
valueKey:
|
|
6311
|
-
labelKey:
|
|
6312
|
-
selectAllTxt:
|
|
6313
|
-
confirmTxt:
|
|
6312
|
+
modelValue: r,
|
|
6313
|
+
valueKey: h,
|
|
6314
|
+
labelKey: R,
|
|
6315
|
+
selectAllTxt: P,
|
|
6316
|
+
confirmTxt: G,
|
|
6314
6317
|
nowrap: K,
|
|
6315
|
-
...
|
|
6316
|
-
} = l,
|
|
6318
|
+
...Y
|
|
6319
|
+
} = l, X = Y.props ?? {};
|
|
6317
6320
|
return {
|
|
6318
|
-
...
|
|
6321
|
+
...Y,
|
|
6319
6322
|
props: {
|
|
6320
|
-
...
|
|
6321
|
-
value:
|
|
6322
|
-
label:
|
|
6323
|
+
...X,
|
|
6324
|
+
value: h,
|
|
6325
|
+
label: R
|
|
6323
6326
|
}
|
|
6324
6327
|
};
|
|
6325
|
-
}),
|
|
6328
|
+
}), D = k(
|
|
6326
6329
|
() => l.nowrap ? {
|
|
6327
6330
|
collapseTags: !0,
|
|
6328
6331
|
collapseTagsTooltip: !0,
|
|
6329
6332
|
maxCollapseTags: 1,
|
|
6330
6333
|
tagTooltip: { popperStyle: { maxWidth: "400px" } }
|
|
6331
6334
|
} : {}
|
|
6332
|
-
),
|
|
6333
|
-
...
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
const
|
|
6344
|
-
return
|
|
6345
|
-
}),
|
|
6346
|
-
|
|
6347
|
-
|
|
6335
|
+
), f = k(() => {
|
|
6336
|
+
const { class: r, ...h } = b;
|
|
6337
|
+
return h;
|
|
6338
|
+
}), O = k(() => ({
|
|
6339
|
+
...D.value,
|
|
6340
|
+
...f.value,
|
|
6341
|
+
...w.value,
|
|
6342
|
+
placeholder: b.placeholder ?? ""
|
|
6343
|
+
})), M = k(() => {
|
|
6344
|
+
const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
|
|
6345
|
+
if (!l.filterable || !s.value) return h.length;
|
|
6346
|
+
const R = V();
|
|
6347
|
+
return h.filter((P) => R.includes(P)).length;
|
|
6348
|
+
}), j = k(() => V().length), F = k(() => {
|
|
6349
|
+
const r = l.multiple && s.value ? t.value : l.modelValue;
|
|
6350
|
+
return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
|
|
6351
|
+
}), H = k(() => !!b.placeholder), ie = k(
|
|
6352
|
+
() => l.materialLabel && (A.value || s.value || F.value || H.value)
|
|
6353
|
+
), fe = k(() => ({
|
|
6348
6354
|
hasLabel: !!l.label,
|
|
6349
6355
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
6350
6356
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
6351
|
-
isFloat:
|
|
6357
|
+
isFloat: ie.value,
|
|
6352
6358
|
isFocused: A.value,
|
|
6353
|
-
isDisabled: !!
|
|
6359
|
+
isDisabled: !!b.disabled,
|
|
6354
6360
|
isSelect: !0
|
|
6355
|
-
})),
|
|
6361
|
+
})), re = k(
|
|
6356
6362
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
6357
6363
|
);
|
|
6358
|
-
return
|
|
6364
|
+
return ne(t, () => C(), { deep: !0 }), ne(
|
|
6359
6365
|
() => l.modelValue,
|
|
6360
|
-
(
|
|
6366
|
+
(r) => {
|
|
6361
6367
|
if (l.multiple && s.value) {
|
|
6362
|
-
const
|
|
6363
|
-
JSON.stringify(
|
|
6368
|
+
const h = Array.isArray(r) ? [...r] : r ? [r] : [];
|
|
6369
|
+
JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
|
|
6364
6370
|
}
|
|
6365
6371
|
}
|
|
6366
|
-
), (
|
|
6367
|
-
const
|
|
6368
|
-
return
|
|
6369
|
-
class: B(["MvcField MvcFieldSelect", n(
|
|
6370
|
-
style:
|
|
6372
|
+
), (r, h) => {
|
|
6373
|
+
const R = I("el-checkbox"), P = I("el-button"), G = I("el-select");
|
|
6374
|
+
return S(), $("div", {
|
|
6375
|
+
class: B(["MvcField MvcFieldSelect", n(fe)]),
|
|
6376
|
+
style: se(n(re))
|
|
6371
6377
|
}, [
|
|
6372
|
-
l.label ? (
|
|
6373
|
-
N(
|
|
6378
|
+
l.label ? (S(), $("label", nn, E(l.label), 1)) : U("", !0),
|
|
6379
|
+
N(G, le({
|
|
6374
6380
|
ref_key: "selectRef",
|
|
6375
6381
|
ref: a,
|
|
6376
|
-
"model-value": n(
|
|
6382
|
+
"model-value": n(v),
|
|
6377
6383
|
"tag-effect": "plain",
|
|
6378
6384
|
class: "MvcSelect"
|
|
6379
|
-
}, n(
|
|
6385
|
+
}, n(O), {
|
|
6380
6386
|
"onUpdate:modelValue": g,
|
|
6381
|
-
onVisibleChange:
|
|
6387
|
+
onVisibleChange: T,
|
|
6382
6388
|
onFocus: y,
|
|
6383
|
-
onBlur:
|
|
6384
|
-
}),
|
|
6385
|
-
default:
|
|
6386
|
-
|
|
6389
|
+
onBlur: z
|
|
6390
|
+
}), pe({
|
|
6391
|
+
default: L(() => [
|
|
6392
|
+
J(r.$slots, "default")
|
|
6387
6393
|
]),
|
|
6388
6394
|
_: 2
|
|
6389
6395
|
}, [
|
|
6390
6396
|
l.filterable && l.multiple ? {
|
|
6391
6397
|
name: "header",
|
|
6392
|
-
fn:
|
|
6398
|
+
fn: L(() => [
|
|
6393
6399
|
u("div", sn, [
|
|
6394
|
-
N(
|
|
6400
|
+
N(R, {
|
|
6395
6401
|
modelValue: n(c),
|
|
6396
|
-
"onUpdate:modelValue":
|
|
6402
|
+
"onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
|
|
6397
6403
|
indeterminate: n(_),
|
|
6398
6404
|
class: "h24",
|
|
6399
|
-
onChange:
|
|
6405
|
+
onChange: p
|
|
6400
6406
|
}, {
|
|
6401
|
-
default:
|
|
6402
|
-
|
|
6407
|
+
default: L(() => [
|
|
6408
|
+
ae(E(e.selectAllTxt), 1)
|
|
6403
6409
|
]),
|
|
6404
6410
|
_: 1
|
|
6405
6411
|
}, 8, ["modelValue", "indeterminate"]),
|
|
6406
|
-
u("span", rn,
|
|
6412
|
+
u("span", rn, E(n(M)) + "/" + E(n(j)), 1)
|
|
6407
6413
|
])
|
|
6408
6414
|
]),
|
|
6409
6415
|
key: "0"
|
|
6410
6416
|
} : void 0,
|
|
6411
6417
|
l.multiple ? {
|
|
6412
6418
|
name: "footer",
|
|
6413
|
-
fn:
|
|
6419
|
+
fn: L(() => [
|
|
6414
6420
|
u("div", un, [
|
|
6415
|
-
N(
|
|
6421
|
+
N(P, {
|
|
6416
6422
|
type: "primary",
|
|
6417
6423
|
size: "small",
|
|
6418
|
-
onClick:
|
|
6424
|
+
onClick: x
|
|
6419
6425
|
}, {
|
|
6420
|
-
default:
|
|
6421
|
-
|
|
6426
|
+
default: L(() => [
|
|
6427
|
+
ae(E(e.confirmTxt), 1)
|
|
6422
6428
|
]),
|
|
6423
6429
|
_: 1
|
|
6424
6430
|
})
|
|
@@ -6489,167 +6495,170 @@ const Ct = ol({
|
|
|
6489
6495
|
},
|
|
6490
6496
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
6491
6497
|
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(
|
|
6498
|
+
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) => {
|
|
6499
|
+
l.multiple ? (t.value = Array.isArray(r) ? [...r] : [], C()) : (i("update:modelValue", r), i("change", r));
|
|
6500
|
+
}, T = (r) => {
|
|
6501
|
+
if (s.value = r, r && l.multiple) {
|
|
6502
|
+
const h = l.modelValue;
|
|
6503
|
+
t.value = Array.isArray(h) ? [...h] : h ? [h] : [], C();
|
|
6498
6504
|
}
|
|
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
|
-
|
|
6505
|
+
}, y = (r) => {
|
|
6506
|
+
A.value = !0, i("focus", r);
|
|
6507
|
+
}, z = (r) => {
|
|
6508
|
+
A.value = !1, i("blur", r);
|
|
6509
|
+
}, V = () => {
|
|
6510
|
+
var P;
|
|
6511
|
+
if (!l.filterable || !s.value) return d();
|
|
6512
|
+
const r = a.value, h = ((P = r == null ? void 0 : r.filteredOptions) == null ? void 0 : P.value) ?? (r == null ? void 0 : r.filteredOptions) ?? [];
|
|
6513
|
+
if (!Array.isArray(h)) return d();
|
|
6514
|
+
const R = l.valueKey;
|
|
6515
|
+
return h.filter((G) => G.type !== "Group" && !G.disabled).map((G) => typeof G == "object" ? G[R] : G);
|
|
6516
|
+
}, m = () => {
|
|
6517
|
+
const r = b.multipleLimit ?? b["multiple-limit"], h = Number(r);
|
|
6518
|
+
return Number.isFinite(h) && h > 0 ? h : 0;
|
|
6519
|
+
}, p = (r) => {
|
|
6520
|
+
const h = V();
|
|
6521
|
+
if (r) {
|
|
6522
|
+
const R = m(), P = Array.isArray(t.value) ? [...t.value] : [], G = new Set(P), K = [...P];
|
|
6523
|
+
for (const Y of h)
|
|
6524
|
+
if (!G.has(Y)) {
|
|
6525
|
+
if (R > 0 && K.length >= R) break;
|
|
6526
|
+
G.add(Y), K.push(Y);
|
|
6521
6527
|
}
|
|
6522
6528
|
t.value = K;
|
|
6523
6529
|
} else {
|
|
6524
|
-
const
|
|
6525
|
-
t.value = t.value.filter((
|
|
6530
|
+
const R = new Set(h);
|
|
6531
|
+
t.value = t.value.filter((P) => !R.has(P));
|
|
6526
6532
|
}
|
|
6527
|
-
|
|
6528
|
-
},
|
|
6529
|
-
var
|
|
6530
|
-
l.multiple && (
|
|
6531
|
-
},
|
|
6532
|
-
const
|
|
6533
|
-
return (l.options || []).map((
|
|
6534
|
-
},
|
|
6535
|
-
const
|
|
6536
|
-
c.value =
|
|
6537
|
-
},
|
|
6533
|
+
C();
|
|
6534
|
+
}, x = () => {
|
|
6535
|
+
var r, h;
|
|
6536
|
+
l.multiple && (i("update:modelValue", t.value), i("change", t.value), (h = (r = a.value) == null ? void 0 : r.blur) == null || h.call(r));
|
|
6537
|
+
}, d = () => {
|
|
6538
|
+
const r = l.valueKey;
|
|
6539
|
+
return (l.options || []).map((h) => typeof h == "object" ? h[r] : h);
|
|
6540
|
+
}, C = () => {
|
|
6541
|
+
const r = V(), h = new Set(t.value ?? []), R = r.filter((G) => h.has(G)).length, P = r.length;
|
|
6542
|
+
c.value = P > 0 && R === P, _.value = R > 0 && R < P;
|
|
6543
|
+
}, v = k(() => l.multiple && s.value ? t.value : l.modelValue), w = k(() => {
|
|
6538
6544
|
const {
|
|
6539
|
-
modelValue:
|
|
6540
|
-
valueKey:
|
|
6541
|
-
labelKey:
|
|
6542
|
-
selectAllTxt:
|
|
6543
|
-
confirmTxt:
|
|
6545
|
+
modelValue: r,
|
|
6546
|
+
valueKey: h,
|
|
6547
|
+
labelKey: R,
|
|
6548
|
+
selectAllTxt: P,
|
|
6549
|
+
confirmTxt: G,
|
|
6544
6550
|
nowrap: K,
|
|
6545
|
-
...
|
|
6546
|
-
} = l,
|
|
6551
|
+
...Y
|
|
6552
|
+
} = l, X = Y.props ?? {};
|
|
6547
6553
|
return {
|
|
6548
|
-
...
|
|
6554
|
+
...Y,
|
|
6549
6555
|
props: {
|
|
6550
|
-
...
|
|
6551
|
-
value:
|
|
6552
|
-
label:
|
|
6556
|
+
...X,
|
|
6557
|
+
value: h,
|
|
6558
|
+
label: R
|
|
6553
6559
|
}
|
|
6554
6560
|
};
|
|
6555
|
-
}),
|
|
6561
|
+
}), D = k(
|
|
6556
6562
|
() => l.nowrap ? {
|
|
6557
6563
|
collapseTags: !0,
|
|
6558
6564
|
collapseTagsTooltip: !0,
|
|
6559
6565
|
maxCollapseTags: 1,
|
|
6560
6566
|
tagTooltip: { popperStyle: { maxWidth: "400px" } }
|
|
6561
6567
|
} : {}
|
|
6562
|
-
),
|
|
6563
|
-
...
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
const
|
|
6574
|
-
return
|
|
6575
|
-
}),
|
|
6576
|
-
|
|
6577
|
-
|
|
6568
|
+
), f = k(() => {
|
|
6569
|
+
const { class: r, ...h } = b;
|
|
6570
|
+
return h;
|
|
6571
|
+
}), O = k(() => ({
|
|
6572
|
+
...D.value,
|
|
6573
|
+
...f.value,
|
|
6574
|
+
...w.value,
|
|
6575
|
+
placeholder: b.placeholder ?? ""
|
|
6576
|
+
})), M = k(() => {
|
|
6577
|
+
const r = l.multiple && s.value ? t.value : l.modelValue, h = Array.isArray(r) ? r : r ? [r] : [];
|
|
6578
|
+
if (!l.filterable || !s.value) return h.length;
|
|
6579
|
+
const R = V();
|
|
6580
|
+
return h.filter((P) => R.includes(P)).length;
|
|
6581
|
+
}), j = k(() => V().length), F = k(() => {
|
|
6582
|
+
const r = l.multiple && s.value ? t.value : l.modelValue;
|
|
6583
|
+
return Array.isArray(r) ? r.length > 0 : r != null && String(r) !== "";
|
|
6584
|
+
}), H = k(() => !!b.placeholder), ie = k(
|
|
6585
|
+
() => l.materialLabel && (A.value || s.value || F.value || H.value)
|
|
6586
|
+
), fe = k(() => ({
|
|
6578
6587
|
hasLabel: !!l.label,
|
|
6579
6588
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
6580
6589
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
6581
|
-
isFloat:
|
|
6590
|
+
isFloat: ie.value,
|
|
6582
6591
|
isFocused: A.value,
|
|
6583
|
-
isDisabled: !!
|
|
6592
|
+
isDisabled: !!b.disabled,
|
|
6584
6593
|
isSelect: !0
|
|
6585
|
-
})),
|
|
6594
|
+
})), re = k(
|
|
6586
6595
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
6587
6596
|
);
|
|
6588
|
-
return
|
|
6597
|
+
return ne(t, () => C(), { deep: !0 }), ne(
|
|
6589
6598
|
() => l.modelValue,
|
|
6590
|
-
(
|
|
6599
|
+
(r) => {
|
|
6591
6600
|
if (l.multiple && s.value) {
|
|
6592
|
-
const
|
|
6593
|
-
JSON.stringify(
|
|
6601
|
+
const h = Array.isArray(r) ? [...r] : r ? [r] : [];
|
|
6602
|
+
JSON.stringify(h) !== JSON.stringify(t.value) && (t.value = h, C());
|
|
6594
6603
|
}
|
|
6595
6604
|
}
|
|
6596
|
-
), (
|
|
6597
|
-
const
|
|
6598
|
-
return
|
|
6599
|
-
class: B(["MvcField MvcFieldSelectV2", n(
|
|
6600
|
-
style:
|
|
6605
|
+
), (r, h) => {
|
|
6606
|
+
const R = I("el-checkbox"), P = I("el-button"), G = I("el-select-v2");
|
|
6607
|
+
return S(), $("div", {
|
|
6608
|
+
class: B(["MvcField MvcFieldSelectV2", n(fe)]),
|
|
6609
|
+
style: se(n(re))
|
|
6601
6610
|
}, [
|
|
6602
|
-
l.label ? (
|
|
6603
|
-
N(
|
|
6611
|
+
l.label ? (S(), $("label", pn, E(l.label), 1)) : U("", !0),
|
|
6612
|
+
N(G, le({
|
|
6604
6613
|
ref_key: "selectRef",
|
|
6605
6614
|
ref: a,
|
|
6606
|
-
"model-value": n(
|
|
6615
|
+
"model-value": n(v),
|
|
6607
6616
|
class: "MvcSelectV2"
|
|
6608
|
-
}, n(
|
|
6617
|
+
}, n(O), {
|
|
6609
6618
|
"onUpdate:modelValue": g,
|
|
6610
|
-
onVisibleChange:
|
|
6619
|
+
onVisibleChange: T,
|
|
6611
6620
|
onFocus: y,
|
|
6612
|
-
onBlur:
|
|
6613
|
-
}),
|
|
6621
|
+
onBlur: z
|
|
6622
|
+
}), pe({ _: 2 }, [
|
|
6614
6623
|
l.filterable && l.multiple ? {
|
|
6615
6624
|
name: "header",
|
|
6616
|
-
fn:
|
|
6625
|
+
fn: L(() => [
|
|
6617
6626
|
u("div", bn, [
|
|
6618
|
-
N(
|
|
6627
|
+
N(R, {
|
|
6619
6628
|
modelValue: n(c),
|
|
6620
|
-
"onUpdate:modelValue":
|
|
6629
|
+
"onUpdate:modelValue": h[0] || (h[0] = (K) => rl(c) ? c.value = K : null),
|
|
6621
6630
|
indeterminate: n(_),
|
|
6622
6631
|
class: "h24",
|
|
6623
|
-
onChange:
|
|
6632
|
+
onChange: p
|
|
6624
6633
|
}, {
|
|
6625
|
-
default:
|
|
6626
|
-
|
|
6634
|
+
default: L(() => [
|
|
6635
|
+
ae(E(e.selectAllTxt), 1)
|
|
6627
6636
|
]),
|
|
6628
6637
|
_: 1
|
|
6629
6638
|
}, 8, ["modelValue", "indeterminate"]),
|
|
6630
|
-
u("span", fn,
|
|
6639
|
+
u("span", fn, E(n(M)) + "/" + E(n(j)), 1)
|
|
6631
6640
|
])
|
|
6632
6641
|
]),
|
|
6633
6642
|
key: "0"
|
|
6634
6643
|
} : void 0,
|
|
6635
|
-
|
|
6644
|
+
r.$slots.default ? {
|
|
6636
6645
|
name: "default",
|
|
6637
|
-
fn:
|
|
6638
|
-
|
|
6646
|
+
fn: L((K) => [
|
|
6647
|
+
J(r.$slots, "default", Te(xe(K)))
|
|
6639
6648
|
]),
|
|
6640
6649
|
key: "1"
|
|
6641
6650
|
} : void 0,
|
|
6642
6651
|
l.multiple ? {
|
|
6643
6652
|
name: "footer",
|
|
6644
|
-
fn:
|
|
6653
|
+
fn: L(() => [
|
|
6645
6654
|
u("div", mn, [
|
|
6646
|
-
N(
|
|
6655
|
+
N(P, {
|
|
6647
6656
|
type: "primary",
|
|
6648
6657
|
size: "small",
|
|
6649
|
-
onClick:
|
|
6658
|
+
onClick: x
|
|
6650
6659
|
}, {
|
|
6651
|
-
default:
|
|
6652
|
-
|
|
6660
|
+
default: L(() => [
|
|
6661
|
+
ae(E(e.confirmTxt), 1)
|
|
6653
6662
|
]),
|
|
6654
6663
|
_: 1
|
|
6655
6664
|
})
|
|
@@ -6688,34 +6697,34 @@ const Ct = ol({
|
|
|
6688
6697
|
}), a = e.tableName + "_Column";
|
|
6689
6698
|
let t = [];
|
|
6690
6699
|
(() => {
|
|
6691
|
-
const A = o.slots.default()[0].children,
|
|
6700
|
+
const A = o.slots.default()[0].children, b = {
|
|
6692
6701
|
normal: [],
|
|
6693
6702
|
mmp: [],
|
|
6694
6703
|
asa: [],
|
|
6695
6704
|
fixed: [],
|
|
6696
6705
|
columns: []
|
|
6697
|
-
},
|
|
6706
|
+
}, i = e.tableName ? JSON.parse(localStorage.getItem(a)) : null, g = [void 0];
|
|
6698
6707
|
A.forEach((y) => {
|
|
6699
6708
|
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
|
|
6709
|
+
}), t.forEach((y, z) => {
|
|
6710
|
+
var V;
|
|
6711
|
+
if (window.$getType(y.type), ((V = y.type) == null ? void 0 : V.name) === "ElTableColumn") {
|
|
6712
|
+
let m = {
|
|
6704
6713
|
...y.props,
|
|
6705
|
-
sort:
|
|
6714
|
+
sort: z,
|
|
6706
6715
|
nomove: y.props.nomove || y.props.nomove === "" || y.props.type === "selection" || y.props.label === "Operation",
|
|
6707
6716
|
resizable: !0,
|
|
6708
6717
|
visible: y.props.visible !== !1
|
|
6709
6718
|
};
|
|
6710
|
-
if (
|
|
6711
|
-
const { data:
|
|
6712
|
-
|
|
6719
|
+
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) {
|
|
6720
|
+
const { data: p } = i.filter1((x) => x.prop === y.props.prop);
|
|
6721
|
+
p && (m.sort = p.sort, m.fixed = p.fixed, m.visible = p.visible);
|
|
6713
6722
|
}
|
|
6714
|
-
y.props.fixed &&
|
|
6723
|
+
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
6724
|
}
|
|
6716
|
-
}), l.columnInfo =
|
|
6717
|
-
let
|
|
6718
|
-
e.tableName && (
|
|
6725
|
+
}), l.columnInfo = b;
|
|
6726
|
+
let T = [...b.normal, ...b.mmp, ...b.asa];
|
|
6727
|
+
e.tableName && (T = T.sort((y, z) => y.sort - z.sort), localStorage.setItem(a, JSON.stringify(T)));
|
|
6719
6728
|
})();
|
|
6720
6729
|
let c = [];
|
|
6721
6730
|
if (t.forEach((A) => {
|
|
@@ -6737,7 +6746,7 @@ const Ct = ol({
|
|
|
6737
6746
|
props: A
|
|
6738
6747
|
});
|
|
6739
6748
|
}
|
|
6740
|
-
return c = c.sort((A,
|
|
6749
|
+
return c = c.sort((A, b) => A.props.sort - b.props.sort), () => c;
|
|
6741
6750
|
}
|
|
6742
6751
|
}), _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
6752
|
class: "flexMode vs hp100",
|
|
@@ -6788,43 +6797,43 @@ const Ct = ol({
|
|
|
6788
6797
|
columnType: {},
|
|
6789
6798
|
mounted: !1
|
|
6790
6799
|
});
|
|
6791
|
-
|
|
6800
|
+
te(() => {
|
|
6792
6801
|
s();
|
|
6793
6802
|
});
|
|
6794
6803
|
const t = o, s = () => {
|
|
6795
6804
|
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(
|
|
6805
|
+
const p = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), x = {};
|
|
6806
|
+
p.forEach((d) => {
|
|
6807
|
+
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);
|
|
6808
|
+
}), a.columnType = x;
|
|
6809
|
+
}, c = (p) => {
|
|
6810
|
+
a.type = p;
|
|
6811
|
+
}, _ = (p, x) => {
|
|
6812
|
+
p.visible = !0, a.visible.unshift(p), p.type ? a.columns[p.type].splice(x, 1) : a.columns.normal.splice(x, 1);
|
|
6813
|
+
}, A = (p, x) => {
|
|
6814
|
+
a.fixed.unshift(p), a.visible.splice(x, 1);
|
|
6815
|
+
}, b = (p, x) => {
|
|
6816
|
+
a.visible.unshift(p), a.fixed.splice(x, 1);
|
|
6817
|
+
}, i = (p, x) => {
|
|
6818
|
+
a.visible.splice(x, 1), p.type ? a.columns[p.type].unshift(p) : a.columns.normal.unshift(p);
|
|
6810
6819
|
}, g = async () => {
|
|
6811
6820
|
a.loading = !0, window.$pm(() => {
|
|
6812
|
-
const { fixed:
|
|
6813
|
-
let
|
|
6814
|
-
Object.keys(
|
|
6815
|
-
|
|
6816
|
-
}),
|
|
6817
|
-
const
|
|
6818
|
-
|
|
6821
|
+
const { fixed: p, visible: x, columns: d, selection: C, operation: v } = a;
|
|
6822
|
+
let w = [];
|
|
6823
|
+
Object.keys(d).map((f) => {
|
|
6824
|
+
w = w.concat(d[f]);
|
|
6825
|
+
}), p.forEach((f) => f.fixed = "left"), w.forEach((f) => f.visible = !1);
|
|
6826
|
+
const D = C.concat(p, x, w, v);
|
|
6827
|
+
D.forEach((f, O) => f.sort = O), localStorage.setItem(`${l.tableName}_Column`, JSON.stringify(D)), a.loading = !1, t("close"), t("init-column");
|
|
6819
6828
|
});
|
|
6820
|
-
},
|
|
6829
|
+
}, T = () => {
|
|
6821
6830
|
a.loading = !0, localStorage.removeItem(`${l.tableName}_Column`), window.$pm(() => {
|
|
6822
6831
|
a.loading = !1, t("close"), t("init-column");
|
|
6823
6832
|
}, 4);
|
|
6824
|
-
}, y =
|
|
6825
|
-
var
|
|
6826
|
-
return ((
|
|
6827
|
-
}),
|
|
6833
|
+
}, y = k(() => {
|
|
6834
|
+
var p;
|
|
6835
|
+
return ((p = globalThis.$config.options) == null ? void 0 : p.drawerHeight) || 540;
|
|
6836
|
+
}), z = k(() => (y.value * 0.3).toFixed(0)), V = k(() => (y.value * 0.7 - 10).toFixed(0)), m = k(() => [
|
|
6828
6837
|
{
|
|
6829
6838
|
label: "Base Info",
|
|
6830
6839
|
value: "normal"
|
|
@@ -6840,50 +6849,50 @@ const Ct = ol({
|
|
|
6840
6849
|
hide: !a.columnType.mmp
|
|
6841
6850
|
}
|
|
6842
6851
|
]);
|
|
6843
|
-
return (
|
|
6844
|
-
const
|
|
6845
|
-
return
|
|
6852
|
+
return (p, x) => {
|
|
6853
|
+
const d = I("el-scrollbar"), C = I("DrawerArea");
|
|
6854
|
+
return S(), q(C, {
|
|
6846
6855
|
loading: n(a).loading,
|
|
6847
6856
|
noscroll: "",
|
|
6848
6857
|
"cancel-txt": "Reset",
|
|
6849
6858
|
"cancel-icon": "im-sync",
|
|
6850
6859
|
class: "MvcTableColumnConfig",
|
|
6851
|
-
onCancel:
|
|
6860
|
+
onCancel: T,
|
|
6852
6861
|
onSubmit: g
|
|
6853
6862
|
}, {
|
|
6854
|
-
default:
|
|
6863
|
+
default: L(() => [
|
|
6855
6864
|
u("div", _n, [
|
|
6856
6865
|
u("div", yn, [
|
|
6857
|
-
u("div", wn,
|
|
6866
|
+
u("div", wn, E(p.$l("Column Type")), 1),
|
|
6858
6867
|
u("div", Sn, [
|
|
6859
|
-
(
|
|
6860
|
-
key:
|
|
6861
|
-
class: B(["typeItem p8-16 mb4 radius4 txt-nowrap", [n(a).type ===
|
|
6862
|
-
onClick: (
|
|
6863
|
-
},
|
|
6868
|
+
(S(!0), $(ee, null, oe(n(m), (v) => (S(), $("div", {
|
|
6869
|
+
key: v.value,
|
|
6870
|
+
class: B(["typeItem p8-16 mb4 radius4 txt-nowrap", [n(a).type === v.value && "active", v.hide && "hide"]]),
|
|
6871
|
+
onClick: (w) => c(v.value)
|
|
6872
|
+
}, E(v.label), 11, Tn))), 128))
|
|
6864
6873
|
])
|
|
6865
6874
|
]),
|
|
6866
6875
|
u("div", An, [
|
|
6867
6876
|
u("div", Cn, [
|
|
6868
6877
|
u("div", kn, [
|
|
6869
|
-
u("span", null,
|
|
6870
|
-
u("span", xn,
|
|
6878
|
+
u("span", null, E(p.$l("Columns")), 1),
|
|
6879
|
+
u("span", xn, E(n(a).columns[n(a).type].length), 1)
|
|
6871
6880
|
]),
|
|
6872
|
-
N(
|
|
6873
|
-
default:
|
|
6881
|
+
N(d, { style: { height: "calc(100% - 36px)" } }, {
|
|
6882
|
+
default: L(() => [
|
|
6874
6883
|
u("div", On, [
|
|
6875
|
-
n(a).columns[n(a).type].length === 0 ? (
|
|
6876
|
-
(
|
|
6877
|
-
key:
|
|
6884
|
+
n(a).columns[n(a).type].length === 0 ? (S(), $("span", Mn, E(p.$l("No Columns")), 1)) : U("", !0),
|
|
6885
|
+
(S(!0), $(ee, null, oe(n(a).columns[n(a).type], (v, w) => (S(), $("div", {
|
|
6886
|
+
key: v.prop,
|
|
6878
6887
|
class: "columnItem flexMode vc hb h40 g8 p4-8 mb4 radius4 txt-nowrap"
|
|
6879
6888
|
}, [
|
|
6880
|
-
u("span", null,
|
|
6889
|
+
u("span", null, E(p.$l(v.label)), 1),
|
|
6881
6890
|
u("div", $n, [
|
|
6882
6891
|
u("div", {
|
|
6883
6892
|
class: "tipbtn left",
|
|
6884
|
-
txt:
|
|
6885
|
-
onClick: (
|
|
6886
|
-
}, [...
|
|
6893
|
+
txt: p.$l("Visible"),
|
|
6894
|
+
onClick: (D) => _(v, w)
|
|
6895
|
+
}, [...x[0] || (x[0] = [
|
|
6887
6896
|
u("i", { class: "imicon im-plus fs16" }, null, -1)
|
|
6888
6897
|
])], 8, zn)
|
|
6889
6898
|
])
|
|
@@ -6895,32 +6904,32 @@ const Ct = ol({
|
|
|
6895
6904
|
]),
|
|
6896
6905
|
u("div", En, [
|
|
6897
6906
|
u("div", Ln, [
|
|
6898
|
-
u("span", null,
|
|
6899
|
-
u("span", jn,
|
|
6907
|
+
u("span", null, E(p.$l("Visible Columns")), 1),
|
|
6908
|
+
u("span", jn, E(n(a).visible.length), 1)
|
|
6900
6909
|
]),
|
|
6901
6910
|
u("div", Pn, [
|
|
6902
6911
|
u("div", Nn, [
|
|
6903
|
-
n(a).fixed.length === 0 ? (
|
|
6904
|
-
N(
|
|
6905
|
-
default:
|
|
6912
|
+
n(a).fixed.length === 0 ? (S(), $("span", Rn, E(p.$l("No Fixed Columns")), 1)) : U("", !0),
|
|
6913
|
+
N(d, { height: n(z) }, {
|
|
6914
|
+
default: L(() => [
|
|
6906
6915
|
N(n(Ue), {
|
|
6907
6916
|
list: n(a).fixed,
|
|
6908
|
-
"item-key": (
|
|
6917
|
+
"item-key": (v) => v,
|
|
6909
6918
|
handle: ".im-handle",
|
|
6910
6919
|
"ghost-class": "ghost"
|
|
6911
6920
|
}, {
|
|
6912
|
-
item:
|
|
6921
|
+
item: L(({ element: v, index: w }) => [
|
|
6913
6922
|
u("div", Dn, [
|
|
6914
6923
|
u("div", In, [
|
|
6915
|
-
|
|
6916
|
-
u("span", null,
|
|
6924
|
+
x[1] || (x[1] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
6925
|
+
u("span", null, E(p.$l(v.label)), 1)
|
|
6917
6926
|
]),
|
|
6918
6927
|
u("div", Vn, [
|
|
6919
6928
|
u("div", {
|
|
6920
6929
|
class: "tipbtn red left",
|
|
6921
|
-
txt:
|
|
6922
|
-
onClick: (
|
|
6923
|
-
}, [...
|
|
6930
|
+
txt: p.$l("Unfixed"),
|
|
6931
|
+
onClick: (D) => b(v, w)
|
|
6932
|
+
}, [...x[2] || (x[2] = [
|
|
6924
6933
|
u("i", { class: "imicon im-download1 fs14" }, null, -1)
|
|
6925
6934
|
])], 8, Bn)
|
|
6926
6935
|
])
|
|
@@ -6932,39 +6941,39 @@ const Ct = ol({
|
|
|
6932
6941
|
_: 1
|
|
6933
6942
|
}, 8, ["height"])
|
|
6934
6943
|
]),
|
|
6935
|
-
|
|
6944
|
+
x[6] || (x[6] = u("div", { class: "p4-0" }, [
|
|
6936
6945
|
u("div", { class: "border-t" })
|
|
6937
6946
|
], -1)),
|
|
6938
6947
|
u("div", Fn, [
|
|
6939
|
-
n(a).visible.length === 0 ? (
|
|
6940
|
-
N(
|
|
6941
|
-
default:
|
|
6948
|
+
n(a).visible.length === 0 ? (S(), $("span", Un, E(p.$l("No Columns")), 1)) : U("", !0),
|
|
6949
|
+
N(d, { height: n(V) }, {
|
|
6950
|
+
default: L(() => [
|
|
6942
6951
|
N(n(Ue), {
|
|
6943
6952
|
list: n(a).visible,
|
|
6944
|
-
"item-key": (
|
|
6953
|
+
"item-key": (v) => v,
|
|
6945
6954
|
options: { lockAxis: "y" },
|
|
6946
6955
|
handle: ".im-handle",
|
|
6947
6956
|
"ghost-class": "ghost"
|
|
6948
6957
|
}, {
|
|
6949
|
-
item:
|
|
6958
|
+
item: L(({ element: v, index: w }) => [
|
|
6950
6959
|
u("div", Gn, [
|
|
6951
6960
|
u("div", Kn, [
|
|
6952
|
-
|
|
6953
|
-
u("span", null,
|
|
6961
|
+
x[3] || (x[3] = u("i", { class: "imicon im-handle cursor-grab" }, null, -1)),
|
|
6962
|
+
u("span", null, E(p.$l(v.label)), 1)
|
|
6954
6963
|
]),
|
|
6955
6964
|
u("div", Hn, [
|
|
6956
6965
|
u("div", {
|
|
6957
6966
|
class: "tipbtn left",
|
|
6958
|
-
txt:
|
|
6959
|
-
onClick: (
|
|
6960
|
-
}, [...
|
|
6967
|
+
txt: p.$l("Fixed"),
|
|
6968
|
+
onClick: (D) => A(v, w)
|
|
6969
|
+
}, [...x[4] || (x[4] = [
|
|
6961
6970
|
u("i", { class: "imicon im-download1 fs14 rotateZ180" }, null, -1)
|
|
6962
6971
|
])], 8, Jn),
|
|
6963
6972
|
u("div", {
|
|
6964
6973
|
class: "tipbtn red left",
|
|
6965
|
-
txt:
|
|
6966
|
-
onClick: (
|
|
6967
|
-
}, [...
|
|
6974
|
+
txt: p.$l("Hide"),
|
|
6975
|
+
onClick: (D) => i(v, w)
|
|
6976
|
+
}, [...x[5] || (x[5] = [
|
|
6968
6977
|
u("i", { class: "imicon im-close fs14" }, null, -1)
|
|
6969
6978
|
])], 8, Yn)
|
|
6970
6979
|
])
|
|
@@ -6985,7 +6994,7 @@ const Ct = ol({
|
|
|
6985
6994
|
}, 8, ["loading"]);
|
|
6986
6995
|
};
|
|
6987
6996
|
}
|
|
6988
|
-
}), Zn = /* @__PURE__ */
|
|
6997
|
+
}), Zn = /* @__PURE__ */ Q(Wn, [["__scopeId", "data-v-1927ce52"]]), qn = { class: "p16 border-b" }, Xn = { class: "flexMode vc g8" }, Qn = {
|
|
6989
6998
|
key: 0,
|
|
6990
6999
|
class: "flexMode vc g8"
|
|
6991
7000
|
}, 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 +7026,101 @@ const Ct = ol({
|
|
|
7017
7026
|
onlySelection: !1,
|
|
7018
7027
|
mounted: !1
|
|
7019
7028
|
});
|
|
7020
|
-
|
|
7029
|
+
te(() => {
|
|
7021
7030
|
s();
|
|
7022
7031
|
});
|
|
7023
7032
|
const t = o, s = () => {
|
|
7024
7033
|
t("mounted"), c(), _();
|
|
7025
7034
|
}, c = () => {
|
|
7026
|
-
const
|
|
7027
|
-
a.columns =
|
|
7035
|
+
const m = JSON.parse(localStorage.getItem(`${l.tableName}_Column`)), p = ["selection", "operation"];
|
|
7036
|
+
a.columns = m.filter((x) => !p.includes(x.type) && x.label);
|
|
7028
7037
|
}, _ = () => {
|
|
7029
7038
|
l.selection.length && (a.onlySelection = !0);
|
|
7030
|
-
}, A = (
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
}) :
|
|
7034
|
-
|
|
7039
|
+
}, A = (m, p) => {
|
|
7040
|
+
m ? p.children.forEach((x) => {
|
|
7041
|
+
x.visible = !0;
|
|
7042
|
+
}) : p.children.forEach((x) => {
|
|
7043
|
+
x.visible = !1;
|
|
7035
7044
|
});
|
|
7036
|
-
},
|
|
7045
|
+
}, b = () => {
|
|
7037
7046
|
window.$copy(g());
|
|
7038
|
-
},
|
|
7047
|
+
}, i = async () => {
|
|
7039
7048
|
a.loading = !0;
|
|
7040
7049
|
try {
|
|
7041
|
-
const
|
|
7042
|
-
let
|
|
7043
|
-
|
|
7050
|
+
const m = g("download");
|
|
7051
|
+
let p = a.fileName || T.value;
|
|
7052
|
+
p && !p.toLowerCase().endsWith(".csv") && (p = `${p}.csv`), await Vl({ content: m, filename: p, bom: !0 });
|
|
7044
7053
|
} finally {
|
|
7045
7054
|
a.loading = !1;
|
|
7046
7055
|
}
|
|
7047
|
-
}, g = (
|
|
7048
|
-
const
|
|
7049
|
-
a.columns.filter((
|
|
7050
|
-
|
|
7056
|
+
}, g = (m) => {
|
|
7057
|
+
const p = a.onlySelection ? l.selection : l.list, x = {}, d = [];
|
|
7058
|
+
a.columns.filter((O) => O.visible).forEach((O) => {
|
|
7059
|
+
d.push(window.$l(O.label)), x[O.prop] = !0;
|
|
7051
7060
|
});
|
|
7052
|
-
let
|
|
7053
|
-
(a.useHead ||
|
|
7061
|
+
let C = "", v = [], w = m === "download" ? "," : " ";
|
|
7062
|
+
(a.useHead || m) && (C = d.join(w) + `
|
|
7054
7063
|
`);
|
|
7055
|
-
let
|
|
7056
|
-
return Object.keys(
|
|
7057
|
-
|
|
7058
|
-
const
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
}),
|
|
7062
|
-
}),
|
|
7063
|
-
!a.useCountryCode &&
|
|
7064
|
-
let
|
|
7065
|
-
window.$getType(
|
|
7066
|
-
}) :
|
|
7067
|
-
|
|
7064
|
+
let D = [], f;
|
|
7065
|
+
return Object.keys(x).forEach((O, M) => {
|
|
7066
|
+
O.includes("country") && (f = M);
|
|
7067
|
+
const j = [];
|
|
7068
|
+
p.forEach((F) => {
|
|
7069
|
+
F[O] !== void 0 && j.push(F[O]);
|
|
7070
|
+
}), D.push(j);
|
|
7071
|
+
}), D.forEach((O, M) => {
|
|
7072
|
+
!a.useCountryCode && f === M ? O.forEach((j, F) => {
|
|
7073
|
+
let H = j;
|
|
7074
|
+
window.$getType(j) === "Array" ? H = j.map((ie) => V[ie.toUpperCase()].label.$l()).join(",") : window.$getType(j) === "String" ? H = j.split(",").map((ie) => V[ie.toUpperCase()].label.$l()).join(",") : H = JSON.stringify(j), v[F] ? v[F] += H + w : v[F] = H + w;
|
|
7075
|
+
}) : O.forEach((j, F) => {
|
|
7076
|
+
v[F] ? v[F] += j + w : v[F] = j + w;
|
|
7068
7077
|
});
|
|
7069
|
-
}), `${
|
|
7078
|
+
}), `${C}${v.join(`
|
|
7070
7079
|
`)}`;
|
|
7071
|
-
},
|
|
7072
|
-
const
|
|
7073
|
-
return `${l.tableName}_${
|
|
7074
|
-
}), y =
|
|
7075
|
-
const
|
|
7076
|
-
return a.columns.forEach((
|
|
7077
|
-
const
|
|
7078
|
-
label:
|
|
7079
|
-
type:
|
|
7080
|
+
}, T = k(() => {
|
|
7081
|
+
const m = window.$d().format("YYYYMMDDHHmmss");
|
|
7082
|
+
return `${l.tableName}_${m}`;
|
|
7083
|
+
}), y = k(() => {
|
|
7084
|
+
const m = {};
|
|
7085
|
+
return a.columns.forEach((p) => {
|
|
7086
|
+
const x = p.type ? p.type : "normal", d = {
|
|
7087
|
+
label: z[x],
|
|
7088
|
+
type: x,
|
|
7080
7089
|
visible: 0
|
|
7081
7090
|
};
|
|
7082
|
-
|
|
7083
|
-
}), Object.keys(
|
|
7084
|
-
const
|
|
7085
|
-
|
|
7086
|
-
}),
|
|
7087
|
-
}),
|
|
7091
|
+
m[x] ? (m[x].children.push(p), p.visible && m[x].visible++) : (d.children = [p], p.visible && d.visible++, m[x] = d);
|
|
7092
|
+
}), Object.keys(m).forEach((p) => {
|
|
7093
|
+
const x = m[p].visible === m[p].children.length, d = m[p].visible === 0;
|
|
7094
|
+
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);
|
|
7095
|
+
}), m;
|
|
7096
|
+
}), z = {
|
|
7088
7097
|
asa: "Asa Metrics",
|
|
7089
7098
|
normal: "Base Info",
|
|
7090
7099
|
mmp: "MMP Metrics"
|
|
7091
7100
|
};
|
|
7092
7101
|
"Check All".$l(), "Cancel All".$l();
|
|
7093
|
-
const
|
|
7094
|
-
return (
|
|
7095
|
-
const
|
|
7096
|
-
return
|
|
7097
|
-
cancel:
|
|
7098
|
-
N(
|
|
7102
|
+
const V = De("asa.countryAll.obj");
|
|
7103
|
+
return (m, p) => {
|
|
7104
|
+
const x = I("el-checkbox"), d = I("el-button"), C = I("MvcAlert"), v = I("el-switch"), w = I("Input"), D = I("DrawerArea");
|
|
7105
|
+
return S(), q(D, le(m.$attrs, { class: "MvcTableColumnDownload" }), {
|
|
7106
|
+
cancel: L(() => [
|
|
7107
|
+
N(w, {
|
|
7099
7108
|
modelValue: n(a).fileName,
|
|
7100
|
-
"onUpdate:modelValue":
|
|
7109
|
+
"onUpdate:modelValue": p[3] || (p[3] = (f) => n(a).fileName = f),
|
|
7101
7110
|
icon: "catalog",
|
|
7102
|
-
placeholder: n(
|
|
7111
|
+
placeholder: n(T),
|
|
7103
7112
|
class: "w600"
|
|
7104
7113
|
}, {
|
|
7105
|
-
append:
|
|
7106
|
-
N(
|
|
7114
|
+
append: L(() => [
|
|
7115
|
+
N(d, {
|
|
7107
7116
|
loading: n(a).loading,
|
|
7108
|
-
onClick:
|
|
7117
|
+
onClick: i
|
|
7109
7118
|
}, {
|
|
7110
|
-
icon:
|
|
7119
|
+
icon: L(() => [...p[5] || (p[5] = [
|
|
7111
7120
|
u("i", { class: "imicon im-download1" }, null, -1)
|
|
7112
7121
|
])]),
|
|
7113
|
-
default:
|
|
7114
|
-
|
|
7122
|
+
default: L(() => [
|
|
7123
|
+
ae(" " + E(m.$l("Download")), 1)
|
|
7115
7124
|
]),
|
|
7116
7125
|
_: 1
|
|
7117
7126
|
}, 8, ["loading"])
|
|
@@ -7119,38 +7128,38 @@ const Ct = ol({
|
|
|
7119
7128
|
_: 1
|
|
7120
7129
|
}, 8, ["modelValue", "placeholder"])
|
|
7121
7130
|
]),
|
|
7122
|
-
submit:
|
|
7123
|
-
default:
|
|
7131
|
+
submit: L(() => [...p[6] || (p[6] = [])]),
|
|
7132
|
+
default: L(() => [
|
|
7124
7133
|
u("div", qn, [
|
|
7125
|
-
N(
|
|
7126
|
-
default:
|
|
7134
|
+
N(C, null, {
|
|
7135
|
+
default: L(() => [
|
|
7127
7136
|
u("div", Xn, [
|
|
7128
|
-
u("span", null,
|
|
7129
|
-
u("span", null,
|
|
7137
|
+
u("span", null, E(m.$l("Total")), 1),
|
|
7138
|
+
u("span", null, E(l.list.length), 1)
|
|
7130
7139
|
]),
|
|
7131
|
-
l.selection.length ? (
|
|
7132
|
-
u("span", null,
|
|
7133
|
-
u("span", null,
|
|
7134
|
-
N(
|
|
7140
|
+
l.selection.length ? (S(), $("div", Qn, [
|
|
7141
|
+
u("span", null, E(m.$l("Selection")), 1),
|
|
7142
|
+
u("span", null, E(l.selection.length), 1),
|
|
7143
|
+
N(x, {
|
|
7135
7144
|
modelValue: n(a).onlySelection,
|
|
7136
|
-
"onUpdate:modelValue":
|
|
7137
|
-
label:
|
|
7145
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => n(a).onlySelection = f),
|
|
7146
|
+
label: m.$l("Only Selection")
|
|
7138
7147
|
}, null, 8, ["modelValue", "label"])
|
|
7139
7148
|
])) : U("", !0),
|
|
7140
7149
|
u("div", es, [
|
|
7141
|
-
N(
|
|
7142
|
-
icon:
|
|
7150
|
+
N(d, { onClick: b }, {
|
|
7151
|
+
icon: L(() => [...p[4] || (p[4] = [
|
|
7143
7152
|
u("i", { class: "imicon im-copy" }, null, -1)
|
|
7144
7153
|
])]),
|
|
7145
|
-
default:
|
|
7146
|
-
|
|
7154
|
+
default: L(() => [
|
|
7155
|
+
ae(" " + E(m.$l("Copy to Clipboard")), 1)
|
|
7147
7156
|
]),
|
|
7148
7157
|
_: 1
|
|
7149
7158
|
}),
|
|
7150
|
-
N(
|
|
7159
|
+
N(x, {
|
|
7151
7160
|
modelValue: n(a).useHead,
|
|
7152
|
-
"onUpdate:modelValue":
|
|
7153
|
-
label:
|
|
7161
|
+
"onUpdate:modelValue": p[1] || (p[1] = (f) => n(a).useHead = f),
|
|
7162
|
+
label: m.$l("With Table Head")
|
|
7154
7163
|
}, null, 8, ["modelValue", "label"])
|
|
7155
7164
|
])
|
|
7156
7165
|
]),
|
|
@@ -7158,36 +7167,36 @@ const Ct = ol({
|
|
|
7158
7167
|
})
|
|
7159
7168
|
]),
|
|
7160
7169
|
u("div", ls, [
|
|
7161
|
-
(
|
|
7162
|
-
key:
|
|
7170
|
+
(S(!0), $(ee, null, oe(n(y), (f) => (S(), $("div", {
|
|
7171
|
+
key: f.type
|
|
7163
7172
|
}, [
|
|
7164
7173
|
u("div", as, [
|
|
7165
|
-
u("span", ts,
|
|
7166
|
-
N(
|
|
7167
|
-
modelValue:
|
|
7168
|
-
"onUpdate:modelValue": (
|
|
7169
|
-
indeterminate:
|
|
7170
|
-
label:
|
|
7171
|
-
onChange: (
|
|
7174
|
+
u("span", ts, E(f.label), 1),
|
|
7175
|
+
N(x, {
|
|
7176
|
+
modelValue: f.checkstatus,
|
|
7177
|
+
"onUpdate:modelValue": (O) => f.checkstatus = O,
|
|
7178
|
+
indeterminate: f.indeterminate,
|
|
7179
|
+
label: m.$l("Check"),
|
|
7180
|
+
onChange: (O) => A(O, f)
|
|
7172
7181
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "indeterminate", "label", "onChange"])
|
|
7173
7182
|
]),
|
|
7174
|
-
(
|
|
7175
|
-
modelValue:
|
|
7176
|
-
"onUpdate:modelValue": (
|
|
7177
|
-
key:
|
|
7178
|
-
label:
|
|
7179
|
-
value:
|
|
7183
|
+
(S(!0), $(ee, null, oe(f.children, (O, M) => (S(), q(x, {
|
|
7184
|
+
modelValue: O.visible,
|
|
7185
|
+
"onUpdate:modelValue": (j) => O.visible = j,
|
|
7186
|
+
key: M,
|
|
7187
|
+
label: O.label,
|
|
7188
|
+
value: O.value,
|
|
7180
7189
|
class: "fullCheckbox p8-12 mb4 radius2 hover-txt-primary hover-bg-gray3"
|
|
7181
7190
|
}, {
|
|
7182
|
-
default:
|
|
7183
|
-
var
|
|
7191
|
+
default: L(() => {
|
|
7192
|
+
var j;
|
|
7184
7193
|
return [
|
|
7185
7194
|
u("div", os, [
|
|
7186
|
-
u("span", null,
|
|
7187
|
-
(
|
|
7195
|
+
u("span", null, E(O.label), 1),
|
|
7196
|
+
(j = O.prop) != null && j.includes("country") ? (S(), q(v, {
|
|
7188
7197
|
key: 0,
|
|
7189
7198
|
modelValue: n(a).useCountryCode,
|
|
7190
|
-
"onUpdate:modelValue":
|
|
7199
|
+
"onUpdate:modelValue": p[2] || (p[2] = (F) => n(a).useCountryCode = F),
|
|
7191
7200
|
"inline-prompt": "",
|
|
7192
7201
|
"active-text": "Use Alpha-2 Code",
|
|
7193
7202
|
"inactive-text": "Use Country Name",
|
|
@@ -7323,178 +7332,178 @@ const Ct = ol({
|
|
|
7323
7332
|
cpt: we(ns)
|
|
7324
7333
|
}
|
|
7325
7334
|
]
|
|
7326
|
-
}), _ = Z(null), { proxy: A } =
|
|
7335
|
+
}), _ = Z(null), { proxy: A } = ue();
|
|
7327
7336
|
Rl(() => {
|
|
7328
|
-
|
|
7329
|
-
}),
|
|
7337
|
+
i();
|
|
7338
|
+
}), te(() => {
|
|
7330
7339
|
g();
|
|
7331
7340
|
});
|
|
7332
|
-
const
|
|
7341
|
+
const b = l, i = () => {
|
|
7333
7342
|
t.loading = a.defaultLoading, a.pageSize && (s.pageSize = a.pageSize);
|
|
7334
7343
|
}, g = () => {
|
|
7335
|
-
|
|
7336
|
-
},
|
|
7337
|
-
y(
|
|
7338
|
-
}, y = async (
|
|
7339
|
-
var
|
|
7340
|
-
if (
|
|
7344
|
+
f(), a.defer === !1 && y();
|
|
7345
|
+
}, T = (r) => {
|
|
7346
|
+
y(r);
|
|
7347
|
+
}, y = async (r = {}) => {
|
|
7348
|
+
var K, Y;
|
|
7349
|
+
if (r.refresh && t.loading)
|
|
7341
7350
|
return;
|
|
7342
7351
|
t.loading = !0;
|
|
7343
|
-
const
|
|
7344
|
-
pageSize:
|
|
7345
|
-
pageStart:
|
|
7352
|
+
const h = {
|
|
7353
|
+
pageSize: r.pageSize || s.pageSize,
|
|
7354
|
+
pageStart: r.pageStart || s.page
|
|
7346
7355
|
};
|
|
7347
|
-
|
|
7348
|
-
const { list: R = [], total:
|
|
7349
|
-
s.list = R.map((
|
|
7350
|
-
},
|
|
7351
|
-
|
|
7352
|
-
},
|
|
7356
|
+
r.refresh && (h.remote = !0);
|
|
7357
|
+
const { list: R = [], total: P, summary: G } = await a.loadData(h) || {};
|
|
7358
|
+
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;
|
|
7359
|
+
}, z = (r) => {
|
|
7360
|
+
r ? s.summary = r : s.summary = !1;
|
|
7361
|
+
}, V = (r) => {
|
|
7353
7362
|
if (s.summaryType === "locale")
|
|
7354
7363
|
return [];
|
|
7355
7364
|
if (s.summaryType === "remote") {
|
|
7356
|
-
const
|
|
7357
|
-
if (
|
|
7358
|
-
return typeof
|
|
7359
|
-
}, R = (
|
|
7360
|
-
var
|
|
7361
|
-
const
|
|
7362
|
-
return
|
|
7365
|
+
const h = (P, G) => {
|
|
7366
|
+
if (P != null)
|
|
7367
|
+
return typeof P == "function" ? P(G) : P[G];
|
|
7368
|
+
}, R = (P) => {
|
|
7369
|
+
var K, Y;
|
|
7370
|
+
const G = h(a.summaryMetric, P);
|
|
7371
|
+
return G !== void 0 ? G : h((Y = (K = globalThis.$config) == null ? void 0 : K.table) == null ? void 0 : Y.summaryMetric, P);
|
|
7363
7372
|
};
|
|
7364
|
-
return Bl(
|
|
7373
|
+
return Bl(r, s.summary, { resolveMetric: R });
|
|
7365
7374
|
}
|
|
7366
7375
|
return [];
|
|
7367
|
-
},
|
|
7376
|
+
}, m = () => {
|
|
7368
7377
|
_.value.$refs.scrollBarRef.setScrollTop(0);
|
|
7369
|
-
},
|
|
7378
|
+
}, p = () => {
|
|
7370
7379
|
y({
|
|
7371
7380
|
pageStart: 1
|
|
7372
7381
|
});
|
|
7373
|
-
},
|
|
7382
|
+
}, x = () => {
|
|
7374
7383
|
y();
|
|
7375
|
-
},
|
|
7376
|
-
if (t.selection =
|
|
7377
|
-
const
|
|
7378
|
-
let
|
|
7379
|
-
|
|
7380
|
-
for (let
|
|
7381
|
-
A.$refs.body.toggleRowSelection(s.list[
|
|
7384
|
+
}, d = (r) => {
|
|
7385
|
+
if (t.selection = r, b("selection-change", r), t.shiftKey) {
|
|
7386
|
+
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;
|
|
7387
|
+
let K = P, Y = G;
|
|
7388
|
+
P > G && (K = G, Y = P);
|
|
7389
|
+
for (let X = K; X <= Y; X++)
|
|
7390
|
+
A.$refs.body.toggleRowSelection(s.list[X], !0);
|
|
7382
7391
|
}
|
|
7383
|
-
},
|
|
7384
|
-
t.loading || (y({ refresh: !0 }),
|
|
7385
|
-
},
|
|
7392
|
+
}, C = () => {
|
|
7393
|
+
t.loading || (y({ refresh: !0 }), b("refresh"));
|
|
7394
|
+
}, v = () => {
|
|
7386
7395
|
c.current = 0;
|
|
7387
|
-
},
|
|
7396
|
+
}, w = () => {
|
|
7388
7397
|
c.current = 1;
|
|
7389
|
-
},
|
|
7398
|
+
}, D = () => {
|
|
7390
7399
|
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 =
|
|
7400
|
+
}, f = () => {
|
|
7401
|
+
document.addEventListener("keydown", O), document.addEventListener("keyup", M);
|
|
7402
|
+
}, O = (r) => {
|
|
7403
|
+
r.keyCode === 16 && (t.shiftKey = !0);
|
|
7404
|
+
}, M = (r) => {
|
|
7405
|
+
r.keyCode === 16 && (t.shiftKey = !1);
|
|
7406
|
+
}, j = () => {
|
|
7407
|
+
document.removeEventListener("keydown", O), document.removeEventListener("keyup", M);
|
|
7408
|
+
}, F = ({ i: r, row: h }) => {
|
|
7409
|
+
s.list[r] = h;
|
|
7410
|
+
}, H = k(() => {
|
|
7411
|
+
var h;
|
|
7412
|
+
let r = a.height || ((h = globalThis.$config.options) == null ? void 0 : h.pageHeight) || 640;
|
|
7413
|
+
return a.noheader === !1 && (r -= 64), a.nofooter === !1 && (r -= 56), r -= a.minusHeight, r;
|
|
7414
|
+
}), ie = k(() => !!s.summary), fe = k(() => s.nopagination === !0 ? "total" : "total,->,prev,pager,next,sizes"), re = k(() => {
|
|
7406
7415
|
if (a.tool) {
|
|
7407
|
-
const { column:
|
|
7416
|
+
const { column: r = !0, download: h = !0, refresh: R = !0 } = a.tool;
|
|
7408
7417
|
return {
|
|
7409
|
-
column:
|
|
7410
|
-
download:
|
|
7418
|
+
column: r,
|
|
7419
|
+
download: h,
|
|
7411
7420
|
refresh: R
|
|
7412
7421
|
};
|
|
7413
7422
|
} else
|
|
7414
7423
|
return !1;
|
|
7415
7424
|
});
|
|
7416
|
-
return
|
|
7417
|
-
|
|
7425
|
+
return ce(() => {
|
|
7426
|
+
j();
|
|
7418
7427
|
}), o({
|
|
7419
|
-
initTable:
|
|
7420
|
-
editRow:
|
|
7421
|
-
}), (
|
|
7422
|
-
const R =
|
|
7423
|
-
return
|
|
7424
|
-
a.noheader === !1 ? (
|
|
7428
|
+
initTable: T,
|
|
7429
|
+
editRow: F
|
|
7430
|
+
}), (r, h) => {
|
|
7431
|
+
const R = I("el-button"), P = I("Loading"), G = I("el-table"), K = I("el-pagination"), Y = I("Drawer");
|
|
7432
|
+
return S(), $("div", ss, [
|
|
7433
|
+
a.noheader === !1 ? (S(), $("div", {
|
|
7425
7434
|
key: 0,
|
|
7426
7435
|
class: B(["flexMode hb g12 p16 bg-white", a.autoHeader ? "minh64" : "h64"])
|
|
7427
7436
|
}, [
|
|
7428
7437
|
u("div", {
|
|
7429
7438
|
class: B(["flexMode vc flexGrow maxwp100", a.headerClass])
|
|
7430
7439
|
}, [
|
|
7431
|
-
|
|
7440
|
+
J(r.$slots, "header", {}, void 0, !0)
|
|
7432
7441
|
], 2),
|
|
7433
|
-
n(
|
|
7434
|
-
n(
|
|
7442
|
+
n(re) ? (S(), $("div", rs, [
|
|
7443
|
+
n(re).refresh ? (S(), q(R, {
|
|
7435
7444
|
key: 0,
|
|
7436
|
-
onClick:
|
|
7445
|
+
onClick: C
|
|
7437
7446
|
}, {
|
|
7438
|
-
icon:
|
|
7447
|
+
icon: L(() => [...h[2] || (h[2] = [
|
|
7439
7448
|
u("i", { class: "imicon im-reload" }, null, -1)
|
|
7440
7449
|
])]),
|
|
7441
|
-
default:
|
|
7442
|
-
|
|
7450
|
+
default: L(() => [
|
|
7451
|
+
ae(" " + E(r.$l("Refresh")), 1)
|
|
7443
7452
|
]),
|
|
7444
7453
|
_: 1
|
|
7445
7454
|
})) : U("", !0),
|
|
7446
|
-
n(
|
|
7455
|
+
n(re).column ? (S(), q(R, {
|
|
7447
7456
|
key: 1,
|
|
7448
|
-
onClick:
|
|
7457
|
+
onClick: v
|
|
7449
7458
|
}, {
|
|
7450
|
-
icon:
|
|
7459
|
+
icon: L(() => [...h[3] || (h[3] = [
|
|
7451
7460
|
u("i", { class: "imicon im-layout" }, null, -1)
|
|
7452
7461
|
])]),
|
|
7453
|
-
default:
|
|
7454
|
-
|
|
7462
|
+
default: L(() => [
|
|
7463
|
+
ae(" " + E(r.$l("Columns")), 1)
|
|
7455
7464
|
]),
|
|
7456
7465
|
_: 1
|
|
7457
7466
|
})) : U("", !0),
|
|
7458
|
-
n(
|
|
7467
|
+
n(re).download ? (S(), q(R, {
|
|
7459
7468
|
key: 2,
|
|
7460
|
-
onClick:
|
|
7469
|
+
onClick: w
|
|
7461
7470
|
}, {
|
|
7462
|
-
icon:
|
|
7471
|
+
icon: L(() => [...h[4] || (h[4] = [
|
|
7463
7472
|
u("i", { class: "imicon im-download" }, null, -1)
|
|
7464
7473
|
])]),
|
|
7465
|
-
default:
|
|
7466
|
-
|
|
7474
|
+
default: L(() => [
|
|
7475
|
+
ae(" " + E(r.$l("Download")), 1)
|
|
7467
7476
|
]),
|
|
7468
7477
|
_: 1
|
|
7469
7478
|
})) : U("", !0)
|
|
7470
7479
|
])) : U("", !0)
|
|
7471
7480
|
], 2)) : U("", !0),
|
|
7472
7481
|
u("div", is, [
|
|
7473
|
-
N(
|
|
7482
|
+
N(P, {
|
|
7474
7483
|
loading: n(t).loading
|
|
7475
7484
|
}, null, 8, ["loading"]),
|
|
7476
|
-
(
|
|
7485
|
+
(S(), q(G, {
|
|
7477
7486
|
ref_key: "body",
|
|
7478
7487
|
ref: _,
|
|
7479
7488
|
key: n(t).tableKey,
|
|
7480
|
-
height: n(
|
|
7489
|
+
height: n(H),
|
|
7481
7490
|
data: n(s).list,
|
|
7482
7491
|
"default-expand-all": a.defaultExpandAll,
|
|
7483
7492
|
"row-key": a.rowKey,
|
|
7484
7493
|
stripe: "",
|
|
7485
7494
|
border: "",
|
|
7486
7495
|
"show-summary": n(ie),
|
|
7487
|
-
"summary-method":
|
|
7496
|
+
"summary-method": V,
|
|
7488
7497
|
class: "MainTable",
|
|
7489
|
-
onSelectionChange:
|
|
7498
|
+
onSelectionChange: d
|
|
7490
7499
|
}, {
|
|
7491
|
-
default:
|
|
7492
|
-
N(n(gn),
|
|
7500
|
+
default: L(() => [
|
|
7501
|
+
N(n(gn), le({
|
|
7493
7502
|
"table-name": a.tableName,
|
|
7494
|
-
column: n(
|
|
7495
|
-
},
|
|
7496
|
-
default:
|
|
7497
|
-
|
|
7503
|
+
column: n(re) ? n(re).column : !1
|
|
7504
|
+
}, r.$attrs), {
|
|
7505
|
+
default: L(() => [
|
|
7506
|
+
J(r.$slots, "default", {}, void 0, !0)
|
|
7498
7507
|
]),
|
|
7499
7508
|
_: 3
|
|
7500
7509
|
}, 16, ["table-name", "column"])
|
|
@@ -7502,10 +7511,10 @@ const Ct = ol({
|
|
|
7502
7511
|
_: 3
|
|
7503
7512
|
}, 8, ["height", "data", "default-expand-all", "row-key", "show-summary"]))
|
|
7504
7513
|
]),
|
|
7505
|
-
a.nofooter === !1 ? (
|
|
7506
|
-
N(
|
|
7514
|
+
a.nofooter === !1 ? (S(), $("div", us, [
|
|
7515
|
+
N(K, {
|
|
7507
7516
|
"current-page": n(s).page,
|
|
7508
|
-
"onUpdate:currentPage":
|
|
7517
|
+
"onUpdate:currentPage": h[0] || (h[0] = (X) => n(s).page = X),
|
|
7509
7518
|
background: "",
|
|
7510
7519
|
total: n(s).total,
|
|
7511
7520
|
"default-page-size": n(s).pageSize,
|
|
@@ -7513,23 +7522,23 @@ const Ct = ol({
|
|
|
7513
7522
|
"pager-count": 5,
|
|
7514
7523
|
layout: n(fe),
|
|
7515
7524
|
class: "wp100",
|
|
7516
|
-
onSizeChange:
|
|
7517
|
-
onCurrentChange:
|
|
7525
|
+
onSizeChange: p,
|
|
7526
|
+
onCurrentChange: x
|
|
7518
7527
|
}, null, 8, ["current-page", "total", "default-page-size", "page-sizes", "layout"])
|
|
7519
7528
|
])) : U("", !0),
|
|
7520
|
-
N(
|
|
7529
|
+
N(Y, {
|
|
7521
7530
|
current: n(c).current,
|
|
7522
|
-
"onUpdate:current":
|
|
7531
|
+
"onUpdate:current": h[1] || (h[1] = (X) => n(c).current = X),
|
|
7523
7532
|
"table-name": a.tableName,
|
|
7524
7533
|
drawer: n(c).list,
|
|
7525
7534
|
list: n(s).list,
|
|
7526
7535
|
selection: n(t).selection,
|
|
7527
|
-
onInitColumn:
|
|
7536
|
+
onInitColumn: D
|
|
7528
7537
|
}, null, 8, ["current", "table-name", "drawer", "list", "selection"])
|
|
7529
7538
|
]);
|
|
7530
7539
|
};
|
|
7531
7540
|
}
|
|
7532
|
-
}), ds = /* @__PURE__ */
|
|
7541
|
+
}), ds = /* @__PURE__ */ Q(cs, [["__scopeId", "data-v-f79bf58d"]]), ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7533
7542
|
__proto__: null,
|
|
7534
7543
|
default: ds
|
|
7535
7544
|
}, Symbol.toStringTag, { value: "Module" })), bs = { class: "minh480 pt16" }, fs = /* @__PURE__ */ Object.assign({
|
|
@@ -7579,24 +7588,24 @@ const Ct = ol({
|
|
|
7579
7588
|
},
|
|
7580
7589
|
emits: ["update:modelValue", "change"],
|
|
7581
7590
|
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 !
|
|
7591
|
+
const l = e, a = o, t = be(), s = (i) => i == null ? i : ["Object", "Array"].includes(globalThis.$getType(i)) ? i[l.valueKey] : i, c = (i) => {
|
|
7592
|
+
a("update:modelValue", i);
|
|
7593
|
+
const g = l.options.find((T) => s(T) === i);
|
|
7594
|
+
a("change", i, g);
|
|
7595
|
+
}, _ = k(
|
|
7596
|
+
() => l.options.find((i) => s(i) === l.modelValue)
|
|
7597
|
+
), A = k(() => {
|
|
7598
|
+
const i = _.value;
|
|
7599
|
+
if (!(!i || !["Object", "Array"].includes(globalThis.$getType(i))))
|
|
7600
|
+
return i[l.componentKey];
|
|
7601
|
+
}), b = k(() => {
|
|
7602
|
+
const i = _.value;
|
|
7603
|
+
return !i || !["Object", "Array"].includes(globalThis.$getType(i)) ? {} : i[l.panePropsKey] ?? {};
|
|
7595
7604
|
});
|
|
7596
|
-
return (
|
|
7597
|
-
const
|
|
7598
|
-
return
|
|
7599
|
-
N(
|
|
7605
|
+
return (i, g) => {
|
|
7606
|
+
const T = I("BtnGroup");
|
|
7607
|
+
return S(), $("div", le({ class: "MvcTabs" }, n(t)), [
|
|
7608
|
+
N(T, {
|
|
7600
7609
|
"model-value": l.modelValue,
|
|
7601
7610
|
options: l.options,
|
|
7602
7611
|
"value-key": l.valueKey,
|
|
@@ -7607,7 +7616,7 @@ const Ct = ol({
|
|
|
7607
7616
|
"onUpdate:modelValue": c
|
|
7608
7617
|
}, null, 8, ["model-value", "options", "value-key", "label-key", "icon-key", "icon-class", "disabled"]),
|
|
7609
7618
|
u("div", bs, [
|
|
7610
|
-
n(A) ? (
|
|
7619
|
+
n(A) ? (S(), q(tl(n(A)), Te(le({ key: 0 }, n(b))), null, 16)) : U("", !0)
|
|
7611
7620
|
])
|
|
7612
7621
|
], 16);
|
|
7613
7622
|
};
|
|
@@ -7663,90 +7672,93 @@ const Ct = ol({
|
|
|
7663
7672
|
"focus"
|
|
7664
7673
|
],
|
|
7665
7674
|
setup(e, { emit: o }) {
|
|
7666
|
-
const l = e, a =
|
|
7675
|
+
const l = e, a = be(), t = Z(null);
|
|
7667
7676
|
let s = null;
|
|
7668
7677
|
const c = W({
|
|
7669
7678
|
val: "",
|
|
7670
7679
|
isComposing: !1,
|
|
7671
7680
|
focused: !1
|
|
7672
|
-
}), _ = o, { proxy: A } =
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7681
|
+
}), _ = o, { proxy: A } = ue(), b = k(() => {
|
|
7682
|
+
const { class: M, ...j } = a;
|
|
7683
|
+
return j;
|
|
7684
|
+
});
|
|
7685
|
+
te(() => {
|
|
7686
|
+
var j, F;
|
|
7687
|
+
const M = (j = t.value) == null ? void 0 : j.$el;
|
|
7688
|
+
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
7689
|
});
|
|
7678
|
-
const
|
|
7690
|
+
const i = () => {
|
|
7679
7691
|
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
|
-
},
|
|
7692
|
+
}, g = () => {
|
|
7693
|
+
c.isComposing = !1, de(() => p(c.val));
|
|
7694
|
+
}, T = (M) => {
|
|
7695
|
+
c.isComposing || p(M);
|
|
7696
|
+
}, y = (M) => {
|
|
7697
|
+
c.focused = !0, _("focus", M);
|
|
7698
|
+
}, z = (M) => {
|
|
7699
|
+
c.focused = !1, _("blur", M);
|
|
7700
|
+
}, V = (M) => {
|
|
7701
|
+
const j = String(M ?? "").split(/\r?\n/);
|
|
7702
|
+
return l.output === "array" ? j : j.join(",");
|
|
7703
|
+
}, m = (M) => Array.isArray(M) ? M.join(`
|
|
7704
|
+
`) : String(M ?? "").replace(/,/g, `
|
|
7705
|
+
`), p = (M) => {
|
|
7706
|
+
const j = V(M);
|
|
7707
|
+
_("update:modelValue", j), _("input", j);
|
|
7708
|
+
}, x = k(() => {
|
|
7697
7709
|
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
|
-
),
|
|
7710
|
+
const M = typeof l.height == "number" ? `${l.height}px` : l.height;
|
|
7711
|
+
return { ...A.$attrs["input-style"] && typeof A.$attrs["input-style"] == "object" ? { ...A.$attrs["input-style"] } : {}, height: M, minHeight: M };
|
|
7712
|
+
}), 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(
|
|
7713
|
+
() => l.materialLabel && (c.focused || v.value || w.value)
|
|
7714
|
+
), f = k(() => ({
|
|
7703
7715
|
hasLabel: !!l.label,
|
|
7704
7716
|
isMaterialLabel: !!(l.label && l.materialLabel),
|
|
7705
7717
|
isTopLabel: !!(l.label && !l.materialLabel),
|
|
7706
|
-
isFloat:
|
|
7718
|
+
isFloat: D.value,
|
|
7707
7719
|
isFocused: c.focused,
|
|
7708
7720
|
isDisabled: !!a.disabled,
|
|
7709
7721
|
isTextarea: !0
|
|
7710
|
-
})),
|
|
7722
|
+
})), O = k(
|
|
7711
7723
|
() => l.materialLabel ? { "--mv-field-surface": "var(--mvframe-input-surface, var(--el-bg-color, #ffffff))" } : void 0
|
|
7712
7724
|
);
|
|
7713
|
-
return
|
|
7725
|
+
return ne(
|
|
7714
7726
|
() => l.modelValue,
|
|
7715
|
-
(
|
|
7716
|
-
const
|
|
7717
|
-
c.val !==
|
|
7727
|
+
(M) => {
|
|
7728
|
+
const j = m(M);
|
|
7729
|
+
c.val !== j && (c.val = j);
|
|
7718
7730
|
},
|
|
7719
7731
|
{ immediate: !0 }
|
|
7720
|
-
),
|
|
7721
|
-
s && (s.removeEventListener("compositionstart",
|
|
7722
|
-
}), (
|
|
7723
|
-
const
|
|
7724
|
-
return
|
|
7725
|
-
class: B(["MvcField MvcFieldTextarea", n(
|
|
7726
|
-
style:
|
|
7732
|
+
), ce(() => {
|
|
7733
|
+
s && (s.removeEventListener("compositionstart", i), s.removeEventListener("compositionend", g), s = null);
|
|
7734
|
+
}), (M, j) => {
|
|
7735
|
+
const F = I("el-input");
|
|
7736
|
+
return S(), $("div", {
|
|
7737
|
+
class: B(["MvcField MvcFieldTextarea", n(f)]),
|
|
7738
|
+
style: se(n(O))
|
|
7727
7739
|
}, [
|
|
7728
|
-
l.label ? (
|
|
7729
|
-
N(
|
|
7740
|
+
l.label ? (S(), $("label", vs, E(l.label), 1)) : U("", !0),
|
|
7741
|
+
N(F, le({
|
|
7730
7742
|
ref_key: "inputRef",
|
|
7731
7743
|
ref: t,
|
|
7732
7744
|
type: "textarea",
|
|
7733
7745
|
modelValue: n(c).val,
|
|
7734
|
-
"onUpdate:modelValue":
|
|
7746
|
+
"onUpdate:modelValue": j[0] || (j[0] = (H) => n(c).val = H),
|
|
7735
7747
|
rows: l.rows,
|
|
7736
|
-
style:
|
|
7737
|
-
"input-style": n(
|
|
7738
|
-
"show-word-limit": n(
|
|
7739
|
-
maxlength: n(
|
|
7748
|
+
style: n(b).style,
|
|
7749
|
+
"input-style": n(x),
|
|
7750
|
+
"show-word-limit": n(d),
|
|
7751
|
+
maxlength: n(C),
|
|
7740
7752
|
class: "MvcTextarea"
|
|
7741
|
-
},
|
|
7742
|
-
onInput:
|
|
7743
|
-
onFocus:
|
|
7744
|
-
onBlur:
|
|
7753
|
+
}, n(b), {
|
|
7754
|
+
onInput: T,
|
|
7755
|
+
onFocus: y,
|
|
7756
|
+
onBlur: z
|
|
7745
7757
|
}), null, 16, ["modelValue", "rows", "style", "input-style", "show-word-limit", "maxlength"])
|
|
7746
7758
|
], 6);
|
|
7747
7759
|
};
|
|
7748
7760
|
}
|
|
7749
|
-
}), gs = /* @__PURE__ */
|
|
7761
|
+
}), gs = /* @__PURE__ */ Q(hs, [["__scopeId", "data-v-0c6cb715"]]), _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7750
7762
|
__proto__: null,
|
|
7751
7763
|
default: gs
|
|
7752
7764
|
}, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ Object.assign({
|
|
@@ -7798,7 +7810,7 @@ const As = (e, o = {}) => {
|
|
|
7798
7810
|
}, Cs = {
|
|
7799
7811
|
name: "Matt Avias Frame",
|
|
7800
7812
|
copyright: "©2026",
|
|
7801
|
-
version: "1.0.
|
|
7813
|
+
version: "1.0.86",
|
|
7802
7814
|
author: "Matt Avias",
|
|
7803
7815
|
date: "2026-02-26",
|
|
7804
7816
|
/** 默认语言 key,与 `$getLang`、localStorage `lang` 一致;业务在 app.use(mvframe, { config }) 里覆盖 */
|
|
@@ -7834,7 +7846,7 @@ const As = (e, o = {}) => {
|
|
|
7834
7846
|
export {
|
|
7835
7847
|
vt as D,
|
|
7836
7848
|
Xl as M,
|
|
7837
|
-
|
|
7849
|
+
Q as _,
|
|
7838
7850
|
Is as a,
|
|
7839
7851
|
Za as b,
|
|
7840
7852
|
Re as c,
|