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