@witlink/components 1.0.7 → 1.0.9

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 ke, RangePicker as Se, Table as Ee, Popover as Me, Input as Le, Row as $e, Col as Te, Button as Be } from "ant-design-vue/es";
2
- import { markRaw as Q, createElementBlock as P, openBlock as $, createElementVNode as M, defineComponent as V, mergeModels as K, useModel as ve, useSlots as ge, useAttrs as Ne, createBlock as z, mergeProps as F, createSlots as J, renderList as W, withCtx as E, unref as T, renderSlot as D, normalizeProps as he, guardReactiveProps as Oe, createVNode as B, ref as C, getCurrentInstance as H, render as I, h as j, computed as U, onMounted as ye, onUnmounted as je, normalizeClass as Pe, normalizeStyle as ae, isRef as Ae, withKeys as De, withModifiers as se, Fragment as re, createTextVNode as X, toDisplayString as ie, nextTick as le, shallowRef as R, shallowReadonly as Re, toValue as A, getCurrentScope as ze, onScopeDispose as Fe, watch as We, toRaw as Ie } from "vue";
3
- import { isNullOrUndef as O, hasPermission as Ue } from "./utils.js";
1
+ import { InputNumber as Ce, RangePicker as ke, Table as Se, Popover as Ee, Input as Me, Row as Le, Col as $e, Button as Te } from "ant-design-vue/es";
2
+ import { markRaw as Q, createElementBlock as A, openBlock as L, createElementVNode as E, defineComponent as q, mergeModels as H, useModel as ve, useSlots as ge, useAttrs as Be, createBlock as F, mergeProps as W, createSlots as J, renderList as I, withCtx as S, unref as $, renderSlot as R, normalizeProps as he, guardReactiveProps as Ne, createVNode as B, ref as x, getCurrentInstance as X, render as U, h as P, computed as V, onMounted as ye, onUnmounted as Oe, normalizeClass as je, normalizeStyle as ne, isRef as Pe, withKeys as Ae, withModifiers as oe, Fragment as ae, createTextVNode as Z, toDisplayString as se, nextTick as ie, shallowRef as z, shallowReadonly as De, toValue as D, getCurrentScope as Re, onScopeDispose as ze, watch as Fe, toRaw as We } from "vue";
3
+ import { isNullOrUndef as j, hasPermission as Ie } from "./utils.js";
4
4
  import { UserCenterKey as Ht, buildTree as Xt, exportFile as Zt, forEachTree as Yt, getButtonPermissions as Gt, getLocale as Qt, getMenuInfo as Jt, getToken as en, getUserCenterParams as tn, getUserCenterParamsByUrl as nn, getUserInfo as on, is as an, isArray as sn, isAsyncFunction as rn, isBoolean as ln, isClient as cn, isDate as un, isDef as dn, isElement as pn, isFunction as fn, isImageDom as mn, isNull as vn, isNumber as gn, isObject as hn, isPromise as yn, isServer as bn, isString as _n, isUndef as xn, isWindow as wn, logoutToUserCenter as Cn, removeAll as kn, removeLocale as Sn, removeToken as En, setLocale as Mn, setMenuInfo as Ln, setToken as $n, setUserCenterParams as Tn, setUserInfo as Bn, toUserCenterConsole as Nn } from "./utils.js";
5
- import ce from "dayjs";
6
- import { Drawer as L, App as Ve, Button as qe, ConfigProvider as Ke, Textarea as He, message as Xe } from "ant-design-vue";
5
+ import re from "dayjs";
6
+ import { Drawer as M, App as Ue, Modal as Ve, Button as qe, ConfigProvider as Ke, Textarea as He, message as Xe } from "ant-design-vue";
7
7
  import { ElScrollbar as Ze, ElTooltip as Ye } from "element-plus";
