@witlink/components 1.0.15 → 1.0.17

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,18 +1,18 @@
1
- import { InputNumber as ke, RangePicker as Se, Table as Ee, Popover as Me, Input as $e, Row as Ne, Col as Te, Button as Le } from "ant-design-vue/es";
2
- import { markRaw as Q, createElementBlock as O, openBlock as $, createElementVNode as E, defineComponent as K, mergeModels as X, useModel as ge, useSlots as ye, useAttrs as Pe, createBlock as W, mergeProps as z, createSlots as J, renderList as I, withCtx as S, unref as N, renderSlot as R, normalizeProps as he, guardReactiveProps as Ae, createVNode as L, ref as C, getCurrentInstance as H, render as U, h as D, computed as V, onMounted as be, onUnmounted as Be, normalizeClass as De, normalizeStyle as ne, isRef as Oe, withKeys as je, withModifiers as oe, Fragment as ae, createTextVNode as Z, toDisplayString as se, nextTick as re, shallowRef as F, shallowReadonly as Re, toValue as j, getCurrentScope as Fe, onScopeDispose as We, watch as ze, toRaw as Ie } from "vue";
3
- import { isNullOrUndef as B, hasPermission as Ue } from "./utils.js";
4
- import { UserCenterKey as Vt, buildTree as Kt, exportFile as qt, forEachTree as Xt, getButtonPermissions as Ht, getLocale as Zt, getMenuInfo as Gt, getToken as Yt, getUserCenterParams as Qt, getUserCenterParamsByUrl as Jt, getUserInfo as en, is as tn, isArray as nn, isAsyncFunction as on, isBoolean as an, isClient as sn, isDate as rn, isDef as ln, isElement as cn, isFunction as un, isImageDom as dn, isNull as pn, isNumber as fn, isObject as mn, isPromise as vn, isServer as gn, isString as yn, isUndef as hn, isWindow as bn, logoutToUserCenter as _n, removeAll as Cn, removeLocale as xn, removeToken as wn, setLocale as kn, setMenuInfo as Sn, setToken as En, setUserCenterParams as Mn, setUserInfo as $n, toUserCenterConsole as Nn } from "./utils.js";
5
- import ie from "dayjs";
6
- import { Drawer as M, App as Ve, Modal as Ke, Button as qe, ConfigProvider as Xe, Textarea as He, message as Ze } from "ant-design-vue";
7
- import { ElScrollbar as Ge, ElTooltip as Ye } from "element-plus";
8
- const Qe = {
1
+ import { InputNumber as he, RangePicker as Me, Table as Pe, Popover as Ne, Input as Ae, Row as Be, Col as Te, Button as De, Slider as je } from "ant-design-vue/es";
2
+ import { markRaw as ee, createElementBlock as A, openBlock as S, createElementVNode as E, defineComponent as I, mergeModels as O, useModel as Z, useSlots as be, useAttrs as Le, createBlock as F, mergeProps as U, createSlots as te, renderList as z, withCtx as M, unref as k, renderSlot as V, normalizeProps as _e, guardReactiveProps as Re, createVNode as P, ref as C, getCurrentInstance as G, render as X, h as R, computed as D, onMounted as Ce, onUnmounted as Oe, normalizeClass as Ie, normalizeStyle as ae, isRef as xe, withKeys as We, withModifiers as se, Fragment as q, createTextVNode as Y, toDisplayString as re, nextTick as le, useCssVars as Fe, watch as ke, createCommentVNode as ie, shallowRef as K, shallowReadonly as Ue, toValue as W, getCurrentScope as ze, onScopeDispose as Ve, toRaw as Ke } from "vue";
3
+ import { isNullOrUndef as L, hasPermission as qe } from "./utils.js";
4
+ import { UserCenterKey as Jt, buildTree as en, exportFile as tn, forEachTree as nn, getButtonPermissions as on, getLocale as an, getMenuInfo as sn, getToken as rn, getUserCenterParams as ln, getUserCenterParamsByUrl as cn, getUserInfo as un, is as dn, isArray as pn, isAsyncFunction as fn, isBoolean as mn, isClient as vn, isDate as gn, isDef as yn, isElement as hn, isFunction as bn, isImageDom as _n, isNull as Cn, isNumber as xn, isObject as kn, isPromise as Sn, isServer as wn, isString as $n, isUndef as En, isWindow as Mn, logoutToUserCenter as Pn, removeAll as Nn, removeLocale as An, removeToken as Bn, setLocale as Tn, setMenuInfo as Dn, setToken as jn, setUserCenterParams as Ln, setUserInfo as Rn, toUserCenterConsole as On } from "./utils.js";
5
+ import ce from "dayjs";
6
+ import { Drawer as N, App as Xe, Modal as He, Button as Ze, ConfigProvider as Ge, Textarea as Ye, Form as Qe, message as Je } from "ant-design-vue";
7
+ import { ElScrollbar as et, ElTooltip as tt } from "element-plus";
8
+ const nt = {
9
9
  class: "icon",
10
10
  viewBox: "0 0 1024 1024",
11
11
  width: "1.2em",
12
12
  height: "1.2em"
13
13
  };
14
- function Je(e, t) {
15
- return $(), O("svg", Qe, t[0] || (t[0] = [
14
+ function ot(e, t) {
15
+ return S(), A("svg", nt, t[0] || (t[0] = [
16
16
  E("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,24 +23,24 @@ function Je(e, t) {
23
23
  }, null, -1)
24
24
  ]));
25
25
  }
26
- const et = Q({ name: "ant-design-plus", render: Je }), tt = {
26
+ const at = ee({ name: "ant-design-plus", render: ot }), st = {
27
27
  class: "icon",
28
28
  viewBox: "0 0 1024 1024",
29
29
  width: "1.2em",
30
30
  height: "1.2em"
31
31
  };
32
- function nt(e, t) {
33
- return $(), O("svg", tt, t[0] || (t[0] = [
32
+ function rt(e, t) {
33
+ return S(), A("svg", st, t[0] || (t[0] = [
34
34
  E("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 ot = Q({ name: "ant-design-minus", render: nt }), at = /* @__PURE__ */ K({
40
+ const lt = ee({ name: "ant-design-minus", render: rt }), it = /* @__PURE__ */ I({
41
41
  inheritAttrs: !1,
42
42
  __name: "index",
43
- props: /* @__PURE__ */ X({
43
+ props: /* @__PURE__ */ O({
44
44
  precision: {
45
45
  type: Number
46
46
  },
@@ -56,69 +56,69 @@ const ot = Q({ name: "ant-design-minus", render: nt }), at = /* @__PURE__ */ K({
56
56
  value: {},
57
57
  valueModifiers: {}
58
58
  }),
59
- emits: /* @__PURE__ */ X(["change"], ["update:value"]),
59
+ emits: /* @__PURE__ */ O(["change"], ["update:value"]),
60
60
  setup(e, { emit: t }) {
61
- const n = ge(e, "value"), s = e, r = t, i = ye(), o = Pe();
62
- function a(p) {
63
- if (B(p))
64
- n.value = null, r("change", null);
61
+ const n = Z(e, "value"), r = e, l = t, c = be(), o = Le();
62
+ function a(i) {
63
+ if (L(i))
64
+ n.value = null, l("change", null);
65
65
  else {
66
- let m = p;
67
- s.stringMode && (m = Number(m).toFixed(s.precision)), n.value !== m && (n.value = m, r("change", m));
66
+ let u = i;
67
+ r.stringMode && (u = Number(u).toFixed(r.precision)), n.value !== u && (n.value = u, l("change", u));
68
68
  }
69
69
  }
70
- function c() {
71
- if (B(n.value))
70
+ function d() {
71
+ if (L(n.value))
72
72
  return;
73
- let p = n.value;
74
- s.stringMode && (p = Number(p).toFixed(s.precision)), n.value = p;
73
+ let i = n.value;
74
+ r.stringMode && (i = Number(i).toFixed(r.precision)), n.value = i;
75
75
  }
76
- function d() {
76
+ function f() {
77
77
  if (o.disabled) return;
78
- const p = Number(n.value);
79
- !B(o.min) && p <= Number(o.min) || a(p - 1);
78
+ const i = Number(n.value);
79
+ !L(o.min) && i <= Number(o.min) || a(i - 1);
80
80
  }
81
- function l() {
81
+ function s() {
82
82
  if (o.disabled) return;
83
- const p = Number(n.value);
84
- !B(o.max) && p >= Number(o.max) || a(p + 1);
83
+ const i = Number(n.value);
84
+ !L(o.max) && i >= Number(o.max) || a(i + 1);
85
85
  }
86
- return (p, m) => {
87
- const b = ot, _ = et, f = ke;
88
- return $(), W(f, z({
86
+ return (i, u) => {
87
+ const v = lt, g = at, m = he;
88
+ return S(), F(m, U({
89
89
  value: n.value,
90
90
  precision: e.precision,
91
91
  stringMode: e.stringMode,
92
92
  controls: !e.customControls,
93
93
  onChange: a,
94
- onBlur: c
95
- }, p.$attrs), J({ _: 2 }, [
96
- I(Object.keys(N(i)), (g) => ({
97
- name: g,
98
- fn: S((v) => [
99
- R(p.$slots, g, he(Ae(v)))
94
+ onBlur: d
95
+ }, i.$attrs), te({ _: 2 }, [
96
+ z(Object.keys(k(c)), (y) => ({
97
+ name: y,
98
+ fn: M((h) => [
99
+ V(i.$slots, y, _e(Re(h)))
100
100
  ])
101
101
  })),
102
102
  e.customControls ? {
103
103
  name: "addonBefore",
104
- fn: S(() => [
104
+ fn: M(() => [
105
105
  E("div", {
106
106
  class: "btn-control",
107
- onClick: d
107
+ onClick: f
108
108
  }, [
109
- L(b, { class: "btn-icon" })
109
+ P(v, { class: "btn-icon" })
110
110
  ])
111
111
  ]),
112
112
  key: "0"
113
113
  } : void 0,
114
114
  e.customControls ? {
115
115
  name: "addonAfter",
116
- fn: S(() => [
116
+ fn: M(() => [
117
117
  E("div", {
118
118
  class: "btn-control",
119
- onClick: l
119
+ onClick: s
120
120
  }, [
121
- L(_, { class: "btn-icon" })
121
+ P(g, { class: "btn-icon" })
122
122
  ])
123
123
  ]),
124
124
  key: "1"
@@ -126,7 +126,7 @@ const ot = Q({ name: "ant-design-minus", render: nt }), at = /* @__PURE__ */ K({
126
126
  ]), 1040, ["value", "precision", "stringMode", "controls"]);
127
127
  };
128
128
  }
129
- }), st = /* @__PURE__ */ K({
129
+ }), ct = /* @__PURE__ */ I({
130
130
  __name: "index",
131
131
  props: {
132
132
  value: {},
@@ -156,49 +156,49 @@ const ot = Q({ name: "ant-design-minus", render: nt }), at = /* @__PURE__ */ K({
156
156
  },
157
157
  emits: ["update:value", "change"],
158
158
  setup(e, { emit: t }) {
159
- const n = e, s = t, r = C(), i = C(), o = (l) => {
160
- const p = ie().add(n.max, n.maxUnit), m = ie().subtract(n.min, n.minUnit), b = n.interval;
161
- if (!r.value || r.value.length === 0)
162
- return l.isAfter(p) || l.isBefore(m);
163
- const _ = r.value[0] && (l.diff(r.value[0], "days") > b || l.isAfter(p));
164
- return r.value[1] && (r.value[1].diff(l, "days") > b || l.isBefore(m)) || _;
165
- }, a = (l) => {
166
- l ? (r.value = [], i.value = []) : i.value = void 0;
167
- }, c = (l) => {
168
- s("update:value", l), s("change", l);
169
- }, d = (l) => {
170
- r.value = l;
159
+ const n = e, r = t, l = C(), c = C(), o = (s) => {
160
+ const i = ce().add(n.max, n.maxUnit), u = ce().subtract(n.min, n.minUnit), v = n.interval;
161
+ if (!l.value || l.value.length === 0)
162
+ return s.isAfter(i) || s.isBefore(u);
163
+ const g = l.value[0] && (s.diff(l.value[0], "days") > v || s.isAfter(i));
164
+ return l.value[1] && (l.value[1].diff(s, "days") > v || s.isBefore(u)) || g;
165
+ }, a = (s) => {
166
+ s ? (l.value = [], c.value = []) : c.value = void 0;
167
+ }, d = (s) => {
168
+ r("update:value", s), r("change", s);
169
+ }, f = (s) => {
170
+ l.value = s;
171
171
  };
172
- return (l, p) => {
173
- const m = Se;
174
- return $(), W(m, z({
175
- value: N(i) || e.value,
172
+ return (s, i) => {
173
+ const u = Me;
174
+ return S(), F(u, U({
175
+ value: k(c) || e.value,
176
176
  "disabled-date": o,
177
- onChange: c,
177
+ onChange: d,
178
178
  onOpenChange: a,
179
- onCalendarChange: d
180
- }, l.$attrs), J({ _: 2 }, [
181
- I(Object.keys(l.$slots), (b) => ({
182
- name: b,
183
- fn: S((_) => [
184
- R(l.$slots, b)
179
+ onCalendarChange: f
180
+ }, s.$attrs), te({ _: 2 }, [
181
+ z(Object.keys(s.$slots), (v) => ({
182
+ name: v,
183
+ fn: M((g) => [
184
+ V(s.$slots, v)
185
185
  ])
186
186
  }))
187
187
  ]), 1040, ["value"]);
188
188
  };
189
189
  }
190
190
  });
191
- function ee(e) {
192
- e || (e = H());
193
- const t = (e == null ? void 0 : e.provides) || {}, n = rt(t, "configProvider"), s = t[n];
191
+ function ne(e) {
192
+ e || (e = G());
193
+ const t = (e == null ? void 0 : e.provides) || {}, n = ut(t, "configProvider"), r = t[n];
194
194
  return Object.fromEntries(
195
- Object.entries(s).map(([i, o]) => [i, N(o)])
195
+ Object.entries(r).map(([c, o]) => [c, k(o)])
196
196
  );
197
197
  }
198
- function rt(e, t) {
198
+ function ut(e, t) {
199
199
  for (; e; ) {
200
200
  const n = Reflect.ownKeys(e).find(
201
- (s) => s === t || typeof s == "symbol" && s.description === t
201
+ (r) => r === t || typeof r == "symbol" && r.description === t
202
202
  );
203
203
  if (n)
204
204
  return n;
@@ -206,9 +206,9 @@ function rt(e, t) {
206
206
  }
207
207
  return null;
208
208
  }
209
- function Ft(e) {
209
+ function Ht(e) {
210
210
  var n;
211
- let t = (n = H()) == null ? void 0 : n.parent;
211
+ let t = (n = G()) == null ? void 0 : n.parent;
212
212
  for (; t; ) {
213
213
  if (t.type.name === e)
214
214
  return t;
@@ -216,29 +216,29 @@ function Ft(e) {
216
216
  }
217
217
  return null;
218
218
  }
219
- let A, le, P, ce;
220
- M.destroy = function() {
221
- const e = M.instanceArr || [], t = e.pop();
222
- if (t && U(null, t.container), e.length > 0) {
219
+ let j, ue, T, de;
220
+ N.destroy = function() {
221
+ const e = N.instanceArr || [], t = e.pop();
222
+ if (t && X(null, t.container), e.length > 0) {
223
223
  const n = e[e.length - 1].instance;
224
224
  Object.assign(n.component.props, {
225
225
  contentWrapperStyle: { transform: null }
226
226
  }), n.component.update();
227
227
  }
228
228
  };
229
- M.destroyAll = function() {
230
- (M.instanceArr || []).forEach((t) => {
231
- U(null, t.container);
232
- }), M.instanceArr = [];
229
+ N.destroyAll = function() {
230
+ (N.instanceArr || []).forEach((t) => {
231
+ X(null, t.container);
232
+ }), N.instanceArr = [];
233
233
  };
234
- function Wt() {
235
- var l, p;
236
- const e = H();
237
- if (!P) {
238
- const m = Ve.useApp();
239
- P = m.modal, le = m.message, ce = m.notification;
234
+ function Zt() {
235
+ var s, i;
236
+ const e = G();
237
+ if (!T) {
238
+ const u = Xe.useApp();
239
+ T = u.modal, ue = u.message, de = u.notification;
240
240
  }
241
- P.info || (P = Ke);
241
+ T.info || (T = He);
242
242
  const t = {
243
243
  zh: "关闭",
244
244
  en: "Close",
@@ -247,100 +247,100 @@ function Wt() {
247
247
  zh: "请输入",
248
248
  en: "Please Enter",
249
249
  fr: "Veuillez entrer"
250
- }, s = ee(), r = ((p = (l = s == null ? void 0 : s.locale) == null ? void 0 : l.locale) == null ? void 0 : p.slice(0, 2)) || "en";
251
- function i({ title: m, ...b }) {
252
- const _ = C();
250
+ }, r = ne(), l = ((i = (s = r == null ? void 0 : r.locale) == null ? void 0 : s.locale) == null ? void 0 : i.slice(0, 2)) || "en";
251
+ function c({ title: u, ...v }) {
252
+ const g = C();
253
253
  return o({
254
- title: m,
255
- ...b,
256
- comp: He,
254
+ title: u,
255
+ ...v,
256
+ comp: Ye,
257
257
  props: {
258
- placeholder: n[r],
258
+ placeholder: n[l],
259
259
  autoSize: { minRows: 6 },
260
- value: _,
261
- "onUpdate:value": (f) => {
262
- _.value = f;
260
+ value: g,
261
+ "onUpdate:value": (m) => {
262
+ g.value = m;
263
263
  },
264
- ...b.props
264
+ ...v.props
265
265
  },
266
266
  class: "modal-comp modal-comp-input",
267
267
  type: "confirm",
268
- onOk: () => new Promise((f, g) => {
269
- b.onOk && (b.onOk(_.value) ? f(1) : g()), f(1);
268
+ onOk: () => new Promise((m, y) => {
269
+ v.onOk && (v.onOk(g.value) ? m(1) : y()), m(1);
270
270
  })
271
271
  });
272
272
  }
273
- function o({ title: m, comp: b, props: _, ...f }) {
274
- const g = D(b, _), v = (f == null ? void 0 : f.type) ?? "info", u = {
275
- title: m,
276
- content: g,
273
+ function o({ title: u, comp: v, props: g, ...m }) {
274
+ const y = R(v, g), h = (m == null ? void 0 : m.type) ?? "info", p = {
275
+ title: u,
276
+ content: y,
277
277
  width: "auto",
278
278
  icon: null,
279
279
  closable: !0,
280
280
  maskClosable: !0,
281
281
  centered: !0,
282
282
  class: "modal-comp",
283
- ...f
283
+ ...m
284
284
  };
285
- switch (v) {
285
+ switch (h) {
286
286
  case "info":
287
- A = P.info(u);
287
+ j = T.info(p);
288
288
  break;
289
289
  case "warning":
290
- A = P.warning(u);
290
+ j = T.warning(p);
291
291
  break;
292
292
  case "success":
293
- A = P.success(u);
293
+ j = T.success(p);
294
294
  break;
295
295
  case "confirm":
296
- A = P.confirm(u);
296
+ j = T.confirm(p);
297
297
  break;
298
298
  }
299
- return A;
299
+ return j;
300
300
  }
301
301
  function a() {
302
- A == null || A.destroy();
302
+ j == null || j.destroy();
303
303
  }
304
- function c({ title: m, comp: b, props: _, ...f }) {
305
- const g = f.getContainer || document.createDocumentFragment();
306
- M.instanceArr || (M.instanceArr = []);
307
- const v = M.instanceArr, u = v[v.length - 1];
308
- let y;
309
- if ((u == null ? void 0 : u.comp) === b) {
310
- const h = u.instance;
311
- Object.assign(h.component.props, { title: m, ...f }), h.component.update(), y = u.compInstance, Object.assign(y.component.props, { ..._ }), y.component.update();
304
+ function d({ title: u, comp: v, props: g, ...m }) {
305
+ const y = m.getContainer || document.createDocumentFragment();
306
+ N.instanceArr || (N.instanceArr = []);
307
+ const h = N.instanceArr, p = h[h.length - 1];
308
+ let b;
309
+ if ((p == null ? void 0 : p.comp) === v) {
310
+ const _ = p.instance;
311
+ Object.assign(_.component.props, { title: u, ...m }), _.component.update(), b = p.compInstance, Object.assign(b.component.props, { ...g }), b.component.update();
312
312
  } else {
313
- if (u) {
314
- const q = u.instance;
315
- Object.assign(q.component.props, {
313
+ if (p) {
314
+ const H = p.instance;
315
+ Object.assign(H.component.props, {
316
316
  contentWrapperStyle: { transform: "translateX(-180px)" }
317
- }), q.component.update();
317
+ }), H.component.update();
318
318
  }
319
- y = D(b, _);
320
- const h = {
321
- default: () => D(
322
- Ge,
319
+ b = R(v, g);
320
+ const _ = {
321
+ default: () => R(
322
+ et,
323
323
  { style: { height: "100%" }, wrapStyle: { overflowX: "hidden" } },
324
- y
324
+ b
325
325
  )
326
326
  };
327
- f.footer === void 0 && Object.assign(h, {
328
- footer: () => D(
329
- qe,
327
+ m.footer === void 0 && Object.assign(_, {
328
+ footer: () => R(
329
+ Ze,
330
330
  {
331
331
  onClick: () => {
332
- M.destroy();
332
+ N.destroy();
333
333
  }
334
334
  },
335
- t[r]
335
+ t[l]
336
336
  )
337
337
  });
338
- const w = f.width || 992;
339
- delete f.width;
340
- const x = D(
341
- M,
338
+ const w = m.width || 992;
339
+ delete m.width;
340
+ const x = R(
341
+ N,
342
342
  {
343
- title: m,
343
+ title: u,
344
344
  width: w,
345
345
  open: !0,
346
346
  class: "drawer-comp",
@@ -348,39 +348,39 @@ function Wt() {
348
348
  textAlign: "right"
349
349
  },
350
350
  onClose: () => {
351
- f != null && f.afterClose && f.afterClose(), M.destroy();
351
+ m != null && m.afterClose && m.afterClose(), N.destroy();
352
352
  },
353
- ...f
353
+ ...m
354
354
  },
355
- h
356
- ), T = s.getPrefixCls(), k = D(
357
- Xe,
358
- { ...s, prefixCls: T },
355
+ _
356
+ ), B = r.getPrefixCls(), $ = R(
357
+ Ge,
358
+ { ...r, prefixCls: B },
359
359
  { default: () => x }
360
360
  );
361
- k.appContext = e.appContext, U(k, g), v.push({ instance: x, comp: b, compInstance: y, container: g });
361
+ $.appContext = e.appContext, X($, y), h.push({ instance: x, comp: v, compInstance: b, container: y });
362
362
  }
363
363
  return {
364
- updateProps: (h) => {
365
- Object.assign(y.component.props, { ...h }), y.component.update();
364
+ updateProps: (_) => {
365
+ Object.assign(b.component.props, { ..._ }), b.component.update();
366
366
  }
367
367
  };
368
368
  }
369
- function d() {
370
- M.destroy();
369
+ function f() {
370
+ N.destroy();
371
371
  }
372
372
  return {
373
- message: le,
374
- modal: P,
375
- notification: ce,
376
- modalInput: i,
373
+ message: ue,
374
+ modal: T,
375
+ notification: de,
376
+ modalInput: c,
377
377
  modalComp: o,
378
378
  modalDestroy: a,
379
- drawerComp: c,
380
- drawerDestroy: d
379
+ drawerComp: d,
380
+ drawerDestroy: f
381
381
  };
382
382
  }
383
- const it = /* @__PURE__ */ K({
383
+ const dt = /* @__PURE__ */ I({
384
384
  inheritAttrs: !1,
385
385
  __name: "index",
386
386
  props: {
@@ -394,74 +394,74 @@ const it = /* @__PURE__ */ K({
394
394
  }
395
395
  },
396
396
  setup(e, { expose: t }) {
397
- const n = e, s = ye(), r = C([]), i = C(!1), o = C(0), a = C(1), c = C(10), d = C(), l = C(), p = {
397
+ const n = e, r = be(), l = C([]), c = C(!1), o = C(0), a = C(1), d = C(10), f = C(), s = C(), i = {
398
398
  zh: "共 {num} 条",
399
399
  en: "Total {num} items",
400
400
  fr: "Total de {num}"
401
- }, m = ee(), b = V(() => {
401
+ }, u = ne(), v = D(() => {
402
402
  var w, x;
403
- return ((x = (w = m == null ? void 0 : m.locale) == null ? void 0 : w.locale) == null ? void 0 : x.slice(0, 2)) || "en";
404
- }), _ = V(() => ({
403
+ return ((x = (w = u == null ? void 0 : u.locale) == null ? void 0 : w.locale) == null ? void 0 : x.slice(0, 2)) || "en";
404
+ }), g = D(() => ({
405
405
  total: o.value,
406
406
  current: a.value,
407
- pageSize: c.value,
407
+ pageSize: d.value,
408
408
  showSizeChanger: !0,
409
409
  size: "small",
410
- showTotal: (h) => p[b.value].replace("{num}", h)
410
+ showTotal: (_) => i[v.value].replace("{num}", _)
411
411
  }));
412
- function f() {
413
- var h;
412
+ function m() {
413
+ var _;
414
414
  if (typeof n.loadData == "function") {
415
- i.value = !0;
416
- const w = { pageNo: a.value, pageSize: c.value };
417
- n.formatSortParams && ((h = l.value) != null && h.orderMap) && (w[l.value.field + "SortField"] = l.value.orderMap), n.loadData(w, d.value, l.value).then((x) => {
418
- i.value = !1, (x == null ? void 0 : x.code) === 0 && (o.value = x.result.totalCount, r.value = x.result.data);
415
+ c.value = !0;
416
+ const w = { pageNo: a.value, pageSize: d.value };
417
+ n.formatSortParams && ((_ = s.value) != null && _.orderMap) && (w[s.value.field + "SortField"] = s.value.orderMap), n.loadData(w, f.value, s.value).then((x) => {
418
+ c.value = !1, (x == null ? void 0 : x.code) === 0 && (o.value = x.result.totalCount, l.value = x.result.data);
419
419
  });
420
420
  }
421
421
  }
422
- function g(h, w, x) {
423
- if (a.value = h.current, c.value = h.pageSize, d.value = w, x) {
424
- const T = {
422
+ function y(_, w, x) {
423
+ if (a.value = _.current, d.value = _.pageSize, f.value = w, x) {
424
+ const B = {
425
425
  ascend: "asc",
426
426
  descend: "desc"
427
427
  };
428
- x.orderMap = T[x.order] || "";
428
+ x.orderMap = B[x.order] || "";
429
429
  }
430
- l.value = x, f();
430
+ s.value = x, m();
431
431
  }
432
- function v(h, w) {
433
- w.width = h;
432
+ function h(_, w) {
433
+ w.width = _;
434
434
  }
435
- function u() {
436
- a.value = 1, f();
435
+ function p() {
436
+ a.value = 1, m();
437
437
  }
438
- function y() {
439
- a.value = 1, o.value = 0, r.value = [];
438
+ function b() {
439
+ a.value = 1, o.value = 0, l.value = [];
440
440
  }
441
441
  return t({
442
- loadData: f,
443
- refresh: u,
444
- reset: y
445
- }), (h, w) => {
446
- const x = Ee;
447
- return $(), W(x, z({
442
+ loadData: m,
443
+ refresh: p,
444
+ reset: b
445
+ }), (_, w) => {
446
+ const x = Pe;
447
+ return S(), F(x, U({
448
448
  class: "table-ex",
449
- loading: N(i),
450
- pagination: N(_),
451
- dataSource: N(r),
452
- onChange: g,
453
- onResizeColumn: v
454
- }, h.$attrs), J({ _: 2 }, [
455
- I(Object.keys(N(s)), (T) => ({
456
- name: T,
457
- fn: S((k) => [
458
- T !== "emptyText" ? R(h.$slots, T, he(z({ key: 0 }, k))) : R(h.$slots, T, { key: 1 })
449
+ loading: k(c),
450
+ pagination: k(g),
451
+ dataSource: k(l),
452
+ onChange: y,
453
+ onResizeColumn: h
454
+ }, _.$attrs), te({ _: 2 }, [
455
+ z(Object.keys(k(r)), (B) => ({
456
+ name: B,
457
+ fn: M(($) => [
458
+ B !== "emptyText" ? V(_.$slots, B, _e(U({ key: 0 }, $))) : V(_.$slots, B, { key: 1 })
459
459
  ])
460
460
  }))
461
461
  ]), 1040, ["loading", "pagination", "dataSource"]);
462
462
  };
463
463
  }
464
- }), lt = /* @__PURE__ */ K({
464
+ }), pt = /* @__PURE__ */ I({
465
465
  __name: "index",
466
466
  props: {
467
467
  leftMin: {
@@ -478,55 +478,55 @@ const it = /* @__PURE__ */ K({
478
478
  }
479
479
  },
480
480
  setup(e) {
481
- const t = e, n = C(), s = C(), r = C({}), i = C({}), o = C(0.2);
482
- function a(d) {
483
- r.value = { width: `calc(${d * 100}% - 5px)` }, i.value = { width: `calc(${(1 - d) * 100}% - 5px)` };
481
+ const t = e, n = C(), r = C(), l = C({}), c = C({}), o = C(0.2);
482
+ function a(f) {
483
+ l.value = { width: `calc(${f * 100}% - 5px)` }, c.value = { width: `calc(${(1 - f) * 100}% - 5px)` };
484
484
  }
485
- function c() {
486
- const d = n.value;
487
- if (!d)
485
+ function d() {
486
+ const f = n.value;
487
+ if (!f)
488
488
  return;
489
- const l = d.clientWidth, p = d.getBoundingClientRect(), m = p.left;
490
- function b(f) {
491
- f.preventDefault(), (f.clientX < p.left || f.clientX > p.right || f.clientY < p.top || f.clientY > p.bottom) && _();
492
- const v = (f.clientX - m) / l;
493
- v > t.leftMin && v < t.leftMax && (o.value = v, a(v));
489
+ const s = f.clientWidth, i = f.getBoundingClientRect(), u = i.left;
490
+ function v(m) {
491
+ m.preventDefault(), (m.clientX < i.left || m.clientX > i.right || m.clientY < i.top || m.clientY > i.bottom) && g();
492
+ const h = (m.clientX - u) / s;
493
+ h > t.leftMin && h < t.leftMax && (o.value = h, a(h));
494
494
  }
495
- function _() {
496
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", _);
495
+ function g() {
496
+ document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", g);
497
497
  }
498
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", _);
498
+ document.addEventListener("mousemove", v), document.addEventListener("mouseup", g);
499
499
  }
500
- return be(() => {
501
- a(o.value), s.value && s.value.addEventListener("mousedown", c, !1);
502
- }), Be(() => {
503
- s.value && s.value.removeEventListener("mousedown", c);
504
- }), (d, l) => ($(), O("div", {
500
+ return Ce(() => {
501
+ a(o.value), r.value && r.value.addEventListener("mousedown", d, !1);
502
+ }), Oe(() => {
503
+ r.value && r.value.removeEventListener("mousedown", d);
504
+ }), (f, s) => (S(), A("div", {
505
505
  ref_key: "container",
506
506
  ref: n,
507
- class: De(["wl-splitter", { bordered: e.bordered }])
507
+ class: Ie(["wl-splitter", { bordered: e.bordered }])
508
508
  }, [
509
509
  E("div", {
510
510
  class: "my-left",
511
- style: ne(N(r))
511
+ style: ae(k(l))
512
512
  }, [
513
- R(d.$slots, "left")
513
+ V(f.$slots, "left")
514
514
  ], 4),
515
515
  E("div", {
516
516
  ref_key: "spliter",
517
- ref: s,
517
+ ref: r,
518
518
  style: { height: "100%", width: "10px" },
519
519
  class: "my-spliter"
520
520
  }, null, 512),
521
521
  E("div", {
522
522
  class: "my-right",
523
- style: ne(N(i))
523
+ style: ae(k(c))
524
524
  }, [
525
- R(d.$slots, "right")
525
+ V(f.$slots, "right")
526
526
  ], 4)
527
527
  ], 2));
528
528
  }
529
- }), ct = {
529
+ }), ft = {
530
530
  class: "icon",
531
531
  width: "25",
532
532
  height: "24",
@@ -534,8 +534,8 @@ const it = /* @__PURE__ */ K({
534
534
  fill: "none",
535
535
  xmlns: "http://www.w3.org/2000/svg"
536
536
  };
537
- function ut(e, t) {
538
- return $(), O("svg", ct, t[0] || (t[0] = [
537
+ function mt(e, t) {
538
+ return S(), A("svg", ft, t[0] || (t[0] = [
539
539
  E("path", {
540
540
  d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
541
541
  stroke: "#272E3B",
@@ -556,10 +556,10 @@ function ut(e, t) {
556
556
  }, null, -1)
557
557
  ]));
558
558
  }
559
- const dt = Q({ name: "local-clear", render: ut }), pt = { class: "nums-box" }, ft = { class: "btn-box" }, mt = /* @__PURE__ */ K({
559
+ const vt = ee({ name: "local-clear", render: mt }), gt = { class: "nums-box" }, yt = { class: "btn-box" }, ht = /* @__PURE__ */ I({
560
560
  inheritAttrs: !1,
561
561
  __name: "index",
562
- props: /* @__PURE__ */ X({
562
+ props: /* @__PURE__ */ O({
563
563
  quickNums: {
564
564
  type: Array,
565
565
  default: () => [100, 500, 1e3, 1500, 2e3, 2500]
@@ -580,94 +580,94 @@ const dt = Q({ name: "local-clear", render: ut }), pt = { class: "nums-box" }, f
580
580
  value: { type: String },
581
581
  valueModifiers: {}
582
582
  }),
583
- emits: /* @__PURE__ */ X(["enter"], ["update:value"]),
583
+ emits: /* @__PURE__ */ O(["enter"], ["update:value"]),
584
584
  setup(e, { emit: t }) {
585
- const n = e, s = t, r = C(), i = C(), o = C(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), a = ge(e, "value"), c = C(!1);
586
- function d() {
587
- c.value = !0;
585
+ const n = e, r = t, l = C(), c = C(), o = C(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), a = Z(e, "value"), d = C(!1);
586
+ function f() {
587
+ d.value = !0;
588
588
  }
589
- function l() {
590
- f();
589
+ function s() {
590
+ m();
591
591
  }
592
- function p(g) {
593
- i.value.focus(), a.value = Number(g).toFixed(n.precision);
592
+ function i(y) {
593
+ c.value.focus(), a.value = Number(y).toFixed(n.precision);
594
594
  }
595
- function m(g) {
596
- if (i.value.focus(), B(a.value) || a.value === "") {
597
- if (["00", "."].includes(g))
595
+ function u(y) {
596
+ if (c.value.focus(), L(a.value) || a.value === "") {
597
+ if (["00", "."].includes(y))
598
598
  return;
599
- a.value = g;
599
+ a.value = y;
600
600
  } else {
601
- const v = String(a.value), u = r.value.getElementsByTagName("input")[0], y = u.selectionStart || 0, h = u.selectionEnd || 0;
602
- a.value = `${v.slice(0, y)}${g}${v.slice(h)}`;
603
- const w = y + g.length;
604
- re(() => {
605
- i.value.setSelectionRange(w, w);
601
+ const h = String(a.value), p = l.value.getElementsByTagName("input")[0], b = p.selectionStart || 0, _ = p.selectionEnd || 0;
602
+ a.value = `${h.slice(0, b)}${y}${h.slice(_)}`;
603
+ const w = b + y.length;
604
+ le(() => {
605
+ c.value.setSelectionRange(w, w);
606
606
  });
607
607
  }
608
608
  }
609
- function b() {
610
- if (i.value.focus(), B(a.value))
609
+ function v() {
610
+ if (c.value.focus(), L(a.value))
611
611
  return;
612
- const g = String(a.value);
613
- if (g != null && g.length) {
614
- const v = r.value.getElementsByTagName("input")[0], u = v.selectionStart || 0, y = v.selectionEnd || 0, h = u > 0 ? u - 1 : 0;
615
- u === y ? a.value = g.slice(0, h) + g.slice(y) : a.value = g.slice(0, u) + g.slice(y), re(() => {
616
- i.value.setSelectionRange(h, h);
612
+ const y = String(a.value);
613
+ if (y != null && y.length) {
614
+ const h = l.value.getElementsByTagName("input")[0], p = h.selectionStart || 0, b = h.selectionEnd || 0, _ = p > 0 ? p - 1 : 0;
615
+ p === b ? a.value = y.slice(0, _) + y.slice(b) : a.value = y.slice(0, p) + y.slice(b), le(() => {
616
+ c.value.setSelectionRange(_, _);
617
617
  });
618
618
  }
619
619
  }
620
- function _() {
621
- i.value.blur();
620
+ function g() {
621
+ c.value.blur();
622
622
  }
623
- function f() {
624
- const g = n.min, v = n.max;
625
- let u = parseFloat(a.value || "0");
626
- B(g) || (u = u > g ? u : g), B(v) || (u = u > v ? v : u), a.value = Number(u).toFixed(n.precision), c.value = !1, s("enter");
623
+ function m() {
624
+ const y = n.min, h = n.max;
625
+ let p = parseFloat(a.value || "0");
626
+ L(y) || (p = p > y ? p : y), L(h) || (p = p > h ? h : p), a.value = Number(p).toFixed(n.precision), d.value = !1, r("enter");
627
627
  }
628
- return (g, v) => {
629
- const u = Le, y = Te, h = dt, w = Ne, x = $e, T = Me;
630
- return $(), O("div", {
628
+ return (y, h) => {
629
+ const p = De, b = Te, _ = vt, w = Be, x = Ae, B = Ne;
630
+ return S(), A("div", {
631
631
  class: "number-keyboard",
632
632
  ref_key: "numberKeyboard",
633
- ref: r
633
+ ref: l
634
634
  }, [
635
- L(T, {
635
+ P(B, {
636
636
  overlayClassName: "popover-keyboard",
637
637
  trigger: "manual",
638
638
  placement: "bottomLeft",
639
639
  align: { offset: [0, -9] },
640
- open: N(c),
641
- "onUpdate:open": v[2] || (v[2] = (k) => Oe(c) ? c.value = k : null)
640
+ open: k(d),
641
+ "onUpdate:open": h[2] || (h[2] = ($) => xe(d) ? d.value = $ : null)
642
642
  }, {
643
- content: S(() => [
643
+ content: M(() => [
644
644
  E("div", {
645
645
  class: "keyboard-panel",
646
- onMousedownCapture: v[0] || (v[0] = oe(() => {
646
+ onMousedownCapture: h[0] || (h[0] = se(() => {
647
647
  }, ["prevent", "stop"]))
648
648
  }, [
649
- L(w, { gutter: "8" }, {
650
- default: S(() => [
651
- L(y, { span: 18 }, {
652
- default: S(() => [
653
- E("div", pt, [
654
- ($(!0), O(ae, null, I(e.quickNums, (k) => ($(), W(u, {
649
+ P(w, { gutter: "8" }, {
650
+ default: M(() => [
651
+ P(b, { span: 18 }, {
652
+ default: M(() => [
653
+ E("div", gt, [
654
+ (S(!0), A(q, null, z(e.quickNums, ($) => (S(), F(p, {
655
655
  class: "btn-num",
656
- key: k,
657
- onClick: (q) => p(k)
656
+ key: $,
657
+ onClick: (H) => i($)
658
658
  }, {
659
- default: S(() => [
660
- Z(se(k), 1)
659
+ default: M(() => [
660
+ Y(re($), 1)
661
661
  ]),
662
662
  _: 2
663
663
  }, 1032, ["onClick"]))), 128)),
664
- ($(!0), O(ae, null, I(N(o), (k) => ($(), W(u, {
664
+ (S(!0), A(q, null, z(k(o), ($) => (S(), F(p, {
665
665
  class: "btn-num",
666
- key: k,
667
- onClick: (q) => m(k)
666
+ key: $,
667
+ onClick: (H) => u($)
668
668
  }, {
669
- default: S(() => [
670
- Z(se(k), 1)
669
+ default: M(() => [
670
+ Y(re($), 1)
671
671
  ]),
672
672
  _: 2
673
673
  }, 1032, ["onClick"]))), 128))
@@ -675,25 +675,25 @@ const dt = Q({ name: "local-clear", render: ut }), pt = { class: "nums-box" }, f
675
675
  ]),
676
676
  _: 1
677
677
  }),
678
- L(y, { span: 6 }, {
679
- default: S(() => [
680
- E("div", ft, [
681
- L(u, {
678
+ P(b, { span: 6 }, {
679
+ default: M(() => [
680
+ E("div", yt, [
681
+ P(p, {
682
682
  class: "btn-clear",
683
- onClick: b
683
+ onClick: v
684
684
  }, {
685
- default: S(() => [
686
- L(h, { style: { width: "24px", height: "24px" } })
685
+ default: M(() => [
686
+ P(_, { style: { width: "24px", height: "24px" } })
687
687
  ]),
688
688
  _: 1
689
689
  }),
690
- L(u, {
690
+ P(p, {
691
691
  class: "btn-enter",
692
692
  type: "primary",
693
- onClick: oe(_, ["stop"])
693
+ onClick: se(g, ["stop"])
694
694
  }, {
695
- default: S(() => v[3] || (v[3] = [
696
- Z("Enter ")
695
+ default: M(() => h[3] || (h[3] = [
696
+ Y("Enter ")
697
697
  ])),
698
698
  _: 1
699
699
  })
@@ -706,16 +706,16 @@ const dt = Q({ name: "local-clear", render: ut }), pt = { class: "nums-box" }, f
706
706
  })
707
707
  ], 32)
708
708
  ]),
709
- default: S(() => [
710
- L(x, z({
709
+ default: M(() => [
710
+ P(x, U({
711
711
  ref_key: "inputRef",
712
- ref: i,
712
+ ref: c,
713
713
  value: a.value,
714
- "onUpdate:value": v[1] || (v[1] = (k) => a.value = k)
715
- }, g.$attrs, {
716
- onFocus: d,
717
- onBlur: l,
718
- onKeyup: je(_, ["enter"])
714
+ "onUpdate:value": h[1] || (h[1] = ($) => a.value = $)
715
+ }, y.$attrs, {
716
+ onFocus: f,
717
+ onBlur: s,
718
+ onKeyup: We(g, ["enter"])
719
719
  }), null, 16, ["value"])
720
720
  ]),
721
721
  _: 1
@@ -723,58 +723,211 @@ const dt = Q({ name: "local-clear", render: ut }), pt = { class: "nums-box" }, f
723
723
  ], 512);
724
724
  };
725
725
  }
726
- }), ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
726
+ }), bt = /* @__PURE__ */ I({
727
+ inheritAttrs: !1,
728
+ __name: "index",
729
+ props: /* @__PURE__ */ O({
730
+ min: {
731
+ type: Number,
732
+ default: 0
733
+ },
734
+ max: {
735
+ type: Number,
736
+ default: 100
737
+ },
738
+ flagStops: {
739
+ type: Array,
740
+ default: ["D", "C", "B", "A"]
741
+ },
742
+ colorStops: {
743
+ type: Array,
744
+ default: ["red", "orange", "blue", "green"]
745
+ }
746
+ }, {
747
+ value: {
748
+ type: Array,
749
+ default: [50, 70, 90]
750
+ },
751
+ valueModifiers: {}
752
+ }),
753
+ emits: /* @__PURE__ */ O(["change"], ["update:value"]),
754
+ setup(e, { emit: t }) {
755
+ Fe((s) => ({
756
+ "1ea77935": k(o),
757
+ "57a69169": k(a),
758
+ "57a6952a": k(d)
759
+ }));
760
+ const n = e, r = Z(e, "value"), l = t, c = D(() => {
761
+ const s = {}, i = Array.from(n.flagStops), u = n.min || 0, v = n.max || 100, g = [u, ...r.value, v];
762
+ for (let m = 0; m < g.length; m++) {
763
+ const y = g[m];
764
+ if (s[y] = y, m > 0) {
765
+ const h = i.shift(), p = g[m - 1], b = Math.floor(p + (y - p) / 2);
766
+ s[b] = { style: { top: "-28px" }, label: h };
767
+ }
768
+ }
769
+ return s;
770
+ }), o = D(() => {
771
+ const s = r.value, i = n.min || 0, u = n.max || 100, v = Math.floor((s[0] - i) / (u - i) * 100), g = n.colorStops, m = g[0], y = g[g.length - 1];
772
+ return `linear-gradient(90deg, ${m} 0%, ${m} ${v}%, ${y} ${v}%, ${y} 100%)`;
773
+ }), a = D(() => n.colorStops[1]), d = D(() => n.colorStops[2]);
774
+ function f(s) {
775
+ const i = n.min || 0, u = n.max || 100;
776
+ s[0] <= i ? s[0] = i + 1 : s.at(-1) >= u && (s[s.length - 1] = u - 1), r.value = s, l("change", s);
777
+ }
778
+ return (s, i) => {
779
+ const u = je;
780
+ return S(), F(u, U({
781
+ class: "rate-slider",
782
+ value: r.value,
783
+ min: e.min,
784
+ max: e.max,
785
+ range: "",
786
+ marks: k(c),
787
+ onChange: f
788
+ }, s.$attrs), null, 16, ["value", "min", "max", "marks"]);
789
+ };
790
+ }
791
+ }), _t = { class: "ip-input" }, Ct = { class: "ip-wrapper" }, xt = {
792
+ key: 0,
793
+ class: "ip-separator"
794
+ }, kt = /* @__PURE__ */ I({
795
+ __name: "index",
796
+ props: /* @__PURE__ */ O({
797
+ hasPort: {
798
+ type: Boolean,
799
+ default: !1
800
+ }
801
+ }, {
802
+ value: {},
803
+ valueModifiers: {}
804
+ }),
805
+ emits: ["update:value"],
806
+ setup(e) {
807
+ const t = Qe.useInjectFormItemContext(), n = e, r = Z(e, "value"), l = C(["", "", "", ""]), c = C(), o = C(""), a = C(), d = (i) => {
808
+ var v, g;
809
+ const u = l.value[i];
810
+ if (u && (!/^\d+$/.test(u) || parseInt(u) > 255)) {
811
+ l.value[i] = "";
812
+ return;
813
+ }
814
+ parseInt(u) >= 100 && (i < 3 ? (v = c.value) != null && v.length && c.value[i + 1].focus() : n.hasPort && ((g = a.value) == null || g.focus())), r.value = `${l.value.join(".")}${n.hasPort ? ":" + o.value : ""}`, t.clearValidate();
815
+ }, f = (i, u) => {
816
+ var v, g;
817
+ u.key === " " && i < 3 && (u.preventDefault(), (v = c.value) != null && v.length && c.value[i + 1].focus()), u.key === "Backspace" && l.value[i] === "" && i > 0 && (g = c.value) != null && g.length && c.value[i - 1].focus();
818
+ };
819
+ function s() {
820
+ r.value = `${l.value.join(".")}${n.hasPort ? ":" + (o.value || "") : ""}`, t.clearValidate();
821
+ }
822
+ return ke(
823
+ () => r.value,
824
+ (i) => {
825
+ if (i) {
826
+ let u = i;
827
+ if (n.hasPort) {
828
+ const g = i.split(":");
829
+ o.value = g[1] || "", u = g[0];
830
+ }
831
+ const v = u.split(".");
832
+ v.length === 4 && (l.value = v);
833
+ } else
834
+ l.value = ["", "", "", ""], o.value = "";
835
+ },
836
+ { immediate: !0 }
837
+ ), (i, u) => {
838
+ const v = he;
839
+ return S(), A("div", _t, [
840
+ E("div", Ct, [
841
+ (S(!0), A(q, null, z(k(l), (g, m) => (S(), A(q, { key: m }, [
842
+ P(v, {
843
+ ref_for: !0,
844
+ ref_key: "ipPartArr",
845
+ ref: c,
846
+ class: "ip-part",
847
+ value: k(l)[m],
848
+ "onUpdate:value": (y) => k(l)[m] = y,
849
+ min: 0,
850
+ max: 255,
851
+ precision: 0,
852
+ controls: !1,
853
+ onChange: (y) => d(m),
854
+ onKeydown: (y) => f(m, y)
855
+ }, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
856
+ m < 3 ? (S(), A("span", xt, ".")) : ie("", !0)
857
+ ], 64))), 128))
858
+ ]),
859
+ e.hasPort ? (S(), A(q, { key: 0 }, [
860
+ u[1] || (u[1] = E("span", { class: "ip-port-separator" }, ":", -1)),
861
+ P(v, {
862
+ ref_key: "portRef",
863
+ ref: a,
864
+ class: "ip-port",
865
+ value: k(o),
866
+ "onUpdate:value": u[0] || (u[0] = (g) => xe(o) ? o.value = g : null),
867
+ min: 0,
868
+ max: 65535,
869
+ precision: 0,
870
+ controls: !1,
871
+ onChange: s
872
+ }, null, 8, ["value"])
873
+ ], 64)) : ie("", !0)
874
+ ]);
875
+ };
876
+ }
877
+ }), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
727
878
  __proto__: null,
728
- AInputNumberEx: at,
729
- ARangePickerEx: st,
730
- ATableEx: it,
731
- WlNumberKeyboard: mt,
732
- WlSplitter: lt
879
+ AInputNumberEx: it,
880
+ ARangePickerEx: ct,
881
+ ATableEx: dt,
882
+ WlIpInput: kt,
883
+ WlNumberKeyboard: ht,
884
+ WlRateSlider: bt,
885
+ WlSplitter: pt
733
886
  }, Symbol.toStringTag, { value: "Module" }));
734
- function _e(e) {
735
- return Fe() ? (We(e), !0) : !1;
887
+ function Se(e) {
888
+ return ze() ? (Ve(e), !0) : !1;
736
889
  }
737
- const te = typeof window < "u" && typeof document < "u";
890
+ const oe = typeof window < "u" && typeof document < "u";
738
891
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
739
- const vt = Object.prototype.toString, gt = (e) => vt.call(e) === "[object Object]";
740
- function yt(e) {
892
+ const St = Object.prototype.toString, wt = (e) => St.call(e) === "[object Object]";
893
+ function $t(e) {
741
894
  let t;
742
895
  function n() {
743
896
  return t || (t = e()), t;
744
897
  }
745
898
  return n.reset = async () => {
746
- const s = t;
747
- t = void 0, s && await s;
899
+ const r = t;
900
+ t = void 0, r && await r;
748
901
  }, n;
749
902
  }
750
- function G(e) {
903
+ function Q(e) {
751
904
  return Array.isArray(e) ? e : [e];
752
905
  }
753
- function ht(e, t, n = {}) {
906
+ function Et(e, t, n = {}) {
754
907
  const {
755
- immediate: s = !0,
756
- immediateCallback: r = !1
757
- } = n, i = F(!1);
908
+ immediate: r = !0,
909
+ immediateCallback: l = !1
910
+ } = n, c = K(!1);
758
911
  let o = null;
759
912
  function a() {
760
913
  o && (clearTimeout(o), o = null);
761
914
  }
762
- function c() {
763
- i.value = !1, a();
915
+ function d() {
916
+ c.value = !1, a();
764
917
  }
765
- function d(...l) {
766
- r && e(), a(), i.value = !0, o = setTimeout(() => {
767
- i.value = !1, o = null, e(...l);
768
- }, j(t));
918
+ function f(...s) {
919
+ l && e(), a(), c.value = !0, o = setTimeout(() => {
920
+ c.value = !1, o = null, e(...s);
921
+ }, W(t));
769
922
  }
770
- return s && (i.value = !0, te && d()), _e(c), {
771
- isPending: Re(i),
772
- start: d,
773
- stop: c
923
+ return r && (c.value = !0, oe && f()), Se(d), {
924
+ isPending: Ue(c),
925
+ start: f,
926
+ stop: d
774
927
  };
775
928
  }
776
- function bt(e, t, n) {
777
- return ze(
929
+ function Mt(e, t, n) {
930
+ return ke(
778
931
  e,
779
932
  t,
780
933
  {
@@ -783,158 +936,158 @@ function bt(e, t, n) {
783
936
  }
784
937
  );
785
938
  }
786
- const _t = te ? window : void 0, Ce = te ? window.navigator : void 0;
787
- function Ct(e) {
939
+ const Pt = oe ? window : void 0, we = oe ? window.navigator : void 0;
940
+ function Nt(e) {
788
941
  var t;
789
- const n = j(e);
942
+ const n = W(e);
790
943
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
791
944
  }
792
- function xe(...e) {
945
+ function $e(...e) {
793
946
  const t = [], n = () => {
794
947
  t.forEach((a) => a()), t.length = 0;
795
- }, s = (a, c, d, l) => (a.addEventListener(c, d, l), () => a.removeEventListener(c, d, l)), r = V(() => {
796
- const a = G(j(e[0])).filter((c) => c != null);
797
- return a.every((c) => typeof c != "string") ? a : void 0;
798
- }), i = bt(
948
+ }, r = (a, d, f, s) => (a.addEventListener(d, f, s), () => a.removeEventListener(d, f, s)), l = D(() => {
949
+ const a = Q(W(e[0])).filter((d) => d != null);
950
+ return a.every((d) => typeof d != "string") ? a : void 0;
951
+ }), c = Mt(
799
952
  () => {
800
- var a, c;
953
+ var a, d;
801
954
  return [
802
- (c = (a = r.value) == null ? void 0 : a.map((d) => Ct(d))) != null ? c : [_t].filter((d) => d != null),
803
- G(j(r.value ? e[1] : e[0])),
804
- G(N(r.value ? e[2] : e[1])),
955
+ (d = (a = l.value) == null ? void 0 : a.map((f) => Nt(f))) != null ? d : [Pt].filter((f) => f != null),
956
+ Q(W(l.value ? e[1] : e[0])),
957
+ Q(k(l.value ? e[2] : e[1])),
805
958
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
806
- j(r.value ? e[3] : e[2])
959
+ W(l.value ? e[3] : e[2])
807
960
  ];
808
961
  },
809
- ([a, c, d, l]) => {
810
- if (n(), !(a != null && a.length) || !(c != null && c.length) || !(d != null && d.length))
962
+ ([a, d, f, s]) => {
963
+ if (n(), !(a != null && a.length) || !(d != null && d.length) || !(f != null && f.length))
811
964
  return;
812
- const p = gt(l) ? { ...l } : l;
965
+ const i = wt(s) ? { ...s } : s;
813
966
  t.push(
814
967
  ...a.flatMap(
815
- (m) => c.flatMap(
816
- (b) => d.map((_) => s(m, b, _, p))
968
+ (u) => d.flatMap(
969
+ (v) => f.map((g) => r(u, v, g, i))
817
970
  )
818
971
  )
819
972
  );
820
973
  },
821
974
  { flush: "post" }
822
975
  ), o = () => {
823
- i(), n();
976
+ c(), n();
824
977
  };
825
- return _e(n), o;
978
+ return Se(n), o;
826
979
  }
827
- function xt() {
828
- const e = F(!1), t = H();
829
- return t && be(() => {
980
+ function At() {
981
+ const e = K(!1), t = G();
982
+ return t && Ce(() => {
830
983
  e.value = !0;
831
984
  }, t), e;
832
985
  }
833
- function we(e) {
834
- const t = xt();
835
- return V(() => (t.value, !!e()));
986
+ function Ee(e) {
987
+ const t = At();
988
+ return D(() => (t.value, !!e()));
836
989
  }
837
- function de(e, t = {}) {
990
+ function fe(e, t = {}) {
838
991
  const {
839
992
  controls: n = !1,
840
- navigator: s = Ce
841
- } = t, r = we(() => s && "permissions" in s), i = F(), o = typeof e == "string" ? { name: e } : e, a = F(), c = () => {
842
- var l, p;
843
- a.value = (p = (l = i.value) == null ? void 0 : l.state) != null ? p : "prompt";
993
+ navigator: r = we
994
+ } = t, l = Ee(() => r && "permissions" in r), c = K(), o = typeof e == "string" ? { name: e } : e, a = K(), d = () => {
995
+ var s, i;
996
+ a.value = (i = (s = c.value) == null ? void 0 : s.state) != null ? i : "prompt";
844
997
  };
845
- xe(i, "change", c, { passive: !0 });
846
- const d = yt(async () => {
847
- if (r.value) {
848
- if (!i.value)
998
+ $e(c, "change", d, { passive: !0 });
999
+ const f = $t(async () => {
1000
+ if (l.value) {
1001
+ if (!c.value)
849
1002
  try {
850
- i.value = await s.permissions.query(o);
1003
+ c.value = await r.permissions.query(o);
851
1004
  } catch {
852
- i.value = void 0;
1005
+ c.value = void 0;
853
1006
  } finally {
854
- c();
1007
+ d();
855
1008
  }
856
1009
  if (n)
857
- return Ie(i.value);
1010
+ return Ke(c.value);
858
1011
  }
859
1012
  });
860
- return d(), n ? {
1013
+ return f(), n ? {
861
1014
  state: a,
862
- isSupported: r,
863
- query: d
1015
+ isSupported: l,
1016
+ query: f
864
1017
  } : a;
865
1018
  }
866
- function wt(e = {}) {
1019
+ function Bt(e = {}) {
867
1020
  const {
868
- navigator: t = Ce,
1021
+ navigator: t = we,
869
1022
  read: n = !1,
870
- source: s,
871
- copiedDuring: r = 1500,
872
- legacy: i = !1
873
- } = e, o = we(() => t && "clipboard" in t), a = de("clipboard-read"), c = de("clipboard-write"), d = V(() => o.value || i), l = F(""), p = F(!1), m = ht(() => p.value = !1, r, { immediate: !1 });
874
- async function b() {
875
- let u = !(o.value && v(a.value));
876
- if (!u)
1023
+ source: r,
1024
+ copiedDuring: l = 1500,
1025
+ legacy: c = !1
1026
+ } = e, o = Ee(() => t && "clipboard" in t), a = fe("clipboard-read"), d = fe("clipboard-write"), f = D(() => o.value || c), s = K(""), i = K(!1), u = Et(() => i.value = !1, l, { immediate: !1 });
1027
+ async function v() {
1028
+ let p = !(o.value && h(a.value));
1029
+ if (!p)
877
1030
  try {
878
- l.value = await t.clipboard.readText();
1031
+ s.value = await t.clipboard.readText();
879
1032
  } catch {
880
- u = !0;
1033
+ p = !0;
881
1034
  }
882
- u && (l.value = g());
1035
+ p && (s.value = y());
883
1036
  }
884
- d.value && n && xe(["copy", "cut"], b, { passive: !0 });
885
- async function _(u = j(s)) {
886
- if (d.value && u != null) {
887
- let y = !(o.value && v(c.value));
888
- if (!y)
1037
+ f.value && n && $e(["copy", "cut"], v, { passive: !0 });
1038
+ async function g(p = W(r)) {
1039
+ if (f.value && p != null) {
1040
+ let b = !(o.value && h(d.value));
1041
+ if (!b)
889
1042
  try {
890
- await t.clipboard.writeText(u);
1043
+ await t.clipboard.writeText(p);
891
1044
  } catch {
892
- y = !0;
1045
+ b = !0;
893
1046
  }
894
- y && f(u), l.value = u, p.value = !0, m.start();
1047
+ b && m(p), s.value = p, i.value = !0, u.start();
895
1048
  }
896
1049
  }
897
- function f(u) {
898
- const y = document.createElement("textarea");
899
- y.value = u ?? "", y.style.position = "absolute", y.style.opacity = "0", document.body.appendChild(y), y.select(), document.execCommand("copy"), y.remove();
1050
+ function m(p) {
1051
+ const b = document.createElement("textarea");
1052
+ b.value = p ?? "", b.style.position = "absolute", b.style.opacity = "0", document.body.appendChild(b), b.select(), document.execCommand("copy"), b.remove();
900
1053
  }
901
- function g() {
902
- var u, y, h;
903
- return (h = (y = (u = document == null ? void 0 : document.getSelection) == null ? void 0 : u.call(document)) == null ? void 0 : y.toString()) != null ? h : "";
1054
+ function y() {
1055
+ var p, b, _;
1056
+ return (_ = (b = (p = document == null ? void 0 : document.getSelection) == null ? void 0 : p.call(document)) == null ? void 0 : b.toString()) != null ? _ : "";
904
1057
  }
905
- function v(u) {
906
- return u === "granted" || u === "prompt";
1058
+ function h(p) {
1059
+ return p === "granted" || p === "prompt";
907
1060
  }
908
1061
  return {
909
- isSupported: d,
910
- text: l,
911
- copied: p,
912
- copy: _
1062
+ isSupported: f,
1063
+ text: s,
1064
+ copied: i,
1065
+ copy: g
913
1066
  };
914
1067
  }
915
- const kt = wt();
916
- let Y;
917
- const St = {
1068
+ const Tt = Bt();
1069
+ let J;
1070
+ const Dt = {
918
1071
  mounted(e, t, n) {
919
1072
  var o, a;
920
- const s = ee(n.ctx), r = ((a = (o = s == null ? void 0 : s.locale) == null ? void 0 : o.locale) == null ? void 0 : a.slice(0, 2)) || "en", i = {
1073
+ const r = ne(n.ctx), l = ((a = (o = r == null ? void 0 : r.locale) == null ? void 0 : o.locale) == null ? void 0 : a.slice(0, 2)) || "en", c = {
921
1074
  zh: "复制成功",
922
1075
  en: "Copy successfully",
923
1076
  fr: "Copie réussie"
924
1077
  };
925
- e.copyValue = t.value, Y = () => {
926
- kt.copy(e.copyValue), Ze.success(i[r]);
927
- }, e.addEventListener("click", Y);
1078
+ e.copyValue = t.value, J = () => {
1079
+ Tt.copy(e.copyValue), Je.success(c[l]);
1080
+ }, e.addEventListener("click", J);
928
1081
  },
929
1082
  updated(e, t) {
930
1083
  e.copyValue = t.value;
931
1084
  },
932
1085
  unmounted(e) {
933
- e.removeEventListener("click", Y);
1086
+ e.removeEventListener("click", J);
934
1087
  }
935
- }, Et = {
1088
+ }, jt = {
936
1089
  beforeMount(e, t, n) {
937
- const s = t.value, r = {
1090
+ const r = t.value, l = {
938
1091
  letterNumber: /^\w*$/,
939
1092
  // 字母和数字
940
1093
  price: /^(\d*|(\d+\.\d{0,2}))$/,
@@ -946,10 +1099,10 @@ const St = {
946
1099
  verify: /^\d{0,6}$/,
947
1100
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
948
1101
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
949
- }, i = s instanceof RegExp ? s : t.arg && r[t.arg] ? r[t.arg] : null;
1102
+ }, c = r instanceof RegExp ? r : t.arg && l[t.arg] ? l[t.arg] : null;
950
1103
  e._handleInput = (o) => {
951
1104
  if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
952
- const a = i == null ? void 0 : i.test(o.target.value);
1105
+ const a = c == null ? void 0 : c.test(o.target.value);
953
1106
  if (e._input = a ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !a)
954
1107
  o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
955
1108
  else
@@ -967,10 +1120,10 @@ const St = {
967
1120
  case "insertFromPaste":
968
1121
  //粘贴
969
1122
  case "insertFromDrop":
970
- const d = o.dataTransfer || o.clipboardData || null;
971
- if (d) {
972
- const l = d.getData("text") || "";
973
- o.target.selectionStart = e._start + l.length, o.target.selectionEnd = e._start + l.length;
1123
+ const f = o.dataTransfer || o.clipboardData || null;
1124
+ if (f) {
1125
+ const s = f.getData("text") || "";
1126
+ o.target.selectionStart = e._start + s.length, o.target.selectionEnd = e._start + s.length;
974
1127
  }
975
1128
  break;
976
1129
  case "insertText":
@@ -979,13 +1132,13 @@ const St = {
979
1132
  o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
980
1133
  break;
981
1134
  }
982
- const c = new InputEvent("input", {
1135
+ const d = new InputEvent("input", {
983
1136
  isComposing: !1
984
1137
  });
985
- o.target.dispatchEvent(c);
1138
+ o.target.dispatchEvent(d);
986
1139
  }
987
1140
  }, e._handleKeydown = (o) => {
988
- const a = i == null ? void 0 : i.test(o.target.value);
1141
+ const a = c == null ? void 0 : c.test(o.target.value);
989
1142
  e._input = a ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
990
1143
  }, e._handleDrop = (o) => {
991
1144
  o.stopPropagation();
@@ -995,201 +1148,203 @@ const St = {
995
1148
  e._handleInput && e.removeEventListener("input", e._handleInput), e._handleKeydown && e.removeEventListener("keydown", e._handleKeydown), e._handleDrop && e.removeEventListener("drop", e._handleDrop);
996
1149
  }
997
1150
  };
998
- function pe(e, t, n) {
999
- const s = t.value;
1000
- if (s) {
1001
- const r = s / 2;
1002
- e.style.marginLeft = `-${r}px`, e.style.marginRight = `-${r}px`;
1003
- const i = n.children;
1004
- i != null && i.length && i[0].children.forEach((o) => {
1151
+ function me(e, t, n) {
1152
+ const r = t.value;
1153
+ if (r) {
1154
+ const l = r / 2;
1155
+ e.style.marginLeft = `-${l}px`, e.style.marginRight = `-${l}px`;
1156
+ const c = n.children;
1157
+ c != null && c.length && c[0].children.forEach((o) => {
1005
1158
  if (o.component) {
1006
1159
  const a = o.el;
1007
- a != null && a.style && (a.style.paddingLeft = r + "px", a.style.paddingRight = r + "px");
1160
+ a != null && a.style && (a.style.paddingLeft = l + "px", a.style.paddingRight = l + "px");
1008
1161
  } else Array.isArray(o.children) && o.children.forEach((a) => {
1009
- const c = a.el;
1010
- c != null && c.style && (c.style.paddingLeft = r + "px", c.style.paddingRight = r + "px");
1162
+ const d = a.el;
1163
+ d != null && d.style && (d.style.paddingLeft = l + "px", d.style.paddingRight = l + "px");
1011
1164
  });
1012
1165
  });
1013
1166
  }
1014
1167
  }
1015
- const Mt = {
1168
+ const Lt = {
1016
1169
  beforeMount(e) {
1017
1170
  e.classList.add("ant-row"), e.style.display = "flex", e.style.flexWrap = "wrap", e.style.flexDirection = "row", e.style.minWidth = 0;
1018
1171
  },
1019
1172
  mounted(e, t, n) {
1020
- pe(e, t, n);
1173
+ me(e, t, n);
1021
1174
  },
1022
- updated(e, t, n, s) {
1023
- pe(e, t, n);
1175
+ updated(e, t, n, r) {
1176
+ me(e, t, n);
1024
1177
  }
1025
- }, $t = {
1178
+ }, Rt = {
1026
1179
  beforeMount(e, t) {
1027
1180
  e.classList.add("ant-col", `ant-col-${t.value}`);
1028
1181
  const n = t.value / 24 * 100;
1029
1182
  e.style.position = "relative", e.style.flex = `0 0 ${n}%`, e.style.maxWidth = `${n}%`;
1030
1183
  }
1031
- }, Nt = {
1184
+ }, Ot = {
1032
1185
  mounted(e, t, n) {
1033
- const { value: s } = t, {
1034
- content: r = "",
1035
- placement: i = "top",
1186
+ const { value: r } = t, {
1187
+ content: l = "",
1188
+ placement: c = "top",
1036
1189
  enabled: o = !0,
1037
1190
  padding: a = 8,
1038
1191
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1039
- ...c
1040
- } = typeof s == "string" ? { content: s } : s;
1192
+ ...d
1193
+ } = typeof r == "string" ? { content: r } : r;
1041
1194
  if (e.tooltipDisabled = !1, !o)
1042
1195
  e.tooltipDisabled = !0;
1043
1196
  else if (t.modifiers.exceed) {
1044
- const b = e.clientWidth, _ = fe(r);
1045
- e.tooltipDisabled = b ? _ < b - a * 2 : !0;
1197
+ const v = e.clientWidth, g = ve(l);
1198
+ e.tooltipDisabled = v ? g < v - a * 2 : !0;
1046
1199
  }
1047
- const d = C({
1200
+ const f = C({
1048
1201
  top: 0,
1049
1202
  left: 0,
1050
1203
  bottom: 0,
1051
1204
  right: 0
1052
- }), l = C({
1053
- getBoundingClientRect: () => d.value
1054
- }), p = D(Ye, {
1205
+ }), s = C({
1206
+ getBoundingClientRect: () => f.value
1207
+ }), i = R(tt, {
1055
1208
  visible: !1,
1056
- content: r,
1057
- placement: i,
1209
+ content: l,
1210
+ placement: c,
1058
1211
  virtualTriggering: !0,
1059
- virtualRef: l.value,
1212
+ virtualRef: s.value,
1060
1213
  popperClass: "vtooltip",
1061
- ...c
1062
- }), m = document.createDocumentFragment();
1063
- U(p, m), e.tooltipVm = p, e.tooltipContainer = m, e.addEventListener("mouseenter", () => {
1064
- d.value = e.getBoundingClientRect(), p.component && !e.tooltipDisabled && (Object.assign(p.component.props, { visible: !0 }), p.component.update());
1214
+ ...d
1215
+ }), u = document.createDocumentFragment();
1216
+ X(i, u), e.tooltipVm = i, e.tooltipContainer = u, e.addEventListener("mouseenter", () => {
1217
+ f.value = e.getBoundingClientRect(), i.component && !e.tooltipDisabled && (Object.assign(i.component.props, { visible: !0 }), i.component.update());
1065
1218
  }), e.addEventListener("mouseleave", () => {
1066
- p.component && (Object.assign(p.component.props, { visible: !1 }), p.component.update());
1219
+ i.component && (Object.assign(i.component.props, { visible: !1 }), i.component.update());
1067
1220
  });
1068
1221
  },
1069
1222
  updated(e, t) {
1070
1223
  if (e.tooltipVm) {
1071
1224
  const { value: n } = t, {
1072
- content: s = "",
1073
- placement: r = "top",
1074
- enabled: i = !0,
1225
+ content: r = "",
1226
+ placement: l = "top",
1227
+ enabled: c = !0,
1075
1228
  padding: o = 8,
1076
1229
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1077
1230
  ...a
1078
1231
  } = typeof n == "string" ? { content: n } : n;
1079
- if (e.tooltipDisabled = !1, !i)
1232
+ if (e.tooltipDisabled = !1, !c)
1080
1233
  e.tooltipDisabled = !0;
1081
1234
  else if (t.modifiers.exceed) {
1082
- const d = e.clientWidth, l = fe(s);
1083
- e.tooltipDisabled = d ? l < d - o * 2 : !0;
1235
+ const f = e.clientWidth, s = ve(r);
1236
+ e.tooltipDisabled = f ? s < f - o * 2 : !0;
1084
1237
  }
1085
- const c = e.tooltipVm;
1086
- c.component && (Object.assign(c.component.props, { content: s, placement: r, ...a }), c.component.update());
1238
+ const d = e.tooltipVm;
1239
+ d.component && (Object.assign(d.component.props, { content: r, placement: l, ...a }), d.component.update());
1087
1240
  }
1088
1241
  },
1089
1242
  unmounted(e) {
1090
- e.tooltipContainer && U(null, e.tooltipContainer);
1243
+ e.tooltipContainer && X(null, e.tooltipContainer);
1091
1244
  }
1092
1245
  };
1093
- function fe(e, t) {
1094
- const s = document.createElement("canvas").getContext("2d");
1095
- return s.font = "14px Arial", s.measureText(e).width;
1246
+ function ve(e, t) {
1247
+ const r = document.createElement("canvas").getContext("2d");
1248
+ return r.font = "14px Arial", r.measureText(e).width;
1096
1249
  }
1097
- const Tt = {
1250
+ const It = {
1098
1251
  beforeMount(e, t) {
1099
1252
  const { value: n } = t;
1100
- n && (Ue(n) || setTimeout(() => {
1101
- var r;
1102
- (r = e.parentNode) == null || r.removeChild(e);
1253
+ n && (qe(n) || setTimeout(() => {
1254
+ var l;
1255
+ (l = e.parentNode) == null || l.removeChild(e);
1103
1256
  }, 50));
1104
1257
  }
1105
1258
  };
1106
- function me(e, t = 4) {
1259
+ function ge(e, t = 4) {
1107
1260
  const n = new RegExp(`(.{${t}})`, "g");
1108
1261
  return e.replace(n, "$1 ").trim();
1109
1262
  }
1110
- const Lt = {
1263
+ const Wt = {
1111
1264
  mounted(e, t) {
1112
- const { value: n } = t, { content: s = "", spaceNum: r = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, i = s.replace(/\s+/g, "");
1113
- e.textContent = me(i, r) || "-";
1265
+ const { value: n } = t, { content: r = "", spaceNum: l = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, c = r.replace(/\s+/g, "");
1266
+ e.textContent = ge(c, l) || "-";
1114
1267
  },
1115
1268
  updated(e, t) {
1116
- const { value: n } = t, { content: s = "", spaceNum: r = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, i = s.replace(/\s+/g, "");
1117
- e.textContent = me(i, r) || "-";
1269
+ const { value: n } = t, { content: r = "", spaceNum: l = 4 } = typeof n == "object" ? n || {} : { content: n + "" }, c = r.replace(/\s+/g, "");
1270
+ e.textContent = ge(c, l) || "-";
1118
1271
  }
1119
- }, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1272
+ }, ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1120
1273
  __proto__: null,
1121
- col: $t,
1122
- copy: St,
1123
- inputlimit: Et,
1124
- permission: Tt,
1125
- row: Mt,
1126
- space: Lt,
1127
- tooltip: Nt
1274
+ col: Rt,
1275
+ copy: Dt,
1276
+ inputlimit: jt,
1277
+ permission: It,
1278
+ row: Lt,
1279
+ space: Wt,
1280
+ tooltip: Ot
1128
1281
  }, Symbol.toStringTag, { value: "Module" }));
1129
- function Pt(e) {
1130
- Object.keys(ue).forEach((t) => {
1131
- e.component(t, ue[t]);
1132
- }), Object.keys(ve).forEach((t) => {
1133
- e.directive(t, ve[t]);
1282
+ function Ft(e) {
1283
+ Object.keys(pe).forEach((t) => {
1284
+ e.component(t, pe[t]);
1285
+ }), Object.keys(ye).forEach((t) => {
1286
+ e.directive(t, ye[t]);
1134
1287
  });
1135
1288
  }
1136
- const zt = { install: Pt };
1289
+ const Gt = { install: Ft };
1137
1290
  export {
1138
- at as AInputNumberEx,
1139
- st as ARangePickerEx,
1140
- it as ATableEx,
1141
- Vt as UserCenterKey,
1142
- mt as WlNumberKeyboard,
1143
- lt as WlSplitter,
1144
- Kt as buildTree,
1145
- $t as col,
1146
- St as copy,
1147
- zt as default,
1148
- qt as exportFile,
1149
- Xt as forEachTree,
1150
- Ht as getButtonPermissions,
1151
- Zt as getLocale,
1152
- Gt as getMenuInfo,
1153
- Yt as getToken,
1154
- Qt as getUserCenterParams,
1155
- Jt as getUserCenterParamsByUrl,
1156
- en as getUserInfo,
1157
- Ue as hasPermission,
1158
- Et as inputlimit,
1159
- tn as is,
1160
- nn as isArray,
1161
- on as isAsyncFunction,
1162
- an as isBoolean,
1163
- sn as isClient,
1164
- rn as isDate,
1165
- ln as isDef,
1166
- cn as isElement,
1167
- un as isFunction,
1168
- dn as isImageDom,
1169
- pn as isNull,
1170
- B as isNullOrUndef,
1171
- fn as isNumber,
1172
- mn as isObject,
1173
- vn as isPromise,
1174
- gn as isServer,
1175
- yn as isString,
1176
- hn as isUndef,
1177
- bn as isWindow,
1178
- _n as logoutToUserCenter,
1179
- Tt as permission,
1180
- Cn as removeAll,
1181
- xn as removeLocale,
1182
- wn as removeToken,
1183
- Mt as row,
1184
- kn as setLocale,
1185
- Sn as setMenuInfo,
1186
- En as setToken,
1187
- Mn as setUserCenterParams,
1188
- $n as setUserInfo,
1189
- Lt as space,
1190
- Nn as toUserCenterConsole,
1191
- Nt as tooltip,
1192
- ee as useConfigProvider,
1193
- Ft as useFindParent,
1194
- Wt as useModal
1291
+ it as AInputNumberEx,
1292
+ ct as ARangePickerEx,
1293
+ dt as ATableEx,
1294
+ Jt as UserCenterKey,
1295
+ kt as WlIpInput,
1296
+ ht as WlNumberKeyboard,
1297
+ bt as WlRateSlider,
1298
+ pt as WlSplitter,
1299
+ en as buildTree,
1300
+ Rt as col,
1301
+ Dt as copy,
1302
+ Gt as default,
1303
+ tn as exportFile,
1304
+ nn as forEachTree,
1305
+ on as getButtonPermissions,
1306
+ an as getLocale,
1307
+ sn as getMenuInfo,
1308
+ rn as getToken,
1309
+ ln as getUserCenterParams,
1310
+ cn as getUserCenterParamsByUrl,
1311
+ un as getUserInfo,
1312
+ qe as hasPermission,
1313
+ jt as inputlimit,
1314
+ dn as is,
1315
+ pn as isArray,
1316
+ fn as isAsyncFunction,
1317
+ mn as isBoolean,
1318
+ vn as isClient,
1319
+ gn as isDate,
1320
+ yn as isDef,
1321
+ hn as isElement,
1322
+ bn as isFunction,
1323
+ _n as isImageDom,
1324
+ Cn as isNull,
1325
+ L as isNullOrUndef,
1326
+ xn as isNumber,
1327
+ kn as isObject,
1328
+ Sn as isPromise,
1329
+ wn as isServer,
1330
+ $n as isString,
1331
+ En as isUndef,
1332
+ Mn as isWindow,
1333
+ Pn as logoutToUserCenter,
1334
+ It as permission,
1335
+ Nn as removeAll,
1336
+ An as removeLocale,
1337
+ Bn as removeToken,
1338
+ Lt as row,
1339
+ Tn as setLocale,
1340
+ Dn as setMenuInfo,
1341
+ jn as setToken,
1342
+ Ln as setUserCenterParams,
1343
+ Rn as setUserInfo,
1344
+ Wt as space,
1345
+ On as toUserCenterConsole,
1346
+ Ot as tooltip,
1347
+ ne as useConfigProvider,
1348
+ Ht as useFindParent,
1349
+ Zt as useModal
1195
1350
  };