@witlink/components 2.0.1 → 2.0.3

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.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { InputNumber as re, DateRangePicker as Le, Select as Oe, Divider as Re, Space as Ue, Input as ke, Button as le, Drawer as je, App as Be, Modal as Ie, ConfigProvider as We, TextArea as Fe, Table as ze, Popover as qe, Row as Ke, Col as Ve, Slider as He, message as Xe } from "antdv-next";
2
- import { defineComponent as j, useSlots as we, createBlock as U, openBlock as $, mergeProps as F, createSlots as ie, renderList as V, unref as S, withCtx as D, renderSlot as I, normalizeProps as ue, guardReactiveProps as $e, useAttrs as Ye, ref as C, markRaw as Ee, createElementBlock as M, createElementVNode as E, watch as Q, createVNode as P, resolveDynamicComponent as Ze, isRef as Z, withModifiers as ae, getCurrentInstance as J, render as G, h as W, computed as L, onMounted as Pe, onUnmounted as Ge, normalizeClass as Qe, normalizeStyle as pe, mergeModels as z, useModel as ee, resolveDirective as Je, withKeys as et, Fragment as X, createTextVNode as te, toDisplayString as se, withDirectives as tt, nextTick as fe, useCssVars as nt, createCommentVNode as me, shallowRef as H, shallowReadonly as ot, toValue as K, getCurrentScope as at, onScopeDispose as st, toRaw as rt } from "vue";
2
+ import { defineComponent as j, useSlots as we, createBlock as U, openBlock as w, mergeProps as F, createSlots as ie, renderList as V, unref as S, withCtx as P, renderSlot as I, normalizeProps as ce, guardReactiveProps as $e, useAttrs as Ye, ref as x, markRaw as Ee, createElementBlock as M, createElementVNode as $, watch as Q, createVNode as E, resolveDynamicComponent as Ze, isRef as Z, withModifiers as ae, getCurrentInstance as J, render as G, h as W, computed as L, onMounted as Pe, onUnmounted as Ge, normalizeClass as Qe, normalizeStyle as pe, mergeModels as z, useModel as ee, resolveDirective as Je, withKeys as et, Fragment as X, createTextVNode as te, toDisplayString as se, withDirectives as tt, nextTick as fe, useCssVars as nt, createCommentVNode as me, shallowRef as H, shallowReadonly as ot, toValue as K, getCurrentScope as at, onScopeDispose as st, toRaw as rt } from "vue";
3
3
  import ve from "dayjs";
4
+ import "antdv-next/dist/modal/useModal/types";
4
5
  import { ElScrollbar as lt, ElTooltip as it } from "element-plus";
