@witlink/components 2.0.2 → 2.0.4

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,11 +1,11 @@
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 N, 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 O, 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
- import ve from "dayjs";
1
+ import { InputNumber as le, DateRangePicker as Le, Select as Oe, Divider as Re, Space as Ue, Input as ke, Button as ie, 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, openBlock as w, createBlock as U, mergeProps as F, createSlots as ce, renderList as V, unref as S, withCtx as P, renderSlot as I, normalizeProps as ue, guardReactiveProps as $e, useAttrs as Ye, ref as x, markRaw as Ee, createElementBlock as T, createElementVNode as $, watch as Q, resolveDynamicComponent as Ze, createVNode as E, isRef as Z, withModifiers as se, getCurrentInstance as J, render as G, h as W, computed as L, onMounted as Pe, onUnmounted as Ge, normalizeClass as Qe, normalizeStyle as fe, useModel as ee, resolveDirective as Je, withKeys as et, Fragment as X, createTextVNode as te, toDisplayString as re, withDirectives as tt, mergeModels as z, nextTick as me, useCssVars as nt, createCommentVNode as ve, shallowRef as H, shallowReadonly as ot, toValue as K, getCurrentScope as at, onScopeDispose as st, toRaw as rt } from "vue";
3
+ import ge from "dayjs";
4
4
  import "antdv-next/dist/modal/useModal/types";
5
5
  import { ElScrollbar as lt, ElTooltip as it } from "element-plus";
