@vtj/ui 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +370 -359
- package/dist/index.umd.js +2 -2
- package/package.json +4 -4
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { ElIcon as
|
|
3
|
-
import { ArrowRight as $n, Minimize as Bn, Popup as Mn, Maximize as In, RawClose as An, StarFilled as g0, Menu as Pn, Search as Ct, Close as h0, Expand as Vn, Fold as Dn, Star as v0, Document as
|
|
4
|
-
import { useDraggable as Jn, useMouseInElement as Wn, useEventListener as
|
|
5
|
-
import { isEqual as Bt, isObject as Mt, uid as w0, arrayToMap as e2, isUrl as t2, upperFirstCamelCase as _0, toArray as C0, get as
|
|
1
|
+
import { inject as xe, defineComponent as R, useAttrs as tt, getCurrentInstance as be, computed as C, markRaw as me, openBlock as f, createBlock as _, unref as c, normalizeClass as W, normalizeStyle as we, withCtx as y, renderSlot as P, resolveDynamicComponent as Z, createCommentVNode as x, createElementBlock as A, mergeProps as O, createElementVNode as F, toDisplayString as L, Fragment as q, renderList as te, isVNode as Q0, h as ce, shallowRef as Je, ref as D, watch as G, toRef as We, createTextVNode as U, useSlots as Z0, toRaw as pe, createVNode as S, normalizeProps as nt, guardReactiveProps as ot, effectScope as s0, reactive as st, onMounted as a0, onUnmounted as Et, watchEffect as Tt, nextTick as Se, Teleport as i0, withDirectives as ee, createSlots as ve, render as jt, vShow as re, isRef as Ke, withModifiers as l0, KeepAlive as en, provide as De, withKeys as tn } from "vue";
|
|
2
|
+
import { ElIcon as Pe, ElSubMenu as nn, ElBadge as wt, ElMenuItem as on, ElMenu as sn, ElButton as de, ElDropdown as an, ElDropdownMenu as ln, ElDropdownItem as rn, ElTooltip as r0, ElDivider as ue, ElSwitch as $t, ElInput as ye, ElEmpty as c0, ElTabs as u0, ElTabPane as _t, ElPopover as d0, ElAvatar as cn, ElMessageBox as Xe, ElSelect as p0, ElOption as f0, ElCheckboxButton as un, ElCheckbox as dn, ElCheckboxGroup as pn, ElRadioButton as fn, ElRadio as mn, ElRadioGroup as gn, ElInputNumber as hn, ElDatePicker as Ut, ElTimePicker as vn, ElRate as yn, ElSlider as bn, ElCascader as wn, formContextKey as _n, ElFormItem as Cn, ElForm as kn, ElImage as xn, ElInfiniteScroll as Kt, ElPagination as Sn, ElDescriptions as Xt, ElDescriptionsItem as dt, ElMessage as qe, vLoading as m0, ElLink as zn, ElUpload as En, ElImageViewer as Tn } from "element-plus";
|
|
3
|
+
import { ArrowRight as $n, Minimize as Bn, Popup as Mn, Maximize as In, RawClose as An, StarFilled as g0, Menu as Pn, Search as Ct, Close as h0, Expand as Vn, Fold as Dn, Star as v0, Document as Ce, Refresh as y0, CopyDocument as Nn, Moon as Fn, Sunny as Rn, MoreFilled as Ln, UserFilled as Hn, HomeFilled as On, WarningFilled as jn, EditPen as Un, ZoomIn as Kn, Download as Xn, Delete as Gn, Plus as Yn } from "@vtj/icons";
|
|
4
|
+
import { useDraggable as Jn, useMouseInElement as Wn, useEventListener as Qe, useElementSize as b0, useDark as qn, useResizeObserver as Qn, useVirtualList as Zn } from "@vueuse/core";
|
|
5
|
+
import { isEqual as Bt, isObject as Mt, uid as w0, arrayToMap as e2, isUrl as t2, upperFirstCamelCase as _0, toArray as C0, get as Ge, merge as n2, set as pt, debounce as o2, dedupArray as s2, numberFormat as a2, fileToBase64 as i2, cloneDeep as Gt, downloadRemoteFile as l2, downloadUrl as Yt } from "@vtj/utils";
|
|
6
6
|
import { useRouter as It, RouterView as r2, useRoute as k0, routeLocationKey as c2 } from "vue-router";
|
|
7
7
|
/**!
|
|
8
8
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
9
9
|
* @name @vtj/ui
|
|
10
10
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
11
|
-
* @version 0.8.
|
|
11
|
+
* @version 0.8.4
|
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
13
13
|
*/
|
|
14
|
-
const Ba = "0.8.
|
|
14
|
+
const Ba = "0.8.4", u2 = {
|
|
15
15
|
default: 14,
|
|
16
16
|
small: 12,
|
|
17
17
|
large: 18
|
|
@@ -42,7 +42,7 @@ const Ba = "0.8.3", u2 = {
|
|
|
42
42
|
function oe(o) {
|
|
43
43
|
return typeof o == "string" ? o : `${o}px`;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Le(o = 0, t) {
|
|
46
46
|
if (typeof o == "number")
|
|
47
47
|
return o;
|
|
48
48
|
if (/(%|vh|vw)$/i.test(o)) {
|
|
@@ -57,7 +57,7 @@ function Jt(o, t = {}) {
|
|
|
57
57
|
}
|
|
58
58
|
const Wt = Symbol("INSTALLED_KEY"), At = Symbol("ADAPTER_KEY");
|
|
59
59
|
function x0() {
|
|
60
|
-
return
|
|
60
|
+
return xe(At, {});
|
|
61
61
|
}
|
|
62
62
|
const Ma = {
|
|
63
63
|
install(o, t = {}) {
|
|
@@ -69,16 +69,16 @@ const Ma = {
|
|
|
69
69
|
s.name && e.component(s.name, s);
|
|
70
70
|
}), n.adapter && e.provide(At, n.adapter));
|
|
71
71
|
}
|
|
72
|
-
}), p2 = ["src"],
|
|
72
|
+
}), p2 = ["src"], ge = /* @__PURE__ */ R({
|
|
73
73
|
name: "XIcon",
|
|
74
74
|
__name: "Icon",
|
|
75
75
|
props: d2,
|
|
76
76
|
setup(o) {
|
|
77
|
-
const t = o, e =
|
|
77
|
+
const t = o, e = tt(), n = be(), s = C(() => {
|
|
78
78
|
if (!t.icon)
|
|
79
79
|
return null;
|
|
80
80
|
const i = n?.appContext.app;
|
|
81
|
-
return typeof t.icon == "object" ?
|
|
81
|
+
return typeof t.icon == "object" ? me(t.icon) : i?.component(t.icon) || t.icon;
|
|
82
82
|
}), a = C(() => {
|
|
83
83
|
const i = {
|
|
84
84
|
"is-pointer": !!e.onClick
|
|
@@ -89,11 +89,11 @@ const Ma = {
|
|
|
89
89
|
"border-radius": t.radius ? oe(t.radius) : void 0,
|
|
90
90
|
padding: t.padding ? oe(t.padding) : void 0
|
|
91
91
|
})), l = C(() => typeof t.size == "number" ? t.size : u2[t.size] ?? void 0);
|
|
92
|
-
return (i, d) => (f(), _(c(
|
|
92
|
+
return (i, d) => (f(), _(c(Pe), {
|
|
93
93
|
class: W(["x-icon", a.value]),
|
|
94
94
|
color: t.color,
|
|
95
95
|
size: l.value,
|
|
96
|
-
style:
|
|
96
|
+
style: we(r.value)
|
|
97
97
|
}, {
|
|
98
98
|
default: y(() => [
|
|
99
99
|
P(i.$slots, "default", {}, () => [
|
|
@@ -123,11 +123,11 @@ const Ma = {
|
|
|
123
123
|
defaultIcon: {}
|
|
124
124
|
},
|
|
125
125
|
setup(o) {
|
|
126
|
-
const t = o, e =
|
|
126
|
+
const t = o, e = be(), n = (r) => {
|
|
127
127
|
if (r)
|
|
128
128
|
return typeof r == "string" && (e?.appContext.app?.component(r) || t.defaultIcon) || r;
|
|
129
129
|
}, s = (r) => typeof r == "object" ? r : { value: r }, a = (r = []) => r.filter((l) => !l.hidden);
|
|
130
|
-
return (r, l) => t.item.children ? (f(), _(c(nn),
|
|
130
|
+
return (r, l) => t.item.children ? (f(), _(c(nn), O({
|
|
131
131
|
key: 0,
|
|
132
132
|
disabled: t.item.disabled
|
|
133
133
|
}, t.subMenu, {
|
|
@@ -135,12 +135,12 @@ const Ma = {
|
|
|
135
135
|
}), {
|
|
136
136
|
title: y(() => [
|
|
137
137
|
F("div", f2, [
|
|
138
|
-
t.item.icon ? (f(), _(c(
|
|
138
|
+
t.item.icon ? (f(), _(c(ge), {
|
|
139
139
|
key: 0,
|
|
140
140
|
icon: n(t.item.icon)
|
|
141
141
|
}, null, 8, ["icon"])) : x("", !0),
|
|
142
142
|
t.item.title ? (f(), A("span", m2, L(t.item.title), 1)) : x("", !0),
|
|
143
|
-
t.item.badge ? (f(), _(c(wt),
|
|
143
|
+
t.item.badge ? (f(), _(c(wt), O({
|
|
144
144
|
key: 2,
|
|
145
145
|
class: "x-menu__badge"
|
|
146
146
|
}, s(t.item.badge)), {
|
|
@@ -167,7 +167,7 @@ const Ma = {
|
|
|
167
167
|
}, {
|
|
168
168
|
title: y(() => [
|
|
169
169
|
t.item.title ? (f(), A("span", h2, L(t.item.title), 1)) : x("", !0),
|
|
170
|
-
t.item.badge ? (f(), _(c(wt),
|
|
170
|
+
t.item.badge ? (f(), _(c(wt), O({
|
|
171
171
|
key: 1,
|
|
172
172
|
class: "x-menu__badge"
|
|
173
173
|
}, s(t.item.badge)), {
|
|
@@ -178,7 +178,7 @@ const Ma = {
|
|
|
178
178
|
}, 16)) : x("", !0)
|
|
179
179
|
]),
|
|
180
180
|
default: y(() => [
|
|
181
|
-
t.item.icon ? (f(), _(c(
|
|
181
|
+
t.item.icon ? (f(), _(c(ge), {
|
|
182
182
|
key: 0,
|
|
183
183
|
icon: n(t.item.icon)
|
|
184
184
|
}, null, 8, ["icon"])) : x("", !0)
|
|
@@ -186,7 +186,7 @@ const Ma = {
|
|
|
186
186
|
_: 1
|
|
187
187
|
}, 8, ["index", "disabled"]));
|
|
188
188
|
}
|
|
189
|
-
}),
|
|
189
|
+
}), ke = /* @__PURE__ */ R({
|
|
190
190
|
inheritAttrs: !1,
|
|
191
191
|
name: "XMenu",
|
|
192
192
|
__name: "Menu",
|
|
@@ -214,7 +214,7 @@ const Ma = {
|
|
|
214
214
|
const i = a(s.value, l);
|
|
215
215
|
i && n("select", i);
|
|
216
216
|
};
|
|
217
|
-
return (l, i) => (f(), _(c(sn),
|
|
217
|
+
return (l, i) => (f(), _(c(sn), O({ class: "x-menu" }, l.$attrs, { onSelect: r }), {
|
|
218
218
|
default: y(() => [
|
|
219
219
|
(f(!0), A(q, null, te(s.value, (d) => (f(), _(c(S0), {
|
|
220
220
|
item: { ...d, icon: d.icon },
|
|
@@ -349,7 +349,7 @@ function w2(o) {
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
function _2(o) {
|
|
352
|
-
const t =
|
|
352
|
+
const t = be();
|
|
353
353
|
return C(() => {
|
|
354
354
|
const e = c(o);
|
|
355
355
|
if (e)
|
|
@@ -363,9 +363,9 @@ function _2(o) {
|
|
|
363
363
|
return null;
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Ee(o) {
|
|
367
367
|
const t = _2(o);
|
|
368
|
-
return t.value ?
|
|
368
|
+
return t.value ? me(R({ render: () => ce(ge, t.value) })) : void 0;
|
|
369
369
|
}
|
|
370
370
|
function Pt(o, t) {
|
|
371
371
|
return C(() => {
|
|
@@ -374,7 +374,7 @@ function Pt(o, t) {
|
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
function C2(o, t, e) {
|
|
377
|
-
const n =
|
|
377
|
+
const n = Je(t), s = D(!1), a = async (l) => {
|
|
378
378
|
const i = c(o);
|
|
379
379
|
return i ? typeof i == "function" ? await i(l) : i : t;
|
|
380
380
|
}, r = async (l) => (s.value = !0, await a(l).then((i) => (n.value = i || t, s.value = !1, c(n))));
|
|
@@ -397,7 +397,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
397
397
|
props: z0,
|
|
398
398
|
emits: ["click"],
|
|
399
399
|
setup(o, { emit: t }) {
|
|
400
|
-
const e = o, n = t, s =
|
|
400
|
+
const e = o, n = t, s = Ee(We(e, "icon")), a = Pt(We(e, "disabled")), r = C(() => ({
|
|
401
401
|
[`is-${e.mode}`]: !!e.mode,
|
|
402
402
|
[`is-${e.type}`]: !!e.type,
|
|
403
403
|
[`is-${e.size}`]: !!e.size && e.size !== "default",
|
|
@@ -408,7 +408,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
408
408
|
if (i.preventDefault(), !a.value)
|
|
409
409
|
return n("click"), !1;
|
|
410
410
|
};
|
|
411
|
-
return (i, d) => e.mode === "button" ? (f(), _(c(
|
|
411
|
+
return (i, d) => e.mode === "button" ? (f(), _(c(de), O({
|
|
412
412
|
key: 0,
|
|
413
413
|
icon: c(s),
|
|
414
414
|
type: e.type,
|
|
@@ -416,7 +416,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
416
416
|
disabled: c(a)
|
|
417
417
|
}, e.button, { onClick: l }), {
|
|
418
418
|
default: y(() => [
|
|
419
|
-
|
|
419
|
+
U(L(i.label), 1)
|
|
420
420
|
]),
|
|
421
421
|
_: 1
|
|
422
422
|
}, 16, ["icon", "type", "size", "disabled"])) : (f(), A("div", {
|
|
@@ -434,19 +434,19 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
434
434
|
props: z0,
|
|
435
435
|
emits: ["click", "command", "dragstart", "dragend"],
|
|
436
436
|
setup(o, { emit: t }) {
|
|
437
|
-
const e = o, n = Z0(), s = t, a = y2(e), r = b2(e), l = w2(e), i = Pt(
|
|
437
|
+
const e = o, n = Z0(), s = t, a = y2(e), r = b2(e), l = w2(e), i = Pt(We(e, "disabled")), d = C(() => !!e.draggable && !i.value), u = C(() => ({
|
|
438
438
|
[`x-action--${e.mode}`]: !!e.mode
|
|
439
439
|
})), p = () => {
|
|
440
|
-
i.value || s("click",
|
|
440
|
+
i.value || s("click", pe(e));
|
|
441
441
|
}, v = (h) => {
|
|
442
442
|
if (i.value)
|
|
443
443
|
return;
|
|
444
444
|
const w = e.menus?.find((T) => T.command === h);
|
|
445
|
-
w && s("command",
|
|
445
|
+
w && s("command", pe(w));
|
|
446
446
|
}, m = (h) => {
|
|
447
|
-
d && s("dragstart",
|
|
447
|
+
d && s("dragstart", pe(e), h);
|
|
448
448
|
}, g = (h) => {
|
|
449
|
-
d && s("dragend",
|
|
449
|
+
d && s("dragend", pe(e), h);
|
|
450
450
|
}, b = (h) => ce(wt, r.value, () => [].concat(h)), M = (h) => ce(
|
|
451
451
|
an,
|
|
452
452
|
{ ...l.value, disabled: i.value, onCommand: v },
|
|
@@ -466,7 +466,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
466
466
|
), z = (h) => ce(r0, { ...a.value, disabled: i.value }, () => [
|
|
467
467
|
h
|
|
468
468
|
]), E = C(() => {
|
|
469
|
-
let h = ce(
|
|
469
|
+
let h = ce(me(x2), { ...e, onClick: p });
|
|
470
470
|
const w = n.default?.();
|
|
471
471
|
return w && w.length && (h = w[0]), r.value && (h = b(h)), l.value && (h = M(h)), a.value && (h = z(h)), h;
|
|
472
472
|
});
|
|
@@ -571,7 +571,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
571
571
|
}, r = (l, i) => {
|
|
572
572
|
n("command", l, i);
|
|
573
573
|
};
|
|
574
|
-
return (l, i) => (f(), _(c(
|
|
574
|
+
return (l, i) => (f(), _(c(j), {
|
|
575
575
|
class: "x-action-bar",
|
|
576
576
|
align: "center"
|
|
577
577
|
}, {
|
|
@@ -581,7 +581,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
581
581
|
key: 0,
|
|
582
582
|
direction: "vertical",
|
|
583
583
|
class: "x-action-bar__divider"
|
|
584
|
-
})) : (f(), _(c(ae),
|
|
584
|
+
})) : (f(), _(c(ae), O({
|
|
585
585
|
key: 1,
|
|
586
586
|
mode: e.mode,
|
|
587
587
|
size: e.size,
|
|
@@ -590,7 +590,8 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
590
590
|
background: e.background,
|
|
591
591
|
button: e.button,
|
|
592
592
|
dropdown: e.dropdown,
|
|
593
|
-
disabled: c(Pt)(e.disabled, d).value
|
|
593
|
+
disabled: c(Pt)(e.disabled, d).value,
|
|
594
|
+
ref_for: !0
|
|
594
595
|
}, d, {
|
|
595
596
|
onClick: a,
|
|
596
597
|
onCommand: (u) => r(d, u)
|
|
@@ -716,12 +717,12 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
716
717
|
autoPointer: {
|
|
717
718
|
type: Boolean
|
|
718
719
|
}
|
|
719
|
-
},
|
|
720
|
+
}, j = /* @__PURE__ */ R({
|
|
720
721
|
name: "XContainer",
|
|
721
722
|
__name: "Container",
|
|
722
723
|
props: E2,
|
|
723
724
|
setup(o) {
|
|
724
|
-
const t = o, e =
|
|
725
|
+
const t = o, e = tt(), n = be(), s = C(() => {
|
|
725
726
|
const l = n?.parent;
|
|
726
727
|
if (!l)
|
|
727
728
|
return !1;
|
|
@@ -752,7 +753,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
752
753
|
});
|
|
753
754
|
return (l, i) => (f(), _(Z(t.tag), {
|
|
754
755
|
class: W(["x-container", a.value]),
|
|
755
|
-
style:
|
|
756
|
+
style: we(r.value)
|
|
756
757
|
}, {
|
|
757
758
|
default: y(() => [
|
|
758
759
|
P(l.$slots, "default")
|
|
@@ -790,18 +791,18 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
790
791
|
__name: "Header",
|
|
791
792
|
props: T2,
|
|
792
793
|
setup(o) {
|
|
793
|
-
const t = o, e =
|
|
794
|
+
const t = o, e = Ee(We(t, "icon")), n = tt(), s = C(() => ({
|
|
794
795
|
[`is-size-${t.size}`]: !!t.size && t.size !== "default",
|
|
795
796
|
"is-border": t.border,
|
|
796
797
|
"is-pointer": !!n.onClick
|
|
797
798
|
}));
|
|
798
|
-
return (a, r) => (f(), _(c(
|
|
799
|
+
return (a, r) => (f(), _(c(j), {
|
|
799
800
|
class: W(["x-header", s.value]),
|
|
800
801
|
justify: "space-between",
|
|
801
802
|
align: "center"
|
|
802
803
|
}, {
|
|
803
804
|
default: y(() => [
|
|
804
|
-
S(c(
|
|
805
|
+
S(c(j), {
|
|
805
806
|
align: "center",
|
|
806
807
|
class: W(["x-header__wrapper", s.value]),
|
|
807
808
|
grow: "",
|
|
@@ -815,10 +816,10 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
815
816
|
}, null, 8, ["onClick"])) : x("", !0),
|
|
816
817
|
F("span", $2, [
|
|
817
818
|
P(a.$slots, "default", {}, () => [
|
|
818
|
-
|
|
819
|
+
U(L(t.content), 1)
|
|
819
820
|
])
|
|
820
821
|
]),
|
|
821
|
-
t.more ? (f(), _(c(
|
|
822
|
+
t.more ? (f(), _(c(ge), {
|
|
822
823
|
key: 1,
|
|
823
824
|
class: "x-header__more",
|
|
824
825
|
icon: c($n)
|
|
@@ -830,7 +831,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
830
831
|
(...l) => c(n).onClick && c(n).onClick(...l))
|
|
831
832
|
}, [
|
|
832
833
|
P(a.$slots, "subtitle", {}, () => [
|
|
833
|
-
|
|
834
|
+
U(L(t.subtitle), 1)
|
|
834
835
|
])
|
|
835
836
|
])) : x("", !0)
|
|
836
837
|
]),
|
|
@@ -907,7 +908,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
907
908
|
footer: {
|
|
908
909
|
type: Object
|
|
909
910
|
}
|
|
910
|
-
},
|
|
911
|
+
}, Ye = /* @__PURE__ */ R({
|
|
911
912
|
name: "XPanel",
|
|
912
913
|
__name: "Panel",
|
|
913
914
|
props: I2,
|
|
@@ -928,7 +929,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
928
929
|
}), r = C(() => e.fit || e.height ? "auto" : void 0);
|
|
929
930
|
return t({
|
|
930
931
|
bodyRef: n
|
|
931
|
-
}), (l, i) => (f(), _(c(
|
|
932
|
+
}), (l, i) => (f(), _(c(j), {
|
|
932
933
|
class: W(["x-panel", s.value]),
|
|
933
934
|
direction: "column",
|
|
934
935
|
fit: e.fit,
|
|
@@ -936,14 +937,14 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
936
937
|
height: e.height
|
|
937
938
|
}, {
|
|
938
939
|
default: y(() => [
|
|
939
|
-
a.value ? (f(), _(c(
|
|
940
|
+
a.value ? (f(), _(c(j), {
|
|
940
941
|
key: 0,
|
|
941
942
|
flex: !1,
|
|
942
943
|
class: "x-panel__header"
|
|
943
944
|
}, {
|
|
944
945
|
default: y(() => [
|
|
945
946
|
P(l.$slots, "header", {}, () => [
|
|
946
|
-
S(c(M2),
|
|
947
|
+
S(c(M2), nt(ot(a.value)), {
|
|
947
948
|
default: y(() => [
|
|
948
949
|
P(l.$slots, "title")
|
|
949
950
|
]),
|
|
@@ -956,7 +957,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
956
957
|
]),
|
|
957
958
|
_: 3
|
|
958
959
|
})) : x("", !0),
|
|
959
|
-
S(c(
|
|
960
|
+
S(c(j), O({
|
|
960
961
|
ref_key: "bodyRef",
|
|
961
962
|
ref: n,
|
|
962
963
|
flex: !1,
|
|
@@ -970,7 +971,7 @@ const k2 = { key: 0 }, x2 = /* @__PURE__ */ R({
|
|
|
970
971
|
]),
|
|
971
972
|
_: 3
|
|
972
973
|
}, 16, ["overflow"]),
|
|
973
|
-
l.$slots.footer ? (f(), _(c(
|
|
974
|
+
l.$slots.footer ? (f(), _(c(j), O({
|
|
974
975
|
key: 1,
|
|
975
976
|
flex: !1,
|
|
976
977
|
padding: "",
|
|
@@ -1075,9 +1076,9 @@ class Zt {
|
|
|
1075
1076
|
const { el: t, options: e } = this, { disabled: n, onStart: s, onEnd: a } = e;
|
|
1076
1077
|
if (n)
|
|
1077
1078
|
return;
|
|
1078
|
-
this.MIE = Wn(t), this.cleanMousedown =
|
|
1079
|
+
this.MIE = Wn(t), this.cleanMousedown = Qe(document, "mousedown", () => {
|
|
1079
1080
|
this.direction?.value && this.MIE && (this.resizing.value = !0, t.classList.add("is-resizing", `is-${this.direction.value}-resizing`), s && s(this.direction.value, this.MIE));
|
|
1080
|
-
}), this.cleanMouseup =
|
|
1081
|
+
}), this.cleanMouseup = Qe(document, "mouseup", () => {
|
|
1081
1082
|
this.resizing.value && this.direction?.value && this.MIE && (t.classList.remove(
|
|
1082
1083
|
"is-resizing",
|
|
1083
1084
|
`is-${this.direction.value}-resizing`
|
|
@@ -1239,7 +1240,7 @@ const E0 = {
|
|
|
1239
1240
|
type: Boolean
|
|
1240
1241
|
}
|
|
1241
1242
|
};
|
|
1242
|
-
let
|
|
1243
|
+
let ze = 1e3;
|
|
1243
1244
|
function V2(o, t) {
|
|
1244
1245
|
const { width: e, height: n } = b0(t), s = st({
|
|
1245
1246
|
mode: o.mode || "normal",
|
|
@@ -1249,14 +1250,14 @@ function V2(o, t) {
|
|
|
1249
1250
|
height: 0,
|
|
1250
1251
|
top: 0,
|
|
1251
1252
|
left: 0,
|
|
1252
|
-
zIndex: ++
|
|
1253
|
+
zIndex: ++ze,
|
|
1253
1254
|
dragging: !1,
|
|
1254
1255
|
resizing: !1
|
|
1255
1256
|
});
|
|
1256
1257
|
return G([e, n], ([a, r]) => {
|
|
1257
|
-
s.wrapperWidth = a, s.wrapperHeight = r, s.width =
|
|
1258
|
+
s.wrapperWidth = a, s.wrapperHeight = r, s.width = Le(o.width, a), s.height = Le(o.height, r), s.left = o.left ? Le(o.left, a) - s.width / 2 : Math.max(Math.floor((a - s.width) / 2), 0), s.top = o.top ? Le(o.top, r) : Math.max(Math.floor((r - s.height) / 2), 0);
|
|
1258
1259
|
}), G(s, (a) => {
|
|
1259
|
-
|
|
1260
|
+
ze = Math.max(a.zIndex, ze);
|
|
1260
1261
|
}), {
|
|
1261
1262
|
state: s,
|
|
1262
1263
|
normal: C(() => s.mode === "normal"),
|
|
@@ -1308,7 +1309,7 @@ function N2(o, t, e) {
|
|
|
1308
1309
|
const p = u.target.nodeName || "";
|
|
1309
1310
|
["INPUT", "TEXTAREA", "RADIO", "CHECKBOX"].includes(
|
|
1310
1311
|
p.toUpperCase()
|
|
1311
|
-
) || (t.zIndex = Math.max(t.zIndex, ++
|
|
1312
|
+
) || (t.zIndex = Math.max(t.zIndex, ++ze));
|
|
1312
1313
|
},
|
|
1313
1314
|
submit: () => e("submit"),
|
|
1314
1315
|
cancel: () => {
|
|
@@ -1325,7 +1326,7 @@ function F2(o, t, e, n) {
|
|
|
1325
1326
|
target: n,
|
|
1326
1327
|
selector: ".x-panel__header",
|
|
1327
1328
|
onStart(a) {
|
|
1328
|
-
t.dragging = !0, t.zIndex = Math.max(t.zIndex, ++
|
|
1329
|
+
t.dragging = !0, t.zIndex = Math.max(t.zIndex, ++ze), e("dragStart", a);
|
|
1329
1330
|
},
|
|
1330
1331
|
onMove(a) {
|
|
1331
1332
|
e("dragging", a);
|
|
@@ -1349,7 +1350,7 @@ function R2(o, t, e) {
|
|
|
1349
1350
|
disabled: n,
|
|
1350
1351
|
dirs: ["e", "s", "w"],
|
|
1351
1352
|
onStart(s, a) {
|
|
1352
|
-
t.resizing = !0, t.zIndex = Math.max(t.zIndex, ++
|
|
1353
|
+
t.resizing = !0, t.zIndex = Math.max(t.zIndex, ++ze), e("resizeStart", s, a);
|
|
1353
1354
|
},
|
|
1354
1355
|
onResizing(s, a) {
|
|
1355
1356
|
e("resizing", s, a);
|
|
@@ -1380,13 +1381,13 @@ const H2 = ["src"], T0 = /* @__PURE__ */ R({
|
|
|
1380
1381
|
props: P2,
|
|
1381
1382
|
emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
|
|
1382
1383
|
setup(o, { expose: t, emit: e }) {
|
|
1383
|
-
const n = o, s = e, a =
|
|
1384
|
+
const n = o, s = e, a = be(), r = D(), l = D(), { state: i, maximized: d, minimized: u, normal: p } = V2(n, r), { styles: v, classes: m, wrapperClass: g, modalStyle: b } = D2(n, i), { changeMode: M, active: z, close: E, show: h, hide: w, submit: T, cancel: V } = N2(
|
|
1384
1385
|
n,
|
|
1385
1386
|
i,
|
|
1386
1387
|
s
|
|
1387
1388
|
), k = F2(n, i, s, r), H = R2(n, i, s), K = L2(n, l);
|
|
1388
1389
|
Tt(async () => {
|
|
1389
|
-
n.modelValue && (await
|
|
1390
|
+
n.modelValue && (await Se(), a && s("open", a));
|
|
1390
1391
|
});
|
|
1391
1392
|
const Y = C(() => l.value?.$el);
|
|
1392
1393
|
return t({
|
|
@@ -1414,9 +1415,9 @@ const H2 = ["src"], T0 = /* @__PURE__ */ R({
|
|
|
1414
1415
|
n.modal ? (f(), A("div", {
|
|
1415
1416
|
key: 0,
|
|
1416
1417
|
class: "x-dialog__modal",
|
|
1417
|
-
style:
|
|
1418
|
+
style: we(c(b))
|
|
1418
1419
|
}, null, 4)) : x("", !0),
|
|
1419
|
-
ee((f(), _(c(
|
|
1420
|
+
ee((f(), _(c(Ye), O({
|
|
1420
1421
|
ref_key: "panelRef",
|
|
1421
1422
|
ref: l,
|
|
1422
1423
|
class: ["x-dialog", c(m)],
|
|
@@ -1430,9 +1431,9 @@ const H2 = ["src"], T0 = /* @__PURE__ */ R({
|
|
|
1430
1431
|
size: n.size,
|
|
1431
1432
|
body: { padding: n.bodyPadding },
|
|
1432
1433
|
onClick: c(z)
|
|
1433
|
-
}, X.$attrs),
|
|
1434
|
+
}, X.$attrs), ve({
|
|
1434
1435
|
title: y(() => [
|
|
1435
|
-
|
|
1436
|
+
U(L(n.title), 1)
|
|
1436
1437
|
]),
|
|
1437
1438
|
actions: y(() => [
|
|
1438
1439
|
P(X.$slots, "actions"),
|
|
@@ -1490,34 +1491,34 @@ const H2 = ["src"], T0 = /* @__PURE__ */ R({
|
|
|
1490
1491
|
name: "footer",
|
|
1491
1492
|
fn: y(() => [
|
|
1492
1493
|
P(X.$slots, "footer", {}, () => [
|
|
1493
|
-
S(c(
|
|
1494
|
+
S(c(j), { align: "center" }, {
|
|
1494
1495
|
default: y(() => [
|
|
1495
1496
|
P(X.$slots, "extra")
|
|
1496
1497
|
]),
|
|
1497
1498
|
_: 3
|
|
1498
1499
|
}),
|
|
1499
|
-
S(c(
|
|
1500
|
+
S(c(j), { align: "center" }, {
|
|
1500
1501
|
default: y(() => [
|
|
1501
1502
|
P(X.$slots, "handle"),
|
|
1502
|
-
n.cancel ? (f(), _(c(
|
|
1503
|
+
n.cancel ? (f(), _(c(de), {
|
|
1503
1504
|
key: 0,
|
|
1504
1505
|
type: "default",
|
|
1505
1506
|
size: n.size,
|
|
1506
1507
|
onClick: c(V)
|
|
1507
1508
|
}, {
|
|
1508
1509
|
default: y(() => [
|
|
1509
|
-
|
|
1510
|
+
U(L(typeof n.cancel == "string" ? n.cancel : "取消"), 1)
|
|
1510
1511
|
]),
|
|
1511
1512
|
_: 1
|
|
1512
1513
|
}, 8, ["size", "onClick"])) : x("", !0),
|
|
1513
|
-
n.submit ? (f(), _(c(
|
|
1514
|
+
n.submit ? (f(), _(c(de), {
|
|
1514
1515
|
key: 1,
|
|
1515
1516
|
type: "primary",
|
|
1516
1517
|
size: n.size,
|
|
1517
1518
|
onClick: c(T)
|
|
1518
1519
|
}, {
|
|
1519
1520
|
default: y(() => [
|
|
1520
|
-
|
|
1521
|
+
U(L(typeof n.submit == "string" ? n.submit : "确定"), 1)
|
|
1521
1522
|
]),
|
|
1522
1523
|
_: 1
|
|
1523
1524
|
}, 8, ["size", "onClick"])) : x("", !0)
|
|
@@ -1556,7 +1557,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1556
1557
|
},
|
|
1557
1558
|
setup(o) {
|
|
1558
1559
|
const t = o;
|
|
1559
|
-
return (e, n) => ee((f(), _(c(
|
|
1560
|
+
return (e, n) => ee((f(), _(c(j), {
|
|
1560
1561
|
class: W(["x-mask-sidebar", { "is-collapsed": t.collapsed }]),
|
|
1561
1562
|
grow: !1,
|
|
1562
1563
|
flex: "",
|
|
@@ -1564,7 +1565,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1564
1565
|
}, {
|
|
1565
1566
|
default: y(() => [
|
|
1566
1567
|
P(e.$slots, "brand"),
|
|
1567
|
-
S(c(
|
|
1568
|
+
S(c(j), {
|
|
1568
1569
|
class: "x-mask-sidebar__wrapper",
|
|
1569
1570
|
flex: "",
|
|
1570
1571
|
grow: "",
|
|
@@ -1613,13 +1614,13 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1613
1614
|
}, p = () => {
|
|
1614
1615
|
n("update:favorite", r.value);
|
|
1615
1616
|
};
|
|
1616
|
-
return (v, m) => (f(), _(c(
|
|
1617
|
+
return (v, m) => (f(), _(c(j), {
|
|
1617
1618
|
class: "x-mask-switch-bar",
|
|
1618
1619
|
justify: "space-between",
|
|
1619
1620
|
align: "center"
|
|
1620
1621
|
}, {
|
|
1621
1622
|
default: y(() => [
|
|
1622
|
-
e.collasped ? x("", !0) : (f(), _(c(
|
|
1623
|
+
e.collasped ? x("", !0) : (f(), _(c(j), {
|
|
1623
1624
|
key: 0,
|
|
1624
1625
|
class: "x-mask-switch-bar__left",
|
|
1625
1626
|
grow: ""
|
|
@@ -1634,7 +1635,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1634
1635
|
"inactive-icon": c(Pn),
|
|
1635
1636
|
onChange: p
|
|
1636
1637
|
}, null, 8, ["modelValue", "active-icon", "inactive-icon"])),
|
|
1637
|
-
s.value ? (f(), _(c(
|
|
1638
|
+
s.value ? (f(), _(c(ye), {
|
|
1638
1639
|
key: 1,
|
|
1639
1640
|
modelValue: a.value,
|
|
1640
1641
|
"onUpdate:modelValue": m[1] || (m[1] = (g) => a.value = g),
|
|
@@ -1645,7 +1646,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1645
1646
|
"prefix-icon": c(Ct)
|
|
1646
1647
|
}, {
|
|
1647
1648
|
suffix: y(() => [
|
|
1648
|
-
S(c(
|
|
1649
|
+
S(c(ge), {
|
|
1649
1650
|
icon: c(h0),
|
|
1650
1651
|
onClick: i
|
|
1651
1652
|
}, null, 8, ["icon"])
|
|
@@ -1655,7 +1656,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1655
1656
|
]),
|
|
1656
1657
|
_: 1
|
|
1657
1658
|
})),
|
|
1658
|
-
S(c(
|
|
1659
|
+
S(c(j), {
|
|
1659
1660
|
class: W(["x-mask-switch-bar__right", { "is-collasped": e.collasped }]),
|
|
1660
1661
|
flex: "",
|
|
1661
1662
|
align: "center",
|
|
@@ -1708,12 +1709,12 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1708
1709
|
const t = o, e = It(), n = () => {
|
|
1709
1710
|
t.url && e.push(t.url);
|
|
1710
1711
|
};
|
|
1711
|
-
return (s, a) => (f(), _(c(
|
|
1712
|
+
return (s, a) => (f(), _(c(j), {
|
|
1712
1713
|
class: W(["x-mask-brand", { "is-collapsed": t.collapsed }]),
|
|
1713
1714
|
align: "center"
|
|
1714
1715
|
}, {
|
|
1715
1716
|
default: y(() => [
|
|
1716
|
-
S(c(
|
|
1717
|
+
S(c(j), {
|
|
1717
1718
|
class: "x-mask-brand__logo",
|
|
1718
1719
|
flex: "",
|
|
1719
1720
|
justify: "center",
|
|
@@ -1730,7 +1731,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1730
1731
|
]),
|
|
1731
1732
|
_: 3
|
|
1732
1733
|
}),
|
|
1733
|
-
S(c(
|
|
1734
|
+
S(c(j), {
|
|
1734
1735
|
class: "x-mask-brand__title",
|
|
1735
1736
|
flex: "",
|
|
1736
1737
|
align: "center"
|
|
@@ -1738,7 +1739,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1738
1739
|
default: y(() => [
|
|
1739
1740
|
t.title ? (f(), A("span", X2, [
|
|
1740
1741
|
P(s.$slots, "title", {}, () => [
|
|
1741
|
-
|
|
1742
|
+
U(L(t.title), 1)
|
|
1742
1743
|
])
|
|
1743
1744
|
])) : x("", !0)
|
|
1744
1745
|
]),
|
|
@@ -1748,7 +1749,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1748
1749
|
_: 3
|
|
1749
1750
|
}, 8, ["class"]));
|
|
1750
1751
|
}
|
|
1751
|
-
}),
|
|
1752
|
+
}), He = "__favorites__", Oe = "__search__", Y2 = /* @__PURE__ */ R({
|
|
1752
1753
|
__name: "Menu",
|
|
1753
1754
|
props: {
|
|
1754
1755
|
collapse: { type: Boolean, default: !1 },
|
|
@@ -1763,12 +1764,12 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1763
1764
|
setup(o, { emit: t }) {
|
|
1764
1765
|
const e = o, n = C(() => e.menus || []), s = t, a = C(() => String(e.active?.id)), r = C(() => [
|
|
1765
1766
|
{
|
|
1766
|
-
id:
|
|
1767
|
+
id: He,
|
|
1767
1768
|
title: "收藏",
|
|
1768
1769
|
icon: v0,
|
|
1769
1770
|
children: e.favorites?.length ? e.favorites : [
|
|
1770
1771
|
{
|
|
1771
|
-
id:
|
|
1772
|
+
id: He + "empty",
|
|
1772
1773
|
disabled: !0,
|
|
1773
1774
|
title: "暂无收藏菜单"
|
|
1774
1775
|
}
|
|
@@ -1778,12 +1779,12 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1778
1779
|
const d = (e.keyword || "").trim(), u = d ? (e.flatMenus || []).filter((p) => p.title?.includes(d)) : [];
|
|
1779
1780
|
return [
|
|
1780
1781
|
{
|
|
1781
|
-
id:
|
|
1782
|
+
id: Oe,
|
|
1782
1783
|
title: "搜索",
|
|
1783
1784
|
icon: Ct,
|
|
1784
1785
|
children: u?.length ? u : [
|
|
1785
1786
|
{
|
|
1786
|
-
id:
|
|
1787
|
+
id: Oe + "empty",
|
|
1787
1788
|
disabled: !0,
|
|
1788
1789
|
title: "查询匹配不到菜单项"
|
|
1789
1790
|
}
|
|
@@ -1794,14 +1795,14 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1794
1795
|
s("select", d);
|
|
1795
1796
|
};
|
|
1796
1797
|
return (d, u) => (f(), A(q, null, [
|
|
1797
|
-
ee(S(c(
|
|
1798
|
+
ee(S(c(j), {
|
|
1798
1799
|
class: "x-mask-menu",
|
|
1799
1800
|
grow: "",
|
|
1800
1801
|
flex: !1,
|
|
1801
1802
|
overflow: "auto"
|
|
1802
1803
|
}, {
|
|
1803
1804
|
default: y(() => [
|
|
1804
|
-
ee(S(c(
|
|
1805
|
+
ee(S(c(ke), {
|
|
1805
1806
|
subMenu: {
|
|
1806
1807
|
popperClass: "x-mask-menu-popper",
|
|
1807
1808
|
teleported: !0,
|
|
@@ -1809,7 +1810,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1809
1810
|
hideTimeout: 200
|
|
1810
1811
|
},
|
|
1811
1812
|
data: n.value,
|
|
1812
|
-
"default-icon": c(
|
|
1813
|
+
"default-icon": c(Ce),
|
|
1813
1814
|
collapse: !0,
|
|
1814
1815
|
"collapse-transition": !1,
|
|
1815
1816
|
"default-active": a.value,
|
|
@@ -1817,13 +1818,13 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1817
1818
|
}, null, 8, ["data", "default-icon", "default-active"]), [
|
|
1818
1819
|
[re, e.collapse]
|
|
1819
1820
|
]),
|
|
1820
|
-
ee(S(c(
|
|
1821
|
+
ee(S(c(ke), {
|
|
1821
1822
|
subMenu: {
|
|
1822
1823
|
popperClass: "x-mask-menu-popper",
|
|
1823
1824
|
teleported: !0
|
|
1824
1825
|
},
|
|
1825
1826
|
data: n.value,
|
|
1826
|
-
"default-icon": c(
|
|
1827
|
+
"default-icon": c(Ce),
|
|
1827
1828
|
collapse: !1,
|
|
1828
1829
|
"collapse-transition": !1,
|
|
1829
1830
|
"default-active": a.value,
|
|
@@ -1840,14 +1841,14 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1840
1841
|
}, 512), [
|
|
1841
1842
|
[re, !e.favorite && !e.keyword]
|
|
1842
1843
|
]),
|
|
1843
|
-
ee(S(c(
|
|
1844
|
+
ee(S(c(j), {
|
|
1844
1845
|
class: "x-mask-menu",
|
|
1845
1846
|
grow: "",
|
|
1846
1847
|
flex: !1,
|
|
1847
1848
|
overflow: "auto"
|
|
1848
1849
|
}, {
|
|
1849
1850
|
default: y(() => [
|
|
1850
|
-
ee(S(c(
|
|
1851
|
+
ee(S(c(ke), {
|
|
1851
1852
|
class: "x-mask-menu__favorites",
|
|
1852
1853
|
subMenu: {
|
|
1853
1854
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1856,16 +1857,16 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1856
1857
|
hideTimeout: 200
|
|
1857
1858
|
},
|
|
1858
1859
|
data: r.value,
|
|
1859
|
-
"default-icon": c(
|
|
1860
|
+
"default-icon": c(Ce),
|
|
1860
1861
|
collapse: !0,
|
|
1861
1862
|
"collapse-transition": !1,
|
|
1862
1863
|
"default-active": a.value,
|
|
1863
|
-
"default-openeds": [
|
|
1864
|
+
"default-openeds": [He],
|
|
1864
1865
|
onSelect: i
|
|
1865
1866
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1866
1867
|
[re, e.collapse]
|
|
1867
1868
|
]),
|
|
1868
|
-
ee(S(c(
|
|
1869
|
+
ee(S(c(ke), {
|
|
1869
1870
|
class: "x-mask-menu__favorites",
|
|
1870
1871
|
subMenu: {
|
|
1871
1872
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1874,11 +1875,11 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1874
1875
|
hideTimeout: 200
|
|
1875
1876
|
},
|
|
1876
1877
|
data: r.value,
|
|
1877
|
-
"default-icon": c(
|
|
1878
|
+
"default-icon": c(Ce),
|
|
1878
1879
|
collapse: !1,
|
|
1879
1880
|
"collapse-transition": !1,
|
|
1880
1881
|
"default-active": a.value,
|
|
1881
|
-
"default-openeds": [
|
|
1882
|
+
"default-openeds": [He],
|
|
1882
1883
|
onSelect: i
|
|
1883
1884
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1884
1885
|
[re, !e.collapse]
|
|
@@ -1888,7 +1889,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1888
1889
|
}, 512), [
|
|
1889
1890
|
[re, e.favorite && !e.keyword]
|
|
1890
1891
|
]),
|
|
1891
|
-
e.keyword ? ee((f(), _(c(
|
|
1892
|
+
e.keyword ? ee((f(), _(c(j), {
|
|
1892
1893
|
key: 0,
|
|
1893
1894
|
class: "x-mask-menu",
|
|
1894
1895
|
grow: "",
|
|
@@ -1896,7 +1897,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1896
1897
|
overflow: "auto"
|
|
1897
1898
|
}, {
|
|
1898
1899
|
default: y(() => [
|
|
1899
|
-
ee(S(c(
|
|
1900
|
+
ee(S(c(ke), {
|
|
1900
1901
|
class: "x-mask-menu__search",
|
|
1901
1902
|
subMenu: {
|
|
1902
1903
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1905,16 +1906,16 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1905
1906
|
hideTimeout: 200
|
|
1906
1907
|
},
|
|
1907
1908
|
data: l.value,
|
|
1908
|
-
"default-icon": c(
|
|
1909
|
+
"default-icon": c(Ce),
|
|
1909
1910
|
collapse: !0,
|
|
1910
1911
|
"collapse-transition": !1,
|
|
1911
1912
|
"default-active": a.value,
|
|
1912
|
-
"default-openeds": [
|
|
1913
|
+
"default-openeds": [Oe],
|
|
1913
1914
|
onSelect: i
|
|
1914
1915
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1915
1916
|
[re, e.collapse]
|
|
1916
1917
|
]),
|
|
1917
|
-
ee(S(c(
|
|
1918
|
+
ee(S(c(ke), {
|
|
1918
1919
|
class: "x-mask-menu__search",
|
|
1919
1920
|
subMenu: {
|
|
1920
1921
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1923,11 +1924,11 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1923
1924
|
hideTimeout: 200
|
|
1924
1925
|
},
|
|
1925
1926
|
data: l.value,
|
|
1926
|
-
"default-icon": c(
|
|
1927
|
+
"default-icon": c(Ce),
|
|
1927
1928
|
collapse: !1,
|
|
1928
1929
|
"collapse-transition": !1,
|
|
1929
1930
|
"default-active": a.value,
|
|
1930
|
-
"default-openeds": [
|
|
1931
|
+
"default-openeds": [Oe],
|
|
1931
1932
|
onSelect: i
|
|
1932
1933
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1933
1934
|
[re, !e.collapse]
|
|
@@ -2088,7 +2089,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2088
2089
|
}, d = (u, p) => {
|
|
2089
2090
|
p.target && p.target.classList.remove("is-dagging");
|
|
2090
2091
|
};
|
|
2091
|
-
return (u, p) => (f(), _(c(
|
|
2092
|
+
return (u, p) => (f(), _(c(j), {
|
|
2092
2093
|
ref: "tabsRef",
|
|
2093
2094
|
class: "x-mask-tabs",
|
|
2094
2095
|
height: "100%",
|
|
@@ -2111,7 +2112,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2111
2112
|
}, {
|
|
2112
2113
|
label: y(() => [
|
|
2113
2114
|
F("div", Q2, [
|
|
2114
|
-
e.home.icon ? (f(), _(Z(c(
|
|
2115
|
+
e.home.icon ? (f(), _(Z(c(Ee)(e.home.icon)), { key: 0 })) : x("", !0),
|
|
2115
2116
|
e.home.title ? (f(), A("span", Z2, L(e.home.title), 1)) : x("", !0)
|
|
2116
2117
|
])
|
|
2117
2118
|
]),
|
|
@@ -2138,7 +2139,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2138
2139
|
onDragstart: (m) => i(v, m),
|
|
2139
2140
|
onDragend: (m) => d(v, m)
|
|
2140
2141
|
}, [
|
|
2141
|
-
v.icon ? (f(), _(Z(c(
|
|
2142
|
+
v.icon ? (f(), _(Z(c(Ee)(v.icon)), { key: 0 })) : x("", !0),
|
|
2142
2143
|
v.title ? (f(), A("span", to, L(v.title), 1)) : x("", !0)
|
|
2143
2144
|
], 40, eo)
|
|
2144
2145
|
]),
|
|
@@ -2170,7 +2171,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2170
2171
|
return (e, n) => (f(), _(c($t), {
|
|
2171
2172
|
class: "x-mask-theme-switch",
|
|
2172
2173
|
modelValue: c(t),
|
|
2173
|
-
"onUpdate:modelValue": n[0] || (n[0] = (s) =>
|
|
2174
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => Ke(t) ? t.value = s : null),
|
|
2174
2175
|
size: "default",
|
|
2175
2176
|
"active-action-icon": c(Fn),
|
|
2176
2177
|
"inactive-action-icon": c(Rn)
|
|
@@ -2228,7 +2229,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2228
2229
|
}, i = (d, u) => {
|
|
2229
2230
|
n("actionCommand", d, u);
|
|
2230
2231
|
};
|
|
2231
|
-
return (d, u) => (f(), _(c(
|
|
2232
|
+
return (d, u) => (f(), _(c(j), {
|
|
2232
2233
|
class: "x-mask-toolbar",
|
|
2233
2234
|
align: "center"
|
|
2234
2235
|
}, {
|
|
@@ -2244,8 +2245,8 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2244
2245
|
}, {
|
|
2245
2246
|
item: y(({ item: p }) => [
|
|
2246
2247
|
F("span", so, [
|
|
2247
|
-
|
|
2248
|
-
["other", "all"].includes(p.command) ? x("", !0) : (f(), _(c(
|
|
2248
|
+
U(L(p.label) + " ", 1),
|
|
2249
|
+
["other", "all"].includes(p.command) ? x("", !0) : (f(), _(c(ge), {
|
|
2249
2250
|
key: 0,
|
|
2250
2251
|
onClick: l0((v) => a(p), ["stop"]),
|
|
2251
2252
|
icon: c(h0)
|
|
@@ -2314,7 +2315,7 @@ const O2 = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2314
2315
|
},
|
|
2315
2316
|
setup(o) {
|
|
2316
2317
|
const t = o;
|
|
2317
|
-
return (e, n) => (f(), _(c(
|
|
2318
|
+
return (e, n) => (f(), _(c(j), {
|
|
2318
2319
|
class: "x-mask__content",
|
|
2319
2320
|
flex: !1,
|
|
2320
2321
|
grow: "",
|
|
@@ -2364,7 +2365,7 @@ function M0(o, t) {
|
|
|
2364
2365
|
}), e;
|
|
2365
2366
|
}
|
|
2366
2367
|
function co(o, t) {
|
|
2367
|
-
const e = It(), n =
|
|
2368
|
+
const e = It(), n = Je([]), s = Je([]), a = C(() => M0(n.value, o.menuAdapter)), r = C(() => e2(a.value, "id")), l = D(null), i = (g) => {
|
|
2368
2369
|
const b = typeof g == "object" ? g.id : g, M = r.value.get(b);
|
|
2369
2370
|
if (!M) {
|
|
2370
2371
|
console.warn("找不到菜单", g);
|
|
@@ -2423,7 +2424,7 @@ function uo(o, t, e, n, s) {
|
|
|
2423
2424
|
const $ = i.value.find((N) => N.url === I.url || N.id === I.id);
|
|
2424
2425
|
$ ? w($) : (i.value.unshift(I), w(I));
|
|
2425
2426
|
}, k = async (I) => {
|
|
2426
|
-
const { url: $ = a.fullPath, icon: N, title: se = "新建标签页" } = I || {},
|
|
2427
|
+
const { url: $ = a.fullPath, icon: N, title: se = "新建标签页" } = I || {}, _e = l[$], ct = w0(), ut = _0($);
|
|
2427
2428
|
return {
|
|
2428
2429
|
id: ct,
|
|
2429
2430
|
name: ut,
|
|
@@ -2432,10 +2433,10 @@ function uo(o, t, e, n, s) {
|
|
|
2432
2433
|
title: se,
|
|
2433
2434
|
closable: !0,
|
|
2434
2435
|
menu: I,
|
|
2435
|
-
...
|
|
2436
|
+
..._e ? await _e() : {}
|
|
2436
2437
|
};
|
|
2437
2438
|
}, H = async (I) => {
|
|
2438
|
-
if (await
|
|
2439
|
+
if (await Xe.confirm("是否关闭页签", "提示", {
|
|
2439
2440
|
type: "warning"
|
|
2440
2441
|
}).catch(() => !1)) {
|
|
2441
2442
|
if (i.value = i.value.filter((N) => N.id !== I.id), z.value === I.id) {
|
|
@@ -2451,14 +2452,14 @@ function uo(o, t, e, n, s) {
|
|
|
2451
2452
|
i.value.splice($, 1, Object.assign(N, I));
|
|
2452
2453
|
}
|
|
2453
2454
|
}, Y = async () => {
|
|
2454
|
-
if (!await
|
|
2455
|
+
if (!await Xe.confirm("是否关闭全部页签", "提示", {
|
|
2455
2456
|
type: "warning"
|
|
2456
2457
|
}).catch(() => !1))
|
|
2457
2458
|
return;
|
|
2458
2459
|
const $ = i.value;
|
|
2459
2460
|
return i.value = [], w(s.value), $;
|
|
2460
2461
|
}, X = async () => {
|
|
2461
|
-
if (!await
|
|
2462
|
+
if (!await Xe.confirm("是否关闭其他页签", "提示", {
|
|
2462
2463
|
type: "warning"
|
|
2463
2464
|
}).catch(() => !1))
|
|
2464
2465
|
return;
|
|
@@ -2468,7 +2469,7 @@ function uo(o, t, e, n, s) {
|
|
|
2468
2469
|
const $ = i.value.filter((N) => N.id !== I.id);
|
|
2469
2470
|
i.value = [I, ...$], w(I);
|
|
2470
2471
|
}, B = async () => {
|
|
2471
|
-
await
|
|
2472
|
+
await Se();
|
|
2472
2473
|
const I = s.value.url === a.fullPath, $ = g(a.fullPath);
|
|
2473
2474
|
if (I)
|
|
2474
2475
|
z.value = s.value.id;
|
|
@@ -2476,9 +2477,9 @@ function uo(o, t, e, n, s) {
|
|
|
2476
2477
|
const N = await k($);
|
|
2477
2478
|
V(N);
|
|
2478
2479
|
}
|
|
2479
|
-
await
|
|
2480
|
+
await Se(), n.value = $ || null;
|
|
2480
2481
|
};
|
|
2481
|
-
return G(e, B), G(a, B, { immediate: !0 }),
|
|
2482
|
+
return G(e, B), G(a, B, { immediate: !0 }), De($0, l), {
|
|
2482
2483
|
tabRef: d,
|
|
2483
2484
|
tabs: i,
|
|
2484
2485
|
showTabs: v,
|
|
@@ -2499,7 +2500,7 @@ function uo(o, t, e, n, s) {
|
|
|
2499
2500
|
};
|
|
2500
2501
|
}
|
|
2501
2502
|
function po(o) {
|
|
2502
|
-
const t = /* @__PURE__ */ new Map(), e = D([]), n = st({}), s =
|
|
2503
|
+
const t = /* @__PURE__ */ new Map(), e = D([]), n = st({}), s = be(), a = {}, { updateTab: r, isCurrentTab: l, activeHome: i, tabs: d } = o, u = (h, w) => {
|
|
2503
2504
|
const T = w.fullPath;
|
|
2504
2505
|
if (t.has(T))
|
|
2505
2506
|
return t.get(T);
|
|
@@ -2508,9 +2509,9 @@ function po(o) {
|
|
|
2508
2509
|
name: V,
|
|
2509
2510
|
setup() {
|
|
2510
2511
|
const H = C(() => n[T] || document.body), K = C(() => !n[T]), Y = C(() => !e.value.includes(V));
|
|
2511
|
-
return
|
|
2512
|
+
return De(
|
|
2512
2513
|
c2,
|
|
2513
|
-
|
|
2514
|
+
pe({ ...w })
|
|
2514
2515
|
), () => Y.value ? ce(
|
|
2515
2516
|
i0,
|
|
2516
2517
|
{
|
|
@@ -2557,11 +2558,11 @@ function po(o) {
|
|
|
2557
2558
|
},
|
|
2558
2559
|
s?.appContext
|
|
2559
2560
|
);
|
|
2560
|
-
return await
|
|
2561
|
+
return await Se(), l(h) && i(), a[h.id] = w, w;
|
|
2561
2562
|
}, g = async (h) => {
|
|
2562
|
-
e.value = [h.name], await
|
|
2563
|
+
e.value = [h.name], await Se(), e.value = [];
|
|
2563
2564
|
}, b = async (h) => {
|
|
2564
|
-
e.value = h.map((w) => w.name), await
|
|
2565
|
+
e.value = h.map((w) => w.name), await Se(), e.value = [];
|
|
2565
2566
|
}, M = (h) => (h.preventDefault(), !1), z = (h) => {
|
|
2566
2567
|
if (h.dataTransfer) {
|
|
2567
2568
|
const w = h.dataTransfer.getData("tab"), T = d.value.find((V) => V.id === w);
|
|
@@ -2574,7 +2575,7 @@ function po(o) {
|
|
|
2574
2575
|
}
|
|
2575
2576
|
}
|
|
2576
2577
|
}, E = (h) => !!n[h];
|
|
2577
|
-
return
|
|
2578
|
+
return Qe(document, "dragover", M), Qe(document, "drop", z), {
|
|
2578
2579
|
createView: u,
|
|
2579
2580
|
openDialog: m,
|
|
2580
2581
|
refresh: g,
|
|
@@ -2612,7 +2613,7 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2612
2613
|
activeHome: V
|
|
2613
2614
|
}), se = async (J) => {
|
|
2614
2615
|
await E(J) && await $([J]);
|
|
2615
|
-
},
|
|
2616
|
+
}, _e = async () => {
|
|
2616
2617
|
const J = await k();
|
|
2617
2618
|
J && (N(J), await $(J));
|
|
2618
2619
|
}, ct = async () => {
|
|
@@ -2623,14 +2624,14 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2623
2624
|
}, q0 = (J, le) => {
|
|
2624
2625
|
n("actionCommand", J, le);
|
|
2625
2626
|
};
|
|
2626
|
-
return
|
|
2627
|
+
return De(B0, {
|
|
2627
2628
|
tabs: h,
|
|
2628
2629
|
flatMenus: u,
|
|
2629
2630
|
favorites: d,
|
|
2630
2631
|
updateTab: w,
|
|
2631
2632
|
active: p,
|
|
2632
2633
|
currentTab: M
|
|
2633
|
-
}), (J, le) => (f(), _(c(
|
|
2634
|
+
}), (J, le) => (f(), _(c(j), {
|
|
2634
2635
|
class: W(["x-mask", { "is-disabled": e.disabled }]),
|
|
2635
2636
|
fit: ""
|
|
2636
2637
|
}, {
|
|
@@ -2657,11 +2658,11 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2657
2658
|
default: y(() => [
|
|
2658
2659
|
S(U2, {
|
|
2659
2660
|
collasped: c(a),
|
|
2660
|
-
"onUpdate:collasped": le[0] || (le[0] = (
|
|
2661
|
+
"onUpdate:collasped": le[0] || (le[0] = (Ie) => Ke(a) ? a.value = Ie : null),
|
|
2661
2662
|
favorite: c(l),
|
|
2662
|
-
"onUpdate:favorite": le[1] || (le[1] = (
|
|
2663
|
+
"onUpdate:favorite": le[1] || (le[1] = (Ie) => Ke(l) ? l.value = Ie : null),
|
|
2663
2664
|
keyword: c(r),
|
|
2664
|
-
"onUpdate:keyword": le[2] || (le[2] = (
|
|
2665
|
+
"onUpdate:keyword": le[2] || (le[2] = (Ie) => Ke(r) ? r.value = Ie : null)
|
|
2665
2666
|
}, null, 8, ["collasped", "favorite", "keyword"]),
|
|
2666
2667
|
S(Y2, {
|
|
2667
2668
|
collapse: c(a),
|
|
@@ -2676,7 +2677,7 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2676
2677
|
]),
|
|
2677
2678
|
_: 1
|
|
2678
2679
|
}, 8, ["collapsed"]),
|
|
2679
|
-
S(c(
|
|
2680
|
+
S(c(j), {
|
|
2680
2681
|
class: "x-mask__main",
|
|
2681
2682
|
grow: "",
|
|
2682
2683
|
shrink: "",
|
|
@@ -2684,7 +2685,7 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2684
2685
|
direction: "column"
|
|
2685
2686
|
}, {
|
|
2686
2687
|
default: y(() => [
|
|
2687
|
-
S(c(
|
|
2688
|
+
S(c(j), {
|
|
2688
2689
|
class: "x-mask-topbar",
|
|
2689
2690
|
justify: "space-between",
|
|
2690
2691
|
align: "center"
|
|
@@ -2708,7 +2709,7 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2708
2709
|
actions: e.actions,
|
|
2709
2710
|
theme: e.theme,
|
|
2710
2711
|
onCloseOtherTabs: ct,
|
|
2711
|
-
onCloseAllTabs:
|
|
2712
|
+
onCloseAllTabs: _e,
|
|
2712
2713
|
onCloseTab: se,
|
|
2713
2714
|
onClickTab: c(Y),
|
|
2714
2715
|
onActionClick: ut,
|
|
@@ -2717,7 +2718,7 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2717
2718
|
default: y(() => [
|
|
2718
2719
|
S(io, {
|
|
2719
2720
|
avatar: e.avatar
|
|
2720
|
-
},
|
|
2721
|
+
}, ve({ _: 2 }, [
|
|
2721
2722
|
J.$slots.user ? {
|
|
2722
2723
|
name: "default",
|
|
2723
2724
|
fn: y(() => [
|
|
@@ -2751,7 +2752,7 @@ const Aa = /* @__PURE__ */ R({
|
|
|
2751
2752
|
}
|
|
2752
2753
|
});
|
|
2753
2754
|
function Pa(o = {}) {
|
|
2754
|
-
const t = k0(), e =
|
|
2755
|
+
const t = k0(), e = xe($0, null), n = xe(B0, null);
|
|
2755
2756
|
if (e) {
|
|
2756
2757
|
const a = typeof o == "function" ? o : async () => o;
|
|
2757
2758
|
e[t.fullPath] = a;
|
|
@@ -2768,11 +2769,12 @@ const fo = /* @__PURE__ */ R({
|
|
|
2768
2769
|
},
|
|
2769
2770
|
setup(o) {
|
|
2770
2771
|
const t = o;
|
|
2771
|
-
return (e, n) => (f(), _(c(p0),
|
|
2772
|
+
return (e, n) => (f(), _(c(p0), nt(ot(e.$attrs)), {
|
|
2772
2773
|
default: y(() => [
|
|
2773
|
-
(f(!0), A(q, null, te(t.options, (s, a) => (f(), _(c(f0),
|
|
2774
|
-
key: `item_${a}_${s.value}
|
|
2775
|
-
|
|
2774
|
+
(f(!0), A(q, null, te(t.options, (s, a) => (f(), _(c(f0), O({
|
|
2775
|
+
key: `item_${a}_${s.value}`,
|
|
2776
|
+
ref_for: !0
|
|
2777
|
+
}, s), ve({ _: 2 }, [
|
|
2776
2778
|
e.$slots.option ? {
|
|
2777
2779
|
name: "default",
|
|
2778
2780
|
fn: y(() => [
|
|
@@ -2793,15 +2795,16 @@ const fo = /* @__PURE__ */ R({
|
|
|
2793
2795
|
},
|
|
2794
2796
|
setup(o) {
|
|
2795
2797
|
const t = o, e = C(
|
|
2796
|
-
() =>
|
|
2798
|
+
() => me(t.button ? un : dn)
|
|
2797
2799
|
);
|
|
2798
|
-
return (n, s) => (f(), _(c(pn),
|
|
2800
|
+
return (n, s) => (f(), _(c(pn), nt(ot(n.$attrs)), {
|
|
2799
2801
|
default: y(() => [
|
|
2800
|
-
(f(!0), A(q, null, te(t.options, (a, r) => (f(), _(Z(e.value),
|
|
2801
|
-
key: `item_${r}_${a.value}
|
|
2802
|
+
(f(!0), A(q, null, te(t.options, (a, r) => (f(), _(Z(e.value), O({
|
|
2803
|
+
key: `item_${r}_${a.value}`,
|
|
2804
|
+
ref_for: !0
|
|
2802
2805
|
}, a), {
|
|
2803
2806
|
default: y(() => [
|
|
2804
|
-
|
|
2807
|
+
U(L(a.label), 1)
|
|
2805
2808
|
]),
|
|
2806
2809
|
_: 2
|
|
2807
2810
|
}, 1040))), 128))
|
|
@@ -2817,15 +2820,16 @@ const fo = /* @__PURE__ */ R({
|
|
|
2817
2820
|
},
|
|
2818
2821
|
setup(o) {
|
|
2819
2822
|
const t = o, e = C(
|
|
2820
|
-
() =>
|
|
2823
|
+
() => me(t.button ? fn : mn)
|
|
2821
2824
|
);
|
|
2822
|
-
return (n, s) => (f(), _(c(gn),
|
|
2825
|
+
return (n, s) => (f(), _(c(gn), nt(ot(n.$attrs)), {
|
|
2823
2826
|
default: y(() => [
|
|
2824
|
-
(f(!0), A(q, null, te(t.options, (a, r) => (f(), _(Z(e.value),
|
|
2825
|
-
key: `item_${r}_${a.value}
|
|
2827
|
+
(f(!0), A(q, null, te(t.options, (a, r) => (f(), _(Z(e.value), O({
|
|
2828
|
+
key: `item_${r}_${a.value}`,
|
|
2829
|
+
ref_for: !0
|
|
2826
2830
|
}, a), {
|
|
2827
2831
|
default: y(() => [
|
|
2828
|
-
|
|
2832
|
+
U(L(a.label), 1)
|
|
2829
2833
|
]),
|
|
2830
2834
|
_: 2
|
|
2831
2835
|
}, 1040))), 128))
|
|
@@ -2841,14 +2845,14 @@ const fo = /* @__PURE__ */ R({
|
|
|
2841
2845
|
}
|
|
2842
2846
|
},
|
|
2843
2847
|
text: {
|
|
2844
|
-
component:
|
|
2848
|
+
component: ye,
|
|
2845
2849
|
props: {
|
|
2846
2850
|
clearable: !0
|
|
2847
2851
|
},
|
|
2848
2852
|
defaultValue: ""
|
|
2849
2853
|
},
|
|
2850
2854
|
textarea: {
|
|
2851
|
-
component:
|
|
2855
|
+
component: ye,
|
|
2852
2856
|
props: {
|
|
2853
2857
|
type: "textarea",
|
|
2854
2858
|
rows: 2
|
|
@@ -3023,7 +3027,7 @@ async function vo(o, t) {
|
|
|
3023
3027
|
return e ? typeof e == "function" ? await e(t) || [] : e : [];
|
|
3024
3028
|
}
|
|
3025
3029
|
function yo(o, t, e, n, s) {
|
|
3026
|
-
const a = D([]), r = C(() => !n || !s ? {} : C0(o.cascader).reduce((d, u) => (d[u] =
|
|
3030
|
+
const a = D([]), r = C(() => !n || !s ? {} : C0(o.cascader).reduce((d, u) => (d[u] = Ge(s, u), d), {}));
|
|
3027
3031
|
return G(
|
|
3028
3032
|
r,
|
|
3029
3033
|
async (i) => {
|
|
@@ -3075,7 +3079,7 @@ const bo = {
|
|
|
3075
3079
|
props: ho,
|
|
3076
3080
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
3077
3081
|
setup(o, { expose: t, emit: e }) {
|
|
3078
|
-
const n = o, s = e, a =
|
|
3082
|
+
const n = o, s = e, a = xe(A0, null), r = xe(_n, null), l = xe(P0, null), i = C(() => !a?.proxy || !l ? n.visible : typeof n.visible == "function" ? n.visible(l) : Mt(n.visible) ? Object.entries(n.visible).every(([H, K]) => Ge(l, H) === K) : n.visible), d = () => a?.proxy && l && n.name ? Ge(l, n.name) ?? n.modelValue : n.modelValue, u = D(d()), { editor: p } = yo(
|
|
3079
3083
|
n,
|
|
3080
3084
|
s,
|
|
3081
3085
|
i,
|
|
@@ -3109,7 +3113,7 @@ const bo = {
|
|
|
3109
3113
|
return G(u, (k, H) => {
|
|
3110
3114
|
i.value && !Bt(k, H) && (s("update:modelValue", k), a?.proxy && l && n.name && pt(l, n.name, k));
|
|
3111
3115
|
}), G(
|
|
3112
|
-
() => !a?.proxy || !n.name || !l ? n.modelValue :
|
|
3116
|
+
() => !a?.proxy || !n.name || !l ? n.modelValue : Ge(l, n.name) ?? n.modelValue,
|
|
3113
3117
|
(k) => {
|
|
3114
3118
|
i.value && (u.value = k);
|
|
3115
3119
|
},
|
|
@@ -3134,7 +3138,7 @@ const bo = {
|
|
|
3134
3138
|
blur: () => {
|
|
3135
3139
|
m.value?.foucs && m.value.blur();
|
|
3136
3140
|
}
|
|
3137
|
-
}), (k, H) => i.value ? (f(), _(c(Cn),
|
|
3141
|
+
}), (k, H) => i.value ? (f(), _(c(Cn), O({
|
|
3138
3142
|
key: 0,
|
|
3139
3143
|
class: ["x-field", z.value],
|
|
3140
3144
|
ref_key: "itemRef",
|
|
@@ -3143,19 +3147,19 @@ const bo = {
|
|
|
3143
3147
|
label: k.label,
|
|
3144
3148
|
size: g.value,
|
|
3145
3149
|
style: E.value
|
|
3146
|
-
}, k.$attrs),
|
|
3150
|
+
}, k.$attrs), ve({
|
|
3147
3151
|
error: y(({ error: K }) => [
|
|
3148
3152
|
P(k.$slots, "error", { error: K }, () => [
|
|
3149
3153
|
c(a)?.props.tooltipMessage ?? n.tooltipMessage ? (f(), A("div", {
|
|
3150
3154
|
key: 0,
|
|
3151
3155
|
class: "x-field__info",
|
|
3152
|
-
style:
|
|
3156
|
+
style: we(h.value)
|
|
3153
3157
|
}, [
|
|
3154
|
-
S(c(r0),
|
|
3158
|
+
S(c(r0), O({
|
|
3155
3159
|
content: M(K)
|
|
3156
3160
|
}, b.value), {
|
|
3157
3161
|
default: y(() => [
|
|
3158
|
-
S(c(
|
|
3162
|
+
S(c(ge), {
|
|
3159
3163
|
class: "x-field__trigger",
|
|
3160
3164
|
icon: c(jn),
|
|
3161
3165
|
size: g.value
|
|
@@ -3171,14 +3175,14 @@ const bo = {
|
|
|
3171
3175
|
class: W(["x-field__editor_wrap", { "is-inline": n.inline }])
|
|
3172
3176
|
}, [
|
|
3173
3177
|
P(k.$slots, "editor", { editor: w.value }, () => [
|
|
3174
|
-
c(p).component ? (f(), _(Z(c(p).component),
|
|
3178
|
+
c(p).component ? (f(), _(Z(c(p).component), O({
|
|
3175
3179
|
key: 0,
|
|
3176
3180
|
class: "x-field__editor",
|
|
3177
3181
|
ref_key: "editorRef",
|
|
3178
3182
|
ref: m,
|
|
3179
3183
|
modelValue: u.value,
|
|
3180
3184
|
"onUpdate:modelValue": H[0] || (H[0] = (K) => u.value = K)
|
|
3181
|
-
}, c(p).props),
|
|
3185
|
+
}, c(p).props), ve({ _: 2 }, [
|
|
3182
3186
|
k.$slots.option ? {
|
|
3183
3187
|
name: "option",
|
|
3184
3188
|
fn: y(({ option: K }) => [
|
|
@@ -3190,7 +3194,7 @@ const bo = {
|
|
|
3190
3194
|
]),
|
|
3191
3195
|
n.tip || k.$slots.tip ? (f(), A("div", wo, [
|
|
3192
3196
|
P(k.$slots, "tip", {}, () => [
|
|
3193
|
-
|
|
3197
|
+
U(L(n.tip), 1)
|
|
3194
3198
|
])
|
|
3195
3199
|
])) : x("", !0)
|
|
3196
3200
|
], 2),
|
|
@@ -3269,18 +3273,18 @@ const bo = {
|
|
|
3269
3273
|
props: Co,
|
|
3270
3274
|
emits: ["change", "submit", "reset"],
|
|
3271
3275
|
setup(o, { expose: t, emit: e }) {
|
|
3272
|
-
const n = o, s = e, a =
|
|
3273
|
-
|
|
3276
|
+
const n = o, s = e, a = be(), r = D(), l = st(n.model || {}), i = D(!1);
|
|
3277
|
+
De(A0, a), De(P0, l), G(
|
|
3274
3278
|
() => n.model,
|
|
3275
3279
|
(p) => {
|
|
3276
3280
|
Object.assign(l, p);
|
|
3277
3281
|
},
|
|
3278
3282
|
{ deep: !0 }
|
|
3279
3283
|
), G(l, () => {
|
|
3280
|
-
s("change",
|
|
3284
|
+
s("change", pe(l));
|
|
3281
3285
|
});
|
|
3282
3286
|
const d = async () => {
|
|
3283
|
-
await r.value.validate().catch(() => !1) && (s("submit",
|
|
3287
|
+
await r.value.validate().catch(() => !1) && (s("submit", pe(l)), n.submitMethod && (i.value = !0, await n.submitMethod(pe(l)), i.value = !1));
|
|
3284
3288
|
}, u = (p) => {
|
|
3285
3289
|
r.value.resetFields(p), s("reset");
|
|
3286
3290
|
};
|
|
@@ -3289,7 +3293,7 @@ const bo = {
|
|
|
3289
3293
|
model: l,
|
|
3290
3294
|
submit: d,
|
|
3291
3295
|
reset: u
|
|
3292
|
-
}), (p, v) => (f(), _(c(kn),
|
|
3296
|
+
}), (p, v) => (f(), _(c(kn), O({
|
|
3293
3297
|
ref_key: "formRef",
|
|
3294
3298
|
ref: r,
|
|
3295
3299
|
class: "x-form",
|
|
@@ -3309,24 +3313,24 @@ const bo = {
|
|
|
3309
3313
|
}, {
|
|
3310
3314
|
editor: y(() => [
|
|
3311
3315
|
P(p.$slots, "footer", {}, () => [
|
|
3312
|
-
n.submitText ? (f(), _(c(
|
|
3316
|
+
n.submitText ? (f(), _(c(de), {
|
|
3313
3317
|
key: 0,
|
|
3314
3318
|
loading: i.value,
|
|
3315
3319
|
type: "primary",
|
|
3316
3320
|
onClick: d
|
|
3317
3321
|
}, {
|
|
3318
3322
|
default: y(() => [
|
|
3319
|
-
|
|
3323
|
+
U(L(n.submitText), 1)
|
|
3320
3324
|
]),
|
|
3321
3325
|
_: 1
|
|
3322
3326
|
}, 8, ["loading"])) : x("", !0),
|
|
3323
|
-
n.resetText ? (f(), _(c(
|
|
3327
|
+
n.resetText ? (f(), _(c(de), {
|
|
3324
3328
|
key: 1,
|
|
3325
3329
|
type: "default",
|
|
3326
3330
|
onClick: v[0] || (v[0] = () => u())
|
|
3327
3331
|
}, {
|
|
3328
3332
|
default: y(() => [
|
|
3329
|
-
|
|
3333
|
+
U(L(n.resetText), 1)
|
|
3330
3334
|
]),
|
|
3331
3335
|
_: 1
|
|
3332
3336
|
})) : x("", !0),
|
|
@@ -3397,7 +3401,7 @@ const bo = {
|
|
|
3397
3401
|
$vtjEl: l,
|
|
3398
3402
|
formRef: a,
|
|
3399
3403
|
dialogRef: r
|
|
3400
|
-
}), (m, g) => (f(), _(c(T0),
|
|
3404
|
+
}), (m, g) => (f(), _(c(T0), O({
|
|
3401
3405
|
ref_key: "dialogRef",
|
|
3402
3406
|
ref: r,
|
|
3403
3407
|
class: "x-dialog-form",
|
|
@@ -3409,9 +3413,9 @@ const bo = {
|
|
|
3409
3413
|
onClose: d,
|
|
3410
3414
|
minimizable: !1,
|
|
3411
3415
|
maximizable: !1
|
|
3412
|
-
}, m.$attrs),
|
|
3416
|
+
}, m.$attrs), ve({
|
|
3413
3417
|
default: y(() => [
|
|
3414
|
-
S(c(ko),
|
|
3418
|
+
S(c(ko), O({
|
|
3415
3419
|
ref_key: "formRef",
|
|
3416
3420
|
ref: a,
|
|
3417
3421
|
class: "x-dialog-form__form",
|
|
@@ -3496,27 +3500,29 @@ const bo = {
|
|
|
3496
3500
|
}, l = (i) => {
|
|
3497
3501
|
n("actionCommand", i);
|
|
3498
3502
|
};
|
|
3499
|
-
return (i, d) => (f(), _(c(u0),
|
|
3503
|
+
return (i, d) => (f(), _(c(u0), O({
|
|
3500
3504
|
class: ["x-tabs", a.value]
|
|
3501
3505
|
}, i.$attrs), {
|
|
3502
3506
|
default: y(() => [
|
|
3503
|
-
(f(!0), A(q, null, te(e.items, (u) => (f(), _(c(_t),
|
|
3504
|
-
key: u.value ?? u.name
|
|
3507
|
+
(f(!0), A(q, null, te(e.items, (u) => (f(), _(c(_t), O({
|
|
3508
|
+
key: u.value ?? u.name,
|
|
3509
|
+
ref_for: !0
|
|
3505
3510
|
}, s(u)), {
|
|
3506
3511
|
label: y(() => [
|
|
3507
|
-
P(i.$slots, "label",
|
|
3508
|
-
u.icon ? (f(), _(Z(c(
|
|
3512
|
+
P(i.$slots, "label", O({ ref_for: !0 }, u), () => [
|
|
3513
|
+
u.icon ? (f(), _(Z(c(Ee)(u.icon)), {
|
|
3509
3514
|
key: 0,
|
|
3510
3515
|
class: "x-tabs__icon"
|
|
3511
3516
|
})) : x("", !0),
|
|
3512
3517
|
F("div", zo, [
|
|
3513
|
-
|
|
3518
|
+
U(L(u.label) + " ", 1),
|
|
3514
3519
|
u.actions && [u.name, u.value].includes(i.$attrs.modelValue) ? (f(), A("div", Eo, [
|
|
3515
|
-
(f(!0), A(q, null, te(u.actions, (p) => (f(), _(c(ae),
|
|
3520
|
+
(f(!0), A(q, null, te(u.actions, (p) => (f(), _(c(ae), O({
|
|
3516
3521
|
mode: "icon",
|
|
3517
3522
|
type: "primary",
|
|
3518
3523
|
size: "small",
|
|
3519
|
-
circle: ""
|
|
3524
|
+
circle: "",
|
|
3525
|
+
ref_for: !0
|
|
3520
3526
|
}, p, {
|
|
3521
3527
|
onClick: r,
|
|
3522
3528
|
onCommand: l
|
|
@@ -3526,8 +3532,11 @@ const bo = {
|
|
|
3526
3532
|
])
|
|
3527
3533
|
]),
|
|
3528
3534
|
default: y(() => [
|
|
3529
|
-
P(i.$slots, "default",
|
|
3530
|
-
u.component ? (f(), _(Z(u.component),
|
|
3535
|
+
P(i.$slots, "default", O({ ref_for: !0 }, u), () => [
|
|
3536
|
+
u.component ? (f(), _(Z(u.component), O({
|
|
3537
|
+
key: 0,
|
|
3538
|
+
ref_for: !0
|
|
3539
|
+
}, u.props), null, 16)) : x("", !0)
|
|
3531
3540
|
])
|
|
3532
3541
|
]),
|
|
3533
3542
|
_: 2
|
|
@@ -3606,12 +3615,12 @@ const bo = {
|
|
|
3606
3615
|
items: e.actions,
|
|
3607
3616
|
...e.actionBarProps
|
|
3608
3617
|
})), l = () => n("imageClick"), i = () => n("titleClick"), d = (p) => n("actionClick", p), u = (p, v) => n("actionCommand", p, v);
|
|
3609
|
-
return (p, v) => (f(), _(c(
|
|
3618
|
+
return (p, v) => (f(), _(c(j), {
|
|
3610
3619
|
class: W(["x-data-item", a.value]),
|
|
3611
3620
|
direction: e.direction
|
|
3612
3621
|
}, {
|
|
3613
3622
|
default: y(() => [
|
|
3614
|
-
e.imageSrc || p.$slots.image ? (f(), _(c(
|
|
3623
|
+
e.imageSrc || p.$slots.image ? (f(), _(c(j), {
|
|
3615
3624
|
key: 0,
|
|
3616
3625
|
class: "x-data-item__img",
|
|
3617
3626
|
autoPointer: !0,
|
|
@@ -3621,21 +3630,21 @@ const bo = {
|
|
|
3621
3630
|
P(p.$slots, "image", {}, () => [
|
|
3622
3631
|
e.imageSrc ? (f(), _(c(xn), {
|
|
3623
3632
|
key: 0,
|
|
3624
|
-
style:
|
|
3633
|
+
style: we(s.value),
|
|
3625
3634
|
src: e.imageSrc
|
|
3626
3635
|
}, null, 8, ["style", "src"])) : x("", !0)
|
|
3627
3636
|
])
|
|
3628
3637
|
]),
|
|
3629
3638
|
_: 3
|
|
3630
3639
|
}, 8, ["onClick"])) : x("", !0),
|
|
3631
|
-
S(c(
|
|
3640
|
+
S(c(j), {
|
|
3632
3641
|
class: "x-data-item__content",
|
|
3633
3642
|
direction: "column",
|
|
3634
3643
|
grow: "",
|
|
3635
3644
|
shrink: ""
|
|
3636
3645
|
}, {
|
|
3637
3646
|
default: y(() => [
|
|
3638
|
-
e.title || p.$slots.title ? (f(), _(c(
|
|
3647
|
+
e.title || p.$slots.title ? (f(), _(c(j), {
|
|
3639
3648
|
key: 0,
|
|
3640
3649
|
class: "x-data-item__section x-data-item__wrapper",
|
|
3641
3650
|
align: "center",
|
|
@@ -3643,13 +3652,13 @@ const bo = {
|
|
|
3643
3652
|
onClick: e.onTitleClick ? i : void 0
|
|
3644
3653
|
}, {
|
|
3645
3654
|
default: y(() => [
|
|
3646
|
-
e.icon ? (f(), _(Z(c(
|
|
3655
|
+
e.icon ? (f(), _(Z(c(Ee)(e.icon)), {
|
|
3647
3656
|
key: 0,
|
|
3648
3657
|
class: "x-data-item__icon"
|
|
3649
3658
|
})) : x("", !0),
|
|
3650
3659
|
F("span", $o, [
|
|
3651
3660
|
P(p.$slots, "title", {}, () => [
|
|
3652
|
-
|
|
3661
|
+
U(L(e.title), 1)
|
|
3653
3662
|
])
|
|
3654
3663
|
])
|
|
3655
3664
|
]),
|
|
@@ -3657,7 +3666,7 @@ const bo = {
|
|
|
3657
3666
|
}, 8, ["onClick"])) : x("", !0),
|
|
3658
3667
|
e.description || p.$slots.description ? (f(), A("div", Bo, [
|
|
3659
3668
|
P(p.$slots, "description", {}, () => [
|
|
3660
|
-
|
|
3669
|
+
U(L(e.description), 1)
|
|
3661
3670
|
])
|
|
3662
3671
|
])) : x("", !0),
|
|
3663
3672
|
p.$slots.default ? (f(), A("div", Mo, [
|
|
@@ -3665,7 +3674,7 @@ const bo = {
|
|
|
3665
3674
|
])) : x("", !0),
|
|
3666
3675
|
e.actions || e.actionBarProps || p.$slots.actions ? (f(), A("div", Io, [
|
|
3667
3676
|
P(p.$slots, "actions", {}, () => [
|
|
3668
|
-
S(c(Vt),
|
|
3677
|
+
S(c(Vt), O(r.value, {
|
|
3669
3678
|
onClick: d,
|
|
3670
3679
|
onCommand: u
|
|
3671
3680
|
}), null, 16)
|
|
@@ -3695,11 +3704,11 @@ function Po() {
|
|
|
3695
3704
|
return import("echarts");
|
|
3696
3705
|
}
|
|
3697
3706
|
function Vo(o, t) {
|
|
3698
|
-
const e = D(), n =
|
|
3707
|
+
const e = D(), n = Je();
|
|
3699
3708
|
return a0(async () => {
|
|
3700
3709
|
n.value = await Po();
|
|
3701
3710
|
const s = c(o);
|
|
3702
|
-
s && (e.value || (e.value =
|
|
3711
|
+
s && (e.value || (e.value = me(n.value.init(s))), e.value && e.value.setOption(t.option || {}));
|
|
3703
3712
|
}), Et(() => {
|
|
3704
3713
|
e.value && e.value.dispose();
|
|
3705
3714
|
}), G(
|
|
@@ -3734,7 +3743,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
3734
3743
|
}), (l, i) => (f(), A("div", {
|
|
3735
3744
|
ref_key: "chartRef",
|
|
3736
3745
|
ref: n,
|
|
3737
|
-
style:
|
|
3746
|
+
style: we(r.value)
|
|
3738
3747
|
}, null, 4));
|
|
3739
3748
|
}
|
|
3740
3749
|
}), Do = {
|
|
@@ -3843,52 +3852,54 @@ const Fa = /* @__PURE__ */ R({
|
|
|
3843
3852
|
getKey: w
|
|
3844
3853
|
}), (T, V) => (f(), A("div", {
|
|
3845
3854
|
class: W(["x-list", v.value]),
|
|
3846
|
-
style:
|
|
3855
|
+
style: we(p.value)
|
|
3847
3856
|
}, [
|
|
3848
3857
|
!c(r).total && !c(l) ? P(T.$slots, "empty", { key: 0 }, () => [
|
|
3849
3858
|
S(c(c0))
|
|
3850
3859
|
]) : x("", !0),
|
|
3851
|
-
F("div",
|
|
3852
|
-
n.itemHeight ? ee((f(), A("div",
|
|
3860
|
+
F("div", O({ class: "x-list__content" }, c(M)), [
|
|
3861
|
+
n.itemHeight ? ee((f(), A("div", O({
|
|
3853
3862
|
key: 0,
|
|
3854
3863
|
class: "x-list__wrapper",
|
|
3855
3864
|
ref_key: "wrapperRef",
|
|
3856
3865
|
ref: u
|
|
3857
3866
|
}, { ...c(z), ...m.value }), [
|
|
3858
|
-
(f(!0), A(q, null, te(c(b), (k, H) => P(T.$slots, "default",
|
|
3859
|
-
key: w(k.data)
|
|
3860
|
-
|
|
3867
|
+
(f(!0), A(q, null, te(c(b), (k, H) => P(T.$slots, "default", O({
|
|
3868
|
+
key: w(k.data),
|
|
3869
|
+
ref_for: !0
|
|
3870
|
+
}, { item: k.data, index: H }), () => [
|
|
3861
3871
|
F("div", null, L(k), 1)
|
|
3862
3872
|
])), 128)),
|
|
3863
3873
|
c(l) ? (f(), A("div", No, [
|
|
3864
3874
|
P(T.$slots, "loading", {}, () => [
|
|
3865
|
-
|
|
3875
|
+
U(" 正在加载数据... ")
|
|
3866
3876
|
])
|
|
3867
3877
|
])) : x("", !0),
|
|
3868
3878
|
d.value ? (f(), A("div", Fo, [
|
|
3869
3879
|
P(T.$slots, "nomore", {}, () => [
|
|
3870
|
-
|
|
3880
|
+
U(" 没有更多数据 ")
|
|
3871
3881
|
])
|
|
3872
3882
|
])) : x("", !0)
|
|
3873
3883
|
], 16)), [
|
|
3874
3884
|
[c(Kt), h]
|
|
3875
|
-
]) : ee((f(), A("div",
|
|
3885
|
+
]) : ee((f(), A("div", O({
|
|
3876
3886
|
key: 1,
|
|
3877
3887
|
class: "x-list__wrapper"
|
|
3878
3888
|
}, m.value), [
|
|
3879
|
-
(f(!0), A(q, null, te(c(r).list, (k, H) => P(T.$slots, "default",
|
|
3880
|
-
key: w(k)
|
|
3881
|
-
|
|
3889
|
+
(f(!0), A(q, null, te(c(r).list, (k, H) => P(T.$slots, "default", O({
|
|
3890
|
+
key: w(k),
|
|
3891
|
+
ref_for: !0
|
|
3892
|
+
}, { item: k, index: H }), () => [
|
|
3882
3893
|
F("div", null, L(k), 1)
|
|
3883
3894
|
])), 128)),
|
|
3884
3895
|
c(l) ? (f(), A("div", Ro, [
|
|
3885
3896
|
P(T.$slots, "loading", {}, () => [
|
|
3886
|
-
|
|
3897
|
+
U(" 正在加载数据... ")
|
|
3887
3898
|
])
|
|
3888
3899
|
])) : x("", !0),
|
|
3889
3900
|
d.value ? (f(), A("div", Lo, [
|
|
3890
3901
|
P(T.$slots, "nomore", {}, () => [
|
|
3891
|
-
|
|
3902
|
+
U(" 没有更多数据 ")
|
|
3892
3903
|
])
|
|
3893
3904
|
])) : x("", !0)
|
|
3894
3905
|
], 16)), [
|
|
@@ -3896,7 +3907,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
3896
3907
|
])
|
|
3897
3908
|
], 16),
|
|
3898
3909
|
n.pager ? (f(), A("div", Ho, [
|
|
3899
|
-
S(c(Sn),
|
|
3910
|
+
S(c(Sn), O({
|
|
3900
3911
|
small: "",
|
|
3901
3912
|
background: "",
|
|
3902
3913
|
layout: "prev, pager, next",
|
|
@@ -3945,7 +3956,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
3945
3956
|
]),
|
|
3946
3957
|
F("div", Go, L(t.tagline), 1),
|
|
3947
3958
|
F("div", Yo, [
|
|
3948
|
-
S(c(
|
|
3959
|
+
S(c(de), {
|
|
3949
3960
|
type: "primary",
|
|
3950
3961
|
size: "large",
|
|
3951
3962
|
round: "",
|
|
@@ -3953,7 +3964,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
3953
3964
|
onClick: e
|
|
3954
3965
|
}, {
|
|
3955
3966
|
default: y(() => [
|
|
3956
|
-
|
|
3967
|
+
U(L(t.actionText), 1)
|
|
3957
3968
|
]),
|
|
3958
3969
|
_: 1
|
|
3959
3970
|
}, 8, ["icon"])
|
|
@@ -4013,11 +4024,11 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4013
4024
|
s("update:syncProp", m);
|
|
4014
4025
|
}
|
|
4015
4026
|
}), i = D("default inner data"), d = () => {
|
|
4016
|
-
|
|
4027
|
+
qe.info({
|
|
4017
4028
|
message: "触发click事件"
|
|
4018
4029
|
}), s("click", n);
|
|
4019
4030
|
}, u = () => {
|
|
4020
|
-
|
|
4031
|
+
qe.info({
|
|
4021
4032
|
message: "触发submit事件"
|
|
4022
4033
|
}), s("submit", n);
|
|
4023
4034
|
}, p = (m) => {
|
|
@@ -4030,7 +4041,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4030
4041
|
submit: u,
|
|
4031
4042
|
data: i,
|
|
4032
4043
|
change: p
|
|
4033
|
-
}), (m, g) => (f(), _(c(
|
|
4044
|
+
}), (m, g) => (f(), _(c(Ye), {
|
|
4034
4045
|
class: "x-test",
|
|
4035
4046
|
header: "VTJ 低代码测试组件",
|
|
4036
4047
|
border: ""
|
|
@@ -4038,19 +4049,19 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4038
4049
|
default: y(() => [
|
|
4039
4050
|
S(c(ue), null, {
|
|
4040
4051
|
default: y(() => [
|
|
4041
|
-
|
|
4052
|
+
U("内部数据")
|
|
4042
4053
|
]),
|
|
4043
4054
|
_: 1
|
|
4044
4055
|
}),
|
|
4045
|
-
S(c(
|
|
4056
|
+
S(c(j), null, {
|
|
4046
4057
|
default: y(() => [
|
|
4047
|
-
|
|
4058
|
+
U(L(i.value), 1)
|
|
4048
4059
|
]),
|
|
4049
4060
|
_: 1
|
|
4050
4061
|
}),
|
|
4051
4062
|
S(c(ue), null, {
|
|
4052
4063
|
default: y(() => [
|
|
4053
|
-
|
|
4064
|
+
U("属性")
|
|
4054
4065
|
]),
|
|
4055
4066
|
_: 1
|
|
4056
4067
|
}),
|
|
@@ -4070,17 +4081,17 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4070
4081
|
}),
|
|
4071
4082
|
S(c(ue), null, {
|
|
4072
4083
|
default: y(() => [
|
|
4073
|
-
|
|
4084
|
+
U("插槽")
|
|
4074
4085
|
]),
|
|
4075
4086
|
_: 1
|
|
4076
4087
|
}),
|
|
4077
|
-
S(c(
|
|
4088
|
+
S(c(j), {
|
|
4078
4089
|
justify: "space-around",
|
|
4079
4090
|
flex: "",
|
|
4080
4091
|
gap: ""
|
|
4081
4092
|
}, {
|
|
4082
4093
|
default: y(() => [
|
|
4083
|
-
S(c(
|
|
4094
|
+
S(c(Ye), {
|
|
4084
4095
|
header: "default",
|
|
4085
4096
|
grow: "",
|
|
4086
4097
|
card: ""
|
|
@@ -4097,7 +4108,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4097
4108
|
]),
|
|
4098
4109
|
_: 3
|
|
4099
4110
|
}),
|
|
4100
|
-
S(c(
|
|
4111
|
+
S(c(Ye), {
|
|
4101
4112
|
header: "extra",
|
|
4102
4113
|
grow: "",
|
|
4103
4114
|
card: ""
|
|
@@ -4119,11 +4130,11 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4119
4130
|
}),
|
|
4120
4131
|
S(c(ue), null, {
|
|
4121
4132
|
default: y(() => [
|
|
4122
|
-
|
|
4133
|
+
U("双向绑定")
|
|
4123
4134
|
]),
|
|
4124
4135
|
_: 1
|
|
4125
4136
|
}),
|
|
4126
|
-
S(c(
|
|
4137
|
+
S(c(j), null, {
|
|
4127
4138
|
default: y(() => [
|
|
4128
4139
|
S(c(Xt), {
|
|
4129
4140
|
column: 2,
|
|
@@ -4132,7 +4143,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4132
4143
|
default: y(() => [
|
|
4133
4144
|
S(c(dt), { label: "modelValue" }, {
|
|
4134
4145
|
default: y(() => [
|
|
4135
|
-
S(c(
|
|
4146
|
+
S(c(ye), {
|
|
4136
4147
|
modelValue: r.value,
|
|
4137
4148
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => r.value = b)
|
|
4138
4149
|
}, null, 8, ["modelValue"])
|
|
@@ -4141,7 +4152,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4141
4152
|
}),
|
|
4142
4153
|
S(c(dt), { label: "syncProp" }, {
|
|
4143
4154
|
default: y(() => [
|
|
4144
|
-
S(c(
|
|
4155
|
+
S(c(ye), {
|
|
4145
4156
|
modelValue: l.value,
|
|
4146
4157
|
"onUpdate:modelValue": g[1] || (g[1] = (b) => l.value = b)
|
|
4147
4158
|
}, null, 8, ["modelValue"])
|
|
@@ -4156,27 +4167,27 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4156
4167
|
}),
|
|
4157
4168
|
S(c(ue), null, {
|
|
4158
4169
|
default: y(() => [
|
|
4159
|
-
|
|
4170
|
+
U("事件和方法")
|
|
4160
4171
|
]),
|
|
4161
4172
|
_: 1
|
|
4162
4173
|
}),
|
|
4163
|
-
S(c(
|
|
4174
|
+
S(c(j), null, {
|
|
4164
4175
|
default: y(() => [
|
|
4165
|
-
S(c(
|
|
4176
|
+
S(c(de), { onClick: d }, {
|
|
4166
4177
|
default: y(() => [
|
|
4167
|
-
|
|
4178
|
+
U("click")
|
|
4168
4179
|
]),
|
|
4169
4180
|
_: 1
|
|
4170
4181
|
}),
|
|
4171
|
-
S(c(
|
|
4182
|
+
S(c(de), { onClick: u }, {
|
|
4172
4183
|
default: y(() => [
|
|
4173
|
-
|
|
4184
|
+
U("submit")
|
|
4174
4185
|
]),
|
|
4175
4186
|
_: 1
|
|
4176
4187
|
}),
|
|
4177
|
-
S(c(
|
|
4188
|
+
S(c(de), { onClick: v }, {
|
|
4178
4189
|
default: y(() => [
|
|
4179
|
-
|
|
4190
|
+
U("change")
|
|
4180
4191
|
]),
|
|
4181
4192
|
_: 1
|
|
4182
4193
|
})
|
|
@@ -4257,17 +4268,17 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4257
4268
|
return t({
|
|
4258
4269
|
parser: u,
|
|
4259
4270
|
formatValue: d
|
|
4260
|
-
}), (g, b) => (f(), _(c(
|
|
4271
|
+
}), (g, b) => (f(), _(c(ye), {
|
|
4261
4272
|
modelValue: i.value,
|
|
4262
4273
|
"onUpdate:modelValue": b[1] || (b[1] = (M) => i.value = M),
|
|
4263
4274
|
modelModifiers: { trim: !0 },
|
|
4264
4275
|
class: "x-input-unit",
|
|
4265
4276
|
onChange: v
|
|
4266
|
-
},
|
|
4277
|
+
}, ve({ _: 2 }, [
|
|
4267
4278
|
a.value.length ? {
|
|
4268
4279
|
name: "append",
|
|
4269
4280
|
fn: y(() => [
|
|
4270
|
-
S(c(p0),
|
|
4281
|
+
S(c(p0), O({
|
|
4271
4282
|
class: "x-input-unit__unit",
|
|
4272
4283
|
modelValue: l.value,
|
|
4273
4284
|
"onUpdate:modelValue": b[0] || (b[0] = (M) => l.value = M),
|
|
@@ -4359,7 +4370,7 @@ const Fa = /* @__PURE__ */ R({
|
|
|
4359
4370
|
default: "二维码已失效请刷新居重试"
|
|
4360
4371
|
}
|
|
4361
4372
|
};
|
|
4362
|
-
var
|
|
4373
|
+
var Fe = {}, es = function() {
|
|
4363
4374
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
4364
4375
|
}, V0 = {}, ne = {};
|
|
4365
4376
|
let Nt;
|
|
@@ -4490,25 +4501,25 @@ D0.prototype = {
|
|
|
4490
4501
|
}
|
|
4491
4502
|
};
|
|
4492
4503
|
var ns = D0;
|
|
4493
|
-
function
|
|
4504
|
+
function Re(o) {
|
|
4494
4505
|
if (!o || o < 1)
|
|
4495
4506
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
4496
4507
|
this.size = o, this.data = new Uint8Array(o * o), this.reservedBit = new Uint8Array(o * o);
|
|
4497
4508
|
}
|
|
4498
|
-
|
|
4509
|
+
Re.prototype.set = function(o, t, e, n) {
|
|
4499
4510
|
const s = o * this.size + t;
|
|
4500
4511
|
this.data[s] = e, n && (this.reservedBit[s] = !0);
|
|
4501
4512
|
};
|
|
4502
|
-
|
|
4513
|
+
Re.prototype.get = function(o, t) {
|
|
4503
4514
|
return this.data[o * this.size + t];
|
|
4504
4515
|
};
|
|
4505
|
-
|
|
4516
|
+
Re.prototype.xor = function(o, t, e) {
|
|
4506
4517
|
this.data[o * this.size + t] ^= e;
|
|
4507
4518
|
};
|
|
4508
|
-
|
|
4519
|
+
Re.prototype.isReserved = function(o, t) {
|
|
4509
4520
|
return this.reservedBit[o * this.size + t];
|
|
4510
4521
|
};
|
|
4511
|
-
var os =
|
|
4522
|
+
var os = Re, N0 = {};
|
|
4512
4523
|
(function(o) {
|
|
4513
4524
|
const t = ne.getSymbolSize;
|
|
4514
4525
|
o.getRowColCoords = function(n) {
|
|
@@ -4639,7 +4650,7 @@ var R0 = {};
|
|
|
4639
4650
|
};
|
|
4640
4651
|
})(R0);
|
|
4641
4652
|
var it = {};
|
|
4642
|
-
const
|
|
4653
|
+
const fe = at, je = [
|
|
4643
4654
|
// L M Q H
|
|
4644
4655
|
1,
|
|
4645
4656
|
1,
|
|
@@ -4801,7 +4812,7 @@ const me = at, Ke = [
|
|
|
4801
4812
|
49,
|
|
4802
4813
|
68,
|
|
4803
4814
|
81
|
|
4804
|
-
],
|
|
4815
|
+
], Ue = [
|
|
4805
4816
|
// L M Q H
|
|
4806
4817
|
7,
|
|
4807
4818
|
10,
|
|
@@ -4966,51 +4977,51 @@ const me = at, Ke = [
|
|
|
4966
4977
|
];
|
|
4967
4978
|
it.getBlocksCount = function(t, e) {
|
|
4968
4979
|
switch (e) {
|
|
4969
|
-
case
|
|
4970
|
-
return
|
|
4971
|
-
case
|
|
4972
|
-
return
|
|
4973
|
-
case
|
|
4974
|
-
return
|
|
4975
|
-
case
|
|
4976
|
-
return
|
|
4980
|
+
case fe.L:
|
|
4981
|
+
return je[(t - 1) * 4 + 0];
|
|
4982
|
+
case fe.M:
|
|
4983
|
+
return je[(t - 1) * 4 + 1];
|
|
4984
|
+
case fe.Q:
|
|
4985
|
+
return je[(t - 1) * 4 + 2];
|
|
4986
|
+
case fe.H:
|
|
4987
|
+
return je[(t - 1) * 4 + 3];
|
|
4977
4988
|
default:
|
|
4978
4989
|
return;
|
|
4979
4990
|
}
|
|
4980
4991
|
};
|
|
4981
4992
|
it.getTotalCodewordsCount = function(t, e) {
|
|
4982
4993
|
switch (e) {
|
|
4983
|
-
case
|
|
4984
|
-
return
|
|
4985
|
-
case
|
|
4986
|
-
return
|
|
4987
|
-
case
|
|
4988
|
-
return
|
|
4989
|
-
case
|
|
4990
|
-
return
|
|
4994
|
+
case fe.L:
|
|
4995
|
+
return Ue[(t - 1) * 4 + 0];
|
|
4996
|
+
case fe.M:
|
|
4997
|
+
return Ue[(t - 1) * 4 + 1];
|
|
4998
|
+
case fe.Q:
|
|
4999
|
+
return Ue[(t - 1) * 4 + 2];
|
|
5000
|
+
case fe.H:
|
|
5001
|
+
return Ue[(t - 1) * 4 + 3];
|
|
4991
5002
|
default:
|
|
4992
5003
|
return;
|
|
4993
5004
|
}
|
|
4994
5005
|
};
|
|
4995
5006
|
var L0 = {}, lt = {};
|
|
4996
|
-
const
|
|
5007
|
+
const Ve = new Uint8Array(512), Ze = new Uint8Array(256);
|
|
4997
5008
|
(function() {
|
|
4998
5009
|
let t = 1;
|
|
4999
5010
|
for (let e = 0; e < 255; e++)
|
|
5000
|
-
|
|
5011
|
+
Ve[e] = t, Ze[t] = e, t <<= 1, t & 256 && (t ^= 285);
|
|
5001
5012
|
for (let e = 255; e < 512; e++)
|
|
5002
|
-
|
|
5013
|
+
Ve[e] = Ve[e - 255];
|
|
5003
5014
|
})();
|
|
5004
5015
|
lt.log = function(t) {
|
|
5005
5016
|
if (t < 1)
|
|
5006
5017
|
throw new Error("log(" + t + ")");
|
|
5007
|
-
return
|
|
5018
|
+
return Ze[t];
|
|
5008
5019
|
};
|
|
5009
5020
|
lt.exp = function(t) {
|
|
5010
|
-
return
|
|
5021
|
+
return Ve[t];
|
|
5011
5022
|
};
|
|
5012
5023
|
lt.mul = function(t, e) {
|
|
5013
|
-
return t === 0 || e === 0 ? 0 :
|
|
5024
|
+
return t === 0 || e === 0 ? 0 : Ve[Ze[t] + Ze[e]];
|
|
5014
5025
|
};
|
|
5015
5026
|
(function(o) {
|
|
5016
5027
|
const t = lt;
|
|
@@ -5058,22 +5069,22 @@ Ft.prototype.encode = function(t) {
|
|
|
5058
5069
|
}
|
|
5059
5070
|
return n;
|
|
5060
5071
|
};
|
|
5061
|
-
var as = Ft, O0 = {},
|
|
5072
|
+
var as = Ft, O0 = {}, he = {}, Rt = {};
|
|
5062
5073
|
Rt.isValid = function(t) {
|
|
5063
5074
|
return !isNaN(t) && t >= 1 && t <= 40;
|
|
5064
5075
|
};
|
|
5065
5076
|
var ie = {};
|
|
5066
5077
|
const j0 = "[0-9]+", is = "[A-Z $%*+\\-./:]+";
|
|
5067
|
-
let
|
|
5068
|
-
|
|
5069
|
-
const ls = "(?:(?![A-Z0-9 $%*+\\-./:]|" +
|
|
5078
|
+
let Ne = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
5079
|
+
Ne = Ne.replace(/u/g, "\\u");
|
|
5080
|
+
const ls = "(?:(?![A-Z0-9 $%*+\\-./:]|" + Ne + `)(?:.|[\r
|
|
5070
5081
|
]))+`;
|
|
5071
|
-
ie.KANJI = new RegExp(
|
|
5082
|
+
ie.KANJI = new RegExp(Ne, "g");
|
|
5072
5083
|
ie.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
5073
5084
|
ie.BYTE = new RegExp(ls, "g");
|
|
5074
5085
|
ie.NUMERIC = new RegExp(j0, "g");
|
|
5075
5086
|
ie.ALPHANUMERIC = new RegExp(is, "g");
|
|
5076
|
-
const rs = new RegExp("^" +
|
|
5087
|
+
const rs = new RegExp("^" + Ne + "$"), cs = new RegExp("^" + j0 + "$"), us = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
5077
5088
|
ie.testKanji = function(t) {
|
|
5078
5089
|
return rs.test(t);
|
|
5079
5090
|
};
|
|
@@ -5143,9 +5154,9 @@ ie.testAlphanumeric = function(t) {
|
|
|
5143
5154
|
return r;
|
|
5144
5155
|
}
|
|
5145
5156
|
};
|
|
5146
|
-
})(
|
|
5157
|
+
})(he);
|
|
5147
5158
|
(function(o) {
|
|
5148
|
-
const t = ne, e = it, n = at, s =
|
|
5159
|
+
const t = ne, e = it, n = at, s = he, a = Rt, r = 7973, l = t.getBCHDigit(r);
|
|
5149
5160
|
function i(v, m, g) {
|
|
5150
5161
|
for (let b = 1; b <= 40; b++)
|
|
5151
5162
|
if (m <= o.getCapacity(b, g, v))
|
|
@@ -5218,28 +5229,28 @@ U0.getEncodedBits = function(t, e) {
|
|
|
5218
5229
|
return (n << 10 | s) ^ ds;
|
|
5219
5230
|
};
|
|
5220
5231
|
var X0 = {};
|
|
5221
|
-
const ps =
|
|
5222
|
-
function
|
|
5232
|
+
const ps = he;
|
|
5233
|
+
function Te(o) {
|
|
5223
5234
|
this.mode = ps.NUMERIC, this.data = o.toString();
|
|
5224
5235
|
}
|
|
5225
|
-
|
|
5236
|
+
Te.getBitsLength = function(t) {
|
|
5226
5237
|
return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0);
|
|
5227
5238
|
};
|
|
5228
|
-
|
|
5239
|
+
Te.prototype.getLength = function() {
|
|
5229
5240
|
return this.data.length;
|
|
5230
5241
|
};
|
|
5231
|
-
|
|
5232
|
-
return
|
|
5242
|
+
Te.prototype.getBitsLength = function() {
|
|
5243
|
+
return Te.getBitsLength(this.data.length);
|
|
5233
5244
|
};
|
|
5234
|
-
|
|
5245
|
+
Te.prototype.write = function(t) {
|
|
5235
5246
|
let e, n, s;
|
|
5236
5247
|
for (e = 0; e + 3 <= this.data.length; e += 3)
|
|
5237
5248
|
n = this.data.substr(e, 3), s = parseInt(n, 10), t.put(s, 10);
|
|
5238
5249
|
const a = this.data.length - e;
|
|
5239
5250
|
a > 0 && (n = this.data.substr(e), s = parseInt(n, 10), t.put(s, a * 3 + 1));
|
|
5240
5251
|
};
|
|
5241
|
-
var fs =
|
|
5242
|
-
const ms =
|
|
5252
|
+
var fs = Te;
|
|
5253
|
+
const ms = he, mt = [
|
|
5243
5254
|
"0",
|
|
5244
5255
|
"1",
|
|
5245
5256
|
"2",
|
|
@@ -5286,19 +5297,19 @@ const ms = ve, mt = [
|
|
|
5286
5297
|
"/",
|
|
5287
5298
|
":"
|
|
5288
5299
|
];
|
|
5289
|
-
function
|
|
5300
|
+
function $e(o) {
|
|
5290
5301
|
this.mode = ms.ALPHANUMERIC, this.data = o;
|
|
5291
5302
|
}
|
|
5292
|
-
|
|
5303
|
+
$e.getBitsLength = function(t) {
|
|
5293
5304
|
return 11 * Math.floor(t / 2) + 6 * (t % 2);
|
|
5294
5305
|
};
|
|
5295
|
-
|
|
5306
|
+
$e.prototype.getLength = function() {
|
|
5296
5307
|
return this.data.length;
|
|
5297
5308
|
};
|
|
5298
|
-
|
|
5299
|
-
return
|
|
5309
|
+
$e.prototype.getBitsLength = function() {
|
|
5310
|
+
return $e.getBitsLength(this.data.length);
|
|
5300
5311
|
};
|
|
5301
|
-
|
|
5312
|
+
$e.prototype.write = function(t) {
|
|
5302
5313
|
let e;
|
|
5303
5314
|
for (e = 0; e + 2 <= this.data.length; e += 2) {
|
|
5304
5315
|
let n = mt.indexOf(this.data[e]) * 45;
|
|
@@ -5306,7 +5317,7 @@ Me.prototype.write = function(t) {
|
|
|
5306
5317
|
}
|
|
5307
5318
|
this.data.length % 2 && t.put(mt.indexOf(this.data[e]), 6);
|
|
5308
5319
|
};
|
|
5309
|
-
var gs =
|
|
5320
|
+
var gs = $e, hs = function(t) {
|
|
5310
5321
|
for (var e = [], n = t.length, s = 0; s < n; s++) {
|
|
5311
5322
|
var a = t.charCodeAt(s);
|
|
5312
5323
|
if (a >= 55296 && a <= 56319 && n > s + 1) {
|
|
@@ -5333,38 +5344,38 @@ var gs = Me, hs = function(t) {
|
|
|
5333
5344
|
}
|
|
5334
5345
|
return new Uint8Array(e).buffer;
|
|
5335
5346
|
};
|
|
5336
|
-
const vs = hs, ys =
|
|
5337
|
-
function
|
|
5347
|
+
const vs = hs, ys = he;
|
|
5348
|
+
function Be(o) {
|
|
5338
5349
|
this.mode = ys.BYTE, typeof o == "string" && (o = vs(o)), this.data = new Uint8Array(o);
|
|
5339
5350
|
}
|
|
5340
|
-
|
|
5351
|
+
Be.getBitsLength = function(t) {
|
|
5341
5352
|
return t * 8;
|
|
5342
5353
|
};
|
|
5343
|
-
|
|
5354
|
+
Be.prototype.getLength = function() {
|
|
5344
5355
|
return this.data.length;
|
|
5345
5356
|
};
|
|
5346
|
-
|
|
5347
|
-
return
|
|
5357
|
+
Be.prototype.getBitsLength = function() {
|
|
5358
|
+
return Be.getBitsLength(this.data.length);
|
|
5348
5359
|
};
|
|
5349
|
-
|
|
5360
|
+
Be.prototype.write = function(o) {
|
|
5350
5361
|
for (let t = 0, e = this.data.length; t < e; t++)
|
|
5351
5362
|
o.put(this.data[t], 8);
|
|
5352
5363
|
};
|
|
5353
|
-
var bs =
|
|
5354
|
-
const ws =
|
|
5355
|
-
function
|
|
5364
|
+
var bs = Be;
|
|
5365
|
+
const ws = he, _s = ne;
|
|
5366
|
+
function Me(o) {
|
|
5356
5367
|
this.mode = ws.KANJI, this.data = o;
|
|
5357
5368
|
}
|
|
5358
|
-
|
|
5369
|
+
Me.getBitsLength = function(t) {
|
|
5359
5370
|
return t * 13;
|
|
5360
5371
|
};
|
|
5361
|
-
|
|
5372
|
+
Me.prototype.getLength = function() {
|
|
5362
5373
|
return this.data.length;
|
|
5363
5374
|
};
|
|
5364
|
-
|
|
5365
|
-
return
|
|
5375
|
+
Me.prototype.getBitsLength = function() {
|
|
5376
|
+
return Me.getBitsLength(this.data.length);
|
|
5366
5377
|
};
|
|
5367
|
-
|
|
5378
|
+
Me.prototype.write = function(o) {
|
|
5368
5379
|
let t;
|
|
5369
5380
|
for (t = 0; t < this.data.length; t++) {
|
|
5370
5381
|
let e = _s.toSJIS(this.data[t]);
|
|
@@ -5380,7 +5391,7 @@ Make sure your charset is UTF-8`
|
|
|
5380
5391
|
e = (e >>> 8 & 255) * 192 + (e & 255), o.put(e, 13);
|
|
5381
5392
|
}
|
|
5382
5393
|
};
|
|
5383
|
-
var Cs =
|
|
5394
|
+
var Cs = Me, G0 = { exports: {} };
|
|
5384
5395
|
(function(o) {
|
|
5385
5396
|
var t = {
|
|
5386
5397
|
single_source_shortest_paths: function(e, n, s) {
|
|
@@ -5448,7 +5459,7 @@ var Cs = Ae, G0 = { exports: {} };
|
|
|
5448
5459
|
})(G0);
|
|
5449
5460
|
var ks = G0.exports;
|
|
5450
5461
|
(function(o) {
|
|
5451
|
-
const t =
|
|
5462
|
+
const t = he, e = fs, n = gs, s = bs, a = Cs, r = ie, l = ne, i = ks;
|
|
5452
5463
|
function d(z) {
|
|
5453
5464
|
return unescape(encodeURIComponent(z)).length;
|
|
5454
5465
|
}
|
|
@@ -5578,7 +5589,7 @@ var ks = G0.exports;
|
|
|
5578
5589
|
);
|
|
5579
5590
|
};
|
|
5580
5591
|
})(X0);
|
|
5581
|
-
const rt = ne, gt = at, xs = ns, Ss = os, zs = N0, Es = F0, xt = R0, St = it, Ts = as,
|
|
5592
|
+
const rt = ne, gt = at, xs = ns, Ss = os, zs = N0, Es = F0, xt = R0, St = it, Ts = as, et = O0, $s = U0, Bs = he, ht = X0;
|
|
5582
5593
|
function Ms(o, t) {
|
|
5583
5594
|
const e = o.size, n = Es.getPositions(t);
|
|
5584
5595
|
for (let s = 0; s < n.length; s++) {
|
|
@@ -5606,7 +5617,7 @@ function As(o, t) {
|
|
|
5606
5617
|
}
|
|
5607
5618
|
}
|
|
5608
5619
|
function Ps(o, t) {
|
|
5609
|
-
const e = o.size, n =
|
|
5620
|
+
const e = o.size, n = et.getEncodedBits(t);
|
|
5610
5621
|
let s, a, r;
|
|
5611
5622
|
for (let l = 0; l < 18; l++)
|
|
5612
5623
|
s = Math.floor(l / 3), a = l % 3 + e - 8 - 3, r = (n >> l & 1) === 1, o.set(s, a, r, !0), o.set(a, s, r, !0);
|
|
@@ -5675,12 +5686,12 @@ function Fs(o, t, e, n) {
|
|
|
5675
5686
|
let d = t;
|
|
5676
5687
|
if (!d) {
|
|
5677
5688
|
const u = ht.rawSplit(o);
|
|
5678
|
-
d =
|
|
5689
|
+
d = et.getBestVersionForData(u, e);
|
|
5679
5690
|
}
|
|
5680
5691
|
s = ht.fromString(o, d || 40);
|
|
5681
5692
|
} else
|
|
5682
5693
|
throw new Error("Invalid data");
|
|
5683
|
-
const a =
|
|
5694
|
+
const a = et.getBestVersionForData(s, e);
|
|
5684
5695
|
if (!a)
|
|
5685
5696
|
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
5686
5697
|
if (!t)
|
|
@@ -5708,7 +5719,7 @@ V0.create = function(t, e) {
|
|
|
5708
5719
|
if (typeof t > "u" || t === "")
|
|
5709
5720
|
throw new Error("No input text");
|
|
5710
5721
|
let n = gt.M, s, a;
|
|
5711
|
-
return typeof e < "u" && (n = gt.from(e.errorCorrectionLevel, gt.M), s =
|
|
5722
|
+
return typeof e < "u" && (n = gt.from(e.errorCorrectionLevel, gt.M), s = et.from(e.version), a = xt.from(e.maskPattern), e.toSJISFunc && rt.setToSJISFunction(e.toSJISFunc)), Fs(t, s, n, a);
|
|
5712
5723
|
};
|
|
5713
5724
|
var Y0 = {}, Lt = {};
|
|
5714
5725
|
(function(o) {
|
|
@@ -5837,10 +5848,10 @@ function Ht(o, t, e, n, s) {
|
|
|
5837
5848
|
s(i);
|
|
5838
5849
|
}
|
|
5839
5850
|
}
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5851
|
+
Fe.create = zt.create;
|
|
5852
|
+
Fe.toCanvas = Ht.bind(null, W0.render);
|
|
5853
|
+
Fe.toDataURL = Ht.bind(null, W0.renderToDataURL);
|
|
5854
|
+
Fe.toString = Ht.bind(null, function(o, t, e) {
|
|
5844
5855
|
return Os.render(o, e);
|
|
5845
5856
|
});
|
|
5846
5857
|
const js = ["src"], Us = {
|
|
@@ -5852,7 +5863,7 @@ const js = ["src"], Us = {
|
|
|
5852
5863
|
props: Zo,
|
|
5853
5864
|
emits: ["refresh"],
|
|
5854
5865
|
setup(o, { expose: t, emit: e }) {
|
|
5855
|
-
const n = o, s = e, a =
|
|
5866
|
+
const n = o, s = e, a = tt(), r = D(!1), l = D(!0);
|
|
5856
5867
|
let i;
|
|
5857
5868
|
const d = () => {
|
|
5858
5869
|
l.value = !1, i = setTimeout(() => {
|
|
@@ -5868,7 +5879,7 @@ const js = ["src"], Us = {
|
|
|
5868
5879
|
const { quality: g, value: b, darkColor: M, lightColor: z, ...E } = n;
|
|
5869
5880
|
E.color = { dark: M, light: z };
|
|
5870
5881
|
const h = typeof b == "function" ? await b() : b;
|
|
5871
|
-
|
|
5882
|
+
Fe.toDataURL(
|
|
5872
5883
|
h,
|
|
5873
5884
|
Object.assign(E, g == null || { renderOptions: { quality: g } })
|
|
5874
5885
|
).then((w) => {
|
|
@@ -5886,14 +5897,14 @@ const js = ["src"], Us = {
|
|
|
5886
5897
|
ref_key: "qrcodeRef",
|
|
5887
5898
|
ref: m
|
|
5888
5899
|
}, [
|
|
5889
|
-
F("img",
|
|
5900
|
+
F("img", O({ class: "x-qrcode__qrcode" }, c(a), { src: p.value }), null, 16, js),
|
|
5890
5901
|
p.value && r.value ? (f(), A("div", Us, [
|
|
5891
5902
|
F("div", {
|
|
5892
5903
|
class: "x-qrcode__logo",
|
|
5893
5904
|
onClick: u
|
|
5894
5905
|
}, [
|
|
5895
5906
|
P(g.$slots, "logo", {}, () => [
|
|
5896
|
-
S(c(
|
|
5907
|
+
S(c(ge), {
|
|
5897
5908
|
icon: c(y0),
|
|
5898
5909
|
size: 40
|
|
5899
5910
|
}, null, 8, ["icon"]),
|
|
@@ -5902,7 +5913,7 @@ const js = ["src"], Us = {
|
|
|
5902
5913
|
]),
|
|
5903
5914
|
F("div", Xs, [
|
|
5904
5915
|
P(g.$slots, "tip", {}, () => [
|
|
5905
|
-
|
|
5916
|
+
U(L(n.tip), 1)
|
|
5906
5917
|
])
|
|
5907
5918
|
])
|
|
5908
5919
|
])) : x("", !0)
|
|
@@ -5969,8 +5980,8 @@ async function Js() {
|
|
|
5969
5980
|
"@ckeditor/ckeditor5-build-classic/build/translations/zh-cn.js"
|
|
5970
5981
|
)).default;
|
|
5971
5982
|
return o.CKEditorCN = s, o.CKEDITOR_VERSION = t, {
|
|
5972
|
-
ClassicEditor:
|
|
5973
|
-
CKEditor:
|
|
5983
|
+
ClassicEditor: me(e),
|
|
5984
|
+
CKEditor: me(n.component),
|
|
5974
5985
|
CKEditorCN: s
|
|
5975
5986
|
};
|
|
5976
5987
|
}
|
|
@@ -6034,12 +6045,12 @@ const Ka = /* @__PURE__ */ R({
|
|
|
6034
6045
|
}
|
|
6035
6046
|
}), qs = { class: "x-sms-code-input" }, Qs = /* @__PURE__ */ F("span", null, [
|
|
6036
6047
|
/* @__PURE__ */ F("strong", null, "59"),
|
|
6037
|
-
/* @__PURE__ */
|
|
6048
|
+
/* @__PURE__ */ U("s")
|
|
6038
6049
|
], -1), Zs = /* @__PURE__ */ F("div", { class: "x-sms-code-input__image" }, "图片验证码", -1), Xa = /* @__PURE__ */ R({
|
|
6039
6050
|
__name: "SmsCodeInput",
|
|
6040
6051
|
setup(o) {
|
|
6041
6052
|
return (t, e) => (f(), A("div", qs, [
|
|
6042
|
-
S(c(
|
|
6053
|
+
S(c(ye), { class: "x-sms-code-input__input" }, {
|
|
6043
6054
|
suffix: y(() => [
|
|
6044
6055
|
Qs,
|
|
6045
6056
|
S(c(zn), {
|
|
@@ -6047,7 +6058,7 @@ const Ka = /* @__PURE__ */ R({
|
|
|
6047
6058
|
underline: !1
|
|
6048
6059
|
}, {
|
|
6049
6060
|
default: y(() => [
|
|
6050
|
-
|
|
6061
|
+
U("获取验证码")
|
|
6051
6062
|
]),
|
|
6052
6063
|
_: 1
|
|
6053
6064
|
})
|
|
@@ -6172,7 +6183,7 @@ function Ot(o) {
|
|
|
6172
6183
|
function bt(o) {
|
|
6173
6184
|
return Ot(o) === "img";
|
|
6174
6185
|
}
|
|
6175
|
-
function
|
|
6186
|
+
function Ae(o) {
|
|
6176
6187
|
const { url: t, type: e, name: n } = o || {};
|
|
6177
6188
|
return {
|
|
6178
6189
|
url: t,
|
|
@@ -6243,7 +6254,7 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6243
6254
|
}
|
|
6244
6255
|
);
|
|
6245
6256
|
const E = (B, I) => {
|
|
6246
|
-
|
|
6257
|
+
qe.warning({
|
|
6247
6258
|
message: `您选择的文件数量超过了限制,只允许上传${s.limit}个文件。`
|
|
6248
6259
|
});
|
|
6249
6260
|
}, h = async (B) => {
|
|
@@ -6252,8 +6263,8 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6252
6263
|
r.value = !0;
|
|
6253
6264
|
const $ = B.file, N = await I($).catch(() => null);
|
|
6254
6265
|
if (!N) {
|
|
6255
|
-
const se = m.value.findIndex((
|
|
6256
|
-
se > -1 && (m.value.splice(se, 1),
|
|
6266
|
+
const se = m.value.findIndex((_e) => _e.uid === $.uid);
|
|
6267
|
+
se > -1 && (m.value.splice(se, 1), qe.error({
|
|
6257
6268
|
message: `文件${$.name}上传失败。`
|
|
6258
6269
|
}));
|
|
6259
6270
|
}
|
|
@@ -6261,7 +6272,7 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6261
6272
|
}
|
|
6262
6273
|
}, w = (B) => {
|
|
6263
6274
|
const I = p.value.findIndex(($) => $.url === B.url);
|
|
6264
|
-
I > -1 ? s.multiple ? p.value.splice(I, 1) : p.value = [] : s.multiple ? p.value.push(
|
|
6275
|
+
I > -1 ? s.multiple ? p.value.splice(I, 1) : p.value = [] : s.multiple ? p.value.push(Ae(B.response || B)) : p.value = [Ae(B.response || B)], a("select", p.value), a(
|
|
6265
6276
|
"update:selectValue",
|
|
6266
6277
|
s.multiple ? p.value : p.value[0]
|
|
6267
6278
|
);
|
|
@@ -6269,18 +6280,18 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6269
6280
|
const I = p.value.findIndex(($) => $.url === B.url);
|
|
6270
6281
|
I > -1 && p.value.splice(I, 1);
|
|
6271
6282
|
}, V = (B) => !!p.value.find((I) => I.url === B.url), k = (B) => {
|
|
6272
|
-
s.clickable && a("click",
|
|
6283
|
+
s.clickable && a("click", Ae(B.response || B)), s.selectable && w(B);
|
|
6273
6284
|
}, H = async (B, I) => {
|
|
6274
6285
|
if (I.every((N) => N.status === "success") && I.length === m.value.length) {
|
|
6275
|
-
const N = m.value.map((se) =>
|
|
6286
|
+
const N = m.value.map((se) => Ae(se.response || se));
|
|
6276
6287
|
a("change", N), a("update:modelValue", N), i.value = Symbol();
|
|
6277
6288
|
}
|
|
6278
6289
|
}, K = async (B) => {
|
|
6279
|
-
if (!await
|
|
6290
|
+
if (!await Xe.confirm("确定删除文件?", "提示", {
|
|
6280
6291
|
type: "warning"
|
|
6281
6292
|
}).catch(() => !1))
|
|
6282
6293
|
return;
|
|
6283
|
-
const $ = m.value.filter((N) => N.uid !== B.uid || N.url !== B.url).map((N) =>
|
|
6294
|
+
const $ = m.value.filter((N) => N.uid !== B.uid || N.url !== B.url).map((N) => Ae(N.response || N));
|
|
6284
6295
|
m.value = $, a("remove", B), a("change", $), a("update:modelValue", $), T(B), i.value = Symbol();
|
|
6285
6296
|
}, Y = (B) => {
|
|
6286
6297
|
l2(B.url, B.name).catch(() => {
|
|
@@ -6302,7 +6313,7 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6302
6313
|
}), (B, I) => (f(), A("div", {
|
|
6303
6314
|
class: W(["x-attachment", v.value])
|
|
6304
6315
|
}, [
|
|
6305
|
-
(f(), _(c(En),
|
|
6316
|
+
(f(), _(c(En), O({
|
|
6306
6317
|
ref_key: "elUploadRef",
|
|
6307
6318
|
ref: l,
|
|
6308
6319
|
key: i.value,
|
|
@@ -6337,7 +6348,7 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6337
6348
|
onClick: (N) => X($.response || $),
|
|
6338
6349
|
class: "el-upload-list__item-preview"
|
|
6339
6350
|
}, [
|
|
6340
|
-
S(c(
|
|
6351
|
+
S(c(Pe), null, {
|
|
6341
6352
|
default: y(() => [
|
|
6342
6353
|
S(c(Kn))
|
|
6343
6354
|
]),
|
|
@@ -6349,7 +6360,7 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6349
6360
|
onClick: (N) => Y($.response || $),
|
|
6350
6361
|
class: "el-upload-list__item-delete"
|
|
6351
6362
|
}, [
|
|
6352
|
-
S(c(
|
|
6363
|
+
S(c(Pe), null, {
|
|
6353
6364
|
default: y(() => [
|
|
6354
6365
|
S(c(Xn))
|
|
6355
6366
|
]),
|
|
@@ -6361,7 +6372,7 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6361
6372
|
onClick: (N) => K($),
|
|
6362
6373
|
class: "el-upload-list__item-delete"
|
|
6363
6374
|
}, [
|
|
6364
|
-
S(c(
|
|
6375
|
+
S(c(Pe), null, {
|
|
6365
6376
|
default: y(() => [
|
|
6366
6377
|
S(c(Gn))
|
|
6367
6378
|
]),
|
|
@@ -6378,7 +6389,7 @@ const ta = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6378
6389
|
]),
|
|
6379
6390
|
default: y(() => [
|
|
6380
6391
|
F("div", fa, [
|
|
6381
|
-
S(c(
|
|
6392
|
+
S(c(Pe), null, {
|
|
6382
6393
|
default: y(() => [
|
|
6383
6394
|
S(c(Yn))
|
|
6384
6395
|
]),
|
|
@@ -6415,19 +6426,19 @@ export {
|
|
|
6415
6426
|
Ga as XAttachment,
|
|
6416
6427
|
Ka as XCKEditor,
|
|
6417
6428
|
Fa as XChart,
|
|
6418
|
-
|
|
6429
|
+
j as XContainer,
|
|
6419
6430
|
Na as XDataItem,
|
|
6420
6431
|
T0 as XDialog,
|
|
6421
6432
|
Va as XDialogForm,
|
|
6422
6433
|
_o as XField,
|
|
6423
6434
|
ko as XForm,
|
|
6424
6435
|
M2 as XHeader,
|
|
6425
|
-
|
|
6436
|
+
ge as XIcon,
|
|
6426
6437
|
Oa as XInputUnit,
|
|
6427
6438
|
Ra as XList,
|
|
6428
6439
|
Aa as XMask,
|
|
6429
|
-
|
|
6430
|
-
|
|
6440
|
+
ke as XMenu,
|
|
6441
|
+
Ye as XPanel,
|
|
6431
6442
|
Ua as XQrcode,
|
|
6432
6443
|
Xa as XSmsCodeInput,
|
|
6433
6444
|
La as XStartup,
|
|
@@ -6457,7 +6468,7 @@ export {
|
|
|
6457
6468
|
Ia as makeInstaller,
|
|
6458
6469
|
q2 as maskProps,
|
|
6459
6470
|
I2 as panelProps,
|
|
6460
|
-
|
|
6471
|
+
Le as parseSize,
|
|
6461
6472
|
Zo as qrcodeProps,
|
|
6462
6473
|
Oo as startupProps,
|
|
6463
6474
|
So as tabsProps,
|
|
@@ -6465,7 +6476,7 @@ export {
|
|
|
6465
6476
|
Jt as toObjectProps,
|
|
6466
6477
|
x0 as useAdapter,
|
|
6467
6478
|
Pt as useDisabled,
|
|
6468
|
-
|
|
6479
|
+
Ee as useIcon,
|
|
6469
6480
|
_2 as useIconProps,
|
|
6470
6481
|
C2 as useLoader,
|
|
6471
6482
|
A2 as vDraggable,
|