@vtj/ui 0.7.31 → 0.7.33
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 +1353 -1220
- package/dist/index.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +6 -5
- package/types/adapter.d.ts +8 -0
- package/types/components/ckeditor/Ckeditor.d.ts +59 -0
- package/types/components/ckeditor/ImageUploadAdapter.d.ts +11 -0
- package/types/components/ckeditor/index.d.ts +4 -0
- package/types/components/ckeditor/loader.d.ts +7 -0
- package/types/components/ckeditor/types.d.ts +44 -0
- package/types/components/index.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/install.d.ts +2 -1
- package/types/utils/install.d.ts +5 -1
- package/types/version.d.ts +2 -2
- package/dist/index.cjs +0 -7
- package/dist/index.iife.js +0 -7
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElIcon as
|
|
3
|
-
import { ArrowRight as
|
|
4
|
-
import { useDraggable as
|
|
5
|
-
import { isEqual as
|
|
6
|
-
import { useRouter 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 D, createElementVNode as F, toDisplayString as j, Fragment as W, renderList as Z, isVNode as Kt, h as ae, shallowRef as Ie, ref as I, watch as U, toRef as Oe, createTextVNode as A, 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 Ke, 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 Mo, Sunny as Eo, MoreFilled as Po, UserFilled as Bo, HomeFilled as Vo, WarningFilled as Io, EditPen as Oo } from "@vtj/icons";
|
|
4
|
+
import { useDraggable as jo, useMouseInElement as Ro, useEventListener as je, useElementSize as Tt, useDark as Ao, useResizeObserver as Do, useVirtualList as Fo } from "@vueuse/core";
|
|
5
|
+
import { isEqual as qe, isObject as Ge, uid as Mt, arrayToMap as No, isUrl as Xo, upperFirstCamelCase as Et, toArray as Pt, get as Be, merge as Lo, set as Xe, debounce as Ko, dedupArray as Uo, numberFormat as Ho, fileToBase64 as Wo } from "@vtj/utils";
|
|
6
|
+
import { useRouter as Ze, RouterView as Yo, useRoute as Bt, 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.33
|
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
13
13
|
*/
|
|
14
|
-
const
|
|
14
|
+
const Ja = "0.7.33", qo = {
|
|
15
15
|
default: 14,
|
|
16
16
|
small: 12,
|
|
17
17
|
large: 18
|
|
18
|
-
},
|
|
18
|
+
}, Go = {
|
|
19
19
|
icon: {
|
|
20
20
|
type: [String, Object]
|
|
21
21
|
},
|
|
@@ -39,73 +39,81 @@ const Ua = "0.7.31", Jn = {
|
|
|
39
39
|
type: Number
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function Q(a) {
|
|
43
43
|
return typeof a == "string" ? a : `${a}px`;
|
|
44
44
|
}
|
|
45
|
-
function Te(a = 0,
|
|
45
|
+
function Te(a = 0, o) {
|
|
46
46
|
if (typeof a == "number")
|
|
47
47
|
return a;
|
|
48
48
|
if (/(%|vh|vw)$/i.test(a)) {
|
|
49
49
|
const t = Number.parseInt(a);
|
|
50
|
-
return Math.floor(
|
|
50
|
+
return Math.floor(o * t / 100);
|
|
51
51
|
}
|
|
52
52
|
return Number.parseInt(a);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
const e = { ...
|
|
54
|
+
function rt(a, o = {}) {
|
|
55
|
+
const e = { ...o };
|
|
56
56
|
return typeof a == "boolean" ? e : Object.assign(e, a || {});
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
const ut = Symbol("INSTALLED_KEY"), Qe = Symbol("ADAPTER_KEY");
|
|
59
|
+
function Zo() {
|
|
60
|
+
return ve(Qe, {});
|
|
61
|
+
}
|
|
62
|
+
const qa = {
|
|
63
|
+
install(a, o = {}) {
|
|
64
|
+
a.provide(Qe, o);
|
|
65
|
+
}
|
|
66
|
+
}, Ga = (a = []) => ({
|
|
67
|
+
install: (e, t = {}) => {
|
|
68
|
+
e[ut] || (e[ut] = !0, a.forEach((l) => {
|
|
69
|
+
l.name && e.component(l.name, l);
|
|
70
|
+
}), t.adapter && e.provide(Qe, t.adapter));
|
|
63
71
|
}
|
|
64
|
-
}),
|
|
72
|
+
}), Qo = ["src"], pe = /* @__PURE__ */ P({
|
|
65
73
|
name: "XIcon",
|
|
66
74
|
__name: "Icon",
|
|
67
|
-
props:
|
|
75
|
+
props: Go,
|
|
68
76
|
setup(a) {
|
|
69
|
-
const
|
|
70
|
-
if (!
|
|
77
|
+
const o = a, e = We(), t = fe(), l = b(() => {
|
|
78
|
+
if (!o.icon)
|
|
71
79
|
return null;
|
|
72
80
|
const i = t?.appContext.app;
|
|
73
|
-
return typeof
|
|
74
|
-
}), s =
|
|
81
|
+
return typeof o.icon == "object" ? re(o.icon) : i?.component(o.icon) || o.icon;
|
|
82
|
+
}), s = b(() => {
|
|
75
83
|
const i = {
|
|
76
84
|
"is-pointer": !!e.onClick
|
|
77
85
|
};
|
|
78
|
-
return !l.value &&
|
|
79
|
-
}), c =
|
|
80
|
-
"background-color":
|
|
81
|
-
"border-radius":
|
|
82
|
-
padding:
|
|
83
|
-
})), r =
|
|
84
|
-
return (i, p) => (u(), g(
|
|
85
|
-
class:
|
|
86
|
-
color:
|
|
86
|
+
return !l.value && o.icon && (i[o.icon] = !0), i;
|
|
87
|
+
}), c = b(() => ({
|
|
88
|
+
"background-color": o.background,
|
|
89
|
+
"border-radius": o.radius ? Q(o.radius) : void 0,
|
|
90
|
+
padding: o.padding ? Q(o.padding) : void 0
|
|
91
|
+
})), r = b(() => typeof o.size == "number" ? o.size : qo[o.size] ?? void 0);
|
|
92
|
+
return (i, p) => (u(), g(n(Yt), {
|
|
93
|
+
class: Y(["x-icon", s.value]),
|
|
94
|
+
color: o.color,
|
|
87
95
|
size: r.value,
|
|
88
|
-
style:
|
|
96
|
+
style: me(c.value)
|
|
89
97
|
}, {
|
|
90
98
|
default: f(() => [
|
|
91
|
-
|
|
92
|
-
l.value ? (u(), g(
|
|
93
|
-
|
|
99
|
+
$(i.$slots, "default", {}, () => [
|
|
100
|
+
l.value ? (u(), g(J(l.value), { key: 0 })) : h("", !0),
|
|
101
|
+
o.src ? (u(), z("img", {
|
|
94
102
|
key: 1,
|
|
95
|
-
src:
|
|
96
|
-
}, null, 8,
|
|
103
|
+
src: o.src
|
|
104
|
+
}, null, 8, Qo)) : h("", !0)
|
|
97
105
|
])
|
|
98
106
|
]),
|
|
99
107
|
_: 3
|
|
100
108
|
}, 8, ["class", "color", "size", "style"]));
|
|
101
109
|
}
|
|
102
|
-
}),
|
|
110
|
+
}), en = { class: "x-menu__wrapper" }, tn = {
|
|
103
111
|
key: 1,
|
|
104
112
|
class: "x-menu__title"
|
|
105
|
-
},
|
|
113
|
+
}, on = /* @__PURE__ */ F("i", null, null, -1), nn = {
|
|
106
114
|
key: 0,
|
|
107
115
|
class: "x-menu__title"
|
|
108
|
-
},
|
|
116
|
+
}, an = /* @__PURE__ */ F("i", null, null, -1), Vt = /* @__PURE__ */ P({
|
|
109
117
|
inheritAttrs: !1,
|
|
110
118
|
name: "XMenuItem",
|
|
111
119
|
__name: "MenuItem",
|
|
@@ -115,70 +123,70 @@ const rt = Symbol("INSTALLED_KEY"), Xa = (a = []) => ({
|
|
|
115
123
|
defaultIcon: {}
|
|
116
124
|
},
|
|
117
125
|
setup(a) {
|
|
118
|
-
const
|
|
126
|
+
const o = a, e = fe(), t = (c) => {
|
|
119
127
|
if (c)
|
|
120
|
-
return typeof c == "string" && (e?.appContext.app?.component(c) ||
|
|
128
|
+
return typeof c == "string" && (e?.appContext.app?.component(c) || o.defaultIcon) || c;
|
|
121
129
|
}, l = (c) => typeof c == "object" ? c : { value: c }, s = (c = []) => c.filter((r) => !r.hidden);
|
|
122
|
-
return (c, r) =>
|
|
130
|
+
return (c, r) => o.item.children ? (u(), g(n(Jt), D({
|
|
123
131
|
key: 0,
|
|
124
|
-
disabled:
|
|
125
|
-
},
|
|
126
|
-
index: String(
|
|
132
|
+
disabled: o.item.disabled
|
|
133
|
+
}, o.subMenu, {
|
|
134
|
+
index: String(o.item.id)
|
|
127
135
|
}), {
|
|
128
136
|
title: f(() => [
|
|
129
|
-
|
|
130
|
-
|
|
137
|
+
F("div", en, [
|
|
138
|
+
o.item.icon ? (u(), g(n(pe), {
|
|
131
139
|
key: 0,
|
|
132
|
-
icon: t(
|
|
140
|
+
icon: t(o.item.icon)
|
|
133
141
|
}, null, 8, ["icon"])) : h("", !0),
|
|
134
|
-
|
|
135
|
-
|
|
142
|
+
o.item.title ? (u(), z("span", tn, j(o.item.title), 1)) : h("", !0),
|
|
143
|
+
o.item.badge ? (u(), g(n(Ke), D({
|
|
136
144
|
key: 2,
|
|
137
145
|
class: "x-menu__badge"
|
|
138
|
-
}, l(
|
|
146
|
+
}, l(o.item.badge)), {
|
|
139
147
|
default: f(() => [
|
|
140
|
-
|
|
148
|
+
on
|
|
141
149
|
]),
|
|
142
150
|
_: 1
|
|
143
151
|
}, 16)) : h("", !0)
|
|
144
152
|
])
|
|
145
153
|
]),
|
|
146
154
|
default: f(() => [
|
|
147
|
-
(u(!0),
|
|
155
|
+
(u(!0), z(W, null, Z(s(o.item.children), (i) => (u(), g(n(Vt), {
|
|
148
156
|
key: i.id,
|
|
149
157
|
item: i,
|
|
150
|
-
subMenu:
|
|
151
|
-
defaultIcon:
|
|
158
|
+
subMenu: o.subMenu,
|
|
159
|
+
defaultIcon: o.defaultIcon
|
|
152
160
|
}, null, 8, ["item", "subMenu", "defaultIcon"]))), 128))
|
|
153
161
|
]),
|
|
154
162
|
_: 1
|
|
155
|
-
}, 16, ["disabled", "index"])) : (u(), g(
|
|
163
|
+
}, 16, ["disabled", "index"])) : (u(), g(n(qt), {
|
|
156
164
|
key: 1,
|
|
157
|
-
index: String(
|
|
158
|
-
disabled:
|
|
165
|
+
index: String(o.item.id),
|
|
166
|
+
disabled: o.item.disabled
|
|
159
167
|
}, {
|
|
160
168
|
title: f(() => [
|
|
161
|
-
|
|
162
|
-
|
|
169
|
+
o.item.title ? (u(), z("span", nn, j(o.item.title), 1)) : h("", !0),
|
|
170
|
+
o.item.badge ? (u(), g(n(Ke), D({
|
|
163
171
|
key: 1,
|
|
164
172
|
class: "x-menu__badge"
|
|
165
|
-
}, l(
|
|
173
|
+
}, l(o.item.badge)), {
|
|
166
174
|
default: f(() => [
|
|
167
|
-
|
|
175
|
+
an
|
|
168
176
|
]),
|
|
169
177
|
_: 1
|
|
170
178
|
}, 16)) : h("", !0)
|
|
171
179
|
]),
|
|
172
180
|
default: f(() => [
|
|
173
|
-
|
|
181
|
+
o.item.icon ? (u(), g(n(pe), {
|
|
174
182
|
key: 0,
|
|
175
|
-
icon: t(
|
|
183
|
+
icon: t(o.item.icon)
|
|
176
184
|
}, null, 8, ["icon"])) : h("", !0)
|
|
177
185
|
]),
|
|
178
186
|
_: 1
|
|
179
187
|
}, 8, ["index", "disabled"]));
|
|
180
188
|
}
|
|
181
|
-
}),
|
|
189
|
+
}), ye = /* @__PURE__ */ P({
|
|
182
190
|
inheritAttrs: !1,
|
|
183
191
|
name: "XMenu",
|
|
184
192
|
__name: "Menu",
|
|
@@ -188,16 +196,16 @@ const rt = Symbol("INSTALLED_KEY"), Xa = (a = []) => ({
|
|
|
188
196
|
defaultIcon: {}
|
|
189
197
|
},
|
|
190
198
|
emits: ["select"],
|
|
191
|
-
setup(a, { emit:
|
|
192
|
-
const e = a, t =
|
|
199
|
+
setup(a, { emit: o }) {
|
|
200
|
+
const e = a, t = o, l = b(() => e.data.filter((r) => !r.hidden)), s = (r, i) => {
|
|
193
201
|
const p = (d, m = []) => {
|
|
194
|
-
for (const
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
if (
|
|
200
|
-
return
|
|
202
|
+
for (const _ of m) {
|
|
203
|
+
if (_.id.toString() === d.toString())
|
|
204
|
+
return _;
|
|
205
|
+
if (_.children?.length) {
|
|
206
|
+
const v = p(d, _.children);
|
|
207
|
+
if (v)
|
|
208
|
+
return v;
|
|
201
209
|
}
|
|
202
210
|
}
|
|
203
211
|
};
|
|
@@ -206,9 +214,9 @@ const rt = Symbol("INSTALLED_KEY"), Xa = (a = []) => ({
|
|
|
206
214
|
const i = s(l.value, r);
|
|
207
215
|
i && t("select", i);
|
|
208
216
|
};
|
|
209
|
-
return (r, i) => (u(), g(
|
|
217
|
+
return (r, i) => (u(), g(n(Gt), D({ class: "x-menu" }, r.$attrs, { onSelect: c }), {
|
|
210
218
|
default: f(() => [
|
|
211
|
-
(u(!0),
|
|
219
|
+
(u(!0), z(W, null, Z(l.value, (p) => (u(), g(n(Vt), {
|
|
212
220
|
item: { ...p, icon: p.icon },
|
|
213
221
|
defaultIcon: e.defaultIcon,
|
|
214
222
|
subMenu: e.subMenu
|
|
@@ -217,7 +225,7 @@ const rt = Symbol("INSTALLED_KEY"), Xa = (a = []) => ({
|
|
|
217
225
|
_: 1
|
|
218
226
|
}, 16));
|
|
219
227
|
}
|
|
220
|
-
}),
|
|
228
|
+
}), It = {
|
|
221
229
|
/**
|
|
222
230
|
* 动作名称标识
|
|
223
231
|
*/
|
|
@@ -313,37 +321,37 @@ const rt = Symbol("INSTALLED_KEY"), Xa = (a = []) => ({
|
|
|
313
321
|
type: Boolean
|
|
314
322
|
}
|
|
315
323
|
};
|
|
316
|
-
function
|
|
317
|
-
return
|
|
318
|
-
const
|
|
319
|
-
if (
|
|
320
|
-
return typeof
|
|
324
|
+
function sn(a) {
|
|
325
|
+
return b(() => {
|
|
326
|
+
const o = a.tooltip;
|
|
327
|
+
if (o)
|
|
328
|
+
return typeof o == "string" ? { content: o } : o;
|
|
321
329
|
});
|
|
322
330
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
325
|
-
const
|
|
326
|
-
if (
|
|
327
|
-
return typeof
|
|
331
|
+
function ln(a) {
|
|
332
|
+
return b(() => {
|
|
333
|
+
const o = a.badge;
|
|
334
|
+
if (o)
|
|
335
|
+
return typeof o == "object" ? o : { value: o };
|
|
328
336
|
});
|
|
329
337
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
332
|
-
const { dropdown:
|
|
338
|
+
function rn(a) {
|
|
339
|
+
return b(() => {
|
|
340
|
+
const { dropdown: o, menus: e } = a;
|
|
333
341
|
if (e && e.length > 0)
|
|
334
342
|
return Object.assign(
|
|
335
343
|
{ popperClass: "x-action__menus", size: a.size },
|
|
336
|
-
|
|
344
|
+
o || {}
|
|
337
345
|
);
|
|
338
346
|
});
|
|
339
347
|
}
|
|
340
|
-
function
|
|
341
|
-
const
|
|
342
|
-
return
|
|
343
|
-
const e =
|
|
348
|
+
function un(a) {
|
|
349
|
+
const o = fe();
|
|
350
|
+
return b(() => {
|
|
351
|
+
const e = n(a);
|
|
344
352
|
if (e)
|
|
345
|
-
if (typeof e == "string" || e.setup || e.render ||
|
|
346
|
-
const t =
|
|
353
|
+
if (typeof e == "string" || e.setup || e.render || Kt(e)) {
|
|
354
|
+
const t = o?.appContext.app;
|
|
347
355
|
return {
|
|
348
356
|
icon: typeof e == "string" && t?.component(e) || e
|
|
349
357
|
};
|
|
@@ -352,28 +360,28 @@ function so(a) {
|
|
|
352
360
|
return null;
|
|
353
361
|
});
|
|
354
362
|
}
|
|
355
|
-
function
|
|
356
|
-
const
|
|
357
|
-
return
|
|
363
|
+
function xe(a) {
|
|
364
|
+
const o = un(a);
|
|
365
|
+
return o.value ? re(P({ render: () => ae(pe, o.value) })) : void 0;
|
|
358
366
|
}
|
|
359
|
-
function
|
|
360
|
-
return
|
|
361
|
-
const e =
|
|
362
|
-
return typeof e == "function" ? e(
|
|
367
|
+
function et(a, o) {
|
|
368
|
+
return b(() => {
|
|
369
|
+
const e = n(a);
|
|
370
|
+
return typeof e == "function" ? e(o) : !!e;
|
|
363
371
|
});
|
|
364
372
|
}
|
|
365
|
-
function
|
|
366
|
-
const t =
|
|
367
|
-
const i =
|
|
368
|
-
return i ? typeof i == "function" ? await i(r) : i :
|
|
369
|
-
}, c = async (r) => (l.value = !0, await s(r).then((i) => (t.value = i ||
|
|
370
|
-
return
|
|
373
|
+
function cn(a, o, e) {
|
|
374
|
+
const t = Ie(o), l = I(!1), s = async (r) => {
|
|
375
|
+
const i = n(a);
|
|
376
|
+
return i ? typeof i == "function" ? await i(r) : i : o;
|
|
377
|
+
}, c = async (r) => (l.value = !0, await s(r).then((i) => (t.value = i || o, l.value = !1, n(t))));
|
|
378
|
+
return U(
|
|
371
379
|
() => a,
|
|
372
380
|
() => {
|
|
373
381
|
c(e);
|
|
374
382
|
},
|
|
375
383
|
{ immediate: !0 }
|
|
376
|
-
), e &&
|
|
384
|
+
), e && U(e, () => {
|
|
377
385
|
c(e);
|
|
378
386
|
}), {
|
|
379
387
|
data: t,
|
|
@@ -381,12 +389,12 @@ function lo(a, n, e) {
|
|
|
381
389
|
loader: c
|
|
382
390
|
};
|
|
383
391
|
}
|
|
384
|
-
const
|
|
392
|
+
const dn = { key: 0 }, pn = /* @__PURE__ */ P({
|
|
385
393
|
__name: "Trigger",
|
|
386
|
-
props:
|
|
394
|
+
props: It,
|
|
387
395
|
emits: ["click"],
|
|
388
|
-
setup(a, { emit:
|
|
389
|
-
const e = a, t =
|
|
396
|
+
setup(a, { emit: o }) {
|
|
397
|
+
const e = a, t = o, l = xe(Oe(e, "icon")), s = et(Oe(e, "disabled")), c = b(() => ({
|
|
390
398
|
[`is-${e.mode}`]: !!e.mode,
|
|
391
399
|
[`is-${e.type}`]: !!e.type,
|
|
392
400
|
[`is-${e.size}`]: !!e.size && e.size !== "default",
|
|
@@ -397,71 +405,71 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
397
405
|
if (i.preventDefault(), !s.value)
|
|
398
406
|
return t("click"), !1;
|
|
399
407
|
};
|
|
400
|
-
return (i, p) => e.mode === "button" ? (u(), g(
|
|
408
|
+
return (i, p) => e.mode === "button" ? (u(), g(n(ie), D({
|
|
401
409
|
key: 0,
|
|
402
|
-
icon:
|
|
410
|
+
icon: n(l),
|
|
403
411
|
type: e.type,
|
|
404
412
|
size: e.size,
|
|
405
|
-
disabled:
|
|
413
|
+
disabled: n(s)
|
|
406
414
|
}, e.button, { onClick: r }), {
|
|
407
415
|
default: f(() => [
|
|
408
|
-
|
|
416
|
+
A(j(i.label), 1)
|
|
409
417
|
]),
|
|
410
418
|
_: 1
|
|
411
|
-
}, 16, ["icon", "type", "size", "disabled"])) : (u(),
|
|
419
|
+
}, 16, ["icon", "type", "size", "disabled"])) : (u(), z("div", {
|
|
412
420
|
key: 1,
|
|
413
|
-
class:
|
|
421
|
+
class: Y(["x-action__inner", c.value]),
|
|
414
422
|
onClick: r
|
|
415
423
|
}, [
|
|
416
|
-
(u(), g(
|
|
417
|
-
i.label ? (u(),
|
|
424
|
+
(u(), g(J(n(l)))),
|
|
425
|
+
i.label ? (u(), z("span", dn, j(i.label), 1)) : h("", !0)
|
|
418
426
|
], 2));
|
|
419
427
|
}
|
|
420
|
-
}), te = /* @__PURE__ */
|
|
428
|
+
}), te = /* @__PURE__ */ P({
|
|
421
429
|
name: "XAction",
|
|
422
430
|
__name: "Action",
|
|
423
|
-
props:
|
|
431
|
+
props: It,
|
|
424
432
|
emits: ["click", "command"],
|
|
425
|
-
setup(a, { emit:
|
|
426
|
-
const e = a, t =
|
|
433
|
+
setup(a, { emit: o }) {
|
|
434
|
+
const e = a, t = Ut(), l = o, s = sn(e), c = ln(e), r = rn(e), i = et(Oe(e, "disabled")), p = b(() => ({
|
|
427
435
|
[`x-action--${e.mode}`]: !!e.mode
|
|
428
436
|
})), d = () => {
|
|
429
|
-
i.value || l("click",
|
|
437
|
+
i.value || l("click", be(e));
|
|
430
438
|
}, m = (w) => {
|
|
431
439
|
if (i.value)
|
|
432
440
|
return;
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
},
|
|
436
|
-
|
|
441
|
+
const E = e.menus?.find((B) => B.command === w);
|
|
442
|
+
E && l("command", be(E));
|
|
443
|
+
}, _ = (w) => ae(Ke, c.value, () => [].concat(w)), v = (w) => ae(
|
|
444
|
+
Zt,
|
|
437
445
|
{ ...r.value, disabled: i.value, onCommand: m },
|
|
438
446
|
{
|
|
439
447
|
default: () => [w],
|
|
440
448
|
dropdown: () => [
|
|
441
449
|
ae(
|
|
442
|
-
|
|
443
|
-
() => (e.menus || []).map((
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
() => t.item ? t.item({ item:
|
|
450
|
+
Qt,
|
|
451
|
+
() => (e.menus || []).map((E, B) => ae(
|
|
452
|
+
eo,
|
|
453
|
+
E,
|
|
454
|
+
() => t.item ? t.item({ item: E, index: B }) : E.label
|
|
447
455
|
))
|
|
448
456
|
)
|
|
449
457
|
]
|
|
450
458
|
}
|
|
451
459
|
), y = (w) => ae(ht, { ...s.value, disabled: i.value }, () => [
|
|
452
460
|
w
|
|
453
|
-
]),
|
|
454
|
-
let w = ae(
|
|
455
|
-
const
|
|
456
|
-
return
|
|
461
|
+
]), C = b(() => {
|
|
462
|
+
let w = ae(re(pn), { ...e, onClick: d });
|
|
463
|
+
const E = t.default?.();
|
|
464
|
+
return E && E.length && (w = E[0]), c.value && (w = _(w)), r.value && (w = v(w)), s.value && (w = y(w)), w;
|
|
457
465
|
});
|
|
458
|
-
return (w,
|
|
459
|
-
class:
|
|
466
|
+
return (w, E) => (u(), z("div", {
|
|
467
|
+
class: Y(["x-action", p.value])
|
|
460
468
|
}, [
|
|
461
|
-
(u(), g(
|
|
469
|
+
(u(), g(J(C.value)))
|
|
462
470
|
], 2));
|
|
463
471
|
}
|
|
464
|
-
}),
|
|
472
|
+
}), fn = {
|
|
465
473
|
/**
|
|
466
474
|
* 动作项
|
|
467
475
|
*/
|
|
@@ -532,13 +540,13 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
532
540
|
button: {
|
|
533
541
|
type: Object
|
|
534
542
|
}
|
|
535
|
-
},
|
|
543
|
+
}, tt = /* @__PURE__ */ P({
|
|
536
544
|
name: "XActionBar",
|
|
537
545
|
__name: "ActionBar",
|
|
538
|
-
props:
|
|
546
|
+
props: fn,
|
|
539
547
|
emits: ["click", "command"],
|
|
540
|
-
setup(a, { emit:
|
|
541
|
-
const e = a, t =
|
|
548
|
+
setup(a, { emit: o }) {
|
|
549
|
+
const e = a, t = o, l = b(() => (e.items || []).map((r) => r === "|" ? r : {
|
|
542
550
|
...r,
|
|
543
551
|
badge: r.badge ? {
|
|
544
552
|
...e.badge,
|
|
@@ -553,17 +561,17 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
553
561
|
}, c = (r, i) => {
|
|
554
562
|
t("command", r, i);
|
|
555
563
|
};
|
|
556
|
-
return (r, i) => (u(), g(
|
|
564
|
+
return (r, i) => (u(), g(n(V), {
|
|
557
565
|
class: "x-action-bar",
|
|
558
566
|
align: "center"
|
|
559
567
|
}, {
|
|
560
568
|
default: f(() => [
|
|
561
|
-
(u(!0),
|
|
562
|
-
p === "|" ? (u(), g(
|
|
569
|
+
(u(!0), z(W, null, Z(l.value, (p) => (u(), z(W, null, [
|
|
570
|
+
p === "|" ? (u(), g(n(se), {
|
|
563
571
|
key: 0,
|
|
564
572
|
direction: "vertical",
|
|
565
573
|
class: "x-action-bar__divider"
|
|
566
|
-
})) : (u(), g(
|
|
574
|
+
})) : (u(), g(n(te), D({
|
|
567
575
|
key: 1,
|
|
568
576
|
mode: e.mode,
|
|
569
577
|
size: e.size,
|
|
@@ -572,7 +580,7 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
572
580
|
background: e.background,
|
|
573
581
|
button: e.button,
|
|
574
582
|
dropdown: e.dropdown,
|
|
575
|
-
disabled:
|
|
583
|
+
disabled: n(et)(e.disabled, p).value
|
|
576
584
|
}, p, {
|
|
577
585
|
onClick: s,
|
|
578
586
|
onCommand: (d) => c(p, d)
|
|
@@ -582,7 +590,7 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
582
590
|
_: 1
|
|
583
591
|
}));
|
|
584
592
|
}
|
|
585
|
-
}),
|
|
593
|
+
}), mn = {
|
|
586
594
|
/**
|
|
587
595
|
* 组件渲染html标签
|
|
588
596
|
*/
|
|
@@ -698,51 +706,51 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
698
706
|
autoPointer: {
|
|
699
707
|
type: Boolean
|
|
700
708
|
}
|
|
701
|
-
},
|
|
709
|
+
}, V = /* @__PURE__ */ P({
|
|
702
710
|
name: "XContainer",
|
|
703
711
|
__name: "Container",
|
|
704
|
-
props:
|
|
712
|
+
props: mn,
|
|
705
713
|
setup(a) {
|
|
706
|
-
const
|
|
714
|
+
const o = a, e = We(), t = fe(), l = b(() => {
|
|
707
715
|
const r = t?.parent;
|
|
708
716
|
if (!r)
|
|
709
717
|
return !1;
|
|
710
718
|
const i = r.proxy;
|
|
711
719
|
return i.$options.name === "XContainer" || !!i.flex;
|
|
712
|
-
}), s =
|
|
713
|
-
"is-fit":
|
|
714
|
-
"is-flex":
|
|
715
|
-
"is-inline-flex":
|
|
716
|
-
[`is-direction-${
|
|
717
|
-
[`is-wrap-${
|
|
718
|
-
[`is-justify-${
|
|
719
|
-
[`is-align-${
|
|
720
|
-
[`is-align-content-${
|
|
721
|
-
"is-grow":
|
|
722
|
-
"is-shrink":
|
|
723
|
-
[`is-align-self-${
|
|
724
|
-
[`is-overflow-${
|
|
725
|
-
"is-padding": !!
|
|
726
|
-
"is-pointer":
|
|
727
|
-
"is-gap": !!
|
|
728
|
-
})), c =
|
|
729
|
-
const { width: r, height: i, fit: p } =
|
|
720
|
+
}), s = b(() => ({
|
|
721
|
+
"is-fit": o.fit,
|
|
722
|
+
"is-flex": o.flex && !o.inline,
|
|
723
|
+
"is-inline-flex": o.flex && o.inline,
|
|
724
|
+
[`is-direction-${o.direction}`]: o.flex && o.direction !== "row",
|
|
725
|
+
[`is-wrap-${o.wrap}`]: o.flex && o.wrap !== "nowrap",
|
|
726
|
+
[`is-justify-${o.justify}`]: o.flex && o.justify !== "flex-start",
|
|
727
|
+
[`is-align-${o.align}`]: o.flex && o.align !== "flex-start",
|
|
728
|
+
[`is-align-content-${o.alignContent}`]: o.flex && o.alignContent !== "stretch",
|
|
729
|
+
"is-grow": o.grow ?? l.value,
|
|
730
|
+
"is-shrink": o.shrink,
|
|
731
|
+
[`is-align-self-${o.alignSelf}`]: l.value && o.alignSelf !== "auto",
|
|
732
|
+
[`is-overflow-${o.overflow}`]: !!o.overflow,
|
|
733
|
+
"is-padding": !!o.padding,
|
|
734
|
+
"is-pointer": o.autoPointer && !!e.onClick,
|
|
735
|
+
"is-gap": !!o.gap
|
|
736
|
+
})), c = b(() => {
|
|
737
|
+
const { width: r, height: i, fit: p } = o;
|
|
730
738
|
return p ? null : {
|
|
731
|
-
width: r ?
|
|
732
|
-
height: i ?
|
|
739
|
+
width: r ? Q(r) : void 0,
|
|
740
|
+
height: i ? Q(i) : void 0
|
|
733
741
|
};
|
|
734
742
|
});
|
|
735
|
-
return (r, i) => (u(), g(
|
|
736
|
-
class:
|
|
737
|
-
style:
|
|
743
|
+
return (r, i) => (u(), g(J(o.tag), {
|
|
744
|
+
class: Y(["x-container", s.value]),
|
|
745
|
+
style: me(c.value)
|
|
738
746
|
}, {
|
|
739
747
|
default: f(() => [
|
|
740
|
-
|
|
748
|
+
$(r.$slots, "default")
|
|
741
749
|
]),
|
|
742
750
|
_: 3
|
|
743
751
|
}, 8, ["class", "style"]));
|
|
744
752
|
}
|
|
745
|
-
}),
|
|
753
|
+
}), gn = {
|
|
746
754
|
size: {
|
|
747
755
|
type: String,
|
|
748
756
|
default: "default"
|
|
@@ -763,69 +771,69 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
763
771
|
more: {
|
|
764
772
|
type: Boolean
|
|
765
773
|
}
|
|
766
|
-
},
|
|
774
|
+
}, yn = { class: "x-header__content" }, vn = {
|
|
767
775
|
key: 0,
|
|
768
776
|
class: "x-header__actions"
|
|
769
|
-
},
|
|
777
|
+
}, bn = /* @__PURE__ */ P({
|
|
770
778
|
name: "XHeader",
|
|
771
779
|
inheritAttrs: !1,
|
|
772
780
|
__name: "Header",
|
|
773
|
-
props:
|
|
781
|
+
props: gn,
|
|
774
782
|
setup(a) {
|
|
775
|
-
const
|
|
776
|
-
[`is-size-${
|
|
777
|
-
"is-border":
|
|
783
|
+
const o = a, e = xe(Oe(o, "icon")), t = We(), l = b(() => ({
|
|
784
|
+
[`is-size-${o.size}`]: !!o.size && o.size !== "default",
|
|
785
|
+
"is-border": o.border,
|
|
778
786
|
"is-pointer": !!t.onClick
|
|
779
787
|
}));
|
|
780
|
-
return (s, c) => (u(), g(
|
|
781
|
-
class:
|
|
788
|
+
return (s, c) => (u(), g(n(V), {
|
|
789
|
+
class: Y(["x-header", l.value]),
|
|
782
790
|
justify: "space-between",
|
|
783
791
|
align: "center"
|
|
784
792
|
}, {
|
|
785
793
|
default: f(() => [
|
|
786
|
-
k(
|
|
794
|
+
k(n(V), {
|
|
787
795
|
align: "center",
|
|
788
|
-
class:
|
|
796
|
+
class: Y(["x-header__wrapper", l.value]),
|
|
789
797
|
grow: "",
|
|
790
|
-
onClick:
|
|
798
|
+
onClick: n(t).onClick
|
|
791
799
|
}, {
|
|
792
800
|
default: f(() => [
|
|
793
|
-
|
|
801
|
+
n(e) ? (u(), g(J(n(e)), {
|
|
794
802
|
key: 0,
|
|
795
803
|
class: "x-header__icon",
|
|
796
|
-
onClick:
|
|
804
|
+
onClick: n(t).onClickIcon || n(t).onClick
|
|
797
805
|
}, null, 8, ["onClick"])) : h("", !0),
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
806
|
+
F("span", yn, [
|
|
807
|
+
$(s.$slots, "default", {}, () => [
|
|
808
|
+
A(j(o.content), 1)
|
|
801
809
|
])
|
|
802
810
|
]),
|
|
803
|
-
|
|
811
|
+
o.more ? (u(), g(n(pe), {
|
|
804
812
|
key: 1,
|
|
805
813
|
class: "x-header__more",
|
|
806
|
-
icon:
|
|
814
|
+
icon: n(ho)
|
|
807
815
|
}, null, 8, ["icon"])) : h("", !0),
|
|
808
|
-
|
|
816
|
+
o.subtitle || s.$slots.subtitle ? (u(), z("span", {
|
|
809
817
|
key: 2,
|
|
810
818
|
class: "x-header__subtitle",
|
|
811
819
|
onClick: c[0] || (c[0] = //@ts-ignore
|
|
812
|
-
(...r) =>
|
|
820
|
+
(...r) => n(t).onClick && n(t).onClick(...r))
|
|
813
821
|
}, [
|
|
814
|
-
|
|
815
|
-
|
|
822
|
+
$(s.$slots, "subtitle", {}, () => [
|
|
823
|
+
A(j(o.subtitle), 1)
|
|
816
824
|
])
|
|
817
825
|
])) : h("", !0)
|
|
818
826
|
]),
|
|
819
827
|
_: 3
|
|
820
828
|
}, 8, ["class", "onClick"]),
|
|
821
|
-
s.$slots.actions ? (u(),
|
|
822
|
-
|
|
829
|
+
s.$slots.actions ? (u(), z("div", vn, [
|
|
830
|
+
$(s.$slots, "actions")
|
|
823
831
|
])) : h("", !0)
|
|
824
832
|
]),
|
|
825
833
|
_: 3
|
|
826
834
|
}, 8, ["class"]));
|
|
827
835
|
}
|
|
828
|
-
}),
|
|
836
|
+
}), hn = {
|
|
829
837
|
/**
|
|
830
838
|
* 宽高自适应
|
|
831
839
|
*/
|
|
@@ -889,48 +897,48 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
889
897
|
footer: {
|
|
890
898
|
type: Object
|
|
891
899
|
}
|
|
892
|
-
}, Ve = /* @__PURE__ */
|
|
900
|
+
}, Ve = /* @__PURE__ */ P({
|
|
893
901
|
name: "XPanel",
|
|
894
902
|
__name: "Panel",
|
|
895
|
-
props:
|
|
896
|
-
setup(a, { expose:
|
|
897
|
-
const e = a, t =
|
|
903
|
+
props: hn,
|
|
904
|
+
setup(a, { expose: o }) {
|
|
905
|
+
const e = a, t = I(), l = b(() => ({
|
|
898
906
|
"x-panel--card": !!e.card,
|
|
899
907
|
"x-panel--default": !e.card,
|
|
900
908
|
[`is-${e.size}`]: !!e.size && e.size !== "default",
|
|
901
909
|
"is-border": !!e.border,
|
|
902
910
|
"is-radius": !!e.radius,
|
|
903
911
|
[`is-shadow-${e.shadow}`]: !!e.shadow && e.shadow !== "none"
|
|
904
|
-
})), s =
|
|
912
|
+
})), s = b(() => e.header === null ? null : typeof e.header == "string" ? {
|
|
905
913
|
content: e.header,
|
|
906
914
|
size: e.size
|
|
907
915
|
} : {
|
|
908
916
|
...e.header,
|
|
909
917
|
size: e.size
|
|
910
|
-
}), c =
|
|
911
|
-
return
|
|
918
|
+
}), c = b(() => e.fit || e.height ? "auto" : void 0);
|
|
919
|
+
return o({
|
|
912
920
|
bodyRef: t
|
|
913
|
-
}), (r, i) => (u(), g(
|
|
914
|
-
class:
|
|
921
|
+
}), (r, i) => (u(), g(n(V), {
|
|
922
|
+
class: Y(["x-panel", l.value]),
|
|
915
923
|
direction: "column",
|
|
916
924
|
fit: e.fit,
|
|
917
925
|
width: e.width,
|
|
918
926
|
height: e.height
|
|
919
927
|
}, {
|
|
920
928
|
default: f(() => [
|
|
921
|
-
s.value ? (u(), g(
|
|
929
|
+
s.value ? (u(), g(n(V), {
|
|
922
930
|
key: 0,
|
|
923
931
|
flex: !1,
|
|
924
932
|
class: "x-panel__header"
|
|
925
933
|
}, {
|
|
926
934
|
default: f(() => [
|
|
927
|
-
|
|
928
|
-
k(
|
|
935
|
+
$(r.$slots, "header", {}, () => [
|
|
936
|
+
k(n(bn), le(ke(s.value)), {
|
|
929
937
|
default: f(() => [
|
|
930
|
-
|
|
938
|
+
$(r.$slots, "title")
|
|
931
939
|
]),
|
|
932
940
|
actions: f(() => [
|
|
933
|
-
|
|
941
|
+
$(r.$slots, "actions")
|
|
934
942
|
]),
|
|
935
943
|
_: 3
|
|
936
944
|
}, 16)
|
|
@@ -938,7 +946,7 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
938
946
|
]),
|
|
939
947
|
_: 3
|
|
940
948
|
})) : h("", !0),
|
|
941
|
-
k(
|
|
949
|
+
k(n(V), D({
|
|
942
950
|
ref_key: "bodyRef",
|
|
943
951
|
ref: t,
|
|
944
952
|
flex: !1,
|
|
@@ -948,18 +956,18 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
948
956
|
class: "x-panel__body"
|
|
949
957
|
}, e.body), {
|
|
950
958
|
default: f(() => [
|
|
951
|
-
|
|
959
|
+
$(r.$slots, "default")
|
|
952
960
|
]),
|
|
953
961
|
_: 3
|
|
954
962
|
}, 16, ["overflow"]),
|
|
955
|
-
r.$slots.footer ? (u(), g(
|
|
963
|
+
r.$slots.footer ? (u(), g(n(V), D({
|
|
956
964
|
key: 1,
|
|
957
965
|
flex: !1,
|
|
958
966
|
padding: "",
|
|
959
967
|
class: "x-panel__footer"
|
|
960
968
|
}, e.footer), {
|
|
961
969
|
default: f(() => [
|
|
962
|
-
|
|
970
|
+
$(r.$slots, "footer")
|
|
963
971
|
]),
|
|
964
972
|
_: 3
|
|
965
973
|
}, 16)) : h("", !0)
|
|
@@ -967,56 +975,56 @@ const io = { key: 0 }, ro = /* @__PURE__ */ V({
|
|
|
967
975
|
_: 3
|
|
968
976
|
}, 8, ["class", "fit", "width", "height"]));
|
|
969
977
|
}
|
|
970
|
-
}),
|
|
971
|
-
class
|
|
972
|
-
constructor(
|
|
973
|
-
this.el =
|
|
978
|
+
}), ct = "user-select-none";
|
|
979
|
+
class dt {
|
|
980
|
+
constructor(o, e = {}) {
|
|
981
|
+
this.el = o, this.options = e, this.scope = mt(), this.scope.run(() => {
|
|
974
982
|
this.init();
|
|
975
983
|
});
|
|
976
984
|
}
|
|
977
985
|
scope;
|
|
978
986
|
dragging = !1;
|
|
979
987
|
getHandle() {
|
|
980
|
-
const { selector:
|
|
981
|
-
return
|
|
988
|
+
const { selector: o, handle: e } = this.options;
|
|
989
|
+
return o ? this.el.querySelector(o) : e;
|
|
982
990
|
}
|
|
983
991
|
getTarget() {
|
|
984
|
-
const { target:
|
|
985
|
-
return typeof
|
|
992
|
+
const { target: o = "body" } = this.options;
|
|
993
|
+
return typeof o == "string" ? document.querySelector(o) : n(o) || document.body;
|
|
986
994
|
}
|
|
987
995
|
init() {
|
|
988
|
-
const { el:
|
|
996
|
+
const { el: o, options: e } = this, { disabled: t, delay: l = 150, onStart: s, onEnd: c } = e;
|
|
989
997
|
if (t)
|
|
990
998
|
return;
|
|
991
999
|
let r = null;
|
|
992
1000
|
const i = this.getHandle(), p = this.getTarget();
|
|
993
|
-
let d =
|
|
994
|
-
const { x:
|
|
1001
|
+
let d = o.getBoundingClientRect(), m = null;
|
|
1002
|
+
const { x: _, y: v } = jo(o, {
|
|
995
1003
|
initialValue: { x: d.x, y: d.y },
|
|
996
1004
|
...e,
|
|
997
1005
|
handle: i,
|
|
998
|
-
onStart: (y,
|
|
999
|
-
document.body.classList.add(
|
|
1000
|
-
this.dragging = !0, d =
|
|
1006
|
+
onStart: (y, C) => {
|
|
1007
|
+
document.body.classList.add(ct), clearTimeout(r), r = setTimeout(() => {
|
|
1008
|
+
this.dragging = !0, d = o.getBoundingClientRect(), m = p?.getBoundingClientRect(), s && s(y, C);
|
|
1001
1009
|
}, l);
|
|
1002
1010
|
},
|
|
1003
|
-
onEnd: (y,
|
|
1004
|
-
if (clearTimeout(r), document.body.classList.remove(
|
|
1011
|
+
onEnd: (y, C) => {
|
|
1012
|
+
if (clearTimeout(r), document.body.classList.remove(ct), this.dragging && m) {
|
|
1005
1013
|
this.dragging = !1;
|
|
1006
|
-
const { x: w, y:
|
|
1007
|
-
c && c(
|
|
1014
|
+
const { x: w, y: E } = y, B = this.getPosition(m, d, w, E);
|
|
1015
|
+
c && c(B, C), m = null;
|
|
1008
1016
|
}
|
|
1009
1017
|
}
|
|
1010
1018
|
});
|
|
1011
|
-
|
|
1019
|
+
U([_, v], () => {
|
|
1012
1020
|
if (this.dragging && m) {
|
|
1013
|
-
const y = this.getPosition(m, d,
|
|
1014
|
-
|
|
1021
|
+
const y = this.getPosition(m, d, _.value, v.value);
|
|
1022
|
+
o.style.left = `${y.x}px`, o.style.top = `${y.y}px`;
|
|
1015
1023
|
}
|
|
1016
1024
|
});
|
|
1017
1025
|
}
|
|
1018
|
-
getPosition(
|
|
1019
|
-
const { edge: s = 50 } = this.options, c = -e.width + s, r =
|
|
1026
|
+
getPosition(o, e, t, l) {
|
|
1027
|
+
const { edge: s = 50 } = this.options, c = -e.width + s, r = o.width - s, i = 0, p = o.height - s, d = Math.min(r, Math.max(t, c)), m = Math.min(p, Math.max(l, i));
|
|
1020
1028
|
return {
|
|
1021
1029
|
x: d,
|
|
1022
1030
|
y: m
|
|
@@ -1026,117 +1034,117 @@ class ct {
|
|
|
1026
1034
|
this.scope.stop();
|
|
1027
1035
|
}
|
|
1028
1036
|
}
|
|
1029
|
-
const
|
|
1030
|
-
mounted(a,
|
|
1031
|
-
const e =
|
|
1037
|
+
const _n = {
|
|
1038
|
+
mounted(a, o) {
|
|
1039
|
+
const e = o.value || {}, t = new dt(a, e);
|
|
1032
1040
|
a.__draggable__ = t;
|
|
1033
1041
|
},
|
|
1034
|
-
updated(a,
|
|
1035
|
-
const e =
|
|
1042
|
+
updated(a, o) {
|
|
1043
|
+
const e = o.value || {};
|
|
1036
1044
|
let t = a.__draggable__;
|
|
1037
|
-
t && !
|
|
1045
|
+
t && !qe(t.options, e) && (t.destory(), a.__draggable__ = new dt(a, e));
|
|
1038
1046
|
},
|
|
1039
1047
|
unmounted(a) {
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1048
|
+
const o = a.__draggable__;
|
|
1049
|
+
o && (o.destory(), a.__draggable__ = null);
|
|
1042
1050
|
}
|
|
1043
|
-
},
|
|
1044
|
-
class
|
|
1045
|
-
constructor(
|
|
1046
|
-
this.el =
|
|
1051
|
+
}, Le = "user-select-none";
|
|
1052
|
+
class pt {
|
|
1053
|
+
constructor(o, e = {}) {
|
|
1054
|
+
this.el = o, this.options = e, this.scope = mt(), this.scope.run(() => {
|
|
1047
1055
|
this.init();
|
|
1048
1056
|
});
|
|
1049
1057
|
}
|
|
1050
1058
|
scope;
|
|
1051
|
-
resizing =
|
|
1052
|
-
direction =
|
|
1059
|
+
resizing = I(!1);
|
|
1060
|
+
direction = I("");
|
|
1053
1061
|
MIE = null;
|
|
1054
1062
|
cleanMousedown;
|
|
1055
1063
|
cleanMouseup;
|
|
1056
1064
|
init() {
|
|
1057
|
-
const { el:
|
|
1065
|
+
const { el: o, options: e } = this, { disabled: t, onStart: l, onEnd: s } = e;
|
|
1058
1066
|
if (t)
|
|
1059
1067
|
return;
|
|
1060
|
-
this.MIE =
|
|
1061
|
-
this.direction?.value && this.MIE && (this.resizing.value = !0,
|
|
1062
|
-
}), this.cleanMouseup =
|
|
1063
|
-
this.resizing.value && this.direction?.value && this.MIE && (
|
|
1068
|
+
this.MIE = Ro(o), this.cleanMousedown = je(document, "mousedown", () => {
|
|
1069
|
+
this.direction?.value && this.MIE && (this.resizing.value = !0, o.classList.add("is-resizing", `is-${this.direction.value}-resizing`), l && l(this.direction.value, this.MIE));
|
|
1070
|
+
}), this.cleanMouseup = je(document, "mouseup", () => {
|
|
1071
|
+
this.resizing.value && this.direction?.value && this.MIE && (o.classList.remove(
|
|
1064
1072
|
"is-resizing",
|
|
1065
1073
|
`is-${this.direction.value}-resizing`
|
|
1066
1074
|
), s && s(this.direction.value, this.MIE)), this.resizing.value = !1;
|
|
1067
|
-
}),
|
|
1075
|
+
}), U(this.direction, (i) => {
|
|
1068
1076
|
const p = document.body;
|
|
1069
|
-
p.style.cursor = i ? `${i}-resize` : "", i ? p.classList.add(
|
|
1077
|
+
p.style.cursor = i ? `${i}-resize` : "", i ? p.classList.add(Le) : p.classList.remove(Le);
|
|
1070
1078
|
});
|
|
1071
1079
|
const { x: c, y: r } = this.MIE;
|
|
1072
|
-
|
|
1080
|
+
U([c, r], () => {
|
|
1073
1081
|
this.resizing.value ? this.resize() : this.direction.value = this.getDirection();
|
|
1074
1082
|
});
|
|
1075
1083
|
}
|
|
1076
1084
|
resize() {
|
|
1077
|
-
const { MIE:
|
|
1078
|
-
if (!
|
|
1085
|
+
const { MIE: o, direction: e, resizing: t, options: l, el: s } = this, c = e?.value || "";
|
|
1086
|
+
if (!o || !t.value || !c)
|
|
1079
1087
|
return;
|
|
1080
|
-
const { x: r, y: i, elementX: p, elementY: d, elementHeight: m, elementWidth:
|
|
1088
|
+
const { x: r, y: i, elementX: p, elementY: d, elementHeight: m, elementWidth: _ } = o, { onResizing: v } = l, {
|
|
1081
1089
|
minWidth: y = 0,
|
|
1082
|
-
minHeight:
|
|
1090
|
+
minHeight: C = 0,
|
|
1083
1091
|
maxWidth: w = 99999,
|
|
1084
|
-
maxHeight:
|
|
1092
|
+
maxHeight: E = 99999
|
|
1085
1093
|
} = l;
|
|
1086
1094
|
if (c.includes("e")) {
|
|
1087
|
-
const
|
|
1088
|
-
s.style.width = `${
|
|
1095
|
+
const B = Math.min(Math.max(p.value, y), w);
|
|
1096
|
+
s.style.width = `${B}px`;
|
|
1089
1097
|
}
|
|
1090
1098
|
if (c.includes("s")) {
|
|
1091
|
-
const
|
|
1092
|
-
s.style.height = `${
|
|
1099
|
+
const B = Math.min(Math.max(d.value, C), E);
|
|
1100
|
+
s.style.height = `${B}px`;
|
|
1093
1101
|
}
|
|
1094
1102
|
if (c.includes("w")) {
|
|
1095
|
-
const
|
|
1096
|
-
Math.max(
|
|
1103
|
+
const B = Math.min(
|
|
1104
|
+
Math.max(_.value - p.value, y),
|
|
1097
1105
|
w
|
|
1098
1106
|
);
|
|
1099
|
-
s.style.width = `${
|
|
1107
|
+
s.style.width = `${B}px`, s.style.left = `${r.value}px`;
|
|
1100
1108
|
}
|
|
1101
1109
|
if (c.includes("n")) {
|
|
1102
|
-
const
|
|
1103
|
-
Math.max(m.value - d.value,
|
|
1104
|
-
|
|
1110
|
+
const B = Math.min(
|
|
1111
|
+
Math.max(m.value - d.value, C),
|
|
1112
|
+
E
|
|
1105
1113
|
);
|
|
1106
|
-
this.el.style.height = `${
|
|
1114
|
+
this.el.style.height = `${B}px`, this.el.style.top = `${i.value}px`;
|
|
1107
1115
|
}
|
|
1108
|
-
|
|
1116
|
+
v && v(c, o);
|
|
1109
1117
|
}
|
|
1110
1118
|
getDirection() {
|
|
1111
1119
|
if (!this.MIE)
|
|
1112
1120
|
return "";
|
|
1113
|
-
const { elementX:
|
|
1121
|
+
const { elementX: o, elementY: e, elementHeight: t, elementWidth: l, isOutside: s } = this.MIE;
|
|
1114
1122
|
if (s.value)
|
|
1115
1123
|
return "";
|
|
1116
1124
|
const { dirs: c = ["n", "s", "w", "e"], edge: r = 5 } = this.options;
|
|
1117
1125
|
let i = "";
|
|
1118
|
-
return c.includes("n") && e.value <= r ? i += "n" : c.includes("s") && e.value > t.value - r && (i += "s"), c.includes("w") &&
|
|
1126
|
+
return c.includes("n") && e.value <= r ? i += "n" : c.includes("s") && e.value > t.value - r && (i += "s"), c.includes("w") && o.value <= r ? i += "w" : c.includes("e") && o.value > l.value - r && (i += "e"), i;
|
|
1119
1127
|
}
|
|
1120
1128
|
destory() {
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1129
|
+
const o = document.body;
|
|
1130
|
+
o.style.cursor = "", o.classList.remove(Le), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
|
|
1123
1131
|
}
|
|
1124
1132
|
}
|
|
1125
|
-
const
|
|
1126
|
-
mounted(a,
|
|
1127
|
-
const e =
|
|
1133
|
+
const Ot = {
|
|
1134
|
+
mounted(a, o) {
|
|
1135
|
+
const e = o.value || {}, t = new pt(a, e);
|
|
1128
1136
|
a.__resizable__ = t;
|
|
1129
1137
|
},
|
|
1130
|
-
updated(a,
|
|
1131
|
-
const e =
|
|
1138
|
+
updated(a, o) {
|
|
1139
|
+
const e = o.value || {};
|
|
1132
1140
|
let t = a.__resizable__;
|
|
1133
|
-
t && !
|
|
1141
|
+
t && !qe(t.options, e) && (t.destory(), a.__resizable__ = new pt(a, e));
|
|
1134
1142
|
},
|
|
1135
1143
|
unmounted(a) {
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1144
|
+
const o = a.__resizable__;
|
|
1145
|
+
o && (o.destory(), a.__resizable__ = null);
|
|
1138
1146
|
}
|
|
1139
|
-
},
|
|
1147
|
+
}, kn = {
|
|
1140
1148
|
modelValue: {
|
|
1141
1149
|
type: Boolean,
|
|
1142
1150
|
default: !0
|
|
@@ -1221,9 +1229,9 @@ const Pt = {
|
|
|
1221
1229
|
type: Boolean
|
|
1222
1230
|
}
|
|
1223
1231
|
};
|
|
1224
|
-
let
|
|
1225
|
-
function
|
|
1226
|
-
const { width: e, height: t } =
|
|
1232
|
+
let _e = 1e3;
|
|
1233
|
+
function wn(a, o) {
|
|
1234
|
+
const { width: e, height: t } = Tt(o), l = Re({
|
|
1227
1235
|
mode: a.mode || "normal",
|
|
1228
1236
|
wrapperWidth: 0,
|
|
1229
1237
|
wrapperHeight: 0,
|
|
@@ -1231,24 +1239,24 @@ function bo(a, n) {
|
|
|
1231
1239
|
height: 0,
|
|
1232
1240
|
top: 0,
|
|
1233
1241
|
left: 0,
|
|
1234
|
-
zIndex: ++
|
|
1242
|
+
zIndex: ++_e,
|
|
1235
1243
|
dragging: !1,
|
|
1236
1244
|
resizing: !1
|
|
1237
1245
|
});
|
|
1238
|
-
return
|
|
1246
|
+
return U([e, t], ([s, c]) => {
|
|
1239
1247
|
l.wrapperWidth = s, l.wrapperHeight = c, l.width = Te(a.width, s), l.height = Te(a.height, c), l.left = a.left ? Te(a.left, s) - l.width / 2 : Math.max(Math.floor((s - l.width) / 2), 0), l.top = a.top ? Te(a.top, c) : Math.max(Math.floor((c - l.height) / 2), 0);
|
|
1240
|
-
}),
|
|
1241
|
-
|
|
1248
|
+
}), U(l, (s) => {
|
|
1249
|
+
_e = Math.max(s.zIndex, _e);
|
|
1242
1250
|
}), {
|
|
1243
1251
|
state: l,
|
|
1244
|
-
normal:
|
|
1245
|
-
maximized:
|
|
1246
|
-
minimized:
|
|
1252
|
+
normal: b(() => l.mode === "normal"),
|
|
1253
|
+
maximized: b(() => l.mode === "maximized"),
|
|
1254
|
+
minimized: b(() => l.mode === "minimized")
|
|
1247
1255
|
};
|
|
1248
1256
|
}
|
|
1249
|
-
function
|
|
1250
|
-
const e =
|
|
1251
|
-
const { width: c, height: r, top: i, left: p, zIndex: d } =
|
|
1257
|
+
function xn(a, o) {
|
|
1258
|
+
const e = b(() => {
|
|
1259
|
+
const { width: c, height: r, top: i, left: p, zIndex: d } = o;
|
|
1252
1260
|
return {
|
|
1253
1261
|
width: `${c}px`,
|
|
1254
1262
|
height: `${r}px`,
|
|
@@ -1256,17 +1264,17 @@ function _o(a, n) {
|
|
|
1256
1264
|
left: `${p}px`,
|
|
1257
1265
|
zIndex: d
|
|
1258
1266
|
};
|
|
1259
|
-
}), t =
|
|
1260
|
-
[`is-${
|
|
1267
|
+
}), t = b(() => ({
|
|
1268
|
+
[`is-${o.mode}`]: !!o.mode,
|
|
1261
1269
|
"is-draggable": !!a.draggable,
|
|
1262
1270
|
"is-resizable": !!a.resizable,
|
|
1263
1271
|
"is-primary": !!a.primary
|
|
1264
|
-
})), l =
|
|
1265
|
-
[`is-${
|
|
1266
|
-
"is-dragging":
|
|
1267
|
-
"is-resizing":
|
|
1268
|
-
})), s =
|
|
1269
|
-
zIndex:
|
|
1272
|
+
})), l = b(() => ({
|
|
1273
|
+
[`is-${o.mode}`]: !!o.mode,
|
|
1274
|
+
"is-dragging": o.dragging,
|
|
1275
|
+
"is-resizing": o.resizing
|
|
1276
|
+
})), s = b(() => ({
|
|
1277
|
+
zIndex: o.zIndex
|
|
1270
1278
|
}));
|
|
1271
1279
|
return {
|
|
1272
1280
|
styles: e,
|
|
@@ -1275,9 +1283,9 @@ function _o(a, n) {
|
|
|
1275
1283
|
modalStyle: s
|
|
1276
1284
|
};
|
|
1277
1285
|
}
|
|
1278
|
-
function
|
|
1286
|
+
function Cn(a, o, e) {
|
|
1279
1287
|
const t = (d) => {
|
|
1280
|
-
|
|
1288
|
+
o.mode = d, ["maximized", "minimized", "normal"].includes(d) && e(d), e("modeChange", d);
|
|
1281
1289
|
}, l = async () => {
|
|
1282
1290
|
(!a.beforeClose || await a.beforeClose()) && (e("update:modelValue", !1), e("close"), e("destroy"));
|
|
1283
1291
|
};
|
|
@@ -1290,7 +1298,7 @@ function ko(a, n, e) {
|
|
|
1290
1298
|
const m = d.target.nodeName || "";
|
|
1291
1299
|
["INPUT", "TEXTAREA", "RADIO", "CHECKBOX"].includes(
|
|
1292
1300
|
m.toUpperCase()
|
|
1293
|
-
) || (
|
|
1301
|
+
) || (o.zIndex = Math.max(o.zIndex, ++_e));
|
|
1294
1302
|
},
|
|
1295
1303
|
submit: () => e("submit"),
|
|
1296
1304
|
cancel: () => {
|
|
@@ -1298,8 +1306,8 @@ function ko(a, n, e) {
|
|
|
1298
1306
|
}
|
|
1299
1307
|
};
|
|
1300
1308
|
}
|
|
1301
|
-
function
|
|
1302
|
-
return
|
|
1309
|
+
function $n(a, o, e, t) {
|
|
1310
|
+
return b(() => {
|
|
1303
1311
|
const l = typeof a.draggable == "boolean" ? !a.draggable : !!a.draggable?.disabled;
|
|
1304
1312
|
return {
|
|
1305
1313
|
...Ge(a.draggable) ? a.draggable : {},
|
|
@@ -1307,22 +1315,22 @@ function wo(a, n, e, t) {
|
|
|
1307
1315
|
target: t,
|
|
1308
1316
|
selector: ".x-panel__header",
|
|
1309
1317
|
onStart(s) {
|
|
1310
|
-
|
|
1318
|
+
o.dragging = !0, o.zIndex = Math.max(o.zIndex, ++_e), e("dragStart", s);
|
|
1311
1319
|
},
|
|
1312
1320
|
onMove(s) {
|
|
1313
1321
|
e("dragging", s);
|
|
1314
1322
|
},
|
|
1315
1323
|
onEnd(s) {
|
|
1316
|
-
if (
|
|
1324
|
+
if (o.mode === "maximized")
|
|
1317
1325
|
return;
|
|
1318
1326
|
const { x: c, y: r } = s;
|
|
1319
|
-
|
|
1327
|
+
o.left = c, o.top = r, o.dragging = !1, e("dragEnd", s);
|
|
1320
1328
|
}
|
|
1321
1329
|
};
|
|
1322
1330
|
});
|
|
1323
1331
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return
|
|
1332
|
+
function Sn(a, o, e) {
|
|
1333
|
+
return b(() => {
|
|
1326
1334
|
const t = typeof a.resizable == "boolean" ? !a.resizable : !!a.resizable?.disabled;
|
|
1327
1335
|
return {
|
|
1328
1336
|
minWidth: 200,
|
|
@@ -1331,175 +1339,175 @@ function xo(a, n, e) {
|
|
|
1331
1339
|
disabled: t,
|
|
1332
1340
|
dirs: ["e", "s", "w"],
|
|
1333
1341
|
onStart(l, s) {
|
|
1334
|
-
|
|
1342
|
+
o.resizing = !0, o.zIndex = Math.max(o.zIndex, ++_e), e("resizeStart", l, s);
|
|
1335
1343
|
},
|
|
1336
1344
|
onResizing(l, s) {
|
|
1337
1345
|
e("resizing", l, s);
|
|
1338
1346
|
},
|
|
1339
1347
|
onEnd(l, s) {
|
|
1340
|
-
|
|
1348
|
+
o.left = s.elementPositionX.value, o.top = s.elementPositionY.value, o.width = s.elementWidth.value, o.height = s.elementHeight.value, o.resizing = !1, e("resizeEnd", l, s);
|
|
1341
1349
|
}
|
|
1342
1350
|
};
|
|
1343
1351
|
});
|
|
1344
1352
|
}
|
|
1345
|
-
function
|
|
1353
|
+
function zn(a, o) {
|
|
1346
1354
|
const e = a.componentInstance;
|
|
1347
1355
|
if (!e)
|
|
1348
1356
|
return;
|
|
1349
1357
|
let t = null;
|
|
1350
|
-
return
|
|
1351
|
-
const l = o
|
|
1358
|
+
return gt(() => {
|
|
1359
|
+
const l = n(o), s = n(l?.bodyRef);
|
|
1352
1360
|
t = e.$el, s && s.$el && s.$el.appendChild(t);
|
|
1353
|
-
}),
|
|
1361
|
+
}), yt(() => {
|
|
1354
1362
|
t && t.parentNode && t.parentNode.removeChild(t);
|
|
1355
1363
|
}), {
|
|
1356
1364
|
componentInstance: e
|
|
1357
1365
|
};
|
|
1358
1366
|
}
|
|
1359
|
-
const
|
|
1367
|
+
const Tn = ["src"], jt = /* @__PURE__ */ P({
|
|
1360
1368
|
name: "XDialog",
|
|
1361
1369
|
__name: "Dialog",
|
|
1362
|
-
props:
|
|
1370
|
+
props: kn,
|
|
1363
1371
|
emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
|
|
1364
|
-
setup(a, { expose:
|
|
1365
|
-
const t = a, l = e, s =
|
|
1372
|
+
setup(a, { expose: o, emit: e }) {
|
|
1373
|
+
const t = a, l = e, s = fe(), c = I(), r = I(), { state: i, maximized: p, minimized: d, normal: m } = wn(t, c), { styles: _, classes: v, wrapperClass: y, modalStyle: C } = xn(t, i), { changeMode: w, active: E, close: B, show: S, hide: O, submit: T, cancel: N } = Cn(
|
|
1366
1374
|
t,
|
|
1367
1375
|
i,
|
|
1368
1376
|
l
|
|
1369
|
-
), x =
|
|
1370
|
-
|
|
1371
|
-
t.modelValue && (await
|
|
1377
|
+
), x = $n(t, i, l, c), K = Sn(t, i, l), H = zn(t, r);
|
|
1378
|
+
Ye(async () => {
|
|
1379
|
+
t.modelValue && (await he(), s && l("open", s));
|
|
1372
1380
|
});
|
|
1373
|
-
const
|
|
1374
|
-
return
|
|
1375
|
-
$vtjEl:
|
|
1381
|
+
const ue = b(() => r.value?.$el);
|
|
1382
|
+
return o({
|
|
1383
|
+
$vtjEl: ue,
|
|
1376
1384
|
panelRef: r,
|
|
1377
1385
|
state: i,
|
|
1378
1386
|
maximized: p,
|
|
1379
1387
|
minimized: d,
|
|
1380
1388
|
changeMode: w,
|
|
1381
|
-
show:
|
|
1382
|
-
hide:
|
|
1389
|
+
show: S,
|
|
1390
|
+
hide: O,
|
|
1383
1391
|
submit: T,
|
|
1384
1392
|
cancel: N,
|
|
1385
|
-
close:
|
|
1386
|
-
componentInstance:
|
|
1387
|
-
}), (
|
|
1393
|
+
close: B,
|
|
1394
|
+
componentInstance: H
|
|
1395
|
+
}), (q, ee) => t.modelValue ? (u(), g(vt, {
|
|
1388
1396
|
key: 0,
|
|
1389
1397
|
to: "body"
|
|
1390
1398
|
}, [
|
|
1391
|
-
|
|
1399
|
+
F("div", {
|
|
1392
1400
|
ref_key: "wrapper",
|
|
1393
1401
|
ref: c,
|
|
1394
|
-
class:
|
|
1402
|
+
class: Y(["x-dialog__wrapper", n(y)])
|
|
1395
1403
|
}, [
|
|
1396
|
-
t.modal ? (u(),
|
|
1404
|
+
t.modal ? (u(), z("div", {
|
|
1397
1405
|
key: 0,
|
|
1398
1406
|
class: "x-dialog__modal",
|
|
1399
|
-
style:
|
|
1407
|
+
style: me(n(C))
|
|
1400
1408
|
}, null, 4)) : h("", !0),
|
|
1401
|
-
G((u(), g(
|
|
1409
|
+
G((u(), g(n(Ve), D({
|
|
1402
1410
|
ref_key: "panelRef",
|
|
1403
1411
|
ref: r,
|
|
1404
|
-
class: ["x-dialog",
|
|
1412
|
+
class: ["x-dialog", n(v)],
|
|
1405
1413
|
card: "",
|
|
1406
1414
|
shadow: "always",
|
|
1407
1415
|
header: { icon: t.icon, subtitle: t.subtitle },
|
|
1408
1416
|
width: "800px",
|
|
1409
1417
|
height: "600px",
|
|
1410
1418
|
footer: { justify: "space-between", flex: !0, align: "center" },
|
|
1411
|
-
style:
|
|
1419
|
+
style: n(_),
|
|
1412
1420
|
size: t.size,
|
|
1413
1421
|
body: { padding: t.bodyPadding },
|
|
1414
|
-
onClick:
|
|
1415
|
-
},
|
|
1422
|
+
onClick: n(E)
|
|
1423
|
+
}, q.$attrs), de({
|
|
1416
1424
|
title: f(() => [
|
|
1417
|
-
|
|
1425
|
+
A(j(t.title), 1)
|
|
1418
1426
|
]),
|
|
1419
1427
|
actions: f(() => [
|
|
1420
|
-
|
|
1421
|
-
t.minimizable ? (u(), g(
|
|
1428
|
+
$(q.$slots, "actions"),
|
|
1429
|
+
t.minimizable ? (u(), g(n(te), {
|
|
1422
1430
|
key: 0,
|
|
1423
|
-
icon:
|
|
1431
|
+
icon: n(_o),
|
|
1424
1432
|
size: t.size,
|
|
1425
1433
|
mode: "icon",
|
|
1426
1434
|
type: "primary",
|
|
1427
1435
|
background: "hover",
|
|
1428
|
-
onClick: ee[0] || (ee[0] = (
|
|
1436
|
+
onClick: ee[0] || (ee[0] = (ce) => n(w)("minimized"))
|
|
1429
1437
|
}, null, 8, ["icon", "size"])) : h("", !0),
|
|
1430
|
-
t.maximizable ? (u(),
|
|
1431
|
-
|
|
1438
|
+
t.maximizable ? (u(), z(W, { key: 1 }, [
|
|
1439
|
+
n(m) ? (u(), g(n(te), {
|
|
1432
1440
|
key: 1,
|
|
1433
|
-
icon:
|
|
1441
|
+
icon: n(wo),
|
|
1434
1442
|
size: t.size,
|
|
1435
1443
|
mode: "icon",
|
|
1436
1444
|
type: "primary",
|
|
1437
1445
|
background: "hover",
|
|
1438
|
-
onClick: ee[2] || (ee[2] = (
|
|
1439
|
-
}, null, 8, ["icon", "size"])) : (u(), g(
|
|
1446
|
+
onClick: ee[2] || (ee[2] = (ce) => n(w)("maximized"))
|
|
1447
|
+
}, null, 8, ["icon", "size"])) : (u(), g(n(te), {
|
|
1440
1448
|
key: 0,
|
|
1441
|
-
icon:
|
|
1449
|
+
icon: n(ko),
|
|
1442
1450
|
size: t.size,
|
|
1443
1451
|
mode: "icon",
|
|
1444
1452
|
type: "primary",
|
|
1445
1453
|
background: "hover",
|
|
1446
|
-
onClick: ee[1] || (ee[1] = (
|
|
1454
|
+
onClick: ee[1] || (ee[1] = (ce) => n(w)("normal"))
|
|
1447
1455
|
}, null, 8, ["icon", "size"]))
|
|
1448
1456
|
], 64)) : h("", !0),
|
|
1449
|
-
t.closable ? (u(), g(
|
|
1457
|
+
t.closable ? (u(), g(n(te), {
|
|
1450
1458
|
key: 2,
|
|
1451
|
-
icon:
|
|
1459
|
+
icon: n(xo),
|
|
1452
1460
|
size: t.size,
|
|
1453
1461
|
mode: "icon",
|
|
1454
1462
|
type: "danger",
|
|
1455
1463
|
background: "hover",
|
|
1456
|
-
onClick:
|
|
1464
|
+
onClick: n(B)
|
|
1457
1465
|
}, null, 8, ["icon", "size", "onClick"])) : h("", !0)
|
|
1458
1466
|
]),
|
|
1459
1467
|
default: f(() => [
|
|
1460
|
-
|
|
1461
|
-
t.content ? (u(), g(
|
|
1462
|
-
t.src ? (u(),
|
|
1468
|
+
$(q.$slots, "default", {}, () => [
|
|
1469
|
+
t.content ? (u(), g(J(t.content), { key: 0 })) : h("", !0),
|
|
1470
|
+
t.src ? (u(), z("iframe", {
|
|
1463
1471
|
key: 1,
|
|
1464
1472
|
src: t.src,
|
|
1465
1473
|
class: "x-dialog__frame"
|
|
1466
|
-
}, null, 8,
|
|
1474
|
+
}, null, 8, Tn)) : h("", !0)
|
|
1467
1475
|
])
|
|
1468
1476
|
]),
|
|
1469
1477
|
_: 2
|
|
1470
1478
|
}, [
|
|
1471
|
-
t.cancel || t.submit ||
|
|
1479
|
+
t.cancel || t.submit || q.$slots.footer || q.$slots.extra || q.$slots.handle ? {
|
|
1472
1480
|
name: "footer",
|
|
1473
1481
|
fn: f(() => [
|
|
1474
|
-
|
|
1475
|
-
k(
|
|
1482
|
+
$(q.$slots, "footer", {}, () => [
|
|
1483
|
+
k(n(V), { align: "center" }, {
|
|
1476
1484
|
default: f(() => [
|
|
1477
|
-
|
|
1485
|
+
$(q.$slots, "extra")
|
|
1478
1486
|
]),
|
|
1479
1487
|
_: 3
|
|
1480
1488
|
}),
|
|
1481
|
-
k(
|
|
1489
|
+
k(n(V), { align: "center" }, {
|
|
1482
1490
|
default: f(() => [
|
|
1483
|
-
|
|
1484
|
-
t.cancel ? (u(), g(
|
|
1491
|
+
$(q.$slots, "handle"),
|
|
1492
|
+
t.cancel ? (u(), g(n(ie), {
|
|
1485
1493
|
key: 0,
|
|
1486
1494
|
type: "default",
|
|
1487
1495
|
size: t.size,
|
|
1488
|
-
onClick:
|
|
1496
|
+
onClick: n(N)
|
|
1489
1497
|
}, {
|
|
1490
1498
|
default: f(() => [
|
|
1491
|
-
|
|
1499
|
+
A(j(typeof t.cancel == "string" ? t.cancel : "取消"), 1)
|
|
1492
1500
|
]),
|
|
1493
1501
|
_: 1
|
|
1494
1502
|
}, 8, ["size", "onClick"])) : h("", !0),
|
|
1495
|
-
t.submit ? (u(), g(
|
|
1503
|
+
t.submit ? (u(), g(n(ie), {
|
|
1496
1504
|
key: 1,
|
|
1497
1505
|
type: "primary",
|
|
1498
1506
|
size: t.size,
|
|
1499
|
-
onClick:
|
|
1507
|
+
onClick: n(T)
|
|
1500
1508
|
}, {
|
|
1501
1509
|
default: f(() => [
|
|
1502
|
-
|
|
1510
|
+
A(j(typeof t.submit == "string" ? t.submit : "确定"), 1)
|
|
1503
1511
|
]),
|
|
1504
1512
|
_: 1
|
|
1505
1513
|
}, 8, ["size", "onClick"])) : h("", !0)
|
|
@@ -1511,16 +1519,16 @@ const Co = ["src"], At = /* @__PURE__ */ V({
|
|
|
1511
1519
|
key: "0"
|
|
1512
1520
|
} : void 0
|
|
1513
1521
|
]), 1040, ["header", "class", "style", "size", "body", "onClick"])), [
|
|
1514
|
-
[
|
|
1515
|
-
[
|
|
1522
|
+
[n(_n), n(x)],
|
|
1523
|
+
[n(Ot), n(K)]
|
|
1516
1524
|
])
|
|
1517
1525
|
], 2)
|
|
1518
1526
|
])) : h("", !0);
|
|
1519
1527
|
}
|
|
1520
1528
|
});
|
|
1521
|
-
function
|
|
1522
|
-
const e = document.createElement("div"), t = k(
|
|
1523
|
-
t.appContext =
|
|
1529
|
+
function ot(a, o) {
|
|
1530
|
+
const e = document.createElement("div"), t = k(jt, a);
|
|
1531
|
+
t.appContext = o ?? ot._context, nt(t, e);
|
|
1524
1532
|
const l = () => {
|
|
1525
1533
|
nt(null, e), e.parentNode?.removeChild(e);
|
|
1526
1534
|
};
|
|
@@ -1531,22 +1539,22 @@ function tt(a, n) {
|
|
|
1531
1539
|
destroy: l
|
|
1532
1540
|
};
|
|
1533
1541
|
}
|
|
1534
|
-
const
|
|
1542
|
+
const Mn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -1), En = /* @__PURE__ */ P({
|
|
1535
1543
|
__name: "Sidebar",
|
|
1536
1544
|
props: {
|
|
1537
1545
|
collapsed: { type: Boolean }
|
|
1538
1546
|
},
|
|
1539
1547
|
setup(a) {
|
|
1540
|
-
const
|
|
1541
|
-
return (e, t) => G((u(), g(
|
|
1542
|
-
class:
|
|
1548
|
+
const o = a;
|
|
1549
|
+
return (e, t) => G((u(), g(n(V), {
|
|
1550
|
+
class: Y(["x-mask-sidebar", { "is-collapsed": o.collapsed }]),
|
|
1543
1551
|
grow: !1,
|
|
1544
1552
|
flex: "",
|
|
1545
1553
|
direction: "column"
|
|
1546
1554
|
}, {
|
|
1547
1555
|
default: f(() => [
|
|
1548
|
-
|
|
1549
|
-
k(
|
|
1556
|
+
$(e.$slots, "brand"),
|
|
1557
|
+
k(n(V), {
|
|
1550
1558
|
class: "x-mask-sidebar__wrapper",
|
|
1551
1559
|
flex: "",
|
|
1552
1560
|
grow: "",
|
|
@@ -1555,23 +1563,23 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1555
1563
|
align: "center"
|
|
1556
1564
|
}, {
|
|
1557
1565
|
default: f(() => [
|
|
1558
|
-
|
|
1559
|
-
|
|
1566
|
+
$(e.$slots, "default"),
|
|
1567
|
+
Mn
|
|
1560
1568
|
]),
|
|
1561
1569
|
_: 3
|
|
1562
1570
|
})
|
|
1563
1571
|
]),
|
|
1564
1572
|
_: 3
|
|
1565
1573
|
}, 8, ["class"])), [
|
|
1566
|
-
[
|
|
1574
|
+
[n(Ot), {
|
|
1567
1575
|
dirs: ["e"],
|
|
1568
|
-
disabled:
|
|
1576
|
+
disabled: o.collapsed,
|
|
1569
1577
|
maxWidth: 500,
|
|
1570
1578
|
minWidth: 200
|
|
1571
1579
|
}]
|
|
1572
1580
|
]);
|
|
1573
1581
|
}
|
|
1574
|
-
}),
|
|
1582
|
+
}), Pn = /* @__PURE__ */ P({
|
|
1575
1583
|
__name: "SwitchBar",
|
|
1576
1584
|
props: {
|
|
1577
1585
|
collasped: { type: Boolean, default: !1 },
|
|
@@ -1583,8 +1591,8 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1583
1591
|
"update:keyword",
|
|
1584
1592
|
"update:favorite"
|
|
1585
1593
|
],
|
|
1586
|
-
setup(a, { emit:
|
|
1587
|
-
const e = a, t =
|
|
1594
|
+
setup(a, { emit: o }) {
|
|
1595
|
+
const e = a, t = o, l = I(!1), s = I(""), c = I(!1), r = () => {
|
|
1588
1596
|
l.value = !0;
|
|
1589
1597
|
}, i = () => {
|
|
1590
1598
|
s.value = "", l.value = !1, t("update:keyword", s.value);
|
|
@@ -1595,40 +1603,40 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1595
1603
|
}, m = () => {
|
|
1596
1604
|
t("update:favorite", c.value);
|
|
1597
1605
|
};
|
|
1598
|
-
return (
|
|
1606
|
+
return (_, v) => (u(), g(n(V), {
|
|
1599
1607
|
class: "x-mask-switch-bar",
|
|
1600
1608
|
justify: "space-between",
|
|
1601
1609
|
align: "center"
|
|
1602
1610
|
}, {
|
|
1603
1611
|
default: f(() => [
|
|
1604
|
-
e.collasped ? h("", !0) : (u(), g(
|
|
1612
|
+
e.collasped ? h("", !0) : (u(), g(n(V), {
|
|
1605
1613
|
key: 0,
|
|
1606
1614
|
class: "x-mask-switch-bar__left",
|
|
1607
1615
|
grow: ""
|
|
1608
1616
|
}, {
|
|
1609
1617
|
default: f(() => [
|
|
1610
|
-
l.value ? h("", !0) : (u(), g(
|
|
1618
|
+
l.value ? h("", !0) : (u(), g(n(Je), {
|
|
1611
1619
|
key: 0,
|
|
1612
1620
|
modelValue: c.value,
|
|
1613
|
-
"onUpdate:modelValue":
|
|
1621
|
+
"onUpdate:modelValue": v[0] || (v[0] = (y) => c.value = y),
|
|
1614
1622
|
class: "x-mask-switch-bar__switch",
|
|
1615
|
-
"active-icon":
|
|
1616
|
-
"inactive-icon":
|
|
1623
|
+
"active-icon": n($t),
|
|
1624
|
+
"inactive-icon": n(Co),
|
|
1617
1625
|
onChange: m
|
|
1618
1626
|
}, null, 8, ["modelValue", "active-icon", "inactive-icon"])),
|
|
1619
|
-
l.value ? (u(), g(
|
|
1627
|
+
l.value ? (u(), g(n(we), {
|
|
1620
1628
|
key: 1,
|
|
1621
1629
|
modelValue: s.value,
|
|
1622
|
-
"onUpdate:modelValue":
|
|
1630
|
+
"onUpdate:modelValue": v[1] || (v[1] = (y) => s.value = y),
|
|
1623
1631
|
class: "x-mask-switch-bar__input",
|
|
1624
1632
|
size: "small",
|
|
1625
1633
|
placeholder: "请输入查询关键字",
|
|
1626
1634
|
onInput: d,
|
|
1627
|
-
"prefix-icon":
|
|
1635
|
+
"prefix-icon": n(He)
|
|
1628
1636
|
}, {
|
|
1629
1637
|
suffix: f(() => [
|
|
1630
|
-
k(
|
|
1631
|
-
icon:
|
|
1638
|
+
k(n(pe), {
|
|
1639
|
+
icon: n(St),
|
|
1632
1640
|
onClick: i
|
|
1633
1641
|
}, null, 8, ["icon"])
|
|
1634
1642
|
]),
|
|
@@ -1637,34 +1645,34 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1637
1645
|
]),
|
|
1638
1646
|
_: 1
|
|
1639
1647
|
})),
|
|
1640
|
-
k(
|
|
1641
|
-
class:
|
|
1648
|
+
k(n(V), {
|
|
1649
|
+
class: Y(["x-mask-switch-bar__right", { "is-collasped": e.collasped }]),
|
|
1642
1650
|
flex: "",
|
|
1643
1651
|
align: "center",
|
|
1644
1652
|
justify: "center"
|
|
1645
1653
|
}, {
|
|
1646
1654
|
default: f(() => [
|
|
1647
|
-
!l.value && !e.collasped ? (u(), g(
|
|
1655
|
+
!l.value && !e.collasped ? (u(), g(n(te), {
|
|
1648
1656
|
key: 0,
|
|
1649
|
-
icon:
|
|
1657
|
+
icon: n(He),
|
|
1650
1658
|
mode: "icon",
|
|
1651
1659
|
background: "hover",
|
|
1652
1660
|
size: "default",
|
|
1653
1661
|
circle: "",
|
|
1654
1662
|
onClick: r
|
|
1655
1663
|
}, null, 8, ["icon"])) : h("", !0),
|
|
1656
|
-
e.collasped ? (u(), g(
|
|
1664
|
+
e.collasped ? (u(), g(n(te), {
|
|
1657
1665
|
key: 1,
|
|
1658
|
-
icon: o
|
|
1666
|
+
icon: n($o),
|
|
1659
1667
|
mode: "icon",
|
|
1660
1668
|
size: "default",
|
|
1661
1669
|
background: "hover",
|
|
1662
1670
|
onClick: p,
|
|
1663
1671
|
circle: ""
|
|
1664
1672
|
}, null, 8, ["icon"])) : h("", !0),
|
|
1665
|
-
e.collasped ? h("", !0) : (u(), g(
|
|
1673
|
+
e.collasped ? h("", !0) : (u(), g(n(te), {
|
|
1666
1674
|
key: 2,
|
|
1667
|
-
icon:
|
|
1675
|
+
icon: n(So),
|
|
1668
1676
|
mode: "icon",
|
|
1669
1677
|
size: "default",
|
|
1670
1678
|
background: "hover",
|
|
@@ -1678,7 +1686,7 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1678
1686
|
_: 1
|
|
1679
1687
|
}));
|
|
1680
1688
|
}
|
|
1681
|
-
}),
|
|
1689
|
+
}), Bn = ["src"], Vn = { key: 0 }, In = /* @__PURE__ */ P({
|
|
1682
1690
|
__name: "Brand",
|
|
1683
1691
|
props: {
|
|
1684
1692
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -1687,15 +1695,15 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1687
1695
|
url: {}
|
|
1688
1696
|
},
|
|
1689
1697
|
setup(a) {
|
|
1690
|
-
const
|
|
1691
|
-
|
|
1698
|
+
const o = a, e = Ze(), t = () => {
|
|
1699
|
+
o.url && e.push(o.url);
|
|
1692
1700
|
};
|
|
1693
|
-
return (l, s) => (u(), g(
|
|
1694
|
-
class:
|
|
1701
|
+
return (l, s) => (u(), g(n(V), {
|
|
1702
|
+
class: Y(["x-mask-brand", { "is-collapsed": o.collapsed }]),
|
|
1695
1703
|
align: "center"
|
|
1696
1704
|
}, {
|
|
1697
1705
|
default: f(() => [
|
|
1698
|
-
k(
|
|
1706
|
+
k(n(V), {
|
|
1699
1707
|
class: "x-mask-brand__logo",
|
|
1700
1708
|
flex: "",
|
|
1701
1709
|
justify: "center",
|
|
@@ -1703,24 +1711,24 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1703
1711
|
onClick: t
|
|
1704
1712
|
}, {
|
|
1705
1713
|
default: f(() => [
|
|
1706
|
-
|
|
1707
|
-
|
|
1714
|
+
$(l.$slots, "logo", {}, () => [
|
|
1715
|
+
o.logo ? (u(), z("img", {
|
|
1708
1716
|
key: 0,
|
|
1709
|
-
src:
|
|
1710
|
-
}, null, 8,
|
|
1717
|
+
src: o.logo
|
|
1718
|
+
}, null, 8, Bn)) : h("", !0)
|
|
1711
1719
|
])
|
|
1712
1720
|
]),
|
|
1713
1721
|
_: 3
|
|
1714
1722
|
}),
|
|
1715
|
-
k(
|
|
1723
|
+
k(n(V), {
|
|
1716
1724
|
class: "x-mask-brand__title",
|
|
1717
1725
|
flex: "",
|
|
1718
1726
|
align: "center"
|
|
1719
1727
|
}, {
|
|
1720
1728
|
default: f(() => [
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1729
|
+
o.title ? (u(), z("span", Vn, [
|
|
1730
|
+
$(l.$slots, "title", {}, () => [
|
|
1731
|
+
A(j(o.title), 1)
|
|
1724
1732
|
])
|
|
1725
1733
|
])) : h("", !0)
|
|
1726
1734
|
]),
|
|
@@ -1730,7 +1738,7 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1730
1738
|
_: 3
|
|
1731
1739
|
}, 8, ["class"]));
|
|
1732
1740
|
}
|
|
1733
|
-
}),
|
|
1741
|
+
}), Me = "__favorites__", Ee = "__search__", On = /* @__PURE__ */ P({
|
|
1734
1742
|
__name: "Menu",
|
|
1735
1743
|
props: {
|
|
1736
1744
|
collapse: { type: Boolean, default: !1 },
|
|
@@ -1742,30 +1750,30 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1742
1750
|
active: {}
|
|
1743
1751
|
},
|
|
1744
1752
|
emits: ["select"],
|
|
1745
|
-
setup(a, { emit:
|
|
1746
|
-
const e = a, t =
|
|
1753
|
+
setup(a, { emit: o }) {
|
|
1754
|
+
const e = a, t = b(() => e.menus || []), l = o, s = b(() => String(e.active?.id)), c = b(() => [
|
|
1747
1755
|
{
|
|
1748
|
-
id:
|
|
1756
|
+
id: Me,
|
|
1749
1757
|
title: "收藏",
|
|
1750
1758
|
icon: zt,
|
|
1751
1759
|
children: e.favorites?.length ? e.favorites : [
|
|
1752
1760
|
{
|
|
1753
|
-
id:
|
|
1761
|
+
id: Me + "empty",
|
|
1754
1762
|
disabled: !0,
|
|
1755
1763
|
title: "暂无收藏菜单"
|
|
1756
1764
|
}
|
|
1757
1765
|
]
|
|
1758
1766
|
}
|
|
1759
|
-
]), r =
|
|
1767
|
+
]), r = b(() => {
|
|
1760
1768
|
const p = (e.keyword || "").trim(), d = p ? (e.flatMenus || []).filter((m) => m.title?.includes(p)) : [];
|
|
1761
1769
|
return [
|
|
1762
1770
|
{
|
|
1763
|
-
id:
|
|
1771
|
+
id: Ee,
|
|
1764
1772
|
title: "搜索",
|
|
1765
|
-
icon:
|
|
1773
|
+
icon: He,
|
|
1766
1774
|
children: d?.length ? d : [
|
|
1767
1775
|
{
|
|
1768
|
-
id:
|
|
1776
|
+
id: Ee + "empty",
|
|
1769
1777
|
disabled: !0,
|
|
1770
1778
|
title: "查询匹配不到菜单项"
|
|
1771
1779
|
}
|
|
@@ -1775,15 +1783,15 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1775
1783
|
}), i = (p) => {
|
|
1776
1784
|
l("select", p);
|
|
1777
1785
|
};
|
|
1778
|
-
return (p, d) => (u(),
|
|
1779
|
-
G(k(
|
|
1786
|
+
return (p, d) => (u(), z(W, null, [
|
|
1787
|
+
G(k(n(V), {
|
|
1780
1788
|
class: "x-mask-menu",
|
|
1781
1789
|
grow: "",
|
|
1782
1790
|
flex: !1,
|
|
1783
1791
|
overflow: "auto"
|
|
1784
1792
|
}, {
|
|
1785
1793
|
default: f(() => [
|
|
1786
|
-
G(k(
|
|
1794
|
+
G(k(n(ye), {
|
|
1787
1795
|
subMenu: {
|
|
1788
1796
|
popperClass: "x-mask-menu-popper",
|
|
1789
1797
|
teleported: !0,
|
|
@@ -1791,45 +1799,45 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1791
1799
|
hideTimeout: 200
|
|
1792
1800
|
},
|
|
1793
1801
|
data: t.value,
|
|
1794
|
-
"default-icon":
|
|
1802
|
+
"default-icon": n(ge),
|
|
1795
1803
|
collapse: !0,
|
|
1796
1804
|
"collapse-transition": !1,
|
|
1797
1805
|
"default-active": s.value,
|
|
1798
1806
|
onSelect: i
|
|
1799
1807
|
}, null, 8, ["data", "default-icon", "default-active"]), [
|
|
1800
|
-
[
|
|
1808
|
+
[ne, e.collapse]
|
|
1801
1809
|
]),
|
|
1802
|
-
G(k(
|
|
1810
|
+
G(k(n(ye), {
|
|
1803
1811
|
subMenu: {
|
|
1804
1812
|
popperClass: "x-mask-menu-popper",
|
|
1805
1813
|
teleported: !0
|
|
1806
1814
|
},
|
|
1807
1815
|
data: t.value,
|
|
1808
|
-
"default-icon":
|
|
1816
|
+
"default-icon": n(ge),
|
|
1809
1817
|
collapse: !1,
|
|
1810
1818
|
"collapse-transition": !1,
|
|
1811
1819
|
"default-active": s.value,
|
|
1812
1820
|
onSelect: i
|
|
1813
1821
|
}, null, 8, ["data", "default-icon", "default-active"]), [
|
|
1814
|
-
[
|
|
1822
|
+
[ne, !e.collapse]
|
|
1815
1823
|
]),
|
|
1816
|
-
t.value.length ? h("", !0) : (u(), g(
|
|
1824
|
+
t.value.length ? h("", !0) : (u(), g(n(_t), {
|
|
1817
1825
|
key: 0,
|
|
1818
1826
|
description: "暂无菜单数据"
|
|
1819
1827
|
}))
|
|
1820
1828
|
]),
|
|
1821
1829
|
_: 1
|
|
1822
1830
|
}, 512), [
|
|
1823
|
-
[
|
|
1831
|
+
[ne, !e.favorite && !e.keyword]
|
|
1824
1832
|
]),
|
|
1825
|
-
G(k(
|
|
1833
|
+
G(k(n(V), {
|
|
1826
1834
|
class: "x-mask-menu",
|
|
1827
1835
|
grow: "",
|
|
1828
1836
|
flex: !1,
|
|
1829
1837
|
overflow: "auto"
|
|
1830
1838
|
}, {
|
|
1831
1839
|
default: f(() => [
|
|
1832
|
-
G(k(
|
|
1840
|
+
G(k(n(ye), {
|
|
1833
1841
|
class: "x-mask-menu__favorites",
|
|
1834
1842
|
subMenu: {
|
|
1835
1843
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1838,16 +1846,16 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1838
1846
|
hideTimeout: 200
|
|
1839
1847
|
},
|
|
1840
1848
|
data: c.value,
|
|
1841
|
-
"default-icon":
|
|
1849
|
+
"default-icon": n(ge),
|
|
1842
1850
|
collapse: !0,
|
|
1843
1851
|
"collapse-transition": !1,
|
|
1844
1852
|
"default-active": s.value,
|
|
1845
|
-
"default-openeds": [
|
|
1853
|
+
"default-openeds": [Me],
|
|
1846
1854
|
onSelect: i
|
|
1847
1855
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1848
|
-
[
|
|
1856
|
+
[ne, e.collapse]
|
|
1849
1857
|
]),
|
|
1850
|
-
G(k(
|
|
1858
|
+
G(k(n(ye), {
|
|
1851
1859
|
class: "x-mask-menu__favorites",
|
|
1852
1860
|
subMenu: {
|
|
1853
1861
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1856,21 +1864,21 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1856
1864
|
hideTimeout: 200
|
|
1857
1865
|
},
|
|
1858
1866
|
data: c.value,
|
|
1859
|
-
"default-icon":
|
|
1867
|
+
"default-icon": n(ge),
|
|
1860
1868
|
collapse: !1,
|
|
1861
1869
|
"collapse-transition": !1,
|
|
1862
1870
|
"default-active": s.value,
|
|
1863
|
-
"default-openeds": [
|
|
1871
|
+
"default-openeds": [Me],
|
|
1864
1872
|
onSelect: i
|
|
1865
1873
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1866
|
-
[
|
|
1874
|
+
[ne, !e.collapse]
|
|
1867
1875
|
])
|
|
1868
1876
|
]),
|
|
1869
1877
|
_: 1
|
|
1870
1878
|
}, 512), [
|
|
1871
|
-
[
|
|
1879
|
+
[ne, e.favorite && !e.keyword]
|
|
1872
1880
|
]),
|
|
1873
|
-
e.keyword ? G((u(), g(
|
|
1881
|
+
e.keyword ? G((u(), g(n(V), {
|
|
1874
1882
|
key: 0,
|
|
1875
1883
|
class: "x-mask-menu",
|
|
1876
1884
|
grow: "",
|
|
@@ -1878,7 +1886,7 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1878
1886
|
overflow: "auto"
|
|
1879
1887
|
}, {
|
|
1880
1888
|
default: f(() => [
|
|
1881
|
-
G(k(
|
|
1889
|
+
G(k(n(ye), {
|
|
1882
1890
|
class: "x-mask-menu__search",
|
|
1883
1891
|
subMenu: {
|
|
1884
1892
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1887,16 +1895,16 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1887
1895
|
hideTimeout: 200
|
|
1888
1896
|
},
|
|
1889
1897
|
data: r.value,
|
|
1890
|
-
"default-icon":
|
|
1898
|
+
"default-icon": n(ge),
|
|
1891
1899
|
collapse: !0,
|
|
1892
1900
|
"collapse-transition": !1,
|
|
1893
1901
|
"default-active": s.value,
|
|
1894
|
-
"default-openeds": [
|
|
1902
|
+
"default-openeds": [Ee],
|
|
1895
1903
|
onSelect: i
|
|
1896
1904
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1897
|
-
[
|
|
1905
|
+
[ne, e.collapse]
|
|
1898
1906
|
]),
|
|
1899
|
-
G(k(
|
|
1907
|
+
G(k(n(ye), {
|
|
1900
1908
|
class: "x-mask-menu__search",
|
|
1901
1909
|
subMenu: {
|
|
1902
1910
|
popperClass: "x-mask-menu-popper",
|
|
@@ -1905,29 +1913,29 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
1905
1913
|
hideTimeout: 200
|
|
1906
1914
|
},
|
|
1907
1915
|
data: r.value,
|
|
1908
|
-
"default-icon":
|
|
1916
|
+
"default-icon": n(ge),
|
|
1909
1917
|
collapse: !1,
|
|
1910
1918
|
"collapse-transition": !1,
|
|
1911
1919
|
"default-active": s.value,
|
|
1912
|
-
"default-openeds": [
|
|
1920
|
+
"default-openeds": [Ee],
|
|
1913
1921
|
onSelect: i
|
|
1914
1922
|
}, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
|
|
1915
|
-
[
|
|
1923
|
+
[ne, !e.collapse]
|
|
1916
1924
|
])
|
|
1917
1925
|
]),
|
|
1918
1926
|
_: 1
|
|
1919
1927
|
}, 512)), [
|
|
1920
|
-
[
|
|
1928
|
+
[ne, !!e.keyword]
|
|
1921
1929
|
]) : h("", !0)
|
|
1922
1930
|
], 64));
|
|
1923
1931
|
}
|
|
1924
|
-
}),
|
|
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, An = {
|
|
1925
1933
|
/**
|
|
1926
1934
|
* 系统logo
|
|
1927
1935
|
*/
|
|
1928
1936
|
logo: {
|
|
1929
1937
|
type: String,
|
|
1930
|
-
default:
|
|
1938
|
+
default: jn
|
|
1931
1939
|
},
|
|
1932
1940
|
/**
|
|
1933
1941
|
* 系统标题
|
|
@@ -2004,7 +2012,7 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2004
2012
|
removeFavorite: {
|
|
2005
2013
|
type: Function
|
|
2006
2014
|
}
|
|
2007
|
-
},
|
|
2015
|
+
}, Rt = Symbol(), At = Symbol(), Dn = { class: "x-mask-tabs__trigger" }, Fn = { key: 1 }, Nn = ["onDragstart", "onDragend"], Xn = { key: 1 }, Ln = /* @__PURE__ */ P({
|
|
2008
2016
|
__name: "Tabs",
|
|
2009
2017
|
props: {
|
|
2010
2018
|
tabs: {},
|
|
@@ -2014,21 +2022,21 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2014
2022
|
favorites: {}
|
|
2015
2023
|
},
|
|
2016
2024
|
emits: ["click", "remove", "refresh", "toggleFavorite", "dialog"],
|
|
2017
|
-
setup(a, { emit:
|
|
2018
|
-
const e = a, t =
|
|
2025
|
+
setup(a, { emit: o }) {
|
|
2026
|
+
const e = a, t = o, l = (d) => {
|
|
2019
2027
|
const m = !!e.favorites.find(
|
|
2020
|
-
(
|
|
2028
|
+
(_) => _ === d.menu || _.id === d.menu?.id
|
|
2021
2029
|
);
|
|
2022
2030
|
return [
|
|
2023
2031
|
{
|
|
2024
|
-
icon:
|
|
2032
|
+
icon: zo,
|
|
2025
2033
|
label: "刷新",
|
|
2026
2034
|
name: "refresh",
|
|
2027
2035
|
value: d
|
|
2028
2036
|
},
|
|
2029
2037
|
"|",
|
|
2030
2038
|
{
|
|
2031
|
-
icon: m ?
|
|
2039
|
+
icon: m ? $t : zt,
|
|
2032
2040
|
label: "收藏",
|
|
2033
2041
|
name: "favorite",
|
|
2034
2042
|
value: d.menu,
|
|
@@ -2036,7 +2044,7 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2036
2044
|
},
|
|
2037
2045
|
"|",
|
|
2038
2046
|
{
|
|
2039
|
-
icon:
|
|
2047
|
+
icon: To,
|
|
2040
2048
|
label: "弹窗",
|
|
2041
2049
|
name: "dialog",
|
|
2042
2050
|
value: d
|
|
@@ -2048,10 +2056,10 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2048
2056
|
t("click", e.home);
|
|
2049
2057
|
return;
|
|
2050
2058
|
}
|
|
2051
|
-
const
|
|
2052
|
-
|
|
2059
|
+
const _ = e.tabs.find((v) => v.id === m);
|
|
2060
|
+
_ && t("click", _);
|
|
2053
2061
|
}, c = (d) => {
|
|
2054
|
-
const m = e.tabs.find((
|
|
2062
|
+
const m = e.tabs.find((_) => _.id === d);
|
|
2055
2063
|
m && t("remove", m);
|
|
2056
2064
|
}, r = (d) => {
|
|
2057
2065
|
switch (d.name) {
|
|
@@ -2070,7 +2078,7 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2070
2078
|
}, p = (d, m) => {
|
|
2071
2079
|
m.target && m.target.classList.remove("is-dagging");
|
|
2072
2080
|
};
|
|
2073
|
-
return (d, m) => (u(), g(
|
|
2081
|
+
return (d, m) => (u(), g(n(V), {
|
|
2074
2082
|
ref: "tabsRef",
|
|
2075
2083
|
class: "x-mask-tabs",
|
|
2076
2084
|
height: "100%",
|
|
@@ -2080,53 +2088,53 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2080
2088
|
direction: "column"
|
|
2081
2089
|
}, {
|
|
2082
2090
|
default: f(() => [
|
|
2083
|
-
k(
|
|
2091
|
+
k(n(kt), {
|
|
2084
2092
|
type: "card",
|
|
2085
2093
|
"model-value": e.value,
|
|
2086
2094
|
onTabRemove: c,
|
|
2087
2095
|
onTabClick: s
|
|
2088
2096
|
}, {
|
|
2089
2097
|
default: f(() => [
|
|
2090
|
-
e.home ? (u(), g(
|
|
2098
|
+
e.home ? (u(), g(n(Ue), {
|
|
2091
2099
|
key: 0,
|
|
2092
2100
|
name: e.home.id
|
|
2093
2101
|
}, {
|
|
2094
2102
|
label: f(() => [
|
|
2095
|
-
|
|
2096
|
-
e.home.icon ? (u(), g(
|
|
2097
|
-
e.home.title ? (u(),
|
|
2103
|
+
F("div", Dn, [
|
|
2104
|
+
e.home.icon ? (u(), g(J(n(xe)(e.home.icon)), { key: 0 })) : h("", !0),
|
|
2105
|
+
e.home.title ? (u(), z("span", Fn, j(e.home.title), 1)) : h("", !0)
|
|
2098
2106
|
])
|
|
2099
2107
|
]),
|
|
2100
2108
|
_: 1
|
|
2101
2109
|
}, 8, ["name"])) : h("", !0),
|
|
2102
|
-
(u(!0),
|
|
2103
|
-
key:
|
|
2104
|
-
name:
|
|
2110
|
+
(u(!0), z(W, null, Z(e.tabs, (_) => (u(), g(n(Ue), {
|
|
2111
|
+
key: _.id,
|
|
2112
|
+
name: _.id,
|
|
2105
2113
|
lazy: "",
|
|
2106
2114
|
closable: ""
|
|
2107
2115
|
}, {
|
|
2108
2116
|
label: f(() => [
|
|
2109
|
-
k(
|
|
2117
|
+
k(n(wt), {
|
|
2110
2118
|
"open-delay": 500,
|
|
2111
2119
|
placement: "bottom",
|
|
2112
2120
|
trigger: "hover",
|
|
2113
2121
|
width: "200px",
|
|
2114
|
-
disabled:
|
|
2122
|
+
disabled: _.id !== e.value
|
|
2115
2123
|
}, {
|
|
2116
2124
|
reference: f(() => [
|
|
2117
|
-
|
|
2125
|
+
F("div", {
|
|
2118
2126
|
class: "x-mask-tabs__trigger",
|
|
2119
2127
|
draggable: "true",
|
|
2120
|
-
onDragstart: (
|
|
2121
|
-
onDragend: (
|
|
2128
|
+
onDragstart: (v) => i(_, v),
|
|
2129
|
+
onDragend: (v) => p(_, v)
|
|
2122
2130
|
}, [
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
], 40,
|
|
2131
|
+
_.icon ? (u(), g(J(n(xe)(_.icon)), { key: 0 })) : h("", !0),
|
|
2132
|
+
_.title ? (u(), z("span", Xn, j(_.title), 1)) : h("", !0)
|
|
2133
|
+
], 40, Nn)
|
|
2126
2134
|
]),
|
|
2127
2135
|
default: f(() => [
|
|
2128
|
-
k(
|
|
2129
|
-
items: l(
|
|
2136
|
+
k(n(tt), {
|
|
2137
|
+
items: l(_),
|
|
2130
2138
|
mode: "text",
|
|
2131
2139
|
size: "small",
|
|
2132
2140
|
type: "info",
|
|
@@ -2145,20 +2153,20 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2145
2153
|
_: 1
|
|
2146
2154
|
}, 512));
|
|
2147
2155
|
}
|
|
2148
|
-
}),
|
|
2156
|
+
}), Kn = /* @__PURE__ */ P({
|
|
2149
2157
|
__name: "ThemeSwitch",
|
|
2150
2158
|
setup(a) {
|
|
2151
|
-
const
|
|
2152
|
-
return (e, t) => (u(), g(
|
|
2159
|
+
const o = Ao();
|
|
2160
|
+
return (e, t) => (u(), g(n(Je), {
|
|
2153
2161
|
class: "x-mask-theme-switch",
|
|
2154
|
-
modelValue: o
|
|
2155
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
2162
|
+
modelValue: n(o),
|
|
2163
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => Pe(o) ? o.value = l : null),
|
|
2156
2164
|
size: "default",
|
|
2157
|
-
"active-action-icon":
|
|
2158
|
-
"inactive-action-icon":
|
|
2165
|
+
"active-action-icon": n(Mo),
|
|
2166
|
+
"inactive-action-icon": n(Eo)
|
|
2159
2167
|
}, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"]));
|
|
2160
2168
|
}
|
|
2161
|
-
}),
|
|
2169
|
+
}), Un = { class: "x-mask-toolbar__menu-item" }, Hn = /* @__PURE__ */ P({
|
|
2162
2170
|
__name: "Toolbar",
|
|
2163
2171
|
props: {
|
|
2164
2172
|
tabs: { default: () => [] },
|
|
@@ -2173,8 +2181,8 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2173
2181
|
"actionClick",
|
|
2174
2182
|
"actionCommand"
|
|
2175
2183
|
],
|
|
2176
|
-
setup(a, { emit:
|
|
2177
|
-
const e = a, t =
|
|
2184
|
+
setup(a, { emit: o }) {
|
|
2185
|
+
const e = a, t = o, l = b(() => {
|
|
2178
2186
|
const p = e.tabs.map((d, m) => ({
|
|
2179
2187
|
divided: m === 0,
|
|
2180
2188
|
label: d.title,
|
|
@@ -2210,13 +2218,13 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2210
2218
|
}, i = (p, d) => {
|
|
2211
2219
|
t("actionCommand", p, d);
|
|
2212
2220
|
};
|
|
2213
|
-
return (p, d) => (u(), g(
|
|
2221
|
+
return (p, d) => (u(), g(n(V), {
|
|
2214
2222
|
class: "x-mask-toolbar",
|
|
2215
2223
|
align: "center"
|
|
2216
2224
|
}, {
|
|
2217
2225
|
default: f(() => [
|
|
2218
|
-
k(
|
|
2219
|
-
icon:
|
|
2226
|
+
k(n(te), {
|
|
2227
|
+
icon: n(Po),
|
|
2220
2228
|
menus: l.value,
|
|
2221
2229
|
dropdown: { size: "small" },
|
|
2222
2230
|
mode: "icon",
|
|
@@ -2225,19 +2233,19 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2225
2233
|
onCommand: c
|
|
2226
2234
|
}, {
|
|
2227
2235
|
item: f(({ item: m }) => [
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
["other", "all"].includes(m.command) ? h("", !0) : (u(), g(
|
|
2236
|
+
F("span", Un, [
|
|
2237
|
+
A(j(m.label) + " ", 1),
|
|
2238
|
+
["other", "all"].includes(m.command) ? h("", !0) : (u(), g(n(pe), {
|
|
2231
2239
|
key: 0,
|
|
2232
|
-
onClick:
|
|
2233
|
-
icon:
|
|
2240
|
+
onClick: bt((_) => s(m), ["stop"]),
|
|
2241
|
+
icon: n(St)
|
|
2234
2242
|
}, null, 8, ["onClick", "icon"]))
|
|
2235
2243
|
])
|
|
2236
2244
|
]),
|
|
2237
2245
|
_: 1
|
|
2238
2246
|
}, 8, ["icon", "menus"]),
|
|
2239
|
-
k(
|
|
2240
|
-
e.actions ? (u(), g(
|
|
2247
|
+
k(n(se), { direction: "vertical" }),
|
|
2248
|
+
e.actions ? (u(), g(n(tt), {
|
|
2241
2249
|
key: 0,
|
|
2242
2250
|
circle: "",
|
|
2243
2251
|
mode: "icon",
|
|
@@ -2247,69 +2255,69 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2247
2255
|
onClick: r,
|
|
2248
2256
|
onCommand: i
|
|
2249
2257
|
}, null, 8, ["items"])) : h("", !0),
|
|
2250
|
-
e.actions ? (u(), g(
|
|
2258
|
+
e.actions ? (u(), g(n(se), {
|
|
2251
2259
|
key: 1,
|
|
2252
2260
|
direction: "vertical"
|
|
2253
2261
|
})) : h("", !0),
|
|
2254
|
-
e.theme ? (u(), g(
|
|
2255
|
-
e.theme ? (u(), g(
|
|
2262
|
+
e.theme ? (u(), g(Kn, { key: 2 })) : h("", !0),
|
|
2263
|
+
e.theme ? (u(), g(n(se), {
|
|
2256
2264
|
key: 3,
|
|
2257
2265
|
direction: "vertical"
|
|
2258
2266
|
})) : h("", !0),
|
|
2259
|
-
|
|
2267
|
+
$(p.$slots, "default")
|
|
2260
2268
|
]),
|
|
2261
2269
|
_: 3
|
|
2262
2270
|
}));
|
|
2263
2271
|
}
|
|
2264
|
-
}),
|
|
2272
|
+
}), Wn = /* @__PURE__ */ P({
|
|
2265
2273
|
__name: "Avatar",
|
|
2266
2274
|
props: {
|
|
2267
2275
|
avatar: {}
|
|
2268
2276
|
},
|
|
2269
2277
|
setup(a) {
|
|
2270
|
-
const
|
|
2271
|
-
return (e, t) => (u(), g(
|
|
2278
|
+
const o = a;
|
|
2279
|
+
return (e, t) => (u(), g(n(wt), {
|
|
2272
2280
|
width: 200,
|
|
2273
2281
|
"popper-class": "x-mask-avatar__popper",
|
|
2274
2282
|
disabled: !e.$slots.default
|
|
2275
2283
|
}, {
|
|
2276
2284
|
reference: f(() => [
|
|
2277
|
-
k(
|
|
2285
|
+
k(n(to), {
|
|
2278
2286
|
class: "x-mask-avatar",
|
|
2279
2287
|
shape: "circle",
|
|
2280
|
-
icon:
|
|
2281
|
-
src:
|
|
2288
|
+
icon: n(Bo),
|
|
2289
|
+
src: o.avatar,
|
|
2282
2290
|
size: 26
|
|
2283
2291
|
}, null, 8, ["icon", "src"])
|
|
2284
2292
|
]),
|
|
2285
2293
|
default: f(() => [
|
|
2286
|
-
e.$slots.default ?
|
|
2294
|
+
e.$slots.default ? $(e.$slots, "default", { key: 0 }) : h("", !0)
|
|
2287
2295
|
]),
|
|
2288
2296
|
_: 3
|
|
2289
2297
|
}, 8, ["disabled"]));
|
|
2290
2298
|
}
|
|
2291
|
-
}),
|
|
2299
|
+
}), ft = /* @__PURE__ */ P({
|
|
2292
2300
|
__name: "Content",
|
|
2293
2301
|
props: {
|
|
2294
2302
|
createView: { type: Function },
|
|
2295
2303
|
exclude: {}
|
|
2296
2304
|
},
|
|
2297
2305
|
setup(a) {
|
|
2298
|
-
const
|
|
2299
|
-
return (e, t) => (u(), g(
|
|
2306
|
+
const o = a;
|
|
2307
|
+
return (e, t) => (u(), g(n(V), {
|
|
2300
2308
|
class: "x-mask__content",
|
|
2301
2309
|
flex: !1,
|
|
2302
2310
|
grow: "",
|
|
2303
2311
|
padding: !1
|
|
2304
2312
|
}, {
|
|
2305
2313
|
default: f(() => [
|
|
2306
|
-
|
|
2307
|
-
k(
|
|
2314
|
+
$(e.$slots, "default"),
|
|
2315
|
+
k(n(Yo), null, {
|
|
2308
2316
|
default: f(({ Component: l, route: s }) => [
|
|
2309
|
-
(u(), g(
|
|
2310
|
-
exclude:
|
|
2317
|
+
(u(), g(Ht, {
|
|
2318
|
+
exclude: o.exclude
|
|
2311
2319
|
}, [
|
|
2312
|
-
l ? (u(), g(
|
|
2320
|
+
l ? (u(), g(J(o.createView(l, s)), {
|
|
2313
2321
|
key: s.fullPath
|
|
2314
2322
|
})) : h("", !0)
|
|
2315
2323
|
], 1032, ["exclude"]))
|
|
@@ -2321,344 +2329,344 @@ const zo = /* @__PURE__ */ j("div", { class: "x-mask-sidebar__helper" }, null, -
|
|
|
2321
2329
|
}));
|
|
2322
2330
|
}
|
|
2323
2331
|
});
|
|
2324
|
-
function
|
|
2325
|
-
const a =
|
|
2332
|
+
function Yn() {
|
|
2333
|
+
const a = I(!1), o = I(""), e = I(!1);
|
|
2326
2334
|
return {
|
|
2327
2335
|
collapsed: a,
|
|
2328
|
-
keyword:
|
|
2336
|
+
keyword: o,
|
|
2329
2337
|
favorite: e
|
|
2330
2338
|
};
|
|
2331
2339
|
}
|
|
2332
|
-
function
|
|
2333
|
-
const
|
|
2334
|
-
return
|
|
2340
|
+
function Jn(a) {
|
|
2341
|
+
const o = Mt();
|
|
2342
|
+
return b(() => {
|
|
2335
2343
|
const e = a.home;
|
|
2336
2344
|
return Object.assign(
|
|
2337
|
-
{ id:
|
|
2345
|
+
{ id: o, url: "/", name: "MaskHome", icon: Vo, closable: !1 },
|
|
2338
2346
|
typeof e == "string" ? { url: e } : e || {}
|
|
2339
2347
|
);
|
|
2340
2348
|
});
|
|
2341
2349
|
}
|
|
2342
|
-
function
|
|
2350
|
+
function Dt(a, o) {
|
|
2343
2351
|
let e = [];
|
|
2344
2352
|
return a.forEach((t) => {
|
|
2345
|
-
t =
|
|
2353
|
+
t = o ? o(t) : t, t.children ? e = e.concat(Dt(t.children, o)) : e.push(t);
|
|
2346
2354
|
}), e;
|
|
2347
2355
|
}
|
|
2348
|
-
function
|
|
2349
|
-
const e =
|
|
2350
|
-
const
|
|
2356
|
+
function qn(a, o) {
|
|
2357
|
+
const e = Ze(), t = Ie([]), l = Ie([]), s = b(() => Dt(t.value, a.menuAdapter)), c = b(() => No(s.value, "id")), r = I(null), i = (y) => {
|
|
2358
|
+
const C = typeof y == "object" ? y.id : y, w = c.value.get(C);
|
|
2351
2359
|
if (!w) {
|
|
2352
2360
|
console.warn("找不到菜单", y);
|
|
2353
2361
|
return;
|
|
2354
2362
|
}
|
|
2355
|
-
const { type:
|
|
2356
|
-
if (!
|
|
2357
|
-
r.value = w,
|
|
2363
|
+
const { type: E = "route", url: B, title: S, icon: O } = w;
|
|
2364
|
+
if (!B) {
|
|
2365
|
+
r.value = w, o("select", w);
|
|
2358
2366
|
return;
|
|
2359
2367
|
}
|
|
2360
|
-
if (
|
|
2361
|
-
|
|
2368
|
+
if (E === "route") {
|
|
2369
|
+
Xo(B) || B.startsWith("//") ? window.open(B) : (r.value = w, e.push(B).catch((T) => T));
|
|
2362
2370
|
return;
|
|
2363
2371
|
}
|
|
2364
|
-
if (
|
|
2365
|
-
window.open(
|
|
2372
|
+
if (E === "window") {
|
|
2373
|
+
window.open(B);
|
|
2366
2374
|
return;
|
|
2367
2375
|
}
|
|
2368
|
-
|
|
2376
|
+
E === "dialog" && ot({
|
|
2369
2377
|
resizable: !0,
|
|
2370
2378
|
bodyPadding: !1,
|
|
2371
2379
|
width: "80%",
|
|
2372
2380
|
height: "80%",
|
|
2373
|
-
title:
|
|
2374
|
-
icon:
|
|
2375
|
-
src:
|
|
2381
|
+
title: S,
|
|
2382
|
+
icon: O,
|
|
2383
|
+
src: B
|
|
2376
2384
|
});
|
|
2377
2385
|
}, p = async () => {
|
|
2378
2386
|
t.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], l.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
|
|
2379
2387
|
}, d = (y) => {
|
|
2380
2388
|
l.value = [y, ...l.value], a.addFavorite && a.addFavorite(y);
|
|
2381
2389
|
}, m = (y) => {
|
|
2382
|
-
l.value = l.value.filter((
|
|
2383
|
-
},
|
|
2384
|
-
|
|
2390
|
+
l.value = l.value.filter((C) => C.id !== y.id), a.removeFavorite && a.removeFavorite(y);
|
|
2391
|
+
}, _ = (y) => !!l.value.find((C) => C === y || C.id === y.id), v = (y) => {
|
|
2392
|
+
_(y) ? m(y) : d(y);
|
|
2385
2393
|
};
|
|
2386
|
-
return
|
|
2394
|
+
return Ye(p), {
|
|
2387
2395
|
menus: t,
|
|
2388
2396
|
favorites: l,
|
|
2389
2397
|
flatMenus: s,
|
|
2390
2398
|
active: r,
|
|
2391
2399
|
select: i,
|
|
2392
|
-
toggleFavorite:
|
|
2400
|
+
toggleFavorite: v
|
|
2393
2401
|
};
|
|
2394
2402
|
}
|
|
2395
|
-
function
|
|
2396
|
-
const s =
|
|
2397
|
-
() => i.value.slice(0, m.value).filter((
|
|
2398
|
-
),
|
|
2399
|
-
c.push(
|
|
2400
|
-
},
|
|
2401
|
-
|
|
2403
|
+
function Gn(a, o, e, t, l) {
|
|
2404
|
+
const s = Bt(), c = Ze(), r = {}, i = I([]), p = I(), { width: d } = Tt(p), m = b(() => Math.floor(d.value / Rn)), _ = b(
|
|
2405
|
+
() => i.value.slice(0, m.value).filter((M) => !M.dialog)
|
|
2406
|
+
), v = b(() => i.value.slice(m.value)), y = (M) => e.value.find((R) => R.url === M), C = (M) => s.fullPath === M.url, w = (M) => l.value.id === M ? l.value : i.value.find((R) => R.id === M), E = I(""), B = b(() => w(E.value)), S = (M) => {
|
|
2407
|
+
c.push(M.url).catch((R) => R);
|
|
2408
|
+
}, O = (M) => {
|
|
2409
|
+
E.value = M.id, s.fullPath !== M.url && S(M);
|
|
2402
2410
|
}, T = () => {
|
|
2403
|
-
|
|
2404
|
-
}, N = (
|
|
2405
|
-
const
|
|
2406
|
-
|
|
2407
|
-
}, x = async (
|
|
2408
|
-
const { url:
|
|
2411
|
+
S(l.value);
|
|
2412
|
+
}, N = (M) => {
|
|
2413
|
+
const R = i.value.find((X) => X.url === M.url || X.id === M.id);
|
|
2414
|
+
R ? O(R) : (i.value.unshift(M), O(M));
|
|
2415
|
+
}, x = async (M) => {
|
|
2416
|
+
const { url: R = s.fullPath, icon: X, title: Se = "新建标签页" } = M || {}, ze = r[R], Ae = Mt(), De = Et(R);
|
|
2409
2417
|
return {
|
|
2410
|
-
id:
|
|
2411
|
-
name:
|
|
2412
|
-
url:
|
|
2413
|
-
icon:
|
|
2414
|
-
title:
|
|
2418
|
+
id: Ae,
|
|
2419
|
+
name: De,
|
|
2420
|
+
url: R,
|
|
2421
|
+
icon: X,
|
|
2422
|
+
title: Se,
|
|
2415
2423
|
closable: !0,
|
|
2416
|
-
menu:
|
|
2417
|
-
|
|
2424
|
+
menu: M,
|
|
2425
|
+
...ze ? await ze() : {}
|
|
2418
2426
|
};
|
|
2419
|
-
},
|
|
2420
|
-
if (await
|
|
2427
|
+
}, K = async (M) => {
|
|
2428
|
+
if (await Fe.confirm("是否关闭页签", "提示", {
|
|
2421
2429
|
type: "warning"
|
|
2422
2430
|
}).catch(() => !1)) {
|
|
2423
|
-
if (i.value = i.value.filter((
|
|
2424
|
-
const
|
|
2425
|
-
|
|
2431
|
+
if (i.value = i.value.filter((X) => X.id !== M.id), E.value === M.id) {
|
|
2432
|
+
const X = i.value[0];
|
|
2433
|
+
S(X || l.value);
|
|
2426
2434
|
}
|
|
2427
|
-
return
|
|
2435
|
+
return M;
|
|
2428
2436
|
}
|
|
2429
|
-
},
|
|
2430
|
-
const
|
|
2431
|
-
if (
|
|
2432
|
-
const
|
|
2433
|
-
i.value.splice(
|
|
2437
|
+
}, H = (M) => {
|
|
2438
|
+
const R = i.value.findIndex((X) => X.id === M.id);
|
|
2439
|
+
if (R >= 0) {
|
|
2440
|
+
const X = i.value[R];
|
|
2441
|
+
i.value.splice(R, 1, Object.assign(X, M));
|
|
2434
2442
|
}
|
|
2435
|
-
},
|
|
2436
|
-
if (!await
|
|
2443
|
+
}, ue = async () => {
|
|
2444
|
+
if (!await Fe.confirm("是否关闭全部页签", "提示", {
|
|
2437
2445
|
type: "warning"
|
|
2438
2446
|
}).catch(() => !1))
|
|
2439
2447
|
return;
|
|
2440
|
-
const
|
|
2441
|
-
return i.value = [],
|
|
2442
|
-
},
|
|
2443
|
-
if (!await
|
|
2448
|
+
const R = i.value;
|
|
2449
|
+
return i.value = [], O(l.value), R;
|
|
2450
|
+
}, q = async () => {
|
|
2451
|
+
if (!await Fe.confirm("是否关闭其他页签", "提示", {
|
|
2444
2452
|
type: "warning"
|
|
2445
2453
|
}).catch(() => !1))
|
|
2446
2454
|
return;
|
|
2447
|
-
const
|
|
2448
|
-
return i.value = i.value.filter((
|
|
2449
|
-
}, ee = (
|
|
2450
|
-
const
|
|
2451
|
-
i.value = [
|
|
2452
|
-
},
|
|
2453
|
-
await
|
|
2454
|
-
const
|
|
2455
|
-
if (
|
|
2456
|
-
|
|
2455
|
+
const R = i.value.filter((X) => X.id !== E.value);
|
|
2456
|
+
return i.value = i.value.filter((X) => X.id === E.value), R;
|
|
2457
|
+
}, ee = (M) => {
|
|
2458
|
+
const R = i.value.filter((X) => X.id !== M.id);
|
|
2459
|
+
i.value = [M, ...R], O(M);
|
|
2460
|
+
}, ce = async () => {
|
|
2461
|
+
await he();
|
|
2462
|
+
const M = l.value.url === s.fullPath, R = y(s.fullPath);
|
|
2463
|
+
if (M)
|
|
2464
|
+
E.value = l.value.id;
|
|
2457
2465
|
else {
|
|
2458
|
-
const
|
|
2459
|
-
N(
|
|
2466
|
+
const X = await x(R);
|
|
2467
|
+
N(X);
|
|
2460
2468
|
}
|
|
2461
|
-
await
|
|
2469
|
+
await he(), t.value = R || null;
|
|
2462
2470
|
};
|
|
2463
|
-
return
|
|
2471
|
+
return U(e, ce), U(s, ce, { immediate: !0 }), $e(Rt, r), {
|
|
2464
2472
|
tabRef: p,
|
|
2465
2473
|
tabs: i,
|
|
2466
|
-
showTabs:
|
|
2467
|
-
currentTab:
|
|
2468
|
-
changeTab:
|
|
2469
|
-
removeTab:
|
|
2470
|
-
updateTab:
|
|
2474
|
+
showTabs: _,
|
|
2475
|
+
currentTab: B,
|
|
2476
|
+
changeTab: S,
|
|
2477
|
+
removeTab: K,
|
|
2478
|
+
updateTab: H,
|
|
2471
2479
|
addTab: N,
|
|
2472
2480
|
home: l,
|
|
2473
|
-
tabValue:
|
|
2474
|
-
isCurrentTab:
|
|
2481
|
+
tabValue: E,
|
|
2482
|
+
isCurrentTab: C,
|
|
2475
2483
|
activeHome: T,
|
|
2476
|
-
activeTab:
|
|
2477
|
-
dropdownTabs:
|
|
2478
|
-
removeAllTabs:
|
|
2479
|
-
removeOtherTabs:
|
|
2484
|
+
activeTab: O,
|
|
2485
|
+
dropdownTabs: v,
|
|
2486
|
+
removeAllTabs: ue,
|
|
2487
|
+
removeOtherTabs: q,
|
|
2480
2488
|
moveToShow: ee
|
|
2481
2489
|
};
|
|
2482
2490
|
}
|
|
2483
|
-
function
|
|
2484
|
-
const
|
|
2485
|
-
const T =
|
|
2486
|
-
if (
|
|
2487
|
-
return
|
|
2491
|
+
function Zn(a) {
|
|
2492
|
+
const o = /* @__PURE__ */ new Map(), e = I([]), t = Re({}), l = fe(), s = {}, { updateTab: c, isCurrentTab: r, activeHome: i, tabs: p } = a, d = (S, O) => {
|
|
2493
|
+
const T = O.fullPath;
|
|
2494
|
+
if (o.has(T))
|
|
2495
|
+
return o.get(T);
|
|
2488
2496
|
{
|
|
2489
2497
|
const N = Et(T), x = {
|
|
2490
2498
|
name: N,
|
|
2491
2499
|
setup() {
|
|
2492
|
-
const
|
|
2493
|
-
return
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
), () =>
|
|
2497
|
-
|
|
2500
|
+
const K = b(() => t[T] || document.body), H = b(() => !t[T]), ue = b(() => !e.value.includes(N));
|
|
2501
|
+
return $e(
|
|
2502
|
+
Jo,
|
|
2503
|
+
be({ ...O })
|
|
2504
|
+
), () => ue.value ? ae(
|
|
2505
|
+
vt,
|
|
2498
2506
|
{
|
|
2499
|
-
to:
|
|
2500
|
-
disabled:
|
|
2507
|
+
to: K.value,
|
|
2508
|
+
disabled: H.value
|
|
2501
2509
|
},
|
|
2502
|
-
[ae(
|
|
2510
|
+
[ae(S)]
|
|
2503
2511
|
) : null;
|
|
2504
2512
|
}
|
|
2505
2513
|
};
|
|
2506
|
-
return
|
|
2514
|
+
return o.set(T, x), x;
|
|
2507
2515
|
}
|
|
2508
|
-
}, m = (
|
|
2509
|
-
|
|
2510
|
-
const
|
|
2511
|
-
|
|
2512
|
-
},
|
|
2513
|
-
|
|
2514
|
-
m(
|
|
2516
|
+
}, m = (S) => {
|
|
2517
|
+
S.dialog = void 0, delete t[S.url];
|
|
2518
|
+
const O = s[S.id];
|
|
2519
|
+
O && (O.destroy(), delete s[S.id], c(S));
|
|
2520
|
+
}, _ = (S = []) => {
|
|
2521
|
+
S.forEach((O) => {
|
|
2522
|
+
m(O);
|
|
2515
2523
|
});
|
|
2516
|
-
},
|
|
2517
|
-
|
|
2518
|
-
...
|
|
2524
|
+
}, v = async (S) => {
|
|
2525
|
+
S.dialog = {
|
|
2526
|
+
...S.dialog,
|
|
2519
2527
|
onMinimized: () => {
|
|
2520
|
-
m(
|
|
2528
|
+
m(S);
|
|
2521
2529
|
},
|
|
2522
2530
|
onClose: async () => {
|
|
2523
|
-
m(
|
|
2531
|
+
m(S), p.value = p.value.filter((T) => T.id !== S.id);
|
|
2524
2532
|
}
|
|
2525
|
-
}, c(
|
|
2526
|
-
const
|
|
2533
|
+
}, c(S);
|
|
2534
|
+
const O = ot(
|
|
2527
2535
|
{
|
|
2528
|
-
title:
|
|
2529
|
-
icon:
|
|
2536
|
+
title: S.title,
|
|
2537
|
+
icon: S.icon,
|
|
2530
2538
|
modal: !1,
|
|
2531
2539
|
resizable: !0,
|
|
2532
2540
|
draggable: !0,
|
|
2533
2541
|
maximizable: !0,
|
|
2534
2542
|
minimizable: !0,
|
|
2535
|
-
...
|
|
2543
|
+
...S.dialog,
|
|
2536
2544
|
onOpen(T) {
|
|
2537
|
-
t[
|
|
2545
|
+
t[S.url] = T.refs.panelRef?.bodyRef?.$el;
|
|
2538
2546
|
}
|
|
2539
2547
|
},
|
|
2540
2548
|
l?.appContext
|
|
2541
2549
|
);
|
|
2542
|
-
return await
|
|
2543
|
-
}, y = async (
|
|
2544
|
-
e.value = [
|
|
2545
|
-
},
|
|
2546
|
-
e.value =
|
|
2547
|
-
}, w = (
|
|
2548
|
-
if (
|
|
2549
|
-
const
|
|
2550
|
+
return await he(), r(S) && i(), s[S.id] = O, O;
|
|
2551
|
+
}, y = async (S) => {
|
|
2552
|
+
e.value = [S.name], await he(), e.value = [];
|
|
2553
|
+
}, C = async (S) => {
|
|
2554
|
+
e.value = S.map((O) => O.name), await he(), e.value = [];
|
|
2555
|
+
}, w = (S) => (S.preventDefault(), !1), E = (S) => {
|
|
2556
|
+
if (S.dataTransfer) {
|
|
2557
|
+
const O = S.dataTransfer.getData("tab"), T = p.value.find((N) => N.id === O);
|
|
2550
2558
|
if (T) {
|
|
2551
|
-
const { clientX: N, clientY: x } =
|
|
2559
|
+
const { clientX: N, clientY: x } = S;
|
|
2552
2560
|
T.dialog = {
|
|
2553
2561
|
left: N,
|
|
2554
2562
|
top: x
|
|
2555
|
-
},
|
|
2563
|
+
}, v(T);
|
|
2556
2564
|
}
|
|
2557
2565
|
}
|
|
2558
|
-
},
|
|
2559
|
-
return
|
|
2566
|
+
}, B = (S) => !!t[S];
|
|
2567
|
+
return je(document, "dragover", w), je(document, "drop", E), {
|
|
2560
2568
|
createView: d,
|
|
2561
|
-
openDialog:
|
|
2569
|
+
openDialog: v,
|
|
2562
2570
|
refresh: y,
|
|
2563
2571
|
exclude: e,
|
|
2564
|
-
cleanCache:
|
|
2565
|
-
hasDialog:
|
|
2572
|
+
cleanCache: C,
|
|
2573
|
+
hasDialog: B,
|
|
2566
2574
|
closeDialog: m,
|
|
2567
|
-
closeDialogs:
|
|
2575
|
+
closeDialogs: _
|
|
2568
2576
|
};
|
|
2569
2577
|
}
|
|
2570
|
-
const
|
|
2578
|
+
const Za = /* @__PURE__ */ P({
|
|
2571
2579
|
name: "XMask",
|
|
2572
2580
|
__name: "Mask",
|
|
2573
|
-
props:
|
|
2581
|
+
props: An,
|
|
2574
2582
|
emits: ["select", "actionClick", "actionCommand"],
|
|
2575
|
-
setup(a, { emit:
|
|
2576
|
-
const e = a, t =
|
|
2583
|
+
setup(a, { emit: o }) {
|
|
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), {
|
|
2577
2585
|
tabRef: y,
|
|
2578
|
-
showTabs:
|
|
2586
|
+
showTabs: C,
|
|
2579
2587
|
currentTab: w,
|
|
2580
|
-
changeTab:
|
|
2581
|
-
removeTab:
|
|
2582
|
-
tabs:
|
|
2583
|
-
updateTab:
|
|
2588
|
+
changeTab: E,
|
|
2589
|
+
removeTab: B,
|
|
2590
|
+
tabs: S,
|
|
2591
|
+
updateTab: O,
|
|
2584
2592
|
isCurrentTab: T,
|
|
2585
2593
|
activeHome: N,
|
|
2586
2594
|
removeAllTabs: x,
|
|
2587
|
-
removeOtherTabs:
|
|
2588
|
-
dropdownTabs:
|
|
2589
|
-
moveToShow:
|
|
2590
|
-
} =
|
|
2591
|
-
tabs:
|
|
2592
|
-
updateTab:
|
|
2595
|
+
removeOtherTabs: K,
|
|
2596
|
+
dropdownTabs: H,
|
|
2597
|
+
moveToShow: ue
|
|
2598
|
+
} = Gn(e, t, d, m, l), { createView: q, openDialog: ee, refresh: ce, exclude: M, cleanCache: R, closeDialogs: X } = Zn({
|
|
2599
|
+
tabs: S,
|
|
2600
|
+
updateTab: O,
|
|
2593
2601
|
isCurrentTab: T,
|
|
2594
2602
|
activeHome: N
|
|
2595
|
-
}),
|
|
2596
|
-
await
|
|
2597
|
-
},
|
|
2598
|
-
const
|
|
2599
|
-
|
|
2600
|
-
},
|
|
2601
|
-
const
|
|
2602
|
-
|
|
2603
|
-
},
|
|
2604
|
-
t("actionClick",
|
|
2605
|
-
},
|
|
2606
|
-
t("actionCommand",
|
|
2603
|
+
}), Se = async (L) => {
|
|
2604
|
+
await B(L) && await R([L]);
|
|
2605
|
+
}, ze = async () => {
|
|
2606
|
+
const L = await x();
|
|
2607
|
+
L && (X(L), await R(L));
|
|
2608
|
+
}, Ae = async () => {
|
|
2609
|
+
const L = await K();
|
|
2610
|
+
L && (X(L), await R(L));
|
|
2611
|
+
}, De = (L) => {
|
|
2612
|
+
t("actionClick", L);
|
|
2613
|
+
}, Lt = (L, oe) => {
|
|
2614
|
+
t("actionCommand", L, oe);
|
|
2607
2615
|
};
|
|
2608
|
-
return
|
|
2609
|
-
tabs:
|
|
2616
|
+
return $e(At, {
|
|
2617
|
+
tabs: S,
|
|
2610
2618
|
flatMenus: d,
|
|
2611
2619
|
favorites: p,
|
|
2612
|
-
updateTab:
|
|
2620
|
+
updateTab: O,
|
|
2613
2621
|
active: m,
|
|
2614
2622
|
currentTab: w
|
|
2615
|
-
}), (
|
|
2616
|
-
class:
|
|
2623
|
+
}), (L, oe) => (u(), g(n(V), {
|
|
2624
|
+
class: Y(["x-mask", { "is-disabled": e.disabled }]),
|
|
2617
2625
|
fit: ""
|
|
2618
2626
|
}, {
|
|
2619
2627
|
default: f(() => [
|
|
2620
|
-
e.disabled ? (u(), g(
|
|
2628
|
+
e.disabled ? (u(), g(ft, {
|
|
2621
2629
|
key: 1,
|
|
2622
|
-
createView:
|
|
2623
|
-
exclude:
|
|
2630
|
+
createView: n(q),
|
|
2631
|
+
exclude: n(M)
|
|
2624
2632
|
}, {
|
|
2625
2633
|
default: f(() => [
|
|
2626
|
-
|
|
2634
|
+
L.$slots.default ? $(L.$slots, "default", { key: 0 }) : h("", !0)
|
|
2627
2635
|
]),
|
|
2628
2636
|
_: 3
|
|
2629
|
-
}, 8, ["createView", "exclude"])) : (u(),
|
|
2630
|
-
k(
|
|
2637
|
+
}, 8, ["createView", "exclude"])) : (u(), z(W, { key: 0 }, [
|
|
2638
|
+
k(En, { collapsed: n(s) }, {
|
|
2631
2639
|
brand: f(() => [
|
|
2632
|
-
k(
|
|
2640
|
+
k(In, {
|
|
2633
2641
|
logo: e.logo,
|
|
2634
2642
|
title: e.title,
|
|
2635
|
-
url:
|
|
2636
|
-
collapsed:
|
|
2643
|
+
url: n(l).url,
|
|
2644
|
+
collapsed: n(s)
|
|
2637
2645
|
}, null, 8, ["logo", "title", "url", "collapsed"])
|
|
2638
2646
|
]),
|
|
2639
2647
|
default: f(() => [
|
|
2640
|
-
k(
|
|
2641
|
-
collasped:
|
|
2642
|
-
"onUpdate:collasped":
|
|
2643
|
-
favorite:
|
|
2644
|
-
"onUpdate:favorite":
|
|
2645
|
-
keyword:
|
|
2646
|
-
"onUpdate:keyword":
|
|
2648
|
+
k(Pn, {
|
|
2649
|
+
collasped: n(s),
|
|
2650
|
+
"onUpdate:collasped": oe[0] || (oe[0] = (Ce) => Pe(s) ? s.value = Ce : null),
|
|
2651
|
+
favorite: n(r),
|
|
2652
|
+
"onUpdate:favorite": oe[1] || (oe[1] = (Ce) => Pe(r) ? r.value = Ce : null),
|
|
2653
|
+
keyword: n(c),
|
|
2654
|
+
"onUpdate:keyword": oe[2] || (oe[2] = (Ce) => Pe(c) ? c.value = Ce : null)
|
|
2647
2655
|
}, null, 8, ["collasped", "favorite", "keyword"]),
|
|
2648
|
-
k(
|
|
2649
|
-
collapse:
|
|
2650
|
-
keyword:
|
|
2651
|
-
favorite:
|
|
2652
|
-
favorites:
|
|
2653
|
-
flatMenus:
|
|
2654
|
-
menus:
|
|
2655
|
-
active:
|
|
2656
|
-
onSelect:
|
|
2656
|
+
k(On, {
|
|
2657
|
+
collapse: n(s),
|
|
2658
|
+
keyword: n(c),
|
|
2659
|
+
favorite: n(r),
|
|
2660
|
+
favorites: n(p),
|
|
2661
|
+
flatMenus: n(d),
|
|
2662
|
+
menus: n(i),
|
|
2663
|
+
active: n(m),
|
|
2664
|
+
onSelect: n(_)
|
|
2657
2665
|
}, null, 8, ["collapse", "keyword", "favorite", "favorites", "flatMenus", "menus", "active", "onSelect"])
|
|
2658
2666
|
]),
|
|
2659
2667
|
_: 1
|
|
2660
2668
|
}, 8, ["collapsed"]),
|
|
2661
|
-
k(
|
|
2669
|
+
k(n(V), {
|
|
2662
2670
|
class: "x-mask__main",
|
|
2663
2671
|
grow: "",
|
|
2664
2672
|
shrink: "",
|
|
@@ -2666,44 +2674,44 @@ const Ha = /* @__PURE__ */ V({
|
|
|
2666
2674
|
direction: "column"
|
|
2667
2675
|
}, {
|
|
2668
2676
|
default: f(() => [
|
|
2669
|
-
k(
|
|
2677
|
+
k(n(V), {
|
|
2670
2678
|
class: "x-mask-topbar",
|
|
2671
2679
|
justify: "space-between",
|
|
2672
2680
|
align: "center"
|
|
2673
2681
|
}, {
|
|
2674
2682
|
default: f(() => [
|
|
2675
|
-
k(
|
|
2683
|
+
k(Ln, {
|
|
2676
2684
|
ref_key: "tabRef",
|
|
2677
2685
|
ref: y,
|
|
2678
|
-
favorites:
|
|
2679
|
-
tabs:
|
|
2680
|
-
home:
|
|
2681
|
-
value:
|
|
2682
|
-
onClick:
|
|
2683
|
-
onToggleFavorite:
|
|
2684
|
-
onRemove:
|
|
2685
|
-
onDialog:
|
|
2686
|
-
onRefresh:
|
|
2686
|
+
favorites: n(p),
|
|
2687
|
+
tabs: n(C),
|
|
2688
|
+
home: n(l),
|
|
2689
|
+
value: n(w)?.id,
|
|
2690
|
+
onClick: n(E),
|
|
2691
|
+
onToggleFavorite: n(v),
|
|
2692
|
+
onRemove: Se,
|
|
2693
|
+
onDialog: n(ee),
|
|
2694
|
+
onRefresh: n(ce)
|
|
2687
2695
|
}, null, 8, ["favorites", "tabs", "home", "value", "onClick", "onToggleFavorite", "onDialog", "onRefresh"]),
|
|
2688
|
-
k(
|
|
2689
|
-
tabs:
|
|
2696
|
+
k(Hn, {
|
|
2697
|
+
tabs: n(H),
|
|
2690
2698
|
actions: e.actions,
|
|
2691
2699
|
theme: e.theme,
|
|
2692
|
-
onCloseOtherTabs:
|
|
2693
|
-
onCloseAllTabs:
|
|
2694
|
-
onCloseTab:
|
|
2695
|
-
onClickTab:
|
|
2696
|
-
onActionClick:
|
|
2697
|
-
onActionCommand:
|
|
2700
|
+
onCloseOtherTabs: Ae,
|
|
2701
|
+
onCloseAllTabs: ze,
|
|
2702
|
+
onCloseTab: Se,
|
|
2703
|
+
onClickTab: n(ue),
|
|
2704
|
+
onActionClick: De,
|
|
2705
|
+
onActionCommand: Lt
|
|
2698
2706
|
}, {
|
|
2699
2707
|
default: f(() => [
|
|
2700
|
-
k(
|
|
2708
|
+
k(Wn, {
|
|
2701
2709
|
avatar: e.avatar
|
|
2702
|
-
},
|
|
2703
|
-
|
|
2710
|
+
}, de({ _: 2 }, [
|
|
2711
|
+
L.$slots.user ? {
|
|
2704
2712
|
name: "default",
|
|
2705
2713
|
fn: f(() => [
|
|
2706
|
-
|
|
2714
|
+
$(L.$slots, "user")
|
|
2707
2715
|
]),
|
|
2708
2716
|
key: "0"
|
|
2709
2717
|
} : void 0
|
|
@@ -2714,12 +2722,12 @@ const Ha = /* @__PURE__ */ V({
|
|
|
2714
2722
|
]),
|
|
2715
2723
|
_: 3
|
|
2716
2724
|
}),
|
|
2717
|
-
k(
|
|
2718
|
-
createView:
|
|
2719
|
-
exclude:
|
|
2725
|
+
k(ft, {
|
|
2726
|
+
createView: n(q),
|
|
2727
|
+
exclude: n(M)
|
|
2720
2728
|
}, {
|
|
2721
2729
|
default: f(() => [
|
|
2722
|
-
|
|
2730
|
+
L.$slots.default ? $(L.$slots, "default", { key: 0 }) : h("", !0)
|
|
2723
2731
|
]),
|
|
2724
2732
|
_: 3
|
|
2725
2733
|
}, 8, ["createView", "exclude"])
|
|
@@ -2732,33 +2740,33 @@ const Ha = /* @__PURE__ */ V({
|
|
|
2732
2740
|
}, 8, ["class"]));
|
|
2733
2741
|
}
|
|
2734
2742
|
});
|
|
2735
|
-
function
|
|
2736
|
-
const
|
|
2743
|
+
function Qa(a = {}) {
|
|
2744
|
+
const o = Bt(), e = ve(Rt, null), t = ve(At, null);
|
|
2737
2745
|
if (e) {
|
|
2738
2746
|
const s = typeof a == "function" ? a : async () => a;
|
|
2739
|
-
e[
|
|
2747
|
+
e[o.fullPath] = s;
|
|
2740
2748
|
}
|
|
2741
2749
|
return {
|
|
2742
|
-
tab:
|
|
2750
|
+
tab: b(() => t ? t.tabs.value.find((s) => s.url === o.fullPath) : null),
|
|
2743
2751
|
mask: t
|
|
2744
2752
|
};
|
|
2745
2753
|
}
|
|
2746
|
-
const
|
|
2754
|
+
const Qn = /* @__PURE__ */ P({
|
|
2747
2755
|
__name: "SelectEditor",
|
|
2748
2756
|
props: {
|
|
2749
2757
|
options: { default: () => [] }
|
|
2750
2758
|
},
|
|
2751
2759
|
setup(a) {
|
|
2752
|
-
const
|
|
2753
|
-
return (e, t) => (u(), g(
|
|
2760
|
+
const o = a;
|
|
2761
|
+
return (e, t) => (u(), g(n(xt), le(ke(e.$attrs)), {
|
|
2754
2762
|
default: f(() => [
|
|
2755
|
-
(u(!0),
|
|
2763
|
+
(u(!0), z(W, null, Z(o.options, (l, s) => (u(), g(n(Ct), D({
|
|
2756
2764
|
key: `item_${s}_${l.value}`
|
|
2757
|
-
}, l),
|
|
2765
|
+
}, l), de({ _: 2 }, [
|
|
2758
2766
|
e.$slots.option ? {
|
|
2759
2767
|
name: "default",
|
|
2760
2768
|
fn: f(() => [
|
|
2761
|
-
|
|
2769
|
+
$(e.$slots, "option", { option: l })
|
|
2762
2770
|
]),
|
|
2763
2771
|
key: "0"
|
|
2764
2772
|
} : void 0
|
|
@@ -2767,25 +2775,25 @@ const Zo = /* @__PURE__ */ V({
|
|
|
2767
2775
|
_: 3
|
|
2768
2776
|
}, 16));
|
|
2769
2777
|
}
|
|
2770
|
-
}),
|
|
2778
|
+
}), ea = /* @__PURE__ */ P({
|
|
2771
2779
|
__name: "CheckboxEditor",
|
|
2772
2780
|
props: {
|
|
2773
2781
|
options: { default: () => [] },
|
|
2774
2782
|
button: { type: Boolean, default: !1 }
|
|
2775
2783
|
},
|
|
2776
2784
|
setup(a) {
|
|
2777
|
-
const
|
|
2778
|
-
() =>
|
|
2785
|
+
const o = a, e = b(
|
|
2786
|
+
() => re(o.button ? oo : no)
|
|
2779
2787
|
);
|
|
2780
|
-
return (t, l) => (u(), g(
|
|
2788
|
+
return (t, l) => (u(), g(n(ao), le(ke(t.$attrs)), {
|
|
2781
2789
|
default: f(() => [
|
|
2782
|
-
(u(!0),
|
|
2790
|
+
(u(!0), z(W, null, Z(o.options, (s, c) => (u(), g(J(e.value), {
|
|
2783
2791
|
key: `item_${c}_${s.value}`,
|
|
2784
2792
|
label: s.label,
|
|
2785
2793
|
value: s.value
|
|
2786
2794
|
}, {
|
|
2787
2795
|
default: f(() => [
|
|
2788
|
-
|
|
2796
|
+
A(j(s.label), 1)
|
|
2789
2797
|
]),
|
|
2790
2798
|
_: 2
|
|
2791
2799
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -2793,25 +2801,25 @@ const Zo = /* @__PURE__ */ V({
|
|
|
2793
2801
|
_: 1
|
|
2794
2802
|
}, 16));
|
|
2795
2803
|
}
|
|
2796
|
-
}),
|
|
2804
|
+
}), ta = /* @__PURE__ */ P({
|
|
2797
2805
|
__name: "RadioEditor",
|
|
2798
2806
|
props: {
|
|
2799
2807
|
options: { default: () => [] },
|
|
2800
2808
|
button: { type: Boolean, default: !1 }
|
|
2801
2809
|
},
|
|
2802
2810
|
setup(a) {
|
|
2803
|
-
const
|
|
2804
|
-
() =>
|
|
2811
|
+
const o = a, e = b(
|
|
2812
|
+
() => re(o.button ? so : lo)
|
|
2805
2813
|
);
|
|
2806
|
-
return (t, l) => (u(), g(
|
|
2814
|
+
return (t, l) => (u(), g(n(io), le(ke(t.$attrs)), {
|
|
2807
2815
|
default: f(() => [
|
|
2808
|
-
(u(!0),
|
|
2816
|
+
(u(!0), z(W, null, Z(o.options, (s, c) => (u(), g(J(e.value), {
|
|
2809
2817
|
key: `item_${c}_${s.value}`,
|
|
2810
2818
|
label: s.label,
|
|
2811
2819
|
value: s.value
|
|
2812
2820
|
}, {
|
|
2813
2821
|
default: f(() => [
|
|
2814
|
-
|
|
2822
|
+
A(j(s.label), 1)
|
|
2815
2823
|
]),
|
|
2816
2824
|
_: 2
|
|
2817
2825
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -2827,14 +2835,14 @@ const Zo = /* @__PURE__ */ V({
|
|
|
2827
2835
|
}
|
|
2828
2836
|
},
|
|
2829
2837
|
text: {
|
|
2830
|
-
component:
|
|
2838
|
+
component: we,
|
|
2831
2839
|
props: {
|
|
2832
2840
|
clearable: !0
|
|
2833
2841
|
},
|
|
2834
2842
|
defaultValue: ""
|
|
2835
2843
|
},
|
|
2836
2844
|
textarea: {
|
|
2837
|
-
component:
|
|
2845
|
+
component: we,
|
|
2838
2846
|
props: {
|
|
2839
2847
|
type: "textarea",
|
|
2840
2848
|
rows: 2
|
|
@@ -2842,55 +2850,55 @@ const Zo = /* @__PURE__ */ V({
|
|
|
2842
2850
|
defaultValue: ""
|
|
2843
2851
|
},
|
|
2844
2852
|
select: {
|
|
2845
|
-
component:
|
|
2853
|
+
component: Qn,
|
|
2846
2854
|
props: {
|
|
2847
2855
|
clearable: !0
|
|
2848
2856
|
}
|
|
2849
2857
|
},
|
|
2850
2858
|
checkbox: {
|
|
2851
|
-
component:
|
|
2859
|
+
component: ea,
|
|
2852
2860
|
props: {},
|
|
2853
2861
|
defaultValue: []
|
|
2854
2862
|
},
|
|
2855
2863
|
radio: {
|
|
2856
|
-
component:
|
|
2864
|
+
component: ta,
|
|
2857
2865
|
props: {}
|
|
2858
2866
|
},
|
|
2859
2867
|
number: {
|
|
2860
|
-
component:
|
|
2868
|
+
component: ro,
|
|
2861
2869
|
props: {}
|
|
2862
2870
|
},
|
|
2863
2871
|
date: {
|
|
2864
|
-
component:
|
|
2872
|
+
component: at,
|
|
2865
2873
|
props: {}
|
|
2866
2874
|
},
|
|
2867
2875
|
time: {
|
|
2868
|
-
component:
|
|
2876
|
+
component: uo,
|
|
2869
2877
|
props: {}
|
|
2870
2878
|
},
|
|
2871
2879
|
datetime: {
|
|
2872
|
-
component:
|
|
2880
|
+
component: at,
|
|
2873
2881
|
props: {
|
|
2874
2882
|
type: "datetime"
|
|
2875
2883
|
}
|
|
2876
2884
|
},
|
|
2877
2885
|
switch: {
|
|
2878
|
-
component:
|
|
2886
|
+
component: Je,
|
|
2879
2887
|
props: {}
|
|
2880
2888
|
},
|
|
2881
2889
|
rate: {
|
|
2882
|
-
component:
|
|
2890
|
+
component: co,
|
|
2883
2891
|
props: {}
|
|
2884
2892
|
},
|
|
2885
2893
|
slider: {
|
|
2886
|
-
component:
|
|
2894
|
+
component: po,
|
|
2887
2895
|
props: {}
|
|
2888
2896
|
},
|
|
2889
2897
|
cascader: {
|
|
2890
|
-
component:
|
|
2898
|
+
component: fo,
|
|
2891
2899
|
props: {}
|
|
2892
2900
|
}
|
|
2893
|
-
},
|
|
2901
|
+
}, oa = {
|
|
2894
2902
|
/**
|
|
2895
2903
|
* 字段名称
|
|
2896
2904
|
*/
|
|
@@ -3004,17 +3012,17 @@ const Zo = /* @__PURE__ */ V({
|
|
|
3004
3012
|
type: Boolean
|
|
3005
3013
|
}
|
|
3006
3014
|
};
|
|
3007
|
-
async function
|
|
3015
|
+
async function na(a, o) {
|
|
3008
3016
|
const e = a.options;
|
|
3009
|
-
return e ? typeof e == "function" ? await e(
|
|
3017
|
+
return e ? typeof e == "function" ? await e(o) || [] : e : [];
|
|
3010
3018
|
}
|
|
3011
|
-
function
|
|
3012
|
-
const s =
|
|
3013
|
-
return
|
|
3019
|
+
function aa(a, o, e, t, l) {
|
|
3020
|
+
const s = I([]), c = b(() => !t || !l ? {} : Pt(a.cascader).reduce((p, d) => (p[d] = Be(l, d), p), {}));
|
|
3021
|
+
return U(
|
|
3014
3022
|
c,
|
|
3015
3023
|
async (i) => {
|
|
3016
3024
|
if (e.value) {
|
|
3017
|
-
s.value = await
|
|
3025
|
+
s.value = await na(a, i);
|
|
3018
3026
|
const p = t?.exposed?.reset;
|
|
3019
3027
|
p && a.name && p(a.name);
|
|
3020
3028
|
}
|
|
@@ -3023,78 +3031,78 @@ function ta(a, n, e, t, l) {
|
|
|
3023
3031
|
immediate: !0
|
|
3024
3032
|
}
|
|
3025
3033
|
), {
|
|
3026
|
-
editor:
|
|
3034
|
+
editor: b(() => {
|
|
3027
3035
|
const {
|
|
3028
3036
|
editor: i = "text",
|
|
3029
3037
|
placeholder: p,
|
|
3030
3038
|
label: d = "...",
|
|
3031
3039
|
disabled: m,
|
|
3032
|
-
readonly:
|
|
3033
|
-
} = a,
|
|
3040
|
+
readonly: _
|
|
3041
|
+
} = a, v = {
|
|
3034
3042
|
...a.props,
|
|
3035
3043
|
placeholder: p || (p === null ? void 0 : `请输入${d}`),
|
|
3036
3044
|
disabled: m,
|
|
3037
|
-
readonly:
|
|
3045
|
+
readonly: _,
|
|
3038
3046
|
options: s.value,
|
|
3039
|
-
onFocus: () =>
|
|
3040
|
-
onBlur: () =>
|
|
3041
|
-
onChange: (
|
|
3047
|
+
onFocus: () => o("focus"),
|
|
3048
|
+
onBlur: () => o("blur"),
|
|
3049
|
+
onChange: (C) => o("change", C)
|
|
3042
3050
|
}, y = typeof i == "string" ? Ft[i] : {
|
|
3043
3051
|
component: i,
|
|
3044
3052
|
props: {}
|
|
3045
3053
|
};
|
|
3046
|
-
return
|
|
3047
|
-
props:
|
|
3054
|
+
return Lo({}, y, {
|
|
3055
|
+
props: v
|
|
3048
3056
|
});
|
|
3049
3057
|
})
|
|
3050
3058
|
};
|
|
3051
3059
|
}
|
|
3052
|
-
const
|
|
3060
|
+
const sa = {
|
|
3053
3061
|
key: 1,
|
|
3054
3062
|
class: "el-form-item__error"
|
|
3055
|
-
},
|
|
3063
|
+
}, la = {
|
|
3056
3064
|
key: 0,
|
|
3057
3065
|
class: "x-field__tip"
|
|
3058
|
-
},
|
|
3066
|
+
}, ia = /* @__PURE__ */ P({
|
|
3059
3067
|
name: "XField",
|
|
3060
3068
|
__name: "Field",
|
|
3061
|
-
props:
|
|
3069
|
+
props: oa,
|
|
3062
3070
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
3063
|
-
setup(a, { expose:
|
|
3064
|
-
const t = a, l = e, s =
|
|
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(([K, H]) => Be(r, K) === H) : t.visible), p = () => s?.proxy && r && t.name ? Be(r, t.name) ?? t.modelValue : t.modelValue, d = I(p()), { editor: m } = aa(
|
|
3065
3073
|
t,
|
|
3066
3074
|
l,
|
|
3067
3075
|
i,
|
|
3068
3076
|
s,
|
|
3069
3077
|
r
|
|
3070
|
-
),
|
|
3078
|
+
), _ = I(), v = I(), y = b(
|
|
3071
3079
|
() => t.size || c?.size || "default"
|
|
3072
|
-
),
|
|
3080
|
+
), C = b(() => Object.assign(
|
|
3073
3081
|
{},
|
|
3074
3082
|
s?.props.tooltipMessage || {},
|
|
3075
3083
|
typeof t.tooltipMessage == "boolean" ? {} : t.tooltipMessage
|
|
3076
|
-
)), 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, E = b(() => {
|
|
3077
3085
|
const x = s?.props.tooltipMessage ?? t.tooltipMessage;
|
|
3078
3086
|
return {
|
|
3079
3087
|
[`is-tooltip-${t.tooltipPosition}`]: !!x && !!t.tooltipPosition
|
|
3080
3088
|
};
|
|
3081
|
-
}),
|
|
3089
|
+
}), B = b(() => {
|
|
3082
3090
|
const x = s?.proxy;
|
|
3083
3091
|
return {
|
|
3084
|
-
width: t.width ?
|
|
3092
|
+
width: t.width ? Q(t.width) : x && x.inline && x.inlineColumns ? `${100 / x.inlineColumns}%` : null
|
|
3085
3093
|
};
|
|
3086
|
-
}),
|
|
3094
|
+
}), S = b(() => ({
|
|
3087
3095
|
right: typeof t.tooltipPosition == "number" ? `${t.tooltipPosition}px` : void 0
|
|
3088
|
-
})),
|
|
3096
|
+
})), O = b(() => ({
|
|
3089
3097
|
...m.value.props,
|
|
3090
3098
|
modelValue: d.value,
|
|
3091
3099
|
"onUpdate:modelValue": (x) => {
|
|
3092
3100
|
d.value = x;
|
|
3093
3101
|
}
|
|
3094
3102
|
}));
|
|
3095
|
-
return
|
|
3096
|
-
i.value && !
|
|
3097
|
-
}),
|
|
3103
|
+
return U(d, (x, K) => {
|
|
3104
|
+
i.value && !qe(x, K) && (l("update:modelValue", x), s?.proxy && r && t.name && Xe(r, t.name, x));
|
|
3105
|
+
}), U(
|
|
3098
3106
|
() => !s?.proxy || !t.name || !r ? t.modelValue : Be(r, t.name) ?? t.modelValue,
|
|
3099
3107
|
(x) => {
|
|
3100
3108
|
i.value && (d.value = x);
|
|
@@ -3102,98 +3110,98 @@ const na = {
|
|
|
3102
3110
|
{
|
|
3103
3111
|
immediate: !0
|
|
3104
3112
|
}
|
|
3105
|
-
),
|
|
3113
|
+
), U(
|
|
3106
3114
|
i,
|
|
3107
3115
|
(x) => {
|
|
3108
|
-
s?.proxy && r && t.name && (x ? (d.value = p(),
|
|
3116
|
+
s?.proxy && r && t.name && (x ? (d.value = p(), Xe(r, t.name, d.value)) : (d.value = void 0, Xe(r, t.name, void 0)));
|
|
3109
3117
|
},
|
|
3110
3118
|
{
|
|
3111
3119
|
immediate: !0
|
|
3112
3120
|
}
|
|
3113
|
-
),
|
|
3121
|
+
), o({
|
|
3114
3122
|
fieldValue: d,
|
|
3115
|
-
itemRef:
|
|
3116
|
-
editorRef:
|
|
3123
|
+
itemRef: _,
|
|
3124
|
+
editorRef: v,
|
|
3117
3125
|
focus: () => {
|
|
3118
|
-
|
|
3126
|
+
v.value?.focus && v.value.focus();
|
|
3119
3127
|
},
|
|
3120
3128
|
blur: () => {
|
|
3121
|
-
|
|
3129
|
+
v.value?.foucs && v.value.blur();
|
|
3122
3130
|
}
|
|
3123
|
-
}), (x,
|
|
3131
|
+
}), (x, K) => i.value ? (u(), g(n(go), D({
|
|
3124
3132
|
key: 0,
|
|
3125
|
-
class: ["x-field",
|
|
3133
|
+
class: ["x-field", E.value],
|
|
3126
3134
|
ref_key: "itemRef",
|
|
3127
|
-
ref:
|
|
3135
|
+
ref: _,
|
|
3128
3136
|
prop: t.name,
|
|
3129
3137
|
label: x.label,
|
|
3130
3138
|
size: y.value,
|
|
3131
|
-
style:
|
|
3132
|
-
}, x.$attrs),
|
|
3133
|
-
error: f(({ error:
|
|
3134
|
-
|
|
3135
|
-
|
|
3139
|
+
style: B.value
|
|
3140
|
+
}, x.$attrs), de({
|
|
3141
|
+
error: f(({ error: H }) => [
|
|
3142
|
+
$(x.$slots, "error", { error: H }, () => [
|
|
3143
|
+
n(s)?.props.tooltipMessage ?? t.tooltipMessage ? (u(), z("div", {
|
|
3136
3144
|
key: 0,
|
|
3137
3145
|
class: "x-field__info",
|
|
3138
|
-
style:
|
|
3146
|
+
style: me(S.value)
|
|
3139
3147
|
}, [
|
|
3140
|
-
k(
|
|
3141
|
-
content: w(
|
|
3142
|
-
},
|
|
3148
|
+
k(n(ht), D({
|
|
3149
|
+
content: w(H)
|
|
3150
|
+
}, C.value), {
|
|
3143
3151
|
default: f(() => [
|
|
3144
|
-
k(
|
|
3152
|
+
k(n(pe), {
|
|
3145
3153
|
class: "x-field__trigger",
|
|
3146
|
-
icon:
|
|
3154
|
+
icon: n(Io),
|
|
3147
3155
|
size: y.value
|
|
3148
3156
|
}, null, 8, ["icon", "size"])
|
|
3149
3157
|
]),
|
|
3150
3158
|
_: 2
|
|
3151
3159
|
}, 1040, ["content"])
|
|
3152
|
-
], 4)) : (u(),
|
|
3160
|
+
], 4)) : (u(), z("div", sa, j(w(H)), 1))
|
|
3153
3161
|
])
|
|
3154
3162
|
]),
|
|
3155
3163
|
default: f(() => [
|
|
3156
|
-
|
|
3157
|
-
class:
|
|
3164
|
+
F("div", {
|
|
3165
|
+
class: Y(["x-field__editor_wrap", { "is-inline": t.inline }])
|
|
3158
3166
|
}, [
|
|
3159
|
-
|
|
3160
|
-
|
|
3167
|
+
$(x.$slots, "editor", { editor: O.value }, () => [
|
|
3168
|
+
n(m).component ? (u(), g(J(n(m).component), D({
|
|
3161
3169
|
key: 0,
|
|
3162
3170
|
class: "x-field__editor",
|
|
3163
3171
|
ref_key: "editorRef",
|
|
3164
|
-
ref:
|
|
3172
|
+
ref: v,
|
|
3165
3173
|
modelValue: d.value,
|
|
3166
|
-
"onUpdate:modelValue":
|
|
3167
|
-
},
|
|
3174
|
+
"onUpdate:modelValue": K[0] || (K[0] = (H) => d.value = H)
|
|
3175
|
+
}, n(m).props), de({ _: 2 }, [
|
|
3168
3176
|
x.$slots.option ? {
|
|
3169
3177
|
name: "option",
|
|
3170
|
-
fn: f(({ option:
|
|
3171
|
-
|
|
3178
|
+
fn: f(({ option: H }) => [
|
|
3179
|
+
$(x.$slots, "option", { option: H })
|
|
3172
3180
|
]),
|
|
3173
3181
|
key: "0"
|
|
3174
3182
|
} : void 0
|
|
3175
3183
|
]), 1040, ["modelValue"])) : h("", !0)
|
|
3176
3184
|
]),
|
|
3177
|
-
t.tip || x.$slots.tip ? (u(),
|
|
3178
|
-
|
|
3179
|
-
|
|
3185
|
+
t.tip || x.$slots.tip ? (u(), z("div", la, [
|
|
3186
|
+
$(x.$slots, "tip", {}, () => [
|
|
3187
|
+
A(j(t.tip), 1)
|
|
3180
3188
|
])
|
|
3181
3189
|
])) : h("", !0)
|
|
3182
3190
|
], 2),
|
|
3183
|
-
|
|
3191
|
+
$(x.$slots, "default")
|
|
3184
3192
|
]),
|
|
3185
3193
|
_: 2
|
|
3186
3194
|
}, [
|
|
3187
3195
|
x.$slots.label ? {
|
|
3188
3196
|
name: "label",
|
|
3189
3197
|
fn: f(() => [
|
|
3190
|
-
|
|
3198
|
+
$(x.$slots, "label")
|
|
3191
3199
|
]),
|
|
3192
3200
|
key: "0"
|
|
3193
3201
|
} : void 0
|
|
3194
3202
|
]), 1040, ["prop", "label", "size", "class", "style"])) : h("", !0);
|
|
3195
3203
|
}
|
|
3196
|
-
}),
|
|
3204
|
+
}), ra = {
|
|
3197
3205
|
/**
|
|
3198
3206
|
* 表单模型
|
|
3199
3207
|
*/
|
|
@@ -3249,74 +3257,74 @@ const na = {
|
|
|
3249
3257
|
type: [Object, Boolean],
|
|
3250
3258
|
default: void 0
|
|
3251
3259
|
}
|
|
3252
|
-
},
|
|
3260
|
+
}, Nt = Symbol("formInstanceKey"), Xt = Symbol("formModelKey"), ua = /* @__PURE__ */ P({
|
|
3253
3261
|
name: "XForm",
|
|
3254
3262
|
__name: "Form",
|
|
3255
|
-
props:
|
|
3263
|
+
props: ra,
|
|
3256
3264
|
emits: ["change", "submit", "reset"],
|
|
3257
|
-
setup(a, { expose:
|
|
3258
|
-
const t = a, l = e, s =
|
|
3259
|
-
|
|
3265
|
+
setup(a, { expose: o, emit: e }) {
|
|
3266
|
+
const t = a, l = e, s = fe(), c = I(), r = Re(t.model || {}), i = I(!1);
|
|
3267
|
+
$e(Nt, s), $e(Xt, r), U(
|
|
3260
3268
|
() => t.model,
|
|
3261
3269
|
(m) => {
|
|
3262
3270
|
Object.assign(r, m);
|
|
3263
3271
|
},
|
|
3264
3272
|
{ deep: !0 }
|
|
3265
|
-
),
|
|
3266
|
-
l("change",
|
|
3273
|
+
), U(r, () => {
|
|
3274
|
+
l("change", be(r));
|
|
3267
3275
|
});
|
|
3268
3276
|
const p = async () => {
|
|
3269
|
-
await c.value.validate().catch(() => !1) && (l("submit",
|
|
3277
|
+
await c.value.validate().catch(() => !1) && (l("submit", be(r)), t.submitMethod && (i.value = !0, await t.submitMethod(be(r)), i.value = !1));
|
|
3270
3278
|
}, d = (m) => {
|
|
3271
3279
|
c.value.resetFields(m), l("reset");
|
|
3272
3280
|
};
|
|
3273
|
-
return
|
|
3281
|
+
return o({
|
|
3274
3282
|
formRef: c,
|
|
3275
3283
|
model: r,
|
|
3276
3284
|
submit: p,
|
|
3277
3285
|
reset: d
|
|
3278
|
-
}), (m,
|
|
3286
|
+
}), (m, _) => (u(), g(n(yo), D({
|
|
3279
3287
|
ref_key: "formRef",
|
|
3280
3288
|
ref: c,
|
|
3281
3289
|
class: "x-form",
|
|
3282
3290
|
inline: t.inline,
|
|
3283
3291
|
model: r,
|
|
3284
|
-
onKeyup:
|
|
3285
|
-
onSubmit:
|
|
3292
|
+
onKeyup: Wt(p, ["enter"]),
|
|
3293
|
+
onSubmit: _[1] || (_[1] = bt(() => {
|
|
3286
3294
|
}, ["stop", "prevent"]))
|
|
3287
3295
|
}, m.$attrs), {
|
|
3288
3296
|
default: f(() => [
|
|
3289
|
-
|
|
3290
|
-
t.footer ? (u(), g(
|
|
3297
|
+
$(m.$slots, "default"),
|
|
3298
|
+
t.footer ? (u(), g(n(ia), {
|
|
3291
3299
|
key: 0,
|
|
3292
3300
|
editor: "none",
|
|
3293
3301
|
class: "x-form__footer",
|
|
3294
3302
|
label: " "
|
|
3295
3303
|
}, {
|
|
3296
3304
|
editor: f(() => [
|
|
3297
|
-
|
|
3298
|
-
t.submitText ? (u(), g(
|
|
3305
|
+
$(m.$slots, "footer", {}, () => [
|
|
3306
|
+
t.submitText ? (u(), g(n(ie), {
|
|
3299
3307
|
key: 0,
|
|
3300
3308
|
loading: i.value,
|
|
3301
3309
|
type: "primary",
|
|
3302
3310
|
onClick: p
|
|
3303
3311
|
}, {
|
|
3304
3312
|
default: f(() => [
|
|
3305
|
-
|
|
3313
|
+
A(j(t.submitText), 1)
|
|
3306
3314
|
]),
|
|
3307
3315
|
_: 1
|
|
3308
3316
|
}, 8, ["loading"])) : h("", !0),
|
|
3309
|
-
t.resetText ? (u(), g(
|
|
3317
|
+
t.resetText ? (u(), g(n(ie), {
|
|
3310
3318
|
key: 1,
|
|
3311
3319
|
type: "default",
|
|
3312
|
-
onClick:
|
|
3320
|
+
onClick: _[0] || (_[0] = () => d())
|
|
3313
3321
|
}, {
|
|
3314
3322
|
default: f(() => [
|
|
3315
|
-
|
|
3323
|
+
A(j(t.resetText), 1)
|
|
3316
3324
|
]),
|
|
3317
3325
|
_: 1
|
|
3318
3326
|
})) : h("", !0),
|
|
3319
|
-
|
|
3327
|
+
$(m.$slots, "action")
|
|
3320
3328
|
])
|
|
3321
3329
|
]),
|
|
3322
3330
|
_: 3
|
|
@@ -3325,7 +3333,7 @@ const na = {
|
|
|
3325
3333
|
_: 3
|
|
3326
3334
|
}, 16, ["inline", "model"]));
|
|
3327
3335
|
}
|
|
3328
|
-
}),
|
|
3336
|
+
}), ca = {
|
|
3329
3337
|
modelValue: {
|
|
3330
3338
|
type: Boolean,
|
|
3331
3339
|
default: !0
|
|
@@ -3362,42 +3370,42 @@ const na = {
|
|
|
3362
3370
|
submitMethod: {
|
|
3363
3371
|
type: Function
|
|
3364
3372
|
}
|
|
3365
|
-
},
|
|
3373
|
+
}, es = /* @__PURE__ */ P({
|
|
3366
3374
|
name: "XDialogForm",
|
|
3367
3375
|
__name: "DialogForm",
|
|
3368
|
-
props:
|
|
3376
|
+
props: ca,
|
|
3369
3377
|
emits: ["update:modelValue", "submit", "close"],
|
|
3370
|
-
setup(a, { expose:
|
|
3371
|
-
const t = a, l = e, s =
|
|
3378
|
+
setup(a, { expose: o, emit: e }) {
|
|
3379
|
+
const t = a, l = e, s = I(), c = I(), r = b(() => c.value?.$vtjEl), i = () => {
|
|
3372
3380
|
s.value?.submit();
|
|
3373
3381
|
}, p = () => {
|
|
3374
3382
|
l("update:modelValue", !1), l("close");
|
|
3375
|
-
}, d = async (
|
|
3376
|
-
l("submit",
|
|
3377
|
-
}, m =
|
|
3383
|
+
}, d = async (v) => {
|
|
3384
|
+
l("submit", v), t.submitMethod ? await t.submitMethod(v) && p() : p();
|
|
3385
|
+
}, m = b(
|
|
3378
3386
|
() => t.formProps?.disabled ? !1 : t.submit
|
|
3379
|
-
),
|
|
3387
|
+
), _ = b(
|
|
3380
3388
|
() => t.formProps?.disabled ? !1 : t.cancel
|
|
3381
3389
|
);
|
|
3382
|
-
return
|
|
3390
|
+
return o({
|
|
3383
3391
|
$vtjEl: r,
|
|
3384
3392
|
formRef: s,
|
|
3385
3393
|
dialogRef: c
|
|
3386
|
-
}), (
|
|
3394
|
+
}), (v, y) => (u(), g(n(jt), D({
|
|
3387
3395
|
ref_key: "dialogRef",
|
|
3388
3396
|
ref: c,
|
|
3389
3397
|
class: "x-dialog-form",
|
|
3390
3398
|
"model-value": t.modelValue,
|
|
3391
3399
|
submit: m.value,
|
|
3392
|
-
cancel:
|
|
3400
|
+
cancel: _.value,
|
|
3393
3401
|
size: t.size,
|
|
3394
3402
|
onSubmit: i,
|
|
3395
3403
|
onClose: p,
|
|
3396
3404
|
minimizable: !1,
|
|
3397
3405
|
maximizable: !1
|
|
3398
|
-
},
|
|
3406
|
+
}, v.$attrs), de({
|
|
3399
3407
|
default: f(() => [
|
|
3400
|
-
k(
|
|
3408
|
+
k(n(ua), D({
|
|
3401
3409
|
ref_key: "formRef",
|
|
3402
3410
|
ref: s,
|
|
3403
3411
|
class: "x-dialog-form__form",
|
|
@@ -3409,37 +3417,37 @@ const na = {
|
|
|
3409
3417
|
"submit-method": d
|
|
3410
3418
|
}, t.formProps), {
|
|
3411
3419
|
default: f(() => [
|
|
3412
|
-
|
|
3420
|
+
$(v.$slots, "default")
|
|
3413
3421
|
]),
|
|
3414
3422
|
_: 3
|
|
3415
3423
|
}, 16, ["size", "model", "rules"])
|
|
3416
3424
|
]),
|
|
3417
3425
|
_: 2
|
|
3418
3426
|
}, [
|
|
3419
|
-
|
|
3427
|
+
v.$slots.extra ? {
|
|
3420
3428
|
name: "extra",
|
|
3421
3429
|
fn: f(() => [
|
|
3422
|
-
|
|
3430
|
+
$(v.$slots, "extra")
|
|
3423
3431
|
]),
|
|
3424
3432
|
key: "0"
|
|
3425
3433
|
} : void 0,
|
|
3426
|
-
|
|
3434
|
+
v.$slots.handle ? {
|
|
3427
3435
|
name: "handle",
|
|
3428
3436
|
fn: f(() => [
|
|
3429
|
-
|
|
3437
|
+
$(v.$slots, "handle")
|
|
3430
3438
|
]),
|
|
3431
3439
|
key: "1"
|
|
3432
3440
|
} : void 0,
|
|
3433
|
-
|
|
3441
|
+
v.$slots.footer ? {
|
|
3434
3442
|
name: "footer",
|
|
3435
3443
|
fn: f(() => [
|
|
3436
|
-
|
|
3444
|
+
$(v.$slots, "footer")
|
|
3437
3445
|
]),
|
|
3438
3446
|
key: "2"
|
|
3439
3447
|
} : void 0
|
|
3440
3448
|
]), 1040, ["model-value", "submit", "cancel", "size"]));
|
|
3441
3449
|
}
|
|
3442
|
-
}),
|
|
3450
|
+
}), da = {
|
|
3443
3451
|
items: {
|
|
3444
3452
|
type: Array,
|
|
3445
3453
|
default() {
|
|
@@ -3455,25 +3463,25 @@ const na = {
|
|
|
3455
3463
|
align: {
|
|
3456
3464
|
type: String
|
|
3457
3465
|
}
|
|
3458
|
-
},
|
|
3466
|
+
}, pa = { class: "x-tabs__label-inner" }, fa = {
|
|
3459
3467
|
key: 0,
|
|
3460
3468
|
class: "x-tabs__actions"
|
|
3461
|
-
},
|
|
3469
|
+
}, ts = /* @__PURE__ */ P({
|
|
3462
3470
|
name: "XTabs",
|
|
3463
3471
|
__name: "Tabs",
|
|
3464
|
-
props:
|
|
3472
|
+
props: da,
|
|
3465
3473
|
emits: ["actionClick", "actionCommand"],
|
|
3466
|
-
setup(a, { emit:
|
|
3467
|
-
const e = a, t =
|
|
3468
|
-
const { label: p, name: d, value: m, disabled:
|
|
3474
|
+
setup(a, { emit: o }) {
|
|
3475
|
+
const e = a, t = o, l = (i) => {
|
|
3476
|
+
const { label: p, name: d, value: m, disabled: _, closable: v, lazy: y } = i;
|
|
3469
3477
|
return {
|
|
3470
3478
|
label: p,
|
|
3471
3479
|
name: m ?? d,
|
|
3472
|
-
disabled:
|
|
3473
|
-
closable:
|
|
3480
|
+
disabled: _,
|
|
3481
|
+
closable: v,
|
|
3474
3482
|
lazy: y
|
|
3475
3483
|
};
|
|
3476
|
-
}, s =
|
|
3484
|
+
}, s = b(() => ({
|
|
3477
3485
|
"is-no-border": !e.border,
|
|
3478
3486
|
"is-fit": !!e.fit,
|
|
3479
3487
|
[`is-align-${e.align}`]: !!e.align
|
|
@@ -3482,23 +3490,23 @@ const na = {
|
|
|
3482
3490
|
}, r = (i) => {
|
|
3483
3491
|
t("actionCommand", i);
|
|
3484
3492
|
};
|
|
3485
|
-
return (i, p) => (u(), g(
|
|
3493
|
+
return (i, p) => (u(), g(n(kt), D({
|
|
3486
3494
|
class: ["x-tabs", s.value]
|
|
3487
3495
|
}, i.$attrs), {
|
|
3488
3496
|
default: f(() => [
|
|
3489
|
-
(u(!0),
|
|
3497
|
+
(u(!0), z(W, null, Z(e.items, (d) => (u(), g(n(Ue), D({
|
|
3490
3498
|
key: d.value ?? d.name
|
|
3491
3499
|
}, l(d)), {
|
|
3492
3500
|
label: f(() => [
|
|
3493
|
-
|
|
3494
|
-
d.icon ? (u(), g(
|
|
3501
|
+
$(i.$slots, "label", le(ke(d)), () => [
|
|
3502
|
+
d.icon ? (u(), g(J(n(xe)(d.icon)), {
|
|
3495
3503
|
key: 0,
|
|
3496
3504
|
class: "x-tabs__icon"
|
|
3497
3505
|
})) : h("", !0),
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
d.actions && [d.name, d.value].includes(i.$attrs.modelValue) ? (u(),
|
|
3501
|
-
(u(!0),
|
|
3506
|
+
F("div", pa, [
|
|
3507
|
+
A(j(d.label) + " ", 1),
|
|
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), D({
|
|
3502
3510
|
mode: "icon",
|
|
3503
3511
|
type: "primary",
|
|
3504
3512
|
size: "small",
|
|
@@ -3512,8 +3520,8 @@ const na = {
|
|
|
3512
3520
|
])
|
|
3513
3521
|
]),
|
|
3514
3522
|
default: f(() => [
|
|
3515
|
-
|
|
3516
|
-
d.component ? (u(), g(
|
|
3523
|
+
$(i.$slots, "default", le(ke(d)), () => [
|
|
3524
|
+
d.component ? (u(), g(J(d.component), le(D({ key: 0 }, d.props)), null, 16)) : h("", !0)
|
|
3517
3525
|
])
|
|
3518
3526
|
]),
|
|
3519
3527
|
_: 2
|
|
@@ -3522,7 +3530,7 @@ const na = {
|
|
|
3522
3530
|
_: 3
|
|
3523
3531
|
}, 16, ["class"]));
|
|
3524
3532
|
}
|
|
3525
|
-
}),
|
|
3533
|
+
}), ma = {
|
|
3526
3534
|
direction: {
|
|
3527
3535
|
type: String,
|
|
3528
3536
|
default: "column"
|
|
@@ -3560,68 +3568,68 @@ const na = {
|
|
|
3560
3568
|
onTitleClick: {
|
|
3561
3569
|
type: Function
|
|
3562
3570
|
}
|
|
3563
|
-
},
|
|
3571
|
+
}, ga = { class: "x-data-item__title" }, ya = {
|
|
3564
3572
|
key: 1,
|
|
3565
3573
|
class: "x-data-item__section x-data-item__desc"
|
|
3566
|
-
},
|
|
3574
|
+
}, va = {
|
|
3567
3575
|
key: 2,
|
|
3568
3576
|
class: "x-data-item__section x-data-item__extra"
|
|
3569
|
-
},
|
|
3577
|
+
}, ba = {
|
|
3570
3578
|
key: 3,
|
|
3571
3579
|
class: "x-data-item__section x-data-item__actions"
|
|
3572
|
-
},
|
|
3580
|
+
}, os = /* @__PURE__ */ P({
|
|
3573
3581
|
name: "XDataItem",
|
|
3574
3582
|
__name: "DataItem",
|
|
3575
|
-
props:
|
|
3583
|
+
props: ma,
|
|
3576
3584
|
emits: ["imageClick", "titleClick", "actionClick", "actionCommand"],
|
|
3577
|
-
setup(a, { emit:
|
|
3578
|
-
const e = a, t =
|
|
3579
|
-
const { imageWidth: m, imageHeight:
|
|
3585
|
+
setup(a, { emit: o }) {
|
|
3586
|
+
const e = a, t = o, l = b(() => {
|
|
3587
|
+
const { imageWidth: m, imageHeight: _ } = e;
|
|
3580
3588
|
return {
|
|
3581
|
-
width: m ?
|
|
3582
|
-
height:
|
|
3589
|
+
width: m ? Q(m) : void 0,
|
|
3590
|
+
height: _ ? Q(_) : void 0
|
|
3583
3591
|
};
|
|
3584
|
-
}), s =
|
|
3592
|
+
}), s = b(() => ({
|
|
3585
3593
|
[`is-image-${e.direction}`]: !!e.direction,
|
|
3586
3594
|
"is-split": !!e.split
|
|
3587
|
-
})), c =
|
|
3595
|
+
})), c = b(() => ({
|
|
3588
3596
|
size: "small",
|
|
3589
3597
|
mode: "text",
|
|
3590
3598
|
justify: "flex-end",
|
|
3591
3599
|
type: "info",
|
|
3592
3600
|
items: e.actions,
|
|
3593
3601
|
...e.actionBarProps
|
|
3594
|
-
})), r = () => t("imageClick"), i = () => t("titleClick"), p = (m) => t("actionClick", m), d = (m,
|
|
3595
|
-
return (m,
|
|
3596
|
-
class:
|
|
3602
|
+
})), r = () => t("imageClick"), i = () => t("titleClick"), p = (m) => t("actionClick", m), d = (m, _) => t("actionCommand", m, _);
|
|
3603
|
+
return (m, _) => (u(), g(n(V), {
|
|
3604
|
+
class: Y(["x-data-item", s.value]),
|
|
3597
3605
|
direction: e.direction
|
|
3598
3606
|
}, {
|
|
3599
3607
|
default: f(() => [
|
|
3600
|
-
e.imageSrc || m.$slots.image ? (u(), g(
|
|
3608
|
+
e.imageSrc || m.$slots.image ? (u(), g(n(V), {
|
|
3601
3609
|
key: 0,
|
|
3602
3610
|
class: "x-data-item__img",
|
|
3603
3611
|
autoPointer: !0,
|
|
3604
3612
|
onClick: e.onImageClick ? r : void 0
|
|
3605
3613
|
}, {
|
|
3606
3614
|
default: f(() => [
|
|
3607
|
-
|
|
3608
|
-
e.imageSrc ? (u(), g(
|
|
3615
|
+
$(m.$slots, "image", {}, () => [
|
|
3616
|
+
e.imageSrc ? (u(), g(n(vo), {
|
|
3609
3617
|
key: 0,
|
|
3610
|
-
style:
|
|
3618
|
+
style: me(l.value),
|
|
3611
3619
|
src: e.imageSrc
|
|
3612
3620
|
}, null, 8, ["style", "src"])) : h("", !0)
|
|
3613
3621
|
])
|
|
3614
3622
|
]),
|
|
3615
3623
|
_: 3
|
|
3616
3624
|
}, 8, ["onClick"])) : h("", !0),
|
|
3617
|
-
k(
|
|
3625
|
+
k(n(V), {
|
|
3618
3626
|
class: "x-data-item__content",
|
|
3619
3627
|
direction: "column",
|
|
3620
3628
|
grow: "",
|
|
3621
3629
|
shrink: ""
|
|
3622
3630
|
}, {
|
|
3623
3631
|
default: f(() => [
|
|
3624
|
-
e.title || m.$slots.title ? (u(), g(
|
|
3632
|
+
e.title || m.$slots.title ? (u(), g(n(V), {
|
|
3625
3633
|
key: 0,
|
|
3626
3634
|
class: "x-data-item__section x-data-item__wrapper",
|
|
3627
3635
|
align: "center",
|
|
@@ -3629,29 +3637,29 @@ const na = {
|
|
|
3629
3637
|
onClick: e.onTitleClick ? i : void 0
|
|
3630
3638
|
}, {
|
|
3631
3639
|
default: f(() => [
|
|
3632
|
-
e.icon ? (u(), g(
|
|
3640
|
+
e.icon ? (u(), g(J(n(xe)(e.icon)), {
|
|
3633
3641
|
key: 0,
|
|
3634
3642
|
class: "x-data-item__icon"
|
|
3635
3643
|
})) : h("", !0),
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3644
|
+
F("span", ga, [
|
|
3645
|
+
$(m.$slots, "title", {}, () => [
|
|
3646
|
+
A(j(e.title), 1)
|
|
3639
3647
|
])
|
|
3640
3648
|
])
|
|
3641
3649
|
]),
|
|
3642
3650
|
_: 3
|
|
3643
3651
|
}, 8, ["onClick"])) : h("", !0),
|
|
3644
|
-
e.description || m.$slots.description ? (u(),
|
|
3645
|
-
|
|
3646
|
-
|
|
3652
|
+
e.description || m.$slots.description ? (u(), z("div", ya, [
|
|
3653
|
+
$(m.$slots, "description", {}, () => [
|
|
3654
|
+
A(j(e.description), 1)
|
|
3647
3655
|
])
|
|
3648
3656
|
])) : h("", !0),
|
|
3649
|
-
m.$slots.default ? (u(),
|
|
3650
|
-
|
|
3657
|
+
m.$slots.default ? (u(), z("div", va, [
|
|
3658
|
+
$(m.$slots, "default")
|
|
3651
3659
|
])) : h("", !0),
|
|
3652
|
-
e.actions || e.actionBarProps || m.$slots.actions ? (u(),
|
|
3653
|
-
|
|
3654
|
-
k(
|
|
3660
|
+
e.actions || e.actionBarProps || m.$slots.actions ? (u(), z("div", ba, [
|
|
3661
|
+
$(m.$slots, "actions", {}, () => [
|
|
3662
|
+
k(n(tt), D(c.value, {
|
|
3655
3663
|
onClick: p,
|
|
3656
3664
|
onCommand: d
|
|
3657
3665
|
}), null, 16)
|
|
@@ -3664,7 +3672,7 @@ const na = {
|
|
|
3664
3672
|
_: 3
|
|
3665
3673
|
}, 8, ["direction", "class"]));
|
|
3666
3674
|
}
|
|
3667
|
-
}),
|
|
3675
|
+
}), ha = {
|
|
3668
3676
|
option: {
|
|
3669
3677
|
type: Object
|
|
3670
3678
|
},
|
|
@@ -3677,26 +3685,26 @@ const na = {
|
|
|
3677
3685
|
default: "400px"
|
|
3678
3686
|
}
|
|
3679
3687
|
};
|
|
3680
|
-
function
|
|
3688
|
+
function _a() {
|
|
3681
3689
|
return import("echarts");
|
|
3682
3690
|
}
|
|
3683
|
-
function
|
|
3684
|
-
const e =
|
|
3685
|
-
return
|
|
3686
|
-
t.value = await
|
|
3687
|
-
const l =
|
|
3688
|
-
l && (e.value || (e.value =
|
|
3689
|
-
}),
|
|
3691
|
+
function ka(a, o) {
|
|
3692
|
+
const e = I(), t = Ie();
|
|
3693
|
+
return gt(async () => {
|
|
3694
|
+
t.value = await _a();
|
|
3695
|
+
const l = n(a);
|
|
3696
|
+
l && (e.value || (e.value = re(t.value.init(l))), e.value && e.value.setOption(o.option || {}));
|
|
3697
|
+
}), yt(() => {
|
|
3690
3698
|
e.value && e.value.dispose();
|
|
3691
|
-
}),
|
|
3692
|
-
() =>
|
|
3699
|
+
}), U(
|
|
3700
|
+
() => o.option,
|
|
3693
3701
|
(l) => {
|
|
3694
3702
|
e.value && e.value.setOption(l || {});
|
|
3695
3703
|
},
|
|
3696
3704
|
{ deep: !0 }
|
|
3697
|
-
),
|
|
3705
|
+
), Do(
|
|
3698
3706
|
a,
|
|
3699
|
-
|
|
3707
|
+
Ko(() => {
|
|
3700
3708
|
e.value && e.value.resize();
|
|
3701
3709
|
}, 150)
|
|
3702
3710
|
), {
|
|
@@ -3704,26 +3712,26 @@ function ha(a, n) {
|
|
|
3704
3712
|
echarts: t
|
|
3705
3713
|
};
|
|
3706
3714
|
}
|
|
3707
|
-
const
|
|
3715
|
+
const ns = /* @__PURE__ */ P({
|
|
3708
3716
|
name: "XChart",
|
|
3709
3717
|
__name: "Chart",
|
|
3710
|
-
props:
|
|
3711
|
-
setup(a, { expose:
|
|
3712
|
-
const e = a, t =
|
|
3713
|
-
width:
|
|
3714
|
-
height:
|
|
3718
|
+
props: ha,
|
|
3719
|
+
setup(a, { expose: o }) {
|
|
3720
|
+
const e = a, t = I(), { echartsInstance: l, echarts: s } = ka(t, e), c = b(() => ({
|
|
3721
|
+
width: Q(e.width),
|
|
3722
|
+
height: Q(e.height)
|
|
3715
3723
|
}));
|
|
3716
|
-
return
|
|
3724
|
+
return o({
|
|
3717
3725
|
chartRef: t,
|
|
3718
3726
|
echartsInstance: l,
|
|
3719
3727
|
echarts: s
|
|
3720
|
-
}), (r, i) => (u(),
|
|
3728
|
+
}), (r, i) => (u(), z("div", {
|
|
3721
3729
|
ref_key: "chartRef",
|
|
3722
3730
|
ref: t,
|
|
3723
|
-
style:
|
|
3731
|
+
style: me(c.value)
|
|
3724
3732
|
}, null, 4));
|
|
3725
3733
|
}
|
|
3726
|
-
}),
|
|
3734
|
+
}), wa = {
|
|
3727
3735
|
data: {
|
|
3728
3736
|
type: [Object, Function],
|
|
3729
3737
|
default() {
|
|
@@ -3761,132 +3769,132 @@ const Qa = /* @__PURE__ */ V({
|
|
|
3761
3769
|
infiniteScroll: {
|
|
3762
3770
|
type: [Boolean, Object]
|
|
3763
3771
|
}
|
|
3764
|
-
},
|
|
3772
|
+
}, xa = {
|
|
3765
3773
|
key: 0,
|
|
3766
3774
|
class: "x-list__loading"
|
|
3767
|
-
},
|
|
3775
|
+
}, Ca = {
|
|
3768
3776
|
key: 1,
|
|
3769
3777
|
class: "x-list__nomore"
|
|
3770
|
-
},
|
|
3778
|
+
}, $a = {
|
|
3771
3779
|
key: 0,
|
|
3772
3780
|
class: "x-list__loading"
|
|
3773
|
-
},
|
|
3781
|
+
}, Sa = {
|
|
3774
3782
|
key: 1,
|
|
3775
3783
|
class: "x-list__nomore"
|
|
3776
|
-
},
|
|
3784
|
+
}, za = {
|
|
3777
3785
|
key: 1,
|
|
3778
3786
|
class: "x-list__pager"
|
|
3779
|
-
},
|
|
3787
|
+
}, as = /* @__PURE__ */ P({
|
|
3780
3788
|
name: "XList",
|
|
3781
3789
|
__name: "List",
|
|
3782
|
-
props:
|
|
3790
|
+
props: wa,
|
|
3783
3791
|
emits: ["load"],
|
|
3784
|
-
setup(a, { expose:
|
|
3785
|
-
const t = a, l = e, s =
|
|
3792
|
+
setup(a, { expose: o, emit: e }) {
|
|
3793
|
+
const t = a, l = e, s = Re({
|
|
3786
3794
|
page: t.page,
|
|
3787
3795
|
pageSize: t.pageSize
|
|
3788
3796
|
});
|
|
3789
|
-
|
|
3797
|
+
Ye(() => {
|
|
3790
3798
|
const { page: T, pageSize: N } = t;
|
|
3791
3799
|
Object.assign(s, { page: T, pageSize: N });
|
|
3792
3800
|
});
|
|
3793
|
-
const { data: c, loading: r } =
|
|
3801
|
+
const { data: c, loading: r } = cn(
|
|
3794
3802
|
t.data,
|
|
3795
3803
|
{
|
|
3796
3804
|
list: [],
|
|
3797
3805
|
total: 0
|
|
3798
3806
|
},
|
|
3799
3807
|
s
|
|
3800
|
-
), i =
|
|
3801
|
-
width:
|
|
3802
|
-
height:
|
|
3803
|
-
})),
|
|
3808
|
+
), i = b(() => Math.ceil((c.value.total || 0) / s.pageSize)), p = I(!1), d = I(), m = b(() => ({
|
|
3809
|
+
width: Q(t.width),
|
|
3810
|
+
height: Q(t.height)
|
|
3811
|
+
})), _ = b(() => ({
|
|
3804
3812
|
"is-virtual": !!t.itemHeight
|
|
3805
|
-
})),
|
|
3813
|
+
})), v = b(() => {
|
|
3806
3814
|
const T = {};
|
|
3807
3815
|
for (let [N, x] of Object.entries(
|
|
3808
|
-
|
|
3816
|
+
rt(t.infiniteScroll)
|
|
3809
3817
|
))
|
|
3810
3818
|
T[`infinite-scroll-${N}`] = x;
|
|
3811
3819
|
return (r.value || p.value) && (T["infinite-scroll-disabled"] = !0), T;
|
|
3812
|
-
}), y =
|
|
3813
|
-
|
|
3820
|
+
}), y = b(() => rt(t.pager, {})), { list: C, containerProps: w, wrapperProps: E, scrollTo: B } = Fo(
|
|
3821
|
+
b(() => c.value.list),
|
|
3814
3822
|
{
|
|
3815
3823
|
itemHeight: t.itemHeight || 0
|
|
3816
3824
|
}
|
|
3817
|
-
),
|
|
3825
|
+
), S = () => {
|
|
3818
3826
|
!t.infiniteScroll || p.value || (s.page < i.value ? (++s.page, l("load", s)) : p.value = !0);
|
|
3819
|
-
},
|
|
3820
|
-
return
|
|
3821
|
-
list:
|
|
3822
|
-
scrollTo:
|
|
3827
|
+
}, O = (T) => t.dataKey ? T[t.dataKey] : void 0;
|
|
3828
|
+
return o({
|
|
3829
|
+
list: C,
|
|
3830
|
+
scrollTo: B,
|
|
3823
3831
|
wrapperRef: d,
|
|
3824
3832
|
loading: r,
|
|
3825
3833
|
state: s,
|
|
3826
3834
|
pageCount: i,
|
|
3827
3835
|
nomore: p,
|
|
3828
3836
|
data: c,
|
|
3829
|
-
getKey:
|
|
3830
|
-
}), (T, N) => (u(),
|
|
3831
|
-
class:
|
|
3832
|
-
style:
|
|
3837
|
+
getKey: O
|
|
3838
|
+
}), (T, N) => (u(), z("div", {
|
|
3839
|
+
class: Y(["x-list", _.value]),
|
|
3840
|
+
style: me(m.value)
|
|
3833
3841
|
}, [
|
|
3834
|
-
!
|
|
3835
|
-
k(
|
|
3842
|
+
!n(c).total && !n(r) ? $(T.$slots, "empty", { key: 0 }, () => [
|
|
3843
|
+
k(n(_t))
|
|
3836
3844
|
]) : h("", !0),
|
|
3837
|
-
|
|
3838
|
-
t.itemHeight ? G((u(),
|
|
3845
|
+
F("div", D({ class: "x-list__content" }, n(w)), [
|
|
3846
|
+
t.itemHeight ? G((u(), z("div", D({
|
|
3839
3847
|
key: 0,
|
|
3840
3848
|
class: "x-list__wrapper",
|
|
3841
3849
|
ref_key: "wrapperRef",
|
|
3842
3850
|
ref: d
|
|
3843
|
-
}, { ...
|
|
3844
|
-
(u(!0),
|
|
3845
|
-
key:
|
|
3846
|
-
}, { item: x.data, index:
|
|
3847
|
-
|
|
3851
|
+
}, { ...n(E), ...v.value }), [
|
|
3852
|
+
(u(!0), z(W, null, Z(n(C), (x, K) => $(T.$slots, "default", le(D({
|
|
3853
|
+
key: O(x.data)
|
|
3854
|
+
}, { item: x.data, index: K })), () => [
|
|
3855
|
+
F("div", null, j(x), 1)
|
|
3848
3856
|
])), 128)),
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3857
|
+
n(r) ? (u(), z("div", xa, [
|
|
3858
|
+
$(T.$slots, "loading", {}, () => [
|
|
3859
|
+
A(" 正在加载数据... ")
|
|
3852
3860
|
])
|
|
3853
3861
|
])) : h("", !0),
|
|
3854
|
-
p.value ? (u(),
|
|
3855
|
-
|
|
3856
|
-
|
|
3862
|
+
p.value ? (u(), z("div", Ca, [
|
|
3863
|
+
$(T.$slots, "nomore", {}, () => [
|
|
3864
|
+
A(" 没有更多数据 ")
|
|
3857
3865
|
])
|
|
3858
3866
|
])) : h("", !0)
|
|
3859
3867
|
], 16)), [
|
|
3860
|
-
[
|
|
3861
|
-
]) : G((u(),
|
|
3868
|
+
[n(st), S]
|
|
3869
|
+
]) : G((u(), z("div", D({
|
|
3862
3870
|
key: 1,
|
|
3863
3871
|
class: "x-list__wrapper"
|
|
3864
|
-
},
|
|
3865
|
-
(u(!0),
|
|
3866
|
-
key:
|
|
3867
|
-
}, { item: x, index:
|
|
3868
|
-
|
|
3872
|
+
}, v.value), [
|
|
3873
|
+
(u(!0), z(W, null, Z(n(c).list, (x, K) => $(T.$slots, "default", le(D({
|
|
3874
|
+
key: O(x)
|
|
3875
|
+
}, { item: x, index: K })), () => [
|
|
3876
|
+
F("div", null, j(x), 1)
|
|
3869
3877
|
])), 128)),
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3878
|
+
n(r) ? (u(), z("div", $a, [
|
|
3879
|
+
$(T.$slots, "loading", {}, () => [
|
|
3880
|
+
A(" 正在加载数据... ")
|
|
3873
3881
|
])
|
|
3874
3882
|
])) : h("", !0),
|
|
3875
|
-
p.value ? (u(),
|
|
3876
|
-
|
|
3877
|
-
|
|
3883
|
+
p.value ? (u(), z("div", Sa, [
|
|
3884
|
+
$(T.$slots, "nomore", {}, () => [
|
|
3885
|
+
A(" 没有更多数据 ")
|
|
3878
3886
|
])
|
|
3879
3887
|
])) : h("", !0)
|
|
3880
3888
|
], 16)), [
|
|
3881
|
-
[
|
|
3889
|
+
[n(st), S]
|
|
3882
3890
|
])
|
|
3883
3891
|
], 16),
|
|
3884
|
-
t.pager ? (u(),
|
|
3885
|
-
k(
|
|
3892
|
+
t.pager ? (u(), z("div", za, [
|
|
3893
|
+
k(n(bo), D({
|
|
3886
3894
|
small: "",
|
|
3887
3895
|
background: "",
|
|
3888
3896
|
layout: "prev, pager, next",
|
|
3889
|
-
total:
|
|
3897
|
+
total: n(c).total,
|
|
3890
3898
|
"default-page-size": t.pageSize,
|
|
3891
3899
|
"default-current-page": t.page,
|
|
3892
3900
|
"current-page": s.page,
|
|
@@ -3897,7 +3905,7 @@ const Qa = /* @__PURE__ */ V({
|
|
|
3897
3905
|
])) : h("", !0)
|
|
3898
3906
|
], 6));
|
|
3899
3907
|
}
|
|
3900
|
-
}),
|
|
3908
|
+
}), Ta = {
|
|
3901
3909
|
name: {
|
|
3902
3910
|
type: String,
|
|
3903
3911
|
default: "VTJ.PRO"
|
|
@@ -3914,32 +3922,32 @@ const Qa = /* @__PURE__ */ V({
|
|
|
3914
3922
|
type: String,
|
|
3915
3923
|
default: "/@vtj/pro/"
|
|
3916
3924
|
}
|
|
3917
|
-
},
|
|
3925
|
+
}, Ma = { class: "x-startup" }, Ea = { class: "x-startup__wrapper" }, Pa = { class: "x-startup__name" }, Ba = { class: "clip" }, Va = { class: "x-startup__tagline" }, Ia = { class: "x-startup__actions" }, ss = /* @__PURE__ */ P({
|
|
3918
3926
|
__name: "Startup",
|
|
3919
|
-
props:
|
|
3927
|
+
props: Ta,
|
|
3920
3928
|
setup(a) {
|
|
3921
|
-
const
|
|
3929
|
+
const o = a, e = () => {
|
|
3922
3930
|
if (typeof window < "u") {
|
|
3923
3931
|
let l = (window.__VTJ_LINK__ || {}).href || window.location.pathname + "@vtj/pro/#/";
|
|
3924
3932
|
window.location.href = l;
|
|
3925
3933
|
}
|
|
3926
3934
|
};
|
|
3927
|
-
return (t, l) => (u(),
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3935
|
+
return (t, l) => (u(), z("div", Ma, [
|
|
3936
|
+
F("div", Ea, [
|
|
3937
|
+
F("div", Pa, [
|
|
3938
|
+
F("span", Ba, j(o.name), 1)
|
|
3931
3939
|
]),
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
k(
|
|
3940
|
+
F("div", Va, j(o.tagline), 1),
|
|
3941
|
+
F("div", Ia, [
|
|
3942
|
+
k(n(ie), {
|
|
3935
3943
|
type: "primary",
|
|
3936
3944
|
size: "large",
|
|
3937
3945
|
round: "",
|
|
3938
|
-
icon:
|
|
3946
|
+
icon: n(Oo),
|
|
3939
3947
|
onClick: e
|
|
3940
3948
|
}, {
|
|
3941
3949
|
default: f(() => [
|
|
3942
|
-
|
|
3950
|
+
A(j(o.actionText), 1)
|
|
3943
3951
|
]),
|
|
3944
3952
|
_: 1
|
|
3945
3953
|
}, 8, ["icon"])
|
|
@@ -3947,7 +3955,7 @@ const Qa = /* @__PURE__ */ V({
|
|
|
3947
3955
|
])
|
|
3948
3956
|
]));
|
|
3949
3957
|
}
|
|
3950
|
-
}),
|
|
3958
|
+
}), Oa = {
|
|
3951
3959
|
stringProp: {
|
|
3952
3960
|
type: String
|
|
3953
3961
|
},
|
|
@@ -3978,123 +3986,123 @@ const Qa = /* @__PURE__ */ V({
|
|
|
3978
3986
|
syncProp: {
|
|
3979
3987
|
type: String
|
|
3980
3988
|
}
|
|
3981
|
-
},
|
|
3989
|
+
}, ja = { class: "x-test__slot" }, Ra = { class: "x-test__slot" }, ls = /* @__PURE__ */ P({
|
|
3982
3990
|
name: "XTest",
|
|
3983
3991
|
__name: "Test",
|
|
3984
|
-
props:
|
|
3992
|
+
props: Oa,
|
|
3985
3993
|
emits: ["click", "submit", "change", "update:modelValue", "update:syncProp"],
|
|
3986
|
-
setup(a, { expose:
|
|
3987
|
-
const t = a, l = e, s =
|
|
3994
|
+
setup(a, { expose: o, emit: e }) {
|
|
3995
|
+
const t = a, l = e, s = b(() => Object.entries(t)), c = b({
|
|
3988
3996
|
get() {
|
|
3989
3997
|
return t.modelValue;
|
|
3990
3998
|
},
|
|
3991
|
-
set(
|
|
3992
|
-
l("update:modelValue",
|
|
3999
|
+
set(v) {
|
|
4000
|
+
l("update:modelValue", v);
|
|
3993
4001
|
}
|
|
3994
|
-
}), r =
|
|
4002
|
+
}), r = b({
|
|
3995
4003
|
get() {
|
|
3996
4004
|
return t.syncProp;
|
|
3997
4005
|
},
|
|
3998
|
-
set(
|
|
3999
|
-
l("update:syncProp",
|
|
4006
|
+
set(v) {
|
|
4007
|
+
l("update:syncProp", v);
|
|
4000
4008
|
}
|
|
4001
|
-
}), i =
|
|
4002
|
-
|
|
4009
|
+
}), i = I("default inner data"), p = () => {
|
|
4010
|
+
it.info({
|
|
4003
4011
|
message: "触发click事件"
|
|
4004
4012
|
}), l("click", t);
|
|
4005
4013
|
}, d = () => {
|
|
4006
|
-
|
|
4014
|
+
it.info({
|
|
4007
4015
|
message: "触发submit事件"
|
|
4008
4016
|
}), l("submit", t);
|
|
4009
|
-
}, m = (
|
|
4010
|
-
i.value =
|
|
4011
|
-
},
|
|
4017
|
+
}, m = (v) => {
|
|
4018
|
+
i.value = v, l("change", i.value);
|
|
4019
|
+
}, _ = () => {
|
|
4012
4020
|
m("user click change:" + Date.now());
|
|
4013
4021
|
};
|
|
4014
|
-
return
|
|
4022
|
+
return o({
|
|
4015
4023
|
click: p,
|
|
4016
4024
|
submit: d,
|
|
4017
4025
|
data: i,
|
|
4018
4026
|
change: m
|
|
4019
|
-
}), (
|
|
4027
|
+
}), (v, y) => (u(), g(n(Ve), {
|
|
4020
4028
|
class: "x-test",
|
|
4021
4029
|
header: "VTJ 低代码测试组件",
|
|
4022
4030
|
border: ""
|
|
4023
4031
|
}, {
|
|
4024
4032
|
default: f(() => [
|
|
4025
|
-
k(
|
|
4033
|
+
k(n(se), null, {
|
|
4026
4034
|
default: f(() => [
|
|
4027
|
-
|
|
4035
|
+
A("内部数据")
|
|
4028
4036
|
]),
|
|
4029
4037
|
_: 1
|
|
4030
4038
|
}),
|
|
4031
|
-
k(
|
|
4039
|
+
k(n(V), null, {
|
|
4032
4040
|
default: f(() => [
|
|
4033
|
-
|
|
4041
|
+
A(j(i.value), 1)
|
|
4034
4042
|
]),
|
|
4035
4043
|
_: 1
|
|
4036
4044
|
}),
|
|
4037
|
-
k(
|
|
4045
|
+
k(n(se), null, {
|
|
4038
4046
|
default: f(() => [
|
|
4039
|
-
|
|
4047
|
+
A("属性")
|
|
4040
4048
|
]),
|
|
4041
4049
|
_: 1
|
|
4042
4050
|
}),
|
|
4043
|
-
k(
|
|
4051
|
+
k(n(lt), {
|
|
4044
4052
|
column: 3,
|
|
4045
4053
|
border: ""
|
|
4046
4054
|
}, {
|
|
4047
4055
|
default: f(() => [
|
|
4048
|
-
(u(!0),
|
|
4056
|
+
(u(!0), z(W, null, Z(s.value, ([C, w]) => (u(), g(n(Ne), { label: C }, {
|
|
4049
4057
|
default: f(() => [
|
|
4050
|
-
|
|
4058
|
+
F("pre", null, j(JSON.stringify(w, null, 2)), 1)
|
|
4051
4059
|
]),
|
|
4052
4060
|
_: 2
|
|
4053
4061
|
}, 1032, ["label"]))), 256))
|
|
4054
4062
|
]),
|
|
4055
4063
|
_: 1
|
|
4056
4064
|
}),
|
|
4057
|
-
k(
|
|
4065
|
+
k(n(se), null, {
|
|
4058
4066
|
default: f(() => [
|
|
4059
|
-
|
|
4067
|
+
A("插槽")
|
|
4060
4068
|
]),
|
|
4061
4069
|
_: 1
|
|
4062
4070
|
}),
|
|
4063
|
-
k(
|
|
4071
|
+
k(n(V), {
|
|
4064
4072
|
justify: "space-around",
|
|
4065
4073
|
flex: "",
|
|
4066
4074
|
gap: ""
|
|
4067
4075
|
}, {
|
|
4068
4076
|
default: f(() => [
|
|
4069
|
-
k(
|
|
4077
|
+
k(n(Ve), {
|
|
4070
4078
|
header: "default",
|
|
4071
4079
|
grow: "",
|
|
4072
4080
|
card: ""
|
|
4073
4081
|
}, {
|
|
4074
4082
|
default: f(() => [
|
|
4075
|
-
|
|
4076
|
-
|
|
4083
|
+
F("div", ja, [
|
|
4084
|
+
$(v.$slots, "default", {
|
|
4077
4085
|
props: t,
|
|
4078
4086
|
data: i.value
|
|
4079
4087
|
}, () => [
|
|
4080
|
-
|
|
4088
|
+
F("pre", null, j(JSON.stringify({ props: t, data: i.value }, null, 2)), 1)
|
|
4081
4089
|
])
|
|
4082
4090
|
])
|
|
4083
4091
|
]),
|
|
4084
4092
|
_: 3
|
|
4085
4093
|
}),
|
|
4086
|
-
k(
|
|
4094
|
+
k(n(Ve), {
|
|
4087
4095
|
header: "extra",
|
|
4088
4096
|
grow: "",
|
|
4089
4097
|
card: ""
|
|
4090
4098
|
}, {
|
|
4091
4099
|
default: f(() => [
|
|
4092
|
-
|
|
4093
|
-
|
|
4100
|
+
F("div", Ra, [
|
|
4101
|
+
$(v.$slots, "extra", {
|
|
4094
4102
|
props: t,
|
|
4095
4103
|
data: i.value
|
|
4096
4104
|
}, () => [
|
|
4097
|
-
|
|
4105
|
+
F("pre", null, j(JSON.stringify({ props: t, data: i.value }, null, 2)), 1)
|
|
4098
4106
|
])
|
|
4099
4107
|
])
|
|
4100
4108
|
]),
|
|
@@ -4103,33 +4111,33 @@ const Qa = /* @__PURE__ */ V({
|
|
|
4103
4111
|
]),
|
|
4104
4112
|
_: 3
|
|
4105
4113
|
}),
|
|
4106
|
-
k(
|
|
4114
|
+
k(n(se), null, {
|
|
4107
4115
|
default: f(() => [
|
|
4108
|
-
|
|
4116
|
+
A("双向绑定")
|
|
4109
4117
|
]),
|
|
4110
4118
|
_: 1
|
|
4111
4119
|
}),
|
|
4112
|
-
k(
|
|
4120
|
+
k(n(V), null, {
|
|
4113
4121
|
default: f(() => [
|
|
4114
|
-
k(
|
|
4122
|
+
k(n(lt), {
|
|
4115
4123
|
column: 2,
|
|
4116
4124
|
border: ""
|
|
4117
4125
|
}, {
|
|
4118
4126
|
default: f(() => [
|
|
4119
|
-
k(
|
|
4127
|
+
k(n(Ne), { label: "modelValue" }, {
|
|
4120
4128
|
default: f(() => [
|
|
4121
|
-
k(
|
|
4129
|
+
k(n(we), {
|
|
4122
4130
|
modelValue: c.value,
|
|
4123
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
4131
|
+
"onUpdate:modelValue": y[0] || (y[0] = (C) => c.value = C)
|
|
4124
4132
|
}, null, 8, ["modelValue"])
|
|
4125
4133
|
]),
|
|
4126
4134
|
_: 1
|
|
4127
4135
|
}),
|
|
4128
|
-
k(
|
|
4136
|
+
k(n(Ne), { label: "syncProp" }, {
|
|
4129
4137
|
default: f(() => [
|
|
4130
|
-
k(
|
|
4138
|
+
k(n(we), {
|
|
4131
4139
|
modelValue: r.value,
|
|
4132
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
4140
|
+
"onUpdate:modelValue": y[1] || (y[1] = (C) => r.value = C)
|
|
4133
4141
|
}, null, 8, ["modelValue"])
|
|
4134
4142
|
]),
|
|
4135
4143
|
_: 1
|
|
@@ -4140,29 +4148,29 @@ const Qa = /* @__PURE__ */ V({
|
|
|
4140
4148
|
]),
|
|
4141
4149
|
_: 1
|
|
4142
4150
|
}),
|
|
4143
|
-
k(
|
|
4151
|
+
k(n(se), null, {
|
|
4144
4152
|
default: f(() => [
|
|
4145
|
-
|
|
4153
|
+
A("事件和方法")
|
|
4146
4154
|
]),
|
|
4147
4155
|
_: 1
|
|
4148
4156
|
}),
|
|
4149
|
-
k(
|
|
4157
|
+
k(n(V), null, {
|
|
4150
4158
|
default: f(() => [
|
|
4151
|
-
k(
|
|
4159
|
+
k(n(ie), { onClick: p }, {
|
|
4152
4160
|
default: f(() => [
|
|
4153
|
-
|
|
4161
|
+
A("click")
|
|
4154
4162
|
]),
|
|
4155
4163
|
_: 1
|
|
4156
4164
|
}),
|
|
4157
|
-
k(
|
|
4165
|
+
k(n(ie), { onClick: d }, {
|
|
4158
4166
|
default: f(() => [
|
|
4159
|
-
|
|
4167
|
+
A("submit")
|
|
4160
4168
|
]),
|
|
4161
4169
|
_: 1
|
|
4162
4170
|
}),
|
|
4163
|
-
k(
|
|
4171
|
+
k(n(ie), { onClick: _ }, {
|
|
4164
4172
|
default: f(() => [
|
|
4165
|
-
|
|
4173
|
+
A("change")
|
|
4166
4174
|
]),
|
|
4167
4175
|
_: 1
|
|
4168
4176
|
})
|
|
@@ -4197,71 +4205,71 @@ const Qa = /* @__PURE__ */ V({
|
|
|
4197
4205
|
selectProps: {
|
|
4198
4206
|
type: Object
|
|
4199
4207
|
}
|
|
4200
|
-
},
|
|
4208
|
+
}, is = /* @__PURE__ */ P({
|
|
4201
4209
|
name: "XInputUnit",
|
|
4202
4210
|
__name: "InputUnit",
|
|
4203
4211
|
props: Aa,
|
|
4204
4212
|
emits: ["update:modelValue", "update:unit", "change", "unit-change"],
|
|
4205
|
-
setup(a, { expose:
|
|
4206
|
-
const t = a, l = e, s =
|
|
4207
|
-
const y = s.value.map((
|
|
4208
|
-
return t.unit && y.push(t.unit),
|
|
4209
|
-
}), r =
|
|
4213
|
+
setup(a, { expose: o, emit: e }) {
|
|
4214
|
+
const t = a, l = e, s = b(() => Pt(t.units).map((C) => typeof C == "string" ? { label: C, value: C } : C)), c = b(() => {
|
|
4215
|
+
const y = s.value.map((C) => C.value);
|
|
4216
|
+
return t.unit && y.push(t.unit), Uo(y);
|
|
4217
|
+
}), r = I(), i = I(), p = (y) => t.format && y ? Ho(Number(y) || 0, t.format) : y, d = (y) => {
|
|
4210
4218
|
if (!t.withUnit || typeof y != "string")
|
|
4211
4219
|
return { value: p(y), unit: t.unit };
|
|
4212
|
-
for (const
|
|
4213
|
-
const w = new RegExp(`${
|
|
4220
|
+
for (const C of c.value) {
|
|
4221
|
+
const w = new RegExp(`${C}$`);
|
|
4214
4222
|
if (w.test(y))
|
|
4215
4223
|
return {
|
|
4216
4224
|
value: p(y.toString().replace(w, "")),
|
|
4217
|
-
unit:
|
|
4225
|
+
unit: C
|
|
4218
4226
|
};
|
|
4219
4227
|
}
|
|
4220
4228
|
return { value: p(y), unit: t.unit };
|
|
4221
4229
|
}, m = () => {
|
|
4222
|
-
const y = p(i.value),
|
|
4223
|
-
return t.withUnit && y &&
|
|
4230
|
+
const y = p(i.value), C = r.value;
|
|
4231
|
+
return t.withUnit && y && C ? `${y}${C}` : y;
|
|
4224
4232
|
};
|
|
4225
|
-
|
|
4233
|
+
U(
|
|
4226
4234
|
() => t.modelValue,
|
|
4227
4235
|
(y) => {
|
|
4228
|
-
const { value:
|
|
4229
|
-
r.value = w, i.value =
|
|
4236
|
+
const { value: C, unit: w } = d(y);
|
|
4237
|
+
r.value = w, i.value = C;
|
|
4230
4238
|
},
|
|
4231
4239
|
{
|
|
4232
4240
|
immediate: !0
|
|
4233
4241
|
}
|
|
4234
|
-
),
|
|
4242
|
+
), U(i, (y) => {
|
|
4235
4243
|
l("change", y);
|
|
4236
4244
|
});
|
|
4237
|
-
const
|
|
4238
|
-
const { value: y, unit:
|
|
4239
|
-
i.value = y, r.value =
|
|
4240
|
-
},
|
|
4241
|
-
l("unit-change", r.value),
|
|
4245
|
+
const _ = async () => {
|
|
4246
|
+
const { value: y, unit: C } = d(m());
|
|
4247
|
+
i.value = y, r.value = C, l("update:modelValue", m());
|
|
4248
|
+
}, v = () => {
|
|
4249
|
+
l("unit-change", r.value), _();
|
|
4242
4250
|
};
|
|
4243
|
-
return
|
|
4251
|
+
return o({
|
|
4244
4252
|
parser: d,
|
|
4245
4253
|
formatValue: p
|
|
4246
|
-
}), (y,
|
|
4254
|
+
}), (y, C) => (u(), g(n(we), {
|
|
4247
4255
|
modelValue: i.value,
|
|
4248
|
-
"onUpdate:modelValue":
|
|
4256
|
+
"onUpdate:modelValue": C[1] || (C[1] = (w) => i.value = w),
|
|
4249
4257
|
modelModifiers: { trim: !0 },
|
|
4250
4258
|
class: "x-input-unit",
|
|
4251
|
-
onChange:
|
|
4252
|
-
},
|
|
4259
|
+
onChange: _
|
|
4260
|
+
}, de({ _: 2 }, [
|
|
4253
4261
|
s.value.length ? {
|
|
4254
4262
|
name: "append",
|
|
4255
4263
|
fn: f(() => [
|
|
4256
|
-
k(
|
|
4264
|
+
k(n(xt), D({
|
|
4257
4265
|
class: "x-input-unit__unit",
|
|
4258
4266
|
modelValue: r.value,
|
|
4259
|
-
"onUpdate:modelValue":
|
|
4267
|
+
"onUpdate:modelValue": C[0] || (C[0] = (w) => r.value = w),
|
|
4260
4268
|
size: y.$attrs.size,
|
|
4261
4269
|
style: { width: `${t.appendWidth}px` }
|
|
4262
|
-
}, y.$props.selectProps, { onChange:
|
|
4270
|
+
}, y.$props.selectProps, { onChange: v }), {
|
|
4263
4271
|
default: f(() => [
|
|
4264
|
-
(u(!0),
|
|
4272
|
+
(u(!0), z(W, null, Z(s.value, (w) => (u(), g(n(Ct), {
|
|
4265
4273
|
key: w.value,
|
|
4266
4274
|
label: w.label,
|
|
4267
4275
|
value: w.value
|
|
@@ -4274,77 +4282,202 @@ const Qa = /* @__PURE__ */ V({
|
|
|
4274
4282
|
} : {
|
|
4275
4283
|
name: "suffix",
|
|
4276
4284
|
fn: f(() => [
|
|
4277
|
-
r.value ? (u(),
|
|
4285
|
+
r.value ? (u(), z("div", {
|
|
4278
4286
|
key: 0,
|
|
4279
4287
|
class: "x-input-unit__unit"
|
|
4280
4288
|
}, [
|
|
4281
|
-
|
|
4289
|
+
F("span", null, j(r.value), 1)
|
|
4282
4290
|
])) : h("", !0)
|
|
4283
4291
|
]),
|
|
4284
4292
|
key: "1"
|
|
4285
4293
|
}
|
|
4286
4294
|
]), 1032, ["modelValue"]));
|
|
4287
4295
|
}
|
|
4296
|
+
}), Da = {
|
|
4297
|
+
/**
|
|
4298
|
+
* 内容
|
|
4299
|
+
*/
|
|
4300
|
+
modelValue: {
|
|
4301
|
+
type: String,
|
|
4302
|
+
default: ""
|
|
4303
|
+
},
|
|
4304
|
+
/**
|
|
4305
|
+
* 禁用
|
|
4306
|
+
*/
|
|
4307
|
+
disabled: {
|
|
4308
|
+
type: Boolean
|
|
4309
|
+
},
|
|
4310
|
+
/**
|
|
4311
|
+
* 可编辑状态
|
|
4312
|
+
*/
|
|
4313
|
+
editable: {
|
|
4314
|
+
type: Boolean,
|
|
4315
|
+
default: !0
|
|
4316
|
+
},
|
|
4317
|
+
/**
|
|
4318
|
+
* 显示边框, 当 editable=false 时有效
|
|
4319
|
+
*/
|
|
4320
|
+
border: {
|
|
4321
|
+
type: Boolean,
|
|
4322
|
+
default: !0
|
|
4323
|
+
},
|
|
4324
|
+
uploader: {
|
|
4325
|
+
type: Function
|
|
4326
|
+
}
|
|
4327
|
+
};
|
|
4328
|
+
class Fa {
|
|
4329
|
+
constructor(o, e = Wo) {
|
|
4330
|
+
this.loader = o, this.uploader = e;
|
|
4331
|
+
}
|
|
4332
|
+
async upload() {
|
|
4333
|
+
const o = this.loader, e = await o.file;
|
|
4334
|
+
if (e) {
|
|
4335
|
+
const t = await this.uploader(e).catch((l) => (console.warn("XCkeditor", l), null));
|
|
4336
|
+
if (t)
|
|
4337
|
+
return o.uploadTotal = e.size, o.uploaded = e.size, {
|
|
4338
|
+
default: t
|
|
4339
|
+
};
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4342
|
+
abort() {
|
|
4343
|
+
}
|
|
4344
|
+
}
|
|
4345
|
+
async function Na() {
|
|
4346
|
+
if (typeof window > "u")
|
|
4347
|
+
return;
|
|
4348
|
+
const a = window, o = a.ClassicEditor || (await import("@ckeditor/ckeditor5-build-classic")).default, e = a.CKEditor || (await import("@ckeditor/ckeditor5-vue")).default, t = a.CKEditorCN || (await import(
|
|
4349
|
+
//@ts-ignore
|
|
4350
|
+
"@ckeditor/ckeditor5-build-classic/build/translations/zh-cn.js"
|
|
4351
|
+
)).default;
|
|
4352
|
+
return a.CKEditorCN = t, {
|
|
4353
|
+
ClassicEditor: re(o),
|
|
4354
|
+
CKEditor: re(e.component),
|
|
4355
|
+
CKEditorCN: t
|
|
4356
|
+
};
|
|
4357
|
+
}
|
|
4358
|
+
function Xa() {
|
|
4359
|
+
const a = I();
|
|
4360
|
+
return Na().then((o) => {
|
|
4361
|
+
a.value = o;
|
|
4362
|
+
}), a;
|
|
4363
|
+
}
|
|
4364
|
+
const rs = /* @__PURE__ */ P({
|
|
4365
|
+
name: "XCKEditor",
|
|
4366
|
+
__name: "Ckeditor",
|
|
4367
|
+
props: Da,
|
|
4368
|
+
emits: ["update:modelValue", "change", "blur", "focus", "ready"],
|
|
4369
|
+
setup(a, { emit: o }) {
|
|
4370
|
+
const e = Xa(), t = a, l = o, s = I(t.modelValue), c = Zo(), r = {
|
|
4371
|
+
language: "zh-cn",
|
|
4372
|
+
mediaEmbed: {
|
|
4373
|
+
providers: [
|
|
4374
|
+
{
|
|
4375
|
+
name: "mp4",
|
|
4376
|
+
url: /\.mp4$/gi,
|
|
4377
|
+
html: (v) => `<video src="${v}" controls style="width:100%; height:400px;"></video>`
|
|
4378
|
+
}
|
|
4379
|
+
]
|
|
4380
|
+
}
|
|
4381
|
+
}, i = b(() => ({
|
|
4382
|
+
"is-editable": t.editable,
|
|
4383
|
+
"is-no-border": !t.editable && !t.border
|
|
4384
|
+
}));
|
|
4385
|
+
U(
|
|
4386
|
+
() => t.modelValue,
|
|
4387
|
+
(v) => {
|
|
4388
|
+
s.value = v;
|
|
4389
|
+
}
|
|
4390
|
+
);
|
|
4391
|
+
const p = (v) => {
|
|
4392
|
+
s.value = v, l("change", v);
|
|
4393
|
+
}, d = (v) => {
|
|
4394
|
+
l("focus", v);
|
|
4395
|
+
}, m = (v) => {
|
|
4396
|
+
l("blur", s.value, v), t.modelValue !== s.value && l("update:modelValue", s.value);
|
|
4397
|
+
}, _ = (v) => {
|
|
4398
|
+
v.plugins.get("FileRepository").createUploadAdapter = (y) => new Fa(y, t.uploader ?? c.uploader), l("ready", v);
|
|
4399
|
+
};
|
|
4400
|
+
return (v, y) => (u(), z("div", {
|
|
4401
|
+
class: Y(["x-ckeditor", i.value])
|
|
4402
|
+
}, [
|
|
4403
|
+
n(e)?.CKEditor ? (u(), g(J(n(e).CKEditor), {
|
|
4404
|
+
key: 0,
|
|
4405
|
+
disabled: !t.editable || t.disabled,
|
|
4406
|
+
editor: n(e).ClassicEditor,
|
|
4407
|
+
config: r,
|
|
4408
|
+
"model-value": s.value,
|
|
4409
|
+
onInput: p,
|
|
4410
|
+
onFocus: d,
|
|
4411
|
+
onBlur: m,
|
|
4412
|
+
onReady: _
|
|
4413
|
+
}, null, 40, ["disabled", "editor", "model-value"])) : h("", !0)
|
|
4414
|
+
], 2));
|
|
4415
|
+
}
|
|
4288
4416
|
});
|
|
4289
4417
|
export {
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4418
|
+
Qe as ADAPTER_KEY,
|
|
4419
|
+
qa as AdapterPlugin,
|
|
4420
|
+
dt as Draggable,
|
|
4421
|
+
ut as INSTALLED_KEY,
|
|
4422
|
+
At as MASK_KEY,
|
|
4423
|
+
pt as Resizable,
|
|
4424
|
+
Rt as TAB_CREATORS_KEY,
|
|
4425
|
+
Rn as TAB_ITEM_WIDTH,
|
|
4426
|
+
Ja as VTJ_UI_VERSION,
|
|
4297
4427
|
te as XAction,
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4428
|
+
tt as XActionBar,
|
|
4429
|
+
rs as XCKEditor,
|
|
4430
|
+
ns as XChart,
|
|
4431
|
+
V as XContainer,
|
|
4432
|
+
os as XDataItem,
|
|
4433
|
+
jt as XDialog,
|
|
4434
|
+
es as XDialogForm,
|
|
4435
|
+
ia as XField,
|
|
4436
|
+
ua as XForm,
|
|
4437
|
+
bn as XHeader,
|
|
4438
|
+
pe as XIcon,
|
|
4439
|
+
is as XInputUnit,
|
|
4440
|
+
as as XList,
|
|
4441
|
+
Za as XMask,
|
|
4442
|
+
ye as XMenu,
|
|
4312
4443
|
Ve as XPanel,
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4444
|
+
ss as XStartup,
|
|
4445
|
+
ts as XTabs,
|
|
4446
|
+
ls as XTest,
|
|
4447
|
+
fn as actionBarProps,
|
|
4448
|
+
It as actionProps,
|
|
4318
4449
|
Ft as builtinFieldEditors,
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
Nt as
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4450
|
+
ha as chartProps,
|
|
4451
|
+
Da as ckeditorProps,
|
|
4452
|
+
mn as containerProps,
|
|
4453
|
+
ot as createDialog,
|
|
4454
|
+
ma as dataItemProps,
|
|
4455
|
+
Qa as defineTab,
|
|
4456
|
+
ca as dialogFormProps,
|
|
4457
|
+
kn as dialogProps,
|
|
4458
|
+
oa as fieldProps,
|
|
4459
|
+
Nt as formInstanceKey,
|
|
4460
|
+
Xt as formModelKey,
|
|
4461
|
+
ra as formProps,
|
|
4462
|
+
Q as getSizeValue,
|
|
4463
|
+
gn as headerProps,
|
|
4464
|
+
Go as iconProps,
|
|
4465
|
+
qo as iconSizeMap,
|
|
4334
4466
|
Aa as inputUnitProps,
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4467
|
+
wa as listProps,
|
|
4468
|
+
Ga as makeInstaller,
|
|
4469
|
+
An as maskProps,
|
|
4470
|
+
hn as panelProps,
|
|
4339
4471
|
Te as parseSize,
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4472
|
+
Ta as startupProps,
|
|
4473
|
+
da as tabsProps,
|
|
4474
|
+
Oa as testProps,
|
|
4475
|
+
rt as toObjectProps,
|
|
4476
|
+
Zo as useAdapter,
|
|
4477
|
+
et as useDisabled,
|
|
4478
|
+
xe as useIcon,
|
|
4479
|
+
un as useIconProps,
|
|
4480
|
+
cn as useLoader,
|
|
4481
|
+
_n as vDraggable,
|
|
4482
|
+
Ot as vResizable
|
|
4350
4483
|
};
|