@witlink/components 1.0.26 → 1.0.28

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,9 +1,9 @@
1
- import { InputNumber as le, RangePicker as Re, Select as je, Divider as Ie, Space as Oe, Input as ke, Button as we, Table as Fe, Popover as Ue, Row as We, Col as ze, Slider as qe } from "ant-design-vue/es";
2
- import { markRaw as re, createElementBlock as A, openBlock as w, createElementVNode as N, defineComponent as F, mergeModels as I, useModel as Q, useSlots as $e, useAttrs as Ke, createBlock as j, mergeProps as O, createSlots as ie, renderList as K, withCtx as M, unref as k, renderSlot as V, normalizeProps as ue, guardReactiveProps as Ee, createVNode as E, ref as S, watch as J, resolveDynamicComponent as Ve, isRef as Z, withModifiers as ae, getCurrentInstance as ee, render as G, h as z, computed as D, onMounted as Me, onUnmounted as Xe, normalizeClass as He, normalizeStyle as pe, resolveDirective as Ye, withKeys as Ze, Fragment as H, createTextVNode as te, toDisplayString as se, withDirectives as Ge, nextTick as fe, useCssVars as Qe, createCommentVNode as me, shallowRef as X, shallowReadonly as Je, toValue as q, getCurrentScope as et, onScopeDispose as tt, toRaw as nt } from "vue";
3
- import { isNullOrUndef as B, hasPermission as ot } from "./utils.js";
4
- import { UserCenterKey as gn, buildTree as yn, exportFile as hn, forEachTree as _n, getButtonPermissions as bn, getLocale as xn, getMenuInfo as Cn, getToken as Sn, getUserCenterParams as kn, getUserCenterParamsByUrl as wn, getUserInfo as $n, is as En, isArray as Mn, isAsyncFunction as Nn, isBoolean as Pn, isClient as An, isDate as Tn, isDef as Dn, isElement as Ln, isFunction as Bn, isImageDom as Rn, isNull as jn, isNumber as In, isObject as On, isPromise as Fn, isServer as Un, isString as Wn, isUndef as zn, isWindow as qn, logoutToUserCenter as Kn, removeAll as Vn, removeLocale as Xn, removeToken as Hn, setLocale as Yn, setMenuInfo as Zn, setToken as Gn, setUserCenterParams as Qn, setUserInfo as Jn, toUserCenterConsole as eo } from "./utils.js";
1
+ import { InputNumber as re, RangePicker as Oe, Select as je, Divider as Ie, Space as Ue, Input as ke, Button as we, Table as Fe, Popover as We, Row as ze, Col as qe, Slider as Ke } from "ant-design-vue/es";
2
+ import { markRaw as le, createElementBlock as T, openBlock as $, createElementVNode as N, defineComponent as F, mergeModels as I, useModel as Q, useSlots as $e, useAttrs as Ee, createBlock as j, mergeProps as U, createSlots as ie, renderList as K, withCtx as M, unref as k, renderSlot as V, normalizeProps as ue, guardReactiveProps as Me, createVNode as E, ref as S, watch as J, resolveDynamicComponent as Ve, isRef as Z, withModifiers as ae, getCurrentInstance as ee, render as G, h as z, computed as L, onMounted as Ne, onUnmounted as Xe, normalizeClass as He, normalizeStyle as pe, resolveDirective as Ye, withKeys as Ze, Fragment as H, createTextVNode as te, toDisplayString as se, withDirectives as Ge, nextTick as fe, useCssVars as Qe, createCommentVNode as me, shallowRef as X, shallowReadonly as Je, toValue as q, getCurrentScope as et, onScopeDispose as tt, toRaw as nt } from "vue";
3
+ import { isNullOrUndef as R, hasPermission as ot } from "./utils.js";
4
+ import { UserCenterKey as gn, buildTree as hn, exportFile as yn, forEachTree as _n, getButtonPermissions as bn, getLocale as xn, getMenuInfo as Cn, getToken as Sn, getUserCenterParams as kn, getUserCenterParamsByUrl as wn, getUserInfo as $n, is as En, isArray as Mn, isAsyncFunction as Nn, isBoolean as Pn, isClient as An, isDate as Tn, isDef as Dn, isElement as Ln, isFunction as Bn, isImageDom as Rn, isNull as On, isNumber as jn, isObject as In, isPromise as Un, isServer as Fn, isString as Wn, isUndef as zn, isWindow as qn, logoutToUserCenter as Kn, removeAll as Vn, removeLocale as Xn, removeToken as Hn, setLocale as Yn, setMenuInfo as Zn, setToken as Gn, setUserCenterParams as Qn, setUserInfo as Jn, toUserCenterConsole as eo } from "./utils.js";
5
5
  import ve from "dayjs";
6
- import { Drawer as T, App as at, Modal as st, Button as lt, ConfigProvider as rt, Textarea as it, Form as Ne, message as ut } from "ant-design-vue";
6
+ import { Drawer as D, App as at, Modal as st, Button as rt, ConfigProvider as lt, Textarea as it, Form as Pe, message as ut } from "ant-design-vue";
7
7
  import { ElScrollbar as ct, ElTooltip as dt } from "element-plus";