8
8
  const Ge = {
9
9
  class: "icon",
@@ -12,12 +12,12 @@ const Ge = {
12
12
  height: "1.2em"
13
13
  };
14
14
  function Qe(e, t) {
15
- return $(), P("svg", Ge, t[0] || (t[0] = [
16
- M("path", {
15
+ return L(), A("svg", Ge, t[0] || (t[0] = [
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"
19
19
  }, null, -1),
20
- M("path", {
20
+ E("path", {
21
21
  fill: "currentColor",
22
22
  d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"
23
23
  }, null, -1)
@@ -30,17 +30,17 @@ const Je = Q({ name: "ant-design-plus", render: Qe }), et = {
30
30
  height: "1.2em"
31
31
  };
32
32
  function tt(e, t) {
33
- return $(), P("svg", et, t[0] || (t[0] = [
34
- M("path", {
33
+ return L(), A("svg", et, t[0] || (t[0] = [
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 nt = Q({ name: "ant-design-minus", render: tt }), ot = /* @__PURE__ */ V({
40
+ const nt = Q({ name: "ant-design-minus", render: tt }), ot = /* @__PURE__ */ q({
41
41
  inheritAttrs: !1,
42
42
  __name: "index",
43
- props: /* @__PURE__ */ K({
43
+ props: /* @__PURE__ */ H({
44
44
  precision: {
45
45
  type: Number
46
46
  },
@@ -56,69 +56,69 @@ const nt = Q({ name: "ant-design-minus", render: tt }), ot = /* @__PURE__ */ V({
56
56
  value: {},
57
57
  valueModifiers: {}
58
58
  }),
59
- emits: /* @__PURE__ */ K(["change"], ["update:value"]),
59
+ emits: /* @__PURE__ */ H(["change"], ["update:value"]),
60
60
  setup(e, { emit: t }) {
61
- const n = ve(e, "value"), r = e, l = t, i = ge(), o = Ne();
61
+ const n = ve(e, "value"), s = e, i = t, r = ge(), o = Be();
62
62
  function a(p) {
63
- if (O(p))
64
- n.value = null, l("change", null);
63
+ if (j(p))
64
+ n.value = null, i("change", null);
65
65
  else {
66
- let h = p;
67
- r.stringMode && (h = Number(h).toFixed(r.precision)), n.value !== h && (n.value = h, l("change", h));
66
+ let m = p;
67
+ s.stringMode && (m = Number(m).toFixed(s.precision)), n.value !== m && (n.value = m, i("change", m));
68
68
  }
69
69
  }
70
- function u() {
71
- if (O(n.value))
70
+ function c() {
71
+ if (j(n.value))
72
72
  return;
73
73
  let p = n.value;
74
- r.stringMode && (p = Number(p).toFixed(r.precision)), n.value = p;
74
+ s.stringMode && (p = Number(p).toFixed(s.precision)), n.value = p;
75
75
  }
76
76
  function d() {
77
77
  if (o.disabled) return;
78
78
  const p = Number(n.value);
79
- !O(o.min) && p <= Number(o.min) || a(p - 1);
79
+ !j(o.min) && p <= Number(o.min) || a(p - 1);
80
80
  }
81
- function c() {
81
+ function l() {
82
82
  if (o.disabled) return;
83
83
  const p = Number(n.value);
84
- !O(o.max) && p >= Number(o.max) || a(p + 1);
84
+ !j(o.max) && p >= Number(o.max) || a(p + 1);
85
85
  }
86
- return (p, h) => {
87
- const _ = nt, w = Je, x = ke;
88
- return $(), z(x, F({
86
+ return (p, m) => {
87
+ const b = nt, _ = Je, f = Ce;
88
+ return L(), F(f, W({
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: u
94
+ onBlur: c
95
95
  }, p.$attrs), J({ _: 2 }, [
96
- W(Object.keys(T(i)), (f) => ({
97
- name: f,
98
- fn: E((m) => [
99
- D(p.$slots, f, he(Oe(m)))
96
+ I(Object.keys($(r)), (g) => ({
97
+ name: g,
98
+ fn: S((v) => [
99
+ R(p.$slots, g, he(Ne(v)))
100
100
  ])
101
101
  })),
102
102
  e.customControls ? {
103
103
  name: "addonBefore",
104
- fn: E(() => [
105
- M("div", {
104
+ fn: S(() => [
105
+ E("div", {
106
106
  class: "btn-control",
107
107
  onClick: d
108
108
  }, [
109
- B(_, { class: "btn-icon" })
109
+ B(b, { 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: E(() => [
117
- M("div", {
116
+ fn: S(() => [
117
+ E("div", {
118
118
  class: "btn-control",
119
- onClick: c
119
+ onClick: l
120
120
  }, [
121
- B(w, { class: "btn-icon" })
121
+ B(_, { class: "btn-icon" })
122
122
  ])
123
123
  ]),
124
124
  key: "1"
@@ -126,7 +126,7 @@ const nt = Q({ name: "ant-design-minus", render: tt }), ot = /* @__PURE__ */ V({
126
126
  ]), 1040, ["value", "precision", "stringMode", "controls"]);
127
127
  };
128
128
  }
129
- }), at = /* @__PURE__ */ V({
129
+ }), at = /* @__PURE__ */ q({
130
130
  __name: "index",
131
131
  props: {
132
132
  value: {},
@@ -156,32 +156,32 @@ const nt = Q({ name: "ant-design-minus", render: tt }), ot = /* @__PURE__ */ V({
156
156
  },
157
157
  emits: ["update:value", "change"],
158
158
  setup(e, { emit: t }) {
159
- const n = e, r = t, l = C(), i = C(), o = (c) => {
160
- const p = ce().add(n.max, n.maxUnit), h = ce().subtract(n.min, n.minUnit), _ = n.interval;
161
- if (!l.value || l.value.length === 0)
162
- return c.isAfter(p) || c.isBefore(h);
163
- const w = l.value[0] && (c.diff(l.value[0], "days") > _ || c.isAfter(p));
164
- return l.value[1] && (l.value[1].diff(c, "days") > _ || c.isBefore(h)) || w;
165
- }, a = (c) => {
166
- c ? (l.value = [], i.value = []) : i.value = void 0;
167
- }, u = (c) => {
168
- r("update:value", c), r("change", c);
169
- }, d = (c) => {
170
- l.value = c;
159
+ const n = e, s = t, i = x(), r = x(), o = (l) => {
160
+ const p = re().add(n.max, n.maxUnit), m = re().subtract(n.min, n.minUnit), b = n.interval;
161
+ if (!i.value || i.value.length === 0)
162
+ return l.isAfter(p) || l.isBefore(m);
163
+ const _ = i.value[0] && (l.diff(i.value[0], "days") > b || l.isAfter(p));
164
+ return i.value[1] && (i.value[1].diff(l, "days") > b || l.isBefore(m)) || _;
165
+ }, a = (l) => {
166
+ l ? (i.value = [], r.value = []) : r.value = void 0;
167
+ }, c = (l) => {
168
+ s("update:value", l), s("change", l);
169
+ }, d = (l) => {
170
+ i.value = l;
171
171
  };
172
- return (c, p) => {
173
- const h = Se;
174
- return $(), z(h, F({
175
- value: T(i) || e.value,
172
+ return (l, p) => {
173
+ const m = ke;
174
+ return L(), F(m, W({
175
+ value: $(r) || e.value,
176
176
  "disabled-date": o,
177
- onChange: u,
177
+ onChange: c,
178
178
  onOpenChange: a,
179
179
  onCalendarChange: d
180
- }, c.$attrs), J({ _: 2 }, [
181
- W(Object.keys(c.$slots), (_) => ({
182
- name: _,
183
- fn: E((w) => [
184
- D(c.$slots, _)
180
+ }, l.$attrs), J({ _: 2 }, [
181
+ I(Object.keys(l.$slots), (b) => ({
182
+ name: b,
183
+ fn: S((_) => [
184
+ R(l.$slots, b)
185
185
  ])
186
186
  }))
187
187
  ]), 1040, ["value"]);
@@ -189,16 +189,16 @@ const nt = Q({ name: "ant-design-minus", render: tt }), ot = /* @__PURE__ */ V({
189
189
  }
190
190
  });
191
191
  function ee(e) {
192
- e || (e = H());
193
- const t = (e == null ? void 0 : e.provides) || {}, n = st(t, "configProvider"), r = t[n];
192
+ e || (e = X());
193
+ const t = (e == null ? void 0 : e.provides) || {}, n = st(t, "configProvider"), s = t[n];
194
194
  return Object.fromEntries(
195
- Object.entries(r).map(([i, o]) => [i, T(o)])
195
+ Object.entries(s).map(([r, o]) => [r, $(o)])
196
196
  );
197
197
  }
198
198
  function st(e, t) {
199
199
  for (; e; ) {
200
200
  const n = Reflect.ownKeys(e).find(
201
- (r) => r === t || typeof r == "symbol" && r.description === t
201
+ (s) => s === t || typeof s == "symbol" && s.description === t
202
202
  );
203
203
  if (n)
204
204
  return n;
@@ -208,7 +208,7 @@ function st(e, t) {
208
208
  }
209
209
  function Wt(e) {
210
210
  var n;
211
- let t = (n = H()) == null ? void 0 : n.parent;
211
+ let t = (n = X()) == null ? void 0 : n.parent;
212
212
  for (; t; ) {
213
213
  if (t.type.name === e)
214
214
  return t;
@@ -216,175 +216,181 @@ function Wt(e) {
216
216
  }
217
217
  return null;
218
218
  }
219
- const rt = "data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.3125%205.5L2.3125%2012L7.3125%2018.5H22.3125V5.5H7.3125Z'%20stroke='%23272E3B'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.8125%209.5L15.8125%2014.5'%20stroke='%23272E3B'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.8125%209.5L10.8125%2014.5'%20stroke='%23272E3B'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
219
+ const it = "data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.3125%205.5L2.3125%2012L7.3125%2018.5H22.3125V5.5H7.3125Z'%20stroke='%23272E3B'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.8125%209.5L15.8125%2014.5'%20stroke='%23272E3B'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M15.8125%209.5L10.8125%2014.5'%20stroke='%23272E3B'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
220
220
  __proto__: null,
221
- default: rt
221
+ default: it
222
222
  }, Symbol.toStringTag, { value: "Module" })), lt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e", ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
223
223
  __proto__: null,
224
224
  default: lt
225
225
  }, Symbol.toStringTag, { value: "Module" }));
226
226
  function It(e) {
227
- return (/* @__PURE__ */ Object.assign({ "/src/assets/svg/clear.svg": it, "/src/assets/vue.svg": ct }))[`/src/assets/${e}`].default;
227
+ return (/* @__PURE__ */ Object.assign({ "/src/assets/svg/clear.svg": rt, "/src/assets/vue.svg": ct }))[`/src/assets/${e}`].default;
228
228
  }
229
- let N;
230
- L.destroy = function() {
231
- const e = L.instanceArr || [], t = e.pop();
232
- if (t && I(null, t.container), e.length > 0) {
229
+ let O, le, N, ce;
230
+ M.destroy = function() {
231
+ const e = M.instanceArr || [], t = e.pop();
232
+ if (t && U(null, t.container), e.length > 0) {
233
233
  const n = e[e.length - 1].instance;
234
234
  Object.assign(n.component.props, {
235
235
  contentWrapperStyle: { transform: null }
236
236
  }), n.component.update();
237
237
  }
238
238
  };
239
- L.destroyAll = function() {
240
- (L.instanceArr || []).forEach((t) => {
241
- I(null, t.container);
242
- }), L.instanceArr = [];
239
+ M.destroyAll = function() {
240
+ (M.instanceArr || []).forEach((t) => {
241
+ U(null, t.container);
242
+ }), M.instanceArr = [];
243
243
  };
244
244
  function Ut() {
245
- var _, w;
246
- const e = H(), { message: t, modal: n, notification: r } = Ve.useApp(), l = {
245
+ var l, p;
246
+ const e = X();
247
+ if (!N) {
248
+ const m = Ue.useApp();
249
+ N = m.modal, le = m.message, ce = m.notification;
250
+ }
251
+ N.info || (N = Ve);
252
+ const t = {
247
253
  zh: "关闭",
248
254
  en: "Close",
249
255
  fr: "fermeture"
250
- }, i = {
256
+ }, n = {
251
257
  zh: "请输入",
252
258
  en: "Please Enter",
253
259
  fr: "Veuillez entrer"
254
- }, o = ee(), a = ((w = (_ = o == null ? void 0 : o.locale) == null ? void 0 : _.locale) == null ? void 0 : w.slice(0, 2)) || "en";
255
- function u({ title: x, ...f }) {
256
- const m = C();
257
- return d({
258
- title: x,
259
- ...f,
260
+ }, s = ee(), i = ((p = (l = s == null ? void 0 : s.locale) == null ? void 0 : l.locale) == null ? void 0 : p.slice(0, 2)) || "en";
261
+ function r({ title: m, ...b }) {
262
+ const _ = x();
263
+ return o({
264
+ title: m,
265
+ ...b,
260
266
  comp: He,
261
267
  props: {
262
- placeholder: i[a],
268
+ placeholder: n[i],
263
269
  autoSize: { minRows: 6 },
264
- value: m,
265
- "onUpdate:value": (s) => {
266
- m.value = s;
270
+ value: _,
271
+ "onUpdate:value": (f) => {
272
+ _.value = f;
267
273
  },
268
- ...f.props
274
+ ...b.props
269
275
  },
270
276
  class: "modal-comp modal-comp-input",
271
277
  type: "confirm",
272
- onOk: () => new Promise((s, v) => {
273
- f.onOk && (f.onOk(m.value) ? s(1) : v()), s(1);
278
+ onOk: () => new Promise((f, g) => {
279
+ b.onOk && (b.onOk(_.value) ? f(1) : g()), f(1);
274
280
  })
275
281
  });
276
282
  }
277
- function d({ title: x, comp: f, props: m, ...s }) {
278
- const v = j(f, m), g = (s == null ? void 0 : s.type) ?? "info", y = {
279
- title: x,
280
- content: v,
283
+ function o({ title: m, comp: b, props: _, ...f }) {
284
+ const g = P(b, _), v = (f == null ? void 0 : f.type) ?? "info", u = {
285
+ title: m,
286
+ content: g,
281
287
  width: "auto",
282
288
  icon: null,
283
289
  closable: !0,
284
290
  maskClosable: !0,
285
291
  centered: !0,
286
292
  class: "modal-comp",
287
- ...s
293
+ ...f
288
294
  };
289
- switch (g) {
295
+ switch (v) {
290
296
  case "info":
291
- N = n.info(y);
297
+ O = N.info(u);
292
298
  break;
293
299
  case "warning":
294
- N = n.warning(y);
300
+ O = N.warning(u);
295
301
  break;
296
302
  case "success":
297
- N = n.success(y);
303
+ O = N.success(u);
298
304
  break;
299
305
  case "confirm":
300
- N = n.confirm(y);
306
+ O = N.confirm(u);
301
307
  break;
302
308
  }
303
- return N;
309
+ return O;
304
310
  }
305
- function c() {
306
- N == null || N.destroy();
311
+ function a() {
312
+ O == null || O.destroy();
307
313
  }
308
- function p({ title: x, comp: f, props: m, ...s }) {
309
- const v = s.getContainer || document.createDocumentFragment();
310
- L.instanceArr || (L.instanceArr = []);
311
- const g = L.instanceArr, y = g[g.length - 1];
312
- let b;
313
- if ((y == null ? void 0 : y.comp) === f) {
314
- const k = y.instance;
315
- Object.assign(k.component.props, { title: x, ...s }), k.component.update(), b = y.compInstance, Object.assign(b.component.props, { ...m }), b.component.update();
314
+ function c({ title: m, comp: b, props: _, ...f }) {
315
+ const g = f.getContainer || document.createDocumentFragment();
316
+ M.instanceArr || (M.instanceArr = []);
317
+ const v = M.instanceArr, u = v[v.length - 1];
318
+ let h;
319
+ if ((u == null ? void 0 : u.comp) === b) {
320
+ const y = u.instance;
321
+ Object.assign(y.component.props, { title: m, ...f }), y.component.update(), h = u.compInstance, Object.assign(h.component.props, { ..._ }), h.component.update();
316
322
  } else {
317
- if (y) {
318
- const oe = y.instance;
319
- Object.assign(oe.component.props, {
323
+ if (u) {
324
+ const K = u.instance;
325
+ Object.assign(K.component.props, {
320
326
  contentWrapperStyle: { transform: "translateX(-180px)" }
321
- }), oe.component.update();
327
+ }), K.component.update();
322
328
  }
323
- b = j(f, m);
324
- const k = {
325
- default: () => j(
329
+ h = P(b, _);
330
+ const y = {
331
+ default: () => P(
326
332
  Ze,
327
333
  { style: { height: "100%" }, wrapStyle: { overflowX: "hidden" } },
328
- b
334
+ h
329
335
  )
330
336
  };
331
- s.footer === void 0 && Object.assign(k, {
332
- footer: () => j(
337
+ f.footer === void 0 && Object.assign(y, {
338
+ footer: () => P(
333
339
  qe,
334
340
  {
335
341
  onClick: () => {
336
- L.destroy();
342
+ M.destroy();
337
343
  }
338
344
  },
339
- l[a]
345
+ t[i]
340
346
  )
341
347
  });
342
- const S = s.width || 992;
343
- delete s.width;
344
- const q = j(
345
- L,
348
+ const C = f.width || 992;
349
+ delete f.width;
350
+ const w = P(
351
+ M,
346
352
  {
347
- title: x,
348
- width: S,
353
+ title: m,
354
+ width: C,
349
355
  open: !0,
350
356
  class: "drawer-comp",
351
357
  footerStyle: {
352
358
  textAlign: "right"
353
359
  },
354
360
  onClose: () => {
355
- s != null && s.afterClose && s.afterClose(), L.destroy();
361
+ f != null && f.afterClose && f.afterClose(), M.destroy();
356
362
  },
357
- ...s
363
+ ...f
358
364
  },
359
- k
360
- ), Ce = o.getPrefixCls(), ne = j(
365
+ y
366
+ ), T = s.getPrefixCls(), k = P(
361
367
  Ke,
362
- { ...o, prefixCls: Ce },
363
- { default: () => q }
368
+ { ...s, prefixCls: T },
369
+ { default: () => w }
364
370
  );
365
- ne.appContext = e.appContext, I(ne, v), g.push({ instance: q, comp: f, compInstance: b, container: v });
371
+ k.appContext = e.appContext, U(k, g), v.push({ instance: w, comp: b, compInstance: h, container: g });
366
372
  }
367
373
  return {
368
- updateProps: (k) => {
369
- Object.assign(b.component.props, { ...k }), b.component.update();
374
+ updateProps: (y) => {
375
+ Object.assign(h.component.props, { ...y }), h.component.update();
370
376
  }
371
377
  };
372
378
  }
373
- function h() {
374
- L.destroy();
379
+ function d() {
380
+ M.destroy();
375
381
  }
376
382
  return {
377
- message: t,
378
- modal: n,
379
- notification: r,
380
- modalInput: u,
381
- modalComp: d,
382
- modalDestroy: c,
383
- drawerComp: p,
384
- drawerDestroy: h
383
+ message: le,
384
+ modal: N,
385
+ notification: ce,
386
+ modalInput: r,
387
+ modalComp: o,
388
+ modalDestroy: a,
389
+ drawerComp: c,
390
+ drawerDestroy: d
385
391
  };
386
392
  }
387
- const ut = /* @__PURE__ */ V({
393
+ const ut = /* @__PURE__ */ q({
388
394
  inheritAttrs: !1,
389
395
  __name: "index",
390
396
  props: {
@@ -398,74 +404,74 @@ const ut = /* @__PURE__ */ V({
398
404
  }
399
405
  },
400
406
  setup(e, { expose: t }) {
401
- const n = e, r = ge(), l = C([]), i = C(!1), o = C(0), a = C(1), u = C(10), d = C(), c = C(), p = {
407
+ const n = e, s = ge(), i = x([]), r = x(!1), o = x(0), a = x(1), c = x(10), d = x(), l = x(), p = {
402
408
  zh: "共 {num} 条",
403
409
  en: "Total {num} items",
404
410
  fr: "Total de {num}"
405
- }, h = ee(), _ = U(() => {
406
- var y, b;
407
- return ((b = (y = h == null ? void 0 : h.locale) == null ? void 0 : y.locale) == null ? void 0 : b.slice(0, 2)) || "en";
408
- }), w = U(() => ({
411
+ }, m = ee(), b = V(() => {
412
+ var C, w;
413
+ return ((w = (C = m == null ? void 0 : m.locale) == null ? void 0 : C.locale) == null ? void 0 : w.slice(0, 2)) || "en";
414
+ }), _ = V(() => ({
409
415
  total: o.value,
410
416
  current: a.value,
411
- pageSize: u.value,
417
+ pageSize: c.value,
412
418
  showSizeChanger: !0,
413
419
  size: "small",
414
- showTotal: (g) => p[_.value].replace("{num}", g)
420
+ showTotal: (y) => p[b.value].replace("{num}", y)
415
421
  }));
416
- function x() {
417
- var g;
422
+ function f() {
423
+ var y;
418
424
  if (typeof n.loadData == "function") {
419
- i.value = !0;
420
- const y = { pageNo: a.value, pageSize: u.value };
421
- n.formatSortParams && ((g = c.value) != null && g.orderMap) && (y[c.value.field + "SortField"] = c.value.orderMap), n.loadData(y, d.value, c.value).then((b) => {
422
- i.value = !1, (b == null ? void 0 : b.code) === 0 && (o.value = b.result.totalCount, l.value = b.result.data);
425
+ r.value = !0;
426
+ const C = { pageNo: a.value, pageSize: c.value };
427
+ n.formatSortParams && ((y = l.value) != null && y.orderMap) && (C[l.value.field + "SortField"] = l.value.orderMap), n.loadData(C, d.value, l.value).then((w) => {
428
+ r.value = !1, (w == null ? void 0 : w.code) === 0 && (o.value = w.result.totalCount, i.value = w.result.data);
423
429
  });
424
430
  }
425
431
  }
426
- function f(g, y, b) {
427
- if (a.value = g.current, u.value = g.pageSize, d.value = y, b) {
428
- const k = {
432
+ function g(y, C, w) {
433
+ if (a.value = y.current, c.value = y.pageSize, d.value = C, w) {
434
+ const T = {
429
435
  ascend: "asc",
430
436
  descend: "desc"
431
437
  };
432
- b.orderMap = k[b.order] || "";
438
+ w.orderMap = T[w.order] || "";
433
439
  }
434
- c.value = b, x();
440
+ l.value = w, f();
435
441
  }
436
- function m(g, y) {
437
- y.width = g;
442
+ function v(y, C) {
443
+ C.width = y;
438
444
  }
439
- function s() {
440
- a.value = 1, x();
445
+ function u() {
446
+ a.value = 1, f();
441
447
  }
442
- function v() {
443
- a.value = 1, o.value = 0, l.value = [];
448
+ function h() {
449
+ a.value = 1, o.value = 0, i.value = [];
444
450
  }
445
451
  return t({
446
- loadData: x,
447
- refresh: s,
448
- reset: v
449
- }), (g, y) => {
450
- const b = Ee;
451
- return $(), z(b, F({
452
+ loadData: f,
453
+ refresh: u,
454
+ reset: h
455
+ }), (y, C) => {
456
+ const w = Se;
457
+ return L(), F(w, W({
452
458
  class: "table-ex",
453
- loading: T(i),
454
- pagination: T(w),
455
- dataSource: T(l),
456
- onChange: f,
457
- onResizeColumn: m
458
- }, g.$attrs), J({ _: 2 }, [
459
- W(Object.keys(T(r)), (k) => ({
460
- name: k,
461
- fn: E((S) => [
462
- k !== "emptyText" ? D(g.$slots, k, he(F({ key: 0 }, S))) : D(g.$slots, k, { key: 1 })
459
+ loading: $(r),
460
+ pagination: $(_),
461
+ dataSource: $(i),
462
+ onChange: g,
463
+ onResizeColumn: v
464
+ }, y.$attrs), J({ _: 2 }, [
465
+ I(Object.keys($(s)), (T) => ({
466
+ name: T,
467
+ fn: S((k) => [
468
+ T !== "emptyText" ? R(y.$slots, T, he(W({ key: 0 }, k))) : R(y.$slots, T, { key: 1 })
463
469
  ])
464
470
  }))
465
471
  ]), 1040, ["loading", "pagination", "dataSource"]);
466
472
  };
467
473
  }
468
- }), dt = /* @__PURE__ */ V({
474
+ }), dt = /* @__PURE__ */ q({
469
475
  __name: "index",
470
476
  props: {
471
477
  leftMin: {
@@ -482,51 +488,51 @@ const ut = /* @__PURE__ */ V({
482
488
  }
483
489
  },
484
490
  setup(e) {
485
- const t = e, n = C(), r = C(), l = C({}), i = C({}), o = C(0.2);
491
+ const t = e, n = x(), s = x(), i = x({}), r = x({}), o = x(0.2);
486
492
  function a(d) {
487
- l.value = { width: `calc(${d * 100}% - 5px)` }, i.value = { width: `calc(${(1 - d) * 100}% - 5px)` };
493
+ i.value = { width: `calc(${d * 100}% - 5px)` }, r.value = { width: `calc(${(1 - d) * 100}% - 5px)` };
488
494
  }
489
- function u() {
495
+ function c() {
490
496
  const d = n.value;
491
497
  if (!d)
492
498
  return;
493
- const c = d.clientWidth, p = d.getBoundingClientRect(), h = p.left;
494
- function _(x) {
495
- x.preventDefault(), (x.clientX < p.left || x.clientX > p.right || x.clientY < p.top || x.clientY > p.bottom) && w();
496
- const m = (x.clientX - h) / c;
497
- m > t.leftMin && m < t.leftMax && (o.value = m, a(m));
499
+ const l = d.clientWidth, p = d.getBoundingClientRect(), m = p.left;
500
+ function b(f) {
501
+ f.preventDefault(), (f.clientX < p.left || f.clientX > p.right || f.clientY < p.top || f.clientY > p.bottom) && _();
502
+ const v = (f.clientX - m) / l;
503
+ v > t.leftMin && v < t.leftMax && (o.value = v, a(v));
498
504
  }
499
- function w() {
500
- document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", w);
505
+ function _() {
506
+ document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", _);
501
507
  }
502
- document.addEventListener("mousemove", _), document.addEventListener("mouseup", w);
508
+ document.addEventListener("mousemove", b), document.addEventListener("mouseup", _);
503
509
  }
504
510
  return ye(() => {
505
- a(o.value), r.value && r.value.addEventListener("mousedown", u, !1);
506
- }), je(() => {
507
- r.value && r.value.removeEventListener("mousedown", u);
508
- }), (d, c) => ($(), P("div", {
511
+ a(o.value), s.value && s.value.addEventListener("mousedown", c, !1);
512
+ }), Oe(() => {
513
+ s.value && s.value.removeEventListener("mousedown", c);
514
+ }), (d, l) => (L(), A("div", {
509
515
  ref_key: "container",
510
516
  ref: n,
511
- class: Pe(["wl-splitter", { bordered: e.bordered }])
517
+ class: je(["wl-splitter", { bordered: e.bordered }])
512
518
  }, [
513
- M("div", {
519
+ E("div", {
514
520
  class: "my-left",
515
- style: ae(T(l))
521
+ style: ne($(i))
516
522
  }, [
517
- D(d.$slots, "left")
523
+ R(d.$slots, "left")
518
524
  ], 4),
519
- M("div", {
525
+ E("div", {
520
526
  ref_key: "spliter",
521
- ref: r,
527
+ ref: s,
522
528
  style: { height: "100%", width: "10px" },
523
529
  class: "my-spliter"
524
530
  }, null, 512),
525
- M("div", {
531
+ E("div", {
526
532
  class: "my-right",
527
- style: ae(T(i))
533
+ style: ne($(r))
528
534
  }, [
529
- D(d.$slots, "right")
535
+ R(d.$slots, "right")
530
536
  ], 4)
531
537
  ], 2));
532
538
  }
@@ -539,20 +545,20 @@ const ut = /* @__PURE__ */ V({
539
545
  xmlns: "http://www.w3.org/2000/svg"
540
546
  };
541
547
  function ft(e, t) {
542
- return $(), P("svg", pt, t[0] || (t[0] = [
543
- M("path", {
548
+ return L(), A("svg", pt, t[0] || (t[0] = [
549
+ E("path", {
544
550
  d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
545
551
  stroke: "#272E3B",
546
552
  "stroke-linecap": "round",
547
553
  "stroke-linejoin": "round"
548
554
  }, null, -1),
549
- M("path", {
555
+ E("path", {
550
556
  d: "M10.8125 9.5L15.8125 14.5",
551
557
  stroke: "#272E3B",
552
558
  "stroke-linecap": "round",
553
559
  "stroke-linejoin": "round"
554
560
  }, null, -1),
555
- M("path", {
561
+ E("path", {
556
562
  d: "M15.8125 9.5L10.8125 14.5",
557
563
  stroke: "#272E3B",
558
564
  "stroke-linecap": "round",
@@ -560,10 +566,10 @@ function ft(e, t) {
560
566
  }, null, -1)
561
567
  ]));
562
568
  }
563
- const mt = Q({ name: "local-clear", render: ft }), vt = { class: "nums-box" }, gt = { class: "btn-box" }, ht = /* @__PURE__ */ V({
569
+ const mt = Q({ name: "local-clear", render: ft }), vt = { class: "nums-box" }, gt = { class: "btn-box" }, ht = /* @__PURE__ */ q({
564
570
  inheritAttrs: !1,
565
571
  __name: "index",
566
- props: /* @__PURE__ */ K({
572
+ props: /* @__PURE__ */ H({
567
573
  quickNums: {
568
574
  type: Array,
569
575
  default: () => [100, 500, 1e3, 1500, 2e3, 2500]
@@ -584,94 +590,94 @@ const mt = Q({ name: "local-clear", render: ft }), vt = { class: "nums-box" }, g
584
590
  value: { type: String },
585
591
  valueModifiers: {}
586
592
  }),
587
- emits: /* @__PURE__ */ K(["enter"], ["update:value"]),
593
+ emits: /* @__PURE__ */ H(["enter"], ["update:value"]),
588
594
  setup(e, { emit: t }) {
589
- const n = e, r = t, l = C(), i = C(), o = C(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), a = ve(e, "value"), u = C(!1);
595
+ const n = e, s = t, i = x(), r = x(), o = x(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), a = ve(e, "value"), c = x(!1);
590
596
  function d() {
591
- u.value = !0;
597
+ c.value = !0;
592
598
  }
593
- function c() {
594
- x();
599
+ function l() {
600
+ f();
595
601
  }
596
- function p(f) {
597
- i.value.focus(), a.value = Number(f).toFixed(n.precision);
602
+ function p(g) {
603
+ r.value.focus(), a.value = Number(g).toFixed(n.precision);
598
604
  }
599
- function h(f) {
600
- if (i.value.focus(), O(a.value) || a.value === "") {
601
- if (["00", "."].includes(f))
605
+ function m(g) {
606
+ if (r.value.focus(), j(a.value) || a.value === "") {
607
+ if (["00", "."].includes(g))
602
608
  return;
603
- a.value = f;
609
+ a.value = g;
604
610
  } else {
605
- const m = String(a.value), s = l.value.getElementsByTagName("input")[0], v = s.selectionStart || 0, g = s.selectionEnd || 0;
606
- a.value = `${m.slice(0, v)}${f}${m.slice(g)}`;
607
- const y = v + f.length;
608
- le(() => {
609
- i.value.setSelectionRange(y, y);
611
+ const v = String(a.value), u = i.value.getElementsByTagName("input")[0], h = u.selectionStart || 0, y = u.selectionEnd || 0;
612
+ a.value = `${v.slice(0, h)}${g}${v.slice(y)}`;
613
+ const C = h + g.length;
614
+ ie(() => {
615
+ r.value.setSelectionRange(C, C);
610
616
  });
611
617
  }
612
618
  }
613
- function _() {
614
- if (i.value.focus(), O(a.value))
619
+ function b() {
620
+ if (r.value.focus(), j(a.value))
615
621
  return;
616
- const f = String(a.value);
617
- if (f != null && f.length) {
618
- const m = l.value.getElementsByTagName("input")[0], s = m.selectionStart || 0, v = m.selectionEnd || 0, g = s > 0 ? s - 1 : 0;
619
- s === v ? a.value = f.slice(0, g) + f.slice(v) : a.value = f.slice(0, s) + f.slice(v), le(() => {
620
- i.value.setSelectionRange(g, g);
622
+ const g = String(a.value);
623
+ if (g != null && g.length) {
624
+ const v = i.value.getElementsByTagName("input")[0], u = v.selectionStart || 0, h = v.selectionEnd || 0, y = u > 0 ? u - 1 : 0;
625
+ u === h ? a.value = g.slice(0, y) + g.slice(h) : a.value = g.slice(0, u) + g.slice(h), ie(() => {
626
+ r.value.setSelectionRange(y, y);
621
627
  });
622
628
  }
623
629
  }
624
- function w() {
625
- i.value.blur();
630
+ function _() {
631
+ r.value.blur();
626
632
  }
627
- function x() {
628
- const f = n.min, m = n.max;
629
- let s = parseFloat(a.value || "0");
630
- O(f) || (s = s > f ? s : f), O(m) || (s = s > m ? m : s), a.value = Number(s).toFixed(n.precision), u.value = !1, r("enter");
633
+ function f() {
634
+ const g = n.min, v = n.max;
635
+ let u = parseFloat(a.value || "0");
636
+ j(g) || (u = u > g ? u : g), j(v) || (u = u > v ? v : u), a.value = Number(u).toFixed(n.precision), c.value = !1, s("enter");
631
637
  }
632
- return (f, m) => {
633
- const s = Be, v = Te, g = mt, y = $e, b = Le, k = Me;
634
- return $(), P("div", {
638
+ return (g, v) => {
639
+ const u = Te, h = $e, y = mt, C = Le, w = Me, T = Ee;
640
+ return L(), A("div", {
635
641
  class: "number-keyboard",
636
642
  ref_key: "numberKeyboard",
637
- ref: l
643
+ ref: i
638
644
  }, [
639
- B(k, {
645
+ B(T, {
640
646
  overlayClassName: "popover-keyboard",
641
647
  trigger: "manual",
642
648
  placement: "bottomLeft",
643
649
  align: { offset: [0, -9] },
644
- open: T(u),
645
- "onUpdate:open": m[2] || (m[2] = (S) => Ae(u) ? u.value = S : null)
650
+ open: $(c),
651
+ "onUpdate:open": v[2] || (v[2] = (k) => Pe(c) ? c.value = k : null)
646
652
  }, {
647
- content: E(() => [
648
- M("div", {
653
+ content: S(() => [
654
+ E("div", {
649
655
  class: "keyboard-panel",
650
- onMousedownCapture: m[0] || (m[0] = se(() => {
656
+ onMousedownCapture: v[0] || (v[0] = oe(() => {
651
657
  }, ["prevent", "stop"]))
652
658
  }, [
653
- B(y, { gutter: "8" }, {
654
- default: E(() => [
655
- B(v, { span: 18 }, {
656
- default: E(() => [
657
- M("div", vt, [
658
- ($(!0), P(re, null, W(e.quickNums, (S) => ($(), z(s, {
659
+ B(C, { gutter: "8" }, {
660
+ default: S(() => [
661
+ B(h, { span: 18 }, {
662
+ default: S(() => [
663
+ E("div", vt, [
664
+ (L(!0), A(ae, null, I(e.quickNums, (k) => (L(), F(u, {
659
665
  class: "btn-num",
660
- key: S,
661
- onClick: (q) => p(S)
666
+ key: k,
667
+ onClick: (K) => p(k)
662
668
  }, {
663
- default: E(() => [
664
- X(ie(S), 1)
669
+ default: S(() => [
670
+ Z(se(k), 1)
665
671
  ]),
666
672
  _: 2
667
673
  }, 1032, ["onClick"]))), 128)),
668
- ($(!0), P(re, null, W(T(o), (S) => ($(), z(s, {
674
+ (L(!0), A(ae, null, I($(o), (k) => (L(), F(u, {
669
675
  class: "btn-num",
670
- key: S,
671
- onClick: (q) => h(S)
676
+ key: k,
677
+ onClick: (K) => m(k)
672
678
  }, {
673
- default: E(() => [
674
- X(ie(S), 1)
679
+ default: S(() => [
680
+ Z(se(k), 1)
675
681
  ]),
676
682
  _: 2
677
683
  }, 1032, ["onClick"]))), 128))
@@ -679,25 +685,25 @@ const mt = Q({ name: "local-clear", render: ft }), vt = { class: "nums-box" }, g
679
685
  ]),
680
686
  _: 1
681
687
  }),
682
- B(v, { span: 6 }, {
683
- default: E(() => [
684
- M("div", gt, [
685
- B(s, {
688
+ B(h, { span: 6 }, {
689
+ default: S(() => [
690
+ E("div", gt, [
691
+ B(u, {
686
692
  class: "btn-clear",
687
- onClick: _
693
+ onClick: b
688
694
  }, {
689
- default: E(() => [
690
- B(g, { style: { width: "24px", height: "24px" } })
695
+ default: S(() => [
696
+ B(y, { style: { width: "24px", height: "24px" } })
691
697
  ]),
692
698
  _: 1
693
699
  }),
694
- B(s, {
700
+ B(u, {
695
701
  class: "btn-enter",
696
702
  type: "primary",
697
- onClick: se(w, ["stop"])
703
+ onClick: oe(_, ["stop"])
698
704
  }, {
699
- default: E(() => m[3] || (m[3] = [
700
- X("Enter ")
705
+ default: S(() => v[3] || (v[3] = [
706
+ Z("Enter ")
701
707
  ])),
702
708
  _: 1
703
709
  })
@@ -710,16 +716,16 @@ const mt = Q({ name: "local-clear", render: ft }), vt = { class: "nums-box" }, g
710
716
  })
711
717
  ], 32)
712
718
  ]),
713
- default: E(() => [
714
- B(b, F({
719
+ default: S(() => [
720
+ B(w, W({
715
721
  ref_key: "inputRef",
716
- ref: i,
722
+ ref: r,
717
723
  value: a.value,
718
- "onUpdate:value": m[1] || (m[1] = (S) => a.value = S)
719
- }, f.$attrs, {
724
+ "onUpdate:value": v[1] || (v[1] = (k) => a.value = k)
725
+ }, g.$attrs, {
720
726
  onFocus: d,
721
- onBlur: c,
722
- onKeyup: De(w, ["enter"])
727
+ onBlur: l,
728
+ onKeyup: Ae(_, ["enter"])
723
729
  }), null, 16, ["value"])
724
730
  ]),
725
731
  _: 1
@@ -736,7 +742,7 @@ const mt = Q({ name: "local-clear", render: ft }), vt = { class: "nums-box" }, g
736
742
  WlSplitter: dt
737
743
  }, Symbol.toStringTag, { value: "Module" }));
738
744
  function be(e) {
739
- return ze() ? (Fe(e), !0) : !1;
745
+ return Re() ? (ze(e), !0) : !1;
740
746
  }
741
747
  const te = typeof window < "u" && typeof document < "u";
742
748
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -747,38 +753,38 @@ function _t(e) {
747
753
  return t || (t = e()), t;
748
754
  }
749
755
  return n.reset = async () => {
750
- const r = t;
751
- t = void 0, r && await r;
756
+ const s = t;
757
+ t = void 0, s && await s;
752
758
  }, n;
753
759
  }
754
- function Z(e) {
760
+ function Y(e) {
755
761
  return Array.isArray(e) ? e : [e];
756
762
  }
757
763
  function xt(e, t, n = {}) {
758
764
  const {
759
- immediate: r = !0,
760
- immediateCallback: l = !1
761
- } = n, i = R(!1);
765
+ immediate: s = !0,
766
+ immediateCallback: i = !1
767
+ } = n, r = z(!1);
762
768
  let o = null;
763
769
  function a() {
764
770
  o && (clearTimeout(o), o = null);
765
771
  }
766
- function u() {
767
- i.value = !1, a();
772
+ function c() {
773
+ r.value = !1, a();
768
774
  }
769
- function d(...c) {
770
- l && e(), a(), i.value = !0, o = setTimeout(() => {
771
- i.value = !1, o = null, e(...c);
772
- }, A(t));
775
+ function d(...l) {
776
+ i && e(), a(), r.value = !0, o = setTimeout(() => {
777
+ r.value = !1, o = null, e(...l);
778
+ }, D(t));
773
779
  }
774
- return r && (i.value = !0, te && d()), be(u), {
775
- isPending: Re(i),
780
+ return s && (r.value = !0, te && d()), be(c), {
781
+ isPending: De(r),
776
782
  start: d,
777
- stop: u
783
+ stop: c
778
784
  };
779
785
  }
780
786
  function wt(e, t, n) {
781
- return We(
787
+ return Fe(
782
788
  e,
783
789
  t,
784
790
  {
@@ -790,80 +796,80 @@ function wt(e, t, n) {
790
796
  const Ct = te ? window : void 0, _e = te ? window.navigator : void 0;
791
797
  function kt(e) {
792
798
  var t;
793
- const n = A(e);
799
+ const n = D(e);
794
800
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
795
801
  }
796
802
  function xe(...e) {
797
803
  const t = [], n = () => {
798
804
  t.forEach((a) => a()), t.length = 0;
799
- }, r = (a, u, d, c) => (a.addEventListener(u, d, c), () => a.removeEventListener(u, d, c)), l = U(() => {
800
- const a = Z(A(e[0])).filter((u) => u != null);
801
- return a.every((u) => typeof u != "string") ? a : void 0;
802
- }), i = wt(
805
+ }, s = (a, c, d, l) => (a.addEventListener(c, d, l), () => a.removeEventListener(c, d, l)), i = V(() => {
806
+ const a = Y(D(e[0])).filter((c) => c != null);
807
+ return a.every((c) => typeof c != "string") ? a : void 0;
808
+ }), r = wt(
803
809
  () => {
804
- var a, u;
810
+ var a, c;
805
811
  return [
806
- (u = (a = l.value) == null ? void 0 : a.map((d) => kt(d))) != null ? u : [Ct].filter((d) => d != null),
807
- Z(A(l.value ? e[1] : e[0])),
808
- Z(T(l.value ? e[2] : e[1])),
812
+ (c = (a = i.value) == null ? void 0 : a.map((d) => kt(d))) != null ? c : [Ct].filter((d) => d != null),
813
+ Y(D(i.value ? e[1] : e[0])),
814
+ Y($(i.value ? e[2] : e[1])),
809
815
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
810
- A(l.value ? e[3] : e[2])
816
+ D(i.value ? e[3] : e[2])
811
817
  ];
812
818
  },
813
- ([a, u, d, c]) => {
814
- if (n(), !(a != null && a.length) || !(u != null && u.length) || !(d != null && d.length))
819
+ ([a, c, d, l]) => {
820
+ if (n(), !(a != null && a.length) || !(c != null && c.length) || !(d != null && d.length))
815
821
  return;
816
- const p = bt(c) ? { ...c } : c;
822
+ const p = bt(l) ? { ...l } : l;
817
823
  t.push(
818
824
  ...a.flatMap(
819
- (h) => u.flatMap(
820
- (_) => d.map((w) => r(h, _, w, p))
825
+ (m) => c.flatMap(
826
+ (b) => d.map((_) => s(m, b, _, p))
821
827
  )
822
828
  )
823
829
  );
824
830
  },
825
831
  { flush: "post" }
826
832
  ), o = () => {
827
- i(), n();
833
+ r(), n();
828
834
  };
829
835
  return be(n), o;
830
836
  }
831
837
  function St() {
832
- const e = R(!1), t = H();
838
+ const e = z(!1), t = X();
833
839
  return t && ye(() => {
834
840
  e.value = !0;
835
841
  }, t), e;
836
842
  }
837
843
  function we(e) {
838
844
  const t = St();
839
- return U(() => (t.value, !!e()));
845
+ return V(() => (t.value, !!e()));
840
846
  }
841
847
  function de(e, t = {}) {
842
848
  const {
843
849
  controls: n = !1,
844
- navigator: r = _e
845
- } = t, l = we(() => r && "permissions" in r), i = R(), o = typeof e == "string" ? { name: e } : e, a = R(), u = () => {
846
- var c, p;
847
- a.value = (p = (c = i.value) == null ? void 0 : c.state) != null ? p : "prompt";
850
+ navigator: s = _e
851
+ } = t, i = we(() => s && "permissions" in s), r = z(), o = typeof e == "string" ? { name: e } : e, a = z(), c = () => {
852
+ var l, p;
853
+ a.value = (p = (l = r.value) == null ? void 0 : l.state) != null ? p : "prompt";
848
854
  };
849
- xe(i, "change", u, { passive: !0 });
855
+ xe(r, "change", c, { passive: !0 });
850
856
  const d = _t(async () => {
851
- if (l.value) {
852
- if (!i.value)
857
+ if (i.value) {
858
+ if (!r.value)
853
859
  try {
854
- i.value = await r.permissions.query(o);
860
+ r.value = await s.permissions.query(o);
855
861
  } catch {
856
- i.value = void 0;
862
+ r.value = void 0;
857
863
  } finally {
858
- u();
864
+ c();
859
865
  }
860
866
  if (n)
861
- return Ie(i.value);
867
+ return We(r.value);
862
868
  }
863
869
  });
864
870
  return d(), n ? {
865
871
  state: a,
866
- isSupported: l,
872
+ isSupported: i,
867
873
  query: d
868
874
  } : a;
869
875
  }
@@ -871,74 +877,74 @@ function Et(e = {}) {
871
877
  const {
872
878
  navigator: t = _e,
873
879
  read: n = !1,
874
- source: r,
875
- copiedDuring: l = 1500,
876
- legacy: i = !1
877
- } = e, o = we(() => t && "clipboard" in t), a = de("clipboard-read"), u = de("clipboard-write"), d = U(() => o.value || i), c = R(""), p = R(!1), h = xt(() => p.value = !1, l, { immediate: !1 });
878
- async function _() {
879
- let s = !(o.value && m(a.value));
880
- if (!s)
880
+ source: s,
881
+ copiedDuring: i = 1500,
882
+ legacy: r = !1
883
+ } = e, o = we(() => t && "clipboard" in t), a = de("clipboard-read"), c = de("clipboard-write"), d = V(() => o.value || r), l = z(""), p = z(!1), m = xt(() => p.value = !1, i, { immediate: !1 });
884
+ async function b() {
885
+ let u = !(o.value && v(a.value));
886
+ if (!u)
881
887
  try {
882
- c.value = await t.clipboard.readText();
888
+ l.value = await t.clipboard.readText();
883
889
  } catch {
884
- s = !0;
890
+ u = !0;
885
891
  }
886
- s && (c.value = f());
892
+ u && (l.value = g());
887
893
  }
888
- d.value && n && xe(["copy", "cut"], _, { passive: !0 });
889
- async function w(s = A(r)) {
890
- if (d.value && s != null) {
891
- let v = !(o.value && m(u.value));
892
- if (!v)
894
+ d.value && n && xe(["copy", "cut"], b, { passive: !0 });
895
+ async function _(u = D(s)) {
896
+ if (d.value && u != null) {
897
+ let h = !(o.value && v(c.value));
898
+ if (!h)
893
899
  try {
894
- await t.clipboard.writeText(s);
900
+ await t.clipboard.writeText(u);
895
901
  } catch {
896
- v = !0;
902
+ h = !0;
897
903
  }
898
- v && x(s), c.value = s, p.value = !0, h.start();
904
+ h && f(u), l.value = u, p.value = !0, m.start();
899
905
  }
900
906
  }
901
- function x(s) {
902
- const v = document.createElement("textarea");
903
- v.value = s ?? "", v.style.position = "absolute", v.style.opacity = "0", document.body.appendChild(v), v.select(), document.execCommand("copy"), v.remove();
907
+ function f(u) {
908
+ const h = document.createElement("textarea");
909
+ h.value = u ?? "", h.style.position = "absolute", h.style.opacity = "0", document.body.appendChild(h), h.select(), document.execCommand("copy"), h.remove();
904
910
  }
905
- function f() {
906
- var s, v, g;
907
- return (g = (v = (s = document == null ? void 0 : document.getSelection) == null ? void 0 : s.call(document)) == null ? void 0 : v.toString()) != null ? g : "";
911
+ function g() {
912
+ var u, h, y;
913
+ return (y = (h = (u = document == null ? void 0 : document.getSelection) == null ? void 0 : u.call(document)) == null ? void 0 : h.toString()) != null ? y : "";
908
914
  }
909
- function m(s) {
910
- return s === "granted" || s === "prompt";
915
+ function v(u) {
916
+ return u === "granted" || u === "prompt";
911
917
  }
912
918
  return {
913
919
  isSupported: d,
914
- text: c,
920
+ text: l,
915
921
  copied: p,
916
- copy: w
922
+ copy: _
917
923
  };
918
924
  }
919
925
  const Mt = Et();
920
- let Y, G;
926
+ let G;
921
927
  const Lt = {
922
928
  mounted(e, t, n) {
923
929
  var o, a;
924
- const r = ee(n.ctx), l = ((a = (o = r == null ? void 0 : r.locale) == null ? void 0 : o.locale) == null ? void 0 : a.slice(0, 2)) || "en", i = {
930
+ const s = ee(n.ctx), i = ((a = (o = s == null ? void 0 : s.locale) == null ? void 0 : o.locale) == null ? void 0 : a.slice(0, 2)) || "en", r = {
925
931
  zh: "复制成功",
926
932
  en: "Copy successfully",
927
933
  fr: "Copie réussie"
928
934
  };
929
- Y = t.value, G = () => {
930
- Mt.copy(Y), Xe.success(i[l]);
935
+ e.copyValue = t.value, G = () => {
936
+ Mt.copy(e.copyValue), Xe.success(r[i]);
931
937
  }, e.addEventListener("click", G);
932
938
  },
933
939
  updated(e, t) {
934
- Y = t.value;
940
+ e.copyValue = t.value;
935
941
  },
936
942
  unmounted(e) {
937
943
  e.removeEventListener("click", G);
938
944
  }
939
945
  }, $t = {
940
946
  beforeMount(e, t, n) {
941
- const r = t.value, l = {
947
+ const s = t.value, i = {
942
948
  letterNumber: /^\w*$/,
943
949
  // 字母和数字
944
950
  price: /^(\d*|(\d+\.\d{0,2}))$/,
@@ -950,10 +956,10 @@ const Lt = {
950
956
  verify: /^\d{0,6}$/,
951
957
  idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
952
958
  //身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
953
- }, i = r instanceof RegExp ? r : t.arg && l[t.arg] ? l[t.arg] : null;
959
+ }, r = s instanceof RegExp ? s : t.arg && i[t.arg] ? i[t.arg] : null;
954
960
  e._handleInput = (o) => {
955
961
  if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
956
- const a = i == null ? void 0 : i.test(o.target.value);
962
+ const a = r == null ? void 0 : r.test(o.target.value);
957
963
  if (e._input = a ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !a)
958
964
  o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
959
965
  else
@@ -973,8 +979,8 @@ const Lt = {
973
979
  case "insertFromDrop":
974
980
  const d = o.dataTransfer || o.clipboardData || null;
975
981
  if (d) {
976
- const c = d.getData("text") || "";
977
- o.target.selectionStart = e._start + c.length, o.target.selectionEnd = e._start + c.length;
982
+ const l = d.getData("text") || "";
983
+ o.target.selectionStart = e._start + l.length, o.target.selectionEnd = e._start + l.length;
978
984
  }
979
985
  break;
980
986
  case "insertText":
@@ -983,13 +989,13 @@ const Lt = {
983
989
  o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
984
990
  break;
985
991
  }
986
- const u = new InputEvent("input", {
992
+ const c = new InputEvent("input", {
987
993
  isComposing: !1
988
994
  });
989
- o.target.dispatchEvent(u);
995
+ o.target.dispatchEvent(c);
990
996
  }
991
997
  }, e._handleKeydown = (o) => {
992
- const a = i == null ? void 0 : i.test(o.target.value);
998
+ const a = r == null ? void 0 : r.test(o.target.value);
993
999
  e._input = a ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
994
1000
  }, e._handleDrop = (o) => {
995
1001
  o.stopPropagation();
@@ -1000,18 +1006,18 @@ const Lt = {
1000
1006
  }
1001
1007
  };
1002
1008
  function pe(e, t, n) {
1003
- const r = t.value;
1004
- if (r) {
1005
- const l = r / 2;
1006
- e.style.marginLeft = `-${l}px`, e.style.marginRight = `-${l}px`;
1007
- const i = n.children;
1008
- i != null && i.length && i[0].children.forEach((o) => {
1009
+ const s = t.value;
1010
+ if (s) {
1011
+ const i = s / 2;
1012
+ e.style.marginLeft = `-${i}px`, e.style.marginRight = `-${i}px`;
1013
+ const r = n.children;
1014
+ r != null && r.length && r[0].children.forEach((o) => {
1009
1015
  if (o.component) {
1010
1016
  const a = o.el;
1011
- a != null && a.style && (a.style.paddingLeft = l + "px", a.style.paddingRight = l + "px");
1017
+ a != null && a.style && (a.style.paddingLeft = i + "px", a.style.paddingRight = i + "px");
1012
1018
  } else Array.isArray(o.children) && o.children.forEach((a) => {
1013
- const u = a.el;
1014
- u != null && u.style && (u.style.paddingLeft = l + "px", u.style.paddingRight = l + "px");
1019
+ const c = a.el;
1020
+ c != null && c.style && (c.style.paddingLeft = i + "px", c.style.paddingRight = i + "px");
1015
1021
  });
1016
1022
  });
1017
1023
  }
@@ -1023,7 +1029,7 @@ const Tt = {
1023
1029
  mounted(e, t, n) {
1024
1030
  pe(e, t, n);
1025
1031
  },
1026
- updated(e, t, n, r) {
1032
+ updated(e, t, n, s) {
1027
1033
  pe(e, t, n);
1028
1034
  }
1029
1035
  }, Bt = {
@@ -1034,37 +1040,37 @@ const Tt = {
1034
1040
  }
1035
1041
  }, Nt = {
1036
1042
  mounted(e, t, n) {
1037
- const { value: r } = t, {
1038
- content: l = "",
1039
- placement: i = "top",
1043
+ const { value: s } = t, {
1044
+ content: i = "",
1045
+ placement: r = "top",
1040
1046
  enabled: o = !0,
1041
1047
  padding: a = 8,
1042
1048
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1043
- ...u
1044
- } = typeof r == "string" ? { content: r } : r;
1049
+ ...c
1050
+ } = typeof s == "string" ? { content: s } : s;
1045
1051
  if (e.tooltipDisabled = !1, !o)
1046
1052
  e.tooltipDisabled = !0;
1047
1053
  else if (t.modifiers.exceed) {
1048
- const _ = e.clientWidth, w = fe(l);
1049
- e.tooltipDisabled = _ ? w < _ - a * 2 : !0;
1054
+ const b = e.clientWidth, _ = fe(i);
1055
+ e.tooltipDisabled = b ? _ < b - a * 2 : !0;
1050
1056
  }
1051
- const d = C({
1057
+ const d = x({
1052
1058
  top: 0,
1053
1059
  left: 0,
1054
1060
  bottom: 0,
1055
1061
  right: 0
1056
- }), c = C({
1062
+ }), l = x({
1057
1063
  getBoundingClientRect: () => d.value
1058
- }), p = j(Ye, {
1064
+ }), p = P(Ye, {
1059
1065
  visible: !1,
1060
- content: l,
1061
- placement: i,
1066
+ content: i,
1067
+ placement: r,
1062
1068
  virtualTriggering: !0,
1063
- virtualRef: c.value,
1069
+ virtualRef: l.value,
1064
1070
  popperClass: "vtooltip",
1065
- ...u
1066
- }), h = document.createDocumentFragment();
1067
- I(p, h), e.tooltipVm = p, e.tooltipContainer = h, e.addEventListener("mouseenter", () => {
1071
+ ...c
1072
+ }), m = document.createDocumentFragment();
1073
+ U(p, m), e.tooltipVm = p, e.tooltipContainer = m, e.addEventListener("mouseenter", () => {
1068
1074
  d.value = e.getBoundingClientRect(), p.component && !e.tooltipDisabled && (Object.assign(p.component.props, { visible: !0 }), p.component.update());
1069
1075
  }), e.addEventListener("mouseleave", () => {
1070
1076
  p.component && (Object.assign(p.component.props, { visible: !1 }), p.component.update());
@@ -1073,37 +1079,37 @@ const Tt = {
1073
1079
  updated(e, t) {
1074
1080
  if (e.tooltipVm) {
1075
1081
  const { value: n } = t, {
1076
- content: r = "",
1077
- placement: l = "top",
1078
- enabled: i = !0,
1082
+ content: s = "",
1083
+ placement: i = "top",
1084
+ enabled: r = !0,
1079
1085
  padding: o = 8,
1080
1086
  // 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
1081
1087
  ...a
1082
1088
  } = typeof n == "string" ? { content: n } : n;
1083
- if (e.tooltipDisabled = !1, !i)
1089
+ if (e.tooltipDisabled = !1, !r)
1084
1090
  e.tooltipDisabled = !0;
1085
1091
  else if (t.modifiers.exceed) {
1086
- const d = e.clientWidth, c = fe(r);
1087
- e.tooltipDisabled = d ? c < d - o * 2 : !0;
1092
+ const d = e.clientWidth, l = fe(s);
1093
+ e.tooltipDisabled = d ? l < d - o * 2 : !0;
1088
1094
  }
1089
- const u = e.tooltipVm;
1090
- u.component && (Object.assign(u.component.props, { content: r, placement: l, ...a }), u.component.update());
1095
+ const c = e.tooltipVm;
1096
+ c.component && (Object.assign(c.component.props, { content: s, placement: i, ...a }), c.component.update());
1091
1097
  }
1092
1098
  },
1093
1099
  unmounted(e) {
1094
- e.tooltipContainer && I(null, e.tooltipContainer);
1100
+ e.tooltipContainer && U(null, e.tooltipContainer);
1095
1101
  }
1096
1102
  };
1097
1103
  function fe(e, t) {
1098
- const r = document.createElement("canvas").getContext("2d");
1099
- return r.font = "14px Arial", r.measureText(e).width;
1104
+ const s = document.createElement("canvas").getContext("2d");
1105
+ return s.font = "14px Arial", s.measureText(e).width;
1100
1106
  }
1101
1107
  const Ot = {
1102
1108
  beforeMount(e, t) {
1103
1109
  const { value: n } = t;
1104
- n && (Ue(n) || setTimeout(() => {
1105
- var l;
1106
- (l = e.parentNode) == null || l.removeChild(e);
1110
+ n && (Ie(n) || setTimeout(() => {
1111
+ var i;
1112
+ (i = e.parentNode) == null || i.removeChild(e);
1107
1113
  }, 50));
1108
1114
  }
1109
1115
  }, me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1143,7 +1149,7 @@ export {
1143
1149
  tn as getUserCenterParams,
1144
1150
  nn as getUserCenterParamsByUrl,
1145
1151
  on as getUserInfo,
1146
- Ue as hasPermission,
1152
+ Ie as hasPermission,
1147
1153
  $t as inputlimit,
1148
1154
  an as is,
1149
1155
  sn as isArray,
@@ -1156,7 +1162,7 @@ export {
1156
1162
  fn as isFunction,
1157
1163
  mn as isImageDom,
1158
1164
  vn as isNull,
1159
- O as isNullOrUndef,
1165
+ j as isNullOrUndef,
1160
1166
  gn as isNumber,
1161
1167
  hn as isObject,
1162
1168
  yn as isPromise,