@vtj/ui 0.7.33 → 0.7.34
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 +261 -259
- 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 ve, defineComponent as P, useAttrs as We, getCurrentInstance as fe, computed as b, markRaw as re, openBlock as u, createBlock as g, unref as n, normalizeClass as Y, normalizeStyle as me, withCtx as f, renderSlot as $, resolveDynamicComponent as J, createCommentVNode as h, createElementBlock as z, mergeProps as
|
|
2
|
-
import { ElIcon as Yt, ElSubMenu as Jt, ElBadge as
|
|
3
|
-
import { ArrowRight as ho, Minimize as _o, Popup as ko, Maximize as wo, RawClose as xo, StarFilled as $t, Menu as Co, Search as He, Close as St, Expand as $o, Fold as So, Star as zt, Document as ge, Refresh as zo, CopyDocument as To, Moon as
|
|
4
|
-
import { useDraggable as jo, useMouseInElement as Ro, useEventListener as je, useElementSize as Tt, useDark as
|
|
5
|
-
import { isEqual as qe, isObject as Ge, uid as
|
|
6
|
-
import { useRouter as Ze, RouterView as Yo, useRoute as
|
|
1
|
+
import { inject as ve, defineComponent as P, useAttrs as We, getCurrentInstance as fe, computed as b, markRaw as re, openBlock as u, createBlock as g, unref as n, normalizeClass as Y, normalizeStyle as me, withCtx as f, renderSlot as $, resolveDynamicComponent as J, createCommentVNode as h, createElementBlock as z, mergeProps as A, createElementVNode as F, toDisplayString as j, Fragment as W, renderList as Z, isVNode as Lt, h as ae, shallowRef as Be, ref as B, watch as U, toRef as Oe, createTextVNode as D, useSlots as Ut, toRaw as be, createVNode as k, normalizeProps as le, guardReactiveProps as ke, effectScope as mt, reactive as Re, onMounted as gt, onUnmounted as yt, watchEffect as Ye, nextTick as he, Teleport as vt, withDirectives as G, createSlots as de, render as nt, vShow as ne, isRef as Pe, withModifiers as bt, KeepAlive as Ht, provide as $e, withKeys as Wt } from "vue";
|
|
2
|
+
import { ElIcon as Yt, ElSubMenu as Jt, ElBadge as Le, ElMenuItem as qt, ElMenu as Gt, ElButton as ie, ElDropdown as Zt, ElDropdownMenu as Qt, ElDropdownItem as eo, ElTooltip as ht, ElDivider as se, ElSwitch as Je, ElInput as we, ElEmpty as _t, ElTabs as kt, ElTabPane as Ue, ElPopover as wt, ElAvatar as to, ElMessageBox as Fe, ElSelect as xt, ElOption as Ct, ElCheckboxButton as oo, ElCheckbox as no, ElCheckboxGroup as ao, ElRadioButton as so, ElRadio as lo, ElRadioGroup as io, ElInputNumber as ro, ElDatePicker as at, ElTimePicker as uo, ElRate as co, ElSlider as po, ElCascader as fo, formContextKey as mo, ElFormItem as go, ElForm as yo, ElImage as vo, ElInfiniteScroll as st, ElPagination as bo, ElDescriptions as lt, ElDescriptionsItem as Ne, ElMessage as it } from "element-plus";
|
|
3
|
+
import { ArrowRight as ho, Minimize as _o, Popup as ko, Maximize as wo, RawClose as xo, StarFilled as $t, Menu as Co, Search as He, Close as St, Expand as $o, Fold as So, Star as zt, Document as ge, Refresh as zo, CopyDocument as To, Moon as Eo, Sunny as Mo, MoreFilled as Po, UserFilled as Io, HomeFilled as Vo, WarningFilled as Bo, EditPen as Oo } from "@vtj/icons";
|
|
4
|
+
import { useDraggable as jo, useMouseInElement as Ro, useEventListener as je, useElementSize as Tt, useDark as Do, useResizeObserver as Ao, useVirtualList as Fo } from "@vueuse/core";
|
|
5
|
+
import { isEqual as qe, isObject as Ge, uid as Et, arrayToMap as No, isUrl as Xo, upperFirstCamelCase as Mt, toArray as Pt, get as Ie, merge as Ko, set as Xe, debounce as Lo, dedupArray as Uo, numberFormat as Ho, fileToBase64 as Wo } from "@vtj/utils";
|
|
6
|
+
import { useRouter as Ze, RouterView as Yo, useRoute as It, routeLocationKey as Jo } 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.7.
|
|
11
|
+
* @version 0.7.34
|
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
13
13
|
*/
|
|
14
|
-
const Ja = "0.7.
|
|
14
|
+
const Ja = "0.7.34", qo = {
|
|
15
15
|
default: 14,
|
|
16
16
|
small: 12,
|
|
17
17
|
large: 18
|
|
@@ -127,7 +127,7 @@ const qa = {
|
|
|
127
127
|
if (c)
|
|
128
128
|
return typeof c == "string" && (e?.appContext.app?.component(c) || o.defaultIcon) || c;
|
|
129
129
|
}, l = (c) => typeof c == "object" ? c : { value: c }, s = (c = []) => c.filter((r) => !r.hidden);
|
|
130
|
-
return (c, r) => o.item.children ? (u(), g(n(Jt),
|
|
130
|
+
return (c, r) => o.item.children ? (u(), g(n(Jt), A({
|
|
131
131
|
key: 0,
|
|
132
132
|
disabled: o.item.disabled
|
|
133
133
|
}, o.subMenu, {
|
|
@@ -140,7 +140,7 @@ const qa = {
|
|
|
140
140
|
icon: t(o.item.icon)
|
|
141
141
|
}, null, 8, ["icon"])) : h("", !0),
|
|
142
142
|
o.item.title ? (u(), z("span", tn, j(o.item.title), 1)) : h("", !0),
|
|
143
|
-
o.item.badge ? (u(), g(n(
|
|
143
|
+
o.item.badge ? (u(), g(n(Le), A({
|
|
144
144
|
key: 2,
|
|
145
145
|
class: "x-menu__badge"
|
|
146
146
|
}, l(o.item.badge)), {
|
|
@@ -167,7 +167,7 @@ const qa = {
|
|
|
167
167
|
}, {
|
|
168
168
|
title: f(() => [
|
|
169
169
|
o.item.title ? (u(), z("span", nn, j(o.item.title), 1)) : h("", !0),
|
|
170
|
-
o.item.badge ? (u(), g(n(
|
|
170
|
+
o.item.badge ? (u(), g(n(Le), A({
|
|
171
171
|
key: 1,
|
|
172
172
|
class: "x-menu__badge"
|
|
173
173
|
}, l(o.item.badge)), {
|
|
@@ -214,7 +214,7 @@ const qa = {
|
|
|
214
214
|
const i = s(l.value, r);
|
|
215
215
|
i && t("select", i);
|
|
216
216
|
};
|
|
217
|
-
return (r, i) => (u(), g(n(Gt),
|
|
217
|
+
return (r, i) => (u(), g(n(Gt), A({ class: "x-menu" }, r.$attrs, { onSelect: c }), {
|
|
218
218
|
default: f(() => [
|
|
219
219
|
(u(!0), z(W, null, Z(l.value, (p) => (u(), g(n(Vt), {
|
|
220
220
|
item: { ...p, icon: p.icon },
|
|
@@ -225,7 +225,7 @@ const qa = {
|
|
|
225
225
|
_: 1
|
|
226
226
|
}, 16));
|
|
227
227
|
}
|
|
228
|
-
}),
|
|
228
|
+
}), Bt = {
|
|
229
229
|
/**
|
|
230
230
|
* 动作名称标识
|
|
231
231
|
*/
|
|
@@ -350,7 +350,7 @@ function un(a) {
|
|
|
350
350
|
return b(() => {
|
|
351
351
|
const e = n(a);
|
|
352
352
|
if (e)
|
|
353
|
-
if (typeof e == "string" || e.setup || e.render ||
|
|
353
|
+
if (typeof e == "string" || e.setup || e.render || Lt(e)) {
|
|
354
354
|
const t = o?.appContext.app;
|
|
355
355
|
return {
|
|
356
356
|
icon: typeof e == "string" && t?.component(e) || e
|
|
@@ -371,7 +371,7 @@ function et(a, o) {
|
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
function cn(a, o, e) {
|
|
374
|
-
const t =
|
|
374
|
+
const t = Be(o), l = B(!1), s = async (r) => {
|
|
375
375
|
const i = n(a);
|
|
376
376
|
return i ? typeof i == "function" ? await i(r) : i : o;
|
|
377
377
|
}, c = async (r) => (l.value = !0, await s(r).then((i) => (t.value = i || o, l.value = !1, n(t))));
|
|
@@ -391,7 +391,7 @@ function cn(a, o, e) {
|
|
|
391
391
|
}
|
|
392
392
|
const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
393
393
|
__name: "Trigger",
|
|
394
|
-
props:
|
|
394
|
+
props: Bt,
|
|
395
395
|
emits: ["click"],
|
|
396
396
|
setup(a, { emit: o }) {
|
|
397
397
|
const e = a, t = o, l = xe(Oe(e, "icon")), s = et(Oe(e, "disabled")), c = b(() => ({
|
|
@@ -405,7 +405,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
405
405
|
if (i.preventDefault(), !s.value)
|
|
406
406
|
return t("click"), !1;
|
|
407
407
|
};
|
|
408
|
-
return (i, p) => e.mode === "button" ? (u(), g(n(ie),
|
|
408
|
+
return (i, p) => e.mode === "button" ? (u(), g(n(ie), A({
|
|
409
409
|
key: 0,
|
|
410
410
|
icon: n(l),
|
|
411
411
|
type: e.type,
|
|
@@ -413,7 +413,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
413
413
|
disabled: n(s)
|
|
414
414
|
}, e.button, { onClick: r }), {
|
|
415
415
|
default: f(() => [
|
|
416
|
-
|
|
416
|
+
D(j(i.label), 1)
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
419
419
|
}, 16, ["icon", "type", "size", "disabled"])) : (u(), z("div", {
|
|
@@ -428,7 +428,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
428
428
|
}), te = /* @__PURE__ */ P({
|
|
429
429
|
name: "XAction",
|
|
430
430
|
__name: "Action",
|
|
431
|
-
props:
|
|
431
|
+
props: Bt,
|
|
432
432
|
emits: ["click", "command"],
|
|
433
433
|
setup(a, { emit: o }) {
|
|
434
434
|
const e = a, t = Ut(), l = o, s = sn(e), c = ln(e), r = rn(e), i = et(Oe(e, "disabled")), p = b(() => ({
|
|
@@ -438,9 +438,9 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
438
438
|
}, m = (w) => {
|
|
439
439
|
if (i.value)
|
|
440
440
|
return;
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
}, _ = (w) => ae(
|
|
441
|
+
const M = e.menus?.find((I) => I.command === w);
|
|
442
|
+
M && l("command", be(M));
|
|
443
|
+
}, _ = (w) => ae(Le, c.value, () => [].concat(w)), v = (w) => ae(
|
|
444
444
|
Zt,
|
|
445
445
|
{ ...r.value, disabled: i.value, onCommand: m },
|
|
446
446
|
{
|
|
@@ -448,10 +448,10 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
448
448
|
dropdown: () => [
|
|
449
449
|
ae(
|
|
450
450
|
Qt,
|
|
451
|
-
() => (e.menus || []).map((
|
|
451
|
+
() => (e.menus || []).map((M, I) => ae(
|
|
452
452
|
eo,
|
|
453
|
-
|
|
454
|
-
() => t.item ? t.item({ item:
|
|
453
|
+
M,
|
|
454
|
+
() => t.item ? t.item({ item: M, index: I }) : M.label
|
|
455
455
|
))
|
|
456
456
|
)
|
|
457
457
|
]
|
|
@@ -460,10 +460,10 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
460
460
|
w
|
|
461
461
|
]), C = b(() => {
|
|
462
462
|
let w = ae(re(pn), { ...e, onClick: d });
|
|
463
|
-
const
|
|
464
|
-
return
|
|
463
|
+
const M = t.default?.();
|
|
464
|
+
return M && M.length && (w = M[0]), c.value && (w = _(w)), r.value && (w = v(w)), s.value && (w = y(w)), w;
|
|
465
465
|
});
|
|
466
|
-
return (w,
|
|
466
|
+
return (w, M) => (u(), z("div", {
|
|
467
467
|
class: Y(["x-action", p.value])
|
|
468
468
|
}, [
|
|
469
469
|
(u(), g(J(C.value)))
|
|
@@ -571,7 +571,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
571
571
|
key: 0,
|
|
572
572
|
direction: "vertical",
|
|
573
573
|
class: "x-action-bar__divider"
|
|
574
|
-
})) : (u(), g(n(te),
|
|
574
|
+
})) : (u(), g(n(te), A({
|
|
575
575
|
key: 1,
|
|
576
576
|
mode: e.mode,
|
|
577
577
|
size: e.size,
|
|
@@ -805,7 +805,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
805
805
|
}, null, 8, ["onClick"])) : h("", !0),
|
|
806
806
|
F("span", yn, [
|
|
807
807
|
$(s.$slots, "default", {}, () => [
|
|
808
|
-
|
|
808
|
+
D(j(o.content), 1)
|
|
809
809
|
])
|
|
810
810
|
]),
|
|
811
811
|
o.more ? (u(), g(n(pe), {
|
|
@@ -820,7 +820,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
820
820
|
(...r) => n(t).onClick && n(t).onClick(...r))
|
|
821
821
|
}, [
|
|
822
822
|
$(s.$slots, "subtitle", {}, () => [
|
|
823
|
-
|
|
823
|
+
D(j(o.subtitle), 1)
|
|
824
824
|
])
|
|
825
825
|
])) : h("", !0)
|
|
826
826
|
]),
|
|
@@ -902,7 +902,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
902
902
|
__name: "Panel",
|
|
903
903
|
props: hn,
|
|
904
904
|
setup(a, { expose: o }) {
|
|
905
|
-
const e = a, t =
|
|
905
|
+
const e = a, t = B(), l = b(() => ({
|
|
906
906
|
"x-panel--card": !!e.card,
|
|
907
907
|
"x-panel--default": !e.card,
|
|
908
908
|
[`is-${e.size}`]: !!e.size && e.size !== "default",
|
|
@@ -946,7 +946,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
946
946
|
]),
|
|
947
947
|
_: 3
|
|
948
948
|
})) : h("", !0),
|
|
949
|
-
k(n(V),
|
|
949
|
+
k(n(V), A({
|
|
950
950
|
ref_key: "bodyRef",
|
|
951
951
|
ref: t,
|
|
952
952
|
flex: !1,
|
|
@@ -960,7 +960,7 @@ const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
|
960
960
|
]),
|
|
961
961
|
_: 3
|
|
962
962
|
}, 16, ["overflow"]),
|
|
963
|
-
r.$slots.footer ? (u(), g(n(V),
|
|
963
|
+
r.$slots.footer ? (u(), g(n(V), A({
|
|
964
964
|
key: 1,
|
|
965
965
|
flex: !1,
|
|
966
966
|
padding: "",
|
|
@@ -1011,8 +1011,8 @@ class dt {
|
|
|
1011
1011
|
onEnd: (y, C) => {
|
|
1012
1012
|
if (clearTimeout(r), document.body.classList.remove(ct), this.dragging && m) {
|
|
1013
1013
|
this.dragging = !1;
|
|
1014
|
-
const { x: w, y:
|
|
1015
|
-
c && c(
|
|
1014
|
+
const { x: w, y: M } = y, I = this.getPosition(m, d, w, M);
|
|
1015
|
+
c && c(I, C), m = null;
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
});
|
|
@@ -1048,7 +1048,7 @@ const _n = {
|
|
|
1048
1048
|
const o = a.__draggable__;
|
|
1049
1049
|
o && (o.destory(), a.__draggable__ = null);
|
|
1050
1050
|
}
|
|
1051
|
-
},
|
|
1051
|
+
}, Ke = "user-select-none";
|
|
1052
1052
|
class pt {
|
|
1053
1053
|
constructor(o, e = {}) {
|
|
1054
1054
|
this.el = o, this.options = e, this.scope = mt(), this.scope.run(() => {
|
|
@@ -1056,8 +1056,8 @@ class pt {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
1058
|
scope;
|
|
1059
|
-
resizing =
|
|
1060
|
-
direction =
|
|
1059
|
+
resizing = B(!1);
|
|
1060
|
+
direction = B("");
|
|
1061
1061
|
MIE = null;
|
|
1062
1062
|
cleanMousedown;
|
|
1063
1063
|
cleanMouseup;
|
|
@@ -1074,7 +1074,7 @@ class pt {
|
|
|
1074
1074
|
), s && s(this.direction.value, this.MIE)), this.resizing.value = !1;
|
|
1075
1075
|
}), U(this.direction, (i) => {
|
|
1076
1076
|
const p = document.body;
|
|
1077
|
-
p.style.cursor = i ? `${i}-resize` : "", i ? p.classList.add(
|
|
1077
|
+
p.style.cursor = i ? `${i}-resize` : "", i ? p.classList.add(Ke) : p.classList.remove(Ke);
|
|
1078
1078
|
});
|
|
1079
1079
|
const { x: c, y: r } = this.MIE;
|
|
1080
1080
|
U([c, r], () => {
|
|
@@ -1089,29 +1089,29 @@ class pt {
|
|
|
1089
1089
|
minWidth: y = 0,
|
|
1090
1090
|
minHeight: C = 0,
|
|
1091
1091
|
maxWidth: w = 99999,
|
|
1092
|
-
maxHeight:
|
|
1092
|
+
maxHeight: M = 99999
|
|
1093
1093
|
} = l;
|
|
1094
1094
|
if (c.includes("e")) {
|
|
1095
|
-
const
|
|
1096
|
-
s.style.width = `${
|
|
1095
|
+
const I = Math.min(Math.max(p.value, y), w);
|
|
1096
|
+
s.style.width = `${I}px`;
|
|
1097
1097
|
}
|
|
1098
1098
|
if (c.includes("s")) {
|
|
1099
|
-
const
|
|
1100
|
-
s.style.height = `${
|
|
1099
|
+
const I = Math.min(Math.max(d.value, C), M);
|
|
1100
|
+
s.style.height = `${I}px`;
|
|
1101
1101
|
}
|
|
1102
1102
|
if (c.includes("w")) {
|
|
1103
|
-
const
|
|
1103
|
+
const I = Math.min(
|
|
1104
1104
|
Math.max(_.value - p.value, y),
|
|
1105
1105
|
w
|
|
1106
1106
|
);
|
|
1107
|
-
s.style.width = `${
|
|
1107
|
+
s.style.width = `${I}px`, s.style.left = `${r.value}px`;
|
|
1108
1108
|
}
|
|
1109
1109
|
if (c.includes("n")) {
|
|
1110
|
-
const
|
|
1110
|
+
const I = Math.min(
|
|
1111
1111
|
Math.max(m.value - d.value, C),
|
|
1112
|
-
|
|
1112
|
+
M
|
|
1113
1113
|
);
|
|
1114
|
-
this.el.style.height = `${
|
|
1114
|
+
this.el.style.height = `${I}px`, this.el.style.top = `${i.value}px`;
|
|
1115
1115
|
}
|
|
1116
1116
|
v && v(c, o);
|
|
1117
1117
|
}
|
|
@@ -1127,7 +1127,7 @@ class pt {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
destory() {
|
|
1129
1129
|
const o = document.body;
|
|
1130
|
-
o.style.cursor = "", o.classList.remove(
|
|
1130
|
+
o.style.cursor = "", o.classList.remove(Ke), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
const Ot = {
|
|
@@ -1370,11 +1370,11 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1370
1370
|
props: kn,
|
|
1371
1371
|
emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
|
|
1372
1372
|
setup(a, { expose: o, emit: e }) {
|
|
1373
|
-
const t = a, l = e, s = fe(), c =
|
|
1373
|
+
const t = a, l = e, s = fe(), c = B(), r = B(), { state: i, maximized: p, minimized: d, normal: m } = wn(t, c), { styles: _, classes: v, wrapperClass: y, modalStyle: C } = xn(t, i), { changeMode: w, active: M, close: I, show: S, hide: O, submit: T, cancel: N } = Cn(
|
|
1374
1374
|
t,
|
|
1375
1375
|
i,
|
|
1376
1376
|
l
|
|
1377
|
-
), x = $n(t, i, l, c),
|
|
1377
|
+
), x = $n(t, i, l, c), L = Sn(t, i, l), H = zn(t, r);
|
|
1378
1378
|
Ye(async () => {
|
|
1379
1379
|
t.modelValue && (await he(), s && l("open", s));
|
|
1380
1380
|
});
|
|
@@ -1390,7 +1390,7 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1390
1390
|
hide: O,
|
|
1391
1391
|
submit: T,
|
|
1392
1392
|
cancel: N,
|
|
1393
|
-
close:
|
|
1393
|
+
close: I,
|
|
1394
1394
|
componentInstance: H
|
|
1395
1395
|
}), (q, ee) => t.modelValue ? (u(), g(vt, {
|
|
1396
1396
|
key: 0,
|
|
@@ -1406,7 +1406,7 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1406
1406
|
class: "x-dialog__modal",
|
|
1407
1407
|
style: me(n(C))
|
|
1408
1408
|
}, null, 4)) : h("", !0),
|
|
1409
|
-
G((u(), g(n(Ve),
|
|
1409
|
+
G((u(), g(n(Ve), A({
|
|
1410
1410
|
ref_key: "panelRef",
|
|
1411
1411
|
ref: r,
|
|
1412
1412
|
class: ["x-dialog", n(v)],
|
|
@@ -1419,10 +1419,10 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1419
1419
|
style: n(_),
|
|
1420
1420
|
size: t.size,
|
|
1421
1421
|
body: { padding: t.bodyPadding },
|
|
1422
|
-
onClick: n(
|
|
1422
|
+
onClick: n(M)
|
|
1423
1423
|
}, q.$attrs), de({
|
|
1424
1424
|
title: f(() => [
|
|
1425
|
-
|
|
1425
|
+
D(j(t.title), 1)
|
|
1426
1426
|
]),
|
|
1427
1427
|
actions: f(() => [
|
|
1428
1428
|
$(q.$slots, "actions"),
|
|
@@ -1461,7 +1461,7 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1461
1461
|
mode: "icon",
|
|
1462
1462
|
type: "danger",
|
|
1463
1463
|
background: "hover",
|
|
1464
|
-
onClick: n(
|
|
1464
|
+
onClick: n(I)
|
|
1465
1465
|
}, null, 8, ["icon", "size", "onClick"])) : h("", !0)
|
|
1466
1466
|
]),
|
|
1467
1467
|
default: f(() => [
|
|
@@ -1496,7 +1496,7 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1496
1496
|
onClick: n(N)
|
|
1497
1497
|
}, {
|
|
1498
1498
|
default: f(() => [
|
|
1499
|
-
|
|
1499
|
+
D(j(typeof t.cancel == "string" ? t.cancel : "取消"), 1)
|
|
1500
1500
|
]),
|
|
1501
1501
|
_: 1
|
|
1502
1502
|
}, 8, ["size", "onClick"])) : h("", !0),
|
|
@@ -1507,7 +1507,7 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1507
1507
|
onClick: n(T)
|
|
1508
1508
|
}, {
|
|
1509
1509
|
default: f(() => [
|
|
1510
|
-
|
|
1510
|
+
D(j(typeof t.submit == "string" ? t.submit : "确定"), 1)
|
|
1511
1511
|
]),
|
|
1512
1512
|
_: 1
|
|
1513
1513
|
}, 8, ["size", "onClick"])) : h("", !0)
|
|
@@ -1520,7 +1520,7 @@ const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
|
1520
1520
|
} : void 0
|
|
1521
1521
|
]), 1040, ["header", "class", "style", "size", "body", "onClick"])), [
|
|
1522
1522
|
[n(_n), n(x)],
|
|
1523
|
-
[n(Ot), n(
|
|
1523
|
+
[n(Ot), n(L)]
|
|
1524
1524
|
])
|
|
1525
1525
|
], 2)
|
|
1526
1526
|
])) : h("", !0);
|
|
@@ -1539,7 +1539,7 @@ function ot(a, o) {
|
|
|
1539
1539
|
destroy: l
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
|
-
const
|
|
1542
|
+
const En = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -1), Mn = /* @__PURE__ */ P({
|
|
1543
1543
|
__name: "Sidebar",
|
|
1544
1544
|
props: {
|
|
1545
1545
|
collapsed: { type: Boolean }
|
|
@@ -1564,7 +1564,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1564
1564
|
}, {
|
|
1565
1565
|
default: f(() => [
|
|
1566
1566
|
$(e.$slots, "default"),
|
|
1567
|
-
|
|
1567
|
+
En
|
|
1568
1568
|
]),
|
|
1569
1569
|
_: 3
|
|
1570
1570
|
})
|
|
@@ -1592,7 +1592,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1592
1592
|
"update:favorite"
|
|
1593
1593
|
],
|
|
1594
1594
|
setup(a, { emit: o }) {
|
|
1595
|
-
const e = a, t = o, l =
|
|
1595
|
+
const e = a, t = o, l = B(!1), s = B(""), c = B(!1), r = () => {
|
|
1596
1596
|
l.value = !0;
|
|
1597
1597
|
}, i = () => {
|
|
1598
1598
|
s.value = "", l.value = !1, t("update:keyword", s.value);
|
|
@@ -1686,7 +1686,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1686
1686
|
_: 1
|
|
1687
1687
|
}));
|
|
1688
1688
|
}
|
|
1689
|
-
}),
|
|
1689
|
+
}), In = ["src"], Vn = { key: 0 }, Bn = /* @__PURE__ */ P({
|
|
1690
1690
|
__name: "Brand",
|
|
1691
1691
|
props: {
|
|
1692
1692
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -1715,7 +1715,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1715
1715
|
o.logo ? (u(), z("img", {
|
|
1716
1716
|
key: 0,
|
|
1717
1717
|
src: o.logo
|
|
1718
|
-
}, null, 8,
|
|
1718
|
+
}, null, 8, In)) : h("", !0)
|
|
1719
1719
|
])
|
|
1720
1720
|
]),
|
|
1721
1721
|
_: 3
|
|
@@ -1728,7 +1728,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1728
1728
|
default: f(() => [
|
|
1729
1729
|
o.title ? (u(), z("span", Vn, [
|
|
1730
1730
|
$(l.$slots, "title", {}, () => [
|
|
1731
|
-
|
|
1731
|
+
D(j(o.title), 1)
|
|
1732
1732
|
])
|
|
1733
1733
|
])) : h("", !0)
|
|
1734
1734
|
]),
|
|
@@ -1738,7 +1738,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1738
1738
|
_: 3
|
|
1739
1739
|
}, 8, ["class"]));
|
|
1740
1740
|
}
|
|
1741
|
-
}),
|
|
1741
|
+
}), Ee = "__favorites__", Me = "__search__", On = /* @__PURE__ */ P({
|
|
1742
1742
|
__name: "Menu",
|
|
1743
1743
|
props: {
|
|
1744
1744
|
collapse: { type: Boolean, default: !1 },
|
|
@@ -1753,12 +1753,12 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1753
1753
|
setup(a, { emit: o }) {
|
|
1754
1754
|
const e = a, t = b(() => e.menus || []), l = o, s = b(() => String(e.active?.id)), c = b(() => [
|
|
1755
1755
|
{
|
|
1756
|
-
id:
|
|
1756
|
+
id: Ee,
|
|
1757
1757
|
title: "收藏",
|
|
1758
1758
|
icon: zt,
|
|
1759
1759
|
children: e.favorites?.length ? e.favorites : [
|
|
1760
1760
|
{
|
|
1761
|
-
id:
|
|
1761
|
+
id: Ee + "empty",
|
|
1762
1762
|
disabled: !0,
|
|
1763
1763
|
title: "暂无收藏菜单"
|
|
1764
1764
|
}
|
|
@@ -1768,12 +1768,12 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1768
1768
|
const p = (e.keyword || "").trim(), d = p ? (e.flatMenus || []).filter((m) => m.title?.includes(p)) : [];
|
|
1769
1769
|
return [
|
|
1770
1770
|
{
|
|
1771
|
-
id:
|
|
1771
|
+
id: Me,
|
|
1772
1772
|
title: "搜索",
|
|
1773
1773
|
icon: He,
|
|
1774
1774
|
children: d?.length ? d : [
|
|
1775
1775
|
{
|
|
1776
|
-
id:
|
|
1776
|
+
id: Me + "empty",
|
|
1777
1777
|
disabled: !0,
|
|
1778
1778
|
title: "查询匹配不到菜单项"
|
|
1779
1779
|
}
|
|
@@ -1850,7 +1850,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1850
1850
|
collapse: !0,
|
|
1851
1851
|
"collapse-transition": !1,
|
|
1852
1852
|
"default-active": s.value,
|
|
1853
|
-
"default-openeds": [
|
|
1853
|
+
"default-openeds": [Ee],
|
|
1854
1854
|
onSelect: i
|
|
1855
1855
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1856
1856
|
[ne, e.collapse]
|
|
@@ -1868,7 +1868,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1868
1868
|
collapse: !1,
|
|
1869
1869
|
"collapse-transition": !1,
|
|
1870
1870
|
"default-active": s.value,
|
|
1871
|
-
"default-openeds": [
|
|
1871
|
+
"default-openeds": [Ee],
|
|
1872
1872
|
onSelect: i
|
|
1873
1873
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1874
1874
|
[ne, !e.collapse]
|
|
@@ -1899,7 +1899,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1899
1899
|
collapse: !0,
|
|
1900
1900
|
"collapse-transition": !1,
|
|
1901
1901
|
"default-active": s.value,
|
|
1902
|
-
"default-openeds": [
|
|
1902
|
+
"default-openeds": [Me],
|
|
1903
1903
|
onSelect: i
|
|
1904
1904
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1905
1905
|
[ne, e.collapse]
|
|
@@ -1917,7 +1917,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1917
1917
|
collapse: !1,
|
|
1918
1918
|
"collapse-transition": !1,
|
|
1919
1919
|
"default-active": s.value,
|
|
1920
|
-
"default-openeds": [
|
|
1920
|
+
"default-openeds": [Me],
|
|
1921
1921
|
onSelect: i
|
|
1922
1922
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1923
1923
|
[ne, !e.collapse]
|
|
@@ -1929,7 +1929,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1929
1929
|
]) : h("", !0)
|
|
1930
1930
|
], 64));
|
|
1931
1931
|
}
|
|
1932
|
-
}), jn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e", Rn = 140,
|
|
1932
|
+
}), jn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e", Rn = 140, Dn = {
|
|
1933
1933
|
/**
|
|
1934
1934
|
* 系统logo
|
|
1935
1935
|
*/
|
|
@@ -2012,7 +2012,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2012
2012
|
removeFavorite: {
|
|
2013
2013
|
type: Function
|
|
2014
2014
|
}
|
|
2015
|
-
}, Rt = Symbol(),
|
|
2015
|
+
}, Rt = Symbol(), Dt = Symbol(), An = { class: "x-mask-tabs__trigger" }, Fn = { key: 1 }, Nn = ["onDragstart", "onDragend"], Xn = { key: 1 }, Kn = /* @__PURE__ */ P({
|
|
2016
2016
|
__name: "Tabs",
|
|
2017
2017
|
props: {
|
|
2018
2018
|
tabs: {},
|
|
@@ -2100,7 +2100,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2100
2100
|
name: e.home.id
|
|
2101
2101
|
}, {
|
|
2102
2102
|
label: f(() => [
|
|
2103
|
-
F("div",
|
|
2103
|
+
F("div", An, [
|
|
2104
2104
|
e.home.icon ? (u(), g(J(n(xe)(e.home.icon)), { key: 0 })) : h("", !0),
|
|
2105
2105
|
e.home.title ? (u(), z("span", Fn, j(e.home.title), 1)) : h("", !0)
|
|
2106
2106
|
])
|
|
@@ -2153,17 +2153,17 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2153
2153
|
_: 1
|
|
2154
2154
|
}, 512));
|
|
2155
2155
|
}
|
|
2156
|
-
}),
|
|
2156
|
+
}), Ln = /* @__PURE__ */ P({
|
|
2157
2157
|
__name: "ThemeSwitch",
|
|
2158
2158
|
setup(a) {
|
|
2159
|
-
const o =
|
|
2159
|
+
const o = Do();
|
|
2160
2160
|
return (e, t) => (u(), g(n(Je), {
|
|
2161
2161
|
class: "x-mask-theme-switch",
|
|
2162
2162
|
modelValue: n(o),
|
|
2163
2163
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => Pe(o) ? o.value = l : null),
|
|
2164
2164
|
size: "default",
|
|
2165
|
-
"active-action-icon": n(
|
|
2166
|
-
"inactive-action-icon": n(
|
|
2165
|
+
"active-action-icon": n(Eo),
|
|
2166
|
+
"inactive-action-icon": n(Mo)
|
|
2167
2167
|
}, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"]));
|
|
2168
2168
|
}
|
|
2169
2169
|
}), Un = { class: "x-mask-toolbar__menu-item" }, Hn = /* @__PURE__ */ P({
|
|
@@ -2234,7 +2234,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2234
2234
|
}, {
|
|
2235
2235
|
item: f(({ item: m }) => [
|
|
2236
2236
|
F("span", Un, [
|
|
2237
|
-
|
|
2237
|
+
D(j(m.label) + " ", 1),
|
|
2238
2238
|
["other", "all"].includes(m.command) ? h("", !0) : (u(), g(n(pe), {
|
|
2239
2239
|
key: 0,
|
|
2240
2240
|
onClick: bt((_) => s(m), ["stop"]),
|
|
@@ -2259,7 +2259,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2259
2259
|
key: 1,
|
|
2260
2260
|
direction: "vertical"
|
|
2261
2261
|
})) : h("", !0),
|
|
2262
|
-
e.theme ? (u(), g(
|
|
2262
|
+
e.theme ? (u(), g(Ln, { key: 2 })) : h("", !0),
|
|
2263
2263
|
e.theme ? (u(), g(n(se), {
|
|
2264
2264
|
key: 3,
|
|
2265
2265
|
direction: "vertical"
|
|
@@ -2285,7 +2285,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2285
2285
|
k(n(to), {
|
|
2286
2286
|
class: "x-mask-avatar",
|
|
2287
2287
|
shape: "circle",
|
|
2288
|
-
icon: n(
|
|
2288
|
+
icon: n(Io),
|
|
2289
2289
|
src: o.avatar,
|
|
2290
2290
|
size: 26
|
|
2291
2291
|
}, null, 8, ["icon", "src"])
|
|
@@ -2330,7 +2330,7 @@ const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
2332
|
function Yn() {
|
|
2333
|
-
const a =
|
|
2333
|
+
const a = B(!1), o = B(""), e = B(!1);
|
|
2334
2334
|
return {
|
|
2335
2335
|
collapsed: a,
|
|
2336
2336
|
keyword: o,
|
|
@@ -2338,7 +2338,7 @@ function Yn() {
|
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
2340
2340
|
function Jn(a) {
|
|
2341
|
-
const o =
|
|
2341
|
+
const o = Et();
|
|
2342
2342
|
return b(() => {
|
|
2343
2343
|
const e = a.home;
|
|
2344
2344
|
return Object.assign(
|
|
@@ -2347,40 +2347,40 @@ function Jn(a) {
|
|
|
2347
2347
|
);
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function At(a, o) {
|
|
2351
2351
|
let e = [];
|
|
2352
2352
|
return a.forEach((t) => {
|
|
2353
|
-
t = o ? o(t) : t, t.children ? e = e.concat(
|
|
2353
|
+
t = o ? o(t) : t, t.children ? e = e.concat(At(t.children, o)) : e.push(t);
|
|
2354
2354
|
}), e;
|
|
2355
2355
|
}
|
|
2356
2356
|
function qn(a, o) {
|
|
2357
|
-
const e = Ze(), t =
|
|
2357
|
+
const e = Ze(), t = Be([]), l = Be([]), s = b(() => At(t.value, a.menuAdapter)), c = b(() => No(s.value, "id")), r = B(null), i = (y) => {
|
|
2358
2358
|
const C = typeof y == "object" ? y.id : y, w = c.value.get(C);
|
|
2359
2359
|
if (!w) {
|
|
2360
2360
|
console.warn("找不到菜单", y);
|
|
2361
2361
|
return;
|
|
2362
2362
|
}
|
|
2363
|
-
const { type:
|
|
2364
|
-
if (!
|
|
2363
|
+
const { type: M = "route", url: I, title: S, icon: O } = w;
|
|
2364
|
+
if (!I) {
|
|
2365
2365
|
r.value = w, o("select", w);
|
|
2366
2366
|
return;
|
|
2367
2367
|
}
|
|
2368
|
-
if (
|
|
2369
|
-
Xo(
|
|
2368
|
+
if (M === "route") {
|
|
2369
|
+
Xo(I) || I.startsWith("//") ? window.open(I) : (r.value = w, e.push(I).catch((T) => T));
|
|
2370
2370
|
return;
|
|
2371
2371
|
}
|
|
2372
|
-
if (
|
|
2373
|
-
window.open(
|
|
2372
|
+
if (M === "window") {
|
|
2373
|
+
window.open(I);
|
|
2374
2374
|
return;
|
|
2375
2375
|
}
|
|
2376
|
-
|
|
2376
|
+
M === "dialog" && ot({
|
|
2377
2377
|
resizable: !0,
|
|
2378
2378
|
bodyPadding: !1,
|
|
2379
2379
|
width: "80%",
|
|
2380
2380
|
height: "80%",
|
|
2381
2381
|
title: S,
|
|
2382
2382
|
icon: O,
|
|
2383
|
-
src:
|
|
2383
|
+
src: I
|
|
2384
2384
|
});
|
|
2385
2385
|
}, p = async () => {
|
|
2386
2386
|
t.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], l.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
|
|
@@ -2401,44 +2401,44 @@ function qn(a, o) {
|
|
|
2401
2401
|
};
|
|
2402
2402
|
}
|
|
2403
2403
|
function Gn(a, o, e, t, l) {
|
|
2404
|
-
const s =
|
|
2405
|
-
() => i.value.slice(0, m.value).filter((
|
|
2406
|
-
), v = b(() => i.value.slice(m.value)), y = (
|
|
2407
|
-
c.push(
|
|
2408
|
-
}, O = (
|
|
2409
|
-
|
|
2404
|
+
const s = It(), c = Ze(), r = {}, i = B([]), p = B(), { width: d } = Tt(p), m = b(() => Math.floor(d.value / Rn)), _ = b(
|
|
2405
|
+
() => i.value.slice(0, m.value).filter((E) => !E.dialog)
|
|
2406
|
+
), v = b(() => i.value.slice(m.value)), y = (E) => e.value.find((R) => R.url === E), C = (E) => s.fullPath === E.url, w = (E) => l.value.id === E ? l.value : i.value.find((R) => R.id === E), M = B(""), I = b(() => w(M.value)), S = (E) => {
|
|
2407
|
+
c.push(E.url).catch((R) => R);
|
|
2408
|
+
}, O = (E) => {
|
|
2409
|
+
M.value = E.id, s.fullPath !== E.url && S(E);
|
|
2410
2410
|
}, T = () => {
|
|
2411
2411
|
S(l.value);
|
|
2412
|
-
}, N = (
|
|
2413
|
-
const R = i.value.find((X) => X.url ===
|
|
2414
|
-
R ? O(R) : (i.value.unshift(
|
|
2415
|
-
}, x = async (
|
|
2416
|
-
const { url: R = s.fullPath, icon: X, title: Se = "新建标签页" } =
|
|
2412
|
+
}, N = (E) => {
|
|
2413
|
+
const R = i.value.find((X) => X.url === E.url || X.id === E.id);
|
|
2414
|
+
R ? O(R) : (i.value.unshift(E), O(E));
|
|
2415
|
+
}, x = async (E) => {
|
|
2416
|
+
const { url: R = s.fullPath, icon: X, title: Se = "新建标签页" } = E || {}, ze = r[R], De = Et(), Ae = Mt(R);
|
|
2417
2417
|
return {
|
|
2418
|
-
id:
|
|
2419
|
-
name:
|
|
2418
|
+
id: De,
|
|
2419
|
+
name: Ae,
|
|
2420
2420
|
url: R,
|
|
2421
2421
|
icon: X,
|
|
2422
2422
|
title: Se,
|
|
2423
2423
|
closable: !0,
|
|
2424
|
-
menu:
|
|
2424
|
+
menu: E,
|
|
2425
2425
|
...ze ? await ze() : {}
|
|
2426
2426
|
};
|
|
2427
|
-
},
|
|
2427
|
+
}, L = async (E) => {
|
|
2428
2428
|
if (await Fe.confirm("是否关闭页签", "提示", {
|
|
2429
2429
|
type: "warning"
|
|
2430
2430
|
}).catch(() => !1)) {
|
|
2431
|
-
if (i.value = i.value.filter((X) => X.id !==
|
|
2431
|
+
if (i.value = i.value.filter((X) => X.id !== E.id), M.value === E.id) {
|
|
2432
2432
|
const X = i.value[0];
|
|
2433
2433
|
S(X || l.value);
|
|
2434
2434
|
}
|
|
2435
|
-
return
|
|
2435
|
+
return E;
|
|
2436
2436
|
}
|
|
2437
|
-
}, H = (
|
|
2438
|
-
const R = i.value.findIndex((X) => X.id ===
|
|
2437
|
+
}, H = (E) => {
|
|
2438
|
+
const R = i.value.findIndex((X) => X.id === E.id);
|
|
2439
2439
|
if (R >= 0) {
|
|
2440
2440
|
const X = i.value[R];
|
|
2441
|
-
i.value.splice(R, 1, Object.assign(X,
|
|
2441
|
+
i.value.splice(R, 1, Object.assign(X, E));
|
|
2442
2442
|
}
|
|
2443
2443
|
}, ue = async () => {
|
|
2444
2444
|
if (!await Fe.confirm("是否关闭全部页签", "提示", {
|
|
@@ -2452,16 +2452,16 @@ function Gn(a, o, e, t, l) {
|
|
|
2452
2452
|
type: "warning"
|
|
2453
2453
|
}).catch(() => !1))
|
|
2454
2454
|
return;
|
|
2455
|
-
const R = i.value.filter((X) => X.id !==
|
|
2456
|
-
return i.value = i.value.filter((X) => X.id ===
|
|
2457
|
-
}, ee = (
|
|
2458
|
-
const R = i.value.filter((X) => X.id !==
|
|
2459
|
-
i.value = [
|
|
2455
|
+
const R = i.value.filter((X) => X.id !== M.value);
|
|
2456
|
+
return i.value = i.value.filter((X) => X.id === M.value), R;
|
|
2457
|
+
}, ee = (E) => {
|
|
2458
|
+
const R = i.value.filter((X) => X.id !== E.id);
|
|
2459
|
+
i.value = [E, ...R], O(E);
|
|
2460
2460
|
}, ce = async () => {
|
|
2461
2461
|
await he();
|
|
2462
|
-
const
|
|
2463
|
-
if (
|
|
2464
|
-
|
|
2462
|
+
const E = l.value.url === s.fullPath, R = y(s.fullPath);
|
|
2463
|
+
if (E)
|
|
2464
|
+
M.value = l.value.id;
|
|
2465
2465
|
else {
|
|
2466
2466
|
const X = await x(R);
|
|
2467
2467
|
N(X);
|
|
@@ -2472,13 +2472,13 @@ function Gn(a, o, e, t, l) {
|
|
|
2472
2472
|
tabRef: p,
|
|
2473
2473
|
tabs: i,
|
|
2474
2474
|
showTabs: _,
|
|
2475
|
-
currentTab:
|
|
2475
|
+
currentTab: I,
|
|
2476
2476
|
changeTab: S,
|
|
2477
|
-
removeTab:
|
|
2477
|
+
removeTab: L,
|
|
2478
2478
|
updateTab: H,
|
|
2479
2479
|
addTab: N,
|
|
2480
2480
|
home: l,
|
|
2481
|
-
tabValue:
|
|
2481
|
+
tabValue: M,
|
|
2482
2482
|
isCurrentTab: C,
|
|
2483
2483
|
activeHome: T,
|
|
2484
2484
|
activeTab: O,
|
|
@@ -2489,22 +2489,22 @@ function Gn(a, o, e, t, l) {
|
|
|
2489
2489
|
};
|
|
2490
2490
|
}
|
|
2491
2491
|
function Zn(a) {
|
|
2492
|
-
const o = /* @__PURE__ */ new Map(), e =
|
|
2492
|
+
const o = /* @__PURE__ */ new Map(), e = B([]), t = Re({}), l = fe(), s = {}, { updateTab: c, isCurrentTab: r, activeHome: i, tabs: p } = a, d = (S, O) => {
|
|
2493
2493
|
const T = O.fullPath;
|
|
2494
2494
|
if (o.has(T))
|
|
2495
2495
|
return o.get(T);
|
|
2496
2496
|
{
|
|
2497
|
-
const N =
|
|
2497
|
+
const N = Mt(T), x = {
|
|
2498
2498
|
name: N,
|
|
2499
2499
|
setup() {
|
|
2500
|
-
const
|
|
2500
|
+
const L = b(() => t[T] || document.body), H = b(() => !t[T]), ue = b(() => !e.value.includes(N));
|
|
2501
2501
|
return $e(
|
|
2502
2502
|
Jo,
|
|
2503
2503
|
be({ ...O })
|
|
2504
2504
|
), () => ue.value ? ae(
|
|
2505
2505
|
vt,
|
|
2506
2506
|
{
|
|
2507
|
-
to:
|
|
2507
|
+
to: L.value,
|
|
2508
2508
|
disabled: H.value
|
|
2509
2509
|
},
|
|
2510
2510
|
[ae(S)]
|
|
@@ -2552,7 +2552,7 @@ function Zn(a) {
|
|
|
2552
2552
|
e.value = [S.name], await he(), e.value = [];
|
|
2553
2553
|
}, C = async (S) => {
|
|
2554
2554
|
e.value = S.map((O) => O.name), await he(), e.value = [];
|
|
2555
|
-
}, w = (S) => (S.preventDefault(), !1),
|
|
2555
|
+
}, w = (S) => (S.preventDefault(), !1), M = (S) => {
|
|
2556
2556
|
if (S.dataTransfer) {
|
|
2557
2557
|
const O = S.dataTransfer.getData("tab"), T = p.value.find((N) => N.id === O);
|
|
2558
2558
|
if (T) {
|
|
@@ -2563,14 +2563,14 @@ function Zn(a) {
|
|
|
2563
2563
|
}, v(T);
|
|
2564
2564
|
}
|
|
2565
2565
|
}
|
|
2566
|
-
},
|
|
2567
|
-
return je(document, "dragover", w), je(document, "drop",
|
|
2566
|
+
}, I = (S) => !!t[S];
|
|
2567
|
+
return je(document, "dragover", w), je(document, "drop", M), {
|
|
2568
2568
|
createView: d,
|
|
2569
2569
|
openDialog: v,
|
|
2570
2570
|
refresh: y,
|
|
2571
2571
|
exclude: e,
|
|
2572
2572
|
cleanCache: C,
|
|
2573
|
-
hasDialog:
|
|
2573
|
+
hasDialog: I,
|
|
2574
2574
|
closeDialog: m,
|
|
2575
2575
|
closeDialogs: _
|
|
2576
2576
|
};
|
|
@@ -2578,49 +2578,49 @@ function Zn(a) {
|
|
|
2578
2578
|
const Za = /* @__PURE__ */ P({
|
|
2579
2579
|
name: "XMask",
|
|
2580
2580
|
__name: "Mask",
|
|
2581
|
-
props:
|
|
2581
|
+
props: Dn,
|
|
2582
2582
|
emits: ["select", "actionClick", "actionCommand"],
|
|
2583
2583
|
setup(a, { emit: o }) {
|
|
2584
2584
|
const e = a, t = o, l = Jn(e), { collapsed: s, keyword: c, favorite: r } = Yn(), { menus: i, favorites: p, flatMenus: d, active: m, select: _, toggleFavorite: v } = qn(e, t), {
|
|
2585
2585
|
tabRef: y,
|
|
2586
2586
|
showTabs: C,
|
|
2587
2587
|
currentTab: w,
|
|
2588
|
-
changeTab:
|
|
2589
|
-
removeTab:
|
|
2588
|
+
changeTab: M,
|
|
2589
|
+
removeTab: I,
|
|
2590
2590
|
tabs: S,
|
|
2591
2591
|
updateTab: O,
|
|
2592
2592
|
isCurrentTab: T,
|
|
2593
2593
|
activeHome: N,
|
|
2594
2594
|
removeAllTabs: x,
|
|
2595
|
-
removeOtherTabs:
|
|
2595
|
+
removeOtherTabs: L,
|
|
2596
2596
|
dropdownTabs: H,
|
|
2597
2597
|
moveToShow: ue
|
|
2598
|
-
} = Gn(e, t, d, m, l), { createView: q, openDialog: ee, refresh: ce, exclude:
|
|
2598
|
+
} = Gn(e, t, d, m, l), { createView: q, openDialog: ee, refresh: ce, exclude: E, cleanCache: R, closeDialogs: X } = Zn({
|
|
2599
2599
|
tabs: S,
|
|
2600
2600
|
updateTab: O,
|
|
2601
2601
|
isCurrentTab: T,
|
|
2602
2602
|
activeHome: N
|
|
2603
|
-
}), Se = async (
|
|
2604
|
-
await
|
|
2603
|
+
}), Se = async (K) => {
|
|
2604
|
+
await I(K) && await R([K]);
|
|
2605
2605
|
}, ze = async () => {
|
|
2606
|
-
const
|
|
2607
|
-
|
|
2608
|
-
},
|
|
2609
|
-
const
|
|
2610
|
-
|
|
2611
|
-
},
|
|
2612
|
-
t("actionClick",
|
|
2613
|
-
},
|
|
2614
|
-
t("actionCommand",
|
|
2606
|
+
const K = await x();
|
|
2607
|
+
K && (X(K), await R(K));
|
|
2608
|
+
}, De = async () => {
|
|
2609
|
+
const K = await L();
|
|
2610
|
+
K && (X(K), await R(K));
|
|
2611
|
+
}, Ae = (K) => {
|
|
2612
|
+
t("actionClick", K);
|
|
2613
|
+
}, Kt = (K, oe) => {
|
|
2614
|
+
t("actionCommand", K, oe);
|
|
2615
2615
|
};
|
|
2616
|
-
return $e(
|
|
2616
|
+
return $e(Dt, {
|
|
2617
2617
|
tabs: S,
|
|
2618
2618
|
flatMenus: d,
|
|
2619
2619
|
favorites: p,
|
|
2620
2620
|
updateTab: O,
|
|
2621
2621
|
active: m,
|
|
2622
2622
|
currentTab: w
|
|
2623
|
-
}), (
|
|
2623
|
+
}), (K, oe) => (u(), g(n(V), {
|
|
2624
2624
|
class: Y(["x-mask", { "is-disabled": e.disabled }]),
|
|
2625
2625
|
fit: ""
|
|
2626
2626
|
}, {
|
|
@@ -2628,16 +2628,16 @@ const Za = /* @__PURE__ */ P({
|
|
|
2628
2628
|
e.disabled ? (u(), g(ft, {
|
|
2629
2629
|
key: 1,
|
|
2630
2630
|
createView: n(q),
|
|
2631
|
-
exclude: n(
|
|
2631
|
+
exclude: n(E)
|
|
2632
2632
|
}, {
|
|
2633
2633
|
default: f(() => [
|
|
2634
|
-
|
|
2634
|
+
K.$slots.default ? $(K.$slots, "default", { key: 0 }) : h("", !0)
|
|
2635
2635
|
]),
|
|
2636
2636
|
_: 3
|
|
2637
2637
|
}, 8, ["createView", "exclude"])) : (u(), z(W, { key: 0 }, [
|
|
2638
|
-
k(
|
|
2638
|
+
k(Mn, { collapsed: n(s) }, {
|
|
2639
2639
|
brand: f(() => [
|
|
2640
|
-
k(
|
|
2640
|
+
k(Bn, {
|
|
2641
2641
|
logo: e.logo,
|
|
2642
2642
|
title: e.title,
|
|
2643
2643
|
url: n(l).url,
|
|
@@ -2680,14 +2680,14 @@ const Za = /* @__PURE__ */ P({
|
|
|
2680
2680
|
align: "center"
|
|
2681
2681
|
}, {
|
|
2682
2682
|
default: f(() => [
|
|
2683
|
-
k(
|
|
2683
|
+
k(Kn, {
|
|
2684
2684
|
ref_key: "tabRef",
|
|
2685
2685
|
ref: y,
|
|
2686
2686
|
favorites: n(p),
|
|
2687
2687
|
tabs: n(C),
|
|
2688
2688
|
home: n(l),
|
|
2689
2689
|
value: n(w)?.id,
|
|
2690
|
-
onClick: n(
|
|
2690
|
+
onClick: n(M),
|
|
2691
2691
|
onToggleFavorite: n(v),
|
|
2692
2692
|
onRemove: Se,
|
|
2693
2693
|
onDialog: n(ee),
|
|
@@ -2697,21 +2697,21 @@ const Za = /* @__PURE__ */ P({
|
|
|
2697
2697
|
tabs: n(H),
|
|
2698
2698
|
actions: e.actions,
|
|
2699
2699
|
theme: e.theme,
|
|
2700
|
-
onCloseOtherTabs:
|
|
2700
|
+
onCloseOtherTabs: De,
|
|
2701
2701
|
onCloseAllTabs: ze,
|
|
2702
2702
|
onCloseTab: Se,
|
|
2703
2703
|
onClickTab: n(ue),
|
|
2704
|
-
onActionClick:
|
|
2705
|
-
onActionCommand:
|
|
2704
|
+
onActionClick: Ae,
|
|
2705
|
+
onActionCommand: Kt
|
|
2706
2706
|
}, {
|
|
2707
2707
|
default: f(() => [
|
|
2708
2708
|
k(Wn, {
|
|
2709
2709
|
avatar: e.avatar
|
|
2710
2710
|
}, de({ _: 2 }, [
|
|
2711
|
-
|
|
2711
|
+
K.$slots.user ? {
|
|
2712
2712
|
name: "default",
|
|
2713
2713
|
fn: f(() => [
|
|
2714
|
-
$(
|
|
2714
|
+
$(K.$slots, "user")
|
|
2715
2715
|
]),
|
|
2716
2716
|
key: "0"
|
|
2717
2717
|
} : void 0
|
|
@@ -2724,10 +2724,10 @@ const Za = /* @__PURE__ */ P({
|
|
|
2724
2724
|
}),
|
|
2725
2725
|
k(ft, {
|
|
2726
2726
|
createView: n(q),
|
|
2727
|
-
exclude: n(
|
|
2727
|
+
exclude: n(E)
|
|
2728
2728
|
}, {
|
|
2729
2729
|
default: f(() => [
|
|
2730
|
-
|
|
2730
|
+
K.$slots.default ? $(K.$slots, "default", { key: 0 }) : h("", !0)
|
|
2731
2731
|
]),
|
|
2732
2732
|
_: 3
|
|
2733
2733
|
}, 8, ["createView", "exclude"])
|
|
@@ -2741,7 +2741,7 @@ const Za = /* @__PURE__ */ P({
|
|
|
2741
2741
|
}
|
|
2742
2742
|
});
|
|
2743
2743
|
function Qa(a = {}) {
|
|
2744
|
-
const o =
|
|
2744
|
+
const o = It(), e = ve(Rt, null), t = ve(Dt, null);
|
|
2745
2745
|
if (e) {
|
|
2746
2746
|
const s = typeof a == "function" ? a : async () => a;
|
|
2747
2747
|
e[o.fullPath] = s;
|
|
@@ -2760,7 +2760,7 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2760
2760
|
const o = a;
|
|
2761
2761
|
return (e, t) => (u(), g(n(xt), le(ke(e.$attrs)), {
|
|
2762
2762
|
default: f(() => [
|
|
2763
|
-
(u(!0), z(W, null, Z(o.options, (l, s) => (u(), g(n(Ct),
|
|
2763
|
+
(u(!0), z(W, null, Z(o.options, (l, s) => (u(), g(n(Ct), A({
|
|
2764
2764
|
key: `item_${s}_${l.value}`
|
|
2765
2765
|
}, l), de({ _: 2 }, [
|
|
2766
2766
|
e.$slots.option ? {
|
|
@@ -2793,7 +2793,7 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2793
2793
|
value: s.value
|
|
2794
2794
|
}, {
|
|
2795
2795
|
default: f(() => [
|
|
2796
|
-
|
|
2796
|
+
D(j(s.label), 1)
|
|
2797
2797
|
]),
|
|
2798
2798
|
_: 2
|
|
2799
2799
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -2819,7 +2819,7 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2819
2819
|
value: s.value
|
|
2820
2820
|
}, {
|
|
2821
2821
|
default: f(() => [
|
|
2822
|
-
|
|
2822
|
+
D(j(s.label), 1)
|
|
2823
2823
|
]),
|
|
2824
2824
|
_: 2
|
|
2825
2825
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -3017,7 +3017,7 @@ async function na(a, o) {
|
|
|
3017
3017
|
return e ? typeof e == "function" ? await e(o) || [] : e : [];
|
|
3018
3018
|
}
|
|
3019
3019
|
function aa(a, o, e, t, l) {
|
|
3020
|
-
const s =
|
|
3020
|
+
const s = B([]), c = b(() => !t || !l ? {} : Pt(a.cascader).reduce((p, d) => (p[d] = Ie(l, d), p), {}));
|
|
3021
3021
|
return U(
|
|
3022
3022
|
c,
|
|
3023
3023
|
async (i) => {
|
|
@@ -3051,7 +3051,7 @@ function aa(a, o, e, t, l) {
|
|
|
3051
3051
|
component: i,
|
|
3052
3052
|
props: {}
|
|
3053
3053
|
};
|
|
3054
|
-
return
|
|
3054
|
+
return Ko({}, y, {
|
|
3055
3055
|
props: v
|
|
3056
3056
|
});
|
|
3057
3057
|
})
|
|
@@ -3069,24 +3069,24 @@ const sa = {
|
|
|
3069
3069
|
props: oa,
|
|
3070
3070
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
3071
3071
|
setup(a, { expose: o, emit: e }) {
|
|
3072
|
-
const t = a, l = e, s = ve(Nt, null), c = ve(mo, null), r = ve(Xt, null), i = b(() => !s?.proxy || !r ? t.visible : typeof t.visible == "function" ? t.visible(r) : Ge(t.visible) ? Object.entries(t.visible).every(([
|
|
3072
|
+
const t = a, l = e, s = ve(Nt, null), c = ve(mo, null), r = ve(Xt, null), i = b(() => !s?.proxy || !r ? t.visible : typeof t.visible == "function" ? t.visible(r) : Ge(t.visible) ? Object.entries(t.visible).every(([L, H]) => Ie(r, L) === H) : t.visible), p = () => s?.proxy && r && t.name ? Ie(r, t.name) ?? t.modelValue : t.modelValue, d = B(p()), { editor: m } = aa(
|
|
3073
3073
|
t,
|
|
3074
3074
|
l,
|
|
3075
3075
|
i,
|
|
3076
3076
|
s,
|
|
3077
3077
|
r
|
|
3078
|
-
), _ =
|
|
3078
|
+
), _ = B(), v = B(), y = b(
|
|
3079
3079
|
() => t.size || c?.size || "default"
|
|
3080
3080
|
), C = b(() => Object.assign(
|
|
3081
3081
|
{},
|
|
3082
3082
|
s?.props.tooltipMessage || {},
|
|
3083
3083
|
typeof t.tooltipMessage == "boolean" ? {} : t.tooltipMessage
|
|
3084
|
-
)), w = (x = "") => t.error ? t.error : x.includes("is required") ? `${t.label || t.name}是必填项!` : x,
|
|
3084
|
+
)), w = (x = "") => t.error ? t.error : x.includes("is required") ? `${t.label || t.name}是必填项!` : x, M = b(() => {
|
|
3085
3085
|
const x = s?.props.tooltipMessage ?? t.tooltipMessage;
|
|
3086
3086
|
return {
|
|
3087
3087
|
[`is-tooltip-${t.tooltipPosition}`]: !!x && !!t.tooltipPosition
|
|
3088
3088
|
};
|
|
3089
|
-
}),
|
|
3089
|
+
}), I = b(() => {
|
|
3090
3090
|
const x = s?.proxy;
|
|
3091
3091
|
return {
|
|
3092
3092
|
width: t.width ? Q(t.width) : x && x.inline && x.inlineColumns ? `${100 / x.inlineColumns}%` : null
|
|
@@ -3100,10 +3100,10 @@ const sa = {
|
|
|
3100
3100
|
d.value = x;
|
|
3101
3101
|
}
|
|
3102
3102
|
}));
|
|
3103
|
-
return U(d, (x,
|
|
3104
|
-
i.value && !qe(x,
|
|
3103
|
+
return U(d, (x, L) => {
|
|
3104
|
+
i.value && !qe(x, L) && (l("update:modelValue", x), s?.proxy && r && t.name && Xe(r, t.name, x));
|
|
3105
3105
|
}), U(
|
|
3106
|
-
() => !s?.proxy || !t.name || !r ? t.modelValue :
|
|
3106
|
+
() => !s?.proxy || !t.name || !r ? t.modelValue : Ie(r, t.name) ?? t.modelValue,
|
|
3107
3107
|
(x) => {
|
|
3108
3108
|
i.value && (d.value = x);
|
|
3109
3109
|
},
|
|
@@ -3128,15 +3128,15 @@ const sa = {
|
|
|
3128
3128
|
blur: () => {
|
|
3129
3129
|
v.value?.foucs && v.value.blur();
|
|
3130
3130
|
}
|
|
3131
|
-
}), (x,
|
|
3131
|
+
}), (x, L) => i.value ? (u(), g(n(go), A({
|
|
3132
3132
|
key: 0,
|
|
3133
|
-
class: ["x-field",
|
|
3133
|
+
class: ["x-field", M.value],
|
|
3134
3134
|
ref_key: "itemRef",
|
|
3135
3135
|
ref: _,
|
|
3136
3136
|
prop: t.name,
|
|
3137
3137
|
label: x.label,
|
|
3138
3138
|
size: y.value,
|
|
3139
|
-
style:
|
|
3139
|
+
style: I.value
|
|
3140
3140
|
}, x.$attrs), de({
|
|
3141
3141
|
error: f(({ error: H }) => [
|
|
3142
3142
|
$(x.$slots, "error", { error: H }, () => [
|
|
@@ -3145,13 +3145,13 @@ const sa = {
|
|
|
3145
3145
|
class: "x-field__info",
|
|
3146
3146
|
style: me(S.value)
|
|
3147
3147
|
}, [
|
|
3148
|
-
k(n(ht),
|
|
3148
|
+
k(n(ht), A({
|
|
3149
3149
|
content: w(H)
|
|
3150
3150
|
}, C.value), {
|
|
3151
3151
|
default: f(() => [
|
|
3152
3152
|
k(n(pe), {
|
|
3153
3153
|
class: "x-field__trigger",
|
|
3154
|
-
icon: n(
|
|
3154
|
+
icon: n(Bo),
|
|
3155
3155
|
size: y.value
|
|
3156
3156
|
}, null, 8, ["icon", "size"])
|
|
3157
3157
|
]),
|
|
@@ -3165,13 +3165,13 @@ const sa = {
|
|
|
3165
3165
|
class: Y(["x-field__editor_wrap", { "is-inline": t.inline }])
|
|
3166
3166
|
}, [
|
|
3167
3167
|
$(x.$slots, "editor", { editor: O.value }, () => [
|
|
3168
|
-
n(m).component ? (u(), g(J(n(m).component),
|
|
3168
|
+
n(m).component ? (u(), g(J(n(m).component), A({
|
|
3169
3169
|
key: 0,
|
|
3170
3170
|
class: "x-field__editor",
|
|
3171
3171
|
ref_key: "editorRef",
|
|
3172
3172
|
ref: v,
|
|
3173
3173
|
modelValue: d.value,
|
|
3174
|
-
"onUpdate:modelValue":
|
|
3174
|
+
"onUpdate:modelValue": L[0] || (L[0] = (H) => d.value = H)
|
|
3175
3175
|
}, n(m).props), de({ _: 2 }, [
|
|
3176
3176
|
x.$slots.option ? {
|
|
3177
3177
|
name: "option",
|
|
@@ -3184,7 +3184,7 @@ const sa = {
|
|
|
3184
3184
|
]),
|
|
3185
3185
|
t.tip || x.$slots.tip ? (u(), z("div", la, [
|
|
3186
3186
|
$(x.$slots, "tip", {}, () => [
|
|
3187
|
-
|
|
3187
|
+
D(j(t.tip), 1)
|
|
3188
3188
|
])
|
|
3189
3189
|
])) : h("", !0)
|
|
3190
3190
|
], 2),
|
|
@@ -3263,7 +3263,7 @@ const sa = {
|
|
|
3263
3263
|
props: ra,
|
|
3264
3264
|
emits: ["change", "submit", "reset"],
|
|
3265
3265
|
setup(a, { expose: o, emit: e }) {
|
|
3266
|
-
const t = a, l = e, s = fe(), c =
|
|
3266
|
+
const t = a, l = e, s = fe(), c = B(), r = Re(t.model || {}), i = B(!1);
|
|
3267
3267
|
$e(Nt, s), $e(Xt, r), U(
|
|
3268
3268
|
() => t.model,
|
|
3269
3269
|
(m) => {
|
|
@@ -3283,7 +3283,7 @@ const sa = {
|
|
|
3283
3283
|
model: r,
|
|
3284
3284
|
submit: p,
|
|
3285
3285
|
reset: d
|
|
3286
|
-
}), (m, _) => (u(), g(n(yo),
|
|
3286
|
+
}), (m, _) => (u(), g(n(yo), A({
|
|
3287
3287
|
ref_key: "formRef",
|
|
3288
3288
|
ref: c,
|
|
3289
3289
|
class: "x-form",
|
|
@@ -3310,7 +3310,7 @@ const sa = {
|
|
|
3310
3310
|
onClick: p
|
|
3311
3311
|
}, {
|
|
3312
3312
|
default: f(() => [
|
|
3313
|
-
|
|
3313
|
+
D(j(t.submitText), 1)
|
|
3314
3314
|
]),
|
|
3315
3315
|
_: 1
|
|
3316
3316
|
}, 8, ["loading"])) : h("", !0),
|
|
@@ -3320,7 +3320,7 @@ const sa = {
|
|
|
3320
3320
|
onClick: _[0] || (_[0] = () => d())
|
|
3321
3321
|
}, {
|
|
3322
3322
|
default: f(() => [
|
|
3323
|
-
|
|
3323
|
+
D(j(t.resetText), 1)
|
|
3324
3324
|
]),
|
|
3325
3325
|
_: 1
|
|
3326
3326
|
})) : h("", !0),
|
|
@@ -3376,7 +3376,7 @@ const sa = {
|
|
|
3376
3376
|
props: ca,
|
|
3377
3377
|
emits: ["update:modelValue", "submit", "close"],
|
|
3378
3378
|
setup(a, { expose: o, emit: e }) {
|
|
3379
|
-
const t = a, l = e, s =
|
|
3379
|
+
const t = a, l = e, s = B(), c = B(), r = b(() => c.value?.$vtjEl), i = () => {
|
|
3380
3380
|
s.value?.submit();
|
|
3381
3381
|
}, p = () => {
|
|
3382
3382
|
l("update:modelValue", !1), l("close");
|
|
@@ -3391,7 +3391,7 @@ const sa = {
|
|
|
3391
3391
|
$vtjEl: r,
|
|
3392
3392
|
formRef: s,
|
|
3393
3393
|
dialogRef: c
|
|
3394
|
-
}), (v, y) => (u(), g(n(jt),
|
|
3394
|
+
}), (v, y) => (u(), g(n(jt), A({
|
|
3395
3395
|
ref_key: "dialogRef",
|
|
3396
3396
|
ref: c,
|
|
3397
3397
|
class: "x-dialog-form",
|
|
@@ -3405,7 +3405,7 @@ const sa = {
|
|
|
3405
3405
|
maximizable: !1
|
|
3406
3406
|
}, v.$attrs), de({
|
|
3407
3407
|
default: f(() => [
|
|
3408
|
-
k(n(ua),
|
|
3408
|
+
k(n(ua), A({
|
|
3409
3409
|
ref_key: "formRef",
|
|
3410
3410
|
ref: s,
|
|
3411
3411
|
class: "x-dialog-form__form",
|
|
@@ -3490,11 +3490,11 @@ const sa = {
|
|
|
3490
3490
|
}, r = (i) => {
|
|
3491
3491
|
t("actionCommand", i);
|
|
3492
3492
|
};
|
|
3493
|
-
return (i, p) => (u(), g(n(kt),
|
|
3493
|
+
return (i, p) => (u(), g(n(kt), A({
|
|
3494
3494
|
class: ["x-tabs", s.value]
|
|
3495
3495
|
}, i.$attrs), {
|
|
3496
3496
|
default: f(() => [
|
|
3497
|
-
(u(!0), z(W, null, Z(e.items, (d) => (u(), g(n(Ue),
|
|
3497
|
+
(u(!0), z(W, null, Z(e.items, (d) => (u(), g(n(Ue), A({
|
|
3498
3498
|
key: d.value ?? d.name
|
|
3499
3499
|
}, l(d)), {
|
|
3500
3500
|
label: f(() => [
|
|
@@ -3504,9 +3504,9 @@ const sa = {
|
|
|
3504
3504
|
class: "x-tabs__icon"
|
|
3505
3505
|
})) : h("", !0),
|
|
3506
3506
|
F("div", pa, [
|
|
3507
|
-
|
|
3507
|
+
D(j(d.label) + " ", 1),
|
|
3508
3508
|
d.actions && [d.name, d.value].includes(i.$attrs.modelValue) ? (u(), z("div", fa, [
|
|
3509
|
-
(u(!0), z(W, null, Z(d.actions, (m) => (u(), g(n(te),
|
|
3509
|
+
(u(!0), z(W, null, Z(d.actions, (m) => (u(), g(n(te), A({
|
|
3510
3510
|
mode: "icon",
|
|
3511
3511
|
type: "primary",
|
|
3512
3512
|
size: "small",
|
|
@@ -3521,7 +3521,7 @@ const sa = {
|
|
|
3521
3521
|
]),
|
|
3522
3522
|
default: f(() => [
|
|
3523
3523
|
$(i.$slots, "default", le(ke(d)), () => [
|
|
3524
|
-
d.component ? (u(), g(J(d.component), le(
|
|
3524
|
+
d.component ? (u(), g(J(d.component), le(A({ key: 0 }, d.props)), null, 16)) : h("", !0)
|
|
3525
3525
|
])
|
|
3526
3526
|
]),
|
|
3527
3527
|
_: 2
|
|
@@ -3643,7 +3643,7 @@ const sa = {
|
|
|
3643
3643
|
})) : h("", !0),
|
|
3644
3644
|
F("span", ga, [
|
|
3645
3645
|
$(m.$slots, "title", {}, () => [
|
|
3646
|
-
|
|
3646
|
+
D(j(e.title), 1)
|
|
3647
3647
|
])
|
|
3648
3648
|
])
|
|
3649
3649
|
]),
|
|
@@ -3651,7 +3651,7 @@ const sa = {
|
|
|
3651
3651
|
}, 8, ["onClick"])) : h("", !0),
|
|
3652
3652
|
e.description || m.$slots.description ? (u(), z("div", ya, [
|
|
3653
3653
|
$(m.$slots, "description", {}, () => [
|
|
3654
|
-
|
|
3654
|
+
D(j(e.description), 1)
|
|
3655
3655
|
])
|
|
3656
3656
|
])) : h("", !0),
|
|
3657
3657
|
m.$slots.default ? (u(), z("div", va, [
|
|
@@ -3659,7 +3659,7 @@ const sa = {
|
|
|
3659
3659
|
])) : h("", !0),
|
|
3660
3660
|
e.actions || e.actionBarProps || m.$slots.actions ? (u(), z("div", ba, [
|
|
3661
3661
|
$(m.$slots, "actions", {}, () => [
|
|
3662
|
-
k(n(tt),
|
|
3662
|
+
k(n(tt), A(c.value, {
|
|
3663
3663
|
onClick: p,
|
|
3664
3664
|
onCommand: d
|
|
3665
3665
|
}), null, 16)
|
|
@@ -3689,7 +3689,7 @@ function _a() {
|
|
|
3689
3689
|
return import("echarts");
|
|
3690
3690
|
}
|
|
3691
3691
|
function ka(a, o) {
|
|
3692
|
-
const e =
|
|
3692
|
+
const e = B(), t = Be();
|
|
3693
3693
|
return gt(async () => {
|
|
3694
3694
|
t.value = await _a();
|
|
3695
3695
|
const l = n(a);
|
|
@@ -3702,9 +3702,9 @@ function ka(a, o) {
|
|
|
3702
3702
|
e.value && e.value.setOption(l || {});
|
|
3703
3703
|
},
|
|
3704
3704
|
{ deep: !0 }
|
|
3705
|
-
),
|
|
3705
|
+
), Ao(
|
|
3706
3706
|
a,
|
|
3707
|
-
|
|
3707
|
+
Lo(() => {
|
|
3708
3708
|
e.value && e.value.resize();
|
|
3709
3709
|
}, 150)
|
|
3710
3710
|
), {
|
|
@@ -3717,7 +3717,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
3717
3717
|
__name: "Chart",
|
|
3718
3718
|
props: ha,
|
|
3719
3719
|
setup(a, { expose: o }) {
|
|
3720
|
-
const e = a, t =
|
|
3720
|
+
const e = a, t = B(), { echartsInstance: l, echarts: s } = ka(t, e), c = b(() => ({
|
|
3721
3721
|
width: Q(e.width),
|
|
3722
3722
|
height: Q(e.height)
|
|
3723
3723
|
}));
|
|
@@ -3805,7 +3805,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
3805
3805
|
total: 0
|
|
3806
3806
|
},
|
|
3807
3807
|
s
|
|
3808
|
-
), i = b(() => Math.ceil((c.value.total || 0) / s.pageSize)), p =
|
|
3808
|
+
), i = b(() => Math.ceil((c.value.total || 0) / s.pageSize)), p = B(!1), d = B(), m = b(() => ({
|
|
3809
3809
|
width: Q(t.width),
|
|
3810
3810
|
height: Q(t.height)
|
|
3811
3811
|
})), _ = b(() => ({
|
|
@@ -3817,7 +3817,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
3817
3817
|
))
|
|
3818
3818
|
T[`infinite-scroll-${N}`] = x;
|
|
3819
3819
|
return (r.value || p.value) && (T["infinite-scroll-disabled"] = !0), T;
|
|
3820
|
-
}), y = b(() => rt(t.pager, {})), { list: C, containerProps: w, wrapperProps:
|
|
3820
|
+
}), y = b(() => rt(t.pager, {})), { list: C, containerProps: w, wrapperProps: M, scrollTo: I } = Fo(
|
|
3821
3821
|
b(() => c.value.list),
|
|
3822
3822
|
{
|
|
3823
3823
|
itemHeight: t.itemHeight || 0
|
|
@@ -3827,7 +3827,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
3827
3827
|
}, O = (T) => t.dataKey ? T[t.dataKey] : void 0;
|
|
3828
3828
|
return o({
|
|
3829
3829
|
list: C,
|
|
3830
|
-
scrollTo:
|
|
3830
|
+
scrollTo: I,
|
|
3831
3831
|
wrapperRef: d,
|
|
3832
3832
|
loading: r,
|
|
3833
3833
|
state: s,
|
|
@@ -3842,47 +3842,47 @@ const ns = /* @__PURE__ */ P({
|
|
|
3842
3842
|
!n(c).total && !n(r) ? $(T.$slots, "empty", { key: 0 }, () => [
|
|
3843
3843
|
k(n(_t))
|
|
3844
3844
|
]) : h("", !0),
|
|
3845
|
-
F("div",
|
|
3846
|
-
t.itemHeight ? G((u(), z("div",
|
|
3845
|
+
F("div", A({ class: "x-list__content" }, n(w)), [
|
|
3846
|
+
t.itemHeight ? G((u(), z("div", A({
|
|
3847
3847
|
key: 0,
|
|
3848
3848
|
class: "x-list__wrapper",
|
|
3849
3849
|
ref_key: "wrapperRef",
|
|
3850
3850
|
ref: d
|
|
3851
|
-
}, { ...n(
|
|
3852
|
-
(u(!0), z(W, null, Z(n(C), (x,
|
|
3851
|
+
}, { ...n(M), ...v.value }), [
|
|
3852
|
+
(u(!0), z(W, null, Z(n(C), (x, L) => $(T.$slots, "default", le(A({
|
|
3853
3853
|
key: O(x.data)
|
|
3854
|
-
}, { item: x.data, index:
|
|
3854
|
+
}, { item: x.data, index: L })), () => [
|
|
3855
3855
|
F("div", null, j(x), 1)
|
|
3856
3856
|
])), 128)),
|
|
3857
3857
|
n(r) ? (u(), z("div", xa, [
|
|
3858
3858
|
$(T.$slots, "loading", {}, () => [
|
|
3859
|
-
|
|
3859
|
+
D(" 正在加载数据... ")
|
|
3860
3860
|
])
|
|
3861
3861
|
])) : h("", !0),
|
|
3862
3862
|
p.value ? (u(), z("div", Ca, [
|
|
3863
3863
|
$(T.$slots, "nomore", {}, () => [
|
|
3864
|
-
|
|
3864
|
+
D(" 没有更多数据 ")
|
|
3865
3865
|
])
|
|
3866
3866
|
])) : h("", !0)
|
|
3867
3867
|
], 16)), [
|
|
3868
3868
|
[n(st), S]
|
|
3869
|
-
]) : G((u(), z("div",
|
|
3869
|
+
]) : G((u(), z("div", A({
|
|
3870
3870
|
key: 1,
|
|
3871
3871
|
class: "x-list__wrapper"
|
|
3872
3872
|
}, v.value), [
|
|
3873
|
-
(u(!0), z(W, null, Z(n(c).list, (x,
|
|
3873
|
+
(u(!0), z(W, null, Z(n(c).list, (x, L) => $(T.$slots, "default", le(A({
|
|
3874
3874
|
key: O(x)
|
|
3875
|
-
}, { item: x, index:
|
|
3875
|
+
}, { item: x, index: L })), () => [
|
|
3876
3876
|
F("div", null, j(x), 1)
|
|
3877
3877
|
])), 128)),
|
|
3878
3878
|
n(r) ? (u(), z("div", $a, [
|
|
3879
3879
|
$(T.$slots, "loading", {}, () => [
|
|
3880
|
-
|
|
3880
|
+
D(" 正在加载数据... ")
|
|
3881
3881
|
])
|
|
3882
3882
|
])) : h("", !0),
|
|
3883
3883
|
p.value ? (u(), z("div", Sa, [
|
|
3884
3884
|
$(T.$slots, "nomore", {}, () => [
|
|
3885
|
-
|
|
3885
|
+
D(" 没有更多数据 ")
|
|
3886
3886
|
])
|
|
3887
3887
|
])) : h("", !0)
|
|
3888
3888
|
], 16)), [
|
|
@@ -3890,7 +3890,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
3890
3890
|
])
|
|
3891
3891
|
], 16),
|
|
3892
3892
|
t.pager ? (u(), z("div", za, [
|
|
3893
|
-
k(n(bo),
|
|
3893
|
+
k(n(bo), A({
|
|
3894
3894
|
small: "",
|
|
3895
3895
|
background: "",
|
|
3896
3896
|
layout: "prev, pager, next",
|
|
@@ -3922,7 +3922,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
3922
3922
|
type: String,
|
|
3923
3923
|
default: "/@vtj/pro/"
|
|
3924
3924
|
}
|
|
3925
|
-
},
|
|
3925
|
+
}, Ea = { class: "x-startup" }, Ma = { class: "x-startup__wrapper" }, Pa = { class: "x-startup__name" }, Ia = { class: "clip" }, Va = { class: "x-startup__tagline" }, Ba = { class: "x-startup__actions" }, ss = /* @__PURE__ */ P({
|
|
3926
3926
|
__name: "Startup",
|
|
3927
3927
|
props: Ta,
|
|
3928
3928
|
setup(a) {
|
|
@@ -3932,13 +3932,13 @@ const ns = /* @__PURE__ */ P({
|
|
|
3932
3932
|
window.location.href = l;
|
|
3933
3933
|
}
|
|
3934
3934
|
};
|
|
3935
|
-
return (t, l) => (u(), z("div",
|
|
3936
|
-
F("div",
|
|
3935
|
+
return (t, l) => (u(), z("div", Ea, [
|
|
3936
|
+
F("div", Ma, [
|
|
3937
3937
|
F("div", Pa, [
|
|
3938
|
-
F("span",
|
|
3938
|
+
F("span", Ia, j(o.name), 1)
|
|
3939
3939
|
]),
|
|
3940
3940
|
F("div", Va, j(o.tagline), 1),
|
|
3941
|
-
F("div",
|
|
3941
|
+
F("div", Ba, [
|
|
3942
3942
|
k(n(ie), {
|
|
3943
3943
|
type: "primary",
|
|
3944
3944
|
size: "large",
|
|
@@ -3947,7 +3947,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
3947
3947
|
onClick: e
|
|
3948
3948
|
}, {
|
|
3949
3949
|
default: f(() => [
|
|
3950
|
-
|
|
3950
|
+
D(j(o.actionText), 1)
|
|
3951
3951
|
]),
|
|
3952
3952
|
_: 1
|
|
3953
3953
|
}, 8, ["icon"])
|
|
@@ -4006,7 +4006,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
4006
4006
|
set(v) {
|
|
4007
4007
|
l("update:syncProp", v);
|
|
4008
4008
|
}
|
|
4009
|
-
}), i =
|
|
4009
|
+
}), i = B("default inner data"), p = () => {
|
|
4010
4010
|
it.info({
|
|
4011
4011
|
message: "触发click事件"
|
|
4012
4012
|
}), l("click", t);
|
|
@@ -4032,19 +4032,19 @@ const ns = /* @__PURE__ */ P({
|
|
|
4032
4032
|
default: f(() => [
|
|
4033
4033
|
k(n(se), null, {
|
|
4034
4034
|
default: f(() => [
|
|
4035
|
-
|
|
4035
|
+
D("内部数据")
|
|
4036
4036
|
]),
|
|
4037
4037
|
_: 1
|
|
4038
4038
|
}),
|
|
4039
4039
|
k(n(V), null, {
|
|
4040
4040
|
default: f(() => [
|
|
4041
|
-
|
|
4041
|
+
D(j(i.value), 1)
|
|
4042
4042
|
]),
|
|
4043
4043
|
_: 1
|
|
4044
4044
|
}),
|
|
4045
4045
|
k(n(se), null, {
|
|
4046
4046
|
default: f(() => [
|
|
4047
|
-
|
|
4047
|
+
D("属性")
|
|
4048
4048
|
]),
|
|
4049
4049
|
_: 1
|
|
4050
4050
|
}),
|
|
@@ -4064,7 +4064,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
4064
4064
|
}),
|
|
4065
4065
|
k(n(se), null, {
|
|
4066
4066
|
default: f(() => [
|
|
4067
|
-
|
|
4067
|
+
D("插槽")
|
|
4068
4068
|
]),
|
|
4069
4069
|
_: 1
|
|
4070
4070
|
}),
|
|
@@ -4113,7 +4113,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
4113
4113
|
}),
|
|
4114
4114
|
k(n(se), null, {
|
|
4115
4115
|
default: f(() => [
|
|
4116
|
-
|
|
4116
|
+
D("双向绑定")
|
|
4117
4117
|
]),
|
|
4118
4118
|
_: 1
|
|
4119
4119
|
}),
|
|
@@ -4150,7 +4150,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
4150
4150
|
}),
|
|
4151
4151
|
k(n(se), null, {
|
|
4152
4152
|
default: f(() => [
|
|
4153
|
-
|
|
4153
|
+
D("事件和方法")
|
|
4154
4154
|
]),
|
|
4155
4155
|
_: 1
|
|
4156
4156
|
}),
|
|
@@ -4158,19 +4158,19 @@ const ns = /* @__PURE__ */ P({
|
|
|
4158
4158
|
default: f(() => [
|
|
4159
4159
|
k(n(ie), { onClick: p }, {
|
|
4160
4160
|
default: f(() => [
|
|
4161
|
-
|
|
4161
|
+
D("click")
|
|
4162
4162
|
]),
|
|
4163
4163
|
_: 1
|
|
4164
4164
|
}),
|
|
4165
4165
|
k(n(ie), { onClick: d }, {
|
|
4166
4166
|
default: f(() => [
|
|
4167
|
-
|
|
4167
|
+
D("submit")
|
|
4168
4168
|
]),
|
|
4169
4169
|
_: 1
|
|
4170
4170
|
}),
|
|
4171
4171
|
k(n(ie), { onClick: _ }, {
|
|
4172
4172
|
default: f(() => [
|
|
4173
|
-
|
|
4173
|
+
D("change")
|
|
4174
4174
|
]),
|
|
4175
4175
|
_: 1
|
|
4176
4176
|
})
|
|
@@ -4181,7 +4181,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
4181
4181
|
_: 3
|
|
4182
4182
|
}));
|
|
4183
4183
|
}
|
|
4184
|
-
}),
|
|
4184
|
+
}), Da = {
|
|
4185
4185
|
units: {
|
|
4186
4186
|
type: [String, Object, Array]
|
|
4187
4187
|
},
|
|
@@ -4208,13 +4208,13 @@ const ns = /* @__PURE__ */ P({
|
|
|
4208
4208
|
}, is = /* @__PURE__ */ P({
|
|
4209
4209
|
name: "XInputUnit",
|
|
4210
4210
|
__name: "InputUnit",
|
|
4211
|
-
props:
|
|
4211
|
+
props: Da,
|
|
4212
4212
|
emits: ["update:modelValue", "update:unit", "change", "unit-change"],
|
|
4213
4213
|
setup(a, { expose: o, emit: e }) {
|
|
4214
4214
|
const t = a, l = e, s = b(() => Pt(t.units).map((C) => typeof C == "string" ? { label: C, value: C } : C)), c = b(() => {
|
|
4215
4215
|
const y = s.value.map((C) => C.value);
|
|
4216
4216
|
return t.unit && y.push(t.unit), Uo(y);
|
|
4217
|
-
}), r =
|
|
4217
|
+
}), r = B(), i = B(), p = (y) => t.format && y ? Ho(Number(y) || 0, t.format) : y, d = (y) => {
|
|
4218
4218
|
if (!t.withUnit || typeof y != "string")
|
|
4219
4219
|
return { value: p(y), unit: t.unit };
|
|
4220
4220
|
for (const C of c.value) {
|
|
@@ -4261,7 +4261,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
4261
4261
|
s.value.length ? {
|
|
4262
4262
|
name: "append",
|
|
4263
4263
|
fn: f(() => [
|
|
4264
|
-
k(n(xt),
|
|
4264
|
+
k(n(xt), A({
|
|
4265
4265
|
class: "x-input-unit__unit",
|
|
4266
4266
|
modelValue: r.value,
|
|
4267
4267
|
"onUpdate:modelValue": C[0] || (C[0] = (w) => r.value = w),
|
|
@@ -4293,7 +4293,7 @@ const ns = /* @__PURE__ */ P({
|
|
|
4293
4293
|
}
|
|
4294
4294
|
]), 1032, ["modelValue"]));
|
|
4295
4295
|
}
|
|
4296
|
-
}),
|
|
4296
|
+
}), Aa = {
|
|
4297
4297
|
/**
|
|
4298
4298
|
* 内容
|
|
4299
4299
|
*/
|
|
@@ -4345,18 +4345,20 @@ class Fa {
|
|
|
4345
4345
|
async function Na() {
|
|
4346
4346
|
if (typeof window > "u")
|
|
4347
4347
|
return;
|
|
4348
|
-
const a = window, o = a.
|
|
4348
|
+
const a = window, o = a.CKEDITOR_VERSION;
|
|
4349
|
+
a.CKEDITOR_VERSION = void 0;
|
|
4350
|
+
const e = a.ClassicEditor || (await import("@ckeditor/ckeditor5-build-classic")).default, t = a.CKEditor || (await import("@ckeditor/ckeditor5-vue")).default, l = a.CKEditorCN || (await import(
|
|
4349
4351
|
//@ts-ignore
|
|
4350
4352
|
"@ckeditor/ckeditor5-build-classic/build/translations/zh-cn.js"
|
|
4351
4353
|
)).default;
|
|
4352
|
-
return a.CKEditorCN =
|
|
4353
|
-
ClassicEditor: re(
|
|
4354
|
-
CKEditor: re(
|
|
4355
|
-
CKEditorCN:
|
|
4354
|
+
return a.CKEditorCN = l, a.CKEDITOR_VERSION = o, {
|
|
4355
|
+
ClassicEditor: re(e),
|
|
4356
|
+
CKEditor: re(t.component),
|
|
4357
|
+
CKEditorCN: l
|
|
4356
4358
|
};
|
|
4357
4359
|
}
|
|
4358
4360
|
function Xa() {
|
|
4359
|
-
const a =
|
|
4361
|
+
const a = B();
|
|
4360
4362
|
return Na().then((o) => {
|
|
4361
4363
|
a.value = o;
|
|
4362
4364
|
}), a;
|
|
@@ -4364,10 +4366,10 @@ function Xa() {
|
|
|
4364
4366
|
const rs = /* @__PURE__ */ P({
|
|
4365
4367
|
name: "XCKEditor",
|
|
4366
4368
|
__name: "Ckeditor",
|
|
4367
|
-
props:
|
|
4369
|
+
props: Aa,
|
|
4368
4370
|
emits: ["update:modelValue", "change", "blur", "focus", "ready"],
|
|
4369
4371
|
setup(a, { emit: o }) {
|
|
4370
|
-
const e = Xa(), t = a, l = o, s =
|
|
4372
|
+
const e = Xa(), t = a, l = o, s = B(t.modelValue), c = Zo(), r = {
|
|
4371
4373
|
language: "zh-cn",
|
|
4372
4374
|
mediaEmbed: {
|
|
4373
4375
|
providers: [
|
|
@@ -4419,7 +4421,7 @@ export {
|
|
|
4419
4421
|
qa as AdapterPlugin,
|
|
4420
4422
|
dt as Draggable,
|
|
4421
4423
|
ut as INSTALLED_KEY,
|
|
4422
|
-
|
|
4424
|
+
Dt as MASK_KEY,
|
|
4423
4425
|
pt as Resizable,
|
|
4424
4426
|
Rt as TAB_CREATORS_KEY,
|
|
4425
4427
|
Rn as TAB_ITEM_WIDTH,
|
|
@@ -4445,10 +4447,10 @@ export {
|
|
|
4445
4447
|
ts as XTabs,
|
|
4446
4448
|
ls as XTest,
|
|
4447
4449
|
fn as actionBarProps,
|
|
4448
|
-
|
|
4450
|
+
Bt as actionProps,
|
|
4449
4451
|
Ft as builtinFieldEditors,
|
|
4450
4452
|
ha as chartProps,
|
|
4451
|
-
|
|
4453
|
+
Aa as ckeditorProps,
|
|
4452
4454
|
mn as containerProps,
|
|
4453
4455
|
ot as createDialog,
|
|
4454
4456
|
ma as dataItemProps,
|
|
@@ -4463,10 +4465,10 @@ export {
|
|
|
4463
4465
|
gn as headerProps,
|
|
4464
4466
|
Go as iconProps,
|
|
4465
4467
|
qo as iconSizeMap,
|
|
4466
|
-
|
|
4468
|
+
Da as inputUnitProps,
|
|
4467
4469
|
wa as listProps,
|
|
4468
4470
|
Ga as makeInstaller,
|
|
4469
|
-
|
|
4471
|
+
Dn as maskProps,
|
|
4470
4472
|
hn as panelProps,
|
|
4471
4473
|
Te as parseSize,
|
|
4472
4474
|
Ta as startupProps,
|