@vtj/ui 0.8.27 → 0.8.28
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 +306 -304
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as ke, defineComponent as R, useAttrs as Fe, getCurrentInstance as ye, computed as C, markRaw as Ne, openBlock as
|
|
2
|
-
import { ElIcon as Pe, ElSubMenu as tn, ElBadge as _t, ElMenuItem as nn, ElMenu as on, ElButton as de, ElDropdown as sn, ElDropdownMenu as an, ElDropdownItem as ln, ElTooltip as l0, ElDivider as ue, ElSwitch as Tt, ElInput as ge, ElEmpty as r0, ElTabs as c0, ElTabPane as bt, ElPopover as u0, ElAvatar as rn, ElMessageBox as Ge, ElSelect as d0, ElOption as
|
|
1
|
+
import { inject as ke, defineComponent as R, useAttrs as Fe, getCurrentInstance as ye, computed as C, markRaw as Ne, openBlock as p, createBlock as b, unref as c, normalizeClass as J, normalizeStyle as we, withCtx as y, renderSlot as A, resolveDynamicComponent as ee, createCommentVNode as x, createElementBlock as P, mergeProps as O, createElementVNode as N, toDisplayString as L, Fragment as q, renderList as te, isVNode as J0, h as ce, shallowRef as wt, ref as D, watch as G, toRef as Je, createTextVNode as U, useSlots as q0, toRaw as pe, createVNode as z, normalizeProps as tt, guardReactiveProps as nt, effectScope as o0, reactive as ot, onMounted as Q0, onUnmounted as s0, watchEffect as Et, nextTick as xe, Teleport as a0, withDirectives as Z, createSlots as ve, render as Ot, vShow as re, isRef as Ke, withModifiers as i0, KeepAlive as Z0, provide as Ve, withKeys as en } from "vue";
|
|
2
|
+
import { ElIcon as Pe, ElSubMenu as tn, ElBadge as _t, ElMenuItem as nn, ElMenu as on, ElButton as de, ElDropdown as sn, ElDropdownMenu as an, ElDropdownItem as ln, ElTooltip as l0, ElDivider as ue, ElSwitch as Tt, ElInput as ge, ElEmpty as r0, ElTabs as c0, ElTabPane as bt, ElPopover as u0, ElAvatar as rn, ElMessageBox as Ge, ElSelect as d0, ElOption as f0, ElCheckboxButton as cn, ElCheckbox as un, ElCheckboxGroup as dn, ElRadioButton as fn, ElRadio as pn, ElRadioGroup as mn, ElInputNumber as gn, ElDatePicker as jt, ElTimePicker as hn, ElRate as vn, ElSlider as yn, ElCascader as wn, formContextKey as _n, ElFormItem as bn, ElForm as Cn, ElImage as kn, ElInfiniteScroll as Ut, ElPagination as xn, ElDescriptions as Xt, ElDescriptionsItem as ut, ElMessage as qe, vLoading as p0, ElLink as Sn, ElUpload as zn, ElImageViewer as En } from "element-plus";
|
|
3
3
|
import { ArrowRight as Tn, Minimize as $n, Popup as Mn, Maximize as Bn, RawClose as In, StarFilled as m0, Menu as Pn, Search as Ct, Close as g0, Expand as An, Fold as Vn, Star as h0, Document as be, Refresh as v0, CopyDocument as Dn, Moon as Fn, Sunny as Nn, MoreFilled as Rn, UserFilled as Ln, HomeFilled as Hn, WarningFilled as On, EditPen as jn, SuccessFilled as Un, CircleCloseFilled as Xn, ZoomIn as Kn, Download as Gn, Delete as Yn, Plus as Wn } from "@vtj/icons";
|
|
4
4
|
import { useDraggable as Jn, useMouseInElement as qn, useEventListener as Qe, useElementSize as y0, useDark as Qn, useVirtualList as Zn } from "@vueuse/core";
|
|
5
5
|
import { isEqual as $t, isObject as Mt, uid as w0, arrayToMap as e2, isUrl as t2, upperFirstCamelCase as _0, toArray as b0, get as Ye, merge as n2, set as dt, dedupArray as o2, numberFormat as s2, cloneDeep as Kt, downloadRemoteFile as a2, downloadUrl as Gt } from "@vtj/utils";
|
|
@@ -8,10 +8,10 @@ import { useRouter as Bt, RouterView as i2, useRoute as C0, routeLocationKey as
|
|
|
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.28
|
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
13
13
|
*/
|
|
14
|
-
const xa = "0.8.
|
|
14
|
+
const xa = "0.8.28", r2 = {
|
|
15
15
|
default: 14,
|
|
16
16
|
small: 12,
|
|
17
17
|
large: 18
|
|
@@ -39,7 +39,7 @@ const xa = "0.8.27", r2 = {
|
|
|
39
39
|
type: Number
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function fe(o) {
|
|
43
43
|
return typeof o == "string" ? o : `${o}px`;
|
|
44
44
|
}
|
|
45
45
|
function He(o = 0, e) {
|
|
@@ -86,10 +86,10 @@ const Sa = {
|
|
|
86
86
|
return !s.value && e.icon && (i[e.icon] = !0), i;
|
|
87
87
|
}), r = C(() => ({
|
|
88
88
|
"background-color": e.background,
|
|
89
|
-
"border-radius": e.radius ?
|
|
90
|
-
padding: e.padding ?
|
|
89
|
+
"border-radius": e.radius ? fe(e.radius) : void 0,
|
|
90
|
+
padding: e.padding ? fe(e.padding) : void 0
|
|
91
91
|
})), l = C(() => typeof e.size == "number" ? e.size : r2[e.size] ?? void 0);
|
|
92
|
-
return (i, d) => (
|
|
92
|
+
return (i, d) => (p(), b(c(Pe), {
|
|
93
93
|
class: J(["x-icon", a.value]),
|
|
94
94
|
color: e.color,
|
|
95
95
|
size: l.value,
|
|
@@ -97,8 +97,8 @@ const Sa = {
|
|
|
97
97
|
}, {
|
|
98
98
|
default: y(() => [
|
|
99
99
|
A(i.$slots, "default", {}, () => [
|
|
100
|
-
s.value ? (
|
|
101
|
-
e.src ? (
|
|
100
|
+
s.value ? (p(), b(ee(s.value), { key: 0 })) : x("", !0),
|
|
101
|
+
e.src ? (p(), P("img", {
|
|
102
102
|
key: 1,
|
|
103
103
|
src: e.src
|
|
104
104
|
}, null, 8, d2)) : x("", !0)
|
|
@@ -107,7 +107,7 @@ const Sa = {
|
|
|
107
107
|
_: 3
|
|
108
108
|
}, 8, ["class", "color", "size", "style"]));
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), f2 = { class: "x-menu__wrapper" }, p2 = {
|
|
111
111
|
key: 1,
|
|
112
112
|
class: "x-menu__title"
|
|
113
113
|
}, m2 = /* @__PURE__ */ N("i", null, null, -1), g2 = {
|
|
@@ -127,20 +127,20 @@ const Sa = {
|
|
|
127
127
|
if (r)
|
|
128
128
|
return typeof r == "string" && (t?.appContext.app?.component(r) || e.defaultIcon) || r;
|
|
129
129
|
}, s = (r) => typeof r == "object" ? r : { value: r }, a = (r = []) => r.filter((l) => !l.hidden);
|
|
130
|
-
return (r, l) => e.item.children ? (
|
|
130
|
+
return (r, l) => e.item.children ? (p(), b(c(tn), O({
|
|
131
131
|
key: 0,
|
|
132
132
|
disabled: e.item.disabled
|
|
133
133
|
}, e.subMenu, {
|
|
134
134
|
index: String(e.item.id)
|
|
135
135
|
}), {
|
|
136
136
|
title: y(() => [
|
|
137
|
-
N("div",
|
|
138
|
-
e.item.icon ? (
|
|
137
|
+
N("div", f2, [
|
|
138
|
+
e.item.icon ? (p(), b(c(ae), {
|
|
139
139
|
key: 0,
|
|
140
140
|
icon: n(e.item.icon)
|
|
141
141
|
}, null, 8, ["icon"])) : x("", !0),
|
|
142
|
-
e.item.title ? (
|
|
143
|
-
e.item.badge ? (
|
|
142
|
+
e.item.title ? (p(), P("span", p2, L(e.item.title), 1)) : x("", !0),
|
|
143
|
+
e.item.badge ? (p(), b(c(_t), O({
|
|
144
144
|
key: 2,
|
|
145
145
|
class: "x-menu__badge"
|
|
146
146
|
}, s(e.item.badge)), {
|
|
@@ -152,7 +152,7 @@ const Sa = {
|
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
default: y(() => [
|
|
155
|
-
(
|
|
155
|
+
(p(!0), P(q, null, te(a(e.item.children), (i) => (p(), b(c(k0), {
|
|
156
156
|
key: i.id,
|
|
157
157
|
item: i,
|
|
158
158
|
subMenu: e.subMenu,
|
|
@@ -160,14 +160,14 @@ const Sa = {
|
|
|
160
160
|
}, null, 8, ["item", "subMenu", "defaultIcon"]))), 128))
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
163
|
-
}, 16, ["disabled", "index"])) : (
|
|
163
|
+
}, 16, ["disabled", "index"])) : (p(), b(c(nn), {
|
|
164
164
|
key: 1,
|
|
165
165
|
index: String(e.item.id),
|
|
166
166
|
disabled: e.item.disabled
|
|
167
167
|
}, {
|
|
168
168
|
title: y(() => [
|
|
169
|
-
e.item.title ? (
|
|
170
|
-
e.item.badge ? (
|
|
169
|
+
e.item.title ? (p(), P("span", g2, L(e.item.title), 1)) : x("", !0),
|
|
170
|
+
e.item.badge ? (p(), b(c(_t), O({
|
|
171
171
|
key: 1,
|
|
172
172
|
class: "x-menu__badge"
|
|
173
173
|
}, s(e.item.badge)), {
|
|
@@ -178,7 +178,7 @@ const Sa = {
|
|
|
178
178
|
}, 16)) : x("", !0)
|
|
179
179
|
]),
|
|
180
180
|
default: y(() => [
|
|
181
|
-
e.item.icon ? (
|
|
181
|
+
e.item.icon ? (p(), b(c(ae), {
|
|
182
182
|
key: 0,
|
|
183
183
|
icon: n(e.item.icon)
|
|
184
184
|
}, null, 8, ["icon"])) : x("", !0)
|
|
@@ -198,8 +198,8 @@ const Sa = {
|
|
|
198
198
|
emits: ["select"],
|
|
199
199
|
setup(o, { emit: e }) {
|
|
200
200
|
const t = o, n = e, s = C(() => t.data.filter((l) => !l.hidden)), a = (l, i) => {
|
|
201
|
-
const d = (u,
|
|
202
|
-
for (const h of
|
|
201
|
+
const d = (u, f = []) => {
|
|
202
|
+
for (const h of f) {
|
|
203
203
|
if (h.id.toString() === u.toString())
|
|
204
204
|
return h;
|
|
205
205
|
if (h.children?.length) {
|
|
@@ -214,9 +214,9 @@ const Sa = {
|
|
|
214
214
|
const i = a(s.value, l);
|
|
215
215
|
i && n("select", i);
|
|
216
216
|
};
|
|
217
|
-
return (l, i) => (
|
|
217
|
+
return (l, i) => (p(), b(c(on), O({ class: "x-menu" }, l.$attrs, { onSelect: r }), {
|
|
218
218
|
default: y(() => [
|
|
219
|
-
(
|
|
219
|
+
(p(!0), P(q, null, te(s.value, (d) => (p(), b(c(k0), {
|
|
220
220
|
item: { ...d, icon: d.icon },
|
|
221
221
|
defaultIcon: t.defaultIcon,
|
|
222
222
|
subMenu: t.subMenu
|
|
@@ -408,7 +408,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
408
408
|
if (i.preventDefault(), !a.value)
|
|
409
409
|
return n("click"), !1;
|
|
410
410
|
};
|
|
411
|
-
return (i, d) => t.mode === "button" ? (
|
|
411
|
+
return (i, d) => t.mode === "button" ? (p(), b(c(de), O({
|
|
412
412
|
key: 0,
|
|
413
413
|
icon: c(s),
|
|
414
414
|
type: t.type,
|
|
@@ -419,13 +419,13 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
419
419
|
U(L(i.label), 1)
|
|
420
420
|
]),
|
|
421
421
|
_: 1
|
|
422
|
-
}, 16, ["icon", "type", "size", "disabled"])) : (
|
|
422
|
+
}, 16, ["icon", "type", "size", "disabled"])) : (p(), P("div", {
|
|
423
423
|
key: 1,
|
|
424
424
|
class: J(["x-action__inner", r.value]),
|
|
425
425
|
onClick: l
|
|
426
426
|
}, [
|
|
427
|
-
(
|
|
428
|
-
i.label ? (
|
|
427
|
+
(p(), b(ee(c(s)))),
|
|
428
|
+
i.label ? (p(), P("span", C2, L(i.label), 1)) : x("", !0)
|
|
429
429
|
], 2));
|
|
430
430
|
}
|
|
431
431
|
}), x2 = ["draggable"], se = /* @__PURE__ */ R({
|
|
@@ -436,17 +436,17 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
436
436
|
setup(o, { emit: e }) {
|
|
437
437
|
const t = o, n = q0(), s = e, a = v2(t), r = y2(t), l = w2(t), i = Pt(Je(t, "disabled")), d = C(() => !!t.draggable && !i.value), u = C(() => ({
|
|
438
438
|
[`x-action--${t.mode}`]: !!t.mode
|
|
439
|
-
})),
|
|
440
|
-
i.value || s("click",
|
|
439
|
+
})), f = () => {
|
|
440
|
+
i.value || s("click", pe(t));
|
|
441
441
|
}, h = (v) => {
|
|
442
442
|
if (i.value)
|
|
443
443
|
return;
|
|
444
444
|
const _ = t.menus?.find((S) => S.command === v);
|
|
445
|
-
_ && s("command",
|
|
445
|
+
_ && s("command", pe(_));
|
|
446
446
|
}, m = (v) => {
|
|
447
|
-
d && s("dragstart",
|
|
447
|
+
d && s("dragstart", pe(t), v);
|
|
448
448
|
}, g = (v) => {
|
|
449
|
-
d && s("dragend",
|
|
449
|
+
d && s("dragend", pe(t), v);
|
|
450
450
|
}, w = (v) => ce(_t, r.value, () => [].concat(v)), $ = (v) => ce(
|
|
451
451
|
sn,
|
|
452
452
|
{ ...l.value, disabled: i.value, onCommand: h },
|
|
@@ -466,17 +466,17 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
466
466
|
), E = (v) => ce(l0, { ...a.value, disabled: i.value }, () => [
|
|
467
467
|
v
|
|
468
468
|
]), T = C(() => {
|
|
469
|
-
let v = ce(Ne(k2), { ...t, onClick:
|
|
469
|
+
let v = ce(Ne(k2), { ...t, onClick: f });
|
|
470
470
|
const _ = n.default?.();
|
|
471
471
|
return _ && _.length && (v = _[0]), r.value && (v = w(v)), l.value && (v = $(v)), a.value && (v = E(v)), v;
|
|
472
472
|
});
|
|
473
|
-
return (v, _) => (
|
|
473
|
+
return (v, _) => (p(), P("div", {
|
|
474
474
|
class: J(["x-action", u.value]),
|
|
475
475
|
draggable: d.value,
|
|
476
476
|
onDragstart: m,
|
|
477
477
|
onDragend: g
|
|
478
478
|
}, [
|
|
479
|
-
(
|
|
479
|
+
(p(), b(ee(T.value)))
|
|
480
480
|
], 42, x2));
|
|
481
481
|
}
|
|
482
482
|
}), S2 = {
|
|
@@ -571,17 +571,17 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
571
571
|
}, r = (l, i) => {
|
|
572
572
|
n("command", l, i);
|
|
573
573
|
};
|
|
574
|
-
return (l, i) => (
|
|
574
|
+
return (l, i) => (p(), b(c(j), {
|
|
575
575
|
class: "x-action-bar",
|
|
576
576
|
align: "center"
|
|
577
577
|
}, {
|
|
578
578
|
default: y(() => [
|
|
579
|
-
(
|
|
580
|
-
d === "|" ? (
|
|
579
|
+
(p(!0), P(q, null, te(s.value, (d) => (p(), P(q, null, [
|
|
580
|
+
d === "|" ? (p(), b(c(ue), {
|
|
581
581
|
key: 0,
|
|
582
582
|
direction: "vertical",
|
|
583
583
|
class: "x-action-bar__divider"
|
|
584
|
-
})) : (
|
|
584
|
+
})) : (p(), b(c(se), O({
|
|
585
585
|
key: 1,
|
|
586
586
|
mode: t.mode,
|
|
587
587
|
size: t.size,
|
|
@@ -747,11 +747,11 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
747
747
|
})), r = C(() => {
|
|
748
748
|
const { width: l, height: i, fit: d } = e;
|
|
749
749
|
return d ? null : {
|
|
750
|
-
width: l ?
|
|
751
|
-
height: i ?
|
|
750
|
+
width: l ? fe(l) : void 0,
|
|
751
|
+
height: i ? fe(i) : void 0
|
|
752
752
|
};
|
|
753
753
|
});
|
|
754
|
-
return (l, i) => (
|
|
754
|
+
return (l, i) => (p(), b(ee(e.tag), {
|
|
755
755
|
class: J(["x-container", a.value]),
|
|
756
756
|
style: we(r.value)
|
|
757
757
|
}, {
|
|
@@ -796,7 +796,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
796
796
|
"is-border": e.border,
|
|
797
797
|
"is-pointer": !!n.onClick
|
|
798
798
|
}));
|
|
799
|
-
return (a, r) => (
|
|
799
|
+
return (a, r) => (p(), b(c(j), {
|
|
800
800
|
class: J(["x-header", s.value]),
|
|
801
801
|
justify: "space-between",
|
|
802
802
|
align: "center"
|
|
@@ -809,7 +809,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
809
809
|
onClick: c(n).onClick
|
|
810
810
|
}, {
|
|
811
811
|
default: y(() => [
|
|
812
|
-
c(t) ? (
|
|
812
|
+
c(t) ? (p(), b(ee(c(t)), {
|
|
813
813
|
key: 0,
|
|
814
814
|
class: "x-header__icon",
|
|
815
815
|
onClick: c(n).onClickIcon || c(n).onClick
|
|
@@ -819,12 +819,12 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
819
819
|
U(L(e.content), 1)
|
|
820
820
|
])
|
|
821
821
|
]),
|
|
822
|
-
e.more ? (
|
|
822
|
+
e.more ? (p(), b(c(ae), {
|
|
823
823
|
key: 1,
|
|
824
824
|
class: "x-header__more",
|
|
825
825
|
icon: c(Tn)
|
|
826
826
|
}, null, 8, ["icon"])) : x("", !0),
|
|
827
|
-
e.subtitle || a.$slots.subtitle ? (
|
|
827
|
+
e.subtitle || a.$slots.subtitle ? (p(), P("span", {
|
|
828
828
|
key: 2,
|
|
829
829
|
class: "x-header__subtitle",
|
|
830
830
|
onClick: r[0] || (r[0] = //@ts-ignore
|
|
@@ -837,7 +837,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
837
837
|
]),
|
|
838
838
|
_: 3
|
|
839
839
|
}, 8, ["class", "onClick"]),
|
|
840
|
-
a.$slots.actions ? (
|
|
840
|
+
a.$slots.actions ? (p(), P("div", $2, [
|
|
841
841
|
A(a.$slots, "actions")
|
|
842
842
|
])) : x("", !0)
|
|
843
843
|
]),
|
|
@@ -929,7 +929,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
929
929
|
}), r = C(() => t.fit || t.height ? "auto" : void 0);
|
|
930
930
|
return e({
|
|
931
931
|
bodyRef: n
|
|
932
|
-
}), (l, i) => (
|
|
932
|
+
}), (l, i) => (p(), b(c(j), {
|
|
933
933
|
class: J(["x-panel", s.value]),
|
|
934
934
|
direction: "column",
|
|
935
935
|
fit: t.fit,
|
|
@@ -937,7 +937,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
937
937
|
height: t.height
|
|
938
938
|
}, {
|
|
939
939
|
default: y(() => [
|
|
940
|
-
a.value ? (
|
|
940
|
+
a.value ? (p(), b(c(j), {
|
|
941
941
|
key: 0,
|
|
942
942
|
flex: !1,
|
|
943
943
|
class: "x-panel__header"
|
|
@@ -971,7 +971,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
|
|
|
971
971
|
]),
|
|
972
972
|
_: 3
|
|
973
973
|
}, 16, ["overflow"]),
|
|
974
|
-
l.$slots.footer ? (
|
|
974
|
+
l.$slots.footer ? (p(), b(c(j), O({
|
|
975
975
|
key: 1,
|
|
976
976
|
flex: !1,
|
|
977
977
|
padding: "",
|
|
@@ -1009,36 +1009,36 @@ class qt {
|
|
|
1009
1009
|
return;
|
|
1010
1010
|
let l = null;
|
|
1011
1011
|
const i = this.getHandle(), d = this.getTarget();
|
|
1012
|
-
let u = e.getBoundingClientRect(),
|
|
1012
|
+
let u = e.getBoundingClientRect(), f = null;
|
|
1013
1013
|
const { x: h, y: m } = Jn(e, {
|
|
1014
1014
|
initialValue: { x: u.x, y: u.y },
|
|
1015
1015
|
...t,
|
|
1016
1016
|
handle: i,
|
|
1017
1017
|
onStart: (g, w) => {
|
|
1018
1018
|
document.body.classList.add(Jt), clearTimeout(l), l = setTimeout(() => {
|
|
1019
|
-
this.dragging = !0, u = e.getBoundingClientRect(),
|
|
1019
|
+
this.dragging = !0, u = e.getBoundingClientRect(), f = d?.getBoundingClientRect(), a && a(g, w);
|
|
1020
1020
|
}, s);
|
|
1021
1021
|
},
|
|
1022
1022
|
onEnd: (g, w) => {
|
|
1023
|
-
if (clearTimeout(l), document.body.classList.remove(Jt), this.dragging &&
|
|
1023
|
+
if (clearTimeout(l), document.body.classList.remove(Jt), this.dragging && f) {
|
|
1024
1024
|
this.dragging = !1;
|
|
1025
|
-
const { x: $, y: E } = g, T = this.getPosition(
|
|
1026
|
-
r && r(T, w),
|
|
1025
|
+
const { x: $, y: E } = g, T = this.getPosition(f, u, $, E);
|
|
1026
|
+
r && r(T, w), f = null;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
});
|
|
1030
1030
|
G([h, m], () => {
|
|
1031
|
-
if (this.dragging &&
|
|
1032
|
-
const g = this.getPosition(
|
|
1031
|
+
if (this.dragging && f) {
|
|
1032
|
+
const g = this.getPosition(f, u, h.value, m.value);
|
|
1033
1033
|
e.style.left = `${g.x}px`, e.style.top = `${g.y}px`;
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
getPosition(e, t, n, s) {
|
|
1038
|
-
const { edge: a = 50 } = this.options, r = -t.width + a, l = e.width - a, i = 0, d = e.height - a, u = Math.min(l, Math.max(n, r)),
|
|
1038
|
+
const { edge: a = 50 } = this.options, r = -t.width + a, l = e.width - a, i = 0, d = e.height - a, u = Math.min(l, Math.max(n, r)), f = Math.min(d, Math.max(s, i));
|
|
1039
1039
|
return {
|
|
1040
1040
|
x: u,
|
|
1041
|
-
y:
|
|
1041
|
+
y: f
|
|
1042
1042
|
};
|
|
1043
1043
|
}
|
|
1044
1044
|
destory() {
|
|
@@ -1059,7 +1059,7 @@ const I2 = {
|
|
|
1059
1059
|
const e = o.__draggable__;
|
|
1060
1060
|
e && (e.destory(), o.__draggable__ = null);
|
|
1061
1061
|
}
|
|
1062
|
-
},
|
|
1062
|
+
}, ft = "user-select-none";
|
|
1063
1063
|
class Qt {
|
|
1064
1064
|
constructor(e, t = {}) {
|
|
1065
1065
|
this.el = e, this.options = t, this.scope = o0(), this.scope.run(() => {
|
|
@@ -1085,7 +1085,7 @@ class Qt {
|
|
|
1085
1085
|
), a && a(this.direction.value, this.MIE)), this.resizing.value = !1;
|
|
1086
1086
|
}), G(this.direction, (i) => {
|
|
1087
1087
|
const d = document.body;
|
|
1088
|
-
d.style.cursor = i ? `${i}-resize` : "", i ? d.classList.add(
|
|
1088
|
+
d.style.cursor = i ? `${i}-resize` : "", i ? d.classList.add(ft) : d.classList.remove(ft);
|
|
1089
1089
|
});
|
|
1090
1090
|
const { x: r, y: l } = this.MIE;
|
|
1091
1091
|
G([r, l], () => {
|
|
@@ -1096,7 +1096,7 @@ class Qt {
|
|
|
1096
1096
|
const { MIE: e, direction: t, resizing: n, options: s, el: a } = this, r = t?.value || "";
|
|
1097
1097
|
if (!e || !n.value || !r)
|
|
1098
1098
|
return;
|
|
1099
|
-
const { x: l, y: i, elementX: d, elementY: u, elementHeight:
|
|
1099
|
+
const { x: l, y: i, elementX: d, elementY: u, elementHeight: f, elementWidth: h } = e, { onResizing: m } = s, {
|
|
1100
1100
|
minWidth: g = 0,
|
|
1101
1101
|
minHeight: w = 0,
|
|
1102
1102
|
maxWidth: $ = 99999,
|
|
@@ -1119,7 +1119,7 @@ class Qt {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
if (r.includes("n")) {
|
|
1121
1121
|
const T = Math.min(
|
|
1122
|
-
Math.max(
|
|
1122
|
+
Math.max(f.value - u.value, w),
|
|
1123
1123
|
E
|
|
1124
1124
|
);
|
|
1125
1125
|
this.el.style.height = `${T}px`, this.el.style.top = `${i.value}px`;
|
|
@@ -1138,7 +1138,7 @@ class Qt {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
destory() {
|
|
1140
1140
|
const e = document.body;
|
|
1141
|
-
e.style.cursor = "", e.classList.remove(
|
|
1141
|
+
e.style.cursor = "", e.classList.remove(ft), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
const S0 = {
|
|
@@ -1306,9 +1306,9 @@ function D2(o, e, t) {
|
|
|
1306
1306
|
show: () => n("normal"),
|
|
1307
1307
|
hide: () => n("minimized"),
|
|
1308
1308
|
active: (u) => {
|
|
1309
|
-
const
|
|
1309
|
+
const f = u.target.nodeName || "";
|
|
1310
1310
|
["INPUT", "TEXTAREA", "RADIO", "CHECKBOX"].includes(
|
|
1311
|
-
|
|
1311
|
+
f.toUpperCase()
|
|
1312
1312
|
) || (e.zIndex = Math.max(e.zIndex, ++Se));
|
|
1313
1313
|
},
|
|
1314
1314
|
submit: () => t("submit"),
|
|
@@ -1381,7 +1381,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1381
1381
|
props: P2,
|
|
1382
1382
|
emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
|
|
1383
1383
|
setup(o, { expose: e, emit: t }) {
|
|
1384
|
-
const n = o, s = t, a = ye(), r = D(), l = D(), { state: i, maximized: d, minimized: u, normal:
|
|
1384
|
+
const n = o, s = t, a = ye(), r = D(), l = D(), { state: i, maximized: d, minimized: u, normal: f } = A2(n, r), { styles: h, classes: m, wrapperClass: g, modalStyle: w } = V2(n, i), { changeMode: $, active: E, close: T, show: v, hide: _, submit: S, cancel: V } = D2(
|
|
1385
1385
|
n,
|
|
1386
1386
|
i,
|
|
1387
1387
|
s
|
|
@@ -1403,7 +1403,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1403
1403
|
cancel: V,
|
|
1404
1404
|
close: T,
|
|
1405
1405
|
componentInstance: X
|
|
1406
|
-
}), (K, Q) => n.modelValue ? (
|
|
1406
|
+
}), (K, Q) => n.modelValue ? (p(), b(a0, {
|
|
1407
1407
|
key: 0,
|
|
1408
1408
|
to: "body"
|
|
1409
1409
|
}, [
|
|
@@ -1412,12 +1412,12 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1412
1412
|
ref: r,
|
|
1413
1413
|
class: J(["x-dialog__wrapper", c(g)])
|
|
1414
1414
|
}, [
|
|
1415
|
-
n.modal ? (
|
|
1415
|
+
n.modal ? (p(), P("div", {
|
|
1416
1416
|
key: 0,
|
|
1417
1417
|
class: "x-dialog__modal",
|
|
1418
1418
|
style: we(c(w))
|
|
1419
1419
|
}, null, 4)) : x("", !0),
|
|
1420
|
-
Z((
|
|
1420
|
+
Z((p(), b(c(We), O({
|
|
1421
1421
|
ref_key: "panelRef",
|
|
1422
1422
|
ref: l,
|
|
1423
1423
|
class: ["x-dialog", c(m)],
|
|
@@ -1437,7 +1437,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1437
1437
|
]),
|
|
1438
1438
|
actions: y(() => [
|
|
1439
1439
|
A(K.$slots, "actions"),
|
|
1440
|
-
n.minimizable ? (
|
|
1440
|
+
n.minimizable ? (p(), b(c(se), {
|
|
1441
1441
|
key: 0,
|
|
1442
1442
|
icon: c($n),
|
|
1443
1443
|
size: n.size,
|
|
@@ -1446,8 +1446,8 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1446
1446
|
background: "hover",
|
|
1447
1447
|
onClick: Q[0] || (Q[0] = (B) => c($)("minimized"))
|
|
1448
1448
|
}, null, 8, ["icon", "size"])) : x("", !0),
|
|
1449
|
-
n.maximizable ? (
|
|
1450
|
-
c(
|
|
1449
|
+
n.maximizable ? (p(), P(q, { key: 1 }, [
|
|
1450
|
+
c(f) ? (p(), b(c(se), {
|
|
1451
1451
|
key: 1,
|
|
1452
1452
|
icon: c(Bn),
|
|
1453
1453
|
size: n.size,
|
|
@@ -1455,7 +1455,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1455
1455
|
type: "primary",
|
|
1456
1456
|
background: "hover",
|
|
1457
1457
|
onClick: Q[2] || (Q[2] = (B) => c($)("maximized"))
|
|
1458
|
-
}, null, 8, ["icon", "size"])) : (
|
|
1458
|
+
}, null, 8, ["icon", "size"])) : (p(), b(c(se), {
|
|
1459
1459
|
key: 0,
|
|
1460
1460
|
icon: c(Mn),
|
|
1461
1461
|
size: n.size,
|
|
@@ -1465,7 +1465,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1465
1465
|
onClick: Q[1] || (Q[1] = (B) => c($)("normal"))
|
|
1466
1466
|
}, null, 8, ["icon", "size"]))
|
|
1467
1467
|
], 64)) : x("", !0),
|
|
1468
|
-
n.closable ? (
|
|
1468
|
+
n.closable ? (p(), b(c(se), {
|
|
1469
1469
|
key: 2,
|
|
1470
1470
|
icon: c(In),
|
|
1471
1471
|
size: n.size,
|
|
@@ -1477,8 +1477,8 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1477
1477
|
]),
|
|
1478
1478
|
default: y(() => [
|
|
1479
1479
|
A(K.$slots, "default", {}, () => [
|
|
1480
|
-
n.content ? (
|
|
1481
|
-
n.src ? (
|
|
1480
|
+
n.content ? (p(), b(ee(n.content), { key: 0 })) : x("", !0),
|
|
1481
|
+
n.src ? (p(), P("iframe", {
|
|
1482
1482
|
key: 1,
|
|
1483
1483
|
src: n.src,
|
|
1484
1484
|
class: "x-dialog__frame"
|
|
@@ -1500,7 +1500,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1500
1500
|
z(c(j), { align: "center" }, {
|
|
1501
1501
|
default: y(() => [
|
|
1502
1502
|
A(K.$slots, "handle"),
|
|
1503
|
-
n.cancel ? (
|
|
1503
|
+
n.cancel ? (p(), b(c(de), {
|
|
1504
1504
|
key: 0,
|
|
1505
1505
|
type: "default",
|
|
1506
1506
|
size: n.size,
|
|
@@ -1511,7 +1511,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
|
|
|
1511
1511
|
]),
|
|
1512
1512
|
_: 1
|
|
1513
1513
|
}, 8, ["size", "onClick"])) : x("", !0),
|
|
1514
|
-
n.submit ? (
|
|
1514
|
+
n.submit ? (p(), b(c(de), {
|
|
1515
1515
|
key: 1,
|
|
1516
1516
|
type: "primary",
|
|
1517
1517
|
size: n.size,
|
|
@@ -1557,7 +1557,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1557
1557
|
},
|
|
1558
1558
|
setup(o) {
|
|
1559
1559
|
const e = o;
|
|
1560
|
-
return (t, n) => Z((
|
|
1560
|
+
return (t, n) => Z((p(), b(c(j), {
|
|
1561
1561
|
class: J(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
|
|
1562
1562
|
grow: !1,
|
|
1563
1563
|
flex: "",
|
|
@@ -1611,31 +1611,31 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1611
1611
|
n("update:collasped", !t.collasped);
|
|
1612
1612
|
}, u = () => {
|
|
1613
1613
|
n("update:keyword", a.value);
|
|
1614
|
-
},
|
|
1614
|
+
}, f = () => {
|
|
1615
1615
|
n("update:favorite", r.value);
|
|
1616
1616
|
};
|
|
1617
|
-
return (h, m) => (
|
|
1617
|
+
return (h, m) => (p(), b(c(j), {
|
|
1618
1618
|
class: "x-mask-switch-bar",
|
|
1619
1619
|
justify: "space-between",
|
|
1620
1620
|
align: "center"
|
|
1621
1621
|
}, {
|
|
1622
1622
|
default: y(() => [
|
|
1623
|
-
t.collasped ? x("", !0) : (
|
|
1623
|
+
t.collasped ? x("", !0) : (p(), b(c(j), {
|
|
1624
1624
|
key: 0,
|
|
1625
1625
|
class: "x-mask-switch-bar__left",
|
|
1626
1626
|
grow: ""
|
|
1627
1627
|
}, {
|
|
1628
1628
|
default: y(() => [
|
|
1629
|
-
s.value ? x("", !0) : (
|
|
1629
|
+
s.value ? x("", !0) : (p(), b(c(Tt), {
|
|
1630
1630
|
key: 0,
|
|
1631
1631
|
modelValue: r.value,
|
|
1632
1632
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => r.value = g),
|
|
1633
1633
|
class: "x-mask-switch-bar__switch",
|
|
1634
1634
|
"active-icon": c(m0),
|
|
1635
1635
|
"inactive-icon": c(Pn),
|
|
1636
|
-
onChange:
|
|
1636
|
+
onChange: f
|
|
1637
1637
|
}, null, 8, ["modelValue", "active-icon", "inactive-icon"])),
|
|
1638
|
-
s.value ? (
|
|
1638
|
+
s.value ? (p(), b(c(ge), {
|
|
1639
1639
|
key: 1,
|
|
1640
1640
|
modelValue: a.value,
|
|
1641
1641
|
"onUpdate:modelValue": m[1] || (m[1] = (g) => a.value = g),
|
|
@@ -1663,7 +1663,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1663
1663
|
justify: "center"
|
|
1664
1664
|
}, {
|
|
1665
1665
|
default: y(() => [
|
|
1666
|
-
!s.value && !t.collasped ? (
|
|
1666
|
+
!s.value && !t.collasped ? (p(), b(c(se), {
|
|
1667
1667
|
key: 0,
|
|
1668
1668
|
icon: c(Ct),
|
|
1669
1669
|
mode: "icon",
|
|
@@ -1672,7 +1672,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1672
1672
|
circle: "",
|
|
1673
1673
|
onClick: l
|
|
1674
1674
|
}, null, 8, ["icon"])) : x("", !0),
|
|
1675
|
-
t.collasped ? (
|
|
1675
|
+
t.collasped ? (p(), b(c(se), {
|
|
1676
1676
|
key: 1,
|
|
1677
1677
|
icon: c(An),
|
|
1678
1678
|
mode: "icon",
|
|
@@ -1681,7 +1681,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1681
1681
|
onClick: d,
|
|
1682
1682
|
circle: ""
|
|
1683
1683
|
}, null, 8, ["icon"])) : x("", !0),
|
|
1684
|
-
t.collasped ? x("", !0) : (
|
|
1684
|
+
t.collasped ? x("", !0) : (p(), b(c(se), {
|
|
1685
1685
|
key: 2,
|
|
1686
1686
|
icon: c(Vn),
|
|
1687
1687
|
mode: "icon",
|
|
@@ -1709,7 +1709,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1709
1709
|
const e = o, t = Bt(), n = () => {
|
|
1710
1710
|
e.url && t.push(e.url);
|
|
1711
1711
|
};
|
|
1712
|
-
return (s, a) => (
|
|
1712
|
+
return (s, a) => (p(), b(c(j), {
|
|
1713
1713
|
class: J(["x-mask-brand", { "is-collapsed": e.collapsed }]),
|
|
1714
1714
|
align: "center"
|
|
1715
1715
|
}, {
|
|
@@ -1723,7 +1723,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1723
1723
|
}, {
|
|
1724
1724
|
default: y(() => [
|
|
1725
1725
|
A(s.$slots, "logo", {}, () => [
|
|
1726
|
-
e.logo ? (
|
|
1726
|
+
e.logo ? (p(), P("img", {
|
|
1727
1727
|
key: 0,
|
|
1728
1728
|
src: e.logo
|
|
1729
1729
|
}, null, 8, U2)) : x("", !0)
|
|
@@ -1737,7 +1737,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1737
1737
|
align: "center"
|
|
1738
1738
|
}, {
|
|
1739
1739
|
default: y(() => [
|
|
1740
|
-
e.title ? (
|
|
1740
|
+
e.title ? (p(), P("span", X2, [
|
|
1741
1741
|
A(s.$slots, "title", {}, () => [
|
|
1742
1742
|
U(L(e.title), 1)
|
|
1743
1743
|
])
|
|
@@ -1776,7 +1776,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1776
1776
|
]
|
|
1777
1777
|
}
|
|
1778
1778
|
]), l = C(() => {
|
|
1779
|
-
const d = (t.keyword || "").trim(), u = d ? (t.flatMenus || []).filter((
|
|
1779
|
+
const d = (t.keyword || "").trim(), u = d ? (t.flatMenus || []).filter((f) => f.title?.includes(d)) : [];
|
|
1780
1780
|
return [
|
|
1781
1781
|
{
|
|
1782
1782
|
id: je,
|
|
@@ -1794,7 +1794,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1794
1794
|
}), i = (d) => {
|
|
1795
1795
|
s("select", d);
|
|
1796
1796
|
};
|
|
1797
|
-
return (d, u) => (
|
|
1797
|
+
return (d, u) => (p(), P(q, null, [
|
|
1798
1798
|
Z(z(c(j), {
|
|
1799
1799
|
class: "x-mask-menu",
|
|
1800
1800
|
grow: "",
|
|
@@ -1832,7 +1832,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1832
1832
|
}, null, 8, ["data", "default-icon", "default-active"]), [
|
|
1833
1833
|
[re, !t.collapse]
|
|
1834
1834
|
]),
|
|
1835
|
-
n.value.length ? x("", !0) : (
|
|
1835
|
+
n.value.length ? x("", !0) : (p(), b(c(r0), {
|
|
1836
1836
|
key: 0,
|
|
1837
1837
|
description: "暂无菜单数据"
|
|
1838
1838
|
}))
|
|
@@ -1889,7 +1889,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1889
1889
|
}, 512), [
|
|
1890
1890
|
[re, t.favorite && !t.keyword]
|
|
1891
1891
|
]),
|
|
1892
|
-
t.keyword ? Z((
|
|
1892
|
+
t.keyword ? Z((p(), b(c(j), {
|
|
1893
1893
|
key: 0,
|
|
1894
1894
|
class: "x-mask-menu",
|
|
1895
1895
|
grow: "",
|
|
@@ -2035,7 +2035,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2035
2035
|
emits: ["click", "remove", "refresh", "toggleFavorite", "dialog"],
|
|
2036
2036
|
setup(o, { emit: e }) {
|
|
2037
2037
|
const t = o, n = e, s = (u) => {
|
|
2038
|
-
const
|
|
2038
|
+
const f = !!t.favorites.find(
|
|
2039
2039
|
(h) => h === u.menu || h.id === u.menu?.id
|
|
2040
2040
|
);
|
|
2041
2041
|
return [
|
|
@@ -2047,7 +2047,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2047
2047
|
},
|
|
2048
2048
|
"|",
|
|
2049
2049
|
{
|
|
2050
|
-
icon:
|
|
2050
|
+
icon: f ? m0 : h0,
|
|
2051
2051
|
label: "收藏",
|
|
2052
2052
|
name: "favorite",
|
|
2053
2053
|
value: u.menu,
|
|
@@ -2062,16 +2062,16 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2062
2062
|
}
|
|
2063
2063
|
];
|
|
2064
2064
|
}, a = (u) => {
|
|
2065
|
-
const
|
|
2066
|
-
if (
|
|
2065
|
+
const f = u.paneName;
|
|
2066
|
+
if (f === t.home.id) {
|
|
2067
2067
|
n("click", t.home);
|
|
2068
2068
|
return;
|
|
2069
2069
|
}
|
|
2070
|
-
const h = t.tabs.find((m) => m.id ===
|
|
2070
|
+
const h = t.tabs.find((m) => m.id === f);
|
|
2071
2071
|
h && n("click", h);
|
|
2072
2072
|
}, r = (u) => {
|
|
2073
|
-
const
|
|
2074
|
-
|
|
2073
|
+
const f = t.tabs.find((h) => h.id === u);
|
|
2074
|
+
f && n("remove", f);
|
|
2075
2075
|
}, l = (u) => {
|
|
2076
2076
|
switch (u.name) {
|
|
2077
2077
|
case "refresh":
|
|
@@ -2084,12 +2084,12 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2084
2084
|
n("dialog", u.value);
|
|
2085
2085
|
break;
|
|
2086
2086
|
}
|
|
2087
|
-
}, i = (u,
|
|
2088
|
-
|
|
2089
|
-
}, d = (u,
|
|
2090
|
-
|
|
2087
|
+
}, i = (u, f) => {
|
|
2088
|
+
f.dataTransfer && (f.dataTransfer.setData("tab", u.id), f.target && f.target.classList.add("is-dagging"));
|
|
2089
|
+
}, d = (u, f) => {
|
|
2090
|
+
f.target && f.target.classList.remove("is-dagging");
|
|
2091
2091
|
};
|
|
2092
|
-
return (u,
|
|
2092
|
+
return (u, f) => (p(), b(c(j), {
|
|
2093
2093
|
ref: "tabsRef",
|
|
2094
2094
|
class: "x-mask-tabs",
|
|
2095
2095
|
height: "100%",
|
|
@@ -2106,19 +2106,19 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2106
2106
|
onTabClick: a
|
|
2107
2107
|
}, {
|
|
2108
2108
|
default: y(() => [
|
|
2109
|
-
t.home ? (
|
|
2109
|
+
t.home ? (p(), b(c(bt), {
|
|
2110
2110
|
key: 0,
|
|
2111
2111
|
name: t.home.id
|
|
2112
2112
|
}, {
|
|
2113
2113
|
label: y(() => [
|
|
2114
2114
|
N("div", q2, [
|
|
2115
|
-
t.home.icon ? (
|
|
2116
|
-
t.home.title ? (
|
|
2115
|
+
t.home.icon ? (p(), b(ee(c(ze)(t.home.icon)), { key: 0 })) : x("", !0),
|
|
2116
|
+
t.home.title ? (p(), P("span", Q2, L(t.home.title), 1)) : x("", !0)
|
|
2117
2117
|
])
|
|
2118
2118
|
]),
|
|
2119
2119
|
_: 1
|
|
2120
2120
|
}, 8, ["name"])) : x("", !0),
|
|
2121
|
-
(
|
|
2121
|
+
(p(!0), P(q, null, te(t.tabs, (h) => (p(), b(c(bt), {
|
|
2122
2122
|
key: h.id,
|
|
2123
2123
|
name: h.id,
|
|
2124
2124
|
lazy: "",
|
|
@@ -2139,8 +2139,8 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2139
2139
|
onDragstart: (m) => i(h, m),
|
|
2140
2140
|
onDragend: (m) => d(h, m)
|
|
2141
2141
|
}, [
|
|
2142
|
-
h.icon ? (
|
|
2143
|
-
h.title ? (
|
|
2142
|
+
h.icon ? (p(), b(ee(c(ze)(h.icon)), { key: 0 })) : x("", !0),
|
|
2143
|
+
h.title ? (p(), P("span", eo, L(h.title), 1)) : x("", !0)
|
|
2144
2144
|
], 40, Z2)
|
|
2145
2145
|
]),
|
|
2146
2146
|
default: y(() => [
|
|
@@ -2168,7 +2168,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2168
2168
|
__name: "ThemeSwitch",
|
|
2169
2169
|
setup(o) {
|
|
2170
2170
|
const e = Qn();
|
|
2171
|
-
return (t, n) => (
|
|
2171
|
+
return (t, n) => (p(), b(c(Tt), {
|
|
2172
2172
|
class: "x-mask-theme-switch",
|
|
2173
2173
|
modelValue: c(e),
|
|
2174
2174
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => Ke(e) ? e.value = s : null),
|
|
@@ -2194,8 +2194,8 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2194
2194
|
],
|
|
2195
2195
|
setup(o, { emit: e }) {
|
|
2196
2196
|
const t = o, n = e, s = C(() => {
|
|
2197
|
-
const d = t.tabs.map((u,
|
|
2198
|
-
divided:
|
|
2197
|
+
const d = t.tabs.map((u, f) => ({
|
|
2198
|
+
divided: f === 0,
|
|
2199
2199
|
label: u.title,
|
|
2200
2200
|
command: u
|
|
2201
2201
|
}));
|
|
@@ -2229,7 +2229,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2229
2229
|
}, i = (d, u) => {
|
|
2230
2230
|
n("actionCommand", d, u);
|
|
2231
2231
|
};
|
|
2232
|
-
return (d, u) => (
|
|
2232
|
+
return (d, u) => (p(), b(c(j), {
|
|
2233
2233
|
class: "x-mask-toolbar",
|
|
2234
2234
|
align: "center"
|
|
2235
2235
|
}, {
|
|
@@ -2243,12 +2243,12 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2243
2243
|
background: "hover",
|
|
2244
2244
|
onCommand: r
|
|
2245
2245
|
}, {
|
|
2246
|
-
item: y(({ item:
|
|
2246
|
+
item: y(({ item: f }) => [
|
|
2247
2247
|
N("span", oo, [
|
|
2248
|
-
U(L(
|
|
2249
|
-
["other", "all"].includes(
|
|
2248
|
+
U(L(f.label) + " ", 1),
|
|
2249
|
+
["other", "all"].includes(f.command) ? x("", !0) : (p(), b(c(ae), {
|
|
2250
2250
|
key: 0,
|
|
2251
|
-
onClick: i0((h) => a(
|
|
2251
|
+
onClick: i0((h) => a(f), ["stop"]),
|
|
2252
2252
|
icon: c(g0)
|
|
2253
2253
|
}, null, 8, ["onClick", "icon"]))
|
|
2254
2254
|
])
|
|
@@ -2256,7 +2256,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2256
2256
|
_: 1
|
|
2257
2257
|
}, 8, ["icon", "menus"]),
|
|
2258
2258
|
z(c(ue), { direction: "vertical" }),
|
|
2259
|
-
t.actions ? (
|
|
2259
|
+
t.actions ? (p(), b(c(At), {
|
|
2260
2260
|
key: 0,
|
|
2261
2261
|
circle: "",
|
|
2262
2262
|
mode: "icon",
|
|
@@ -2266,12 +2266,12 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2266
2266
|
onClick: l,
|
|
2267
2267
|
onCommand: i
|
|
2268
2268
|
}, null, 8, ["items"])) : x("", !0),
|
|
2269
|
-
t.actions ? (
|
|
2269
|
+
t.actions ? (p(), b(c(ue), {
|
|
2270
2270
|
key: 1,
|
|
2271
2271
|
direction: "vertical"
|
|
2272
2272
|
})) : x("", !0),
|
|
2273
|
-
t.theme ? (
|
|
2274
|
-
t.theme ? (
|
|
2273
|
+
t.theme ? (p(), b(no, { key: 2 })) : x("", !0),
|
|
2274
|
+
t.theme ? (p(), b(c(ue), {
|
|
2275
2275
|
key: 3,
|
|
2276
2276
|
direction: "vertical"
|
|
2277
2277
|
})) : x("", !0),
|
|
@@ -2287,7 +2287,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2287
2287
|
},
|
|
2288
2288
|
setup(o) {
|
|
2289
2289
|
const e = o;
|
|
2290
|
-
return (t, n) => (
|
|
2290
|
+
return (t, n) => (p(), b(c(u0), {
|
|
2291
2291
|
width: 200,
|
|
2292
2292
|
"popper-class": "x-mask-avatar__popper",
|
|
2293
2293
|
disabled: !t.$slots.default
|
|
@@ -2315,8 +2315,9 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2315
2315
|
},
|
|
2316
2316
|
setup(o) {
|
|
2317
2317
|
const e = o;
|
|
2318
|
-
return (t, n) => (
|
|
2318
|
+
return (t, n) => (p(), b(c(j), {
|
|
2319
2319
|
class: "x-mask__content",
|
|
2320
|
+
overflow: "auto",
|
|
2320
2321
|
flex: !1,
|
|
2321
2322
|
grow: "",
|
|
2322
2323
|
padding: !1
|
|
@@ -2325,10 +2326,10 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2325
2326
|
A(t.$slots, "default"),
|
|
2326
2327
|
z(c(i2), null, {
|
|
2327
2328
|
default: y(({ Component: s, route: a }) => [
|
|
2328
|
-
(
|
|
2329
|
+
(p(), b(Z0, {
|
|
2329
2330
|
exclude: e.exclude
|
|
2330
2331
|
}, [
|
|
2331
|
-
s ? (
|
|
2332
|
+
s ? (p(), b(ee(e.createView(s, a)), {
|
|
2332
2333
|
key: a.fullPath
|
|
2333
2334
|
})) : x("", !0)
|
|
2334
2335
|
], 1032, ["exclude"]))
|
|
@@ -2397,10 +2398,10 @@ function ro(o, e) {
|
|
|
2397
2398
|
n.value = typeof o.menus == "function" ? await o.menus() || [] : o.menus ?? [], s.value = typeof o.favorites == "function" ? await o.favorites() || [] : o.favorites ?? [];
|
|
2398
2399
|
}, u = (g) => {
|
|
2399
2400
|
s.value = [g, ...s.value], o.addFavorite && o.addFavorite(g);
|
|
2400
|
-
},
|
|
2401
|
+
}, f = (g) => {
|
|
2401
2402
|
s.value = s.value.filter((w) => w.id !== g.id), o.removeFavorite && o.removeFavorite(g);
|
|
2402
2403
|
}, h = (g) => !!s.value.find((w) => w === g || w.id === g.id), m = (g) => {
|
|
2403
|
-
h(g) ?
|
|
2404
|
+
h(g) ? f(g) : u(g);
|
|
2404
2405
|
};
|
|
2405
2406
|
return Et(d), {
|
|
2406
2407
|
menus: n,
|
|
@@ -2412,9 +2413,9 @@ function ro(o, e) {
|
|
|
2412
2413
|
};
|
|
2413
2414
|
}
|
|
2414
2415
|
function co(o, e, t, n, s) {
|
|
2415
|
-
const a = C0(), r = Bt(), l = {}, i = D([]), d = D(), { width: u } = y0(d),
|
|
2416
|
-
() => i.value.slice(0,
|
|
2417
|
-
), m = C(() => i.value.slice(
|
|
2416
|
+
const a = C0(), r = Bt(), l = {}, i = D([]), d = D(), { width: u } = y0(d), f = C(() => Math.floor(u.value / W2)), h = C(
|
|
2417
|
+
() => i.value.slice(0, f.value).filter((I) => !I.dialog)
|
|
2418
|
+
), m = C(() => i.value.slice(f.value)), g = (I) => t.value.find((M) => M.url === I), w = (I) => a.fullPath === I.url, $ = (I) => s.value.id === I ? s.value : i.value.find((M) => M.id === I), E = D(""), T = C(() => $(E.value)), v = (I) => {
|
|
2418
2419
|
r.push(I.url).catch((M) => M);
|
|
2419
2420
|
}, _ = (I) => {
|
|
2420
2421
|
E.value = I.id, a.fullPath !== I.url && v(I);
|
|
@@ -2511,7 +2512,7 @@ function uo(o) {
|
|
|
2511
2512
|
const H = C(() => n[S] || document.body), X = C(() => !n[S]), Y = C(() => !t.value.includes(V));
|
|
2512
2513
|
return Ve(
|
|
2513
2514
|
l2,
|
|
2514
|
-
|
|
2515
|
+
pe({ ..._ })
|
|
2515
2516
|
), () => Y.value ? ce(
|
|
2516
2517
|
a0,
|
|
2517
2518
|
{
|
|
@@ -2524,22 +2525,22 @@ function uo(o) {
|
|
|
2524
2525
|
};
|
|
2525
2526
|
return e.set(S, k), k;
|
|
2526
2527
|
}
|
|
2527
|
-
},
|
|
2528
|
+
}, f = (v) => {
|
|
2528
2529
|
v.dialog = void 0, delete n[v.url];
|
|
2529
2530
|
const _ = a[v.id];
|
|
2530
2531
|
_ && (_.destroy(), delete a[v.id], r(v));
|
|
2531
2532
|
}, h = (v = []) => {
|
|
2532
2533
|
v.forEach((_) => {
|
|
2533
|
-
|
|
2534
|
+
f(_);
|
|
2534
2535
|
});
|
|
2535
2536
|
}, m = async (v) => {
|
|
2536
2537
|
v.dialog = {
|
|
2537
2538
|
...v.dialog,
|
|
2538
2539
|
onMinimized: () => {
|
|
2539
|
-
|
|
2540
|
+
f(v);
|
|
2540
2541
|
},
|
|
2541
2542
|
onClose: async () => {
|
|
2542
|
-
|
|
2543
|
+
f(v), d.value = d.value.filter((S) => S.id !== v.id);
|
|
2543
2544
|
}
|
|
2544
2545
|
}, r(v);
|
|
2545
2546
|
const _ = Vt(
|
|
@@ -2582,7 +2583,7 @@ function uo(o) {
|
|
|
2582
2583
|
exclude: t,
|
|
2583
2584
|
cleanCache: w,
|
|
2584
2585
|
hasDialog: T,
|
|
2585
|
-
closeDialog:
|
|
2586
|
+
closeDialog: f,
|
|
2586
2587
|
closeDialogs: h
|
|
2587
2588
|
};
|
|
2588
2589
|
}
|
|
@@ -2592,7 +2593,7 @@ const Ea = /* @__PURE__ */ R({
|
|
|
2592
2593
|
props: J2,
|
|
2593
2594
|
emits: ["select", "actionClick", "actionCommand"],
|
|
2594
2595
|
setup(o, { emit: e }) {
|
|
2595
|
-
const t = o, n = e, s = lo(t), { collapsed: a, keyword: r, favorite: l } = io(), { menus: i, favorites: d, flatMenus: u, active:
|
|
2596
|
+
const t = o, n = e, s = lo(t), { collapsed: a, keyword: r, favorite: l } = io(), { menus: i, favorites: d, flatMenus: u, active: f, select: h, toggleFavorite: m } = ro(t, n), {
|
|
2596
2597
|
tabRef: g,
|
|
2597
2598
|
showTabs: w,
|
|
2598
2599
|
currentTab: $,
|
|
@@ -2606,7 +2607,7 @@ const Ea = /* @__PURE__ */ R({
|
|
|
2606
2607
|
removeOtherTabs: H,
|
|
2607
2608
|
dropdownTabs: X,
|
|
2608
2609
|
moveToShow: Y
|
|
2609
|
-
} = co(t, n, u,
|
|
2610
|
+
} = co(t, n, u, f, s), { createView: K, openDialog: Q, refresh: B, exclude: I, cleanCache: M, closeDialogs: F } = uo({
|
|
2610
2611
|
tabs: v,
|
|
2611
2612
|
updateTab: _,
|
|
2612
2613
|
isCurrentTab: S,
|
|
@@ -2629,14 +2630,14 @@ const Ea = /* @__PURE__ */ R({
|
|
|
2629
2630
|
flatMenus: u,
|
|
2630
2631
|
favorites: d,
|
|
2631
2632
|
updateTab: _,
|
|
2632
|
-
active:
|
|
2633
|
+
active: f,
|
|
2633
2634
|
currentTab: $
|
|
2634
|
-
}), (W, le) => (
|
|
2635
|
+
}), (W, le) => (p(), b(c(j), {
|
|
2635
2636
|
class: J(["x-mask", { "is-disabled": t.disabled }]),
|
|
2636
2637
|
fit: ""
|
|
2637
2638
|
}, {
|
|
2638
2639
|
default: y(() => [
|
|
2639
|
-
t.disabled ? (
|
|
2640
|
+
t.disabled ? (p(), b(Zt, {
|
|
2640
2641
|
key: 1,
|
|
2641
2642
|
createView: c(K),
|
|
2642
2643
|
exclude: c(I)
|
|
@@ -2645,7 +2646,7 @@ const Ea = /* @__PURE__ */ R({
|
|
|
2645
2646
|
W.$slots.default ? A(W.$slots, "default", { key: 0 }) : x("", !0)
|
|
2646
2647
|
]),
|
|
2647
2648
|
_: 3
|
|
2648
|
-
}, 8, ["createView", "exclude"])) : (
|
|
2649
|
+
}, 8, ["createView", "exclude"])) : (p(), P(q, { key: 0 }, [
|
|
2649
2650
|
z(O2, { collapsed: c(a) }, {
|
|
2650
2651
|
brand: y(() => [
|
|
2651
2652
|
z(K2, {
|
|
@@ -2671,7 +2672,7 @@ const Ea = /* @__PURE__ */ R({
|
|
|
2671
2672
|
favorites: c(d),
|
|
2672
2673
|
flatMenus: c(u),
|
|
2673
2674
|
menus: c(i),
|
|
2674
|
-
active: c(
|
|
2675
|
+
active: c(f),
|
|
2675
2676
|
onSelect: c(h)
|
|
2676
2677
|
}, null, 8, ["collapse", "keyword", "favorite", "favorites", "flatMenus", "menus", "active", "onSelect"])
|
|
2677
2678
|
]),
|
|
@@ -2682,7 +2683,8 @@ const Ea = /* @__PURE__ */ R({
|
|
|
2682
2683
|
grow: "",
|
|
2683
2684
|
shrink: "",
|
|
2684
2685
|
flex: "",
|
|
2685
|
-
direction: "column"
|
|
2686
|
+
direction: "column",
|
|
2687
|
+
overflow: "hidden"
|
|
2686
2688
|
}, {
|
|
2687
2689
|
default: y(() => [
|
|
2688
2690
|
z(c(j), {
|
|
@@ -2762,16 +2764,16 @@ function Ta(o = {}) {
|
|
|
2762
2764
|
mask: n
|
|
2763
2765
|
};
|
|
2764
2766
|
}
|
|
2765
|
-
const
|
|
2767
|
+
const fo = /* @__PURE__ */ R({
|
|
2766
2768
|
__name: "SelectEditor",
|
|
2767
2769
|
props: {
|
|
2768
2770
|
options: { default: () => [] }
|
|
2769
2771
|
},
|
|
2770
2772
|
setup(o) {
|
|
2771
2773
|
const e = o;
|
|
2772
|
-
return (t, n) => (
|
|
2774
|
+
return (t, n) => (p(), b(c(d0), tt(nt(t.$attrs)), {
|
|
2773
2775
|
default: y(() => [
|
|
2774
|
-
(
|
|
2776
|
+
(p(!0), P(q, null, te(e.options, (s, a) => (p(), b(c(f0), O({
|
|
2775
2777
|
key: `item_${a}_${s.value}`,
|
|
2776
2778
|
ref_for: !0
|
|
2777
2779
|
}, s), ve({ _: 2 }, [
|
|
@@ -2787,7 +2789,7 @@ const po = /* @__PURE__ */ R({
|
|
|
2787
2789
|
_: 3
|
|
2788
2790
|
}, 16));
|
|
2789
2791
|
}
|
|
2790
|
-
}),
|
|
2792
|
+
}), po = /* @__PURE__ */ R({
|
|
2791
2793
|
__name: "CheckboxEditor",
|
|
2792
2794
|
props: {
|
|
2793
2795
|
options: { default: () => [] },
|
|
@@ -2797,9 +2799,9 @@ const po = /* @__PURE__ */ R({
|
|
|
2797
2799
|
const e = o, t = C(
|
|
2798
2800
|
() => Ne(e.button ? cn : un)
|
|
2799
2801
|
);
|
|
2800
|
-
return (n, s) => (
|
|
2802
|
+
return (n, s) => (p(), b(c(dn), tt(nt(n.$attrs)), {
|
|
2801
2803
|
default: y(() => [
|
|
2802
|
-
(
|
|
2804
|
+
(p(!0), P(q, null, te(e.options, (a, r) => (p(), b(ee(t.value), O({
|
|
2803
2805
|
key: `item_${r}_${a.value}`,
|
|
2804
2806
|
ref_for: !0
|
|
2805
2807
|
}, a), {
|
|
@@ -2820,11 +2822,11 @@ const po = /* @__PURE__ */ R({
|
|
|
2820
2822
|
},
|
|
2821
2823
|
setup(o) {
|
|
2822
2824
|
const e = o, t = C(
|
|
2823
|
-
() => Ne(e.button ?
|
|
2825
|
+
() => Ne(e.button ? fn : pn)
|
|
2824
2826
|
);
|
|
2825
|
-
return (n, s) => (
|
|
2827
|
+
return (n, s) => (p(), b(c(mn), tt(nt(n.$attrs)), {
|
|
2826
2828
|
default: y(() => [
|
|
2827
|
-
(
|
|
2829
|
+
(p(!0), P(q, null, te(e.options, (a, r) => (p(), b(ee(t.value), O({
|
|
2828
2830
|
key: `item_${r}_${a.value}`,
|
|
2829
2831
|
ref_for: !0
|
|
2830
2832
|
}, a), {
|
|
@@ -2860,13 +2862,13 @@ const po = /* @__PURE__ */ R({
|
|
|
2860
2862
|
defaultValue: ""
|
|
2861
2863
|
},
|
|
2862
2864
|
select: {
|
|
2863
|
-
component:
|
|
2865
|
+
component: fo,
|
|
2864
2866
|
props: {
|
|
2865
2867
|
clearable: !0
|
|
2866
2868
|
}
|
|
2867
2869
|
},
|
|
2868
2870
|
checkbox: {
|
|
2869
|
-
component:
|
|
2871
|
+
component: po,
|
|
2870
2872
|
props: {},
|
|
2871
2873
|
defaultValue: []
|
|
2872
2874
|
},
|
|
@@ -3046,12 +3048,12 @@ function vo(o, e, t, n, s) {
|
|
|
3046
3048
|
editor: i = "text",
|
|
3047
3049
|
placeholder: d,
|
|
3048
3050
|
label: u = "...",
|
|
3049
|
-
disabled:
|
|
3051
|
+
disabled: f,
|
|
3050
3052
|
readonly: h
|
|
3051
3053
|
} = o, m = {
|
|
3052
3054
|
...o.props,
|
|
3053
3055
|
placeholder: d || (d === null ? void 0 : `请输入${u}`),
|
|
3054
|
-
disabled:
|
|
3056
|
+
disabled: f,
|
|
3055
3057
|
readonly: h,
|
|
3056
3058
|
options: a.value,
|
|
3057
3059
|
onFocus: () => e("focus"),
|
|
@@ -3079,7 +3081,7 @@ const yo = {
|
|
|
3079
3081
|
props: go,
|
|
3080
3082
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
3081
3083
|
setup(o, { expose: e, emit: t }) {
|
|
3082
|
-
const n = o, s = t, a = ke(B0, null), r = ke(_n, null), l = ke(I0, null), i = C(() => !a?.proxy || !l ? n.visible : typeof n.visible == "function" ? n.visible(l) : Mt(n.visible) ? Object.entries(n.visible).every(([H, X]) => Ye(l, H) === X) : n.visible), d = () => a?.proxy && l && n.name ? Ye(l, n.name) ?? n.modelValue : n.modelValue, u = D(d()), { editor:
|
|
3084
|
+
const n = o, s = t, a = ke(B0, null), r = ke(_n, null), l = ke(I0, null), i = C(() => !a?.proxy || !l ? n.visible : typeof n.visible == "function" ? n.visible(l) : Mt(n.visible) ? Object.entries(n.visible).every(([H, X]) => Ye(l, H) === X) : n.visible), d = () => a?.proxy && l && n.name ? Ye(l, n.name) ?? n.modelValue : n.modelValue, u = D(d()), { editor: f } = vo(
|
|
3083
3085
|
n,
|
|
3084
3086
|
s,
|
|
3085
3087
|
i,
|
|
@@ -3099,12 +3101,12 @@ const yo = {
|
|
|
3099
3101
|
}), T = C(() => {
|
|
3100
3102
|
const k = a?.proxy;
|
|
3101
3103
|
return {
|
|
3102
|
-
width: n.width ?
|
|
3104
|
+
width: n.width ? fe(n.width) : k && k.inline && k.inlineColumns ? `${100 / k.inlineColumns}%` : null
|
|
3103
3105
|
};
|
|
3104
3106
|
}), v = C(() => ({
|
|
3105
3107
|
right: typeof n.tooltipPosition == "number" ? `${n.tooltipPosition}px` : void 0
|
|
3106
3108
|
})), _ = C(() => ({
|
|
3107
|
-
...
|
|
3109
|
+
...f.value.props,
|
|
3108
3110
|
modelValue: u.value,
|
|
3109
3111
|
"onUpdate:modelValue": (k) => {
|
|
3110
3112
|
u.value = k;
|
|
@@ -3138,7 +3140,7 @@ const yo = {
|
|
|
3138
3140
|
blur: () => {
|
|
3139
3141
|
m.value?.foucs && m.value.blur();
|
|
3140
3142
|
}
|
|
3141
|
-
}), (k, H) => i.value ? (
|
|
3143
|
+
}), (k, H) => i.value ? (p(), b(c(bn), O({
|
|
3142
3144
|
key: 0,
|
|
3143
3145
|
class: ["x-field", E.value],
|
|
3144
3146
|
ref_key: "itemRef",
|
|
@@ -3150,7 +3152,7 @@ const yo = {
|
|
|
3150
3152
|
}, k.$attrs), ve({
|
|
3151
3153
|
error: y(({ error: X }) => [
|
|
3152
3154
|
A(k.$slots, "error", { error: X }, () => [
|
|
3153
|
-
c(a)?.props.tooltipMessage ?? n.tooltipMessage ? (
|
|
3155
|
+
c(a)?.props.tooltipMessage ?? n.tooltipMessage ? (p(), P("div", {
|
|
3154
3156
|
key: 0,
|
|
3155
3157
|
class: "x-field__info",
|
|
3156
3158
|
style: we(v.value)
|
|
@@ -3167,7 +3169,7 @@ const yo = {
|
|
|
3167
3169
|
]),
|
|
3168
3170
|
_: 2
|
|
3169
3171
|
}, 1040, ["content"])
|
|
3170
|
-
], 4)) : (
|
|
3172
|
+
], 4)) : (p(), P("div", yo, L($(X)), 1))
|
|
3171
3173
|
])
|
|
3172
3174
|
]),
|
|
3173
3175
|
default: y(() => [
|
|
@@ -3175,14 +3177,14 @@ const yo = {
|
|
|
3175
3177
|
class: J(["x-field__editor_wrap", { "is-inline": n.inline }])
|
|
3176
3178
|
}, [
|
|
3177
3179
|
A(k.$slots, "editor", { editor: _.value }, () => [
|
|
3178
|
-
c(
|
|
3180
|
+
c(f).component ? (p(), b(ee(c(f).component), O({
|
|
3179
3181
|
key: 0,
|
|
3180
3182
|
class: "x-field__editor",
|
|
3181
3183
|
ref_key: "editorRef",
|
|
3182
3184
|
ref: m,
|
|
3183
3185
|
modelValue: u.value,
|
|
3184
3186
|
"onUpdate:modelValue": H[0] || (H[0] = (X) => u.value = X)
|
|
3185
|
-
}, c(
|
|
3187
|
+
}, c(f).props), ve({ _: 2 }, [
|
|
3186
3188
|
k.$slots.option ? {
|
|
3187
3189
|
name: "option",
|
|
3188
3190
|
fn: y(({ option: X }) => [
|
|
@@ -3192,7 +3194,7 @@ const yo = {
|
|
|
3192
3194
|
} : void 0
|
|
3193
3195
|
]), 1040, ["modelValue"])) : x("", !0)
|
|
3194
3196
|
]),
|
|
3195
|
-
n.tip || k.$slots.tip ? (
|
|
3197
|
+
n.tip || k.$slots.tip ? (p(), P("div", wo, [
|
|
3196
3198
|
A(k.$slots, "tip", {}, () => [
|
|
3197
3199
|
U(L(n.tip), 1)
|
|
3198
3200
|
])
|
|
@@ -3276,24 +3278,24 @@ const yo = {
|
|
|
3276
3278
|
const n = o, s = t, a = ye(), r = D(), l = ot(n.model || {}), i = D(!1);
|
|
3277
3279
|
Ve(B0, a), Ve(I0, l), G(
|
|
3278
3280
|
() => n.model,
|
|
3279
|
-
(
|
|
3280
|
-
Object.assign(l,
|
|
3281
|
+
(f) => {
|
|
3282
|
+
Object.assign(l, f);
|
|
3281
3283
|
},
|
|
3282
3284
|
{ deep: !0 }
|
|
3283
3285
|
), G(l, () => {
|
|
3284
|
-
s("change",
|
|
3286
|
+
s("change", pe(l));
|
|
3285
3287
|
});
|
|
3286
3288
|
const d = async () => {
|
|
3287
|
-
await r.value.validate().catch(() => !1) && (s("submit",
|
|
3288
|
-
}, u = (
|
|
3289
|
-
r.value.resetFields(
|
|
3289
|
+
await r.value.validate().catch(() => !1) && (s("submit", pe(l)), n.submitMethod && (i.value = !0, await n.submitMethod(pe(l)), i.value = !1));
|
|
3290
|
+
}, u = (f) => {
|
|
3291
|
+
r.value.resetFields(f), s("reset");
|
|
3290
3292
|
};
|
|
3291
3293
|
return e({
|
|
3292
3294
|
formRef: r,
|
|
3293
3295
|
model: l,
|
|
3294
3296
|
submit: d,
|
|
3295
3297
|
reset: u
|
|
3296
|
-
}), (
|
|
3298
|
+
}), (f, h) => (p(), b(c(Cn), O({
|
|
3297
3299
|
ref_key: "formRef",
|
|
3298
3300
|
ref: r,
|
|
3299
3301
|
class: "x-form",
|
|
@@ -3302,18 +3304,18 @@ const yo = {
|
|
|
3302
3304
|
onKeyup: en(d, ["enter"]),
|
|
3303
3305
|
onSubmit: h[1] || (h[1] = i0(() => {
|
|
3304
3306
|
}, ["stop", "prevent"]))
|
|
3305
|
-
},
|
|
3307
|
+
}, f.$attrs), {
|
|
3306
3308
|
default: y(() => [
|
|
3307
|
-
A(
|
|
3308
|
-
n.footer ? (
|
|
3309
|
+
A(f.$slots, "default"),
|
|
3310
|
+
n.footer ? (p(), b(c(_o), {
|
|
3309
3311
|
key: 0,
|
|
3310
3312
|
editor: "none",
|
|
3311
3313
|
class: "x-form__footer",
|
|
3312
3314
|
label: " "
|
|
3313
3315
|
}, {
|
|
3314
3316
|
editor: y(() => [
|
|
3315
|
-
A(
|
|
3316
|
-
n.submitText ? (
|
|
3317
|
+
A(f.$slots, "footer", {}, () => [
|
|
3318
|
+
n.submitText ? (p(), b(c(de), {
|
|
3317
3319
|
key: 0,
|
|
3318
3320
|
loading: i.value,
|
|
3319
3321
|
type: "primary",
|
|
@@ -3324,7 +3326,7 @@ const yo = {
|
|
|
3324
3326
|
]),
|
|
3325
3327
|
_: 1
|
|
3326
3328
|
}, 8, ["loading"])) : x("", !0),
|
|
3327
|
-
n.resetText ? (
|
|
3329
|
+
n.resetText ? (p(), b(c(de), {
|
|
3328
3330
|
key: 1,
|
|
3329
3331
|
type: "default",
|
|
3330
3332
|
onClick: h[0] || (h[0] = () => u())
|
|
@@ -3334,7 +3336,7 @@ const yo = {
|
|
|
3334
3336
|
]),
|
|
3335
3337
|
_: 1
|
|
3336
3338
|
})) : x("", !0),
|
|
3337
|
-
A(
|
|
3339
|
+
A(f.$slots, "action")
|
|
3338
3340
|
])
|
|
3339
3341
|
]),
|
|
3340
3342
|
_: 3
|
|
@@ -3392,7 +3394,7 @@ const yo = {
|
|
|
3392
3394
|
s("update:modelValue", !1), s("close");
|
|
3393
3395
|
}, u = async (m) => {
|
|
3394
3396
|
s("submit", m), n.submitMethod ? await n.submitMethod(m) && d() : d();
|
|
3395
|
-
},
|
|
3397
|
+
}, f = C(
|
|
3396
3398
|
() => n.formProps?.disabled ? !1 : n.submit
|
|
3397
3399
|
), h = C(
|
|
3398
3400
|
() => n.formProps?.disabled ? !1 : n.cancel
|
|
@@ -3401,12 +3403,12 @@ const yo = {
|
|
|
3401
3403
|
$vtjEl: l,
|
|
3402
3404
|
formRef: a,
|
|
3403
3405
|
dialogRef: r
|
|
3404
|
-
}), (m, g) => (
|
|
3406
|
+
}), (m, g) => (p(), b(c(z0), O({
|
|
3405
3407
|
ref_key: "dialogRef",
|
|
3406
3408
|
ref: r,
|
|
3407
3409
|
class: "x-dialog-form",
|
|
3408
3410
|
"model-value": n.modelValue,
|
|
3409
|
-
submit:
|
|
3411
|
+
submit: f.value,
|
|
3410
3412
|
cancel: h.value,
|
|
3411
3413
|
size: n.size,
|
|
3412
3414
|
onSubmit: i,
|
|
@@ -3483,10 +3485,10 @@ const yo = {
|
|
|
3483
3485
|
emits: ["actionClick", "actionCommand"],
|
|
3484
3486
|
setup(o, { emit: e }) {
|
|
3485
3487
|
const t = o, n = e, s = (i) => {
|
|
3486
|
-
const { label: d, name: u, value:
|
|
3488
|
+
const { label: d, name: u, value: f, disabled: h, closable: m, lazy: g } = i;
|
|
3487
3489
|
return {
|
|
3488
3490
|
label: d,
|
|
3489
|
-
name:
|
|
3491
|
+
name: f ?? u,
|
|
3490
3492
|
disabled: h,
|
|
3491
3493
|
closable: m,
|
|
3492
3494
|
lazy: g
|
|
@@ -3500,30 +3502,30 @@ const yo = {
|
|
|
3500
3502
|
}, l = (i) => {
|
|
3501
3503
|
n("actionCommand", i);
|
|
3502
3504
|
};
|
|
3503
|
-
return (i, d) => (
|
|
3505
|
+
return (i, d) => (p(), b(c(c0), O({
|
|
3504
3506
|
class: ["x-tabs", a.value]
|
|
3505
3507
|
}, i.$attrs), {
|
|
3506
3508
|
default: y(() => [
|
|
3507
|
-
(
|
|
3509
|
+
(p(!0), P(q, null, te(t.items, (u) => (p(), b(c(bt), O({
|
|
3508
3510
|
key: u.value ?? u.name,
|
|
3509
3511
|
ref_for: !0
|
|
3510
3512
|
}, s(u)), {
|
|
3511
3513
|
label: y(() => [
|
|
3512
3514
|
A(i.$slots, "label", O({ ref_for: !0 }, u), () => [
|
|
3513
|
-
u.icon ? (
|
|
3515
|
+
u.icon ? (p(), b(ee(c(ze)(u.icon)), {
|
|
3514
3516
|
key: 0,
|
|
3515
3517
|
class: "x-tabs__icon"
|
|
3516
3518
|
})) : x("", !0),
|
|
3517
3519
|
N("div", So, [
|
|
3518
3520
|
U(L(u.label) + " ", 1),
|
|
3519
|
-
u.actions && [u.name, u.value].includes(i.$attrs.modelValue) ? (
|
|
3520
|
-
(
|
|
3521
|
+
u.actions && [u.name, u.value].includes(i.$attrs.modelValue) ? (p(), P("div", zo, [
|
|
3522
|
+
(p(!0), P(q, null, te(u.actions, (f) => (p(), b(c(se), O({
|
|
3521
3523
|
mode: "icon",
|
|
3522
3524
|
type: "primary",
|
|
3523
3525
|
size: "small",
|
|
3524
3526
|
circle: "",
|
|
3525
3527
|
ref_for: !0
|
|
3526
|
-
},
|
|
3528
|
+
}, f, {
|
|
3527
3529
|
onClick: r,
|
|
3528
3530
|
onCommand: l
|
|
3529
3531
|
}), null, 16))), 256))
|
|
@@ -3533,7 +3535,7 @@ const yo = {
|
|
|
3533
3535
|
]),
|
|
3534
3536
|
default: y(() => [
|
|
3535
3537
|
A(i.$slots, "default", O({ ref_for: !0 }, u), () => [
|
|
3536
|
-
u.component ? (
|
|
3538
|
+
u.component ? (p(), b(ee(u.component), O({
|
|
3537
3539
|
key: 0,
|
|
3538
3540
|
ref_for: !0
|
|
3539
3541
|
}, u.props), null, 16)) : x("", !0)
|
|
@@ -3599,10 +3601,10 @@ const yo = {
|
|
|
3599
3601
|
emits: ["imageClick", "titleClick", "actionClick", "actionCommand"],
|
|
3600
3602
|
setup(o, { emit: e }) {
|
|
3601
3603
|
const t = o, n = e, s = C(() => {
|
|
3602
|
-
const { imageWidth:
|
|
3604
|
+
const { imageWidth: f, imageHeight: h } = t;
|
|
3603
3605
|
return {
|
|
3604
|
-
width:
|
|
3605
|
-
height: h ?
|
|
3606
|
+
width: f ? fe(f) : void 0,
|
|
3607
|
+
height: h ? fe(h) : void 0
|
|
3606
3608
|
};
|
|
3607
3609
|
}), a = C(() => ({
|
|
3608
3610
|
[`is-image-${t.direction}`]: !!t.direction,
|
|
@@ -3614,21 +3616,21 @@ const yo = {
|
|
|
3614
3616
|
type: "info",
|
|
3615
3617
|
items: t.actions,
|
|
3616
3618
|
...t.actionBarProps
|
|
3617
|
-
})), l = () => n("imageClick"), i = () => n("titleClick"), d = (
|
|
3618
|
-
return (
|
|
3619
|
+
})), l = () => n("imageClick"), i = () => n("titleClick"), d = (f) => n("actionClick", f), u = (f, h) => n("actionCommand", f, h);
|
|
3620
|
+
return (f, h) => (p(), b(c(j), {
|
|
3619
3621
|
class: J(["x-data-item", a.value]),
|
|
3620
3622
|
direction: t.direction
|
|
3621
3623
|
}, {
|
|
3622
3624
|
default: y(() => [
|
|
3623
|
-
t.imageSrc ||
|
|
3625
|
+
t.imageSrc || f.$slots.image ? (p(), b(c(j), {
|
|
3624
3626
|
key: 0,
|
|
3625
3627
|
class: "x-data-item__img",
|
|
3626
3628
|
autoPointer: !0,
|
|
3627
3629
|
onClick: t.onImageClick ? l : void 0
|
|
3628
3630
|
}, {
|
|
3629
3631
|
default: y(() => [
|
|
3630
|
-
A(
|
|
3631
|
-
t.imageSrc ? (
|
|
3632
|
+
A(f.$slots, "image", {}, () => [
|
|
3633
|
+
t.imageSrc ? (p(), b(c(kn), {
|
|
3632
3634
|
key: 0,
|
|
3633
3635
|
style: we(s.value),
|
|
3634
3636
|
src: t.imageSrc
|
|
@@ -3644,7 +3646,7 @@ const yo = {
|
|
|
3644
3646
|
shrink: ""
|
|
3645
3647
|
}, {
|
|
3646
3648
|
default: y(() => [
|
|
3647
|
-
t.title ||
|
|
3649
|
+
t.title || f.$slots.title ? (p(), b(c(j), {
|
|
3648
3650
|
key: 0,
|
|
3649
3651
|
class: "x-data-item__section x-data-item__wrapper",
|
|
3650
3652
|
align: "center",
|
|
@@ -3652,28 +3654,28 @@ const yo = {
|
|
|
3652
3654
|
onClick: t.onTitleClick ? i : void 0
|
|
3653
3655
|
}, {
|
|
3654
3656
|
default: y(() => [
|
|
3655
|
-
t.icon ? (
|
|
3657
|
+
t.icon ? (p(), b(ee(c(ze)(t.icon)), {
|
|
3656
3658
|
key: 0,
|
|
3657
3659
|
class: "x-data-item__icon"
|
|
3658
3660
|
})) : x("", !0),
|
|
3659
3661
|
N("span", To, [
|
|
3660
|
-
A(
|
|
3662
|
+
A(f.$slots, "title", {}, () => [
|
|
3661
3663
|
U(L(t.title), 1)
|
|
3662
3664
|
])
|
|
3663
3665
|
])
|
|
3664
3666
|
]),
|
|
3665
3667
|
_: 3
|
|
3666
3668
|
}, 8, ["onClick"])) : x("", !0),
|
|
3667
|
-
t.description ||
|
|
3668
|
-
A(
|
|
3669
|
+
t.description || f.$slots.description ? (p(), P("div", $o, [
|
|
3670
|
+
A(f.$slots, "description", {}, () => [
|
|
3669
3671
|
U(L(t.description), 1)
|
|
3670
3672
|
])
|
|
3671
3673
|
])) : x("", !0),
|
|
3672
|
-
|
|
3673
|
-
A(
|
|
3674
|
+
f.$slots.default ? (p(), P("div", Mo, [
|
|
3675
|
+
A(f.$slots, "default")
|
|
3674
3676
|
])) : x("", !0),
|
|
3675
|
-
t.actions || t.actionBarProps ||
|
|
3676
|
-
A(
|
|
3677
|
+
t.actions || t.actionBarProps || f.$slots.actions ? (p(), P("div", Bo, [
|
|
3678
|
+
A(f.$slots, "actions", {}, () => [
|
|
3677
3679
|
z(c(At), O(r.value, {
|
|
3678
3680
|
onClick: d,
|
|
3679
3681
|
onCommand: u
|
|
@@ -3761,9 +3763,9 @@ const yo = {
|
|
|
3761
3763
|
total: 0
|
|
3762
3764
|
},
|
|
3763
3765
|
a
|
|
3764
|
-
), i = C(() => Math.ceil((r.value.total || 0) / a.pageSize)), d = D(!1), u = D(),
|
|
3765
|
-
width:
|
|
3766
|
-
height:
|
|
3766
|
+
), i = C(() => Math.ceil((r.value.total || 0) / a.pageSize)), d = D(!1), u = D(), f = C(() => ({
|
|
3767
|
+
width: fe(n.width),
|
|
3768
|
+
height: fe(n.height)
|
|
3767
3769
|
})), h = C(() => ({
|
|
3768
3770
|
"is-virtual": !!n.itemHeight
|
|
3769
3771
|
})), m = C(() => {
|
|
@@ -3791,54 +3793,54 @@ const yo = {
|
|
|
3791
3793
|
nomore: d,
|
|
3792
3794
|
data: r,
|
|
3793
3795
|
getKey: _
|
|
3794
|
-
}), (S, V) => (
|
|
3796
|
+
}), (S, V) => (p(), P("div", {
|
|
3795
3797
|
class: J(["x-list", h.value]),
|
|
3796
|
-
style: we(
|
|
3798
|
+
style: we(f.value)
|
|
3797
3799
|
}, [
|
|
3798
3800
|
!c(r).total && !c(l) ? A(S.$slots, "empty", { key: 0 }, () => [
|
|
3799
3801
|
z(c(r0))
|
|
3800
3802
|
]) : x("", !0),
|
|
3801
3803
|
N("div", O({ class: "x-list__content" }, c($)), [
|
|
3802
|
-
n.itemHeight ? Z((
|
|
3804
|
+
n.itemHeight ? Z((p(), P("div", O({
|
|
3803
3805
|
key: 0,
|
|
3804
3806
|
class: "x-list__wrapper",
|
|
3805
3807
|
ref_key: "wrapperRef",
|
|
3806
3808
|
ref: u
|
|
3807
3809
|
}, { ...c(E), ...m.value }), [
|
|
3808
|
-
(
|
|
3810
|
+
(p(!0), P(q, null, te(c(w), (k, H) => A(S.$slots, "default", O({
|
|
3809
3811
|
key: _(k.data),
|
|
3810
3812
|
ref_for: !0
|
|
3811
3813
|
}, { item: k.data, index: H }), () => [
|
|
3812
3814
|
N("div", null, L(k), 1)
|
|
3813
3815
|
])), 128)),
|
|
3814
|
-
c(l) ? (
|
|
3816
|
+
c(l) ? (p(), P("div", Po, [
|
|
3815
3817
|
A(S.$slots, "loading", {}, () => [
|
|
3816
3818
|
U(" 正在加载数据... ")
|
|
3817
3819
|
])
|
|
3818
3820
|
])) : x("", !0),
|
|
3819
|
-
d.value ? (
|
|
3821
|
+
d.value ? (p(), P("div", Ao, [
|
|
3820
3822
|
A(S.$slots, "nomore", {}, () => [
|
|
3821
3823
|
U(" 没有更多数据 ")
|
|
3822
3824
|
])
|
|
3823
3825
|
])) : x("", !0)
|
|
3824
3826
|
], 16)), [
|
|
3825
3827
|
[c(Ut), v]
|
|
3826
|
-
]) : Z((
|
|
3828
|
+
]) : Z((p(), P("div", O({
|
|
3827
3829
|
key: 1,
|
|
3828
3830
|
class: "x-list__wrapper"
|
|
3829
3831
|
}, m.value), [
|
|
3830
|
-
(
|
|
3832
|
+
(p(!0), P(q, null, te(c(r).list, (k, H) => A(S.$slots, "default", O({
|
|
3831
3833
|
key: _(k),
|
|
3832
3834
|
ref_for: !0
|
|
3833
3835
|
}, { item: k, index: H }), () => [
|
|
3834
3836
|
N("div", null, L(k), 1)
|
|
3835
3837
|
])), 128)),
|
|
3836
|
-
c(l) ? (
|
|
3838
|
+
c(l) ? (p(), P("div", Vo, [
|
|
3837
3839
|
A(S.$slots, "loading", {}, () => [
|
|
3838
3840
|
U(" 正在加载数据... ")
|
|
3839
3841
|
])
|
|
3840
3842
|
])) : x("", !0),
|
|
3841
|
-
d.value ? (
|
|
3843
|
+
d.value ? (p(), P("div", Do, [
|
|
3842
3844
|
A(S.$slots, "nomore", {}, () => [
|
|
3843
3845
|
U(" 没有更多数据 ")
|
|
3844
3846
|
])
|
|
@@ -3847,7 +3849,7 @@ const yo = {
|
|
|
3847
3849
|
[c(Ut), v]
|
|
3848
3850
|
])
|
|
3849
3851
|
], 16),
|
|
3850
|
-
n.pager ? (
|
|
3852
|
+
n.pager ? (p(), P("div", Fo, [
|
|
3851
3853
|
z(c(xn), O({
|
|
3852
3854
|
small: "",
|
|
3853
3855
|
background: "",
|
|
@@ -3890,7 +3892,7 @@ const yo = {
|
|
|
3890
3892
|
window.location.href = s;
|
|
3891
3893
|
}
|
|
3892
3894
|
};
|
|
3893
|
-
return (n, s) => (
|
|
3895
|
+
return (n, s) => (p(), P("div", Ro, [
|
|
3894
3896
|
N("div", Lo, [
|
|
3895
3897
|
N("div", Ho, [
|
|
3896
3898
|
N("span", Oo, L(e.name), 1)
|
|
@@ -3972,17 +3974,17 @@ const yo = {
|
|
|
3972
3974
|
qe.info({
|
|
3973
3975
|
message: "触发submit事件"
|
|
3974
3976
|
}), s("submit", n);
|
|
3975
|
-
},
|
|
3977
|
+
}, f = (m) => {
|
|
3976
3978
|
i.value = m, s("change", i.value);
|
|
3977
3979
|
}, h = () => {
|
|
3978
|
-
|
|
3980
|
+
f("user click change:" + Date.now());
|
|
3979
3981
|
};
|
|
3980
3982
|
return e({
|
|
3981
3983
|
click: d,
|
|
3982
3984
|
submit: u,
|
|
3983
3985
|
data: i,
|
|
3984
|
-
change:
|
|
3985
|
-
}), (m, g) => (
|
|
3986
|
+
change: f
|
|
3987
|
+
}), (m, g) => (p(), b(c(We), {
|
|
3986
3988
|
class: "x-test",
|
|
3987
3989
|
header: "VTJ 低代码测试组件",
|
|
3988
3990
|
border: ""
|
|
@@ -4011,7 +4013,7 @@ const yo = {
|
|
|
4011
4013
|
border: ""
|
|
4012
4014
|
}, {
|
|
4013
4015
|
default: y(() => [
|
|
4014
|
-
(
|
|
4016
|
+
(p(!0), P(q, null, te(a.value, ([w, $]) => (p(), b(c(ut), { label: w }, {
|
|
4015
4017
|
default: y(() => [
|
|
4016
4018
|
N("pre", null, L(JSON.stringify($, null, 2)), 1)
|
|
4017
4019
|
]),
|
|
@@ -4184,7 +4186,7 @@ const yo = {
|
|
|
4184
4186
|
};
|
|
4185
4187
|
}
|
|
4186
4188
|
return { value: d(g), unit: n.unit };
|
|
4187
|
-
},
|
|
4189
|
+
}, f = () => {
|
|
4188
4190
|
const g = d(i.value), w = l.value;
|
|
4189
4191
|
return n.withUnit && g && w ? `${g}${w}` : g;
|
|
4190
4192
|
};
|
|
@@ -4201,15 +4203,15 @@ const yo = {
|
|
|
4201
4203
|
s("change", g);
|
|
4202
4204
|
});
|
|
4203
4205
|
const h = async () => {
|
|
4204
|
-
const { value: g, unit: w } = u(
|
|
4205
|
-
i.value = g, l.value = w, s("update:modelValue",
|
|
4206
|
+
const { value: g, unit: w } = u(f());
|
|
4207
|
+
i.value = g, l.value = w, s("update:modelValue", f());
|
|
4206
4208
|
}, m = () => {
|
|
4207
4209
|
s("unit-change", l.value), h();
|
|
4208
4210
|
};
|
|
4209
4211
|
return e({
|
|
4210
4212
|
parser: u,
|
|
4211
4213
|
formatValue: d
|
|
4212
|
-
}), (g, w) => (
|
|
4214
|
+
}), (g, w) => (p(), b(c(ge), {
|
|
4213
4215
|
modelValue: i.value,
|
|
4214
4216
|
"onUpdate:modelValue": w[1] || (w[1] = ($) => i.value = $),
|
|
4215
4217
|
modelModifiers: { trim: !0 },
|
|
@@ -4227,7 +4229,7 @@ const yo = {
|
|
|
4227
4229
|
style: { width: `${n.appendWidth}px` }
|
|
4228
4230
|
}, g.$props.selectProps, { onChange: m }), {
|
|
4229
4231
|
default: y(() => [
|
|
4230
|
-
(
|
|
4232
|
+
(p(!0), P(q, null, te(a.value, ($) => (p(), b(c(f0), {
|
|
4231
4233
|
key: $.value,
|
|
4232
4234
|
label: $.label,
|
|
4233
4235
|
value: $.value
|
|
@@ -4240,7 +4242,7 @@ const yo = {
|
|
|
4240
4242
|
} : {
|
|
4241
4243
|
name: "suffix",
|
|
4242
4244
|
fn: y(() => [
|
|
4243
|
-
l.value ? (
|
|
4245
|
+
l.value ? (p(), P("div", {
|
|
4244
4246
|
key: 0,
|
|
4245
4247
|
class: "x-input-unit__unit"
|
|
4246
4248
|
}, [
|
|
@@ -4299,7 +4301,7 @@ const yo = {
|
|
|
4299
4301
|
}), i = D(""), d = D(e.maxLength);
|
|
4300
4302
|
let u;
|
|
4301
4303
|
typeof e.validate == "function" && (u = e.validate);
|
|
4302
|
-
const
|
|
4304
|
+
const f = () => {
|
|
4303
4305
|
a(), i.value = "";
|
|
4304
4306
|
};
|
|
4305
4307
|
return G(
|
|
@@ -4308,7 +4310,7 @@ const yo = {
|
|
|
4308
4310
|
i.value.length === d.value ? await u(i.value) ? n.value = "success" : n.value = "error" : n.value = "";
|
|
4309
4311
|
},
|
|
4310
4312
|
{ immediate: !0 }
|
|
4311
|
-
), (h, m) => (
|
|
4313
|
+
), (h, m) => (p(), b(c(ge), {
|
|
4312
4314
|
modelValue: i.value,
|
|
4313
4315
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
|
|
4314
4316
|
class: "x-image-code-input",
|
|
@@ -4318,18 +4320,18 @@ const yo = {
|
|
|
4318
4320
|
prepend: y(() => [
|
|
4319
4321
|
N("img", {
|
|
4320
4322
|
class: J(["x-image-code-input__image", l.value]),
|
|
4321
|
-
onClick:
|
|
4323
|
+
onClick: f,
|
|
4322
4324
|
src: s.value
|
|
4323
4325
|
}, null, 10, Jo)
|
|
4324
4326
|
]),
|
|
4325
4327
|
suffix: y(() => [
|
|
4326
|
-
n.value === "success" ? (
|
|
4328
|
+
n.value === "success" ? (p(), b(c(ae), {
|
|
4327
4329
|
key: 0,
|
|
4328
4330
|
class: "x-image-code-input__iconSuccess",
|
|
4329
4331
|
icon: c(Un),
|
|
4330
4332
|
size: r.value
|
|
4331
4333
|
}, null, 8, ["icon", "size"])) : x("", !0),
|
|
4332
|
-
n.value === "error" ? (
|
|
4334
|
+
n.value === "error" ? (p(), b(c(ae), {
|
|
4333
4335
|
key: 1,
|
|
4334
4336
|
class: "x-image-code-input__iconError",
|
|
4335
4337
|
icon: c(Xn),
|
|
@@ -4605,11 +4607,11 @@ var F0 = {};
|
|
|
4605
4607
|
}, o.getPenaltyN1 = function(s) {
|
|
4606
4608
|
const a = s.size;
|
|
4607
4609
|
let r = 0, l = 0, i = 0, d = null, u = null;
|
|
4608
|
-
for (let
|
|
4610
|
+
for (let f = 0; f < a; f++) {
|
|
4609
4611
|
l = i = 0, d = u = null;
|
|
4610
4612
|
for (let h = 0; h < a; h++) {
|
|
4611
|
-
let m = s.get(
|
|
4612
|
-
m === d ? l++ : (l >= 5 && (r += e.N1 + (l - 5)), d = m, l = 1), m = s.get(h,
|
|
4613
|
+
let m = s.get(f, h);
|
|
4614
|
+
m === d ? l++ : (l >= 5 && (r += e.N1 + (l - 5)), d = m, l = 1), m = s.get(h, f), m === u ? i++ : (i >= 5 && (r += e.N1 + (i - 5)), u = m, i = 1);
|
|
4613
4615
|
}
|
|
4614
4616
|
l >= 5 && (r += e.N1 + (l - 5)), i >= 5 && (r += e.N1 + (i - 5));
|
|
4615
4617
|
}
|
|
@@ -5200,7 +5202,7 @@ ie.testAlphanumeric = function(e) {
|
|
|
5200
5202
|
g += $ + w.getBitsLength();
|
|
5201
5203
|
}), g;
|
|
5202
5204
|
}
|
|
5203
|
-
function
|
|
5205
|
+
function f(h, m) {
|
|
5204
5206
|
for (let g = 1; g <= 40; g++)
|
|
5205
5207
|
if (u(h, g) <= o.getCapacity(g, m, s.MIXED))
|
|
5206
5208
|
return g;
|
|
@@ -5231,7 +5233,7 @@ ie.testAlphanumeric = function(e) {
|
|
|
5231
5233
|
const $ = n.from(g, n.M);
|
|
5232
5234
|
if (Array.isArray(m)) {
|
|
5233
5235
|
if (m.length > 1)
|
|
5234
|
-
return
|
|
5236
|
+
return f(m, $);
|
|
5235
5237
|
if (m.length === 0)
|
|
5236
5238
|
return 1;
|
|
5237
5239
|
w = m[0];
|
|
@@ -5278,7 +5280,7 @@ Ee.prototype.write = function(e) {
|
|
|
5278
5280
|
a > 0 && (n = this.data.substr(t), s = parseInt(n, 10), e.put(s, a * 3 + 1));
|
|
5279
5281
|
};
|
|
5280
5282
|
var ds = Ee;
|
|
5281
|
-
const
|
|
5283
|
+
const fs = he, pt = [
|
|
5282
5284
|
"0",
|
|
5283
5285
|
"1",
|
|
5284
5286
|
"2",
|
|
@@ -5326,7 +5328,7 @@ const ps = he, ft = [
|
|
|
5326
5328
|
":"
|
|
5327
5329
|
];
|
|
5328
5330
|
function Te(o) {
|
|
5329
|
-
this.mode =
|
|
5331
|
+
this.mode = fs.ALPHANUMERIC, this.data = o;
|
|
5330
5332
|
}
|
|
5331
5333
|
Te.getBitsLength = function(e) {
|
|
5332
5334
|
return 11 * Math.floor(e / 2) + 6 * (e % 2);
|
|
@@ -5340,12 +5342,12 @@ Te.prototype.getBitsLength = function() {
|
|
|
5340
5342
|
Te.prototype.write = function(e) {
|
|
5341
5343
|
let t;
|
|
5342
5344
|
for (t = 0; t + 2 <= this.data.length; t += 2) {
|
|
5343
|
-
let n =
|
|
5344
|
-
n +=
|
|
5345
|
+
let n = pt.indexOf(this.data[t]) * 45;
|
|
5346
|
+
n += pt.indexOf(this.data[t + 1]), e.put(n, 11);
|
|
5345
5347
|
}
|
|
5346
|
-
this.data.length % 2 && e.put(
|
|
5348
|
+
this.data.length % 2 && e.put(pt.indexOf(this.data[t]), 6);
|
|
5347
5349
|
};
|
|
5348
|
-
var
|
|
5350
|
+
var ps = Te, ms = function(e) {
|
|
5349
5351
|
for (var t = [], n = e.length, s = 0; s < n; s++) {
|
|
5350
5352
|
var a = e.charCodeAt(s);
|
|
5351
5353
|
if (a >= 55296 && a <= 56319 && n > s + 1) {
|
|
@@ -5427,10 +5429,10 @@ var _s = Me, X0 = { exports: {} };
|
|
|
5427
5429
|
r[n] = 0;
|
|
5428
5430
|
var l = e.PriorityQueue.make();
|
|
5429
5431
|
l.push(n, 0);
|
|
5430
|
-
for (var i, d, u,
|
|
5431
|
-
i = l.pop(), d = i.value,
|
|
5432
|
+
for (var i, d, u, f, h, m, g, w, $; !l.empty(); ) {
|
|
5433
|
+
i = l.pop(), d = i.value, f = i.cost, h = t[d] || {};
|
|
5432
5434
|
for (u in h)
|
|
5433
|
-
h.hasOwnProperty(u) && (m = h[u], g =
|
|
5435
|
+
h.hasOwnProperty(u) && (m = h[u], g = f + m, w = r[u], $ = typeof r[u] > "u", ($ || w > g) && (r[u] = g, l.push(u, g), a[u] = d));
|
|
5434
5436
|
}
|
|
5435
5437
|
if (typeof s < "u" && typeof r[s] > "u") {
|
|
5436
5438
|
var E = ["Could not find a path from ", n, " to ", s, "."].join("");
|
|
@@ -5487,7 +5489,7 @@ var _s = Me, X0 = { exports: {} };
|
|
|
5487
5489
|
})(X0);
|
|
5488
5490
|
var bs = X0.exports;
|
|
5489
5491
|
(function(o) {
|
|
5490
|
-
const e = he, t = ds, n =
|
|
5492
|
+
const e = he, t = ds, n = ps, s = vs, a = _s, r = ie, l = ne, i = bs;
|
|
5491
5493
|
function d(E) {
|
|
5492
5494
|
return unescape(encodeURIComponent(E)).length;
|
|
5493
5495
|
}
|
|
@@ -5503,7 +5505,7 @@ var bs = X0.exports;
|
|
|
5503
5505
|
});
|
|
5504
5506
|
return _;
|
|
5505
5507
|
}
|
|
5506
|
-
function
|
|
5508
|
+
function f(E) {
|
|
5507
5509
|
const T = u(r.NUMERIC, e.NUMERIC, E), v = u(r.ALPHANUMERIC, e.ALPHANUMERIC, E);
|
|
5508
5510
|
let _, S;
|
|
5509
5511
|
return l.isKanjiModeEnabled() ? (_ = u(r.BYTE, e.BYTE, E), S = u(r.KANJI, e.KANJI, E)) : (_ = u(r.BYTE_KANJI, e.BYTE, E), S = []), T.concat(v, _, S).sort(function(k, H) {
|
|
@@ -5607,13 +5609,13 @@ var bs = X0.exports;
|
|
|
5607
5609
|
return typeof _ == "string" ? v.push($(_, null)) : _.data && v.push($(_.data, _.mode)), v;
|
|
5608
5610
|
}, []);
|
|
5609
5611
|
}, o.fromString = function(T, v) {
|
|
5610
|
-
const _ =
|
|
5612
|
+
const _ = f(T, l.isKanjiModeEnabled()), S = g(_), V = w(S, v), k = i.find_path(V.map, "start", "end"), H = [];
|
|
5611
5613
|
for (let X = 1; X < k.length - 1; X++)
|
|
5612
5614
|
H.push(V.table[k[X]].node);
|
|
5613
5615
|
return o.fromArray(m(H));
|
|
5614
5616
|
}, o.rawSplit = function(T) {
|
|
5615
5617
|
return o.fromArray(
|
|
5616
|
-
|
|
5618
|
+
f(T, l.isKanjiModeEnabled())
|
|
5617
5619
|
);
|
|
5618
5620
|
};
|
|
5619
5621
|
})(U0);
|
|
@@ -5687,13 +5689,13 @@ function As(o, e, t) {
|
|
|
5687
5689
|
return Vs(n, o, e);
|
|
5688
5690
|
}
|
|
5689
5691
|
function Vs(o, e, t) {
|
|
5690
|
-
const n = lt.getSymbolTotalCodewords(e), s = St.getTotalCodewordsCount(e, t), a = n - s, r = St.getBlocksCount(e, t), l = n % r, i = r - l, d = Math.floor(n / r), u = Math.floor(a / r),
|
|
5692
|
+
const n = lt.getSymbolTotalCodewords(e), s = St.getTotalCodewordsCount(e, t), a = n - s, r = St.getBlocksCount(e, t), l = n % r, i = r - l, d = Math.floor(n / r), u = Math.floor(a / r), f = u + 1, h = d - u, m = new zs(h);
|
|
5691
5693
|
let g = 0;
|
|
5692
5694
|
const w = new Array(r), $ = new Array(r);
|
|
5693
5695
|
let E = 0;
|
|
5694
5696
|
const T = new Uint8Array(o.buffer);
|
|
5695
5697
|
for (let k = 0; k < r; k++) {
|
|
5696
|
-
const H = k < i ? u :
|
|
5698
|
+
const H = k < i ? u : f;
|
|
5697
5699
|
w[k] = T.slice(g, g + H), $[k] = m.encode(w[k]), g += H, E = Math.max(E, H);
|
|
5698
5700
|
}
|
|
5699
5701
|
const v = new Uint8Array(n);
|
|
@@ -5789,13 +5791,13 @@ var K0 = {}, Rt = {};
|
|
|
5789
5791
|
const a = o.getScale(n, s);
|
|
5790
5792
|
return Math.floor((n + s.margin * 2) * a);
|
|
5791
5793
|
}, o.qrToImageData = function(n, s, a) {
|
|
5792
|
-
const r = s.modules.size, l = s.modules.data, i = o.getScale(r, a), d = Math.floor((r + a.margin * 2) * i), u = a.margin * i,
|
|
5794
|
+
const r = s.modules.size, l = s.modules.data, i = o.getScale(r, a), d = Math.floor((r + a.margin * 2) * i), u = a.margin * i, f = [a.color.light, a.color.dark];
|
|
5793
5795
|
for (let h = 0; h < d; h++)
|
|
5794
5796
|
for (let m = 0; m < d; m++) {
|
|
5795
5797
|
let g = (h * d + m) * 4, w = a.color.light;
|
|
5796
5798
|
if (h >= u && m >= u && h < d - u && m < d - u) {
|
|
5797
5799
|
const $ = Math.floor((h - u) / i), E = Math.floor((m - u) / i);
|
|
5798
|
-
w =
|
|
5800
|
+
w = f[l[$ * r + E] ? 1 : 0];
|
|
5799
5801
|
}
|
|
5800
5802
|
n[g++] = w.r, n[g++] = w.g, n[g++] = w.b, n[g] = w.a;
|
|
5801
5803
|
}
|
|
@@ -5816,13 +5818,13 @@ var K0 = {}, Rt = {};
|
|
|
5816
5818
|
o.render = function(a, r, l) {
|
|
5817
5819
|
let i = l, d = r;
|
|
5818
5820
|
typeof i > "u" && (!r || !r.getContext) && (i = r, r = void 0), r || (d = n()), i = e.getOptions(i);
|
|
5819
|
-
const u = e.getImageWidth(a.modules.size, i),
|
|
5820
|
-
return e.qrToImageData(h.data, a, i), t(
|
|
5821
|
+
const u = e.getImageWidth(a.modules.size, i), f = d.getContext("2d"), h = f.createImageData(u, u);
|
|
5822
|
+
return e.qrToImageData(h.data, a, i), t(f, d, u), f.putImageData(h, 0, 0), d;
|
|
5821
5823
|
}, o.renderToDataURL = function(a, r, l) {
|
|
5822
5824
|
let i = l;
|
|
5823
5825
|
typeof i > "u" && (!r || !r.getContext) && (i = r, r = void 0), i || (i = {});
|
|
5824
|
-
const d = o.render(a, r, i), u = i.type || "image/png",
|
|
5825
|
-
return d.toDataURL(u,
|
|
5826
|
+
const d = o.render(a, r, i), u = i.type || "image/png", f = i.rendererOpts || {};
|
|
5827
|
+
return d.toDataURL(u, f.quality);
|
|
5826
5828
|
};
|
|
5827
5829
|
})(K0);
|
|
5828
5830
|
var G0 = {};
|
|
@@ -5897,7 +5899,7 @@ const Hs = ["src"], Os = {
|
|
|
5897
5899
|
l.value = !1, d = setTimeout(() => {
|
|
5898
5900
|
r.value = !0;
|
|
5899
5901
|
}, n.timeout);
|
|
5900
|
-
},
|
|
5902
|
+
}, f = async () => {
|
|
5901
5903
|
r.value = !1, l.value = !0, clearTimeout(d), s("refresh"), await m(), u();
|
|
5902
5904
|
};
|
|
5903
5905
|
n.timeout > 0 && u(), s0(() => {
|
|
@@ -5926,20 +5928,20 @@ const Hs = ["src"], Os = {
|
|
|
5926
5928
|
const g = D();
|
|
5927
5929
|
return e({
|
|
5928
5930
|
qrcodeRef: g
|
|
5929
|
-
}), (w, $) => Z((
|
|
5931
|
+
}), (w, $) => Z((p(), P("div", {
|
|
5930
5932
|
class: "x-qrcode",
|
|
5931
5933
|
ref_key: "qrcodeRef",
|
|
5932
5934
|
ref: g
|
|
5933
5935
|
}, [
|
|
5934
5936
|
N("img", O({ class: "x-qrcode__qrcode" }, c(a), { src: h.value }), null, 16, Hs),
|
|
5935
|
-
h.value && r.value ? (
|
|
5937
|
+
h.value && r.value ? (p(), P("div", Os, [
|
|
5936
5938
|
N("div", {
|
|
5937
5939
|
class: "x-qrcode__mask",
|
|
5938
5940
|
style: we({ scale: i.value })
|
|
5939
5941
|
}, [
|
|
5940
5942
|
N("div", {
|
|
5941
5943
|
class: "x-qrcode__logo",
|
|
5942
|
-
onClick:
|
|
5944
|
+
onClick: f
|
|
5943
5945
|
}, [
|
|
5944
5946
|
A(w.$slots, "logo", {}, () => [
|
|
5945
5947
|
z(c(ae), {
|
|
@@ -5957,7 +5959,7 @@ const Hs = ["src"], Os = {
|
|
|
5957
5959
|
], 4)
|
|
5958
5960
|
])) : x("", !0)
|
|
5959
5961
|
])), [
|
|
5960
|
-
[c(
|
|
5962
|
+
[c(p0), l.value]
|
|
5961
5963
|
]);
|
|
5962
5964
|
}
|
|
5963
5965
|
}), Xs = { class: "x-sms-code-input" }, Ks = /* @__PURE__ */ N("span", null, [
|
|
@@ -5966,7 +5968,7 @@ const Hs = ["src"], Os = {
|
|
|
5966
5968
|
], -1), Gs = /* @__PURE__ */ N("div", { class: "x-sms-code-input__image" }, "图片验证码", -1), Ra = /* @__PURE__ */ R({
|
|
5967
5969
|
__name: "SmsCodeInput",
|
|
5968
5970
|
setup(o) {
|
|
5969
|
-
return (e, t) => (
|
|
5971
|
+
return (e, t) => (p(), P("div", Xs, [
|
|
5970
5972
|
z(c(ge), { class: "x-sms-code-input__input" }, {
|
|
5971
5973
|
suffix: y(() => [
|
|
5972
5974
|
Ks,
|
|
@@ -6094,8 +6096,8 @@ const Hs = ["src"], Os = {
|
|
|
6094
6096
|
function Ht(o) {
|
|
6095
6097
|
if (o.type)
|
|
6096
6098
|
return o.type;
|
|
6097
|
-
const e = o.name || o.url.split("?")[0], t = e.substring(e.lastIndexOf(".") + 1).toLowerCase(), n = ["jpg", "png", "gif", "jpeg", "bpm", "webp", "svg"], s = ["js", "mjs", "cjs", "ts", "jsx", "tsx"], a = ["css", "scss", "sass", "less"], r = ["doc", "docx"], l = ["xls", "xlsx"], i = ["ppt", "pptx"], d = ["zip", "rar"], u = ["mp4", "wmv"],
|
|
6098
|
-
return n.includes(t) ? "img" : s.includes(t) ? "js" : a.includes(t) ? "css" : r.includes(t) ? "word" : l.includes(t) ? "excel" : i.includes(t) ? "ppt" : d.includes(t) ? "zip" : u.includes(t) ? "video" :
|
|
6099
|
+
const e = o.name || o.url.split("?")[0], t = e.substring(e.lastIndexOf(".") + 1).toLowerCase(), n = ["jpg", "png", "gif", "jpeg", "bpm", "webp", "svg"], s = ["js", "mjs", "cjs", "ts", "jsx", "tsx"], a = ["css", "scss", "sass", "less"], r = ["doc", "docx"], l = ["xls", "xlsx"], i = ["ppt", "pptx"], d = ["zip", "rar"], u = ["mp4", "wmv"], f = ["mp3", "wma"], h = ["pdf", "json"];
|
|
6100
|
+
return n.includes(t) ? "img" : s.includes(t) ? "js" : a.includes(t) ? "css" : r.includes(t) ? "word" : l.includes(t) ? "excel" : i.includes(t) ? "ppt" : d.includes(t) ? "zip" : u.includes(t) ? "video" : f.includes(t) ? "audio" : h.includes(t) ? t : "unknow";
|
|
6099
6101
|
}
|
|
6100
6102
|
function yt(o) {
|
|
6101
6103
|
return Ht(o) === "img";
|
|
@@ -6120,10 +6122,10 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6120
6122
|
zip: oa,
|
|
6121
6123
|
audio: sa,
|
|
6122
6124
|
video: aa
|
|
6123
|
-
}, la = { class: "x-attachment__upload" }, ra = ["onClick"], ca = { class: "x-attachment__wrapper" }, ua = ["src"], da = ["title"],
|
|
6125
|
+
}, la = { class: "x-attachment__upload" }, ra = ["onClick"], ca = { class: "x-attachment__wrapper" }, ua = ["src"], da = ["title"], fa = {
|
|
6124
6126
|
key: 0,
|
|
6125
6127
|
class: "x-attachment__item-name"
|
|
6126
|
-
},
|
|
6128
|
+
}, pa = { class: "el-upload-list__item-url" }, ma = {
|
|
6127
6129
|
key: 0,
|
|
6128
6130
|
class: "el-upload-list__item-actions"
|
|
6129
6131
|
}, ga = ["onClick"], ha = ["onClick"], va = ["onClick"], La = /* @__PURE__ */ R({
|
|
@@ -6132,7 +6134,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6132
6134
|
props: Ys,
|
|
6133
6135
|
emits: ["click", "preview", "remove", "download", "select", "change", "update:modelValue", "update:selectValue"],
|
|
6134
6136
|
setup(o, { expose: e, emit: t }) {
|
|
6135
|
-
const n = u2(), s = o, a = t, r = D(!1), l = D(), i = D(Symbol()), d = D(!1), u = D(0),
|
|
6137
|
+
const n = u2(), s = o, a = t, r = D(!1), l = D(), i = D(Symbol()), d = D(!1), u = D(0), f = D([]), h = C(() => ({
|
|
6136
6138
|
[`x-attachment--${s.listType}`]: !!s.listType,
|
|
6137
6139
|
"is-disabled": !!s.disabled,
|
|
6138
6140
|
"is-pointer": !!s.clickable || !!s.selectable,
|
|
@@ -6162,7 +6164,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6162
6164
|
), G(
|
|
6163
6165
|
() => s.selectValue,
|
|
6164
6166
|
(B) => {
|
|
6165
|
-
|
|
6167
|
+
f.value = [].concat(
|
|
6166
6168
|
Kt(B || [])
|
|
6167
6169
|
);
|
|
6168
6170
|
},
|
|
@@ -6188,15 +6190,15 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6188
6190
|
return r.value = !1, typeof F == "string" ? { url: F } : F;
|
|
6189
6191
|
}
|
|
6190
6192
|
}, _ = (B) => {
|
|
6191
|
-
const I =
|
|
6192
|
-
I > -1 ? s.multiple ?
|
|
6193
|
+
const I = f.value.findIndex((M) => M.url === B.url);
|
|
6194
|
+
I > -1 ? s.multiple ? f.value.splice(I, 1) : f.value = [] : s.multiple ? f.value.push(Ie(B.response || B)) : f.value = [Ie(B.response || B)], a("select", f.value), a(
|
|
6193
6195
|
"update:selectValue",
|
|
6194
|
-
s.multiple ?
|
|
6196
|
+
s.multiple ? f.value : f.value[0]
|
|
6195
6197
|
);
|
|
6196
6198
|
}, S = (B) => {
|
|
6197
|
-
const I =
|
|
6198
|
-
I > -1 &&
|
|
6199
|
-
}, V = (B) => !!
|
|
6199
|
+
const I = f.value.findIndex((M) => M.url === B.url);
|
|
6200
|
+
I > -1 && f.value.splice(I, 1);
|
|
6201
|
+
}, V = (B) => !!f.value.find((I) => I.url === B.url), k = (B) => {
|
|
6200
6202
|
s.clickable && a("click", Ie(B.response || B)), s.selectable && _(B);
|
|
6201
6203
|
}, H = async (B, I) => {
|
|
6202
6204
|
if (I.every((F) => F.status === "success") && I.length === m.value.length) {
|
|
@@ -6225,12 +6227,12 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6225
6227
|
elUploadRef: l,
|
|
6226
6228
|
remove: X,
|
|
6227
6229
|
download: Y,
|
|
6228
|
-
selections:
|
|
6230
|
+
selections: f,
|
|
6229
6231
|
fileList: m
|
|
6230
|
-
}), (B, I) => (
|
|
6232
|
+
}), (B, I) => (p(), P("div", {
|
|
6231
6233
|
class: J(["x-attachment", h.value])
|
|
6232
6234
|
}, [
|
|
6233
|
-
(
|
|
6235
|
+
(p(), b(c(zn), O({
|
|
6234
6236
|
ref_key: "elUploadRef",
|
|
6235
6237
|
ref: l,
|
|
6236
6238
|
key: i.value,
|
|
@@ -6242,7 +6244,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6242
6244
|
"http-request": v
|
|
6243
6245
|
}), {
|
|
6244
6246
|
file: y(({ file: M }) => [
|
|
6245
|
-
Z((
|
|
6247
|
+
Z((p(), P("div", {
|
|
6246
6248
|
class: J(["x-attachment__item", { "is-selected": V(M.response || M) }]),
|
|
6247
6249
|
onClick: (F) => k(M.response || M)
|
|
6248
6250
|
}, [
|
|
@@ -6255,12 +6257,12 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6255
6257
|
class: "el-upload-list__item-name",
|
|
6256
6258
|
title: (M.response || M).url
|
|
6257
6259
|
}, [
|
|
6258
|
-
M.name ? (
|
|
6259
|
-
N("span",
|
|
6260
|
+
M.name ? (p(), P("span", fa, L((M.response || M).name), 1)) : x("", !0),
|
|
6261
|
+
N("span", pa, L((M.response || M).url), 1)
|
|
6260
6262
|
], 8, da)
|
|
6261
6263
|
]),
|
|
6262
|
-
w.value ? (
|
|
6263
|
-
s.previewable ? (
|
|
6264
|
+
w.value ? (p(), P("div", ma, [
|
|
6265
|
+
s.previewable ? (p(), P("span", {
|
|
6264
6266
|
key: 0,
|
|
6265
6267
|
onClick: (F) => K(M.response || M),
|
|
6266
6268
|
class: "el-upload-list__item-preview"
|
|
@@ -6272,7 +6274,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6272
6274
|
_: 1
|
|
6273
6275
|
})
|
|
6274
6276
|
], 8, ga)) : x("", !0),
|
|
6275
|
-
s.downloadable ? (
|
|
6277
|
+
s.downloadable ? (p(), P("span", {
|
|
6276
6278
|
key: 1,
|
|
6277
6279
|
onClick: (F) => Y(M.response || M),
|
|
6278
6280
|
class: "el-upload-list__item-delete"
|
|
@@ -6284,7 +6286,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6284
6286
|
_: 1
|
|
6285
6287
|
})
|
|
6286
6288
|
], 8, ha)) : x("", !0),
|
|
6287
|
-
s.removable && !s.disabled ? (
|
|
6289
|
+
s.removable && !s.disabled ? (p(), P("span", {
|
|
6288
6290
|
key: 2,
|
|
6289
6291
|
onClick: (F) => X(M),
|
|
6290
6292
|
class: "el-upload-list__item-delete"
|
|
@@ -6298,7 +6300,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6298
6300
|
], 8, va)) : x("", !0)
|
|
6299
6301
|
])) : x("", !0)
|
|
6300
6302
|
], 10, ra)), [
|
|
6301
|
-
[c(
|
|
6303
|
+
[c(p0), M.status === "ready" || M.status === "uploading"]
|
|
6302
6304
|
])
|
|
6303
6305
|
]),
|
|
6304
6306
|
tip: y(() => [
|
|
@@ -6316,7 +6318,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
6316
6318
|
]),
|
|
6317
6319
|
_: 3
|
|
6318
6320
|
}, 16, ["file-list"])),
|
|
6319
|
-
s.previewable && d.value ? (
|
|
6321
|
+
s.previewable && d.value ? (p(), b(c(En), {
|
|
6320
6322
|
key: 0,
|
|
6321
6323
|
"hide-on-click-modal": "",
|
|
6322
6324
|
teleported: "",
|
|
@@ -6373,7 +6375,7 @@ export {
|
|
|
6373
6375
|
B0 as formInstanceKey,
|
|
6374
6376
|
I0 as formModelKey,
|
|
6375
6377
|
bo as formProps,
|
|
6376
|
-
|
|
6378
|
+
fe as getSizeValue,
|
|
6377
6379
|
E2 as headerProps,
|
|
6378
6380
|
c2 as iconProps,
|
|
6379
6381
|
r2 as iconSizeMap,
|