5
- import { isNullOrUndef as q, hasPermission as ut } from "./utils.js";
6
- import { UserCenterKey as bn, buildTree as xn, exportFile as Cn, forEachTree as Sn, getButtonPermissions as kn, getLocale as wn, getMenuInfo as $n, getToken as En, getUserCenterParams as Pn, getUserCenterParamsByUrl as Dn, getUserInfo as An, is as Tn, isArray as Mn, isAsyncFunction as Nn, isBoolean as Ln, isClient as On, isDate as Rn, isDef as Un, isElement as jn, isFunction as Bn, isImageDom as In, isNull as Wn, isNumber as Fn, isObject as zn, isPromise as qn, isServer as Kn, isString as Vn, isUndef as Hn, isWindow as Xn, logoutToUserCenter as Yn, removeAll as Zn, removeLocale as Gn, removeToken as Qn, setLocale as Jn, setMenuInfo as eo, setToken as to, setUserCenterParams as no, setUserInfo as oo, toUserCenterConsole as ao } from "./utils.js";
7
- const ct = /* @__PURE__ */ j({
6
+ import { isNullOrUndef as q, hasPermission as ct } from "./utils.js";
7
+ import { UserCenterKey as xn, buildTree as Cn, exportFile as Sn, forEachTree as kn, getButtonPermissions as wn, getLocale as $n, getMenuInfo as En, getToken as Pn, getUserCenterParams as Dn, getUserCenterParamsByUrl as An, getUserInfo as Tn, is as Mn, isArray as Nn, isAsyncFunction as Ln, isBoolean as On, isClient as Rn, isDate as Un, isDef as jn, isElement as Bn, isFunction as In, isImageDom as Wn, isNull as Fn, isNumber as zn, isObject as qn, isPromise as Kn, isServer as Vn, isString as Hn, isUndef as Xn, isWindow as Yn, logoutToUserCenter as Zn, removeAll as Gn, removeLocale as Qn, removeToken as Jn, setLocale as eo, setMenuInfo as to, setToken as no, setUserCenterParams as oo, setUserInfo as ao, toUserCenterConsole as so } from "./utils.js";
8
+ const ut = /* @__PURE__ */ j({
8
9
  inheritAttrs: !1,
9
10
  __name: "index",
10
11
  props: {
@@ -17,13 +18,13 @@ const ct = /* @__PURE__ */ j({
17
18
  const n = we();
18
19
  return (t, s) => {
19
20
  const i = re;
20
- return $(), U(i, F({
21
+ return w(), U(i, F({
21
22
  mode: e.customControls ? "spinner" : ""
22
23
  }, t.$attrs), ie({ _: 2 }, [
23
24
  V(Object.keys(S(n)), (r) => ({
24
25
  name: r,
25
- fn: D((u) => [
26
- I(t.$slots, r, ue($e(u)))
26
+ fn: P((c) => [
27
+ I(t.$slots, r, ce($e(c)))
27
28
  ])
28
29
  }))
29
30
  ]), 1040, ["mode"]);
@@ -64,33 +65,33 @@ const ct = /* @__PURE__ */ j({
64
65
  },
65
66
  emits: ["update:value", "change"],
66
67
  setup(e, { emit: n }) {
67
- const t = e, s = n, i = Ye(), r = C(), u = C(), o = (l) => {
68
- var w, A, O;
68
+ const t = e, s = n, i = Ye(), r = x(), c = x(), o = (l) => {
69
+ var A, O, R;
69
70
  const g = t.maxUnit || t.unit, h = t.minUnit || t.unit, y = ve().add(t.max, g), v = ve().subtract(t.min, h), k = t.interval;
70
- if (!((w = r.value) != null && w.length))
71
+ if (!((A = r.value) != null && A.length))
71
72
  return l.isAfter(y) || l.isBefore(v);
72
- const p = t.intervalUnit || t.unit, d = i.picker || "date", m = (A = r.value[0]) == null ? void 0 : A.startOf(d), _ = (O = r.value[1]) == null ? void 0 : O.endOf(d), b = m && (l.diff(m, p) > k || l.isAfter(y));
73
- return _ && (_.diff(l, p) > k || l.isBefore(v)) || b;
74
- }, c = (l) => {
75
- l ? (r.value = [], u.value = []) : u.value = void 0;
76
- }, f = (l) => {
73
+ const f = t.intervalUnit || t.unit, p = i.picker || "date", d = (O = r.value[0]) == null ? void 0 : O.startOf(p), _ = (R = r.value[1]) == null ? void 0 : R.endOf(p), b = d && (l.diff(d, f) > k || l.isAfter(y));
74
+ return _ && (_.diff(l, f) > k || l.isBefore(v)) || b;
75
+ }, u = (l) => {
76
+ l ? (r.value = [], c.value = []) : c.value = void 0;
77
+ }, m = (l) => {
77
78
  s("update:value", l), s("change", l);
78
79
  }, a = (l) => {
79
80
  r.value = l;
80
81
  };
81
82
  return (l, g) => {
82
83
  const h = Le;
83
- return $(), U(h, F({
84
- value: S(u) || e.value,
84
+ return w(), U(h, F({
85
+ value: S(c) || e.value,
85
86
  "disabled-date": o,
86
- onChange: f,
87
- onOpenChange: c,
87
+ onChange: m,
88
+ onOpenChange: u,
88
89
  onCalendarChange: a
89
90
  }, l.$attrs), ie({ _: 2 }, [
90
91
  V(Object.keys(l.$slots), (y) => ({
91
92
  name: y,
92
- fn: D((v) => [
93
- I(l.$slots, y, ue($e(v)))
93
+ fn: P((v) => [
94
+ I(l.$slots, y, ce($e(v)))
94
95
  ])
95
96
  }))
96
97
  ]), 1040, ["value"]);
@@ -103,12 +104,12 @@ const ct = /* @__PURE__ */ j({
103
104
  height: "1.2em"
104
105
  };
105
106
  function ft(e, n) {
106
- return $(), M("svg", pt, n[0] || (n[0] = [
107
- E("path", {
107
+ return w(), M("svg", pt, n[0] || (n[0] = [
108
+ $("path", {
108
109
  fill: "currentColor",
109
110
  d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8"
110
111
  }, null, -1),
111
- E("path", {
112
+ $("path", {
112
113
  fill: "currentColor",
113
114
  d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"
114
115
  }, null, -1)
@@ -126,37 +127,37 @@ const mt = Ee({ name: "ant-design-plus", render: ft }), vt = /* @__PURE__ */ j({
126
127
  }
127
128
  },
128
129
  setup(e) {
129
- const n = e, t = C([]), s = C();
130
+ const n = e, t = x([]), s = x();
130
131
  function i() {
131
132
  const r = s.value;
132
- r && t.value.every((u) => u.value !== r) && (t.value.push({ value: r }), s.value = "");
133
+ r && t.value.every((c) => c.value !== r) && (t.value.push({ value: r }), s.value = "");
133
134
  }
134
135
  return Q(
135
136
  () => n.options,
136
- (r, u) => {
137
+ (r, c) => {
137
138
  var o;
138
- r && u && r.length === u.length && r.every((c) => u.includes(c)) || (t.value = ((o = n.options) == null ? void 0 : o.map((c) => ({ value: c }))) || []);
139
+ r && c && r.length === c.length && r.every((u) => c.includes(u)) || (t.value = ((o = n.options) == null ? void 0 : o.map((u) => ({ value: u }))) || []);
139
140
  },
140
141
  { immediate: !0 }
141
- ), (r, u) => {
142
- const o = Re, c = ke, f = mt, a = le, l = Ue, g = Oe;
143
- return $(), U(g, F({ options: S(t) }, r.$attrs), {
144
- popupRender: D((h) => [
145
- ($(), U(Ze(h))),
146
- P(o, { style: { margin: "4px 0" } }),
147
- P(l, null, {
148
- default: D(() => [
149
- P(c, {
142
+ ), (r, c) => {
143
+ const o = Re, u = ke, m = mt, a = le, l = Ue, g = Oe;
144
+ return w(), U(g, F({ options: S(t) }, r.$attrs), {
145
+ popupRender: P((h) => [
146
+ (w(), U(Ze(h))),
147
+ E(o, { style: { margin: "4px 0" } }),
148
+ E(l, null, {
149
+ default: P(() => [
150
+ E(u, {
150
151
  value: S(s),
151
- "onUpdate:value": u[0] || (u[0] = (y) => Z(s) ? s.value = y : null),
152
+ "onUpdate:value": c[0] || (c[0] = (y) => Z(s) ? s.value = y : null),
152
153
  placeholder: e.inputPlaceholder
153
154
  }, null, 8, ["value", "placeholder"]),
154
- P(a, {
155
+ E(a, {
155
156
  type: "text",
156
157
  onClick: ae(i, ["prevent"])
157
158
  }, {
158
- default: D(() => [
159
- P(f)
159
+ default: P(() => [
160
+ E(m)
160
161
  ]),
161
162
  _: 1
162
163
  })
@@ -169,11 +170,11 @@ const mt = Ee({ name: "ant-design-plus", render: ft }), vt = /* @__PURE__ */ j({
169
170
  };
170
171
  }
171
172
  });
172
- function ce(e) {
173
+ function ue(e) {
173
174
  e || (e = J());
174
175
  const n = (e == null ? void 0 : e.provides) || {}, t = gt(n, "ConfigConsumerContext"), s = n[t].value;
175
176
  return Object.fromEntries(
176
- Object.entries(s).map(([r, u]) => [r, S(u)])
177
+ Object.entries(s).map(([r, c]) => [r, S(c)])
177
178
  );
178
179
  }
179
180
  function gt(e, n) {
@@ -187,7 +188,7 @@ function gt(e, n) {
187
188
  }
188
189
  return null;
189
190
  }
190
- function vn(e) {
191
+ function gn(e) {
191
192
  var t;
192
193
  let n = (t = J()) == null ? void 0 : t.parent;
193
194
  for (; n; ) {
@@ -198,7 +199,7 @@ function vn(e) {
198
199
  return null;
199
200
  }
200
201
  const N = je;
201
- let B, ge, R, he;
202
+ let B, ge, D, he;
202
203
  N.destroy = function() {
203
204
  const e = N.instanceArr || [], n = e.pop();
204
205
  if (n && G(null, n.container), e.length > 0) {
@@ -213,14 +214,14 @@ N.destroyAll = function() {
213
214
  G(null, n.container);
214
215
  }), N.instanceArr = [];
215
216
  };
216
- function gn() {
217
+ function hn() {
217
218
  var a, l;
218
219
  const e = J();
219
- if (!R) {
220
+ if (!D) {
220
221
  const g = Be.useApp();
221
- R = g.modal, ge = g.message, he = g.notification;
222
+ D = g.modal, ge = g.message, he = g.notification;
222
223
  }
223
- R.info || (R = Ie);
224
+ D.info || (D = Ie);
224
225
  const n = {
225
226
  zh: "关闭",
226
227
  en: "Close",
@@ -229,10 +230,10 @@ function gn() {
229
230
  zh: "请输入",
230
231
  en: "Please Enter",
231
232
  fr: "Veuillez entrer"
232
- }, s = ce(), i = ((l = (a = s == null ? void 0 : s.locale) == null ? void 0 : a.locale) == null ? void 0 : l.slice(0, 2)) || "en";
233
+ }, s = ue(), i = ((l = (a = s == null ? void 0 : s.locale) == null ? void 0 : a.locale) == null ? void 0 : l.slice(0, 2)) || "en";
233
234
  function r({ title: g, ...h }) {
234
- const y = C();
235
- return u({
235
+ const y = x();
236
+ return c({
236
237
  title: g,
237
238
  ...h,
238
239
  comp: Fe,
@@ -252,8 +253,8 @@ function gn() {
252
253
  })
253
254
  });
254
255
  }
255
- function u({ title: g, comp: h, props: y, ...v }) {
256
- const k = W(h, y), p = (v == null ? void 0 : v.type) ?? "info", d = {
256
+ function c({ title: g, comp: h, props: y, ...v }) {
257
+ const k = W(h, y), f = (v == null ? void 0 : v.type) ?? "info", p = {
257
258
  title: g,
258
259
  content: k,
259
260
  width: "auto",
@@ -264,18 +265,18 @@ function gn() {
264
265
  class: "modal-comp",
265
266
  ...v
266
267
  };
267
- switch (p) {
268
+ switch (f) {
268
269
  case "info":
269
- B = R.info(d);
270
+ B = D.info(p);
270
271
  break;
271
272
  case "warning":
272
- B = R.warning(d);
273
+ B = D.warning(p);
273
274
  break;
274
275
  case "success":
275
- B = R.success(d);
276
+ B = D.success(p);
276
277
  break;
277
278
  case "confirm":
278
- B = R.confirm(d);
279
+ B = D.confirm(p);
279
280
  break;
280
281
  }
281
282
  return B;
@@ -283,27 +284,27 @@ function gn() {
283
284
  function o() {
284
285
  B == null || B.destroy();
285
286
  }
286
- function c({ title: g, comp: h, props: y, ...v }) {
287
+ function u({ title: g, comp: h, props: y, ...v }) {
287
288
  const k = v.getContainer || document.createDocumentFragment();
288
289
  N.instanceArr || (N.instanceArr = []);
289
- const p = N.instanceArr, d = p[p.length - 1];
290
- let m;
291
- if ((d == null ? void 0 : d.comp) === h) {
292
- const _ = d.instance;
293
- Object.assign(_.component.props, { title: g, ...v }), _.component.update(), m = d.compInstance, Object.assign(m.component.props, { ...y }), m.component.update();
290
+ const f = N.instanceArr, p = f[f.length - 1];
291
+ let d;
292
+ if ((p == null ? void 0 : p.comp) === h) {
293
+ const _ = p.instance;
294
+ Object.assign(_.component.props, { title: g, ...v }), _.component.update(), d = p.compInstance, Object.assign(d.component.props, { ...y }), d.component.update();
294
295
  } else {
295
- if (d) {
296
- const O = d.instance;
297
- Object.assign(O.component.props, {
296
+ if (p) {
297
+ const R = p.instance;
298
+ Object.assign(R.component.props, {
298
299
  contentWrapperStyle: { transform: "translateX(-180px)" }
299
- }), O.component.update();
300
+ }), R.component.update();
300
301
  }
301
- m = W(h, y);
302
+ d = W(h, y);
302
303
  const _ = {
303
304
  default: () => W(
304
305
  lt,
305
306
  { style: { height: "100%" }, wrapStyle: { overflowX: "hidden" } },
306
- m
307
+ d
307
308
  )
308
309
  };
309
310
  v.footer === void 0 && Object.assign(_, {
@@ -319,7 +320,7 @@ function gn() {
319
320
  });
320
321
  const b = v.width || 992;
321
322
  delete v.width;
322
- const x = W(
323
+ const C = W(
323
324
  N,
324
325
  {
325
326
  title: g,
@@ -335,31 +336,36 @@ function gn() {
335
336
  ...v
336
337
  },
337
338
  _
338
- ), w = s.getPrefixCls(), A = W(
339
+ ), A = s.getPrefixCls(), O = W(
339
340
  We,
340
- { ...s, prefixCls: w },
341
- { default: () => x }
341
+ { ...s, prefixCls: A },
342
+ { default: () => C }
342
343
  );
343
- A.appContext = e.appContext, G(A, k), p.push({ instance: x, comp: h, compInstance: m, container: k });
344
+ O.appContext = e.appContext, G(O, k), f.push({ instance: C, comp: h, compInstance: d, container: k });
344
345
  }
345
346
  return {
346
347
  updateProps: (_) => {
347
- Object.assign(m.component.props, { ..._ }), m.component.update();
348
+ Object.assign(d.component.props, { ..._ }), d.component.update();
348
349
  }
349
350
  };
350
351
  }
351
- function f() {
352
+ function m() {
352
353
  N.destroy();
353
354
  }
354
355
  return {
355
356
  message: ge,
356
- modal: R,
357
+ modal: D,
357
358
  notification: he,
359
+ confirm: D.confirm,
360
+ info: D.info,
361
+ warn: D.warning,
362
+ warning: D.warning,
363
+ error: D.error,
358
364
  modalInput: r,
359
- modalComp: u,
365
+ modalComp: c,
360
366
  modalDestroy: o,
361
- drawerComp: c,
362
- drawerDestroy: f
367
+ drawerComp: u,
368
+ drawerDestroy: m
363
369
  };
364
370
  }
365
371
  const ht = /* @__PURE__ */ j({
@@ -380,71 +386,67 @@ const ht = /* @__PURE__ */ j({
380
386
  }
381
387
  },
382
388
  setup(e, { expose: n }) {
383
- const t = e, s = we(), i = C([]), r = C(!1), u = C(0), o = C(1), c = C(10), f = C(), a = C(), l = {
389
+ const t = e, s = we(), i = x([]), r = x(!1), c = x(0), o = x(1), u = x(10), m = x(), a = x(), l = {
384
390
  zh: "共 {num} 条",
385
391
  en: "Total {num} items",
386
392
  fr: "Total de {num}"
387
- }, g = ce(), h = L(() => {
388
- var b, x;
389
- return ((x = (b = g == null ? void 0 : g.locale) == null ? void 0 : b.locale) == null ? void 0 : x.slice(0, 2)) || "en";
393
+ }, g = ue(), h = L(() => {
394
+ var _, b;
395
+ return ((b = (_ = g == null ? void 0 : g.locale) == null ? void 0 : _.locale) == null ? void 0 : b.slice(0, 2)) || "en";
390
396
  }), y = L(() => ({
391
- total: u.value,
397
+ total: c.value,
392
398
  current: o.value,
393
- pageSize: c.value,
399
+ pageSize: u.value,
394
400
  showSizeChanger: !0,
395
401
  size: "small",
396
- showTotal: (_) => l[h.value].replace("{num}", _)
402
+ showTotal: (d) => l[h.value].replace("{num}", d)
397
403
  }));
398
404
  function v() {
399
- var _;
405
+ var d;
400
406
  if (typeof t.loadData == "function") {
401
407
  r.value = !0;
402
- let b;
403
- t.newFieldName ? b = { current: o.value, size: c.value } : b = { pageNo: o.value, pageSize: c.value }, t.formatSortParams && ((_ = a.value) != null && _.orderMap) && (b[a.value.field + "SortField"] = a.value.orderMap), t.loadData(b, f.value, a.value).then((x) => {
404
- if (r.value = !1, (x == null ? void 0 : x.code) === 0) {
405
- const w = x.result || {};
406
- t.newFieldName ? (u.value = w.total, i.value = w.records) : (u.value = w.totalCount, i.value = w.data);
408
+ let _;
409
+ t.newFieldName ? _ = { current: o.value, size: u.value } : _ = { pageNo: o.value, pageSize: u.value }, t.formatSortParams && ((d = a.value) != null && d.orderMap) && (_[a.value.field + "SortField"] = a.value.orderMap), t.loadData(_, m.value, a.value).then((b) => {
410
+ if (r.value = !1, (b == null ? void 0 : b.code) === 0) {
411
+ const C = b.result || {};
412
+ t.newFieldName ? (c.value = C.total, i.value = C.records) : (c.value = C.totalCount, i.value = C.data);
407
413
  }
408
414
  });
409
415
  }
410
416
  }
411
- function k(_, b, x) {
412
- if (o.value = _.current, c.value = _.pageSize, f.value = b, x) {
413
- const w = {
417
+ function k(d, _, b) {
418
+ if (o.value = d.current, u.value = d.pageSize, m.value = _, b) {
419
+ const C = {
414
420
  ascend: "asc",
415
421
  descend: "desc"
416
422
  };
417
- x.orderMap = w[x.order] || "";
423
+ b.orderMap = C[b.order] || "";
418
424
  }
419
- a.value = x, v();
425
+ a.value = b, v();
420
426
  }
421
- function p(_, b) {
422
- b.width = _;
423
- }
424
- function d() {
427
+ function f() {
425
428
  o.value = 1, v();
426
429
  }
427
- function m() {
428
- o.value = 1, u.value = 0, i.value = [];
430
+ function p() {
431
+ o.value = 1, c.value = 0, i.value = [];
429
432
  }
430
433
  return n({
431
434
  loadData: v,
432
- refresh: d,
433
- reset: m
434
- }), (_, b) => {
435
- const x = ze;
436
- return $(), U(x, F({
435
+ refresh: f,
436
+ reset: p
437
+ }), (d, _) => {
438
+ const b = ze;
439
+ return w(), U(b, F({
437
440
  class: "table-ex",
438
441
  loading: S(r),
439
442
  pagination: S(y),
440
443
  dataSource: S(i),
441
- onChange: k,
442
- onResizeColumn: p
443
- }, _.$attrs), ie({ _: 2 }, [
444
- V(Object.keys(S(s)), (w) => ({
445
- name: w,
446
- fn: D((A) => [
447
- w !== "emptyText" ? I(_.$slots, w, ue(F({ key: 0 }, A))) : I(_.$slots, w, { key: 1 })
444
+ onChange: k
445
+ }, d.$attrs), ie({ _: 2 }, [
446
+ V(Object.keys(S(s)), (C) => ({
447
+ name: C,
448
+ fn: P((A) => [
449
+ C !== "emptyText" ? I(d.$slots, C, ce(F({ key: 0 }, A))) : I(d.$slots, C, { key: 1 })
448
450
  ])
449
451
  }))
450
452
  ]), 1040, ["loading", "pagination", "dataSource"]);
@@ -457,14 +459,14 @@ const ht = /* @__PURE__ */ j({
457
459
  return t;
458
460
  }, _t = {}, bt = { class: "page-header" }, xt = { class: "page-header-heading" }, Ct = { class: "page-header-heading-left" }, St = { class: "page-header-heading-title" }, kt = { class: "page-header-heading-extra" };
459
461
  function wt(e, n) {
460
- return $(), M("div", bt, [
461
- E("div", xt, [
462
- E("div", Ct, [
463
- E("span", St, [
462
+ return w(), M("div", bt, [
463
+ $("div", xt, [
464
+ $("div", Ct, [
465
+ $("span", St, [
464
466
  I(e.$slots, "title")
465
467
  ])
466
468
  ]),
467
- E("span", kt, [
469
+ $("span", kt, [
468
470
  I(e.$slots, "extra")
469
471
  ])
470
472
  ])
@@ -487,19 +489,19 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
487
489
  }
488
490
  },
489
491
  setup(e) {
490
- const n = e, t = C(), s = C(), i = C({}), r = C({}), u = C(0.2);
491
- function o(f) {
492
- i.value = { width: `calc(${f * 100}% - 5px)` }, r.value = { width: `calc(${(1 - f) * 100}% - 5px)` };
492
+ const n = e, t = x(), s = x(), i = x({}), r = x({}), c = x(0.2);
493
+ function o(m) {
494
+ i.value = { width: `calc(${m * 100}% - 5px)` }, r.value = { width: `calc(${(1 - m) * 100}% - 5px)` };
493
495
  }
494
- function c() {
495
- const f = t.value;
496
- if (!f)
496
+ function u() {
497
+ const m = t.value;
498
+ if (!m)
497
499
  return;
498
- const a = f.clientWidth, l = f.getBoundingClientRect(), g = l.left;
500
+ const a = m.clientWidth, l = m.getBoundingClientRect(), g = l.left;
499
501
  function h(v) {
500
502
  v.preventDefault(), (v.clientX < l.left || v.clientX > l.right || v.clientY < l.top || v.clientY > l.bottom) && y();
501
- const p = (v.clientX - g) / a;
502
- p > n.leftMin && p < n.leftMax && (u.value = p, o(p));
503
+ const f = (v.clientX - g) / a;
504
+ f > n.leftMin && f < n.leftMax && (c.value = f, o(f));
503
505
  }
504
506
  function y() {
505
507
  document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", y);
@@ -507,31 +509,31 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
507
509
  document.addEventListener("mousemove", h), document.addEventListener("mouseup", y);
508
510
  }
509
511
  return Pe(() => {
510
- o(u.value), s.value && s.value.addEventListener("mousedown", c, !1);
512
+ o(c.value), s.value && s.value.addEventListener("mousedown", u, !1);
511
513
  }), Ge(() => {
512
- s.value && s.value.removeEventListener("mousedown", c);
513
- }), (f, a) => ($(), M("div", {
514
+ s.value && s.value.removeEventListener("mousedown", u);
515
+ }), (m, a) => (w(), M("div", {
514
516
  ref_key: "container",
515
517
  ref: t,
516
518
  class: Qe(["wl-splitter", { bordered: e.bordered }])
517
519
  }, [
518
- E("div", {
520
+ $("div", {
519
521
  class: "my-left",
520
522
  style: pe(S(i))
521
523
  }, [
522
- I(f.$slots, "left")
524
+ I(m.$slots, "left")
523
525
  ], 4),
524
- E("div", {
526
+ $("div", {
525
527
  ref_key: "spliter",
526
528
  ref: s,
527
529
  style: { height: "100%", width: "10px" },
528
530
  class: "my-spliter"
529
531
  }, null, 512),
530
- E("div", {
532
+ $("div", {
531
533
  class: "my-right",
532
534
  style: pe(S(r))
533
535
  }, [
534
- I(f.$slots, "right")
536
+ I(m.$slots, "right")
535
537
  ], 4)
536
538
  ], 2));
537
539
  }
@@ -544,20 +546,20 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
544
546
  xmlns: "http://www.w3.org/2000/svg"
545
547
  };
546
548
  function Dt(e, n) {
547
- return $(), M("svg", Pt, n[0] || (n[0] = [
548
- E("path", {
549
+ return w(), M("svg", Pt, n[0] || (n[0] = [
550
+ $("path", {
549
551
  d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
550
552
  stroke: "#272E3B",
551
553
  "stroke-linecap": "round",
552
554
  "stroke-linejoin": "round"
553
555
  }, null, -1),
554
- E("path", {
556
+ $("path", {
555
557
  d: "M10.8125 9.5L15.8125 14.5",
556
558
  stroke: "#272E3B",
557
559
  "stroke-linecap": "round",
558
560
  "stroke-linejoin": "round"
559
561
  }, null, -1),
560
- E("path", {
562
+ $("path", {
561
563
  d: "M15.8125 9.5L10.8125 14.5",
562
564
  stroke: "#272E3B",
563
565
  "stroke-linecap": "round",
@@ -591,37 +593,37 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
591
593
  }),
592
594
  emits: /* @__PURE__ */ z(["enter"], ["update:value"]),
593
595
  setup(e, { emit: n }) {
594
- const t = e, s = n, i = C(), r = C(), u = C(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), o = ee(e, "value"), c = C(!1);
595
- function f() {
596
- c.value = !0;
596
+ const t = e, s = n, i = x(), r = x(), c = x(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), o = ee(e, "value"), u = x(!1);
597
+ function m() {
598
+ u.value = !0;
597
599
  }
598
600
  function a() {
599
601
  k();
600
602
  }
601
- function l(p) {
602
- r.value.focus(), o.value = Number(p).toFixed(t.precision);
603
+ function l(f) {
604
+ r.value.focus(), o.value = Number(f).toFixed(t.precision);
603
605
  }
604
- function g(p) {
606
+ function g(f) {
605
607
  if (r.value.focus(), q(o.value) || o.value === "") {
606
- if (["00", "."].includes(p))
608
+ if (["00", "."].includes(f))
607
609
  return;
608
- o.value = p;
610
+ o.value = f;
609
611
  } else {
610
- const d = String(o.value), m = i.value.getElementsByTagName("input")[0], _ = m.selectionStart || 0, b = m.selectionEnd || 0;
611
- o.value = `${d.slice(0, _)}${p}${d.slice(b)}`;
612
- const x = _ + p.length;
612
+ const p = String(o.value), d = i.value.getElementsByTagName("input")[0], _ = d.selectionStart || 0, b = d.selectionEnd || 0;
613
+ o.value = `${p.slice(0, _)}${f}${p.slice(b)}`;
614
+ const C = _ + f.length;
613
615
  fe(() => {
614
- r.value.setSelectionRange(x, x);
616
+ r.value.setSelectionRange(C, C);
615
617
  });
616
618
  }
617
619
  }
618
620
  function h() {
619
621
  if (r.value.focus(), q(o.value))
620
622
  return;
621
- const p = String(o.value);
622
- if (p != null && p.length) {
623
- const d = i.value.getElementsByTagName("input")[0], m = d.selectionStart || 0, _ = d.selectionEnd || 0, b = m > 0 ? m - 1 : 0;
624
- m === _ ? o.value = p.slice(0, b) + p.slice(_) : o.value = p.slice(0, m) + p.slice(_), fe(() => {
623
+ const f = String(o.value);
624
+ if (f != null && f.length) {
625
+ const p = i.value.getElementsByTagName("input")[0], d = p.selectionStart || 0, _ = p.selectionEnd || 0, b = d > 0 ? d - 1 : 0;
626
+ d === _ ? o.value = f.slice(0, b) + f.slice(_) : o.value = f.slice(0, d) + f.slice(_), fe(() => {
625
627
  r.value.setSelectionRange(b, b);
626
628
  });
627
629
  }
@@ -633,53 +635,53 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
633
635
  r.value.blur();
634
636
  }
635
637
  function k() {
636
- const p = t.min, d = t.max;
637
- let m = parseFloat(o.value || "0");
638
- q(p) || (m = m > p ? m : p), q(d) || (m = m > d ? d : m), o.value = Number(m).toFixed(t.precision), c.value = !1, s("enter");
638
+ const f = t.min, p = t.max;
639
+ let d = parseFloat(o.value || "0");
640
+ q(f) || (d = d > f ? d : f), q(p) || (d = d > p ? p : d), o.value = Number(d).toFixed(t.precision), u.value = !1, s("enter");
639
641
  }
640
- return (p, d) => {
641
- const m = le, _ = Ve, b = At, x = Ke, w = ke, A = qe, O = Je("longpress");
642
- return $(), M("div", {
642
+ return (f, p) => {
643
+ const d = le, _ = Ve, b = At, C = Ke, A = ke, O = qe, R = Je("longpress");
644
+ return w(), M("div", {
643
645
  class: "number-keyboard",
644
646
  ref_key: "numberKeyboard",
645
647
  ref: i
646
648
  }, [
647
- P(A, {
649
+ E(O, {
648
650
  overlayClassName: "popover-keyboard",
649
651
  trigger: "manual",
650
652
  placement: "bottomLeft",
651
653
  arrow: !1,
652
654
  align: { offset: [0, 0] },
653
- open: S(c),
654
- "onUpdate:open": d[2] || (d[2] = (T) => Z(c) ? c.value = T : null)
655
+ open: S(u),
656
+ "onUpdate:open": p[2] || (p[2] = (T) => Z(u) ? u.value = T : null)
655
657
  }, {
656
- content: D(() => [
657
- E("div", {
658
+ content: P(() => [
659
+ $("div", {
658
660
  class: "keyboard-panel",
659
- onMousedownCapture: d[0] || (d[0] = ae(() => {
661
+ onMousedownCapture: p[0] || (p[0] = ae(() => {
660
662
  }, ["prevent", "stop"]))
661
663
  }, [
662
- P(x, { gutter: "8" }, {
663
- default: D(() => [
664
- P(_, { span: 18 }, {
665
- default: D(() => [
666
- E("div", Tt, [
667
- ($(!0), M(X, null, V(e.quickNums, (T) => ($(), U(m, {
664
+ E(C, { gutter: "8" }, {
665
+ default: P(() => [
666
+ E(_, { span: 18 }, {
667
+ default: P(() => [
668
+ $("div", Tt, [
669
+ (w(!0), M(X, null, V(e.quickNums, (T) => (w(), U(d, {
668
670
  class: "btn-num",
669
671
  key: T,
670
672
  onClick: (Ne) => l(T)
671
673
  }, {
672
- default: D(() => [
674
+ default: P(() => [
673
675
  te(se(T), 1)
674
676
  ]),
675
677
  _: 2
676
678
  }, 1032, ["onClick"]))), 128)),
677
- ($(!0), M(X, null, V(S(u), (T) => ($(), U(m, {
679
+ (w(!0), M(X, null, V(S(c), (T) => (w(), U(d, {
678
680
  class: "btn-num",
679
681
  key: T,
680
682
  onClick: (Ne) => g(T)
681
683
  }, {
682
- default: D(() => [
684
+ default: P(() => [
683
685
  te(se(T), 1)
684
686
  ]),
685
687
  _: 2
@@ -688,26 +690,26 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
688
690
  ]),
689
691
  _: 1
690
692
  }),
691
- P(_, { span: 6 }, {
692
- default: D(() => [
693
- E("div", Mt, [
694
- tt(($(), U(m, {
693
+ E(_, { span: 6 }, {
694
+ default: P(() => [
695
+ $("div", Mt, [
696
+ tt((w(), U(d, {
695
697
  class: "btn-clear",
696
698
  onClick: h
697
699
  }, {
698
- default: D(() => [
699
- P(b, { style: { width: "24px", height: "24px" } })
700
+ default: P(() => [
701
+ E(b, { style: { width: "24px", height: "24px" } })
700
702
  ]),
701
703
  _: 1
702
704
  })), [
703
- [O, y]
705
+ [R, y]
704
706
  ]),
705
- P(m, {
707
+ E(d, {
706
708
  class: "btn-enter",
707
709
  type: "primary",
708
710
  onClick: ae(v, ["stop"])
709
711
  }, {
710
- default: D(() => d[3] || (d[3] = [
712
+ default: P(() => p[3] || (p[3] = [
711
713
  te("Enter ")
712
714
  ])),
713
715
  _: 1
@@ -721,14 +723,14 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
721
723
  })
722
724
  ], 32)
723
725
  ]),
724
- default: D(() => [
725
- P(w, F({
726
+ default: P(() => [
727
+ E(A, F({
726
728
  ref_key: "inputRef",
727
729
  ref: r,
728
730
  value: o.value,
729
- "onUpdate:value": d[1] || (d[1] = (T) => o.value = T)
730
- }, p.$attrs, {
731
- onFocus: f,
731
+ "onUpdate:value": p[1] || (p[1] = (T) => o.value = T)
732
+ }, f.$attrs, {
733
+ onFocus: m,
732
734
  onBlur: a,
733
735
  onKeyup: et(v, ["enter"])
734
736
  }), null, 16, ["value"])
@@ -768,38 +770,38 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
768
770
  emits: /* @__PURE__ */ z(["change"], ["update:value"]),
769
771
  setup(e, { emit: n }) {
770
772
  nt((a) => ({
771
- "6ffd511e": S(u),
773
+ "6ffd511e": S(c),
772
774
  "1201d0a5": S(o),
773
- "1201d466": S(c)
775
+ "1201d466": S(u)
774
776
  }));
775
777
  const t = e, s = ee(e, "value"), i = n, r = L(() => {
776
778
  const a = {}, l = Array.from(t.flagStops), g = t.min || 0, h = t.max || 100, y = [g, ...s.value, h];
777
779
  for (let v = 0; v < y.length; v++) {
778
780
  const k = y[v];
779
781
  if (a[k] = k, v > 0) {
780
- const p = l.shift(), d = y[v - 1], m = d + (k - d) / 2;
781
- a[m] = { style: { top: "-28px" }, label: p };
782
+ const f = l.shift(), p = y[v - 1], d = p + (k - p) / 2;
783
+ a[d] = { style: { top: "-28px" }, label: f };
782
784
  }
783
785
  }
784
786
  return a;
785
- }), u = L(() => {
787
+ }), c = L(() => {
786
788
  const a = s.value, l = t.min || 0, g = t.max || 100, h = Math.floor((a[0] - l) / (g - l) * 100), y = t.colorStops, v = y[0], k = y[y.length - 1];
787
789
  return `linear-gradient(90deg, ${v} 0%, ${v} ${h}%, ${k} ${h}%, ${k} 100%)`;
788
- }), o = L(() => t.colorStops[1]), c = L(() => t.colorStops[2]);
789
- function f(a) {
790
+ }), o = L(() => t.colorStops[1]), u = L(() => t.colorStops[2]);
791
+ function m(a) {
790
792
  const l = t.min || 0, g = t.max || 100;
791
793
  a[0] <= l ? a[0] = l + 1 : a.at(-1) >= g && (a[a.length - 1] = g - 1), a.length === new Set(a).size && (s.value = a, i("change", a));
792
794
  }
793
795
  return (a, l) => {
794
796
  const g = He;
795
- return $(), U(g, F({
797
+ return w(), U(g, F({
796
798
  class: "rate-slider",
797
799
  value: s.value,
798
800
  min: e.min,
799
801
  max: e.max,
800
802
  range: "",
801
803
  marks: S(r),
802
- onChange: f
804
+ onChange: m
803
805
  }, a.$attrs), null, 16, ["value", "min", "max", "marks"]);
804
806
  };
805
807
  }
@@ -819,19 +821,19 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
819
821
  }),
820
822
  emits: ["update:value"],
821
823
  setup(e) {
822
- const n = e, t = ee(e, "value"), s = C(["", "", "", ""]), i = C(), r = C(""), u = C(), o = (a) => {
824
+ const n = e, t = ee(e, "value"), s = x(["", "", "", ""]), i = x(), r = x(""), c = x(), o = (a) => {
823
825
  var g, h;
824
826
  const l = s.value[a];
825
827
  if (l && (!/^\d+$/.test(l) || parseInt(l) > 255)) {
826
828
  s.value[a] = "";
827
829
  return;
828
830
  }
829
- parseInt(l) >= 100 && (a < 3 ? (g = i.value) != null && g.length && i.value[a + 1].focus() : n.hasPort && ((h = u.value) == null || h.focus())), t.value = `${s.value.join(".")}${n.hasPort ? ":" + r.value : ""}`;
830
- }, c = (a, l) => {
831
+ parseInt(l) >= 100 && (a < 3 ? (g = i.value) != null && g.length && i.value[a + 1].focus() : n.hasPort && ((h = c.value) == null || h.focus())), t.value = `${s.value.join(".")}${n.hasPort ? ":" + r.value : ""}`;
832
+ }, u = (a, l) => {
831
833
  var g, h;
832
834
  l.key === " " && a < 3 && (l.preventDefault(), (g = i.value) != null && g.length && i.value[a + 1].focus()), l.key === "Backspace" && s.value[a] === "" && a > 0 && (h = i.value) != null && h.length && i.value[a - 1].focus();
833
835
  };
834
- function f() {
836
+ function m() {
835
837
  t.value = `${s.value.join(".")}${n.hasPort ? ":" + (r.value || "") : ""}`;
836
838
  }
837
839
  return Q(
@@ -851,10 +853,10 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
851
853
  { immediate: !0 }
852
854
  ), (a, l) => {
853
855
  const g = re;
854
- return $(), M("div", Ot, [
855
- E("div", Rt, [
856
- ($(!0), M(X, null, V(S(s), (h, y) => ($(), M(X, { key: y }, [
857
- P(g, {
856
+ return w(), M("div", Ot, [
857
+ $("div", Rt, [
858
+ (w(!0), M(X, null, V(S(s), (h, y) => (w(), M(X, { key: y }, [
859
+ E(g, {
858
860
  ref_for: !0,
859
861
  ref_key: "ipPartArr",
860
862
  ref: i,
@@ -866,16 +868,16 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
866
868
  precision: 0,
867
869
  controls: !1,
868
870
  onChange: (v) => o(y),
869
- onKeydown: (v) => c(y, v)
871
+ onKeydown: (v) => u(y, v)
870
872
  }, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
871
- y < 3 ? ($(), M("span", Ut, ".")) : me("", !0)
873
+ y < 3 ? (w(), M("span", Ut, ".")) : me("", !0)
872
874
  ], 64))), 128))
873
875
  ]),
874
- e.hasPort ? ($(), M(X, { key: 0 }, [
875
- l[1] || (l[1] = E("span", { class: "ip-port-separator" }, ":", -1)),
876
- P(g, {
876
+ e.hasPort ? (w(), M(X, { key: 0 }, [
877
+ l[1] || (l[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
878
+ E(g, {
877
879
  ref_key: "portRef",
878
- ref: u,
880
+ ref: c,
879
881
  class: "ip-port",
880
882
  value: S(r),
881
883
  "onUpdate:value": l[0] || (l[0] = (h) => Z(r) ? r.value = h : null),
@@ -883,7 +885,7 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
883
885
  max: 65535,
884
886
  precision: 0,
885
887
  controls: !1,
886
- onChange: f
888
+ onChange: m
887
889
  }, null, 8, ["value"])
888
890
  ], 64)) : me("", !0)
889
891
  ]);
@@ -918,46 +920,46 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
918
920
  const t = e, s = ee(e, "value"), i = n, r = L(() => {
919
921
  const a = s.value[1];
920
922
  return q(a) ? t.max : a;
921
- }), u = L(() => {
923
+ }), c = L(() => {
922
924
  const a = s.value[0];
923
925
  return q(a) ? t.min : a;
924
- }), o = C(), c = C();
925
- function f() {
926
- const a = [o.value, c.value];
926
+ }), o = x(), u = x();
927
+ function m() {
928
+ const a = [o.value, u.value];
927
929
  s.value = a, i("change", a);
928
930
  }
929
931
  return Q(
930
932
  () => s.value,
931
933
  (a) => {
932
- a != null && a.length ? (o.value = a[0], c.value = a[1]) : (o.value = void 0, c.value = void 0);
934
+ a != null && a.length ? (o.value = a[0], u.value = a[1]) : (o.value = void 0, u.value = void 0);
933
935
  },
934
936
  { immediate: !0 }
935
937
  ), (a, l) => {
936
938
  const g = re;
937
- return $(), M("div", Bt, [
938
- P(g, {
939
+ return w(), M("div", Bt, [
940
+ E(g, {
939
941
  min: t.min,
940
942
  max: S(r),
941
943
  value: S(o),
942
944
  "onUpdate:value": l[0] || (l[0] = (h) => Z(o) ? o.value = h : null),
943
945
  placeholder: e.placeholder[0] || "",
944
- onChange: f
946
+ onChange: m
945
947
  }, null, 8, ["min", "max", "value", "placeholder"]),
946
- E("span", It, se(e.separator), 1),
947
- P(g, {
948
- min: S(u),
948
+ $("span", It, se(e.separator), 1),
949
+ E(g, {
950
+ min: S(c),
949
951
  max: t.max,
950
- value: S(c),
951
- "onUpdate:value": l[1] || (l[1] = (h) => Z(c) ? c.value = h : null),
952
+ value: S(u),
953
+ "onUpdate:value": l[1] || (l[1] = (h) => Z(u) ? u.value = h : null),
952
954
  placeholder: e.placeholder[1] || "",
953
- onChange: f
955
+ onChange: m
954
956
  }, null, 8, ["min", "max", "value", "placeholder"])
955
957
  ]);
956
958
  };
957
959
  }
958
960
  }), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
959
961
  __proto__: null,
960
- AInputNumberEx: ct,
962
+ AInputNumberEx: ut,
961
963
  APageHeader: $t,
962
964
  ARangePickerEx: dt,
963
965
  ASelectEx: vt,
@@ -992,22 +994,22 @@ function Kt(e, n, t = {}) {
992
994
  immediate: s = !0,
993
995
  immediateCallback: i = !1
994
996
  } = t, r = H(!1);
995
- let u = null;
997
+ let c = null;
996
998
  function o() {
997
- u && (clearTimeout(u), u = null);
999
+ c && (clearTimeout(c), c = null);
998
1000
  }
999
- function c() {
1001
+ function u() {
1000
1002
  r.value = !1, o();
1001
1003
  }
1002
- function f(...a) {
1003
- i && e(), o(), r.value = !0, u = setTimeout(() => {
1004
- r.value = !1, u = null, e(...a);
1004
+ function m(...a) {
1005
+ i && e(), o(), r.value = !0, c = setTimeout(() => {
1006
+ r.value = !1, c = null, e(...a);
1005
1007
  }, K(n));
1006
1008
  }
1007
- return s && (r.value = !0, de && f()), De(c), {
1009
+ return s && (r.value = !0, de && m()), De(u), {
1008
1010
  isPending: ot(r),
1009
- start: f,
1010
- stop: c
1011
+ start: m,
1012
+ stop: u
1011
1013
  };
1012
1014
  }
1013
1015
  function Vt(e, n, t) {
@@ -1029,37 +1031,37 @@ function Te(e) {
1029
1031
  function Y(...e) {
1030
1032
  const n = [], t = () => {
1031
1033
  n.forEach((o) => o()), n.length = 0;
1032
- }, s = (o, c, f, a) => (o.addEventListener(c, f, a), () => o.removeEventListener(c, f, a)), i = L(() => {
1033
- const o = ne(K(e[0])).filter((c) => c != null);
1034
- return o.every((c) => typeof c != "string") ? o : void 0;
1034
+ }, s = (o, u, m, a) => (o.addEventListener(u, m, a), () => o.removeEventListener(u, m, a)), i = L(() => {
1035
+ const o = ne(K(e[0])).filter((u) => u != null);
1036
+ return o.every((u) => typeof u != "string") ? o : void 0;
1035
1037
  }), r = Vt(
1036
1038
  () => {
1037
- var o, c;
1039
+ var o, u;
1038
1040
  return [
1039
- (c = (o = i.value) == null ? void 0 : o.map((f) => Te(f))) != null ? c : [Ht].filter((f) => f != null),
1041
+ (u = (o = i.value) == null ? void 0 : o.map((m) => Te(m))) != null ? u : [Ht].filter((m) => m != null),
1040
1042
  ne(K(i.value ? e[1] : e[0])),
1041
1043
  ne(S(i.value ? e[2] : e[1])),
1042
1044
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1043
1045
  K(i.value ? e[3] : e[2])
1044
1046
  ];
1045
1047
  },
1046
- ([o, c, f, a]) => {
1047
- if (t(), !(o != null && o.length) || !(c != null && c.length) || !(f != null && f.length))
1048
+ ([o, u, m, a]) => {
1049
+ if (t(), !(o != null && o.length) || !(u != null && u.length) || !(m != null && m.length))
1048
1050
  return;
1049
1051
  const l = zt(a) ? { ...a } : a;
1050
1052
  n.push(
1051
1053
  ...o.flatMap(
1052
- (g) => c.flatMap(
1053
- (h) => f.map((y) => s(g, h, y, l))
1054
+ (g) => u.flatMap(
1055
+ (h) => m.map((y) => s(g, h, y, l))
1054
1056
  )
1055
1057
  )
1056
1058
  );
1057
1059
  },
1058
1060
  { flush: "post" }
1059
- ), u = () => {
1061
+ ), c = () => {
1060
1062
  r(), t();
1061
1063
  };
1062
- return De(t), u;
1064
+ return De(t), c;
1063
1065
  }
1064
1066
  function Xt() {
1065
1067
  const e = H(!1), n = J();
@@ -1075,38 +1077,38 @@ const Yt = 500, Zt = 10;
1075
1077
  function Gt(e, n, t) {
1076
1078
  var s, i;
1077
1079
  const r = L(() => Te(e));
1078
- let u, o, c, f = !1;
1080
+ let c, o, u, m = !1;
1079
1081
  function a() {
1080
- u && (clearTimeout(u), u = void 0), o = void 0, c = void 0, f = !1;
1082
+ c && (clearTimeout(c), c = void 0), o = void 0, u = void 0, m = !1;
1081
1083
  }
1082
- function l(p) {
1083
- var d, m, _;
1084
- const [b, x, w] = [c, o, f];
1085
- if (a(), !(t != null && t.onMouseUp) || !x || !b || (d = t == null ? void 0 : t.modifiers) != null && d.self && p.target !== r.value)
1084
+ function l(f) {
1085
+ var p, d, _;
1086
+ const [b, C, A] = [u, o, m];
1087
+ if (a(), !(t != null && t.onMouseUp) || !C || !b || (p = t == null ? void 0 : t.modifiers) != null && p.self && f.target !== r.value)
1086
1088
  return;
1087
- (m = t == null ? void 0 : t.modifiers) != null && m.prevent && p.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && p.stopPropagation();
1088
- const A = p.x - x.x, O = p.y - x.y, T = Math.sqrt(A * A + O * O);
1089
- t.onMouseUp(p.timeStamp - b, T, w);
1089
+ (d = t == null ? void 0 : t.modifiers) != null && d.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
1090
+ const O = f.x - C.x, R = f.y - C.y, T = Math.sqrt(O * O + R * R);
1091
+ t.onMouseUp(f.timeStamp - b, T, A);
1090
1092
  }
1091
- function g(p) {
1092
- var d, m, _, b;
1093
- (d = t == null ? void 0 : t.modifiers) != null && d.self && p.target !== r.value || (a(), (m = t == null ? void 0 : t.modifiers) != null && m.prevent && p.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && p.stopPropagation(), o = {
1094
- x: p.x,
1095
- y: p.y
1096
- }, c = p.timeStamp, u = setTimeout(
1093
+ function g(f) {
1094
+ var p, d, _, b;
1095
+ (p = t == null ? void 0 : t.modifiers) != null && p.self && f.target !== r.value || (a(), (d = t == null ? void 0 : t.modifiers) != null && d.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation(), o = {
1096
+ x: f.x,
1097
+ y: f.y
1098
+ }, u = f.timeStamp, c = setTimeout(
1097
1099
  () => {
1098
- f = !0, n(p);
1100
+ m = !0, n(f);
1099
1101
  },
1100
1102
  (b = t == null ? void 0 : t.delay) != null ? b : Yt
1101
1103
  ));
1102
1104
  }
1103
- function h(p) {
1104
- var d, m, _, b;
1105
- if ((d = t == null ? void 0 : t.modifiers) != null && d.self && p.target !== r.value || !o || (t == null ? void 0 : t.distanceThreshold) === !1)
1105
+ function h(f) {
1106
+ var p, d, _, b;
1107
+ if ((p = t == null ? void 0 : t.modifiers) != null && p.self && f.target !== r.value || !o || (t == null ? void 0 : t.distanceThreshold) === !1)
1106
1108
  return;
1107
- (m = t == null ? void 0 : t.modifiers) != null && m.prevent && p.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && p.stopPropagation();
1108
- const x = p.x - o.x, w = p.y - o.y;
1109
- Math.sqrt(x * x + w * w) >= ((b = t == null ? void 0 : t.distanceThreshold) != null ? b : Zt) && a();
1109
+ (d = t == null ? void 0 : t.modifiers) != null && d.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
1110
+ const C = f.x - o.x, A = f.y - o.y;
1111
+ Math.sqrt(C * C + A * A) >= ((b = t == null ? void 0 : t.distanceThreshold) != null ? b : Zt) && a();
1110
1112
  }
1111
1113
  const y = {
1112
1114
  capture: (s = t == null ? void 0 : t.modifiers) == null ? void 0 : s.capture,
@@ -1116,35 +1118,35 @@ function Gt(e, n, t) {
1116
1118
  Y(r, "pointermove", h, y),
1117
1119
  Y(r, ["pointerup", "pointerleave"], l, y)
1118
1120
  ];
1119
- return () => v.forEach((p) => p());
1121
+ return () => v.forEach((f) => f());
1120
1122
  }
1121
1123
  function _e(e, n = {}) {
1122
1124
  const {
1123
1125
  controls: t = !1,
1124
1126
  navigator: s = Ae
1125
- } = n, i = Me(() => s && "permissions" in s), r = H(), u = typeof e == "string" ? { name: e } : e, o = H(), c = () => {
1127
+ } = n, i = Me(() => s && "permissions" in s), r = H(), c = typeof e == "string" ? { name: e } : e, o = H(), u = () => {
1126
1128
  var a, l;
1127
1129
  o.value = (l = (a = r.value) == null ? void 0 : a.state) != null ? l : "prompt";
1128
1130
  };
1129
- Y(r, "change", c, { passive: !0 });
1130
- const f = qt(async () => {
1131
+ Y(r, "change", u, { passive: !0 });
1132
+ const m = qt(async () => {
1131
1133
  if (i.value) {
1132
1134
  if (!r.value)
1133
1135
  try {
1134
- r.value = await s.permissions.query(u);
1136
+ r.value = await s.permissions.query(c);
1135
1137
  } catch {
1136
1138
  r.value = void 0;
1137
1139
  } finally {
1138
- c();
1140
+ u();
1139
1141
  }
1140
1142
  if (t)
1141
1143
  return rt(r.value);
1142
1144
  }
1143
1145
  });
1144
- return f(), t ? {
1146
+ return m(), t ? {
1145
1147
  state: o,
1146
1148
  isSupported: i,
1147
- query: f
1149
+ query: m
1148
1150
  } : o;
1149
1151
  }
1150
1152
  function Qt(e = {}) {
@@ -1154,43 +1156,43 @@ function Qt(e = {}) {
1154
1156
  source: s,
1155
1157
  copiedDuring: i = 1500,
1156
1158
  legacy: r = !1
1157
- } = e, u = Me(() => n && "clipboard" in n), o = _e("clipboard-read"), c = _e("clipboard-write"), f = L(() => u.value || r), a = H(""), l = H(!1), g = Kt(() => l.value = !1, i, { immediate: !1 });
1159
+ } = e, c = Me(() => n && "clipboard" in n), o = _e("clipboard-read"), u = _e("clipboard-write"), m = L(() => c.value || r), a = H(""), l = H(!1), g = Kt(() => l.value = !1, i, { immediate: !1 });
1158
1160
  async function h() {
1159
- let d = !(u.value && p(o.value));
1160
- if (!d)
1161
+ let p = !(c.value && f(o.value));
1162
+ if (!p)
1161
1163
  try {
1162
1164
  a.value = await n.clipboard.readText();
1163
1165
  } catch {
1164
- d = !0;
1166
+ p = !0;
1165
1167
  }
1166
- d && (a.value = k());
1168
+ p && (a.value = k());
1167
1169
  }
1168
- f.value && t && Y(["copy", "cut"], h, { passive: !0 });
1169
- async function y(d = K(s)) {
1170
- if (f.value && d != null) {
1171
- let m = !(u.value && p(c.value));
1172
- if (!m)
1170
+ m.value && t && Y(["copy", "cut"], h, { passive: !0 });
1171
+ async function y(p = K(s)) {
1172
+ if (m.value && p != null) {
1173
+ let d = !(c.value && f(u.value));
1174
+ if (!d)
1173
1175
  try {
1174
- await n.clipboard.writeText(d);
1176
+ await n.clipboard.writeText(p);
1175
1177
  } catch {
1176
- m = !0;
1178
+ d = !0;
1177
1179
  }
1178
- m && v(d), a.value = d, l.value = !0, g.start();
1180
+ d && v(p), a.value = p, l.value = !0, g.start();
1179
1181
  }
1180
1182
  }
1181
- function v(d) {
1182
- const m = document.createElement("textarea");
1183
- m.value = d ?? "", m.style.position = "absolute", m.style.opacity = "0", document.body.appendChild(m), m.select(), document.execCommand("copy"), m.remove();
1183
+ function v(p) {
1184
+ const d = document.createElement("textarea");
1185
+ d.value = p ?? "", d.style.position = "absolute", d.style.opacity = "0", document.body.appendChild(d), d.select(), document.execCommand("copy"), d.remove();
1184
1186
  }
1185
1187
  function k() {
1186
- var d, m, _;
1187
- return (_ = (m = (d = document == null ? void 0 : document.getSelection) == null ? void 0 : d.call(document)) == null ? void 0 : m.toString()) != null ? _ : "";
1188
+ var p, d, _;
1189
+ return (_ = (d = (p = document == null ? void 0 : document.getSelection) == null ? void 0 : p.call(document)) == null ? void 0 : d.toString()) != null ? _ : "";
1188
1190
  }
1189
- function p(d) {
1190
- return d === "granted" || d === "prompt";
1191
+ function f(p) {
1192
+ return p === "granted" || p === "prompt";
1191
1193
  }
1192
1194
  return {
1193
- isSupported: f,
1195
+ isSupported: m,
1194
1196
  text: a,
1195
1197
  copied: l,
1196
1198
  copy: y
@@ -1200,8 +1202,8 @@ const Jt = Qt();
1200
1202
  let oe;
1201
1203
  const en = {
1202
1204
  mounted(e, n, t) {
1203
- var u, o;
1204
- const s = ce(t.ctx), i = ((o = (u = s == null ? void 0 : s.locale) == null ? void 0 : u.locale) == null ? void 0 : o.slice(0, 2)) || "en", r = {
1205
+ var c, o;
1206
+ const s = ue(t.ctx), i = ((o = (c = s == null ? void 0 : s.locale) == null ? void 0 : c.locale) == null ? void 0 : o.slice(0, 2)) || "en", r = {
1205
1207
  zh: "复制成功",
1206
1208
  en: "Copy successfully",
1207
1209
  fr: "Copie réussie"
@@ -1233,11 +1235,11 @@ const en = {
1233
1235
  verify: /^\d{0,6}$/,
1234
1236
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
1235
1237
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
1236
- }, u = i instanceof RegExp ? i : n.arg && r[n.arg] ? r[n.arg] : null;
1238
+ }, c = i instanceof RegExp ? i : n.arg && r[n.arg] ? r[n.arg] : null;
1237
1239
  e._handleInput = (o) => {
1238
1240
  if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
1239
- const c = u == null ? void 0 : u.test(o.target.value);
1240
- if (e._input = c ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !c)
1241
+ const u = c == null ? void 0 : c.test(o.target.value);
1242
+ if (e._input = u ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !u)
1241
1243
  o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
1242
1244
  else
1243
1245
  switch (o.inputType) {
@@ -1266,14 +1268,14 @@ const en = {
1266
1268
  o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
1267
1269
  break;
1268
1270
  }
1269
- const f = new InputEvent("input", {
1271
+ const m = new InputEvent("input", {
1270
1272
  isComposing: !1
1271
1273
  });
1272
- o.target.dispatchEvent(f);
1274
+ o.target.dispatchEvent(m);
1273
1275
  }
1274
1276
  }, e._handleKeydown = (o) => {
1275
- const c = u == null ? void 0 : u.test(o.target.value);
1276
- e._input = c ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
1277
+ const u = c == null ? void 0 : c.test(o.target.value);
1278
+ e._input = u ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
1277
1279
  }, e._handleDrop = (o) => {
1278
1280
  o.stopPropagation();
1279
1281
  }, s.addEventListener("input", e._handleInput), s.addEventListener("keydown", e._handleKeydown), s.addEventListener("drop", e._handleDrop);
@@ -1290,8 +1292,8 @@ function be(e, n, t) {
1290
1292
  e.style.marginLeft = `-${i}px`, e.style.marginRight = `-${i}px`;
1291
1293
  const r = e.children;
1292
1294
  if (r != null && r.length)
1293
- for (let u = 0; u < r.length; u++) {
1294
- const o = r[u];
1295
+ for (let c = 0; c < r.length; c++) {
1296
+ const o = r[c];
1295
1297
  o != null && o.style && (o.style.paddingLeft = i + "px", o.style.paddingRight = i + "px");
1296
1298
  }
1297
1299
  }
@@ -1317,24 +1319,24 @@ const nn = {
1317
1319
  const { value: s } = n, {
1318
1320
  content: i = "",
1319
1321
  placement: r = "top",
1320
- enabled: u = !0,
1322
+ enabled: c = !0,
1321
1323
  padding: o = 8,
1322
1324
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1323
- ...c
1325
+ ...u
1324
1326
  } = typeof s == "string" ? { content: s } : s;
1325
- if (e.tooltipDisabled = !1, !u)
1327
+ if (e.tooltipDisabled = !1, !c)
1326
1328
  e.tooltipDisabled = !0;
1327
1329
  else if (n.modifiers.exceed) {
1328
1330
  const h = e.clientWidth, y = xe(i);
1329
1331
  e.tooltipDisabled = h ? y < h - o * 2 : !0;
1330
1332
  }
1331
- const f = C({
1333
+ const m = x({
1332
1334
  top: 0,
1333
1335
  left: 0,
1334
1336
  bottom: 0,
1335
1337
  right: 0
1336
- }), a = C({
1337
- getBoundingClientRect: () => f.value
1338
+ }), a = x({
1339
+ getBoundingClientRect: () => m.value
1338
1340
  }), l = W(it, {
1339
1341
  visible: !1,
1340
1342
  content: i,
@@ -1342,10 +1344,10 @@ const nn = {
1342
1344
  virtualTriggering: !0,
1343
1345
  virtualRef: a.value,
1344
1346
  popperClass: "vtooltip",
1345
- ...c
1347
+ ...u
1346
1348
  }), g = document.createDocumentFragment();
1347
1349
  G(l, g), e.tooltipVm = l, e.tooltipContainer = g, e.addEventListener("mouseenter", () => {
1348
- f.value = e.getBoundingClientRect(), l.component && !e.tooltipDisabled && (Object.assign(l.component.props, { visible: !0 }), l.component.update());
1350
+ m.value = e.getBoundingClientRect(), l.component && !e.tooltipDisabled && (Object.assign(l.component.props, { visible: !0 }), l.component.update());
1349
1351
  }), e.addEventListener("mouseleave", () => {
1350
1352
  l.component && (Object.assign(l.component.props, { visible: !1 }), l.component.update());
1351
1353
  });
@@ -1356,18 +1358,18 @@ const nn = {
1356
1358
  content: s = "",
1357
1359
  placement: i = "top",
1358
1360
  enabled: r = !0,
1359
- padding: u = 8,
1361
+ padding: c = 8,
1360
1362
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1361
1363
  ...o
1362
1364
  } = typeof t == "string" ? { content: t } : t;
1363
1365
  if (e.tooltipDisabled = !1, !r)
1364
1366
  e.tooltipDisabled = !0;
1365
1367
  else if (n.modifiers.exceed) {
1366
- const f = e.clientWidth, a = xe(s);
1367
- e.tooltipDisabled = f ? a < f - u * 2 : !0;
1368
+ const m = e.clientWidth, a = xe(s);
1369
+ e.tooltipDisabled = m ? a < m - c * 2 : !0;
1368
1370
  }
1369
- const c = e.tooltipVm;
1370
- c.component && (Object.assign(c.component.props, { content: s, placement: i, ...o }), c.component.update());
1371
+ const u = e.tooltipVm;
1372
+ u.component && (Object.assign(u.component.props, { content: s, placement: i, ...o }), u.component.update());
1371
1373
  }
1372
1374
  },
1373
1375
  unmounted(e) {
@@ -1381,7 +1383,7 @@ function xe(e, n) {
1381
1383
  const sn = {
1382
1384
  beforeMount(e, n) {
1383
1385
  const { value: t } = n;
1384
- t && (ut(t) || setTimeout(() => {
1386
+ t && (ct(t) || setTimeout(() => {
1385
1387
  var i;
1386
1388
  (i = e.parentNode) == null || i.removeChild(e);
1387
1389
  }, 50));
@@ -1415,76 +1417,76 @@ const rn = {
1415
1417
  space: rn,
1416
1418
  tooltip: an
1417
1419
  }, Symbol.toStringTag, { value: "Module" }));
1418
- function un(e) {
1420
+ function cn(e) {
1419
1421
  Object.keys(ye).forEach((n) => {
1420
1422
  e.component(n, ye[n]);
1421
1423
  }), Object.keys(Se).forEach((n) => {
1422
1424
  e.directive(n, Se[n]);
1423
1425
  });
1424
1426
  }
1425
- const hn = { install: un };
1427
+ const yn = { install: cn };
1426
1428
  export {
1427
- ct as AInputNumberEx,
1429
+ ut as AInputNumberEx,
1428
1430
  $t as APageHeader,
1429
1431
  dt as ARangePickerEx,
1430
1432
  vt as ASelectEx,
1431
1433
  ht as ATableEx,
1432
- bn as UserCenterKey,
1434
+ xn as UserCenterKey,
1433
1435
  Wt as WlInputNumberRange,
1434
1436
  jt as WlIpInput,
1435
1437
  Nt as WlNumberKeyboard,
1436
1438
  Lt as WlRateSlider,
1437
1439
  Et as WlSplitter,
1438
- xn as buildTree,
1440
+ Cn as buildTree,
1439
1441
  on as col,
1440
1442
  en as copy,
1441
- hn as default,
1442
- Cn as exportFile,
1443
- Sn as forEachTree,
1444
- kn as getButtonPermissions,
1445
- wn as getLocale,
1446
- $n as getMenuInfo,
1447
- En as getToken,
1448
- Pn as getUserCenterParams,
1449
- Dn as getUserCenterParamsByUrl,
1450
- An as getUserInfo,
1451
- ut as hasPermission,
1443
+ yn as default,
1444
+ Sn as exportFile,
1445
+ kn as forEachTree,
1446
+ wn as getButtonPermissions,
1447
+ $n as getLocale,
1448
+ En as getMenuInfo,
1449
+ Pn as getToken,
1450
+ Dn as getUserCenterParams,
1451
+ An as getUserCenterParamsByUrl,
1452
+ Tn as getUserInfo,
1453
+ ct as hasPermission,
1452
1454
  tn as inputlimit,
1453
- Tn as is,
1454
- Mn as isArray,
1455
- Nn as isAsyncFunction,
1456
- Ln as isBoolean,
1457
- On as isClient,
1458
- Rn as isDate,
1459
- Un as isDef,
1460
- jn as isElement,
1461
- Bn as isFunction,
1462
- In as isImageDom,
1463
- Wn as isNull,
1455
+ Mn as is,
1456
+ Nn as isArray,
1457
+ Ln as isAsyncFunction,
1458
+ On as isBoolean,
1459
+ Rn as isClient,
1460
+ Un as isDate,
1461
+ jn as isDef,
1462
+ Bn as isElement,
1463
+ In as isFunction,
1464
+ Wn as isImageDom,
1465
+ Fn as isNull,
1464
1466
  q as isNullOrUndef,
1465
- Fn as isNumber,
1466
- zn as isObject,
1467
- qn as isPromise,
1468
- Kn as isServer,
1469
- Vn as isString,
1470
- Hn as isUndef,
1471
- Xn as isWindow,
1472
- Yn as logoutToUserCenter,
1467
+ zn as isNumber,
1468
+ qn as isObject,
1469
+ Kn as isPromise,
1470
+ Vn as isServer,
1471
+ Hn as isString,
1472
+ Xn as isUndef,
1473
+ Yn as isWindow,
1474
+ Zn as logoutToUserCenter,
1473
1475
  ln as longpress,
1474
1476
  sn as permission,
1475
- Zn as removeAll,
1476
- Gn as removeLocale,
1477
- Qn as removeToken,
1477
+ Gn as removeAll,
1478
+ Qn as removeLocale,
1479
+ Jn as removeToken,
1478
1480
  nn as row,
1479
- Jn as setLocale,
1480
- eo as setMenuInfo,
1481
- to as setToken,
1482
- no as setUserCenterParams,
1483
- oo as setUserInfo,
1481
+ eo as setLocale,
1482
+ to as setMenuInfo,
1483
+ no as setToken,
1484
+ oo as setUserCenterParams,
1485
+ ao as setUserInfo,
1484
1486
  rn as space,
1485
- ao as toUserCenterConsole,
1487
+ so as toUserCenterConsole,
1486
1488
  an as tooltip,
1487
- ce as useConfigProvider,
1488
- vn as useFindParent,
1489
- gn as useModal
1489
+ ue as useConfigProvider,
1490
+ gn as useFindParent,
1491
+ hn as useModal
1490
1492
  };