@vtj/ui 0.7.6 → 0.7.7
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.cjs +3 -3
- package/dist/index.iife.js +2 -2
- package/dist/index.mjs +291 -290
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +6 -6
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElIcon as Wt, ElSubMenu as Jt, ElBadge as Ke, ElMenuItem as Qt, ElMenu as Zt, ElButton as ie, ElDropdown as Gt, ElDropdownMenu as Yt, ElDropdownItem as qt, ElTooltip as
|
|
1
|
+
import { defineComponent as V, useAttrs as Je, getCurrentInstance as pe, computed as y, markRaw as ke, openBlock as u, createBlock as g, unref as n, normalizeClass as W, normalizeStyle as fe, withCtx as d, renderSlot as x, resolveDynamicComponent as J, createCommentVNode as v, createElementBlock as C, mergeProps as F, createElementVNode as X, toDisplayString as A, Fragment as Q, renderList as Y, isVNode as Ut, h as ae, shallowRef as Ve, ref as O, watch as L, toRef as Ae, createTextVNode as R, useSlots as Ht, toRaw as ge, createVNode as _, normalizeProps as le, guardReactiveProps as he, effectScope as mt, reactive as Re, onMounted as gt, onUnmounted as yt, watchEffect as Qe, nextTick as ye, Teleport as vt, withDirectives as G, createSlots as be, render as nt, vShow as ne, isRef as Be, withModifiers as ht, KeepAlive as Kt, provide as ze, inject as xe, withKeys as Lt } from "vue";
|
|
2
|
+
import { ElIcon as Wt, ElSubMenu as Jt, ElBadge as Ke, ElMenuItem as Qt, ElMenu as Zt, ElButton as ie, ElDropdown as Gt, ElDropdownMenu as Yt, ElDropdownItem as qt, ElTooltip as bt, ElDivider as se, ElSwitch as Ze, ElInput as Ce, ElEmpty as _t, ElTabs as kt, ElTabPane as Le, ElPopover as wt, ElAvatar as eo, ElMessageBox as Ne, ElSelect as to, ElOption as oo, ElCheckboxButton as no, ElCheckbox as ao, ElCheckboxGroup as so, ElRadioButton as lo, ElRadio as io, ElRadioGroup as ro, ElInputNumber as co, ElDatePicker as at, ElTimePicker as uo, ElRate as po, ElSlider as fo, ElCascader as mo, formContextKey as go, ElFormItem as yo, ElForm as vo, ElImage as ho, ElInfiniteScroll as st, ElPagination as bo, ElDescriptions as lt, ElDescriptionsItem as Xe, ElMessage as it } from "element-plus";
|
|
3
3
|
import { ArrowRight as _o, Minimize as ko, Popup as wo, Maximize as xo, RawClose as So, StarFilled as xt, Menu as zo, Search as We, Close as St, Expand as Co, Fold as To, Star as zt, Document as me, Refresh as $o, CopyDocument as Eo, Moon as Mo, Sunny as Io, MoreFilled as Bo, UserFilled as Po, HomeFilled as Vo, WarningFilled as Ao, EditPen as Do } from "@vtj/icons";
|
|
4
4
|
import { useDraggable as Ro, useMouseInElement as Oo, useEventListener as De, useElementSize as Ct, useDark as Fo, useResizeObserver as jo, useVirtualList as No } from "@vueuse/core";
|
|
5
5
|
import { isEqual as Ge, isObject as Ye, uid as Tt, arrayToMap as Xo, isUrl as Uo, upperFirstCamelCase as $t, toArray as Ho, get as Pe, merge as Ko, set as Ue, debounce as Lo } from "@vtj/utils";
|
|
@@ -8,10 +8,10 @@ import { useRouter as qe, RouterView as Wo, useRoute as Et, 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.7.
|
|
11
|
+
* @version 0.7.7
|
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
13
13
|
*/
|
|
14
|
-
const Ha = "0.7.
|
|
14
|
+
const Ha = "0.7.7", Qo = {
|
|
15
15
|
default: 14,
|
|
16
16
|
small: 12,
|
|
17
17
|
large: 18
|
|
@@ -61,7 +61,7 @@ const ct = Symbol("INSTALLED_KEY"), Ka = (a = []) => ({
|
|
|
61
61
|
t.name && e.component(t.name, t);
|
|
62
62
|
}));
|
|
63
63
|
}
|
|
64
|
-
}), Go = ["src"], re = /* @__PURE__ */
|
|
64
|
+
}), Go = ["src"], re = /* @__PURE__ */ V({
|
|
65
65
|
name: "XIcon",
|
|
66
66
|
__name: "Icon",
|
|
67
67
|
props: Zo,
|
|
@@ -105,7 +105,7 @@ const ct = Symbol("INSTALLED_KEY"), Ka = (a = []) => ({
|
|
|
105
105
|
}, en = /* @__PURE__ */ X("i", null, null, -1), tn = {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: "x-menu__title"
|
|
108
|
-
}, on = /* @__PURE__ */ X("i", null, null, -1), Mt = /* @__PURE__ */
|
|
108
|
+
}, on = /* @__PURE__ */ X("i", null, null, -1), Mt = /* @__PURE__ */ V({
|
|
109
109
|
inheritAttrs: !1,
|
|
110
110
|
name: "XMenuItem",
|
|
111
111
|
__name: "MenuItem",
|
|
@@ -178,7 +178,7 @@ const ct = Symbol("INSTALLED_KEY"), Ka = (a = []) => ({
|
|
|
178
178
|
_: 1
|
|
179
179
|
}, 8, ["index", "disabled"]));
|
|
180
180
|
}
|
|
181
|
-
}), de = /* @__PURE__ */
|
|
181
|
+
}), de = /* @__PURE__ */ V({
|
|
182
182
|
inheritAttrs: !1,
|
|
183
183
|
name: "XMenu",
|
|
184
184
|
__name: "Menu",
|
|
@@ -191,13 +191,13 @@ const ct = Symbol("INSTALLED_KEY"), Ka = (a = []) => ({
|
|
|
191
191
|
setup(a, { emit: o }) {
|
|
192
192
|
const e = a, t = o, l = y(() => e.data.filter((i) => !i.hidden)), s = (i, r) => {
|
|
193
193
|
const p = (f, m = []) => {
|
|
194
|
-
for (const
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
if (
|
|
200
|
-
return
|
|
194
|
+
for (const b of m) {
|
|
195
|
+
if (b.id.toString() === f.toString())
|
|
196
|
+
return b;
|
|
197
|
+
if (b.children?.length) {
|
|
198
|
+
const h = p(f, b.children);
|
|
199
|
+
if (h)
|
|
200
|
+
return h;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
};
|
|
@@ -354,7 +354,7 @@ function ln(a) {
|
|
|
354
354
|
}
|
|
355
355
|
function _e(a) {
|
|
356
356
|
const o = ln(a);
|
|
357
|
-
return o.value ? ke(
|
|
357
|
+
return o.value ? ke(V({ render: () => ae(re, o.value) })) : void 0;
|
|
358
358
|
}
|
|
359
359
|
function et(a, o) {
|
|
360
360
|
return y(() => {
|
|
@@ -381,7 +381,7 @@ function rn(a, o, e) {
|
|
|
381
381
|
loader: c
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
const cn = { key: 0 }, un = /* @__PURE__ */
|
|
384
|
+
const cn = { key: 0 }, un = /* @__PURE__ */ V({
|
|
385
385
|
__name: "Trigger",
|
|
386
386
|
props: It,
|
|
387
387
|
emits: ["click"],
|
|
@@ -417,7 +417,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
417
417
|
r.label ? (u(), C("span", cn, A(r.label), 1)) : v("", !0)
|
|
418
418
|
], 2));
|
|
419
419
|
}
|
|
420
|
-
}), te = /* @__PURE__ */
|
|
420
|
+
}), te = /* @__PURE__ */ V({
|
|
421
421
|
name: "XAction",
|
|
422
422
|
__name: "Action",
|
|
423
423
|
props: It,
|
|
@@ -430,9 +430,9 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
430
430
|
}, m = (z) => {
|
|
431
431
|
if (r.value)
|
|
432
432
|
return;
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
},
|
|
433
|
+
const E = e.menus?.find((B) => B.command === z);
|
|
434
|
+
E && l("command", ge(E));
|
|
435
|
+
}, b = (z) => ae(Ke, c.value, () => [].concat(z)), h = (z) => ae(
|
|
436
436
|
Gt,
|
|
437
437
|
{ ...i.value, disabled: r.value, onCommand: m },
|
|
438
438
|
{
|
|
@@ -440,24 +440,25 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
440
440
|
dropdown: () => [
|
|
441
441
|
ae(
|
|
442
442
|
Yt,
|
|
443
|
-
() => (e.menus || []).map((
|
|
443
|
+
() => (e.menus || []).map((E, B) => ae(
|
|
444
444
|
qt,
|
|
445
|
-
|
|
446
|
-
() => t.item ? t.item({ item:
|
|
445
|
+
E,
|
|
446
|
+
() => t.item ? t.item({ item: E, index: B }) : E.label
|
|
447
447
|
))
|
|
448
448
|
)
|
|
449
449
|
]
|
|
450
450
|
}
|
|
451
|
-
), w = (z) => ae(
|
|
451
|
+
), w = (z) => ae(bt, { ...s.value, disabled: r.value }, () => [
|
|
452
452
|
z
|
|
453
|
-
]),
|
|
454
|
-
let z =
|
|
455
|
-
|
|
453
|
+
]), M = y(() => {
|
|
454
|
+
let z = ae(ke(un), { ...e, onClick: f });
|
|
455
|
+
const E = t.default?.();
|
|
456
|
+
return E && E.length && (z = E[0]), c.value && (z = b(z)), i.value && (z = h(z)), s.value && (z = w(z)), z;
|
|
456
457
|
});
|
|
457
|
-
return (z,
|
|
458
|
+
return (z, E) => (u(), C("div", {
|
|
458
459
|
class: W(["x-action", p.value])
|
|
459
460
|
}, [
|
|
460
|
-
(u(), g(J(
|
|
461
|
+
(u(), g(J(M.value)))
|
|
461
462
|
], 2));
|
|
462
463
|
}
|
|
463
464
|
}), dn = {
|
|
@@ -531,7 +532,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
531
532
|
button: {
|
|
532
533
|
type: Object
|
|
533
534
|
}
|
|
534
|
-
}, Oe = /* @__PURE__ */
|
|
535
|
+
}, Oe = /* @__PURE__ */ V({
|
|
535
536
|
name: "XActionBar",
|
|
536
537
|
__name: "ActionBar",
|
|
537
538
|
props: dn,
|
|
@@ -552,7 +553,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
552
553
|
}, c = (i, r) => {
|
|
553
554
|
t("command", i, r);
|
|
554
555
|
};
|
|
555
|
-
return (i, r) => (u(), g(n(
|
|
556
|
+
return (i, r) => (u(), g(n(I), {
|
|
556
557
|
class: "x-action-bar",
|
|
557
558
|
align: "center"
|
|
558
559
|
}, {
|
|
@@ -697,7 +698,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
697
698
|
autoPointer: {
|
|
698
699
|
type: Boolean
|
|
699
700
|
}
|
|
700
|
-
},
|
|
701
|
+
}, I = /* @__PURE__ */ V({
|
|
701
702
|
name: "XContainer",
|
|
702
703
|
__name: "Container",
|
|
703
704
|
props: pn,
|
|
@@ -765,7 +766,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
765
766
|
}, mn = {
|
|
766
767
|
key: 0,
|
|
767
768
|
class: "x-header__actions"
|
|
768
|
-
}, Bt = /* @__PURE__ */
|
|
769
|
+
}, Bt = /* @__PURE__ */ V({
|
|
769
770
|
name: "XHeader",
|
|
770
771
|
inheritAttrs: !1,
|
|
771
772
|
__name: "Header",
|
|
@@ -776,13 +777,13 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
776
777
|
"is-border": o.border,
|
|
777
778
|
"is-pointer": !!t.onClick
|
|
778
779
|
}));
|
|
779
|
-
return (s, c) => (u(), g(n(
|
|
780
|
+
return (s, c) => (u(), g(n(I), {
|
|
780
781
|
class: W(["x-header", l.value]),
|
|
781
782
|
justify: "space-between",
|
|
782
783
|
align: "center"
|
|
783
784
|
}, {
|
|
784
785
|
default: d(() => [
|
|
785
|
-
_(n(
|
|
786
|
+
_(n(I), {
|
|
786
787
|
align: "center",
|
|
787
788
|
class: W(["x-header__wrapper", l.value]),
|
|
788
789
|
grow: ""
|
|
@@ -891,7 +892,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
891
892
|
footer: {
|
|
892
893
|
type: Object
|
|
893
894
|
}
|
|
894
|
-
}, Se = /* @__PURE__ */
|
|
895
|
+
}, Se = /* @__PURE__ */ V({
|
|
895
896
|
name: "XPanel",
|
|
896
897
|
__name: "Panel",
|
|
897
898
|
props: gn,
|
|
@@ -912,7 +913,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
912
913
|
}), c = y(() => e.fit || e.height ? "auto" : void 0);
|
|
913
914
|
return o({
|
|
914
915
|
bodyRef: t
|
|
915
|
-
}), (i, r) => (u(), g(n(
|
|
916
|
+
}), (i, r) => (u(), g(n(I), {
|
|
916
917
|
class: W(["x-panel", l.value]),
|
|
917
918
|
direction: "column",
|
|
918
919
|
fit: e.fit,
|
|
@@ -920,14 +921,14 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
920
921
|
height: e.height
|
|
921
922
|
}, {
|
|
922
923
|
default: d(() => [
|
|
923
|
-
s.value ? (u(), g(n(
|
|
924
|
+
s.value ? (u(), g(n(I), {
|
|
924
925
|
key: 0,
|
|
925
926
|
flex: !1,
|
|
926
927
|
class: "x-panel__header"
|
|
927
928
|
}, {
|
|
928
929
|
default: d(() => [
|
|
929
930
|
x(i.$slots, "header", {}, () => [
|
|
930
|
-
_(n(Bt), le(
|
|
931
|
+
_(n(Bt), le(he(s.value)), {
|
|
931
932
|
default: d(() => [
|
|
932
933
|
x(i.$slots, "title")
|
|
933
934
|
]),
|
|
@@ -940,7 +941,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
940
941
|
]),
|
|
941
942
|
_: 3
|
|
942
943
|
})) : v("", !0),
|
|
943
|
-
_(n(
|
|
944
|
+
_(n(I), F({
|
|
944
945
|
ref_key: "bodyRef",
|
|
945
946
|
ref: t,
|
|
946
947
|
flex: !1,
|
|
@@ -954,7 +955,7 @@ const cn = { key: 0 }, un = /* @__PURE__ */ P({
|
|
|
954
955
|
]),
|
|
955
956
|
_: 3
|
|
956
957
|
}, 16, ["overflow"]),
|
|
957
|
-
i.$slots.footer ? (u(), g(n(
|
|
958
|
+
i.$slots.footer ? (u(), g(n(I), F({
|
|
958
959
|
key: 1,
|
|
959
960
|
flex: !1,
|
|
960
961
|
padding: "",
|
|
@@ -993,26 +994,26 @@ class dt {
|
|
|
993
994
|
let i = null;
|
|
994
995
|
const r = this.getHandle(), p = this.getTarget();
|
|
995
996
|
let f = o.getBoundingClientRect(), m = null;
|
|
996
|
-
const { x:
|
|
997
|
+
const { x: b, y: h } = Ro(o, {
|
|
997
998
|
initialValue: { x: f.x, y: f.y },
|
|
998
999
|
...e,
|
|
999
1000
|
handle: r,
|
|
1000
|
-
onStart: (w,
|
|
1001
|
+
onStart: (w, M) => {
|
|
1001
1002
|
document.body.classList.add(ut), clearTimeout(i), i = setTimeout(() => {
|
|
1002
|
-
this.dragging = !0, f = o.getBoundingClientRect(), m = p?.getBoundingClientRect(), s && s(w,
|
|
1003
|
+
this.dragging = !0, f = o.getBoundingClientRect(), m = p?.getBoundingClientRect(), s && s(w, M);
|
|
1003
1004
|
}, l);
|
|
1004
1005
|
},
|
|
1005
|
-
onEnd: (w,
|
|
1006
|
+
onEnd: (w, M) => {
|
|
1006
1007
|
if (clearTimeout(i), document.body.classList.remove(ut), this.dragging && m) {
|
|
1007
1008
|
this.dragging = !1;
|
|
1008
|
-
const { x: z, y:
|
|
1009
|
-
c && c(
|
|
1009
|
+
const { x: z, y: E } = w, B = this.getPosition(m, f, z, E);
|
|
1010
|
+
c && c(B, M), m = null;
|
|
1010
1011
|
}
|
|
1011
1012
|
}
|
|
1012
1013
|
});
|
|
1013
|
-
L([
|
|
1014
|
+
L([b, h], () => {
|
|
1014
1015
|
if (this.dragging && m) {
|
|
1015
|
-
const w = this.getPosition(m, f,
|
|
1016
|
+
const w = this.getPosition(m, f, b.value, h.value);
|
|
1016
1017
|
o.style.left = `${w.x}px`, o.style.top = `${w.y}px`;
|
|
1017
1018
|
}
|
|
1018
1019
|
});
|
|
@@ -1079,35 +1080,35 @@ class pt {
|
|
|
1079
1080
|
const { MIE: o, direction: e, resizing: t, options: l, el: s } = this, c = e?.value || "";
|
|
1080
1081
|
if (!o || !t.value || !c)
|
|
1081
1082
|
return;
|
|
1082
|
-
const { x: i, y: r, elementX: p, elementY: f, elementHeight: m, elementWidth:
|
|
1083
|
+
const { x: i, y: r, elementX: p, elementY: f, elementHeight: m, elementWidth: b } = o, { onResizing: h } = l, {
|
|
1083
1084
|
minWidth: w = 0,
|
|
1084
|
-
minHeight:
|
|
1085
|
+
minHeight: M = 0,
|
|
1085
1086
|
maxWidth: z = 99999,
|
|
1086
|
-
maxHeight:
|
|
1087
|
+
maxHeight: E = 99999
|
|
1087
1088
|
} = l;
|
|
1088
1089
|
if (c.includes("e")) {
|
|
1089
|
-
const
|
|
1090
|
-
s.style.width = `${
|
|
1090
|
+
const B = Math.min(Math.max(p.value, w), z);
|
|
1091
|
+
s.style.width = `${B}px`;
|
|
1091
1092
|
}
|
|
1092
1093
|
if (c.includes("s")) {
|
|
1093
|
-
const
|
|
1094
|
-
s.style.height = `${
|
|
1094
|
+
const B = Math.min(Math.max(f.value, M), E);
|
|
1095
|
+
s.style.height = `${B}px`;
|
|
1095
1096
|
}
|
|
1096
1097
|
if (c.includes("w")) {
|
|
1097
|
-
const
|
|
1098
|
-
Math.max(
|
|
1098
|
+
const B = Math.min(
|
|
1099
|
+
Math.max(b.value - p.value, w),
|
|
1099
1100
|
z
|
|
1100
1101
|
);
|
|
1101
|
-
s.style.width = `${
|
|
1102
|
+
s.style.width = `${B}px`, s.style.left = `${i.value}px`;
|
|
1102
1103
|
}
|
|
1103
1104
|
if (c.includes("n")) {
|
|
1104
|
-
const
|
|
1105
|
-
Math.max(m.value - f.value,
|
|
1106
|
-
|
|
1105
|
+
const B = Math.min(
|
|
1106
|
+
Math.max(m.value - f.value, M),
|
|
1107
|
+
E
|
|
1107
1108
|
);
|
|
1108
|
-
this.el.style.height = `${
|
|
1109
|
+
this.el.style.height = `${B}px`, this.el.style.top = `${r.value}px`;
|
|
1109
1110
|
}
|
|
1110
|
-
|
|
1111
|
+
h && h(c, o);
|
|
1111
1112
|
}
|
|
1112
1113
|
getDirection() {
|
|
1113
1114
|
if (!this.MIE)
|
|
@@ -1224,7 +1225,7 @@ const Pt = {
|
|
|
1224
1225
|
}
|
|
1225
1226
|
};
|
|
1226
1227
|
let ve = 1e3;
|
|
1227
|
-
function
|
|
1228
|
+
function hn(a, o) {
|
|
1228
1229
|
const { width: e, height: t } = Ct(o), l = Re({
|
|
1229
1230
|
mode: a.mode || "normal",
|
|
1230
1231
|
wrapperWidth: 0,
|
|
@@ -1248,7 +1249,7 @@ function bn(a, o) {
|
|
|
1248
1249
|
minimized: y(() => l.mode === "minimized")
|
|
1249
1250
|
};
|
|
1250
1251
|
}
|
|
1251
|
-
function
|
|
1252
|
+
function bn(a, o) {
|
|
1252
1253
|
const e = y(() => {
|
|
1253
1254
|
const { width: c, height: i, top: r, left: p, zIndex: f } = o;
|
|
1254
1255
|
return {
|
|
@@ -1358,13 +1359,13 @@ function xn(a, o) {
|
|
|
1358
1359
|
componentInstance: e
|
|
1359
1360
|
};
|
|
1360
1361
|
}
|
|
1361
|
-
const Sn = ["src"], tt = /* @__PURE__ */
|
|
1362
|
+
const Sn = ["src"], tt = /* @__PURE__ */ V({
|
|
1362
1363
|
name: "XDialog",
|
|
1363
1364
|
__name: "Dialog",
|
|
1364
1365
|
props: vn,
|
|
1365
1366
|
emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
|
|
1366
1367
|
setup(a, { expose: o, emit: e }) {
|
|
1367
|
-
const t = a, l = e, s = pe(), c = O(), i = O(), { state: r, maximized: p, minimized: f, normal: m } =
|
|
1368
|
+
const t = a, l = e, s = pe(), c = O(), i = O(), { state: r, maximized: p, minimized: f, normal: m } = hn(t, c), { styles: b, classes: h, wrapperClass: w, modalStyle: M } = bn(t, r), { changeMode: z, active: E, close: B, show: S, hide: P, submit: T, cancel: j } = _n(
|
|
1368
1369
|
t,
|
|
1369
1370
|
r,
|
|
1370
1371
|
l
|
|
@@ -1381,7 +1382,7 @@ const Sn = ["src"], tt = /* @__PURE__ */ P({
|
|
|
1381
1382
|
minimized: f,
|
|
1382
1383
|
changeMode: z,
|
|
1383
1384
|
show: S,
|
|
1384
|
-
hide:
|
|
1385
|
+
hide: P,
|
|
1385
1386
|
submit: T,
|
|
1386
1387
|
cancel: j,
|
|
1387
1388
|
componentInstance: K
|
|
@@ -1397,23 +1398,23 @@ const Sn = ["src"], tt = /* @__PURE__ */ P({
|
|
|
1397
1398
|
t.modal ? (u(), C("div", {
|
|
1398
1399
|
key: 0,
|
|
1399
1400
|
class: "x-dialog__modal",
|
|
1400
|
-
style: fe(n(
|
|
1401
|
+
style: fe(n(M))
|
|
1401
1402
|
}, null, 4)) : v("", !0),
|
|
1402
1403
|
G((u(), g(n(Se), F({
|
|
1403
1404
|
ref_key: "panelRef",
|
|
1404
1405
|
ref: i,
|
|
1405
|
-
class: ["x-dialog", n(
|
|
1406
|
+
class: ["x-dialog", n(h)],
|
|
1406
1407
|
card: "",
|
|
1407
1408
|
shadow: "always",
|
|
1408
1409
|
header: { icon: t.icon, subtitle: t.subtitle },
|
|
1409
1410
|
width: "800px",
|
|
1410
1411
|
height: "600px",
|
|
1411
1412
|
footer: { justify: "space-between", flex: !0, align: "center" },
|
|
1412
|
-
style: n(
|
|
1413
|
+
style: n(b),
|
|
1413
1414
|
size: t.size,
|
|
1414
1415
|
body: { padding: t.bodyPadding },
|
|
1415
|
-
onClick: n(
|
|
1416
|
-
}, Z.$attrs),
|
|
1416
|
+
onClick: n(E)
|
|
1417
|
+
}, Z.$attrs), be({
|
|
1417
1418
|
title: d(() => [
|
|
1418
1419
|
R(A(t.title), 1)
|
|
1419
1420
|
]),
|
|
@@ -1454,7 +1455,7 @@ const Sn = ["src"], tt = /* @__PURE__ */ P({
|
|
|
1454
1455
|
mode: "icon",
|
|
1455
1456
|
type: "danger",
|
|
1456
1457
|
background: "hover",
|
|
1457
|
-
onClick: n(
|
|
1458
|
+
onClick: n(B)
|
|
1458
1459
|
}, null, 8, ["icon", "size", "onClick"])) : v("", !0)
|
|
1459
1460
|
]),
|
|
1460
1461
|
default: d(() => [
|
|
@@ -1473,13 +1474,13 @@ const Sn = ["src"], tt = /* @__PURE__ */ P({
|
|
|
1473
1474
|
name: "footer",
|
|
1474
1475
|
fn: d(() => [
|
|
1475
1476
|
x(Z.$slots, "footer", {}, () => [
|
|
1476
|
-
_(n(
|
|
1477
|
+
_(n(I), { align: "center" }, {
|
|
1477
1478
|
default: d(() => [
|
|
1478
1479
|
x(Z.$slots, "extra")
|
|
1479
1480
|
]),
|
|
1480
1481
|
_: 3
|
|
1481
1482
|
}),
|
|
1482
|
-
_(n(
|
|
1483
|
+
_(n(I), { align: "center" }, {
|
|
1483
1484
|
default: d(() => [
|
|
1484
1485
|
x(Z.$slots, "handle"),
|
|
1485
1486
|
t.cancel ? (u(), g(n(ie), {
|
|
@@ -1532,14 +1533,14 @@ function ot(a, o) {
|
|
|
1532
1533
|
destroy: l
|
|
1533
1534
|
};
|
|
1534
1535
|
}
|
|
1535
|
-
const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -1), Cn = /* @__PURE__ */
|
|
1536
|
+
const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -1), Cn = /* @__PURE__ */ V({
|
|
1536
1537
|
__name: "Sidebar",
|
|
1537
1538
|
props: {
|
|
1538
1539
|
collapsed: { type: Boolean }
|
|
1539
1540
|
},
|
|
1540
1541
|
setup(a) {
|
|
1541
1542
|
const o = a;
|
|
1542
|
-
return (e, t) => G((u(), g(n(
|
|
1543
|
+
return (e, t) => G((u(), g(n(I), {
|
|
1543
1544
|
class: W(["x-mask-sidebar", { "is-collapsed": o.collapsed }]),
|
|
1544
1545
|
grow: !1,
|
|
1545
1546
|
flex: "",
|
|
@@ -1547,7 +1548,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1547
1548
|
}, {
|
|
1548
1549
|
default: d(() => [
|
|
1549
1550
|
x(e.$slots, "brand"),
|
|
1550
|
-
_(n(
|
|
1551
|
+
_(n(I), {
|
|
1551
1552
|
class: "x-mask-sidebar__wrapper",
|
|
1552
1553
|
flex: "",
|
|
1553
1554
|
grow: "",
|
|
@@ -1572,7 +1573,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1572
1573
|
}]
|
|
1573
1574
|
]);
|
|
1574
1575
|
}
|
|
1575
|
-
}), Tn = /* @__PURE__ */
|
|
1576
|
+
}), Tn = /* @__PURE__ */ V({
|
|
1576
1577
|
__name: "SwitchBar",
|
|
1577
1578
|
props: {
|
|
1578
1579
|
collasped: { type: Boolean, default: !1 },
|
|
@@ -1596,13 +1597,13 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1596
1597
|
}, m = () => {
|
|
1597
1598
|
t("update:favorite", c.value);
|
|
1598
1599
|
};
|
|
1599
|
-
return (
|
|
1600
|
+
return (b, h) => (u(), g(n(I), {
|
|
1600
1601
|
class: "x-mask-switch-bar",
|
|
1601
1602
|
justify: "space-between",
|
|
1602
1603
|
align: "center"
|
|
1603
1604
|
}, {
|
|
1604
1605
|
default: d(() => [
|
|
1605
|
-
e.collasped ? v("", !0) : (u(), g(n(
|
|
1606
|
+
e.collasped ? v("", !0) : (u(), g(n(I), {
|
|
1606
1607
|
key: 0,
|
|
1607
1608
|
class: "x-mask-switch-bar__left",
|
|
1608
1609
|
grow: ""
|
|
@@ -1611,7 +1612,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1611
1612
|
l.value ? v("", !0) : (u(), g(n(Ze), {
|
|
1612
1613
|
key: 0,
|
|
1613
1614
|
modelValue: c.value,
|
|
1614
|
-
"onUpdate:modelValue":
|
|
1615
|
+
"onUpdate:modelValue": h[0] || (h[0] = (w) => c.value = w),
|
|
1615
1616
|
class: "x-mask-switch-bar__switch",
|
|
1616
1617
|
"active-icon": n(xt),
|
|
1617
1618
|
"inactive-icon": n(zo),
|
|
@@ -1620,7 +1621,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1620
1621
|
l.value ? (u(), g(n(Ce), {
|
|
1621
1622
|
key: 1,
|
|
1622
1623
|
modelValue: s.value,
|
|
1623
|
-
"onUpdate:modelValue":
|
|
1624
|
+
"onUpdate:modelValue": h[1] || (h[1] = (w) => s.value = w),
|
|
1624
1625
|
class: "x-mask-switch-bar__input",
|
|
1625
1626
|
size: "small",
|
|
1626
1627
|
placeholder: "请输入查询关键字",
|
|
@@ -1638,7 +1639,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1638
1639
|
]),
|
|
1639
1640
|
_: 1
|
|
1640
1641
|
})),
|
|
1641
|
-
_(n(
|
|
1642
|
+
_(n(I), {
|
|
1642
1643
|
class: W(["x-mask-switch-bar__right", { "is-collasped": e.collasped }]),
|
|
1643
1644
|
flex: "",
|
|
1644
1645
|
align: "center",
|
|
@@ -1679,7 +1680,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1679
1680
|
_: 1
|
|
1680
1681
|
}));
|
|
1681
1682
|
}
|
|
1682
|
-
}), $n = ["src"], En = { key: 0 }, Mn = /* @__PURE__ */
|
|
1683
|
+
}), $n = ["src"], En = { key: 0 }, Mn = /* @__PURE__ */ V({
|
|
1683
1684
|
__name: "Brand",
|
|
1684
1685
|
props: {
|
|
1685
1686
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -1691,12 +1692,12 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1691
1692
|
const o = a, e = qe(), t = () => {
|
|
1692
1693
|
o.url && e.push(o.url);
|
|
1693
1694
|
};
|
|
1694
|
-
return (l, s) => (u(), g(n(
|
|
1695
|
+
return (l, s) => (u(), g(n(I), {
|
|
1695
1696
|
class: W(["x-mask-brand", { "is-collapsed": o.collapsed }]),
|
|
1696
1697
|
align: "center"
|
|
1697
1698
|
}, {
|
|
1698
1699
|
default: d(() => [
|
|
1699
|
-
_(n(
|
|
1700
|
+
_(n(I), {
|
|
1700
1701
|
class: "x-mask-brand__logo",
|
|
1701
1702
|
flex: "",
|
|
1702
1703
|
justify: "center",
|
|
@@ -1713,7 +1714,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1713
1714
|
]),
|
|
1714
1715
|
_: 3
|
|
1715
1716
|
}),
|
|
1716
|
-
_(n(
|
|
1717
|
+
_(n(I), {
|
|
1717
1718
|
class: "x-mask-brand__title",
|
|
1718
1719
|
flex: "",
|
|
1719
1720
|
align: "center"
|
|
@@ -1731,7 +1732,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1731
1732
|
_: 3
|
|
1732
1733
|
}, 8, ["class"]));
|
|
1733
1734
|
}
|
|
1734
|
-
}), Me = "__favorites__", Ie = "__search__", In = /* @__PURE__ */
|
|
1735
|
+
}), Me = "__favorites__", Ie = "__search__", In = /* @__PURE__ */ V({
|
|
1735
1736
|
__name: "Menu",
|
|
1736
1737
|
props: {
|
|
1737
1738
|
collapse: { type: Boolean, default: !1 },
|
|
@@ -1777,7 +1778,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1777
1778
|
l("select", p);
|
|
1778
1779
|
};
|
|
1779
1780
|
return (p, f) => (u(), C(Q, null, [
|
|
1780
|
-
G(_(n(
|
|
1781
|
+
G(_(n(I), {
|
|
1781
1782
|
class: "x-mask-menu",
|
|
1782
1783
|
grow: "",
|
|
1783
1784
|
flex: !1,
|
|
@@ -1823,7 +1824,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1823
1824
|
}, 512), [
|
|
1824
1825
|
[ne, !e.favorite && !e.keyword]
|
|
1825
1826
|
]),
|
|
1826
|
-
G(_(n(
|
|
1827
|
+
G(_(n(I), {
|
|
1827
1828
|
class: "x-mask-menu",
|
|
1828
1829
|
grow: "",
|
|
1829
1830
|
flex: !1,
|
|
@@ -1871,7 +1872,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1871
1872
|
}, 512), [
|
|
1872
1873
|
[ne, e.favorite && !e.keyword]
|
|
1873
1874
|
]),
|
|
1874
|
-
e.keyword ? G((u(), g(n(
|
|
1875
|
+
e.keyword ? G((u(), g(n(I), {
|
|
1875
1876
|
key: 0,
|
|
1876
1877
|
class: "x-mask-menu",
|
|
1877
1878
|
grow: "",
|
|
@@ -2005,7 +2006,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2005
2006
|
removeFavorite: {
|
|
2006
2007
|
type: Function
|
|
2007
2008
|
}
|
|
2008
|
-
}, Vt = Symbol(), At = Symbol(), An = { class: "x-mask-tabs__trigger" }, Dn = { key: 1 }, Rn = ["onDragstart", "onDragend"], On = { key: 1 }, Fn = /* @__PURE__ */
|
|
2009
|
+
}, Vt = Symbol(), At = Symbol(), An = { class: "x-mask-tabs__trigger" }, Dn = { key: 1 }, Rn = ["onDragstart", "onDragend"], On = { key: 1 }, Fn = /* @__PURE__ */ V({
|
|
2009
2010
|
__name: "Tabs",
|
|
2010
2011
|
props: {
|
|
2011
2012
|
tabs: {},
|
|
@@ -2018,7 +2019,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2018
2019
|
setup(a, { emit: o }) {
|
|
2019
2020
|
const e = a, t = o, l = (f) => {
|
|
2020
2021
|
const m = !!e.favorites.find(
|
|
2021
|
-
(
|
|
2022
|
+
(b) => b === f.menu || b.id === f.menu?.id
|
|
2022
2023
|
);
|
|
2023
2024
|
return [
|
|
2024
2025
|
{
|
|
@@ -2049,10 +2050,10 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2049
2050
|
t("click", e.home);
|
|
2050
2051
|
return;
|
|
2051
2052
|
}
|
|
2052
|
-
const
|
|
2053
|
-
|
|
2053
|
+
const b = e.tabs.find((h) => h.id === m);
|
|
2054
|
+
b && t("click", b);
|
|
2054
2055
|
}, c = (f) => {
|
|
2055
|
-
const m = e.tabs.find((
|
|
2056
|
+
const m = e.tabs.find((b) => b.id === f);
|
|
2056
2057
|
m && t("remove", m);
|
|
2057
2058
|
}, i = (f) => {
|
|
2058
2059
|
switch (f.name) {
|
|
@@ -2071,7 +2072,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2071
2072
|
}, p = (f, m) => {
|
|
2072
2073
|
m.target && m.target.classList.remove("is-dagging");
|
|
2073
2074
|
};
|
|
2074
|
-
return (f, m) => (u(), g(n(
|
|
2075
|
+
return (f, m) => (u(), g(n(I), {
|
|
2075
2076
|
ref: "tabsRef",
|
|
2076
2077
|
class: "x-mask-tabs",
|
|
2077
2078
|
height: "100%",
|
|
@@ -2100,9 +2101,9 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2100
2101
|
]),
|
|
2101
2102
|
_: 1
|
|
2102
2103
|
}, 8, ["name"])) : v("", !0),
|
|
2103
|
-
(u(!0), C(Q, null, Y(e.tabs, (
|
|
2104
|
-
key:
|
|
2105
|
-
name:
|
|
2104
|
+
(u(!0), C(Q, null, Y(e.tabs, (b) => (u(), g(n(Le), {
|
|
2105
|
+
key: b.id,
|
|
2106
|
+
name: b.id,
|
|
2106
2107
|
lazy: "",
|
|
2107
2108
|
closable: ""
|
|
2108
2109
|
}, {
|
|
@@ -2112,22 +2113,22 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2112
2113
|
placement: "bottom",
|
|
2113
2114
|
trigger: "hover",
|
|
2114
2115
|
width: "200px",
|
|
2115
|
-
disabled:
|
|
2116
|
+
disabled: b.id !== e.value
|
|
2116
2117
|
}, {
|
|
2117
2118
|
reference: d(() => [
|
|
2118
2119
|
X("div", {
|
|
2119
2120
|
class: "x-mask-tabs__trigger",
|
|
2120
2121
|
draggable: "true",
|
|
2121
|
-
onDragstart: (
|
|
2122
|
-
onDragend: (
|
|
2122
|
+
onDragstart: (h) => r(b, h),
|
|
2123
|
+
onDragend: (h) => p(b, h)
|
|
2123
2124
|
}, [
|
|
2124
|
-
|
|
2125
|
-
|
|
2125
|
+
b.icon ? (u(), g(J(n(_e)(b.icon)), { key: 0 })) : v("", !0),
|
|
2126
|
+
b.title ? (u(), C("span", On, A(b.title), 1)) : v("", !0)
|
|
2126
2127
|
], 40, Rn)
|
|
2127
2128
|
]),
|
|
2128
2129
|
default: d(() => [
|
|
2129
2130
|
_(n(Oe), {
|
|
2130
|
-
items: l(
|
|
2131
|
+
items: l(b),
|
|
2131
2132
|
mode: "text",
|
|
2132
2133
|
size: "small",
|
|
2133
2134
|
type: "info",
|
|
@@ -2146,7 +2147,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2146
2147
|
_: 1
|
|
2147
2148
|
}, 512));
|
|
2148
2149
|
}
|
|
2149
|
-
}), jn = /* @__PURE__ */
|
|
2150
|
+
}), jn = /* @__PURE__ */ V({
|
|
2150
2151
|
__name: "ThemeSwitch",
|
|
2151
2152
|
setup(a) {
|
|
2152
2153
|
const o = Fo();
|
|
@@ -2159,7 +2160,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2159
2160
|
"inactive-action-icon": n(Io)
|
|
2160
2161
|
}, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"]));
|
|
2161
2162
|
}
|
|
2162
|
-
}), Nn = { class: "x-mask-toolbar__menu-item" }, Xn = /* @__PURE__ */
|
|
2163
|
+
}), Nn = { class: "x-mask-toolbar__menu-item" }, Xn = /* @__PURE__ */ V({
|
|
2163
2164
|
__name: "Toolbar",
|
|
2164
2165
|
props: {
|
|
2165
2166
|
tabs: { default: () => [] },
|
|
@@ -2211,7 +2212,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2211
2212
|
}, r = (p, f) => {
|
|
2212
2213
|
t("actionCommand", p, f);
|
|
2213
2214
|
};
|
|
2214
|
-
return (p, f) => (u(), g(n(
|
|
2215
|
+
return (p, f) => (u(), g(n(I), {
|
|
2215
2216
|
class: "x-mask-toolbar",
|
|
2216
2217
|
align: "center"
|
|
2217
2218
|
}, {
|
|
@@ -2230,7 +2231,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2230
2231
|
R(A(m.label) + " ", 1),
|
|
2231
2232
|
["other", "all"].includes(m.command) ? v("", !0) : (u(), g(n(re), {
|
|
2232
2233
|
key: 0,
|
|
2233
|
-
onClick:
|
|
2234
|
+
onClick: ht((b) => s(m), ["stop"]),
|
|
2234
2235
|
icon: n(St)
|
|
2235
2236
|
}, null, 8, ["onClick", "icon"]))
|
|
2236
2237
|
])
|
|
@@ -2262,7 +2263,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2262
2263
|
_: 3
|
|
2263
2264
|
}));
|
|
2264
2265
|
}
|
|
2265
|
-
}), Un = /* @__PURE__ */
|
|
2266
|
+
}), Un = /* @__PURE__ */ V({
|
|
2266
2267
|
__name: "Avatar",
|
|
2267
2268
|
props: {
|
|
2268
2269
|
avatar: {}
|
|
@@ -2289,7 +2290,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2289
2290
|
_: 3
|
|
2290
2291
|
}, 8, ["disabled"]));
|
|
2291
2292
|
}
|
|
2292
|
-
}), ft = /* @__PURE__ */
|
|
2293
|
+
}), ft = /* @__PURE__ */ V({
|
|
2293
2294
|
__name: "Content",
|
|
2294
2295
|
props: {
|
|
2295
2296
|
createView: { type: Function },
|
|
@@ -2297,7 +2298,7 @@ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2297
2298
|
},
|
|
2298
2299
|
setup(a) {
|
|
2299
2300
|
const o = a;
|
|
2300
|
-
return (e, t) => (u(), g(n(
|
|
2301
|
+
return (e, t) => (u(), g(n(I), {
|
|
2301
2302
|
class: "x-mask__content",
|
|
2302
2303
|
flex: !1,
|
|
2303
2304
|
grow: "",
|
|
@@ -2348,41 +2349,41 @@ function Dt(a, o) {
|
|
|
2348
2349
|
}
|
|
2349
2350
|
function Ln(a, o) {
|
|
2350
2351
|
const e = qe(), t = Ve([]), l = Ve([]), s = y(() => Dt(t.value, a.menuAdapter)), c = y(() => Xo(s.value, "id")), i = O(null), r = (w) => {
|
|
2351
|
-
const
|
|
2352
|
+
const M = typeof w == "object" ? w.id : w, z = c.value.get(M);
|
|
2352
2353
|
if (!z) {
|
|
2353
2354
|
console.warn("找不到菜单", w);
|
|
2354
2355
|
return;
|
|
2355
2356
|
}
|
|
2356
|
-
const { type:
|
|
2357
|
-
if (!
|
|
2357
|
+
const { type: E = "route", url: B, title: S, icon: P } = z;
|
|
2358
|
+
if (!B) {
|
|
2358
2359
|
i.value = z, o("select", z);
|
|
2359
2360
|
return;
|
|
2360
2361
|
}
|
|
2361
|
-
if (
|
|
2362
|
-
Uo(
|
|
2362
|
+
if (E === "route") {
|
|
2363
|
+
Uo(B) || B.startsWith("//") ? window.open(B) : (i.value = z, e.push(B).catch((T) => T));
|
|
2363
2364
|
return;
|
|
2364
2365
|
}
|
|
2365
|
-
if (
|
|
2366
|
-
window.open(
|
|
2366
|
+
if (E === "window") {
|
|
2367
|
+
window.open(B);
|
|
2367
2368
|
return;
|
|
2368
2369
|
}
|
|
2369
|
-
|
|
2370
|
+
E === "dialog" && ot({
|
|
2370
2371
|
resizable: !0,
|
|
2371
2372
|
bodyPadding: !1,
|
|
2372
2373
|
width: "80%",
|
|
2373
2374
|
height: "80%",
|
|
2374
2375
|
title: S,
|
|
2375
|
-
icon:
|
|
2376
|
-
src:
|
|
2376
|
+
icon: P,
|
|
2377
|
+
src: B
|
|
2377
2378
|
});
|
|
2378
2379
|
}, p = async () => {
|
|
2379
2380
|
t.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], l.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
|
|
2380
2381
|
}, f = (w) => {
|
|
2381
2382
|
l.value = [w, ...l.value], a.addFavorite && a.addFavorite(w);
|
|
2382
2383
|
}, m = (w) => {
|
|
2383
|
-
l.value = l.value.filter((
|
|
2384
|
-
},
|
|
2385
|
-
|
|
2384
|
+
l.value = l.value.filter((M) => M.id !== w.id), a.removeFavorite && a.removeFavorite(w);
|
|
2385
|
+
}, b = (w) => !!l.value.find((M) => M === w || M.id === w.id), h = (w) => {
|
|
2386
|
+
b(w) ? m(w) : f(w);
|
|
2386
2387
|
};
|
|
2387
2388
|
return Qe(p), {
|
|
2388
2389
|
menus: t,
|
|
@@ -2390,21 +2391,21 @@ function Ln(a, o) {
|
|
|
2390
2391
|
flatMenus: s,
|
|
2391
2392
|
active: i,
|
|
2392
2393
|
select: r,
|
|
2393
|
-
toggleFavorite:
|
|
2394
|
+
toggleFavorite: h
|
|
2394
2395
|
};
|
|
2395
2396
|
}
|
|
2396
2397
|
function Wn(a, o, e, t, l) {
|
|
2397
|
-
const s = Et(), c = qe(), i = {}, r = O([]), p = O(), { width: f } = Ct(p), m = y(() => Math.floor(f.value / Pn)),
|
|
2398
|
+
const s = Et(), c = qe(), i = {}, r = O([]), p = O(), { width: f } = Ct(p), m = y(() => Math.floor(f.value / Pn)), b = y(
|
|
2398
2399
|
() => r.value.slice(0, m.value).filter(($) => !$.dialog)
|
|
2399
|
-
),
|
|
2400
|
+
), h = y(() => r.value.slice(m.value)), w = ($) => e.value.find((D) => D.url === $), M = ($) => s.fullPath === $.url, z = ($) => l.value.id === $ ? l.value : r.value.find((D) => D.id === $), E = O(""), B = y(() => z(E.value)), S = ($) => {
|
|
2400
2401
|
c.push($.url).catch((D) => D);
|
|
2401
|
-
},
|
|
2402
|
-
|
|
2402
|
+
}, P = ($) => {
|
|
2403
|
+
E.value = $.id, s.fullPath !== $.url && S($);
|
|
2403
2404
|
}, T = () => {
|
|
2404
2405
|
S(l.value);
|
|
2405
2406
|
}, j = ($) => {
|
|
2406
2407
|
const D = r.value.find((N) => N.url === $.url || N.id === $.id);
|
|
2407
|
-
D ?
|
|
2408
|
+
D ? P(D) : (r.value.unshift($), P($));
|
|
2408
2409
|
}, k = async ($) => {
|
|
2409
2410
|
const { url: D = s.fullPath, icon: N, title: Te = "新建标签页" } = $ || {}, $e = i[D], Fe = Tt(), je = $t(D);
|
|
2410
2411
|
return {
|
|
@@ -2421,7 +2422,7 @@ function Wn(a, o, e, t, l) {
|
|
|
2421
2422
|
if (await Ne.confirm("是否关闭页签", "提示", {
|
|
2422
2423
|
type: "warning"
|
|
2423
2424
|
}).catch(() => !1)) {
|
|
2424
|
-
if (r.value = r.value.filter((N) => N.id !== $.id),
|
|
2425
|
+
if (r.value = r.value.filter((N) => N.id !== $.id), E.value === $.id) {
|
|
2425
2426
|
const N = r.value[0];
|
|
2426
2427
|
S(N || l.value);
|
|
2427
2428
|
}
|
|
@@ -2439,22 +2440,22 @@ function Wn(a, o, e, t, l) {
|
|
|
2439
2440
|
}).catch(() => !1))
|
|
2440
2441
|
return;
|
|
2441
2442
|
const D = r.value;
|
|
2442
|
-
return r.value = [],
|
|
2443
|
+
return r.value = [], P(l.value), D;
|
|
2443
2444
|
}, Z = async () => {
|
|
2444
2445
|
if (!await Ne.confirm("是否关闭其他页签", "提示", {
|
|
2445
2446
|
type: "warning"
|
|
2446
2447
|
}).catch(() => !1))
|
|
2447
2448
|
return;
|
|
2448
|
-
const D = r.value.filter((N) => N.id !==
|
|
2449
|
-
return r.value = r.value.filter((N) => N.id ===
|
|
2449
|
+
const D = r.value.filter((N) => N.id !== E.value);
|
|
2450
|
+
return r.value = r.value.filter((N) => N.id === E.value), D;
|
|
2450
2451
|
}, ee = ($) => {
|
|
2451
2452
|
const D = r.value.filter((N) => N.id !== $.id);
|
|
2452
|
-
r.value = [$, ...D],
|
|
2453
|
+
r.value = [$, ...D], P($);
|
|
2453
2454
|
}, ue = async () => {
|
|
2454
2455
|
await ye();
|
|
2455
2456
|
const $ = l.value.url === s.fullPath, D = w(s.fullPath);
|
|
2456
2457
|
if ($)
|
|
2457
|
-
|
|
2458
|
+
E.value = l.value.id;
|
|
2458
2459
|
else {
|
|
2459
2460
|
const N = await k(D);
|
|
2460
2461
|
j(N);
|
|
@@ -2464,26 +2465,26 @@ function Wn(a, o, e, t, l) {
|
|
|
2464
2465
|
return L(e, ue), L(s, ue, { immediate: !0 }), ze(Vt, i), {
|
|
2465
2466
|
tabRef: p,
|
|
2466
2467
|
tabs: r,
|
|
2467
|
-
showTabs:
|
|
2468
|
-
currentTab:
|
|
2468
|
+
showTabs: b,
|
|
2469
|
+
currentTab: B,
|
|
2469
2470
|
changeTab: S,
|
|
2470
2471
|
removeTab: H,
|
|
2471
2472
|
updateTab: K,
|
|
2472
2473
|
addTab: j,
|
|
2473
2474
|
home: l,
|
|
2474
|
-
tabValue:
|
|
2475
|
-
isCurrentTab:
|
|
2475
|
+
tabValue: E,
|
|
2476
|
+
isCurrentTab: M,
|
|
2476
2477
|
activeHome: T,
|
|
2477
|
-
activeTab:
|
|
2478
|
-
dropdownTabs:
|
|
2478
|
+
activeTab: P,
|
|
2479
|
+
dropdownTabs: h,
|
|
2479
2480
|
removeAllTabs: ce,
|
|
2480
2481
|
removeOtherTabs: Z,
|
|
2481
2482
|
moveToShow: ee
|
|
2482
2483
|
};
|
|
2483
2484
|
}
|
|
2484
2485
|
function Jn(a) {
|
|
2485
|
-
const o = /* @__PURE__ */ new Map(), e = O([]), t = Re({}), l = pe(), s = {}, { updateTab: c, isCurrentTab: i, activeHome: r, tabs: p } = a, f = (S,
|
|
2486
|
-
const T =
|
|
2486
|
+
const o = /* @__PURE__ */ new Map(), e = O([]), t = Re({}), l = pe(), s = {}, { updateTab: c, isCurrentTab: i, activeHome: r, tabs: p } = a, f = (S, P) => {
|
|
2487
|
+
const T = P.fullPath;
|
|
2487
2488
|
if (o.has(T))
|
|
2488
2489
|
return o.get(T);
|
|
2489
2490
|
{
|
|
@@ -2493,7 +2494,7 @@ function Jn(a) {
|
|
|
2493
2494
|
const H = y(() => t[T] || document.body), K = y(() => !t[T]), ce = y(() => !e.value.includes(j));
|
|
2494
2495
|
return ze(
|
|
2495
2496
|
Jo,
|
|
2496
|
-
ge({ ...
|
|
2497
|
+
ge({ ...P })
|
|
2497
2498
|
), () => ce.value ? ae(
|
|
2498
2499
|
vt,
|
|
2499
2500
|
{
|
|
@@ -2508,13 +2509,13 @@ function Jn(a) {
|
|
|
2508
2509
|
}
|
|
2509
2510
|
}, m = (S) => {
|
|
2510
2511
|
S.dialog = void 0, delete t[S.url];
|
|
2511
|
-
const
|
|
2512
|
-
|
|
2513
|
-
},
|
|
2514
|
-
S.forEach((
|
|
2515
|
-
m(
|
|
2512
|
+
const P = s[S.id];
|
|
2513
|
+
P && (P.destroy(), delete s[S.id], c(S));
|
|
2514
|
+
}, b = (S = []) => {
|
|
2515
|
+
S.forEach((P) => {
|
|
2516
|
+
m(P);
|
|
2516
2517
|
});
|
|
2517
|
-
},
|
|
2518
|
+
}, h = async (S) => {
|
|
2518
2519
|
S.dialog = {
|
|
2519
2520
|
...S.dialog,
|
|
2520
2521
|
onMinimized: () => {
|
|
@@ -2524,7 +2525,7 @@ function Jn(a) {
|
|
|
2524
2525
|
m(S), p.value = p.value.filter((T) => T.id !== S.id);
|
|
2525
2526
|
}
|
|
2526
2527
|
}, c(S);
|
|
2527
|
-
const
|
|
2528
|
+
const P = ot(
|
|
2528
2529
|
{
|
|
2529
2530
|
title: S.title,
|
|
2530
2531
|
icon: S.icon,
|
|
@@ -2540,48 +2541,48 @@ function Jn(a) {
|
|
|
2540
2541
|
},
|
|
2541
2542
|
l?.appContext
|
|
2542
2543
|
);
|
|
2543
|
-
return await ye(), i(S) && r(), s[S.id] =
|
|
2544
|
+
return await ye(), i(S) && r(), s[S.id] = P, P;
|
|
2544
2545
|
}, w = async (S) => {
|
|
2545
2546
|
e.value = [S.name], await ye(), e.value = [];
|
|
2546
|
-
},
|
|
2547
|
-
e.value = S.map((
|
|
2548
|
-
}, z = (S) => (S.preventDefault(), !1),
|
|
2547
|
+
}, M = async (S) => {
|
|
2548
|
+
e.value = S.map((P) => P.name), await ye(), e.value = [];
|
|
2549
|
+
}, z = (S) => (S.preventDefault(), !1), E = (S) => {
|
|
2549
2550
|
if (S.dataTransfer) {
|
|
2550
|
-
const
|
|
2551
|
+
const P = S.dataTransfer.getData("tab"), T = p.value.find((j) => j.id === P);
|
|
2551
2552
|
if (T) {
|
|
2552
2553
|
const { clientX: j, clientY: k } = S;
|
|
2553
2554
|
T.dialog = {
|
|
2554
2555
|
left: j,
|
|
2555
2556
|
top: k
|
|
2556
|
-
},
|
|
2557
|
+
}, h(T);
|
|
2557
2558
|
}
|
|
2558
2559
|
}
|
|
2559
|
-
},
|
|
2560
|
-
return De(document, "dragover", z), De(document, "drop",
|
|
2560
|
+
}, B = (S) => !!t[S];
|
|
2561
|
+
return De(document, "dragover", z), De(document, "drop", E), {
|
|
2561
2562
|
createView: f,
|
|
2562
|
-
openDialog:
|
|
2563
|
+
openDialog: h,
|
|
2563
2564
|
refresh: w,
|
|
2564
2565
|
exclude: e,
|
|
2565
|
-
cleanCache:
|
|
2566
|
-
hasDialog:
|
|
2566
|
+
cleanCache: M,
|
|
2567
|
+
hasDialog: B,
|
|
2567
2568
|
closeDialog: m,
|
|
2568
|
-
closeDialogs:
|
|
2569
|
+
closeDialogs: b
|
|
2569
2570
|
};
|
|
2570
2571
|
}
|
|
2571
|
-
const Qn = /* @__PURE__ */
|
|
2572
|
+
const Qn = /* @__PURE__ */ V({
|
|
2572
2573
|
name: "XMask",
|
|
2573
2574
|
__name: "Mask",
|
|
2574
2575
|
props: Vn,
|
|
2575
2576
|
emits: ["select", "actionClick", "actionCommand"],
|
|
2576
2577
|
setup(a, { emit: o }) {
|
|
2577
|
-
const e = a, t = o, l = Kn(e), { collapsed: s, keyword: c, favorite: i } = Hn(), { menus: r, favorites: p, flatMenus: f, active: m, select:
|
|
2578
|
+
const e = a, t = o, l = Kn(e), { collapsed: s, keyword: c, favorite: i } = Hn(), { menus: r, favorites: p, flatMenus: f, active: m, select: b, toggleFavorite: h } = Ln(e, t), {
|
|
2578
2579
|
tabRef: w,
|
|
2579
|
-
showTabs:
|
|
2580
|
+
showTabs: M,
|
|
2580
2581
|
currentTab: z,
|
|
2581
|
-
changeTab:
|
|
2582
|
-
removeTab:
|
|
2582
|
+
changeTab: E,
|
|
2583
|
+
removeTab: B,
|
|
2583
2584
|
tabs: S,
|
|
2584
|
-
updateTab:
|
|
2585
|
+
updateTab: P,
|
|
2585
2586
|
isCurrentTab: T,
|
|
2586
2587
|
activeHome: j,
|
|
2587
2588
|
removeAllTabs: k,
|
|
@@ -2590,11 +2591,11 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2590
2591
|
moveToShow: ce
|
|
2591
2592
|
} = Wn(e, t, f, m, l), { createView: Z, openDialog: ee, refresh: ue, exclude: $, cleanCache: D, closeDialogs: N } = Jn({
|
|
2592
2593
|
tabs: S,
|
|
2593
|
-
updateTab:
|
|
2594
|
+
updateTab: P,
|
|
2594
2595
|
isCurrentTab: T,
|
|
2595
2596
|
activeHome: j
|
|
2596
2597
|
}), Te = async (U) => {
|
|
2597
|
-
await
|
|
2598
|
+
await B(U) && await D([U]);
|
|
2598
2599
|
}, $e = async () => {
|
|
2599
2600
|
const U = await k();
|
|
2600
2601
|
U && (N(U), await D(U));
|
|
@@ -2610,10 +2611,10 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2610
2611
|
tabs: S,
|
|
2611
2612
|
flatMenus: f,
|
|
2612
2613
|
favorites: p,
|
|
2613
|
-
updateTab:
|
|
2614
|
+
updateTab: P,
|
|
2614
2615
|
active: m,
|
|
2615
2616
|
currentTab: z
|
|
2616
|
-
}), (U, oe) => (u(), g(n(
|
|
2617
|
+
}), (U, oe) => (u(), g(n(I), {
|
|
2617
2618
|
class: W(["x-mask", { "is-disabled": e.disabled }]),
|
|
2618
2619
|
fit: ""
|
|
2619
2620
|
}, {
|
|
@@ -2654,12 +2655,12 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2654
2655
|
flatMenus: n(f),
|
|
2655
2656
|
menus: n(r),
|
|
2656
2657
|
active: n(m),
|
|
2657
|
-
onSelect: n(
|
|
2658
|
+
onSelect: n(b)
|
|
2658
2659
|
}, null, 8, ["collapse", "keyword", "favorite", "favorites", "flatMenus", "menus", "active", "onSelect"])
|
|
2659
2660
|
]),
|
|
2660
2661
|
_: 1
|
|
2661
2662
|
}, 8, ["collapsed"]),
|
|
2662
|
-
_(n(
|
|
2663
|
+
_(n(I), {
|
|
2663
2664
|
class: "x-mask__main",
|
|
2664
2665
|
grow: "",
|
|
2665
2666
|
shrink: "",
|
|
@@ -2667,7 +2668,7 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2667
2668
|
direction: "column"
|
|
2668
2669
|
}, {
|
|
2669
2670
|
default: d(() => [
|
|
2670
|
-
_(n(
|
|
2671
|
+
_(n(I), {
|
|
2671
2672
|
class: "x-mask-topbar",
|
|
2672
2673
|
justify: "space-between",
|
|
2673
2674
|
align: "center"
|
|
@@ -2677,11 +2678,11 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2677
2678
|
ref_key: "tabRef",
|
|
2678
2679
|
ref: w,
|
|
2679
2680
|
favorites: n(p),
|
|
2680
|
-
tabs: n(
|
|
2681
|
+
tabs: n(M),
|
|
2681
2682
|
home: n(l),
|
|
2682
2683
|
value: n(z)?.id,
|
|
2683
|
-
onClick: n(
|
|
2684
|
-
onToggleFavorite: n(
|
|
2684
|
+
onClick: n(E),
|
|
2685
|
+
onToggleFavorite: n(h),
|
|
2685
2686
|
onRemove: Te,
|
|
2686
2687
|
onDialog: n(ee),
|
|
2687
2688
|
onRefresh: n(ue)
|
|
@@ -2700,7 +2701,7 @@ const Qn = /* @__PURE__ */ P({
|
|
|
2700
2701
|
default: d(() => [
|
|
2701
2702
|
_(Un, {
|
|
2702
2703
|
avatar: e.avatar
|
|
2703
|
-
},
|
|
2704
|
+
}, be({ _: 2 }, [
|
|
2704
2705
|
U.$slots.user ? {
|
|
2705
2706
|
name: "default",
|
|
2706
2707
|
fn: d(() => [
|
|
@@ -2744,18 +2745,18 @@ function La(a = {}) {
|
|
|
2744
2745
|
mask: t
|
|
2745
2746
|
};
|
|
2746
2747
|
}
|
|
2747
|
-
const Zn = /* @__PURE__ */
|
|
2748
|
+
const Zn = /* @__PURE__ */ V({
|
|
2748
2749
|
__name: "SelectEditor",
|
|
2749
2750
|
props: {
|
|
2750
2751
|
options: { default: () => [] }
|
|
2751
2752
|
},
|
|
2752
2753
|
setup(a) {
|
|
2753
2754
|
const o = a;
|
|
2754
|
-
return (e, t) => (u(), g(n(to), le(
|
|
2755
|
+
return (e, t) => (u(), g(n(to), le(he(e.$attrs)), {
|
|
2755
2756
|
default: d(() => [
|
|
2756
2757
|
(u(!0), C(Q, null, Y(o.options, (l, s) => (u(), g(n(oo), F({
|
|
2757
2758
|
key: `item_${s}_${l.value}`
|
|
2758
|
-
}, l),
|
|
2759
|
+
}, l), be({ _: 2 }, [
|
|
2759
2760
|
e.$slots.option ? {
|
|
2760
2761
|
name: "default",
|
|
2761
2762
|
fn: d(() => [
|
|
@@ -2768,7 +2769,7 @@ const Zn = /* @__PURE__ */ P({
|
|
|
2768
2769
|
_: 3
|
|
2769
2770
|
}, 16));
|
|
2770
2771
|
}
|
|
2771
|
-
}), Gn = /* @__PURE__ */
|
|
2772
|
+
}), Gn = /* @__PURE__ */ V({
|
|
2772
2773
|
__name: "CheckboxEditor",
|
|
2773
2774
|
props: {
|
|
2774
2775
|
options: { default: () => [] },
|
|
@@ -2778,7 +2779,7 @@ const Zn = /* @__PURE__ */ P({
|
|
|
2778
2779
|
const o = a, e = y(
|
|
2779
2780
|
() => ke(o.button ? no : ao)
|
|
2780
2781
|
);
|
|
2781
|
-
return (t, l) => (u(), g(n(so), le(
|
|
2782
|
+
return (t, l) => (u(), g(n(so), le(he(t.$attrs)), {
|
|
2782
2783
|
default: d(() => [
|
|
2783
2784
|
(u(!0), C(Q, null, Y(o.options, (s, c) => (u(), g(J(e.value), {
|
|
2784
2785
|
key: `item_${c}_${s.value}`,
|
|
@@ -2793,7 +2794,7 @@ const Zn = /* @__PURE__ */ P({
|
|
|
2793
2794
|
_: 1
|
|
2794
2795
|
}, 16));
|
|
2795
2796
|
}
|
|
2796
|
-
}), Yn = /* @__PURE__ */
|
|
2797
|
+
}), Yn = /* @__PURE__ */ V({
|
|
2797
2798
|
__name: "RadioEditor",
|
|
2798
2799
|
props: {
|
|
2799
2800
|
options: { default: () => [] },
|
|
@@ -2803,7 +2804,7 @@ const Zn = /* @__PURE__ */ P({
|
|
|
2803
2804
|
const o = a, e = y(
|
|
2804
2805
|
() => ke(o.button ? lo : io)
|
|
2805
2806
|
);
|
|
2806
|
-
return (t, l) => (u(), g(n(ro), le(
|
|
2807
|
+
return (t, l) => (u(), g(n(ro), le(he(t.$attrs)), {
|
|
2807
2808
|
default: d(() => [
|
|
2808
2809
|
(u(!0), C(Q, null, Y(o.options, (s, c) => (u(), g(J(e.value), {
|
|
2809
2810
|
key: `item_${c}_${s.value}`,
|
|
@@ -3028,22 +3029,22 @@ function ta(a, o, e, t, l) {
|
|
|
3028
3029
|
placeholder: p,
|
|
3029
3030
|
label: f = "...",
|
|
3030
3031
|
disabled: m,
|
|
3031
|
-
readonly:
|
|
3032
|
-
} = a,
|
|
3032
|
+
readonly: b
|
|
3033
|
+
} = a, h = {
|
|
3033
3034
|
...a.props,
|
|
3034
3035
|
placeholder: p || (p === null ? void 0 : `请输入${f}`),
|
|
3035
3036
|
disabled: m,
|
|
3036
|
-
readonly:
|
|
3037
|
+
readonly: b,
|
|
3037
3038
|
options: s.value,
|
|
3038
3039
|
onFocus: () => o("focus"),
|
|
3039
3040
|
onBlur: () => o("blur"),
|
|
3040
|
-
onChange: (
|
|
3041
|
+
onChange: (M) => o("change", M)
|
|
3041
3042
|
}, w = typeof r == "string" ? Rt[r] : {
|
|
3042
3043
|
component: r,
|
|
3043
3044
|
props: {}
|
|
3044
3045
|
};
|
|
3045
3046
|
return Ko({}, w, {
|
|
3046
|
-
props:
|
|
3047
|
+
props: h
|
|
3047
3048
|
});
|
|
3048
3049
|
})
|
|
3049
3050
|
};
|
|
@@ -3054,7 +3055,7 @@ const oa = {
|
|
|
3054
3055
|
}, na = {
|
|
3055
3056
|
key: 0,
|
|
3056
3057
|
class: "x-field__tip"
|
|
3057
|
-
}, Ot = /* @__PURE__ */
|
|
3058
|
+
}, Ot = /* @__PURE__ */ V({
|
|
3058
3059
|
name: "XField",
|
|
3059
3060
|
__name: "Field",
|
|
3060
3061
|
props: qn,
|
|
@@ -3066,25 +3067,25 @@ const oa = {
|
|
|
3066
3067
|
r,
|
|
3067
3068
|
s,
|
|
3068
3069
|
i
|
|
3069
|
-
),
|
|
3070
|
+
), b = O(), h = O(), w = y(
|
|
3070
3071
|
() => t.size || c?.size || "default"
|
|
3071
|
-
),
|
|
3072
|
+
), M = y(() => Object.assign(
|
|
3072
3073
|
{},
|
|
3073
3074
|
s?.props.tooltipMessage || {},
|
|
3074
3075
|
typeof t.tooltipMessage == "boolean" ? {} : t.tooltipMessage
|
|
3075
|
-
)), z = (k = "") => t.error ? t.error : k.includes("is required") ? `${t.label || t.name}是必填项!` : k,
|
|
3076
|
+
)), z = (k = "") => t.error ? t.error : k.includes("is required") ? `${t.label || t.name}是必填项!` : k, E = y(() => {
|
|
3076
3077
|
const k = s?.props.tooltipMessage ?? t.tooltipMessage;
|
|
3077
3078
|
return {
|
|
3078
3079
|
[`is-tooltip-${t.tooltipPosition}`]: !!k && !!t.tooltipPosition
|
|
3079
3080
|
};
|
|
3080
|
-
}),
|
|
3081
|
+
}), B = y(() => {
|
|
3081
3082
|
const k = s?.proxy;
|
|
3082
3083
|
return {
|
|
3083
3084
|
width: t.width ? q(t.width) : k && k.inline && k.inlineColumns ? `${100 / k.inlineColumns}%` : null
|
|
3084
3085
|
};
|
|
3085
3086
|
}), S = y(() => ({
|
|
3086
3087
|
right: typeof t.tooltipPosition == "number" ? `${t.tooltipPosition}px` : void 0
|
|
3087
|
-
})),
|
|
3088
|
+
})), P = y(() => ({
|
|
3088
3089
|
...m.value.props,
|
|
3089
3090
|
modelValue: f.value,
|
|
3090
3091
|
"onUpdate:modelValue": (k) => {
|
|
@@ -3111,24 +3112,24 @@ const oa = {
|
|
|
3111
3112
|
}
|
|
3112
3113
|
), o({
|
|
3113
3114
|
fieldValue: f,
|
|
3114
|
-
itemRef:
|
|
3115
|
-
editorRef:
|
|
3115
|
+
itemRef: b,
|
|
3116
|
+
editorRef: h,
|
|
3116
3117
|
focus: () => {
|
|
3117
|
-
|
|
3118
|
+
h.value?.focus && h.value.focus();
|
|
3118
3119
|
},
|
|
3119
3120
|
blur: () => {
|
|
3120
|
-
|
|
3121
|
+
h.value?.foucs && h.value.blur();
|
|
3121
3122
|
}
|
|
3122
3123
|
}), (k, H) => r.value ? (u(), g(n(yo), F({
|
|
3123
3124
|
key: 0,
|
|
3124
|
-
class: ["x-field",
|
|
3125
|
+
class: ["x-field", E.value],
|
|
3125
3126
|
ref_key: "itemRef",
|
|
3126
|
-
ref:
|
|
3127
|
+
ref: b,
|
|
3127
3128
|
prop: t.name,
|
|
3128
3129
|
label: k.label,
|
|
3129
3130
|
size: w.value,
|
|
3130
|
-
style:
|
|
3131
|
-
}, k.$attrs),
|
|
3131
|
+
style: B.value
|
|
3132
|
+
}, k.$attrs), be({
|
|
3132
3133
|
error: d(({ error: K }) => [
|
|
3133
3134
|
x(k.$slots, "error", { error: K }, () => [
|
|
3134
3135
|
n(s)?.props.tooltipMessage ?? t.tooltipMessage ? (u(), C("div", {
|
|
@@ -3136,9 +3137,9 @@ const oa = {
|
|
|
3136
3137
|
class: "x-field__info",
|
|
3137
3138
|
style: fe(S.value)
|
|
3138
3139
|
}, [
|
|
3139
|
-
_(n(
|
|
3140
|
+
_(n(bt), F({
|
|
3140
3141
|
content: z(K)
|
|
3141
|
-
},
|
|
3142
|
+
}, M.value), {
|
|
3142
3143
|
default: d(() => [
|
|
3143
3144
|
_(n(re), {
|
|
3144
3145
|
class: "x-field__trigger",
|
|
@@ -3155,15 +3156,15 @@ const oa = {
|
|
|
3155
3156
|
X("div", {
|
|
3156
3157
|
class: W(["x-field__editor_wrap", { "is-inline": t.inline }])
|
|
3157
3158
|
}, [
|
|
3158
|
-
x(k.$slots, "editor", { editor:
|
|
3159
|
+
x(k.$slots, "editor", { editor: P.value }, () => [
|
|
3159
3160
|
n(m).component ? (u(), g(J(n(m).component), F({
|
|
3160
3161
|
key: 0,
|
|
3161
3162
|
class: "x-field__editor",
|
|
3162
3163
|
ref_key: "editorRef",
|
|
3163
|
-
ref:
|
|
3164
|
+
ref: h,
|
|
3164
3165
|
modelValue: f.value,
|
|
3165
3166
|
"onUpdate:modelValue": H[0] || (H[0] = (K) => f.value = K)
|
|
3166
|
-
}, n(m).props),
|
|
3167
|
+
}, n(m).props), be({ _: 2 }, [
|
|
3167
3168
|
k.$slots.option ? {
|
|
3168
3169
|
name: "option",
|
|
3169
3170
|
fn: d(({ option: K }) => [
|
|
@@ -3248,7 +3249,7 @@ const oa = {
|
|
|
3248
3249
|
type: [Object, Boolean],
|
|
3249
3250
|
default: void 0
|
|
3250
3251
|
}
|
|
3251
|
-
}, Ft = Symbol("formInstanceKey"), jt = Symbol("formModelKey"), Nt = /* @__PURE__ */
|
|
3252
|
+
}, Ft = Symbol("formInstanceKey"), jt = Symbol("formModelKey"), Nt = /* @__PURE__ */ V({
|
|
3252
3253
|
name: "XForm",
|
|
3253
3254
|
__name: "Form",
|
|
3254
3255
|
props: aa,
|
|
@@ -3274,14 +3275,14 @@ const oa = {
|
|
|
3274
3275
|
model: i,
|
|
3275
3276
|
submit: p,
|
|
3276
3277
|
reset: f
|
|
3277
|
-
}), (m,
|
|
3278
|
+
}), (m, b) => (u(), g(n(vo), F({
|
|
3278
3279
|
ref_key: "formRef",
|
|
3279
3280
|
ref: c,
|
|
3280
3281
|
class: "x-form",
|
|
3281
3282
|
inline: t.inline,
|
|
3282
3283
|
model: i,
|
|
3283
3284
|
onKeyup: Lt(p, ["enter"]),
|
|
3284
|
-
onSubmit:
|
|
3285
|
+
onSubmit: b[1] || (b[1] = ht(() => {
|
|
3285
3286
|
}, ["stop", "prevent"]))
|
|
3286
3287
|
}, m.$attrs), {
|
|
3287
3288
|
default: d(() => [
|
|
@@ -3308,7 +3309,7 @@ const oa = {
|
|
|
3308
3309
|
t.resetText ? (u(), g(n(ie), {
|
|
3309
3310
|
key: 1,
|
|
3310
3311
|
type: "default",
|
|
3311
|
-
onClick:
|
|
3312
|
+
onClick: b[0] || (b[0] = () => f())
|
|
3312
3313
|
}, {
|
|
3313
3314
|
default: d(() => [
|
|
3314
3315
|
R(A(t.resetText), 1)
|
|
@@ -3361,7 +3362,7 @@ const oa = {
|
|
|
3361
3362
|
submitMethod: {
|
|
3362
3363
|
type: Function
|
|
3363
3364
|
}
|
|
3364
|
-
}, la = /* @__PURE__ */
|
|
3365
|
+
}, la = /* @__PURE__ */ V({
|
|
3365
3366
|
name: "XDialogForm",
|
|
3366
3367
|
__name: "DialogForm",
|
|
3367
3368
|
props: sa,
|
|
@@ -3371,30 +3372,30 @@ const oa = {
|
|
|
3371
3372
|
s.value?.submit();
|
|
3372
3373
|
}, p = () => {
|
|
3373
3374
|
l("update:modelValue", !1), l("close");
|
|
3374
|
-
}, f = async (
|
|
3375
|
-
l("submit",
|
|
3375
|
+
}, f = async (h) => {
|
|
3376
|
+
l("submit", h), t.submitMethod ? await t.submitMethod(h) && p() : p();
|
|
3376
3377
|
}, m = y(
|
|
3377
3378
|
() => t.formProps?.disabled ? !1 : t.submit
|
|
3378
|
-
),
|
|
3379
|
+
), b = y(
|
|
3379
3380
|
() => t.formProps?.disabled ? !1 : t.cancel
|
|
3380
3381
|
);
|
|
3381
3382
|
return o({
|
|
3382
3383
|
$vtjEl: i,
|
|
3383
3384
|
formRef: s,
|
|
3384
3385
|
dialogRef: c
|
|
3385
|
-
}), (
|
|
3386
|
+
}), (h, w) => (u(), g(n(tt), F({
|
|
3386
3387
|
ref_key: "dialogRef",
|
|
3387
3388
|
ref: c,
|
|
3388
3389
|
class: "x-dialog-form",
|
|
3389
3390
|
"model-value": t.modelValue,
|
|
3390
3391
|
submit: m.value,
|
|
3391
|
-
cancel:
|
|
3392
|
+
cancel: b.value,
|
|
3392
3393
|
size: t.size,
|
|
3393
3394
|
onSubmit: r,
|
|
3394
3395
|
onClose: p,
|
|
3395
3396
|
minimizable: !1,
|
|
3396
3397
|
maximizable: !1
|
|
3397
|
-
},
|
|
3398
|
+
}, h.$attrs), be({
|
|
3398
3399
|
default: d(() => [
|
|
3399
3400
|
_(n(Nt), F({
|
|
3400
3401
|
ref_key: "formRef",
|
|
@@ -3408,31 +3409,31 @@ const oa = {
|
|
|
3408
3409
|
"submit-method": f
|
|
3409
3410
|
}, t.formProps), {
|
|
3410
3411
|
default: d(() => [
|
|
3411
|
-
x(
|
|
3412
|
+
x(h.$slots, "default")
|
|
3412
3413
|
]),
|
|
3413
3414
|
_: 3
|
|
3414
3415
|
}, 16, ["size", "model", "rules"])
|
|
3415
3416
|
]),
|
|
3416
3417
|
_: 2
|
|
3417
3418
|
}, [
|
|
3418
|
-
|
|
3419
|
+
h.$slots.extra ? {
|
|
3419
3420
|
name: "extra",
|
|
3420
3421
|
fn: d(() => [
|
|
3421
|
-
x(
|
|
3422
|
+
x(h.$slots, "extra")
|
|
3422
3423
|
]),
|
|
3423
3424
|
key: "0"
|
|
3424
3425
|
} : void 0,
|
|
3425
|
-
|
|
3426
|
+
h.$slots.handle ? {
|
|
3426
3427
|
name: "handle",
|
|
3427
3428
|
fn: d(() => [
|
|
3428
|
-
x(
|
|
3429
|
+
x(h.$slots, "handle")
|
|
3429
3430
|
]),
|
|
3430
3431
|
key: "1"
|
|
3431
3432
|
} : void 0,
|
|
3432
|
-
|
|
3433
|
+
h.$slots.footer ? {
|
|
3433
3434
|
name: "footer",
|
|
3434
3435
|
fn: d(() => [
|
|
3435
|
-
x(
|
|
3436
|
+
x(h.$slots, "footer")
|
|
3436
3437
|
]),
|
|
3437
3438
|
key: "2"
|
|
3438
3439
|
} : void 0
|
|
@@ -3448,7 +3449,7 @@ const oa = {
|
|
|
3448
3449
|
border: {
|
|
3449
3450
|
type: Boolean
|
|
3450
3451
|
}
|
|
3451
|
-
}, ra = /* @__PURE__ */
|
|
3452
|
+
}, ra = /* @__PURE__ */ V({
|
|
3452
3453
|
name: "XTabs",
|
|
3453
3454
|
__name: "Tabs",
|
|
3454
3455
|
props: ia,
|
|
@@ -3473,7 +3474,7 @@ const oa = {
|
|
|
3473
3474
|
key: c.value ?? c.name
|
|
3474
3475
|
}, e(c)), {
|
|
3475
3476
|
label: d(() => [
|
|
3476
|
-
x(l.$slots, "label", le(
|
|
3477
|
+
x(l.$slots, "label", le(he(c)), () => [
|
|
3477
3478
|
c.icon ? (u(), g(J(n(_e)(c.icon)), {
|
|
3478
3479
|
key: 0,
|
|
3479
3480
|
class: "x-tabs__icon"
|
|
@@ -3482,7 +3483,7 @@ const oa = {
|
|
|
3482
3483
|
])
|
|
3483
3484
|
]),
|
|
3484
3485
|
default: d(() => [
|
|
3485
|
-
x(l.$slots, "default", le(
|
|
3486
|
+
x(l.$slots, "default", le(he(c)), () => [
|
|
3486
3487
|
c.component ? (u(), g(J(c.component), le(F({ key: 0 }, c.props)), null, 16)) : v("", !0)
|
|
3487
3488
|
])
|
|
3488
3489
|
]),
|
|
@@ -3539,17 +3540,17 @@ const oa = {
|
|
|
3539
3540
|
}, fa = {
|
|
3540
3541
|
key: 3,
|
|
3541
3542
|
class: "x-data-item__section x-data-item__actions"
|
|
3542
|
-
}, ma = /* @__PURE__ */
|
|
3543
|
+
}, ma = /* @__PURE__ */ V({
|
|
3543
3544
|
name: "XDataItem",
|
|
3544
3545
|
__name: "DataItem",
|
|
3545
3546
|
props: ca,
|
|
3546
3547
|
emits: ["imageClick", "titleClick", "actionClick", "actionCommand"],
|
|
3547
3548
|
setup(a, { emit: o }) {
|
|
3548
3549
|
const e = a, t = o, l = y(() => {
|
|
3549
|
-
const { imageWidth: m, imageHeight:
|
|
3550
|
+
const { imageWidth: m, imageHeight: b } = e;
|
|
3550
3551
|
return {
|
|
3551
3552
|
width: m ? q(m) : void 0,
|
|
3552
|
-
height:
|
|
3553
|
+
height: b ? q(b) : void 0
|
|
3553
3554
|
};
|
|
3554
3555
|
}), s = y(() => ({
|
|
3555
3556
|
[`is-image-${e.direction}`]: !!e.direction,
|
|
@@ -3561,13 +3562,13 @@ const oa = {
|
|
|
3561
3562
|
type: "info",
|
|
3562
3563
|
items: e.actions,
|
|
3563
3564
|
...e.actionBarProps
|
|
3564
|
-
})), i = () => t("imageClick"), r = () => t("titleClick"), p = (m) => t("actionClick", m), f = (m,
|
|
3565
|
-
return (m,
|
|
3565
|
+
})), i = () => t("imageClick"), r = () => t("titleClick"), p = (m) => t("actionClick", m), f = (m, b) => t("actionCommand", m, b);
|
|
3566
|
+
return (m, b) => (u(), g(n(I), {
|
|
3566
3567
|
class: W(["x-data-item", s.value]),
|
|
3567
3568
|
direction: e.direction
|
|
3568
3569
|
}, {
|
|
3569
3570
|
default: d(() => [
|
|
3570
|
-
e.imageSrc || m.$slots.image ? (u(), g(n(
|
|
3571
|
+
e.imageSrc || m.$slots.image ? (u(), g(n(I), {
|
|
3571
3572
|
key: 0,
|
|
3572
3573
|
class: "x-data-item__img",
|
|
3573
3574
|
autoPointer: !0,
|
|
@@ -3575,7 +3576,7 @@ const oa = {
|
|
|
3575
3576
|
}, {
|
|
3576
3577
|
default: d(() => [
|
|
3577
3578
|
x(m.$slots, "image", {}, () => [
|
|
3578
|
-
e.imageSrc ? (u(), g(n(
|
|
3579
|
+
e.imageSrc ? (u(), g(n(ho), {
|
|
3579
3580
|
key: 0,
|
|
3580
3581
|
style: fe(l.value),
|
|
3581
3582
|
src: e.imageSrc
|
|
@@ -3584,14 +3585,14 @@ const oa = {
|
|
|
3584
3585
|
]),
|
|
3585
3586
|
_: 3
|
|
3586
3587
|
}, 8, ["onClick"])) : v("", !0),
|
|
3587
|
-
_(n(
|
|
3588
|
+
_(n(I), {
|
|
3588
3589
|
class: "x-data-item__content",
|
|
3589
3590
|
direction: "column",
|
|
3590
3591
|
grow: "",
|
|
3591
3592
|
shrink: ""
|
|
3592
3593
|
}, {
|
|
3593
3594
|
default: d(() => [
|
|
3594
|
-
e.title || m.$slots.title ? (u(), g(n(
|
|
3595
|
+
e.title || m.$slots.title ? (u(), g(n(I), {
|
|
3595
3596
|
key: 0,
|
|
3596
3597
|
class: "x-data-item__section x-data-item__wrapper",
|
|
3597
3598
|
align: "center",
|
|
@@ -3674,7 +3675,7 @@ function va(a, o) {
|
|
|
3674
3675
|
echarts: t
|
|
3675
3676
|
};
|
|
3676
3677
|
}
|
|
3677
|
-
const
|
|
3678
|
+
const ha = /* @__PURE__ */ V({
|
|
3678
3679
|
name: "XChart",
|
|
3679
3680
|
__name: "Chart",
|
|
3680
3681
|
props: ga,
|
|
@@ -3693,7 +3694,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
3693
3694
|
style: fe(c.value)
|
|
3694
3695
|
}, null, 4));
|
|
3695
3696
|
}
|
|
3696
|
-
}),
|
|
3697
|
+
}), ba = {
|
|
3697
3698
|
data: {
|
|
3698
3699
|
type: [Object, Function],
|
|
3699
3700
|
default() {
|
|
@@ -3746,10 +3747,10 @@ const ba = /* @__PURE__ */ P({
|
|
|
3746
3747
|
}, Sa = {
|
|
3747
3748
|
key: 1,
|
|
3748
3749
|
class: "x-list__pager"
|
|
3749
|
-
}, za = /* @__PURE__ */
|
|
3750
|
+
}, za = /* @__PURE__ */ V({
|
|
3750
3751
|
name: "XList",
|
|
3751
3752
|
__name: "List",
|
|
3752
|
-
props:
|
|
3753
|
+
props: ba,
|
|
3753
3754
|
emits: ["load"],
|
|
3754
3755
|
setup(a, { expose: o, emit: e }) {
|
|
3755
3756
|
const t = a, l = e, s = Re({
|
|
@@ -3770,35 +3771,35 @@ const ba = /* @__PURE__ */ P({
|
|
|
3770
3771
|
), r = y(() => Math.ceil((c.value.total || 0) / s.pageSize)), p = O(!1), f = O(), m = y(() => ({
|
|
3771
3772
|
width: q(t.width),
|
|
3772
3773
|
height: q(t.height)
|
|
3773
|
-
})),
|
|
3774
|
+
})), b = y(() => ({
|
|
3774
3775
|
"is-virtual": !!t.itemHeight
|
|
3775
|
-
})),
|
|
3776
|
+
})), h = y(() => {
|
|
3776
3777
|
const T = {};
|
|
3777
3778
|
for (let [j, k] of Object.entries(
|
|
3778
3779
|
rt(t.infiniteScroll)
|
|
3779
3780
|
))
|
|
3780
3781
|
T[`infinite-scroll-${j}`] = k;
|
|
3781
3782
|
return (i.value || p.value) && (T["infinite-scroll-disabled"] = !0), T;
|
|
3782
|
-
}), w = y(() => rt(t.pager, {})), { list:
|
|
3783
|
+
}), w = y(() => rt(t.pager, {})), { list: M, containerProps: z, wrapperProps: E, scrollTo: B } = No(
|
|
3783
3784
|
y(() => c.value.list),
|
|
3784
3785
|
{
|
|
3785
3786
|
itemHeight: t.itemHeight || 0
|
|
3786
3787
|
}
|
|
3787
3788
|
), S = () => {
|
|
3788
3789
|
!t.infiniteScroll || p.value || (s.page < r.value ? (++s.page, l("load", s)) : p.value = !0);
|
|
3789
|
-
},
|
|
3790
|
+
}, P = (T) => t.dataKey ? T[t.dataKey] : void 0;
|
|
3790
3791
|
return o({
|
|
3791
|
-
list:
|
|
3792
|
-
scrollTo:
|
|
3792
|
+
list: M,
|
|
3793
|
+
scrollTo: B,
|
|
3793
3794
|
wrapperRef: f,
|
|
3794
3795
|
loading: i,
|
|
3795
3796
|
state: s,
|
|
3796
3797
|
pageCount: r,
|
|
3797
3798
|
nomore: p,
|
|
3798
3799
|
data: c,
|
|
3799
|
-
getKey:
|
|
3800
|
+
getKey: P
|
|
3800
3801
|
}), (T, j) => (u(), C("div", {
|
|
3801
|
-
class: W(["x-list",
|
|
3802
|
+
class: W(["x-list", b.value]),
|
|
3802
3803
|
style: fe(m.value)
|
|
3803
3804
|
}, [
|
|
3804
3805
|
!n(c).total && !n(i) ? x(T.$slots, "empty", { key: 0 }, () => [
|
|
@@ -3810,9 +3811,9 @@ const ba = /* @__PURE__ */ P({
|
|
|
3810
3811
|
class: "x-list__wrapper",
|
|
3811
3812
|
ref_key: "wrapperRef",
|
|
3812
3813
|
ref: f
|
|
3813
|
-
}, { ...n(
|
|
3814
|
-
(u(!0), C(Q, null, Y(n(
|
|
3815
|
-
key:
|
|
3814
|
+
}, { ...n(E), ...h.value }), [
|
|
3815
|
+
(u(!0), C(Q, null, Y(n(M), (k, H) => x(T.$slots, "default", le(F({
|
|
3816
|
+
key: P(k.data)
|
|
3816
3817
|
}, { item: k.data, index: H })), () => [
|
|
3817
3818
|
X("div", null, A(k), 1)
|
|
3818
3819
|
])), 128)),
|
|
@@ -3831,9 +3832,9 @@ const ba = /* @__PURE__ */ P({
|
|
|
3831
3832
|
]) : G((u(), C("div", F({
|
|
3832
3833
|
key: 1,
|
|
3833
3834
|
class: "x-list__wrapper"
|
|
3834
|
-
},
|
|
3835
|
+
}, h.value), [
|
|
3835
3836
|
(u(!0), C(Q, null, Y(n(c).list, (k, H) => x(T.$slots, "default", le(F({
|
|
3836
|
-
key:
|
|
3837
|
+
key: P(k)
|
|
3837
3838
|
}, { item: k, index: H })), () => [
|
|
3838
3839
|
X("div", null, A(k), 1)
|
|
3839
3840
|
])), 128)),
|
|
@@ -3852,7 +3853,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
3852
3853
|
])
|
|
3853
3854
|
], 16),
|
|
3854
3855
|
t.pager ? (u(), C("div", Sa, [
|
|
3855
|
-
_(n(
|
|
3856
|
+
_(n(bo), F({
|
|
3856
3857
|
small: "",
|
|
3857
3858
|
background: "",
|
|
3858
3859
|
layout: "prev, pager, next",
|
|
@@ -3884,7 +3885,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
3884
3885
|
type: String,
|
|
3885
3886
|
default: "/@vtj/pro/"
|
|
3886
3887
|
}
|
|
3887
|
-
}, Ta = { class: "x-startup" }, $a = { class: "x-startup__wrapper" }, Ea = { class: "x-startup__name" }, Ma = { class: "clip" }, Ia = { class: "x-startup__tagline" }, Ba = { class: "x-startup__actions" }, Pa = /* @__PURE__ */
|
|
3888
|
+
}, Ta = { class: "x-startup" }, $a = { class: "x-startup__wrapper" }, Ea = { class: "x-startup__name" }, Ma = { class: "clip" }, Ia = { class: "x-startup__tagline" }, Ba = { class: "x-startup__actions" }, Pa = /* @__PURE__ */ V({
|
|
3888
3889
|
__name: "Startup",
|
|
3889
3890
|
props: Ca,
|
|
3890
3891
|
setup(a) {
|
|
@@ -3946,7 +3947,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
3946
3947
|
syncProp: {
|
|
3947
3948
|
type: String
|
|
3948
3949
|
}
|
|
3949
|
-
}, Aa = { class: "x-test__slot" }, Da = { class: "x-test__slot" }, Ra = /* @__PURE__ */
|
|
3950
|
+
}, Aa = { class: "x-test__slot" }, Da = { class: "x-test__slot" }, Ra = /* @__PURE__ */ V({
|
|
3950
3951
|
name: "XTest",
|
|
3951
3952
|
__name: "Test",
|
|
3952
3953
|
props: Va,
|
|
@@ -3956,15 +3957,15 @@ const ba = /* @__PURE__ */ P({
|
|
|
3956
3957
|
get() {
|
|
3957
3958
|
return t.modelValue;
|
|
3958
3959
|
},
|
|
3959
|
-
set(
|
|
3960
|
-
l("update:modelValue",
|
|
3960
|
+
set(h) {
|
|
3961
|
+
l("update:modelValue", h);
|
|
3961
3962
|
}
|
|
3962
3963
|
}), i = y({
|
|
3963
3964
|
get() {
|
|
3964
3965
|
return t.syncProp;
|
|
3965
3966
|
},
|
|
3966
|
-
set(
|
|
3967
|
-
l("update:syncProp",
|
|
3967
|
+
set(h) {
|
|
3968
|
+
l("update:syncProp", h);
|
|
3968
3969
|
}
|
|
3969
3970
|
}), r = O("default inner data"), p = () => {
|
|
3970
3971
|
it.info({
|
|
@@ -3974,9 +3975,9 @@ const ba = /* @__PURE__ */ P({
|
|
|
3974
3975
|
it.info({
|
|
3975
3976
|
message: "触发submit事件"
|
|
3976
3977
|
}), l("submit", t);
|
|
3977
|
-
}, m = (
|
|
3978
|
-
r.value =
|
|
3979
|
-
},
|
|
3978
|
+
}, m = (h) => {
|
|
3979
|
+
r.value = h, l("change", r.value);
|
|
3980
|
+
}, b = () => {
|
|
3980
3981
|
m("user click change:" + Date.now());
|
|
3981
3982
|
};
|
|
3982
3983
|
return o({
|
|
@@ -3984,7 +3985,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
3984
3985
|
submit: f,
|
|
3985
3986
|
data: r,
|
|
3986
3987
|
change: m
|
|
3987
|
-
}), (
|
|
3988
|
+
}), (h, w) => (u(), g(n(Se), {
|
|
3988
3989
|
class: "x-test",
|
|
3989
3990
|
header: "VTJ 低代码测试组件",
|
|
3990
3991
|
border: ""
|
|
@@ -3996,7 +3997,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
3996
3997
|
]),
|
|
3997
3998
|
_: 1
|
|
3998
3999
|
}),
|
|
3999
|
-
_(n(
|
|
4000
|
+
_(n(I), null, {
|
|
4000
4001
|
default: d(() => [
|
|
4001
4002
|
R(A(r.value), 1)
|
|
4002
4003
|
]),
|
|
@@ -4013,7 +4014,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4013
4014
|
border: ""
|
|
4014
4015
|
}, {
|
|
4015
4016
|
default: d(() => [
|
|
4016
|
-
(u(!0), C(Q, null, Y(s.value, ([
|
|
4017
|
+
(u(!0), C(Q, null, Y(s.value, ([M, z]) => (u(), g(n(Xe), { label: M }, {
|
|
4017
4018
|
default: d(() => [
|
|
4018
4019
|
X("pre", null, A(JSON.stringify(z, null, 2)), 1)
|
|
4019
4020
|
]),
|
|
@@ -4028,7 +4029,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4028
4029
|
]),
|
|
4029
4030
|
_: 1
|
|
4030
4031
|
}),
|
|
4031
|
-
_(n(
|
|
4032
|
+
_(n(I), {
|
|
4032
4033
|
justify: "space-around",
|
|
4033
4034
|
flex: "",
|
|
4034
4035
|
gap: ""
|
|
@@ -4041,7 +4042,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4041
4042
|
}, {
|
|
4042
4043
|
default: d(() => [
|
|
4043
4044
|
X("div", Aa, [
|
|
4044
|
-
x(
|
|
4045
|
+
x(h.$slots, "default", {
|
|
4045
4046
|
props: t,
|
|
4046
4047
|
data: r.value
|
|
4047
4048
|
}, () => [
|
|
@@ -4058,7 +4059,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4058
4059
|
}, {
|
|
4059
4060
|
default: d(() => [
|
|
4060
4061
|
X("div", Da, [
|
|
4061
|
-
x(
|
|
4062
|
+
x(h.$slots, "extra", {
|
|
4062
4063
|
props: t,
|
|
4063
4064
|
data: r.value
|
|
4064
4065
|
}, () => [
|
|
@@ -4077,7 +4078,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4077
4078
|
]),
|
|
4078
4079
|
_: 1
|
|
4079
4080
|
}),
|
|
4080
|
-
_(n(
|
|
4081
|
+
_(n(I), null, {
|
|
4081
4082
|
default: d(() => [
|
|
4082
4083
|
_(n(lt), {
|
|
4083
4084
|
column: 2,
|
|
@@ -4088,7 +4089,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4088
4089
|
default: d(() => [
|
|
4089
4090
|
_(n(Ce), {
|
|
4090
4091
|
modelValue: c.value,
|
|
4091
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
4092
|
+
"onUpdate:modelValue": w[0] || (w[0] = (M) => c.value = M)
|
|
4092
4093
|
}, null, 8, ["modelValue"])
|
|
4093
4094
|
]),
|
|
4094
4095
|
_: 1
|
|
@@ -4097,7 +4098,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4097
4098
|
default: d(() => [
|
|
4098
4099
|
_(n(Ce), {
|
|
4099
4100
|
modelValue: i.value,
|
|
4100
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
4101
|
+
"onUpdate:modelValue": w[1] || (w[1] = (M) => i.value = M)
|
|
4101
4102
|
}, null, 8, ["modelValue"])
|
|
4102
4103
|
]),
|
|
4103
4104
|
_: 1
|
|
@@ -4114,7 +4115,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4114
4115
|
]),
|
|
4115
4116
|
_: 1
|
|
4116
4117
|
}),
|
|
4117
|
-
_(n(
|
|
4118
|
+
_(n(I), null, {
|
|
4118
4119
|
default: d(() => [
|
|
4119
4120
|
_(n(ie), { onClick: p }, {
|
|
4120
4121
|
default: d(() => [
|
|
@@ -4128,7 +4129,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4128
4129
|
]),
|
|
4129
4130
|
_: 1
|
|
4130
4131
|
}),
|
|
4131
|
-
_(n(ie), { onClick:
|
|
4132
|
+
_(n(ie), { onClick: b }, {
|
|
4132
4133
|
default: d(() => [
|
|
4133
4134
|
R("change")
|
|
4134
4135
|
]),
|
|
@@ -4146,7 +4147,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4146
4147
|
de,
|
|
4147
4148
|
te,
|
|
4148
4149
|
Oe,
|
|
4149
|
-
|
|
4150
|
+
I,
|
|
4150
4151
|
Bt,
|
|
4151
4152
|
Se,
|
|
4152
4153
|
tt,
|
|
@@ -4156,7 +4157,7 @@ const ba = /* @__PURE__ */ P({
|
|
|
4156
4157
|
la,
|
|
4157
4158
|
ra,
|
|
4158
4159
|
ma,
|
|
4159
|
-
|
|
4160
|
+
ha,
|
|
4160
4161
|
za,
|
|
4161
4162
|
Pa,
|
|
4162
4163
|
Ra
|
|
@@ -4171,8 +4172,8 @@ export {
|
|
|
4171
4172
|
Ha as VTJ_UI_VERSION,
|
|
4172
4173
|
te as XAction,
|
|
4173
4174
|
Oe as XActionBar,
|
|
4174
|
-
|
|
4175
|
-
|
|
4175
|
+
ha as XChart,
|
|
4176
|
+
I as XContainer,
|
|
4176
4177
|
ma as XDataItem,
|
|
4177
4178
|
tt as XDialog,
|
|
4178
4179
|
la as XDialogForm,
|
|
@@ -4206,7 +4207,7 @@ export {
|
|
|
4206
4207
|
fn as headerProps,
|
|
4207
4208
|
Zo as iconProps,
|
|
4208
4209
|
Qo as iconSizeMap,
|
|
4209
|
-
|
|
4210
|
+
ba as listProps,
|
|
4210
4211
|
Ka as makeInstaller,
|
|
4211
4212
|
Vn as maskProps,
|
|
4212
4213
|
gn as panelProps,
|