@witlink/components 2.0.0 → 2.0.1

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