8
8
  const pt = {
9
9
  class: "icon",
@@ -12,7 +12,7 @@ const pt = {
12
12
  height: "1.2em"
13
13
  };
14
14
  function ft(e, n) {
15
- return w(), A("svg", pt, n[0] || (n[0] = [
15
+ return $(), T("svg", pt, n[0] || (n[0] = [
16
16
  N("path", {
17
17
  fill: "currentColor",
18
18
  d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8"
@@ -23,21 +23,21 @@ function ft(e, n) {
23
23
  }, null, -1)
24
24
  ]));
25
25
  }
26
- const Pe = re({ name: "ant-design-plus", render: ft }), mt = {
26
+ const Ae = le({ name: "ant-design-plus", render: ft }), mt = {
27
27
  class: "icon",
28
28
  viewBox: "0 0 1024 1024",
29
29
  width: "1.2em",
30
30
  height: "1.2em"
31
31
  };
32
32
  function vt(e, n) {
33
- return w(), A("svg", mt, n[0] || (n[0] = [
33
+ return $(), T("svg", mt, n[0] || (n[0] = [
34
34
  N("path", {
35
35
  fill: "currentColor",
36
36
  d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8"
37
37
  }, null, -1)
38
38
  ]));
39
39
  }
40
- const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F({
40
+ const gt = le({ name: "ant-design-minus", render: vt }), ht = /* @__PURE__ */ F({
41
41
  inheritAttrs: !1,
42
42
  __name: "index",
43
43
  props: /* @__PURE__ */ I({
@@ -58,45 +58,45 @@ const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F(
58
58
  }),
59
59
  emits: /* @__PURE__ */ I(["change"], ["update:value"]),
60
60
  setup(e, { emit: n }) {
61
- const t = Q(e, "value"), s = e, i = n, r = $e(), u = Ke();
61
+ const t = Q(e, "value"), s = e, u = n, r = $e(), l = Ee();
62
62
  function o(a) {
63
- if (B(a))
64
- t.value = null, i("change", null);
63
+ if (R(a))
64
+ t.value = null, u("change", null);
65
65
  else {
66
66
  let d = a;
67
- s.stringMode && (d = Number(d).toFixed(s.precision)), t.value !== d && (t.value = d, i("change", d));
67
+ s.stringMode && (d = Number(d).toFixed(s.precision)), t.value !== d && (t.value = d, u("change", d));
68
68
  }
69
69
  }
70
- function c() {
71
- if (B(t.value))
70
+ function i() {
71
+ if (R(t.value))
72
72
  return;
73
73
  let a = t.value;
74
74
  s.stringMode && (a = Number(a).toFixed(s.precision)), t.value = a;
75
75
  }
76
76
  function p() {
77
- if (u.disabled) return;
77
+ if (l.disabled) return;
78
78
  const a = Number(t.value);
79
- !B(u.min) && a <= Number(u.min) || o(a - 1);
79
+ !R(l.min) && a <= Number(l.min) || o(a - 1);
80
80
  }
81
- function l() {
82
- if (u.disabled) return;
81
+ function c() {
82
+ if (l.disabled) return;
83
83
  const a = Number(t.value);
84
- !B(u.max) && a >= Number(u.max) || o(a + 1);
84
+ !R(l.max) && a >= Number(l.max) || o(a + 1);
85
85
  }
86
86
  return (a, d) => {
87
- const h = gt, v = Pe, g = le;
88
- return w(), j(g, O({
87
+ const y = gt, g = Ae, v = re;
88
+ return $(), j(v, U({
89
89
  value: t.value,
90
90
  precision: e.precision,
91
91
  stringMode: e.stringMode,
92
92
  controls: !e.customControls,
93
93
  onChange: o,
94
- onBlur: c
94
+ onBlur: i
95
95
  }, a.$attrs), ie({ _: 2 }, [
96
96
  K(Object.keys(k(r)), (x) => ({
97
97
  name: x,
98
98
  fn: M((f) => [
99
- V(a.$slots, x, ue(Ee(f)))
99
+ V(a.$slots, x, ue(Me(f)))
100
100
  ])
101
101
  })),
102
102
  e.customControls ? {
@@ -106,7 +106,7 @@ const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F(
106
106
  class: "btn-control",
107
107
  onClick: p
108
108
  }, [
109
- E(h, { class: "btn-icon" })
109
+ E(y, { class: "btn-icon" })
110
110
  ])
111
111
  ]),
112
112
  key: "0"
@@ -116,9 +116,9 @@ const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F(
116
116
  fn: M(() => [
117
117
  N("div", {
118
118
  class: "btn-control",
119
- onClick: l
119
+ onClick: c
120
120
  }, [
121
- E(v, { class: "btn-icon" })
121
+ E(g, { class: "btn-icon" })
122
122
  ])
123
123
  ]),
124
124
  key: "1"
@@ -126,7 +126,7 @@ const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F(
126
126
  ]), 1040, ["value", "precision", "stringMode", "controls"]);
127
127
  };
128
128
  }
129
- }), ht = /* @__PURE__ */ F({
129
+ }), yt = /* @__PURE__ */ F({
130
130
  __name: "index",
131
131
  props: {
132
132
  value: {},
@@ -136,8 +136,7 @@ const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F(
136
136
  default: 0
137
137
  },
138
138
  maxUnit: {
139
- type: String,
140
- default: "day"
139
+ type: String
141
140
  },
142
141
  // 最小可选择时间距离当日多长时间,默认0,代表当日
143
142
  min: {
@@ -145,43 +144,50 @@ const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F(
145
144
  default: 0
146
145
  },
147
146
  minUnit: {
148
- type: String,
149
- default: "day"
147
+ type: String
150
148
  },
151
149
  // 可选择时间间隔,默认60天
152
150
  interval: {
153
151
  type: Number,
154
152
  default: 60
153
+ },
154
+ intervalUnit: {
155
+ type: String
156
+ },
157
+ unit: {
158
+ type: String,
159
+ default: "day"
155
160
  }
156
161
  },
157
162
  emits: ["update:value", "change"],
158
163
  setup(e, { emit: n }) {
159
- const t = e, s = n, i = S(), r = S(), u = (l) => {
160
- const a = ve().add(t.max, t.maxUnit), d = ve().subtract(t.min, t.minUnit), h = t.interval;
161
- if (!i.value || i.value.length === 0)
162
- return l.isAfter(a) || l.isBefore(d);
163
- const v = i.value[0] && (l.diff(i.value[0], "days") > h || l.isAfter(a));
164
- return i.value[1] && (i.value[1].diff(l, "days") > h || l.isBefore(d)) || v;
165
- }, o = (l) => {
166
- l ? (i.value = [], r.value = []) : r.value = void 0;
167
- }, c = (l) => {
168
- s("update:value", l), s("change", l);
169
- }, p = (l) => {
170
- i.value = l;
164
+ const t = e, s = n, u = Ee(), r = S(), l = S(), o = (a) => {
165
+ var w, P, B;
166
+ const d = t.maxUnit || t.unit, y = t.minUnit || t.unit, g = ve().add(t.max, d), v = ve().subtract(t.min, y), x = t.interval;
167
+ if (!((w = r.value) != null && w.length))
168
+ return a.isAfter(g) || a.isBefore(v);
169
+ const f = t.intervalUnit || t.unit, m = u.picker || "date", h = (P = r.value[0]) == null ? void 0 : P.startOf(m), _ = (B = r.value[1]) == null ? void 0 : B.endOf(m), b = h && (a.diff(h, f) > x || a.isAfter(g));
170
+ return _ && (_.diff(a, f) > x || a.isBefore(v)) || b;
171
+ }, i = (a) => {
172
+ a ? (r.value = [], l.value = []) : l.value = void 0;
173
+ }, p = (a) => {
174
+ s("update:value", a), s("change", a);
175
+ }, c = (a) => {
176
+ r.value = a;
171
177
  };
172
- return (l, a) => {
173
- const d = Re;
174
- return w(), j(d, O({
175
- value: k(r) || e.value,
176
- "disabled-date": u,
177
- onChange: c,
178
- onOpenChange: o,
179
- onCalendarChange: p
180
- }, l.$attrs), ie({ _: 2 }, [
181
- K(Object.keys(l.$slots), (h) => ({
182
- name: h,
178
+ return (a, d) => {
179
+ const y = Oe;
180
+ return $(), j(y, U({
181
+ value: k(l) || e.value,
182
+ "disabled-date": o,
183
+ onChange: p,
184
+ onOpenChange: i,
185
+ onCalendarChange: c
186
+ }, a.$attrs), ie({ _: 2 }, [
187
+ K(Object.keys(a.$slots), (g) => ({
188
+ name: g,
183
189
  fn: M((v) => [
184
- V(l.$slots, h, ue(Ee(v)))
190
+ V(a.$slots, g, ue(Me(v)))
185
191
  ])
186
192
  }))
187
193
  ]), 1040, ["value"]);
@@ -200,33 +206,33 @@ const gt = re({ name: "ant-design-minus", render: vt }), yt = /* @__PURE__ */ F(
200
206
  },
201
207
  setup(e) {
202
208
  const n = e, t = S([]), s = S();
203
- function i() {
209
+ function u() {
204
210
  const r = s.value;
205
- r && t.value.every((u) => u.value !== r) && (t.value.push({ value: r }), s.value = "");
211
+ r && t.value.every((l) => l.value !== r) && (t.value.push({ value: r }), s.value = "");
206
212
  }
207
213
  return J(
208
214
  () => n.options,
209
- (r, u) => {
215
+ (r, l) => {
210
216
  var o;
211
- 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 }))) || []);
217
+ r && l && r.length === l.length && r.every((i) => l.includes(i)) || (t.value = ((o = n.options) == null ? void 0 : o.map((i) => ({ value: i }))) || []);
212
218
  },
213
219
  { immediate: !0 }
214
- ), (r, u) => {
215
- const o = Ie, c = ke, p = Pe, l = we, a = Oe, d = je;
216
- return w(), j(d, O({ options: k(t) }, r.$attrs), {
217
- dropdownRender: M(({ menuNode: h }) => [
218
- (w(), j(Ve(h))),
220
+ ), (r, l) => {
221
+ const o = Ie, i = ke, p = Ae, c = we, a = Ue, d = je;
222
+ return $(), j(d, U({ options: k(t) }, r.$attrs), {
223
+ dropdownRender: M(({ menuNode: y }) => [
224
+ ($(), j(Ve(y))),
219
225
  E(o, { style: { margin: "4px 0" } }),
220
226
  E(a, null, {
221
227
  default: M(() => [
222
- E(c, {
228
+ E(i, {
223
229
  value: k(s),
224
- "onUpdate:value": u[0] || (u[0] = (v) => Z(s) ? s.value = v : null),
230
+ "onUpdate:value": l[0] || (l[0] = (g) => Z(s) ? s.value = g : null),
225
231
  placeholder: e.inputPlaceholder
226
232
  }, null, 8, ["value", "placeholder"]),
227
- E(l, {
233
+ E(c, {
228
234
  type: "text",
229
- onClick: ae(i, ["prevent"])
235
+ onClick: ae(u, ["prevent"])
230
236
  }, {
231
237
  default: M(() => [
232
238
  E(p)
@@ -246,7 +252,7 @@ function ce(e) {
246
252
  e || (e = ee());
247
253
  const n = (e == null ? void 0 : e.provides) || {}, t = bt(n, "configProvider"), s = n[t];
248
254
  return Object.fromEntries(
249
- Object.entries(s).map(([r, u]) => [r, k(u)])
255
+ Object.entries(s).map(([r, l]) => [r, k(l)])
250
256
  );
251
257
  }
252
258
  function bt(e, n) {
@@ -270,9 +276,9 @@ function dn(e) {
270
276
  }
271
277
  return null;
272
278
  }
273
- let U, ge, R, ye;
274
- T.destroy = function() {
275
- const e = T.instanceArr || [], n = e.pop();
279
+ let W, ge, O, he;
280
+ D.destroy = function() {
281
+ const e = D.instanceArr || [], n = e.pop();
276
282
  if (n && G(null, n.container), e.length > 0) {
277
283
  const t = e[e.length - 1].instance;
278
284
  Object.assign(t.component.props, {
@@ -280,19 +286,19 @@ T.destroy = function() {
280
286
  }), t.component.update();
281
287
  }
282
288
  };
283
- T.destroyAll = function() {
284
- (T.instanceArr || []).forEach((n) => {
289
+ D.destroyAll = function() {
290
+ (D.instanceArr || []).forEach((n) => {
285
291
  G(null, n.container);
286
- }), T.instanceArr = [];
292
+ }), D.instanceArr = [];
287
293
  };
288
294
  function pn() {
289
- var l, a;
295
+ var c, a;
290
296
  const e = ee();
291
- if (!R) {
297
+ if (!O) {
292
298
  const d = at.useApp();
293
- R = d.modal, ge = d.message, ye = d.notification;
299
+ O = d.modal, ge = d.message, he = d.notification;
294
300
  }
295
- R.info || (R = st);
301
+ O.info || (O = st);
296
302
  const n = {
297
303
  zh: "关闭",
298
304
  en: "Close",
@@ -301,31 +307,31 @@ function pn() {
301
307
  zh: "请输入",
302
308
  en: "Please Enter",
303
309
  fr: "Veuillez entrer"
304
- }, s = ce(), i = ((a = (l = s == null ? void 0 : s.locale) == null ? void 0 : l.locale) == null ? void 0 : a.slice(0, 2)) || "en";
305
- function r({ title: d, ...h }) {
306
- const v = S();
307
- return u({
310
+ }, s = ce(), u = ((a = (c = s == null ? void 0 : s.locale) == null ? void 0 : c.locale) == null ? void 0 : a.slice(0, 2)) || "en";
311
+ function r({ title: d, ...y }) {
312
+ const g = S();
313
+ return l({
308
314
  title: d,
309
- ...h,
315
+ ...y,
310
316
  comp: it,
311
317
  props: {
312
- placeholder: t[i],
318
+ placeholder: t[u],
313
319
  autoSize: { minRows: 6 },
314
- value: v,
315
- "onUpdate:value": (g) => {
316
- v.value = g;
320
+ value: g,
321
+ "onUpdate:value": (v) => {
322
+ g.value = v;
317
323
  },
318
- ...h.props
324
+ ...y.props
319
325
  },
320
326
  class: "modal-comp modal-comp-input",
321
327
  type: "confirm",
322
- onOk: () => new Promise((g, x) => {
323
- h.onOk && (h.onOk(v.value) ? g(1) : x()), g(1);
328
+ onOk: () => new Promise((v, x) => {
329
+ y.onOk && (y.onOk(g.value) ? v(1) : x()), v(1);
324
330
  })
325
331
  });
326
332
  }
327
- function u({ title: d, comp: h, props: v, ...g }) {
328
- const x = z(h, v), f = (g == null ? void 0 : g.type) ?? "info", m = {
333
+ function l({ title: d, comp: y, props: g, ...v }) {
334
+ const x = z(y, g), f = (v == null ? void 0 : v.type) ?? "info", m = {
329
335
  title: d,
330
336
  content: x,
331
337
  width: "auto",
@@ -334,65 +340,65 @@ function pn() {
334
340
  maskClosable: !0,
335
341
  centered: !0,
336
342
  class: "modal-comp",
337
- ...g
343
+ ...v
338
344
  };
339
345
  switch (f) {
340
346
  case "info":
341
- U = R.info(m);
347
+ W = O.info(m);
342
348
  break;
343
349
  case "warning":
344
- U = R.warning(m);
350
+ W = O.warning(m);
345
351
  break;
346
352
  case "success":
347
- U = R.success(m);
353
+ W = O.success(m);
348
354
  break;
349
355
  case "confirm":
350
- U = R.confirm(m);
356
+ W = O.confirm(m);
351
357
  break;
352
358
  }
353
- return U;
359
+ return W;
354
360
  }
355
361
  function o() {
356
- U == null || U.destroy();
362
+ W == null || W.destroy();
357
363
  }
358
- function c({ title: d, comp: h, props: v, ...g }) {
359
- const x = g.getContainer || document.createDocumentFragment();
360
- T.instanceArr || (T.instanceArr = []);
361
- const f = T.instanceArr, m = f[f.length - 1];
362
- let y;
363
- if ((m == null ? void 0 : m.comp) === h) {
364
+ function i({ title: d, comp: y, props: g, ...v }) {
365
+ const x = v.getContainer || document.createDocumentFragment();
366
+ D.instanceArr || (D.instanceArr = []);
367
+ const f = D.instanceArr, m = f[f.length - 1];
368
+ let h;
369
+ if ((m == null ? void 0 : m.comp) === y) {
364
370
  const _ = m.instance;
365
- Object.assign(_.component.props, { title: d, ...g }), _.component.update(), y = m.compInstance, Object.assign(y.component.props, { ...v }), y.component.update();
371
+ Object.assign(_.component.props, { title: d, ...v }), _.component.update(), h = m.compInstance, Object.assign(h.component.props, { ...g }), h.component.update();
366
372
  } else {
367
373
  if (m) {
368
- const W = m.instance;
369
- Object.assign(W.component.props, {
374
+ const B = m.instance;
375
+ Object.assign(B.component.props, {
370
376
  contentWrapperStyle: { transform: "translateX(-180px)" }
371
- }), W.component.update();
377
+ }), B.component.update();
372
378
  }
373
- y = z(h, v);
379
+ h = z(y, g);
374
380
  const _ = {
375
381
  default: () => z(
376
382
  ct,
377
383
  { style: { height: "100%" }, wrapStyle: { overflowX: "hidden" } },
378
- y
384
+ h
379
385
  )
380
386
  };
381
- g.footer === void 0 && Object.assign(_, {
387
+ v.footer === void 0 && Object.assign(_, {
382
388
  footer: () => z(
383
- lt,
389
+ rt,
384
390
  {
385
391
  onClick: () => {
386
- T.destroy();
392
+ D.destroy();
387
393
  }
388
394
  },
389
- n[i]
395
+ n[u]
390
396
  )
391
397
  });
392
- const b = g.width || 992;
393
- delete g.width;
398
+ const b = v.width || 992;
399
+ delete v.width;
394
400
  const C = z(
395
- T,
401
+ D,
396
402
  {
397
403
  title: d,
398
404
  width: b,
@@ -402,35 +408,35 @@ function pn() {
402
408
  textAlign: "right"
403
409
  },
404
410
  onClose: () => {
405
- g != null && g.afterClose && g.afterClose(), T.destroy();
411
+ v != null && v.afterClose && v.afterClose(), D.destroy();
406
412
  },
407
- ...g
413
+ ...v
408
414
  },
409
415
  _
410
- ), $ = s.getPrefixCls(), L = z(
411
- rt,
412
- { ...s, prefixCls: $ },
416
+ ), w = s.getPrefixCls(), P = z(
417
+ lt,
418
+ { ...s, prefixCls: w },
413
419
  { default: () => C }
414
420
  );
415
- L.appContext = e.appContext, G(L, x), f.push({ instance: C, comp: h, compInstance: y, container: x });
421
+ P.appContext = e.appContext, G(P, x), f.push({ instance: C, comp: y, compInstance: h, container: x });
416
422
  }
417
423
  return {
418
424
  updateProps: (_) => {
419
- Object.assign(y.component.props, { ..._ }), y.component.update();
425
+ Object.assign(h.component.props, { ..._ }), h.component.update();
420
426
  }
421
427
  };
422
428
  }
423
429
  function p() {
424
- T.destroy();
430
+ D.destroy();
425
431
  }
426
432
  return {
427
433
  message: ge,
428
- modal: R,
429
- notification: ye,
434
+ modal: O,
435
+ notification: he,
430
436
  modalInput: r,
431
- modalComp: u,
437
+ modalComp: l,
432
438
  modalDestroy: o,
433
- drawerComp: c,
439
+ drawerComp: i,
434
440
  drawerDestroy: p
435
441
  };
436
442
  }
@@ -452,71 +458,71 @@ const xt = /* @__PURE__ */ F({
452
458
  }
453
459
  },
454
460
  setup(e, { expose: n }) {
455
- const t = e, s = $e(), i = S([]), r = S(!1), u = S(0), o = S(1), c = S(10), p = S(), l = S(), a = {
461
+ const t = e, s = $e(), u = S([]), r = S(!1), l = S(0), o = S(1), i = S(10), p = S(), c = S(), a = {
456
462
  zh: "共 {num} 条",
457
463
  en: "Total {num} items",
458
464
  fr: "Total de {num}"
459
- }, d = ce(), h = D(() => {
465
+ }, d = ce(), y = L(() => {
460
466
  var b, C;
461
467
  return ((C = (b = d == null ? void 0 : d.locale) == null ? void 0 : b.locale) == null ? void 0 : C.slice(0, 2)) || "en";
462
- }), v = D(() => ({
463
- total: u.value,
468
+ }), g = L(() => ({
469
+ total: l.value,
464
470
  current: o.value,
465
- pageSize: c.value,
471
+ pageSize: i.value,
466
472
  showSizeChanger: !0,
467
473
  size: "small",
468
- showTotal: (_) => a[h.value].replace("{num}", _)
474
+ showTotal: (_) => a[y.value].replace("{num}", _)
469
475
  }));
470
- function g() {
476
+ function v() {
471
477
  var _;
472
478
  if (typeof t.loadData == "function") {
473
479
  r.value = !0;
474
480
  let b;
475
- t.newFieldName ? b = { current: o.value, size: c.value } : b = { pageNo: o.value, pageSize: c.value }, t.formatSortParams && ((_ = l.value) != null && _.orderMap) && (b[l.value.field + "SortField"] = l.value.orderMap), t.loadData(b, p.value, l.value).then((C) => {
481
+ t.newFieldName ? b = { current: o.value, size: i.value } : b = { pageNo: o.value, pageSize: i.value }, t.formatSortParams && ((_ = c.value) != null && _.orderMap) && (b[c.value.field + "SortField"] = c.value.orderMap), t.loadData(b, p.value, c.value).then((C) => {
476
482
  if (r.value = !1, (C == null ? void 0 : C.code) === 0) {
477
- const $ = C.result || {};
478
- t.newFieldName ? (u.value = $.total, i.value = $.records) : (u.value = $.totalCount, i.value = $.data);
483
+ const w = C.result || {};
484
+ t.newFieldName ? (l.value = w.total, u.value = w.records) : (l.value = w.totalCount, u.value = w.data);
479
485
  }
480
486
  });
481
487
  }
482
488
  }
483
489
  function x(_, b, C) {
484
- if (o.value = _.current, c.value = _.pageSize, p.value = b, C) {
485
- const $ = {
490
+ if (o.value = _.current, i.value = _.pageSize, p.value = b, C) {
491
+ const w = {
486
492
  ascend: "asc",
487
493
  descend: "desc"
488
494
  };
489
- C.orderMap = $[C.order] || "";
495
+ C.orderMap = w[C.order] || "";
490
496
  }
491
- l.value = C, g();
497
+ c.value = C, v();
492
498
  }
493
499
  function f(_, b) {
494
500
  b.width = _;
495
501
  }
496
502
  function m() {
497
- o.value = 1, g();
503
+ o.value = 1, v();
498
504
  }
499
- function y() {
500
- o.value = 1, u.value = 0, i.value = [];
505
+ function h() {
506
+ o.value = 1, l.value = 0, u.value = [];
501
507
  }
502
508
  return n({
503
- loadData: g,
509
+ loadData: v,
504
510
  refresh: m,
505
- reset: y
511
+ reset: h
506
512
  }), (_, b) => {
507
513
  const C = Fe;
508
- return w(), j(C, O({
514
+ return $(), j(C, U({
509
515
  class: "table-ex",
510
516
  loading: k(r),
511
- pagination: k(v),
512
- dataSource: k(i),
517
+ pagination: k(g),
518
+ dataSource: k(u),
513
519
  onChange: x,
514
520
  onResizeColumn: f
515
521
  }, _.$attrs), ie({ _: 2 }, [
516
- K(Object.keys(k(s)), ($) => ({
517
- name: $,
518
- fn: M((L) => [
519
- $ !== "emptyText" ? V(_.$slots, $, ue(O({ key: 0 }, L))) : V(_.$slots, $, { key: 1 })
522
+ K(Object.keys(k(s)), (w) => ({
523
+ name: w,
524
+ fn: M((P) => [
525
+ w !== "emptyText" ? V(_.$slots, w, ue(U({ key: 0 }, P))) : V(_.$slots, w, { key: 1 })
520
526
  ])
521
527
  }))
522
528
  ]), 1040, ["loading", "pagination", "dataSource"]);
@@ -539,37 +545,37 @@ const xt = /* @__PURE__ */ F({
539
545
  }
540
546
  },
541
547
  setup(e) {
542
- const n = e, t = S(), s = S(), i = S({}), r = S({}), u = S(0.2);
548
+ const n = e, t = S(), s = S(), u = S({}), r = S({}), l = S(0.2);
543
549
  function o(p) {
544
- i.value = { width: `calc(${p * 100}% - 5px)` }, r.value = { width: `calc(${(1 - p) * 100}% - 5px)` };
550
+ u.value = { width: `calc(${p * 100}% - 5px)` }, r.value = { width: `calc(${(1 - p) * 100}% - 5px)` };
545
551
  }
546
- function c() {
552
+ function i() {
547
553
  const p = t.value;
548
554
  if (!p)
549
555
  return;
550
- const l = p.clientWidth, a = p.getBoundingClientRect(), d = a.left;
551
- function h(g) {
552
- g.preventDefault(), (g.clientX < a.left || g.clientX > a.right || g.clientY < a.top || g.clientY > a.bottom) && v();
553
- const f = (g.clientX - d) / l;
554
- f > n.leftMin && f < n.leftMax && (u.value = f, o(f));
556
+ const c = p.clientWidth, a = p.getBoundingClientRect(), d = a.left;
557
+ function y(v) {
558
+ v.preventDefault(), (v.clientX < a.left || v.clientX > a.right || v.clientY < a.top || v.clientY > a.bottom) && g();
559
+ const f = (v.clientX - d) / c;
560
+ f > n.leftMin && f < n.leftMax && (l.value = f, o(f));
555
561
  }
556
- function v() {
557
- document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", v);
562
+ function g() {
563
+ document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", g);
558
564
  }
559
- document.addEventListener("mousemove", h), document.addEventListener("mouseup", v);
565
+ document.addEventListener("mousemove", y), document.addEventListener("mouseup", g);
560
566
  }
561
- return Me(() => {
562
- o(u.value), s.value && s.value.addEventListener("mousedown", c, !1);
567
+ return Ne(() => {
568
+ o(l.value), s.value && s.value.addEventListener("mousedown", i, !1);
563
569
  }), Xe(() => {
564
- s.value && s.value.removeEventListener("mousedown", c);
565
- }), (p, l) => (w(), A("div", {
570
+ s.value && s.value.removeEventListener("mousedown", i);
571
+ }), (p, c) => ($(), T("div", {
566
572
  ref_key: "container",
567
573
  ref: t,
568
574
  class: He(["wl-splitter", { bordered: e.bordered }])
569
575
  }, [
570
576
  N("div", {
571
577
  class: "my-left",
572
- style: pe(k(i))
578
+ style: pe(k(u))
573
579
  }, [
574
580
  V(p.$slots, "left")
575
581
  ], 4),
@@ -596,7 +602,7 @@ const xt = /* @__PURE__ */ F({
596
602
  xmlns: "http://www.w3.org/2000/svg"
597
603
  };
598
604
  function kt(e, n) {
599
- return w(), A("svg", St, n[0] || (n[0] = [
605
+ return $(), T("svg", St, n[0] || (n[0] = [
600
606
  N("path", {
601
607
  d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
602
608
  stroke: "#272E3B",
@@ -617,7 +623,7 @@ function kt(e, n) {
617
623
  }, null, -1)
618
624
  ]));
619
625
  }
620
- const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" }, Et = { class: "btn-box" }, Mt = /* @__PURE__ */ F({
626
+ const wt = le({ name: "local-clear", render: kt }), $t = { class: "nums-box" }, Et = { class: "btn-box" }, Mt = /* @__PURE__ */ F({
621
627
  inheritAttrs: !1,
622
628
  __name: "index",
623
629
  props: /* @__PURE__ */ I({
@@ -643,23 +649,23 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
643
649
  }),
644
650
  emits: /* @__PURE__ */ I(["enter"], ["update:value"]),
645
651
  setup(e, { emit: n }) {
646
- const t = e, s = n, i = S(), r = S(), u = S(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), o = Q(e, "value"), c = S(!1);
652
+ const t = e, s = n, u = S(), r = S(), l = S(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), o = Q(e, "value"), i = S(!1);
647
653
  function p() {
648
- c.value = !0;
654
+ i.value = !0;
649
655
  }
650
- function l() {
656
+ function c() {
651
657
  x();
652
658
  }
653
659
  function a(f) {
654
660
  r.value.focus(), o.value = Number(f).toFixed(t.precision);
655
661
  }
656
662
  function d(f) {
657
- if (r.value.focus(), B(o.value) || o.value === "") {
663
+ if (r.value.focus(), R(o.value) || o.value === "") {
658
664
  if (["00", "."].includes(f))
659
665
  return;
660
666
  o.value = f;
661
667
  } else {
662
- const m = String(o.value), y = i.value.getElementsByTagName("input")[0], _ = y.selectionStart || 0, b = y.selectionEnd || 0;
668
+ const m = String(o.value), h = u.value.getElementsByTagName("input")[0], _ = h.selectionStart || 0, b = h.selectionEnd || 0;
663
669
  o.value = `${m.slice(0, _)}${f}${m.slice(b)}`;
664
670
  const C = _ + f.length;
665
671
  fe(() => {
@@ -667,42 +673,42 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
667
673
  });
668
674
  }
669
675
  }
670
- function h() {
671
- if (r.value.focus(), B(o.value))
676
+ function y() {
677
+ if (r.value.focus(), R(o.value))
672
678
  return;
673
679
  const f = String(o.value);
674
680
  if (f != null && f.length) {
675
- const m = i.value.getElementsByTagName("input")[0], y = m.selectionStart || 0, _ = m.selectionEnd || 0, b = y > 0 ? y - 1 : 0;
676
- y === _ ? o.value = f.slice(0, b) + f.slice(_) : o.value = f.slice(0, y) + f.slice(_), fe(() => {
681
+ const m = u.value.getElementsByTagName("input")[0], h = m.selectionStart || 0, _ = m.selectionEnd || 0, b = h > 0 ? h - 1 : 0;
682
+ h === _ ? o.value = f.slice(0, b) + f.slice(_) : o.value = f.slice(0, h) + f.slice(_), fe(() => {
677
683
  r.value.setSelectionRange(b, b);
678
684
  });
679
685
  }
680
686
  }
681
- function v() {
687
+ function g() {
682
688
  r.value.focus(), o.value = "";
683
689
  }
684
- function g() {
690
+ function v() {
685
691
  r.value.blur();
686
692
  }
687
693
  function x() {
688
694
  const f = t.min, m = t.max;
689
- let y = parseFloat(o.value || "0");
690
- B(f) || (y = y > f ? y : f), B(m) || (y = y > m ? m : y), o.value = Number(y).toFixed(t.precision), c.value = !1, s("enter");
695
+ let h = parseFloat(o.value || "0");
696
+ R(f) || (h = h > f ? h : f), R(m) || (h = h > m ? m : h), o.value = Number(h).toFixed(t.precision), i.value = !1, s("enter");
691
697
  }
692
698
  return (f, m) => {
693
- const y = we, _ = ze, b = wt, C = We, $ = ke, L = Ue, W = Ye("longpress");
694
- return w(), A("div", {
699
+ const h = we, _ = qe, b = wt, C = ze, w = ke, P = We, B = Ye("longpress");
700
+ return $(), T("div", {
695
701
  class: "number-keyboard",
696
702
  ref_key: "numberKeyboard",
697
- ref: i
703
+ ref: u
698
704
  }, [
699
- E(L, {
705
+ E(P, {
700
706
  overlayClassName: "popover-keyboard",
701
707
  trigger: "manual",
702
708
  placement: "bottomLeft",
703
709
  align: { offset: [0, -9] },
704
- open: k(c),
705
- "onUpdate:open": m[2] || (m[2] = (P) => Z(c) ? c.value = P : null)
710
+ open: k(i),
711
+ "onUpdate:open": m[2] || (m[2] = (A) => Z(i) ? i.value = A : null)
706
712
  }, {
707
713
  content: M(() => [
708
714
  N("div", {
@@ -715,23 +721,23 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
715
721
  E(_, { span: 18 }, {
716
722
  default: M(() => [
717
723
  N("div", $t, [
718
- (w(!0), A(H, null, K(e.quickNums, (P) => (w(), j(y, {
724
+ ($(!0), T(H, null, K(e.quickNums, (A) => ($(), j(h, {
719
725
  class: "btn-num",
720
- key: P,
721
- onClick: (Be) => a(P)
726
+ key: A,
727
+ onClick: (Re) => a(A)
722
728
  }, {
723
729
  default: M(() => [
724
- te(se(P), 1)
730
+ te(se(A), 1)
725
731
  ]),
726
732
  _: 2
727
733
  }, 1032, ["onClick"]))), 128)),
728
- (w(!0), A(H, null, K(k(u), (P) => (w(), j(y, {
734
+ ($(!0), T(H, null, K(k(l), (A) => ($(), j(h, {
729
735
  class: "btn-num",
730
- key: P,
731
- onClick: (Be) => d(P)
736
+ key: A,
737
+ onClick: (Re) => d(A)
732
738
  }, {
733
739
  default: M(() => [
734
- te(se(P), 1)
740
+ te(se(A), 1)
735
741
  ]),
736
742
  _: 2
737
743
  }, 1032, ["onClick"]))), 128))
@@ -742,21 +748,21 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
742
748
  E(_, { span: 6 }, {
743
749
  default: M(() => [
744
750
  N("div", Et, [
745
- Ge((w(), j(y, {
751
+ Ge(($(), j(h, {
746
752
  class: "btn-clear",
747
- onClick: h
753
+ onClick: y
748
754
  }, {
749
755
  default: M(() => [
750
756
  E(b, { style: { width: "24px", height: "24px" } })
751
757
  ]),
752
758
  _: 1
753
759
  })), [
754
- [W, v]
760
+ [B, g]
755
761
  ]),
756
- E(y, {
762
+ E(h, {
757
763
  class: "btn-enter",
758
764
  type: "primary",
759
- onClick: ae(g, ["stop"])
765
+ onClick: ae(v, ["stop"])
760
766
  }, {
761
767
  default: M(() => m[3] || (m[3] = [
762
768
  te("Enter ")
@@ -773,15 +779,15 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
773
779
  ], 32)
774
780
  ]),
775
781
  default: M(() => [
776
- E($, O({
782
+ E(w, U({
777
783
  ref_key: "inputRef",
778
784
  ref: r,
779
785
  value: o.value,
780
- "onUpdate:value": m[1] || (m[1] = (P) => o.value = P)
786
+ "onUpdate:value": m[1] || (m[1] = (A) => o.value = A)
781
787
  }, f.$attrs, {
782
788
  onFocus: p,
783
- onBlur: l,
784
- onKeyup: Ze(g, ["enter"])
789
+ onBlur: c,
790
+ onKeyup: Ze(v, ["enter"])
785
791
  }), null, 16, ["value"])
786
792
  ]),
787
793
  _: 1
@@ -818,32 +824,32 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
818
824
  }),
819
825
  emits: /* @__PURE__ */ I(["change"], ["update:value"]),
820
826
  setup(e, { emit: n }) {
821
- Qe((l) => ({
822
- "6ffd511e": k(u),
827
+ Qe((c) => ({
828
+ "6ffd511e": k(l),
823
829
  "1201d0a5": k(o),
824
- "1201d466": k(c)
830
+ "1201d466": k(i)
825
831
  }));
826
- const t = e, s = Q(e, "value"), i = n, r = D(() => {
827
- const l = {}, a = Array.from(t.flagStops), d = t.min || 0, h = t.max || 100, v = [d, ...s.value, h];
828
- for (let g = 0; g < v.length; g++) {
829
- const x = v[g];
830
- if (l[x] = x, g > 0) {
831
- const f = a.shift(), m = v[g - 1], y = m + (x - m) / 2;
832
- l[y] = { style: { top: "-28px" }, label: f };
832
+ const t = e, s = Q(e, "value"), u = n, r = L(() => {
833
+ const c = {}, a = Array.from(t.flagStops), d = t.min || 0, y = t.max || 100, g = [d, ...s.value, y];
834
+ for (let v = 0; v < g.length; v++) {
835
+ const x = g[v];
836
+ if (c[x] = x, v > 0) {
837
+ const f = a.shift(), m = g[v - 1], h = m + (x - m) / 2;
838
+ c[h] = { style: { top: "-28px" }, label: f };
833
839
  }
834
840
  }
835
- return l;
836
- }), u = D(() => {
837
- const l = s.value, a = t.min || 0, d = t.max || 100, h = Math.floor((l[0] - a) / (d - a) * 100), v = t.colorStops, g = v[0], x = v[v.length - 1];
838
- return `linear-gradient(90deg, ${g} 0%, ${g} ${h}%, ${x} ${h}%, ${x} 100%)`;
839
- }), o = D(() => t.colorStops[1]), c = D(() => t.colorStops[2]);
840
- function p(l) {
841
+ return c;
842
+ }), l = L(() => {
843
+ const c = s.value, a = t.min || 0, d = t.max || 100, y = Math.floor((c[0] - a) / (d - a) * 100), g = t.colorStops, v = g[0], x = g[g.length - 1];
844
+ return `linear-gradient(90deg, ${v} 0%, ${v} ${y}%, ${x} ${y}%, ${x} 100%)`;
845
+ }), o = L(() => t.colorStops[1]), i = L(() => t.colorStops[2]);
846
+ function p(c) {
841
847
  const a = t.min || 0, d = t.max || 100;
842
- l[0] <= a ? l[0] = a + 1 : l.at(-1) >= d && (l[l.length - 1] = d - 1), l.length === new Set(l).size && (s.value = l, i("change", l));
848
+ c[0] <= a ? c[0] = a + 1 : c.at(-1) >= d && (c[c.length - 1] = d - 1), c.length === new Set(c).size && (s.value = c, u("change", c));
843
849
  }
844
- return (l, a) => {
845
- const d = qe;
846
- return w(), j(d, O({
850
+ return (c, a) => {
851
+ const d = Ke;
852
+ return $(), j(d, U({
847
853
  class: "rate-slider",
848
854
  value: s.value,
849
855
  min: e.min,
@@ -851,7 +857,7 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
851
857
  range: "",
852
858
  marks: k(r),
853
859
  onChange: p
854
- }, l.$attrs), null, 16, ["value", "min", "max", "marks"]);
860
+ }, c.$attrs), null, 16, ["value", "min", "max", "marks"]);
855
861
  };
856
862
  }
857
863
  }), Pt = { class: "ip-input" }, At = { class: "ip-wrapper" }, Tt = {
@@ -870,20 +876,20 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
870
876
  }),
871
877
  emits: ["update:value"],
872
878
  setup(e) {
873
- const n = Ne.useInjectFormItemContext(), t = e, s = Q(e, "value"), i = S(["", "", "", ""]), r = S(), u = S(""), o = S(), c = (a) => {
874
- var h, v;
875
- const d = i.value[a];
879
+ const n = Pe.useInjectFormItemContext(), t = e, s = Q(e, "value"), u = S(["", "", "", ""]), r = S(), l = S(""), o = S(), i = (a) => {
880
+ var y, g;
881
+ const d = u.value[a];
876
882
  if (d && (!/^\d+$/.test(d) || parseInt(d) > 255)) {
877
- i.value[a] = "";
883
+ u.value[a] = "";
878
884
  return;
879
885
  }
880
- parseInt(d) >= 100 && (a < 3 ? (h = r.value) != null && h.length && r.value[a + 1].focus() : t.hasPort && ((v = o.value) == null || v.focus())), s.value = `${i.value.join(".")}${t.hasPort ? ":" + u.value : ""}`, n.clearValidate();
886
+ parseInt(d) >= 100 && (a < 3 ? (y = r.value) != null && y.length && r.value[a + 1].focus() : t.hasPort && ((g = o.value) == null || g.focus())), s.value = `${u.value.join(".")}${t.hasPort ? ":" + l.value : ""}`, n.clearValidate();
881
887
  }, p = (a, d) => {
882
- var h, v;
883
- d.key === " " && a < 3 && (d.preventDefault(), (h = r.value) != null && h.length && r.value[a + 1].focus()), d.key === "Backspace" && i.value[a] === "" && a > 0 && (v = r.value) != null && v.length && r.value[a - 1].focus();
888
+ var y, g;
889
+ d.key === " " && a < 3 && (d.preventDefault(), (y = r.value) != null && y.length && r.value[a + 1].focus()), d.key === "Backspace" && u.value[a] === "" && a > 0 && (g = r.value) != null && g.length && r.value[a - 1].focus();
884
890
  };
885
- function l() {
886
- s.value = `${i.value.join(".")}${t.hasPort ? ":" + (u.value || "") : ""}`, n.clearValidate();
891
+ function c() {
892
+ s.value = `${u.value.join(".")}${t.hasPort ? ":" + (l.value || "") : ""}`, n.clearValidate();
887
893
  }
888
894
  return J(
889
895
  () => s.value,
@@ -891,50 +897,50 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
891
897
  if (a) {
892
898
  let d = a;
893
899
  if (t.hasPort) {
894
- const v = a.split(":");
895
- u.value = v[1] || "", d = v[0];
900
+ const g = a.split(":");
901
+ l.value = g[1] || "", d = g[0];
896
902
  }
897
- const h = d.split(".");
898
- h.length === 4 && (i.value = h);
903
+ const y = d.split(".");
904
+ y.length === 4 && (u.value = y);
899
905
  } else
900
- i.value = ["", "", "", ""], u.value = "";
906
+ u.value = ["", "", "", ""], l.value = "";
901
907
  },
902
908
  { immediate: !0 }
903
909
  ), (a, d) => {
904
- const h = le;
905
- return w(), A("div", Pt, [
910
+ const y = re;
911
+ return $(), T("div", Pt, [
906
912
  N("div", At, [
907
- (w(!0), A(H, null, K(k(i), (v, g) => (w(), A(H, { key: g }, [
908
- E(h, {
913
+ ($(!0), T(H, null, K(k(u), (g, v) => ($(), T(H, { key: v }, [
914
+ E(y, {
909
915
  ref_for: !0,
910
916
  ref_key: "ipPartArr",
911
917
  ref: r,
912
918
  class: "ip-part",
913
- value: k(i)[g],
914
- "onUpdate:value": (x) => k(i)[g] = x,
919
+ value: k(u)[v],
920
+ "onUpdate:value": (x) => k(u)[v] = x,
915
921
  min: 0,
916
922
  max: 255,
917
923
  precision: 0,
918
924
  controls: !1,
919
- onChange: (x) => c(g),
920
- onKeydown: (x) => p(g, x)
925
+ onChange: (x) => i(v),
926
+ onKeydown: (x) => p(v, x)
921
927
  }, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
922
- g < 3 ? (w(), A("span", Tt, ".")) : me("", !0)
928
+ v < 3 ? ($(), T("span", Tt, ".")) : me("", !0)
923
929
  ], 64))), 128))
924
930
  ]),
925
- e.hasPort ? (w(), A(H, { key: 0 }, [
931
+ e.hasPort ? ($(), T(H, { key: 0 }, [
926
932
  d[1] || (d[1] = N("span", { class: "ip-port-separator" }, ":", -1)),
927
- E(h, {
933
+ E(y, {
928
934
  ref_key: "portRef",
929
935
  ref: o,
930
936
  class: "ip-port",
931
- value: k(u),
932
- "onUpdate:value": d[0] || (d[0] = (v) => Z(u) ? u.value = v : null),
937
+ value: k(l),
938
+ "onUpdate:value": d[0] || (d[0] = (g) => Z(l) ? l.value = g : null),
933
939
  min: 0,
934
940
  max: 65535,
935
941
  precision: 0,
936
942
  controls: !1,
937
- onChange: l
943
+ onChange: c
938
944
  }, null, 8, ["value"])
939
945
  ], 64)) : me("", !0)
940
946
  ]);
@@ -967,48 +973,48 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
967
973
  }),
968
974
  emits: /* @__PURE__ */ I(["change"], ["update:value"]),
969
975
  setup(e, { emit: n }) {
970
- const t = e, s = Q(e, "value"), i = n, r = Ne.useInjectFormItemContext(), u = D(() => {
976
+ const t = e, s = Q(e, "value"), u = n, r = Pe.useInjectFormItemContext(), l = L(() => {
971
977
  const a = s.value[1];
972
- return B(a) ? t.max : a;
973
- }), o = D(() => {
978
+ return R(a) ? t.max : a;
979
+ }), o = L(() => {
974
980
  const a = s.value[0];
975
- return B(a) ? t.min : a;
976
- }), c = S(), p = S();
977
- function l() {
978
- const a = [c.value, p.value];
979
- s.value = a, r.onFieldChange(), i("change", a);
981
+ return R(a) ? t.min : a;
982
+ }), i = S(), p = S();
983
+ function c() {
984
+ const a = [i.value, p.value];
985
+ s.value = a, r.onFieldChange(), u("change", a);
980
986
  }
981
987
  return J(
982
988
  () => s.value,
983
989
  (a) => {
984
- a != null && a.length ? (c.value = a[0], p.value = a[1]) : (c.value = void 0, p.value = void 0);
990
+ a != null && a.length ? (i.value = a[0], p.value = a[1]) : (i.value = void 0, p.value = void 0);
985
991
  },
986
992
  { immediate: !0 }
987
993
  ), (a, d) => {
988
- const h = le;
989
- return w(), A("div", Lt, [
990
- E(h, O({
994
+ const y = re;
995
+ return $(), T("div", Lt, [
996
+ E(y, U({
991
997
  min: t.min,
992
- max: k(u),
993
- value: k(c),
994
- "onUpdate:value": d[0] || (d[0] = (v) => Z(c) ? c.value = v : null),
998
+ max: k(l),
999
+ value: k(i),
1000
+ "onUpdate:value": d[0] || (d[0] = (g) => Z(i) ? i.value = g : null),
995
1001
  placeholder: e.placeholder[0] || ""
996
- }, a.$attrs, { onChange: l }), null, 16, ["min", "max", "value", "placeholder"]),
1002
+ }, a.$attrs, { onChange: c }), null, 16, ["min", "max", "value", "placeholder"]),
997
1003
  N("span", Bt, se(e.separator), 1),
998
- E(h, O({
1004
+ E(y, U({
999
1005
  min: k(o),
1000
1006
  max: t.max,
1001
1007
  value: k(p),
1002
- "onUpdate:value": d[1] || (d[1] = (v) => Z(p) ? p.value = v : null),
1008
+ "onUpdate:value": d[1] || (d[1] = (g) => Z(p) ? p.value = g : null),
1003
1009
  placeholder: e.placeholder[1] || ""
1004
- }, a.$attrs, { onChange: l }), null, 16, ["min", "max", "value", "placeholder"])
1010
+ }, a.$attrs, { onChange: c }), null, 16, ["min", "max", "value", "placeholder"])
1005
1011
  ]);
1006
1012
  };
1007
1013
  }
1008
- }), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1014
+ }), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1009
1015
  __proto__: null,
1010
- AInputNumberEx: yt,
1011
- ARangePickerEx: ht,
1016
+ AInputNumberEx: ht,
1017
+ ARangePickerEx: yt,
1012
1018
  ASelectEx: _t,
1013
1019
  ATableEx: xt,
1014
1020
  WlInputNumberRange: Rt,
@@ -1017,13 +1023,13 @@ const wt = re({ name: "local-clear", render: kt }), $t = { class: "nums-box" },
1017
1023
  WlRateSlider: Nt,
1018
1024
  WlSplitter: Ct
1019
1025
  }, Symbol.toStringTag, { value: "Module" }));
1020
- function Ae(e) {
1026
+ function Te(e) {
1021
1027
  return et() ? (tt(e), !0) : !1;
1022
1028
  }
1023
1029
  const de = typeof window < "u" && typeof document < "u";
1024
1030
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1025
- const jt = Object.prototype.toString, It = (e) => jt.call(e) === "[object Object]";
1026
- function Ot(e) {
1031
+ const Ot = Object.prototype.toString, jt = (e) => Ot.call(e) === "[object Object]";
1032
+ function It(e) {
1027
1033
  let n;
1028
1034
  function t() {
1029
1035
  return n || (n = e()), n;
@@ -1036,30 +1042,30 @@ function Ot(e) {
1036
1042
  function ne(e) {
1037
1043
  return Array.isArray(e) ? e : [e];
1038
1044
  }
1039
- function Ft(e, n, t = {}) {
1045
+ function Ut(e, n, t = {}) {
1040
1046
  const {
1041
1047
  immediate: s = !0,
1042
- immediateCallback: i = !1
1048
+ immediateCallback: u = !1
1043
1049
  } = t, r = X(!1);
1044
- let u = null;
1050
+ let l = null;
1045
1051
  function o() {
1046
- u && (clearTimeout(u), u = null);
1052
+ l && (clearTimeout(l), l = null);
1047
1053
  }
1048
- function c() {
1054
+ function i() {
1049
1055
  r.value = !1, o();
1050
1056
  }
1051
- function p(...l) {
1052
- i && e(), o(), r.value = !0, u = setTimeout(() => {
1053
- r.value = !1, u = null, e(...l);
1057
+ function p(...c) {
1058
+ u && e(), o(), r.value = !0, l = setTimeout(() => {
1059
+ r.value = !1, l = null, e(...c);
1054
1060
  }, q(n));
1055
1061
  }
1056
- return s && (r.value = !0, de && p()), Ae(c), {
1062
+ return s && (r.value = !0, de && p()), Te(i), {
1057
1063
  isPending: Je(r),
1058
1064
  start: p,
1059
- stop: c
1065
+ stop: i
1060
1066
  };
1061
1067
  }
1062
- function Ut(e, n, t) {
1068
+ function Ft(e, n, t) {
1063
1069
  return J(
1064
1070
  e,
1065
1071
  n,
@@ -1069,8 +1075,8 @@ function Ut(e, n, t) {
1069
1075
  }
1070
1076
  );
1071
1077
  }
1072
- const Wt = de ? window : void 0, Te = de ? window.navigator : void 0;
1073
- function De(e) {
1078
+ const Wt = de ? window : void 0, De = de ? window.navigator : void 0;
1079
+ function Le(e) {
1074
1080
  var n;
1075
1081
  const t = q(e);
1076
1082
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
@@ -1078,113 +1084,113 @@ function De(e) {
1078
1084
  function Y(...e) {
1079
1085
  const n = [], t = () => {
1080
1086
  n.forEach((o) => o()), n.length = 0;
1081
- }, s = (o, c, p, l) => (o.addEventListener(c, p, l), () => o.removeEventListener(c, p, l)), i = D(() => {
1082
- const o = ne(q(e[0])).filter((c) => c != null);
1083
- return o.every((c) => typeof c != "string") ? o : void 0;
1084
- }), r = Ut(
1087
+ }, s = (o, i, p, c) => (o.addEventListener(i, p, c), () => o.removeEventListener(i, p, c)), u = L(() => {
1088
+ const o = ne(q(e[0])).filter((i) => i != null);
1089
+ return o.every((i) => typeof i != "string") ? o : void 0;
1090
+ }), r = Ft(
1085
1091
  () => {
1086
- var o, c;
1092
+ var o, i;
1087
1093
  return [
1088
- (c = (o = i.value) == null ? void 0 : o.map((p) => De(p))) != null ? c : [Wt].filter((p) => p != null),
1089
- ne(q(i.value ? e[1] : e[0])),
1090
- ne(k(i.value ? e[2] : e[1])),
1094
+ (i = (o = u.value) == null ? void 0 : o.map((p) => Le(p))) != null ? i : [Wt].filter((p) => p != null),
1095
+ ne(q(u.value ? e[1] : e[0])),
1096
+ ne(k(u.value ? e[2] : e[1])),
1091
1097
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1092
- q(i.value ? e[3] : e[2])
1098
+ q(u.value ? e[3] : e[2])
1093
1099
  ];
1094
1100
  },
1095
- ([o, c, p, l]) => {
1096
- if (t(), !(o != null && o.length) || !(c != null && c.length) || !(p != null && p.length))
1101
+ ([o, i, p, c]) => {
1102
+ if (t(), !(o != null && o.length) || !(i != null && i.length) || !(p != null && p.length))
1097
1103
  return;
1098
- const a = It(l) ? { ...l } : l;
1104
+ const a = jt(c) ? { ...c } : c;
1099
1105
  n.push(
1100
1106
  ...o.flatMap(
1101
- (d) => c.flatMap(
1102
- (h) => p.map((v) => s(d, h, v, a))
1107
+ (d) => i.flatMap(
1108
+ (y) => p.map((g) => s(d, y, g, a))
1103
1109
  )
1104
1110
  )
1105
1111
  );
1106
1112
  },
1107
1113
  { flush: "post" }
1108
- ), u = () => {
1114
+ ), l = () => {
1109
1115
  r(), t();
1110
1116
  };
1111
- return Ae(t), u;
1117
+ return Te(t), l;
1112
1118
  }
1113
1119
  function zt() {
1114
1120
  const e = X(!1), n = ee();
1115
- return n && Me(() => {
1121
+ return n && Ne(() => {
1116
1122
  e.value = !0;
1117
1123
  }, n), e;
1118
1124
  }
1119
- function Le(e) {
1125
+ function Be(e) {
1120
1126
  const n = zt();
1121
- return D(() => (n.value, !!e()));
1127
+ return L(() => (n.value, !!e()));
1122
1128
  }
1123
1129
  const qt = 500, Kt = 10;
1124
1130
  function Vt(e, n, t) {
1125
- var s, i;
1126
- const r = D(() => De(e));
1127
- let u, o, c, p = !1;
1128
- function l() {
1129
- u && (clearTimeout(u), u = void 0), o = void 0, c = void 0, p = !1;
1131
+ var s, u;
1132
+ const r = L(() => Le(e));
1133
+ let l, o, i, p = !1;
1134
+ function c() {
1135
+ l && (clearTimeout(l), l = void 0), o = void 0, i = void 0, p = !1;
1130
1136
  }
1131
1137
  function a(f) {
1132
- var m, y, _;
1133
- const [b, C, $] = [c, o, p];
1134
- if (l(), !(t != null && t.onMouseUp) || !C || !b || (m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== r.value)
1138
+ var m, h, _;
1139
+ const [b, C, w] = [i, o, p];
1140
+ if (c(), !(t != null && t.onMouseUp) || !C || !b || (m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== r.value)
1135
1141
  return;
1136
- (y = t == null ? void 0 : t.modifiers) != null && y.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
1137
- const L = f.x - C.x, W = f.y - C.y, P = Math.sqrt(L * L + W * W);
1138
- t.onMouseUp(f.timeStamp - b, P, $);
1142
+ (h = t == null ? void 0 : t.modifiers) != null && h.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
1143
+ const P = f.x - C.x, B = f.y - C.y, A = Math.sqrt(P * P + B * B);
1144
+ t.onMouseUp(f.timeStamp - b, A, w);
1139
1145
  }
1140
1146
  function d(f) {
1141
- var m, y, _, b;
1142
- (m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== r.value || (l(), (y = t == null ? void 0 : t.modifiers) != null && y.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation(), o = {
1147
+ var m, h, _, b;
1148
+ (m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== r.value || (c(), (h = t == null ? void 0 : t.modifiers) != null && h.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation(), o = {
1143
1149
  x: f.x,
1144
1150
  y: f.y
1145
- }, c = f.timeStamp, u = setTimeout(
1151
+ }, i = f.timeStamp, l = setTimeout(
1146
1152
  () => {
1147
1153
  p = !0, n(f);
1148
1154
  },
1149
1155
  (b = t == null ? void 0 : t.delay) != null ? b : qt
1150
1156
  ));
1151
1157
  }
1152
- function h(f) {
1153
- var m, y, _, b;
1158
+ function y(f) {
1159
+ var m, h, _, b;
1154
1160
  if ((m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== r.value || !o || (t == null ? void 0 : t.distanceThreshold) === !1)
1155
1161
  return;
1156
- (y = t == null ? void 0 : t.modifiers) != null && y.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
1157
- const C = f.x - o.x, $ = f.y - o.y;
1158
- Math.sqrt(C * C + $ * $) >= ((b = t == null ? void 0 : t.distanceThreshold) != null ? b : Kt) && l();
1162
+ (h = t == null ? void 0 : t.modifiers) != null && h.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
1163
+ const C = f.x - o.x, w = f.y - o.y;
1164
+ Math.sqrt(C * C + w * w) >= ((b = t == null ? void 0 : t.distanceThreshold) != null ? b : Kt) && c();
1159
1165
  }
1160
- const v = {
1166
+ const g = {
1161
1167
  capture: (s = t == null ? void 0 : t.modifiers) == null ? void 0 : s.capture,
1162
- once: (i = t == null ? void 0 : t.modifiers) == null ? void 0 : i.once
1163
- }, g = [
1164
- Y(r, "pointerdown", d, v),
1165
- Y(r, "pointermove", h, v),
1166
- Y(r, ["pointerup", "pointerleave"], a, v)
1168
+ once: (u = t == null ? void 0 : t.modifiers) == null ? void 0 : u.once
1169
+ }, v = [
1170
+ Y(r, "pointerdown", d, g),
1171
+ Y(r, "pointermove", y, g),
1172
+ Y(r, ["pointerup", "pointerleave"], a, g)
1167
1173
  ];
1168
- return () => g.forEach((f) => f());
1174
+ return () => v.forEach((f) => f());
1169
1175
  }
1170
1176
  function _e(e, n = {}) {
1171
1177
  const {
1172
1178
  controls: t = !1,
1173
- navigator: s = Te
1174
- } = n, i = Le(() => s && "permissions" in s), r = X(), u = typeof e == "string" ? { name: e } : e, o = X(), c = () => {
1175
- var l, a;
1176
- o.value = (a = (l = r.value) == null ? void 0 : l.state) != null ? a : "prompt";
1179
+ navigator: s = De
1180
+ } = n, u = Be(() => s && "permissions" in s), r = X(), l = typeof e == "string" ? { name: e } : e, o = X(), i = () => {
1181
+ var c, a;
1182
+ o.value = (a = (c = r.value) == null ? void 0 : c.state) != null ? a : "prompt";
1177
1183
  };
1178
- Y(r, "change", c, { passive: !0 });
1179
- const p = Ot(async () => {
1180
- if (i.value) {
1184
+ Y(r, "change", i, { passive: !0 });
1185
+ const p = It(async () => {
1186
+ if (u.value) {
1181
1187
  if (!r.value)
1182
1188
  try {
1183
- r.value = await s.permissions.query(u);
1189
+ r.value = await s.permissions.query(l);
1184
1190
  } catch {
1185
1191
  r.value = void 0;
1186
1192
  } finally {
1187
- c();
1193
+ i();
1188
1194
  }
1189
1195
  if (t)
1190
1196
  return nt(r.value);
@@ -1192,71 +1198,71 @@ function _e(e, n = {}) {
1192
1198
  });
1193
1199
  return p(), t ? {
1194
1200
  state: o,
1195
- isSupported: i,
1201
+ isSupported: u,
1196
1202
  query: p
1197
1203
  } : o;
1198
1204
  }
1199
1205
  function Xt(e = {}) {
1200
1206
  const {
1201
- navigator: n = Te,
1207
+ navigator: n = De,
1202
1208
  read: t = !1,
1203
1209
  source: s,
1204
- copiedDuring: i = 1500,
1210
+ copiedDuring: u = 1500,
1205
1211
  legacy: r = !1
1206
- } = e, u = Le(() => n && "clipboard" in n), o = _e("clipboard-read"), c = _e("clipboard-write"), p = D(() => u.value || r), l = X(""), a = X(!1), d = Ft(() => a.value = !1, i, { immediate: !1 });
1207
- async function h() {
1208
- let m = !(u.value && f(o.value));
1212
+ } = e, l = Be(() => n && "clipboard" in n), o = _e("clipboard-read"), i = _e("clipboard-write"), p = L(() => l.value || r), c = X(""), a = X(!1), d = Ut(() => a.value = !1, u, { immediate: !1 });
1213
+ async function y() {
1214
+ let m = !(l.value && f(o.value));
1209
1215
  if (!m)
1210
1216
  try {
1211
- l.value = await n.clipboard.readText();
1217
+ c.value = await n.clipboard.readText();
1212
1218
  } catch {
1213
1219
  m = !0;
1214
1220
  }
1215
- m && (l.value = x());
1221
+ m && (c.value = x());
1216
1222
  }
1217
- p.value && t && Y(["copy", "cut"], h, { passive: !0 });
1218
- async function v(m = q(s)) {
1223
+ p.value && t && Y(["copy", "cut"], y, { passive: !0 });
1224
+ async function g(m = q(s)) {
1219
1225
  if (p.value && m != null) {
1220
- let y = !(u.value && f(c.value));
1221
- if (!y)
1226
+ let h = !(l.value && f(i.value));
1227
+ if (!h)
1222
1228
  try {
1223
1229
  await n.clipboard.writeText(m);
1224
1230
  } catch {
1225
- y = !0;
1231
+ h = !0;
1226
1232
  }
1227
- y && g(m), l.value = m, a.value = !0, d.start();
1233
+ h && v(m), c.value = m, a.value = !0, d.start();
1228
1234
  }
1229
1235
  }
1230
- function g(m) {
1231
- const y = document.createElement("textarea");
1232
- y.value = m ?? "", y.style.position = "absolute", y.style.opacity = "0", document.body.appendChild(y), y.select(), document.execCommand("copy"), y.remove();
1236
+ function v(m) {
1237
+ const h = document.createElement("textarea");
1238
+ h.value = m ?? "", h.style.position = "absolute", h.style.opacity = "0", document.body.appendChild(h), h.select(), document.execCommand("copy"), h.remove();
1233
1239
  }
1234
1240
  function x() {
1235
- var m, y, _;
1236
- return (_ = (y = (m = document == null ? void 0 : document.getSelection) == null ? void 0 : m.call(document)) == null ? void 0 : y.toString()) != null ? _ : "";
1241
+ var m, h, _;
1242
+ return (_ = (h = (m = document == null ? void 0 : document.getSelection) == null ? void 0 : m.call(document)) == null ? void 0 : h.toString()) != null ? _ : "";
1237
1243
  }
1238
1244
  function f(m) {
1239
1245
  return m === "granted" || m === "prompt";
1240
1246
  }
1241
1247
  return {
1242
1248
  isSupported: p,
1243
- text: l,
1249
+ text: c,
1244
1250
  copied: a,
1245
- copy: v
1251
+ copy: g
1246
1252
  };
1247
1253
  }
1248
1254
  const Ht = Xt();
1249
1255
  let oe;
1250
1256
  const Yt = {
1251
1257
  mounted(e, n, t) {
1252
- var u, o;
1253
- 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 = {
1258
+ var l, o;
1259
+ const s = ce(t.ctx), u = ((o = (l = s == null ? void 0 : s.locale) == null ? void 0 : l.locale) == null ? void 0 : o.slice(0, 2)) || "en", r = {
1254
1260
  zh: "复制成功",
1255
1261
  en: "Copy successfully",
1256
1262
  fr: "Copie réussie"
1257
1263
  };
1258
1264
  e.copyValue = n.value, oe = () => {
1259
- Ht.copy(e.copyValue), ut.success(r[i]);
1265
+ Ht.copy(e.copyValue), ut.success(r[u]);
1260
1266
  }, e.addEventListener("click", oe);
1261
1267
  },
1262
1268
  updated(e, n) {
@@ -1270,7 +1276,7 @@ const Yt = {
1270
1276
  const s = e.tagName === "INPUT" ? e : e.querySelector("input");
1271
1277
  if (!s)
1272
1278
  return;
1273
- const i = n.value, r = {
1279
+ const u = n.value, r = {
1274
1280
  letterNumber: /^\w*$/,
1275
1281
  // 字母和数字
1276
1282
  price: /^(\d*|(\d+\.\d{0,2}))$/,
@@ -1282,11 +1288,11 @@ const Yt = {
1282
1288
  verify: /^\d{0,6}$/,
1283
1289
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
1284
1290
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
1285
- }, u = i instanceof RegExp ? i : n.arg && r[n.arg] ? r[n.arg] : null;
1291
+ }, l = u instanceof RegExp ? u : n.arg && r[n.arg] ? r[n.arg] : null;
1286
1292
  e._handleInput = (o) => {
1287
1293
  if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
1288
- const c = u == null ? void 0 : u.test(o.target.value);
1289
- if (e._input = c ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !c)
1294
+ const i = l == null ? void 0 : l.test(o.target.value);
1295
+ if (e._input = i ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !i)
1290
1296
  o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
1291
1297
  else
1292
1298
  switch (o.inputType) {
@@ -1303,9 +1309,9 @@ const Yt = {
1303
1309
  case "insertFromPaste":
1304
1310
  //粘贴
1305
1311
  case "insertFromDrop":
1306
- const l = o.dataTransfer || o.clipboardData || null;
1307
- if (l) {
1308
- const a = l.getData("text") || "";
1312
+ const c = o.dataTransfer || o.clipboardData || null;
1313
+ if (c) {
1314
+ const a = c.getData("text") || "";
1309
1315
  o.target.selectionStart = e._start + a.length, o.target.selectionEnd = e._start + a.length;
1310
1316
  }
1311
1317
  break;
@@ -1321,8 +1327,8 @@ const Yt = {
1321
1327
  o.target.dispatchEvent(p);
1322
1328
  }
1323
1329
  }, e._handleKeydown = (o) => {
1324
- const c = u == null ? void 0 : u.test(o.target.value);
1325
- e._input = c ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
1330
+ const i = l == null ? void 0 : l.test(o.target.value);
1331
+ e._input = i ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
1326
1332
  }, e._handleDrop = (o) => {
1327
1333
  o.stopPropagation();
1328
1334
  }, s.addEventListener("input", e._handleInput), s.addEventListener("keydown", e._handleKeydown), s.addEventListener("drop", e._handleDrop);
@@ -1335,16 +1341,16 @@ const Yt = {
1335
1341
  function be(e, n, t) {
1336
1342
  const s = n.value;
1337
1343
  if (s) {
1338
- const i = s / 2;
1339
- e.style.marginLeft = `-${i}px`, e.style.marginRight = `-${i}px`;
1344
+ const u = s / 2;
1345
+ e.style.marginLeft = `-${u}px`, e.style.marginRight = `-${u}px`;
1340
1346
  const r = t.children;
1341
- r != null && r.length && r[0].children.forEach((u) => {
1342
- if (u.component) {
1343
- const o = u.el;
1344
- o != null && o.style && (o.style.paddingLeft = i + "px", o.style.paddingRight = i + "px");
1345
- } else Array.isArray(u.children) && u.children.forEach((o) => {
1346
- const c = o.el;
1347
- c != null && c.style && (c.style.paddingLeft = i + "px", c.style.paddingRight = i + "px");
1347
+ r != null && r.length && r[0].children.forEach((l) => {
1348
+ if (l.component) {
1349
+ const o = l.el;
1350
+ o != null && o.style && (o.style.paddingLeft = u + "px", o.style.paddingRight = u + "px");
1351
+ } else Array.isArray(l.children) && l.children.forEach((o) => {
1352
+ const i = o.el;
1353
+ i != null && i.style && (i.style.paddingLeft = u + "px", i.style.paddingRight = u + "px");
1348
1354
  });
1349
1355
  });
1350
1356
  }
@@ -1368,34 +1374,34 @@ const Gt = {
1368
1374
  }, Jt = {
1369
1375
  mounted(e, n, t) {
1370
1376
  const { value: s } = n, {
1371
- content: i = "",
1377
+ content: u = "",
1372
1378
  placement: r = "top",
1373
- enabled: u = !0,
1379
+ enabled: l = !0,
1374
1380
  padding: o = 8,
1375
1381
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1376
- ...c
1382
+ ...i
1377
1383
  } = typeof s == "string" ? { content: s } : s;
1378
- if (e.tooltipDisabled = !1, !u)
1384
+ if (e.tooltipDisabled = !1, !l)
1379
1385
  e.tooltipDisabled = !0;
1380
1386
  else if (n.modifiers.exceed) {
1381
- const h = e.clientWidth, v = xe(i);
1382
- e.tooltipDisabled = h ? v < h - o * 2 : !0;
1387
+ const y = e.clientWidth, g = xe(u);
1388
+ e.tooltipDisabled = y ? g < y - o * 2 : !0;
1383
1389
  }
1384
1390
  const p = S({
1385
1391
  top: 0,
1386
1392
  left: 0,
1387
1393
  bottom: 0,
1388
1394
  right: 0
1389
- }), l = S({
1395
+ }), c = S({
1390
1396
  getBoundingClientRect: () => p.value
1391
1397
  }), a = z(dt, {
1392
1398
  visible: !1,
1393
- content: i,
1399
+ content: u,
1394
1400
  placement: r,
1395
1401
  virtualTriggering: !0,
1396
- virtualRef: l.value,
1402
+ virtualRef: c.value,
1397
1403
  popperClass: "vtooltip",
1398
- ...c
1404
+ ...i
1399
1405
  }), d = document.createDocumentFragment();
1400
1406
  G(a, d), e.tooltipVm = a, e.tooltipContainer = d, e.addEventListener("mouseenter", () => {
1401
1407
  p.value = e.getBoundingClientRect(), a.component && !e.tooltipDisabled && (Object.assign(a.component.props, { visible: !0 }), a.component.update());
@@ -1407,20 +1413,20 @@ const Gt = {
1407
1413
  if (e.tooltipVm) {
1408
1414
  const { value: t } = n, {
1409
1415
  content: s = "",
1410
- placement: i = "top",
1416
+ placement: u = "top",
1411
1417
  enabled: r = !0,
1412
- padding: u = 8,
1418
+ padding: l = 8,
1413
1419
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1414
1420
  ...o
1415
1421
  } = typeof t == "string" ? { content: t } : t;
1416
1422
  if (e.tooltipDisabled = !1, !r)
1417
1423
  e.tooltipDisabled = !0;
1418
1424
  else if (n.modifiers.exceed) {
1419
- const p = e.clientWidth, l = xe(s);
1420
- e.tooltipDisabled = p ? l < p - u * 2 : !0;
1425
+ const p = e.clientWidth, c = xe(s);
1426
+ e.tooltipDisabled = p ? c < p - l * 2 : !0;
1421
1427
  }
1422
- const c = e.tooltipVm;
1423
- c.component && (Object.assign(c.component.props, { content: s, placement: i, ...o }), c.component.update());
1428
+ const i = e.tooltipVm;
1429
+ i.component && (Object.assign(i.component.props, { content: s, placement: u, ...o }), i.component.update());
1424
1430
  }
1425
1431
  },
1426
1432
  unmounted(e) {
@@ -1435,8 +1441,8 @@ const en = {
1435
1441
  beforeMount(e, n) {
1436
1442
  const { value: t } = n;
1437
1443
  t && (ot(t) || setTimeout(() => {
1438
- var i;
1439
- (i = e.parentNode) == null || i.removeChild(e);
1444
+ var u;
1445
+ (u = e.parentNode) == null || u.removeChild(e);
1440
1446
  }, 50));
1441
1447
  }
1442
1448
  };
@@ -1446,12 +1452,12 @@ function Ce(e, n = 4) {
1446
1452
  }
1447
1453
  const tn = {
1448
1454
  mounted(e, n) {
1449
- const { value: t } = n, { content: s = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = s.replace(/\s+/g, "");
1450
- e.textContent = Ce(r, i) || "-";
1455
+ const { value: t } = n, { content: s = "", spaceNum: u = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = s.replace(/\s+/g, "");
1456
+ e.textContent = Ce(r, u) || "-";
1451
1457
  },
1452
1458
  updated(e, n) {
1453
- const { value: t } = n, { content: s = "", spaceNum: i = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = s.replace(/\s+/g, "");
1454
- e.textContent = Ce(r, i) || "-";
1459
+ const { value: t } = n, { content: s = "", spaceNum: u = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, r = s.replace(/\s+/g, "");
1460
+ e.textContent = Ce(r, u) || "-";
1455
1461
  }
1456
1462
  }, nn = {
1457
1463
  mounted(e, n) {
@@ -1469,16 +1475,16 @@ const tn = {
1469
1475
  tooltip: Jt
1470
1476
  }, Symbol.toStringTag, { value: "Module" }));
1471
1477
  function on(e) {
1472
- Object.keys(he).forEach((n) => {
1473
- e.component(n, he[n]);
1478
+ Object.keys(ye).forEach((n) => {
1479
+ e.component(n, ye[n]);
1474
1480
  }), Object.keys(Se).forEach((n) => {
1475
1481
  e.directive(n, Se[n]);
1476
1482
  });
1477
1483
  }
1478
1484
  const fn = { install: on };
1479
1485
  export {
1480
- yt as AInputNumberEx,
1481
- ht as ARangePickerEx,
1486
+ ht as AInputNumberEx,
1487
+ yt as ARangePickerEx,
1482
1488
  _t as ASelectEx,
1483
1489
  xt as ATableEx,
1484
1490
  gn as UserCenterKey,
@@ -1487,11 +1493,11 @@ export {
1487
1493
  Mt as WlNumberKeyboard,
1488
1494
  Nt as WlRateSlider,
1489
1495
  Ct as WlSplitter,
1490
- yn as buildTree,
1496
+ hn as buildTree,
1491
1497
  Qt as col,
1492
1498
  Yt as copy,
1493
1499
  fn as default,
1494
- hn as exportFile,
1500
+ yn as exportFile,
1495
1501
  _n as forEachTree,
1496
1502
  bn as getButtonPermissions,
1497
1503
  xn as getLocale,
@@ -1512,12 +1518,12 @@ export {
1512
1518
  Ln as isElement,
1513
1519
  Bn as isFunction,
1514
1520
  Rn as isImageDom,
1515
- jn as isNull,
1516
- B as isNullOrUndef,
1517
- In as isNumber,
1518
- On as isObject,
1519
- Fn as isPromise,
1520
- Un as isServer,
1521
+ On as isNull,
1522
+ R as isNullOrUndef,
1523
+ jn as isNumber,
1524
+ In as isObject,
1525
+ Un as isPromise,
1526
+ Fn as isServer,
1521
1527
  Wn as isString,
1522
1528
  zn as isUndef,
1523
1529
  qn as isWindow,