6
- import { isNullOrUndef as q, hasPermission as ut } 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 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 Mn, is as Tn, 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({
9
9
  inheritAttrs: !1,
10
10
  __name: "index",
11
11
  props: {
@@ -16,15 +16,15 @@ const ct = /* @__PURE__ */ j({
16
16
  },
17
17
  setup(e) {
18
18
  const n = we();
19
- return (t, s) => {
20
- const i = re;
21
- return $(), U(i, F({
19
+ return (t, a) => {
20
+ const i = le;
21
+ return w(), U(i, F({
22
22
  mode: e.customControls ? "spinner" : ""
23
- }, t.$attrs), ie({ _: 2 }, [
23
+ }, t.$attrs), ce({ _: 2 }, [
24
24
  V(Object.keys(S(n)), (r) => ({
25
25
  name: r,
26
- fn: D((u) => [
27
- I(t.$slots, r, ue($e(u)))
26
+ fn: P((c) => [
27
+ I(t.$slots, r, ue($e(c)))
28
28
  ])
29
29
  }))
30
30
  ]), 1040, ["mode"]);
@@ -65,32 +65,32 @@ const ct = /* @__PURE__ */ j({
65
65
  },
66
66
  emits: ["update:value", "change"],
67
67
  setup(e, { emit: n }) {
68
- const t = e, s = n, i = Ye(), r = C(), u = C(), o = (l) => {
69
- var w, T, R;
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;
71
- if (!((w = r.value) != null && w.length))
68
+ const t = e, a = n, i = Ye(), r = x(), c = x(), o = (l) => {
69
+ var A, O, R;
70
+ const g = t.maxUnit || t.unit, h = t.minUnit || t.unit, y = ge().add(t.max, g), v = ge().subtract(t.min, h), k = t.interval;
71
+ if (!((A = r.value) != null && A.length))
72
72
  return l.isAfter(y) || l.isBefore(v);
73
- const p = t.intervalUnit || t.unit, d = i.picker || "date", m = (T = r.value[0]) == null ? void 0 : T.startOf(d), _ = (R = r.value[1]) == null ? void 0 : R.endOf(d), b = m && (l.diff(m, p) > k || l.isAfter(y));
74
- return _ && (_.diff(l, p) > k || l.isBefore(v)) || b;
75
- }, c = (l) => {
76
- l ? (r.value = [], u.value = []) : u.value = void 0;
77
- }, f = (l) => {
78
- s("update:value", l), s("change", l);
79
- }, a = (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) => {
78
+ a("update:value", l), a("change", l);
79
+ }, s = (l) => {
80
80
  r.value = l;
81
81
  };
82
82
  return (l, g) => {
83
83
  const h = Le;
84
- return $(), U(h, F({
85
- value: S(u) || e.value,
84
+ return w(), U(h, F({
85
+ value: S(c) || e.value,
86
86
  "disabled-date": o,
87
- onChange: f,
88
- onOpenChange: c,
89
- onCalendarChange: a
90
- }, l.$attrs), ie({ _: 2 }, [
87
+ onChange: m,
88
+ onOpenChange: u,
89
+ onCalendarChange: s
90
+ }, l.$attrs), ce({ _: 2 }, [
91
91
  V(Object.keys(l.$slots), (y) => ({
92
92
  name: y,
93
- fn: D((v) => [
93
+ fn: P((v) => [
94
94
  I(l.$slots, y, ue($e(v)))
95
95
  ])
96
96
  }))
@@ -104,16 +104,16 @@ const ct = /* @__PURE__ */ j({
104
104
  height: "1.2em"
105
105
  };
106
106
  function ft(e, n) {
107
- return $(), N("svg", pt, n[0] || (n[0] = [
108
- E("path", {
107
+ return w(), T("svg", pt, [...n[0] || (n[0] = [
108
+ $("path", {
109
109
  fill: "currentColor",
110
110
  d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8"
111
111
  }, null, -1),
112
- E("path", {
112
+ $("path", {
113
113
  fill: "currentColor",
114
114
  d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"
115
115
  }, null, -1)
116
- ]));
116
+ ])]);
117
117
  }
118
118
  const mt = Ee({ name: "ant-design-plus", render: ft }), vt = /* @__PURE__ */ j({
119
119
  inheritAttrs: !1,
@@ -127,37 +127,37 @@ const mt = Ee({ name: "ant-design-plus", render: ft }), vt = /* @__PURE__ */ j({
127
127
  }
128
128
  },
129
129
  setup(e) {
130
- const n = e, t = C([]), s = C();
130
+ const n = e, t = x([]), a = x();
131
131
  function i() {
132
- const r = s.value;
133
- r && t.value.every((u) => u.value !== r) && (t.value.push({ value: r }), s.value = "");
132
+ const r = a.value;
133
+ r && t.value.every((c) => c.value !== r) && (t.value.push({ value: r }), a.value = "");
134
134
  }
135
135
  return Q(
136
136
  () => n.options,
137
- (r, u) => {
137
+ (r, c) => {
138
138
  var o;
139
- 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 }))) || []);
140
140
  },
141
141
  { immediate: !0 }
142
- ), (r, u) => {
143
- const o = Re, c = ke, f = mt, a = le, l = Ue, g = Oe;
144
- return $(), U(g, F({ options: S(t) }, r.$attrs), {
145
- popupRender: D((h) => [
146
- ($(), U(Ze(h))),
147
- P(o, { style: { margin: "4px 0" } }),
148
- P(l, null, {
149
- default: D(() => [
150
- P(c, {
151
- value: S(s),
152
- "onUpdate:value": u[0] || (u[0] = (y) => Z(s) ? s.value = y : null),
142
+ ), (r, c) => {
143
+ const o = Re, u = ke, m = mt, s = ie, 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, {
151
+ value: S(a),
152
+ "onUpdate:value": c[0] || (c[0] = (y) => Z(a) ? a.value = y : null),
153
153
  placeholder: e.inputPlaceholder
154
154
  }, null, 8, ["value", "placeholder"]),
155
- P(a, {
155
+ E(s, {
156
156
  type: "text",
157
- onClick: ae(i, ["prevent"])
157
+ onClick: se(i, ["prevent"])
158
158
  }, {
159
- default: D(() => [
160
- P(f)
159
+ default: P(() => [
160
+ E(m)
161
161
  ]),
162
162
  _: 1
163
163
  })
@@ -170,17 +170,17 @@ const mt = Ee({ name: "ant-design-plus", render: ft }), vt = /* @__PURE__ */ j({
170
170
  };
171
171
  }
172
172
  });
173
- function ce(e) {
173
+ function de(e) {
174
174
  e || (e = J());
175
- const n = (e == null ? void 0 : e.provides) || {}, t = gt(n, "ConfigConsumerContext"), s = n[t].value;
175
+ const n = (e == null ? void 0 : e.provides) || {}, t = gt(n, "ConfigConsumerContext"), a = n[t].value;
176
176
  return Object.fromEntries(
177
- Object.entries(s).map(([r, u]) => [r, S(u)])
177
+ Object.entries(a).map(([r, c]) => [r, S(c)])
178
178
  );
179
179
  }
180
180
  function gt(e, n) {
181
181
  for (; e; ) {
182
182
  const t = Reflect.ownKeys(e).find(
183
- (s) => s === n || typeof s == "symbol" && s.description === n
183
+ (a) => a === n || typeof a == "symbol" && a.description === n
184
184
  );
185
185
  if (t)
186
186
  return t;
@@ -198,10 +198,10 @@ function gn(e) {
198
198
  }
199
199
  return null;
200
200
  }
201
- const L = je;
202
- let B, ge, A, he;
203
- L.destroy = function() {
204
- const e = L.instanceArr || [], n = e.pop();
201
+ const N = je;
202
+ let B, he, D, ye;
203
+ N.destroy = function() {
204
+ const e = N.instanceArr || [], n = e.pop();
205
205
  if (n && G(null, n.container), e.length > 0) {
206
206
  const t = e[e.length - 1].instance;
207
207
  Object.assign(t.component.props, {
@@ -209,19 +209,19 @@ L.destroy = function() {
209
209
  }), t.component.update();
210
210
  }
211
211
  };
212
- L.destroyAll = function() {
213
- (L.instanceArr || []).forEach((n) => {
212
+ N.destroyAll = function() {
213
+ (N.instanceArr || []).forEach((n) => {
214
214
  G(null, n.container);
215
- }), L.instanceArr = [];
215
+ }), N.instanceArr = [];
216
216
  };
217
217
  function hn() {
218
- var a, l;
218
+ var s, l;
219
219
  const e = J();
220
- if (!A) {
220
+ if (!D) {
221
221
  const g = Be.useApp();
222
- A = g.modal, ge = g.message, he = g.notification;
222
+ D = g.modal, he = g.message, ye = g.notification;
223
223
  }
224
- A.info || (A = Ie);
224
+ D.info || (D = Ie);
225
225
  const n = {
226
226
  zh: "关闭",
227
227
  en: "Close",
@@ -230,10 +230,10 @@ function hn() {
230
230
  zh: "请输入",
231
231
  en: "Please Enter",
232
232
  fr: "Veuillez entrer"
233
- }, 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
+ }, a = de(), i = ((l = (s = a == null ? void 0 : a.locale) == null ? void 0 : s.locale) == null ? void 0 : l.slice(0, 2)) || "en";
234
234
  function r({ title: g, ...h }) {
235
- const y = C();
236
- return u({
235
+ const y = x();
236
+ return c({
237
237
  title: g,
238
238
  ...h,
239
239
  comp: Fe,
@@ -253,8 +253,8 @@ function hn() {
253
253
  })
254
254
  });
255
255
  }
256
- function u({ title: g, comp: h, props: y, ...v }) {
257
- 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 = {
258
258
  title: g,
259
259
  content: k,
260
260
  width: "auto",
@@ -265,18 +265,18 @@ function hn() {
265
265
  class: "modal-comp",
266
266
  ...v
267
267
  };
268
- switch (p) {
268
+ switch (f) {
269
269
  case "info":
270
- B = A.info(d);
270
+ B = D.info(p);
271
271
  break;
272
272
  case "warning":
273
- B = A.warning(d);
273
+ B = D.warning(p);
274
274
  break;
275
275
  case "success":
276
- B = A.success(d);
276
+ B = D.success(p);
277
277
  break;
278
278
  case "confirm":
279
- B = A.confirm(d);
279
+ B = D.confirm(p);
280
280
  break;
281
281
  }
282
282
  return B;
@@ -284,35 +284,35 @@ function hn() {
284
284
  function o() {
285
285
  B == null || B.destroy();
286
286
  }
287
- function c({ title: g, comp: h, props: y, ...v }) {
287
+ function u({ title: g, comp: h, props: y, ...v }) {
288
288
  const k = v.getContainer || document.createDocumentFragment();
289
- L.instanceArr || (L.instanceArr = []);
290
- const p = L.instanceArr, d = p[p.length - 1];
291
- let m;
292
- if ((d == null ? void 0 : d.comp) === h) {
293
- const _ = d.instance;
294
- Object.assign(_.component.props, { title: g, ...v }), _.component.update(), m = d.compInstance, Object.assign(m.component.props, { ...y }), m.component.update();
289
+ N.instanceArr || (N.instanceArr = []);
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();
295
295
  } else {
296
- if (d) {
297
- const R = d.instance;
296
+ if (p) {
297
+ const R = p.instance;
298
298
  Object.assign(R.component.props, {
299
299
  contentWrapperStyle: { transform: "translateX(-180px)" }
300
300
  }), R.component.update();
301
301
  }
302
- m = W(h, y);
302
+ d = W(h, y);
303
303
  const _ = {
304
304
  default: () => W(
305
305
  lt,
306
306
  { style: { height: "100%" }, wrapStyle: { overflowX: "hidden" } },
307
- m
307
+ d
308
308
  )
309
309
  };
310
310
  v.footer === void 0 && Object.assign(_, {
311
311
  footer: () => W(
312
- le,
312
+ ie,
313
313
  {
314
314
  onClick: () => {
315
- L.destroy();
315
+ N.destroy();
316
316
  }
317
317
  },
318
318
  n[i]
@@ -320,8 +320,8 @@ function hn() {
320
320
  });
321
321
  const b = v.width || 992;
322
322
  delete v.width;
323
- const x = W(
324
- L,
323
+ const C = W(
324
+ N,
325
325
  {
326
326
  title: g,
327
327
  width: b,
@@ -331,41 +331,41 @@ function hn() {
331
331
  textAlign: "right"
332
332
  },
333
333
  onClose: () => {
334
- v != null && v.afterClose && v.afterClose(), L.destroy();
334
+ v != null && v.afterClose && v.afterClose(), N.destroy();
335
335
  },
336
336
  ...v
337
337
  },
338
338
  _
339
- ), w = s.getPrefixCls(), T = W(
339
+ ), A = a.getPrefixCls(), O = W(
340
340
  We,
341
- { ...s, prefixCls: w },
342
- { default: () => x }
341
+ { ...a, prefixCls: A },
342
+ { default: () => C }
343
343
  );
344
- T.appContext = e.appContext, G(T, 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 });
345
345
  }
346
346
  return {
347
347
  updateProps: (_) => {
348
- Object.assign(m.component.props, { ..._ }), m.component.update();
348
+ Object.assign(d.component.props, { ..._ }), d.component.update();
349
349
  }
350
350
  };
351
351
  }
352
- function f() {
353
- L.destroy();
352
+ function m() {
353
+ N.destroy();
354
354
  }
355
355
  return {
356
- message: ge,
357
- modal: A,
358
- notification: he,
359
- confirm: A.confirm,
360
- info: A.info,
361
- warn: A.warning,
362
- warning: A.warning,
363
- error: A.error,
356
+ message: he,
357
+ modal: D,
358
+ notification: ye,
359
+ confirm: D.confirm,
360
+ info: D.info,
361
+ warn: D.warning,
362
+ warning: D.warning,
363
+ error: D.error,
364
364
  modalInput: r,
365
- modalComp: u,
365
+ modalComp: c,
366
366
  modalDestroy: o,
367
- drawerComp: c,
368
- drawerDestroy: f
367
+ drawerComp: u,
368
+ drawerDestroy: m
369
369
  };
370
370
  }
371
371
  const ht = /* @__PURE__ */ j({
@@ -386,71 +386,67 @@ const ht = /* @__PURE__ */ j({
386
386
  }
387
387
  },
388
388
  setup(e, { expose: n }) {
389
- 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, a = we(), i = x([]), r = x(!1), c = x(0), o = x(1), u = x(10), m = x(), s = x(), l = {
390
390
  zh: "共 {num} 条",
391
391
  en: "Total {num} items",
392
392
  fr: "Total de {num}"
393
- }, g = ce(), h = O(() => {
394
- var b, x;
395
- return ((x = (b = g == null ? void 0 : g.locale) == null ? void 0 : b.locale) == null ? void 0 : x.slice(0, 2)) || "en";
396
- }), y = O(() => ({
397
- total: u.value,
393
+ }, g = de(), 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";
396
+ }), y = L(() => ({
397
+ total: c.value,
398
398
  current: o.value,
399
- pageSize: c.value,
399
+ pageSize: u.value,
400
400
  showSizeChanger: !0,
401
401
  size: "small",
402
- showTotal: (_) => l[h.value].replace("{num}", _)
402
+ showTotal: (d) => l[h.value].replace("{num}", d)
403
403
  }));
404
404
  function v() {
405
- var _;
405
+ var d;
406
406
  if (typeof t.loadData == "function") {
407
407
  r.value = !0;
408
- let b;
409
- 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) => {
410
- if (r.value = !1, (x == null ? void 0 : x.code) === 0) {
411
- const w = x.result || {};
412
- 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 = s.value) != null && d.orderMap) && (_[s.value.field + "SortField"] = s.value.orderMap), t.loadData(_, m.value, s.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);
413
413
  }
414
414
  });
415
415
  }
416
416
  }
417
- function k(_, b, x) {
418
- if (o.value = _.current, c.value = _.pageSize, f.value = b, x) {
419
- const w = {
417
+ function k(d, _, b) {
418
+ if (o.value = d.current, u.value = d.pageSize, m.value = _, b) {
419
+ const C = {
420
420
  ascend: "asc",
421
421
  descend: "desc"
422
422
  };
423
- x.orderMap = w[x.order] || "";
423
+ b.orderMap = C[b.order] || "";
424
424
  }
425
- a.value = x, v();
426
- }
427
- function p(_, b) {
428
- b.width = _;
425
+ s.value = b, v();
429
426
  }
430
- function d() {
427
+ function f() {
431
428
  o.value = 1, v();
432
429
  }
433
- function m() {
434
- o.value = 1, u.value = 0, i.value = [];
430
+ function p() {
431
+ o.value = 1, c.value = 0, i.value = [];
435
432
  }
436
433
  return n({
437
434
  loadData: v,
438
- refresh: d,
439
- reset: m
440
- }), (_, b) => {
441
- const x = ze;
442
- return $(), U(x, F({
435
+ refresh: f,
436
+ reset: p
437
+ }), (d, _) => {
438
+ const b = ze;
439
+ return w(), U(b, F({
443
440
  class: "table-ex",
444
441
  loading: S(r),
445
442
  pagination: S(y),
446
443
  dataSource: S(i),
447
- onChange: k,
448
- onResizeColumn: p
449
- }, _.$attrs), ie({ _: 2 }, [
450
- V(Object.keys(S(s)), (w) => ({
451
- name: w,
452
- fn: D((T) => [
453
- w !== "emptyText" ? I(_.$slots, w, ue(F({ key: 0 }, T))) : I(_.$slots, w, { key: 1 })
444
+ onChange: k
445
+ }, d.$attrs), ce({ _: 2 }, [
446
+ V(Object.keys(S(a)), (C) => ({
447
+ name: C,
448
+ fn: P((A) => [
449
+ C !== "emptyText" ? I(d.$slots, C, ue(F({ key: 0 }, A))) : I(d.$slots, C, { key: 1 })
454
450
  ])
455
451
  }))
456
452
  ]), 1040, ["loading", "pagination", "dataSource"]);
@@ -458,19 +454,19 @@ const ht = /* @__PURE__ */ j({
458
454
  }
459
455
  }), yt = (e, n) => {
460
456
  const t = e.__vccOpts || e;
461
- for (const [s, i] of n)
462
- t[s] = i;
457
+ for (const [a, i] of n)
458
+ t[a] = i;
463
459
  return t;
464
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" };
465
461
  function wt(e, n) {
466
- return $(), N("div", bt, [
467
- E("div", xt, [
468
- E("div", Ct, [
469
- E("span", St, [
462
+ return w(), T("div", bt, [
463
+ $("div", xt, [
464
+ $("div", Ct, [
465
+ $("span", St, [
470
466
  I(e.$slots, "title")
471
467
  ])
472
468
  ]),
473
- E("span", kt, [
469
+ $("span", kt, [
474
470
  I(e.$slots, "extra")
475
471
  ])
476
472
  ])
@@ -493,19 +489,19 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
493
489
  }
494
490
  },
495
491
  setup(e) {
496
- const n = e, t = C(), s = C(), i = C({}), r = C({}), u = C(0.2);
497
- function o(f) {
498
- i.value = { width: `calc(${f * 100}% - 5px)` }, r.value = { width: `calc(${(1 - f) * 100}% - 5px)` };
492
+ const n = e, t = x(), a = 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)` };
499
495
  }
500
- function c() {
501
- const f = t.value;
502
- if (!f)
496
+ function u() {
497
+ const m = t.value;
498
+ if (!m)
503
499
  return;
504
- const a = f.clientWidth, l = f.getBoundingClientRect(), g = l.left;
500
+ const s = m.clientWidth, l = m.getBoundingClientRect(), g = l.left;
505
501
  function h(v) {
506
502
  v.preventDefault(), (v.clientX < l.left || v.clientX > l.right || v.clientY < l.top || v.clientY > l.bottom) && y();
507
- const p = (v.clientX - g) / a;
508
- p > n.leftMin && p < n.leftMax && (u.value = p, o(p));
503
+ const f = (v.clientX - g) / s;
504
+ f > n.leftMin && f < n.leftMax && (c.value = f, o(f));
509
505
  }
510
506
  function y() {
511
507
  document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", y);
@@ -513,31 +509,31 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
513
509
  document.addEventListener("mousemove", h), document.addEventListener("mouseup", y);
514
510
  }
515
511
  return Pe(() => {
516
- o(u.value), s.value && s.value.addEventListener("mousedown", c, !1);
512
+ o(c.value), a.value && a.value.addEventListener("mousedown", u, !1);
517
513
  }), Ge(() => {
518
- s.value && s.value.removeEventListener("mousedown", c);
519
- }), (f, a) => ($(), N("div", {
514
+ a.value && a.value.removeEventListener("mousedown", u);
515
+ }), (m, s) => (w(), T("div", {
520
516
  ref_key: "container",
521
517
  ref: t,
522
518
  class: Qe(["wl-splitter", { bordered: e.bordered }])
523
519
  }, [
524
- E("div", {
520
+ $("div", {
525
521
  class: "my-left",
526
- style: pe(S(i))
522
+ style: fe(S(i))
527
523
  }, [
528
- I(f.$slots, "left")
524
+ I(m.$slots, "left")
529
525
  ], 4),
530
- E("div", {
526
+ $("div", {
531
527
  ref_key: "spliter",
532
- ref: s,
528
+ ref: a,
533
529
  style: { height: "100%", width: "10px" },
534
530
  class: "my-spliter"
535
531
  }, null, 512),
536
- E("div", {
532
+ $("div", {
537
533
  class: "my-right",
538
- style: pe(S(r))
534
+ style: fe(S(r))
539
535
  }, [
540
- I(f.$slots, "right")
536
+ I(m.$slots, "right")
541
537
  ], 4)
542
538
  ], 2));
543
539
  }
@@ -550,28 +546,28 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
550
546
  xmlns: "http://www.w3.org/2000/svg"
551
547
  };
552
548
  function Dt(e, n) {
553
- return $(), N("svg", Pt, n[0] || (n[0] = [
554
- E("path", {
549
+ return w(), T("svg", Pt, [...n[0] || (n[0] = [
550
+ $("path", {
555
551
  d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
556
552
  stroke: "#272E3B",
557
553
  "stroke-linecap": "round",
558
554
  "stroke-linejoin": "round"
559
555
  }, null, -1),
560
- E("path", {
556
+ $("path", {
561
557
  d: "M10.8125 9.5L15.8125 14.5",
562
558
  stroke: "#272E3B",
563
559
  "stroke-linecap": "round",
564
560
  "stroke-linejoin": "round"
565
561
  }, null, -1),
566
- E("path", {
562
+ $("path", {
567
563
  d: "M15.8125 9.5L10.8125 14.5",
568
564
  stroke: "#272E3B",
569
565
  "stroke-linecap": "round",
570
566
  "stroke-linejoin": "round"
571
567
  }, null, -1)
572
- ]));
568
+ ])]);
573
569
  }
574
- const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" }, Mt = { class: "btn-box" }, Nt = /* @__PURE__ */ j({
570
+ const At = Ee({ name: "local-clear", render: Dt }), Mt = { class: "nums-box" }, Tt = { class: "btn-box" }, Nt = /* @__PURE__ */ j({
575
571
  inheritAttrs: !1,
576
572
  __name: "index",
577
573
  props: /* @__PURE__ */ z({
@@ -597,37 +593,37 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
597
593
  }),
598
594
  emits: /* @__PURE__ */ z(["enter"], ["update:value"]),
599
595
  setup(e, { emit: n }) {
600
- 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);
601
- function f() {
602
- c.value = !0;
596
+ const t = e, a = 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;
603
599
  }
604
- function a() {
600
+ function s() {
605
601
  k();
606
602
  }
607
- function l(p) {
608
- 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);
609
605
  }
610
- function g(p) {
606
+ function g(f) {
611
607
  if (r.value.focus(), q(o.value) || o.value === "") {
612
- if (["00", "."].includes(p))
608
+ if (["00", "."].includes(f))
613
609
  return;
614
- o.value = p;
610
+ o.value = f;
615
611
  } else {
616
- const d = String(o.value), m = i.value.getElementsByTagName("input")[0], _ = m.selectionStart || 0, b = m.selectionEnd || 0;
617
- o.value = `${d.slice(0, _)}${p}${d.slice(b)}`;
618
- const x = _ + p.length;
619
- fe(() => {
620
- r.value.setSelectionRange(x, x);
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;
615
+ me(() => {
616
+ r.value.setSelectionRange(C, C);
621
617
  });
622
618
  }
623
619
  }
624
620
  function h() {
625
621
  if (r.value.focus(), q(o.value))
626
622
  return;
627
- const p = String(o.value);
628
- if (p != null && p.length) {
629
- const d = i.value.getElementsByTagName("input")[0], m = d.selectionStart || 0, _ = d.selectionEnd || 0, b = m > 0 ? m - 1 : 0;
630
- 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(_), me(() => {
631
627
  r.value.setSelectionRange(b, b);
632
628
  });
633
629
  }
@@ -639,54 +635,54 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
639
635
  r.value.blur();
640
636
  }
641
637
  function k() {
642
- const p = t.min, d = t.max;
643
- let m = parseFloat(o.value || "0");
644
- 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, a("enter");
645
641
  }
646
- return (p, d) => {
647
- const m = le, _ = Ve, b = At, x = Ke, w = ke, T = qe, R = Je("longpress");
648
- return $(), N("div", {
642
+ return (f, p) => {
643
+ const d = ie, _ = Ve, b = At, C = Ke, A = ke, O = qe, R = Je("longpress");
644
+ return w(), T("div", {
649
645
  class: "number-keyboard",
650
646
  ref_key: "numberKeyboard",
651
647
  ref: i
652
648
  }, [
653
- P(T, {
649
+ E(O, {
654
650
  overlayClassName: "popover-keyboard",
655
651
  trigger: "manual",
656
652
  placement: "bottomLeft",
657
653
  arrow: !1,
658
654
  align: { offset: [0, 0] },
659
- open: S(c),
660
- "onUpdate:open": d[2] || (d[2] = (M) => Z(c) ? c.value = M : null)
655
+ open: S(u),
656
+ "onUpdate:open": p[2] || (p[2] = (M) => Z(u) ? u.value = M : null)
661
657
  }, {
662
- content: D(() => [
663
- E("div", {
658
+ content: P(() => [
659
+ $("div", {
664
660
  class: "keyboard-panel",
665
- onMousedownCapture: d[0] || (d[0] = ae(() => {
661
+ onMousedownCapture: p[0] || (p[0] = se(() => {
666
662
  }, ["prevent", "stop"]))
667
663
  }, [
668
- P(x, { gutter: "8" }, {
669
- default: D(() => [
670
- P(_, { span: 18 }, {
671
- default: D(() => [
672
- E("div", Tt, [
673
- ($(!0), N(X, null, V(e.quickNums, (M) => ($(), U(m, {
664
+ E(C, { gutter: "8" }, {
665
+ default: P(() => [
666
+ E(_, { span: 18 }, {
667
+ default: P(() => [
668
+ $("div", Mt, [
669
+ (w(!0), T(X, null, V(e.quickNums, (M) => (w(), U(d, {
674
670
  class: "btn-num",
675
671
  key: M,
676
672
  onClick: (Ne) => l(M)
677
673
  }, {
678
- default: D(() => [
679
- te(se(M), 1)
674
+ default: P(() => [
675
+ te(re(M), 1)
680
676
  ]),
681
677
  _: 2
682
678
  }, 1032, ["onClick"]))), 128)),
683
- ($(!0), N(X, null, V(S(u), (M) => ($(), U(m, {
679
+ (w(!0), T(X, null, V(S(c), (M) => (w(), U(d, {
684
680
  class: "btn-num",
685
681
  key: M,
686
682
  onClick: (Ne) => g(M)
687
683
  }, {
688
- default: D(() => [
689
- te(se(M), 1)
684
+ default: P(() => [
685
+ te(re(M), 1)
690
686
  ]),
691
687
  _: 2
692
688
  }, 1032, ["onClick"]))), 128))
@@ -694,28 +690,28 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
694
690
  ]),
695
691
  _: 1
696
692
  }),
697
- P(_, { span: 6 }, {
698
- default: D(() => [
699
- E("div", Mt, [
700
- tt(($(), U(m, {
693
+ E(_, { span: 6 }, {
694
+ default: P(() => [
695
+ $("div", Tt, [
696
+ tt((w(), U(d, {
701
697
  class: "btn-clear",
702
698
  onClick: h
703
699
  }, {
704
- default: D(() => [
705
- P(b, { style: { width: "24px", height: "24px" } })
700
+ default: P(() => [
701
+ E(b, { style: { width: "24px", height: "24px" } })
706
702
  ]),
707
703
  _: 1
708
704
  })), [
709
705
  [R, y]
710
706
  ]),
711
- P(m, {
707
+ E(d, {
712
708
  class: "btn-enter",
713
709
  type: "primary",
714
- onClick: ae(v, ["stop"])
710
+ onClick: se(v, ["stop"])
715
711
  }, {
716
- default: D(() => d[3] || (d[3] = [
717
- te("Enter ")
718
- ])),
712
+ default: P(() => [...p[3] || (p[3] = [
713
+ te("Enter ", -1)
714
+ ])]),
719
715
  _: 1
720
716
  })
721
717
  ])
@@ -727,15 +723,15 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
727
723
  })
728
724
  ], 32)
729
725
  ]),
730
- default: D(() => [
731
- P(w, F({
726
+ default: P(() => [
727
+ E(A, F({
732
728
  ref_key: "inputRef",
733
729
  ref: r,
734
730
  value: o.value,
735
- "onUpdate:value": d[1] || (d[1] = (M) => o.value = M)
736
- }, p.$attrs, {
737
- onFocus: f,
738
- onBlur: a,
731
+ "onUpdate:value": p[1] || (p[1] = (M) => o.value = M)
732
+ }, f.$attrs, {
733
+ onFocus: m,
734
+ onBlur: s,
739
735
  onKeyup: et(v, ["enter"])
740
736
  }), null, 16, ["value"])
741
737
  ]),
@@ -773,40 +769,40 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
773
769
  }),
774
770
  emits: /* @__PURE__ */ z(["change"], ["update:value"]),
775
771
  setup(e, { emit: n }) {
776
- nt((a) => ({
777
- "6ffd511e": S(u),
778
- "1201d0a5": S(o),
779
- "1201d466": S(c)
772
+ nt((s) => ({
773
+ v6ffd511e: S(c),
774
+ v1201d0a5: S(o),
775
+ v1201d466: S(u)
780
776
  }));
781
- const t = e, s = ee(e, "value"), i = n, r = O(() => {
782
- const a = {}, l = Array.from(t.flagStops), g = t.min || 0, h = t.max || 100, y = [g, ...s.value, h];
777
+ const t = e, a = ee(e, "value"), i = n, r = L(() => {
778
+ const s = {}, l = Array.from(t.flagStops), g = t.min || 0, h = t.max || 100, y = [g, ...a.value, h];
783
779
  for (let v = 0; v < y.length; v++) {
784
780
  const k = y[v];
785
- if (a[k] = k, v > 0) {
786
- const p = l.shift(), d = y[v - 1], m = d + (k - d) / 2;
787
- a[m] = { style: { top: "-28px" }, label: p };
781
+ if (s[k] = k, v > 0) {
782
+ const f = l.shift(), p = y[v - 1], d = p + (k - p) / 2;
783
+ s[d] = { style: { top: "-28px" }, label: f };
788
784
  }
789
785
  }
790
- return a;
791
- }), u = O(() => {
792
- 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];
786
+ return s;
787
+ }), c = L(() => {
788
+ const s = a.value, l = t.min || 0, g = t.max || 100, h = Math.floor((s[0] - l) / (g - l) * 100), y = t.colorStops, v = y[0], k = y[y.length - 1];
793
789
  return `linear-gradient(90deg, ${v} 0%, ${v} ${h}%, ${k} ${h}%, ${k} 100%)`;
794
- }), o = O(() => t.colorStops[1]), c = O(() => t.colorStops[2]);
795
- function f(a) {
790
+ }), o = L(() => t.colorStops[1]), u = L(() => t.colorStops[2]);
791
+ function m(s) {
796
792
  const l = t.min || 0, g = t.max || 100;
797
- 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));
793
+ s[0] <= l ? s[0] = l + 1 : s.at(-1) >= g && (s[s.length - 1] = g - 1), s.length === new Set(s).size && (a.value = s, i("change", s));
798
794
  }
799
- return (a, l) => {
795
+ return (s, l) => {
800
796
  const g = He;
801
- return $(), U(g, F({
797
+ return w(), U(g, F({
802
798
  class: "rate-slider",
803
- value: s.value,
799
+ value: a.value,
804
800
  min: e.min,
805
801
  max: e.max,
806
802
  range: "",
807
803
  marks: S(r),
808
- onChange: f
809
- }, a.$attrs), null, 16, ["value", "min", "max", "marks"]);
804
+ onChange: m
805
+ }, s.$attrs), null, 16, ["value", "min", "max", "marks"]);
810
806
  };
811
807
  }
812
808
  }), Ot = { class: "ip-input" }, Rt = { class: "ip-wrapper" }, Ut = {
@@ -825,63 +821,63 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
825
821
  }),
826
822
  emits: ["update:value"],
827
823
  setup(e) {
828
- 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"), a = x(["", "", "", ""]), i = x(), r = x(""), c = x(), o = (s) => {
829
825
  var g, h;
830
- const l = s.value[a];
826
+ const l = a.value[s];
831
827
  if (l && (!/^\d+$/.test(l) || parseInt(l) > 255)) {
832
- s.value[a] = "";
828
+ a.value[s] = "";
833
829
  return;
834
830
  }
835
- 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 : ""}`;
836
- }, c = (a, l) => {
831
+ parseInt(l) >= 100 && (s < 3 ? (g = i.value) != null && g.length && i.value[s + 1].focus() : n.hasPort && ((h = c.value) == null || h.focus())), t.value = `${a.value.join(".")}${n.hasPort ? ":" + r.value : ""}`;
832
+ }, u = (s, l) => {
837
833
  var g, h;
838
- 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();
834
+ l.key === " " && s < 3 && (l.preventDefault(), (g = i.value) != null && g.length && i.value[s + 1].focus()), l.key === "Backspace" && a.value[s] === "" && s > 0 && (h = i.value) != null && h.length && i.value[s - 1].focus();
839
835
  };
840
- function f() {
841
- t.value = `${s.value.join(".")}${n.hasPort ? ":" + (r.value || "") : ""}`;
836
+ function m() {
837
+ t.value = `${a.value.join(".")}${n.hasPort ? ":" + (r.value || "") : ""}`;
842
838
  }
843
839
  return Q(
844
840
  () => t.value,
845
- (a) => {
846
- if (a) {
847
- let l = a;
841
+ (s) => {
842
+ if (s) {
843
+ let l = s;
848
844
  if (n.hasPort) {
849
- const h = a.split(":");
845
+ const h = s.split(":");
850
846
  r.value = h[1] || "", l = h[0];
851
847
  }
852
848
  const g = l.split(".");
853
- g.length === 4 && (s.value = g);
849
+ g.length === 4 && (a.value = g);
854
850
  } else
855
- s.value = ["", "", "", ""], r.value = "";
851
+ a.value = ["", "", "", ""], r.value = "";
856
852
  },
857
853
  { immediate: !0 }
858
- ), (a, l) => {
859
- const g = re;
860
- return $(), N("div", Ot, [
861
- E("div", Rt, [
862
- ($(!0), N(X, null, V(S(s), (h, y) => ($(), N(X, { key: y }, [
863
- P(g, {
854
+ ), (s, l) => {
855
+ const g = le;
856
+ return w(), T("div", Ot, [
857
+ $("div", Rt, [
858
+ (w(!0), T(X, null, V(S(a), (h, y) => (w(), T(X, { key: y }, [
859
+ E(g, {
864
860
  ref_for: !0,
865
861
  ref_key: "ipPartArr",
866
862
  ref: i,
867
863
  class: "ip-part",
868
- value: S(s)[y],
869
- "onUpdate:value": (v) => S(s)[y] = v,
864
+ value: S(a)[y],
865
+ "onUpdate:value": (v) => S(a)[y] = v,
870
866
  min: 0,
871
867
  max: 255,
872
868
  precision: 0,
873
869
  controls: !1,
874
870
  onChange: (v) => o(y),
875
- onKeydown: (v) => c(y, v)
871
+ onKeydown: (v) => u(y, v)
876
872
  }, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
877
- y < 3 ? ($(), N("span", Ut, ".")) : me("", !0)
873
+ y < 3 ? (w(), T("span", Ut, ".")) : ve("", !0)
878
874
  ], 64))), 128))
879
875
  ]),
880
- e.hasPort ? ($(), N(X, { key: 0 }, [
881
- l[1] || (l[1] = E("span", { class: "ip-port-separator" }, ":", -1)),
882
- P(g, {
876
+ e.hasPort ? (w(), T(X, { key: 0 }, [
877
+ l[1] || (l[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
878
+ E(g, {
883
879
  ref_key: "portRef",
884
- ref: u,
880
+ ref: c,
885
881
  class: "ip-port",
886
882
  value: S(r),
887
883
  "onUpdate:value": l[0] || (l[0] = (h) => Z(r) ? r.value = h : null),
@@ -889,9 +885,9 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
889
885
  max: 65535,
890
886
  precision: 0,
891
887
  controls: !1,
892
- onChange: f
888
+ onChange: m
893
889
  }, null, 8, ["value"])
894
- ], 64)) : me("", !0)
890
+ ], 64)) : ve("", !0)
895
891
  ]);
896
892
  };
897
893
  }
@@ -921,49 +917,49 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
921
917
  }),
922
918
  emits: /* @__PURE__ */ z(["change"], ["update:value"]),
923
919
  setup(e, { emit: n }) {
924
- const t = e, s = ee(e, "value"), i = n, r = O(() => {
925
- const a = s.value[1];
926
- return q(a) ? t.max : a;
927
- }), u = O(() => {
928
- const a = s.value[0];
929
- return q(a) ? t.min : a;
930
- }), o = C(), c = C();
931
- function f() {
932
- const a = [o.value, c.value];
933
- s.value = a, i("change", a);
920
+ const t = e, a = ee(e, "value"), i = n, r = L(() => {
921
+ const s = a.value[1];
922
+ return q(s) ? t.max : s;
923
+ }), c = L(() => {
924
+ const s = a.value[0];
925
+ return q(s) ? t.min : s;
926
+ }), o = x(), u = x();
927
+ function m() {
928
+ const s = [o.value, u.value];
929
+ a.value = s, i("change", s);
934
930
  }
935
931
  return Q(
936
- () => s.value,
937
- (a) => {
938
- a != null && a.length ? (o.value = a[0], c.value = a[1]) : (o.value = void 0, c.value = void 0);
932
+ () => a.value,
933
+ (s) => {
934
+ s != null && s.length ? (o.value = s[0], u.value = s[1]) : (o.value = void 0, u.value = void 0);
939
935
  },
940
936
  { immediate: !0 }
941
- ), (a, l) => {
942
- const g = re;
943
- return $(), N("div", Bt, [
944
- P(g, {
937
+ ), (s, l) => {
938
+ const g = le;
939
+ return w(), T("div", Bt, [
940
+ E(g, {
945
941
  min: t.min,
946
942
  max: S(r),
947
943
  value: S(o),
948
944
  "onUpdate:value": l[0] || (l[0] = (h) => Z(o) ? o.value = h : null),
949
945
  placeholder: e.placeholder[0] || "",
950
- onChange: f
946
+ onChange: m
951
947
  }, null, 8, ["min", "max", "value", "placeholder"]),
952
- E("span", It, se(e.separator), 1),
953
- P(g, {
954
- min: S(u),
948
+ $("span", It, re(e.separator), 1),
949
+ E(g, {
950
+ min: S(c),
955
951
  max: t.max,
956
- value: S(c),
957
- "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),
958
954
  placeholder: e.placeholder[1] || "",
959
- onChange: f
955
+ onChange: m
960
956
  }, null, 8, ["min", "max", "value", "placeholder"])
961
957
  ]);
962
958
  };
963
959
  }
964
- }), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
960
+ }), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
965
961
  __proto__: null,
966
- AInputNumberEx: ct,
962
+ AInputNumberEx: ut,
967
963
  APageHeader: $t,
968
964
  ARangePickerEx: dt,
969
965
  ASelectEx: vt,
@@ -977,7 +973,7 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
977
973
  function De(e) {
978
974
  return at() ? (st(e), !0) : !1;
979
975
  }
980
- const de = typeof window < "u" && typeof document < "u";
976
+ const pe = typeof window < "u" && typeof document < "u";
981
977
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
982
978
  const Ft = Object.prototype.toString, zt = (e) => Ft.call(e) === "[object Object]";
983
979
  function qt(e) {
@@ -986,8 +982,8 @@ function qt(e) {
986
982
  return n || (n = e()), n;
987
983
  }
988
984
  return t.reset = async () => {
989
- const s = n;
990
- n = void 0, s && await s;
985
+ const a = n;
986
+ n = void 0, a && await a;
991
987
  }, t;
992
988
  }
993
989
  function ne(e) {
@@ -995,25 +991,25 @@ function ne(e) {
995
991
  }
996
992
  function Kt(e, n, t = {}) {
997
993
  const {
998
- immediate: s = !0,
994
+ immediate: a = !0,
999
995
  immediateCallback: i = !1
1000
996
  } = t, r = H(!1);
1001
- let u = null;
997
+ let c = null;
1002
998
  function o() {
1003
- u && (clearTimeout(u), u = null);
999
+ c && (clearTimeout(c), c = null);
1004
1000
  }
1005
- function c() {
1001
+ function u() {
1006
1002
  r.value = !1, o();
1007
1003
  }
1008
- function f(...a) {
1009
- i && e(), o(), r.value = !0, u = setTimeout(() => {
1010
- r.value = !1, u = null, e(...a);
1004
+ function m(...s) {
1005
+ i && e(), o(), r.value = !0, c = setTimeout(() => {
1006
+ r.value = !1, c = null, e(...s);
1011
1007
  }, K(n));
1012
1008
  }
1013
- return s && (r.value = !0, de && f()), De(c), {
1009
+ return a && (r.value = !0, pe && m()), De(u), {
1014
1010
  isPending: ot(r),
1015
- start: f,
1016
- stop: c
1011
+ start: m,
1012
+ stop: u
1017
1013
  };
1018
1014
  }
1019
1015
  function Vt(e, n, t) {
@@ -1026,8 +1022,8 @@ function Vt(e, n, t) {
1026
1022
  }
1027
1023
  );
1028
1024
  }
1029
- const Ht = de ? window : void 0, Ae = de ? window.navigator : void 0;
1030
- function Te(e) {
1025
+ const Ht = pe ? window : void 0, Ae = pe ? window.navigator : void 0;
1026
+ function Me(e) {
1031
1027
  var n;
1032
1028
  const t = K(e);
1033
1029
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
@@ -1035,37 +1031,37 @@ function Te(e) {
1035
1031
  function Y(...e) {
1036
1032
  const n = [], t = () => {
1037
1033
  n.forEach((o) => o()), n.length = 0;
1038
- }, s = (o, c, f, a) => (o.addEventListener(c, f, a), () => o.removeEventListener(c, f, a)), i = O(() => {
1039
- const o = ne(K(e[0])).filter((c) => c != null);
1040
- return o.every((c) => typeof c != "string") ? o : void 0;
1034
+ }, a = (o, u, m, s) => (o.addEventListener(u, m, s), () => o.removeEventListener(u, m, s)), i = L(() => {
1035
+ const o = ne(K(e[0])).filter((u) => u != null);
1036
+ return o.every((u) => typeof u != "string") ? o : void 0;
1041
1037
  }), r = Vt(
1042
1038
  () => {
1043
- var o, c;
1039
+ var o, u;
1044
1040
  return [
1045
- (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) => Me(m))) != null ? u : [Ht].filter((m) => m != null),
1046
1042
  ne(K(i.value ? e[1] : e[0])),
1047
1043
  ne(S(i.value ? e[2] : e[1])),
1048
1044
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1049
1045
  K(i.value ? e[3] : e[2])
1050
1046
  ];
1051
1047
  },
1052
- ([o, c, f, a]) => {
1053
- if (t(), !(o != null && o.length) || !(c != null && c.length) || !(f != null && f.length))
1048
+ ([o, u, m, s]) => {
1049
+ if (t(), !(o != null && o.length) || !(u != null && u.length) || !(m != null && m.length))
1054
1050
  return;
1055
- const l = zt(a) ? { ...a } : a;
1051
+ const l = zt(s) ? { ...s } : s;
1056
1052
  n.push(
1057
1053
  ...o.flatMap(
1058
- (g) => c.flatMap(
1059
- (h) => f.map((y) => s(g, h, y, l))
1054
+ (g) => u.flatMap(
1055
+ (h) => m.map((y) => a(g, h, y, l))
1060
1056
  )
1061
1057
  )
1062
1058
  );
1063
1059
  },
1064
1060
  { flush: "post" }
1065
- ), u = () => {
1061
+ ), c = () => {
1066
1062
  r(), t();
1067
1063
  };
1068
- return De(t), u;
1064
+ return De(t), c;
1069
1065
  }
1070
1066
  function Xt() {
1071
1067
  const e = H(!1), n = J();
@@ -1073,131 +1069,131 @@ function Xt() {
1073
1069
  e.value = !0;
1074
1070
  }, n), e;
1075
1071
  }
1076
- function Me(e) {
1072
+ function Te(e) {
1077
1073
  const n = Xt();
1078
- return O(() => (n.value, !!e()));
1074
+ return L(() => (n.value, !!e()));
1079
1075
  }
1080
1076
  const Yt = 500, Zt = 10;
1081
1077
  function Gt(e, n, t) {
1082
- var s, i;
1083
- const r = O(() => Te(e));
1084
- let u, o, c, f = !1;
1085
- function a() {
1086
- u && (clearTimeout(u), u = void 0), o = void 0, c = void 0, f = !1;
1078
+ var a, i;
1079
+ const r = L(() => Me(e));
1080
+ let c, o, u, m = !1;
1081
+ function s() {
1082
+ c && (clearTimeout(c), c = void 0), o = void 0, u = void 0, m = !1;
1087
1083
  }
1088
- function l(p) {
1089
- var d, m, _;
1090
- const [b, x, w] = [c, o, f];
1091
- 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 (s(), !(t != null && t.onMouseUp) || !C || !b || (p = t == null ? void 0 : t.modifiers) != null && p.self && f.target !== r.value)
1092
1088
  return;
1093
- (m = t == null ? void 0 : t.modifiers) != null && m.prevent && p.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && p.stopPropagation();
1094
- const T = p.x - x.x, R = p.y - x.y, M = Math.sqrt(T * T + R * R);
1095
- t.onMouseUp(p.timeStamp - b, M, 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, M = Math.sqrt(O * O + R * R);
1091
+ t.onMouseUp(f.timeStamp - b, M, A);
1096
1092
  }
1097
- function g(p) {
1098
- var d, m, _, b;
1099
- (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 = {
1100
- x: p.x,
1101
- y: p.y
1102
- }, 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 || (s(), (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(
1103
1099
  () => {
1104
- f = !0, n(p);
1100
+ m = !0, n(f);
1105
1101
  },
1106
1102
  (b = t == null ? void 0 : t.delay) != null ? b : Yt
1107
1103
  ));
1108
1104
  }
1109
- function h(p) {
1110
- var d, m, _, b;
1111
- 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)
1112
1108
  return;
1113
- (m = t == null ? void 0 : t.modifiers) != null && m.prevent && p.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && p.stopPropagation();
1114
- const x = p.x - o.x, w = p.y - o.y;
1115
- 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) && s();
1116
1112
  }
1117
1113
  const y = {
1118
- capture: (s = t == null ? void 0 : t.modifiers) == null ? void 0 : s.capture,
1114
+ capture: (a = t == null ? void 0 : t.modifiers) == null ? void 0 : a.capture,
1119
1115
  once: (i = t == null ? void 0 : t.modifiers) == null ? void 0 : i.once
1120
1116
  }, v = [
1121
1117
  Y(r, "pointerdown", g, y),
1122
1118
  Y(r, "pointermove", h, y),
1123
1119
  Y(r, ["pointerup", "pointerleave"], l, y)
1124
1120
  ];
1125
- return () => v.forEach((p) => p());
1121
+ return () => v.forEach((f) => f());
1126
1122
  }
1127
- function _e(e, n = {}) {
1123
+ function be(e, n = {}) {
1128
1124
  const {
1129
1125
  controls: t = !1,
1130
- navigator: s = Ae
1131
- } = n, i = Me(() => s && "permissions" in s), r = H(), u = typeof e == "string" ? { name: e } : e, o = H(), c = () => {
1132
- var a, l;
1133
- o.value = (l = (a = r.value) == null ? void 0 : a.state) != null ? l : "prompt";
1126
+ navigator: a = Ae
1127
+ } = n, i = Te(() => a && "permissions" in a), r = H(), c = typeof e == "string" ? { name: e } : e, o = H(), u = () => {
1128
+ var s, l;
1129
+ o.value = (l = (s = r.value) == null ? void 0 : s.state) != null ? l : "prompt";
1134
1130
  };
1135
- Y(r, "change", c, { passive: !0 });
1136
- const f = qt(async () => {
1131
+ Y(r, "change", u, { passive: !0 });
1132
+ const m = qt(async () => {
1137
1133
  if (i.value) {
1138
1134
  if (!r.value)
1139
1135
  try {
1140
- r.value = await s.permissions.query(u);
1136
+ r.value = await a.permissions.query(c);
1141
1137
  } catch {
1142
1138
  r.value = void 0;
1143
1139
  } finally {
1144
- c();
1140
+ u();
1145
1141
  }
1146
1142
  if (t)
1147
1143
  return rt(r.value);
1148
1144
  }
1149
1145
  });
1150
- return f(), t ? {
1146
+ return m(), t ? {
1151
1147
  state: o,
1152
1148
  isSupported: i,
1153
- query: f
1149
+ query: m
1154
1150
  } : o;
1155
1151
  }
1156
1152
  function Qt(e = {}) {
1157
1153
  const {
1158
1154
  navigator: n = Ae,
1159
1155
  read: t = !1,
1160
- source: s,
1156
+ source: a,
1161
1157
  copiedDuring: i = 1500,
1162
1158
  legacy: r = !1
1163
- } = e, u = Me(() => n && "clipboard" in n), o = _e("clipboard-read"), c = _e("clipboard-write"), f = O(() => u.value || r), a = H(""), l = H(!1), g = Kt(() => l.value = !1, i, { immediate: !1 });
1159
+ } = e, c = Te(() => n && "clipboard" in n), o = be("clipboard-read"), u = be("clipboard-write"), m = L(() => c.value || r), s = H(""), l = H(!1), g = Kt(() => l.value = !1, i, { immediate: !1 });
1164
1160
  async function h() {
1165
- let d = !(u.value && p(o.value));
1166
- if (!d)
1161
+ let p = !(c.value && f(o.value));
1162
+ if (!p)
1167
1163
  try {
1168
- a.value = await n.clipboard.readText();
1164
+ s.value = await n.clipboard.readText();
1169
1165
  } catch {
1170
- d = !0;
1166
+ p = !0;
1171
1167
  }
1172
- d && (a.value = k());
1168
+ p && (s.value = k());
1173
1169
  }
1174
- f.value && t && Y(["copy", "cut"], h, { passive: !0 });
1175
- async function y(d = K(s)) {
1176
- if (f.value && d != null) {
1177
- let m = !(u.value && p(c.value));
1178
- if (!m)
1170
+ m.value && t && Y(["copy", "cut"], h, { passive: !0 });
1171
+ async function y(p = K(a)) {
1172
+ if (m.value && p != null) {
1173
+ let d = !(c.value && f(u.value));
1174
+ if (!d)
1179
1175
  try {
1180
- await n.clipboard.writeText(d);
1176
+ await n.clipboard.writeText(p);
1181
1177
  } catch {
1182
- m = !0;
1178
+ d = !0;
1183
1179
  }
1184
- m && v(d), a.value = d, l.value = !0, g.start();
1180
+ d && v(p), s.value = p, l.value = !0, g.start();
1185
1181
  }
1186
1182
  }
1187
- function v(d) {
1188
- const m = document.createElement("textarea");
1189
- 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();
1190
1186
  }
1191
1187
  function k() {
1192
- var d, m, _;
1193
- 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 ? _ : "";
1194
1190
  }
1195
- function p(d) {
1196
- return d === "granted" || d === "prompt";
1191
+ function f(p) {
1192
+ return p === "granted" || p === "prompt";
1197
1193
  }
1198
1194
  return {
1199
- isSupported: f,
1200
- text: a,
1195
+ isSupported: m,
1196
+ text: s,
1201
1197
  copied: l,
1202
1198
  copy: y
1203
1199
  };
@@ -1206,8 +1202,8 @@ const Jt = Qt();
1206
1202
  let oe;
1207
1203
  const en = {
1208
1204
  mounted(e, n, t) {
1209
- var u, o;
1210
- 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 a = de(t.ctx), i = ((o = (c = a == null ? void 0 : a.locale) == null ? void 0 : c.locale) == null ? void 0 : o.slice(0, 2)) || "en", r = {
1211
1207
  zh: "复制成功",
1212
1208
  en: "Copy successfully",
1213
1209
  fr: "Copie réussie"
@@ -1224,8 +1220,8 @@ const en = {
1224
1220
  }
1225
1221
  }, tn = {
1226
1222
  beforeMount(e, n, t) {
1227
- const s = e.tagName === "INPUT" ? e : e.querySelector("input");
1228
- if (!s)
1223
+ const a = e.tagName === "INPUT" ? e : e.querySelector("input");
1224
+ if (!a)
1229
1225
  return;
1230
1226
  const i = n.value, r = {
1231
1227
  letterNumber: /^\w*$/,
@@ -1239,11 +1235,11 @@ const en = {
1239
1235
  verify: /^\d{0,6}$/,
1240
1236
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
1241
1237
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
1242
- }, 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;
1243
1239
  e._handleInput = (o) => {
1244
1240
  if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
1245
- const c = u == null ? void 0 : u.test(o.target.value);
1246
- 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)
1247
1243
  o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
1248
1244
  else
1249
1245
  switch (o.inputType) {
@@ -1260,9 +1256,9 @@ const en = {
1260
1256
  case "insertFromPaste":
1261
1257
  //粘贴
1262
1258
  case "insertFromDrop":
1263
- const a = o.dataTransfer || o.clipboardData || null;
1264
- if (a) {
1265
- const l = a.getData("text") || "";
1259
+ const s = o.dataTransfer || o.clipboardData || null;
1260
+ if (s) {
1261
+ const l = s.getData("text") || "";
1266
1262
  o.target.selectionStart = e._start + l.length, o.target.selectionEnd = e._start + l.length;
1267
1263
  }
1268
1264
  break;
@@ -1272,32 +1268,32 @@ const en = {
1272
1268
  o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
1273
1269
  break;
1274
1270
  }
1275
- const f = new InputEvent("input", {
1271
+ const m = new InputEvent("input", {
1276
1272
  isComposing: !1
1277
1273
  });
1278
- o.target.dispatchEvent(f);
1274
+ o.target.dispatchEvent(m);
1279
1275
  }
1280
1276
  }, e._handleKeydown = (o) => {
1281
- const c = u == null ? void 0 : u.test(o.target.value);
1282
- 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;
1283
1279
  }, e._handleDrop = (o) => {
1284
1280
  o.stopPropagation();
1285
- }, s.addEventListener("input", e._handleInput), s.addEventListener("keydown", e._handleKeydown), s.addEventListener("drop", e._handleDrop);
1281
+ }, a.addEventListener("input", e._handleInput), a.addEventListener("keydown", e._handleKeydown), a.addEventListener("drop", e._handleDrop);
1286
1282
  },
1287
1283
  unmounted(e) {
1288
1284
  const n = e.tagName === "INPUT" ? e : e.querySelector("input");
1289
1285
  n && (n.removeEventListener("input", e._handleInput), n.removeEventListener("keydown", e._handleKeydown), n.removeEventListener("drop", e._handleDrop));
1290
1286
  }
1291
1287
  };
1292
- function be(e, n, t) {
1293
- const s = n.value;
1294
- if (s) {
1295
- const i = s / 2;
1288
+ function ae(e, n, t) {
1289
+ const a = n.value;
1290
+ if (a) {
1291
+ const i = a / 2;
1296
1292
  e.style.marginLeft = `-${i}px`, e.style.marginRight = `-${i}px`;
1297
1293
  const r = e.children;
1298
1294
  if (r != null && r.length)
1299
- for (let u = 0; u < r.length; u++) {
1300
- const o = r[u];
1295
+ for (let c = 0; c < r.length; c++) {
1296
+ const o = r[c];
1301
1297
  o != null && o.style && (o.style.paddingLeft = i + "px", o.style.paddingRight = i + "px");
1302
1298
  }
1303
1299
  }
@@ -1307,10 +1303,17 @@ const nn = {
1307
1303
  e.classList.add("ant-row"), e.style.display = "flex", e.style.flexWrap = "wrap", e.style.flexDirection = "row", e.style.minWidth = 0;
1308
1304
  },
1309
1305
  mounted(e, n, t) {
1310
- be(e, n);
1306
+ ae(e, n);
1307
+ const a = new MutationObserver(
1308
+ () => ae(e, n)
1309
+ );
1310
+ a.observe(e, { childList: !0 }), e.observer = a;
1311
+ },
1312
+ updated(e, n, t, a) {
1313
+ ae(e, n);
1311
1314
  },
1312
- updated(e, n, t, s) {
1313
- be(e, n);
1315
+ unmounted(e, n, t) {
1316
+ e.observer && (e.observer.disconnect(), e.observer = null);
1314
1317
  }
1315
1318
  }, on = {
1316
1319
  beforeMount(e, n) {
@@ -1320,38 +1323,38 @@ const nn = {
1320
1323
  }
1321
1324
  }, an = {
1322
1325
  mounted(e, n, t) {
1323
- const { value: s } = n, {
1326
+ const { value: a } = n, {
1324
1327
  content: i = "",
1325
1328
  placement: r = "top",
1326
- enabled: u = !0,
1329
+ enabled: c = !0,
1327
1330
  padding: o = 8,
1328
1331
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1329
- ...c
1330
- } = typeof s == "string" ? { content: s } : s;
1331
- if (e.tooltipDisabled = !1, !u)
1332
+ ...u
1333
+ } = typeof a == "string" ? { content: a } : a;
1334
+ if (e.tooltipDisabled = !1, !c)
1332
1335
  e.tooltipDisabled = !0;
1333
1336
  else if (n.modifiers.exceed) {
1334
1337
  const h = e.clientWidth, y = xe(i);
1335
1338
  e.tooltipDisabled = h ? y < h - o * 2 : !0;
1336
1339
  }
1337
- const f = C({
1340
+ const m = x({
1338
1341
  top: 0,
1339
1342
  left: 0,
1340
1343
  bottom: 0,
1341
1344
  right: 0
1342
- }), a = C({
1343
- getBoundingClientRect: () => f.value
1345
+ }), s = x({
1346
+ getBoundingClientRect: () => m.value
1344
1347
  }), l = W(it, {
1345
1348
  visible: !1,
1346
1349
  content: i,
1347
1350
  placement: r,
1348
1351
  virtualTriggering: !0,
1349
- virtualRef: a.value,
1352
+ virtualRef: s.value,
1350
1353
  popperClass: "vtooltip",
1351
- ...c
1354
+ ...u
1352
1355
  }), g = document.createDocumentFragment();
1353
1356
  G(l, g), e.tooltipVm = l, e.tooltipContainer = g, e.addEventListener("mouseenter", () => {
1354
- f.value = e.getBoundingClientRect(), l.component && !e.tooltipDisabled && (Object.assign(l.component.props, { visible: !0 }), l.component.update());
1357
+ m.value = e.getBoundingClientRect(), l.component && !e.tooltipDisabled && (Object.assign(l.component.props, { visible: !0 }), l.component.update());
1355
1358
  }), e.addEventListener("mouseleave", () => {
1356
1359
  l.component && (Object.assign(l.component.props, { visible: !1 }), l.component.update());
1357
1360
  });
@@ -1359,21 +1362,21 @@ const nn = {
1359
1362
  updated(e, n) {
1360
1363
  if (e.tooltipVm) {
1361
1364
  const { value: t } = n, {
1362
- content: s = "",
1365
+ content: a = "",
1363
1366
  placement: i = "top",
1364
1367
  enabled: r = !0,
1365
- padding: u = 8,
1368
+ padding: c = 8,
1366
1369
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1367
1370
  ...o
1368
1371
  } = typeof t == "string" ? { content: t } : t;
1369
1372
  if (e.tooltipDisabled = !1, !r)
1370
1373
  e.tooltipDisabled = !0;
1371
1374
  else if (n.modifiers.exceed) {
1372
- const f = e.clientWidth, a = xe(s);
1373
- e.tooltipDisabled = f ? a < f - u * 2 : !0;
1375
+ const m = e.clientWidth, s = xe(a);
1376
+ e.tooltipDisabled = m ? s < m - c * 2 : !0;
1374
1377
  }
1375
- const c = e.tooltipVm;
1376
- c.component && (Object.assign(c.component.props, { content: s, placement: i, ...o }), c.component.update());
1378
+ const u = e.tooltipVm;
1379
+ u.component && (Object.assign(u.component.props, { content: a, placement: i, ...o }), u.component.update());
1377
1380
  }
1378
1381
  },
1379
1382
  unmounted(e) {
@@ -1381,13 +1384,13 @@ const nn = {
1381
1384
  }
1382
1385
  };
1383
1386
  function xe(e, n) {
1384
- const s = document.createElement("canvas").getContext("2d");
1385
- return s.font = "14px Arial", s.measureText(e).width;
1387
+ const a = document.createElement("canvas").getContext("2d");
1388
+ return a.font = "14px Arial", a.measureText(e).width;
1386
1389
  }
1387
1390
  const sn = {
1388
1391
  beforeMount(e, n) {
1389
1392
  const { value: t } = n;
1390
- t && (ut(t) || setTimeout(() => {
1393
+ t && (ct(t) || setTimeout(() => {
1391
1394
  var i;
1392
1395
  (i = e.parentNode) == null || i.removeChild(e);
1393
1396
  }, 50));
@@ -1399,11 +1402,11 @@ function Ce(e, n = 4) {
1399
1402
  }
1400
1403
  const rn = {
1401
1404
  mounted(e, n) {
1402
- const { value: t } = n, { content: s = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = s.replace(/\s+/g, "");
1405
+ const { value: t } = n, { content: a = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = a.replace(/\s+/g, "");
1403
1406
  e.textContent = Ce(r, i) || "-";
1404
1407
  },
1405
1408
  updated(e, n) {
1406
- const { value: t } = n, { content: s = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = s.replace(/\s+/g, "");
1409
+ const { value: t } = n, { content: a = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = a.replace(/\s+/g, "");
1407
1410
  e.textContent = Ce(r, i) || "-";
1408
1411
  }
1409
1412
  }, ln = {
@@ -1421,16 +1424,16 @@ const rn = {
1421
1424
  space: rn,
1422
1425
  tooltip: an
1423
1426
  }, Symbol.toStringTag, { value: "Module" }));
1424
- function un(e) {
1425
- Object.keys(ye).forEach((n) => {
1426
- e.component(n, ye[n]);
1427
+ function cn(e) {
1428
+ Object.keys(_e).forEach((n) => {
1429
+ e.component(n, _e[n]);
1427
1430
  }), Object.keys(Se).forEach((n) => {
1428
1431
  e.directive(n, Se[n]);
1429
1432
  });
1430
1433
  }
1431
- const yn = { install: un };
1434
+ const yn = { install: cn };
1432
1435
  export {
1433
- ct as AInputNumberEx,
1436
+ ut as AInputNumberEx,
1434
1437
  $t as APageHeader,
1435
1438
  dt as ARangePickerEx,
1436
1439
  vt as ASelectEx,
@@ -1453,10 +1456,10 @@ export {
1453
1456
  Pn as getToken,
1454
1457
  Dn as getUserCenterParams,
1455
1458
  An as getUserCenterParamsByUrl,
1456
- Tn as getUserInfo,
1457
- ut as hasPermission,
1459
+ Mn as getUserInfo,
1460
+ ct as hasPermission,
1458
1461
  tn as inputlimit,
1459
- Mn as is,
1462
+ Tn as is,
1460
1463
  Nn as isArray,
1461
1464
  Ln as isAsyncFunction,
1462
1465
  On as isBoolean,
@@ -1490,7 +1493,7 @@ export {
1490
1493
  rn as space,
1491
1494
  so as toUserCenterConsole,
1492
1495
  an as tooltip,
1493
- ce as useConfigProvider,
1496
+ de as useConfigProvider,
1494
1497
  gn as useFindParent,
1495
1498
  hn as useModal
1496
1499
  };