@witlink/components 1.0.24 → 1.0.25
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.cjs +1 -1
- package/dist/index.js +329 -325
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { InputNumber as ae, RangePicker as De, Table as Le, Popover as Be, Input as Re, Row as je, Col as Oe, Button as Ie, Slider as Fe } from "ant-design-vue/es";
|
|
2
|
-
import { markRaw as se, createElementBlock as
|
|
2
|
+
import { markRaw as se, createElementBlock as T, openBlock as E, createElementVNode as $, defineComponent as F, mergeModels as j, useModel as G, useSlots as ke, useAttrs as Ue, createBlock as z, mergeProps as I, createSlots as re, renderList as V, withCtx as M, unref as k, renderSlot as K, normalizeProps as le, guardReactiveProps as we, createVNode as P, ref as S, getCurrentInstance as J, render as Z, h as W, computed as D, onMounted as Ee, onUnmounted as We, normalizeClass as ze, normalizeStyle as de, resolveDirective as qe, isRef as Q, withKeys as Ve, withModifiers as pe, Fragment as H, createTextVNode as ee, toDisplayString as oe, withDirectives as Ke, nextTick as fe, useCssVars as Xe, watch as ie, createCommentVNode as me, shallowRef as X, shallowReadonly as He, toValue as q, getCurrentScope as Ye, onScopeDispose as Ze, toRaw as Ge } from "vue";
|
|
3
3
|
import { isNullOrUndef as B, hasPermission as Qe } from "./utils.js";
|
|
4
|
-
import { UserCenterKey as dn, buildTree as pn, exportFile as fn, forEachTree as mn, getButtonPermissions as vn, getLocale as gn, getMenuInfo as hn, getToken as yn, getUserCenterParams as bn, getUserCenterParamsByUrl as _n, getUserInfo as xn, is as Cn, isArray as Sn, isAsyncFunction as kn, isBoolean as wn, isClient as
|
|
4
|
+
import { UserCenterKey as dn, buildTree as pn, exportFile as fn, forEachTree as mn, getButtonPermissions as vn, getLocale as gn, getMenuInfo as hn, getToken as yn, getUserCenterParams as bn, getUserCenterParamsByUrl as _n, getUserInfo as xn, is as Cn, isArray as Sn, isAsyncFunction as kn, isBoolean as wn, isClient as En, isDate as $n, isDef as Mn, isElement as Nn, isFunction as Pn, isImageDom as Tn, isNull as An, isNumber as Dn, isObject as Ln, isPromise as Bn, isServer as Rn, isString as jn, isUndef as On, isWindow as In, logoutToUserCenter as Fn, removeAll as Un, removeLocale as Wn, removeToken as zn, setLocale as qn, setMenuInfo as Vn, setToken as Kn, setUserCenterParams as Xn, setUserInfo as Hn, toUserCenterConsole as Yn } from "./utils.js";
|
|
5
5
|
import ve from "dayjs";
|
|
6
|
-
import { Drawer as
|
|
7
|
-
import { ElScrollbar as st, ElTooltip as
|
|
8
|
-
const
|
|
6
|
+
import { Drawer as A, App as Je, Modal as et, Button as tt, ConfigProvider as nt, Textarea as ot, Form as $e, message as at } from "ant-design-vue";
|
|
7
|
+
import { ElScrollbar as st, ElTooltip as rt } from "element-plus";
|
|
8
|
+
const lt = {
|
|
9
9
|
class: "icon",
|
|
10
10
|
viewBox: "0 0 1024 1024",
|
|
11
11
|
width: "1.2em",
|
|
12
12
|
height: "1.2em"
|
|
13
13
|
};
|
|
14
14
|
function it(e, n) {
|
|
15
|
-
return
|
|
16
|
-
|
|
15
|
+
return E(), T("svg", lt, n[0] || (n[0] = [
|
|
16
|
+
$("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
|
-
|
|
20
|
+
$("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,8 +30,8 @@ const ut = se({ name: "ant-design-plus", render: it }), ct = {
|
|
|
30
30
|
height: "1.2em"
|
|
31
31
|
};
|
|
32
32
|
function dt(e, n) {
|
|
33
|
-
return
|
|
34
|
-
|
|
33
|
+
return E(), T("svg", ct, n[0] || (n[0] = [
|
|
34
|
+
$("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)
|
|
@@ -58,13 +58,13 @@ const pt = se({ name: "ant-design-minus", render: dt }), ft = /* @__PURE__ */ F(
|
|
|
58
58
|
}),
|
|
59
59
|
emits: /* @__PURE__ */ j(["change"], ["update:value"]),
|
|
60
60
|
setup(e, { emit: n }) {
|
|
61
|
-
const t = G(e, "value"), r = e,
|
|
62
|
-
function
|
|
61
|
+
const t = G(e, "value"), r = e, l = n, i = ke(), u = Ue();
|
|
62
|
+
function o(a) {
|
|
63
63
|
if (B(a))
|
|
64
|
-
t.value = null,
|
|
64
|
+
t.value = null, l("change", null);
|
|
65
65
|
else {
|
|
66
66
|
let d = a;
|
|
67
|
-
r.stringMode && (d = Number(d).toFixed(r.precision)), t.value !== d && (t.value = d,
|
|
67
|
+
r.stringMode && (d = Number(d).toFixed(r.precision)), t.value !== d && (t.value = d, l("change", d));
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
function c() {
|
|
@@ -74,39 +74,39 @@ const pt = se({ name: "ant-design-minus", render: dt }), ft = /* @__PURE__ */ F(
|
|
|
74
74
|
r.stringMode && (a = Number(a).toFixed(r.precision)), t.value = a;
|
|
75
75
|
}
|
|
76
76
|
function p() {
|
|
77
|
-
if (
|
|
77
|
+
if (u.disabled) return;
|
|
78
78
|
const a = Number(t.value);
|
|
79
|
-
!B(
|
|
79
|
+
!B(u.min) && a <= Number(u.min) || o(a - 1);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
if (
|
|
81
|
+
function s() {
|
|
82
|
+
if (u.disabled) return;
|
|
83
83
|
const a = Number(t.value);
|
|
84
|
-
!B(
|
|
84
|
+
!B(u.max) && a >= Number(u.max) || o(a + 1);
|
|
85
85
|
}
|
|
86
86
|
return (a, d) => {
|
|
87
87
|
const y = pt, h = ut, v = ae;
|
|
88
|
-
return
|
|
88
|
+
return E(), z(v, I({
|
|
89
89
|
value: t.value,
|
|
90
90
|
precision: e.precision,
|
|
91
91
|
stringMode: e.stringMode,
|
|
92
92
|
controls: !e.customControls,
|
|
93
|
-
onChange:
|
|
93
|
+
onChange: o,
|
|
94
94
|
onBlur: c
|
|
95
|
-
}, a.$attrs),
|
|
95
|
+
}, a.$attrs), re({ _: 2 }, [
|
|
96
96
|
V(Object.keys(k(i)), (x) => ({
|
|
97
97
|
name: x,
|
|
98
98
|
fn: M((f) => [
|
|
99
|
-
|
|
99
|
+
K(a.$slots, x, le(we(f)))
|
|
100
100
|
])
|
|
101
101
|
})),
|
|
102
102
|
e.customControls ? {
|
|
103
103
|
name: "addonBefore",
|
|
104
104
|
fn: M(() => [
|
|
105
|
-
|
|
105
|
+
$("div", {
|
|
106
106
|
class: "btn-control",
|
|
107
107
|
onClick: p
|
|
108
108
|
}, [
|
|
109
|
-
|
|
109
|
+
P(y, { class: "btn-icon" })
|
|
110
110
|
])
|
|
111
111
|
]),
|
|
112
112
|
key: "0"
|
|
@@ -114,11 +114,11 @@ const pt = se({ name: "ant-design-minus", render: dt }), ft = /* @__PURE__ */ F(
|
|
|
114
114
|
e.customControls ? {
|
|
115
115
|
name: "addonAfter",
|
|
116
116
|
fn: M(() => [
|
|
117
|
-
|
|
117
|
+
$("div", {
|
|
118
118
|
class: "btn-control",
|
|
119
|
-
onClick:
|
|
119
|
+
onClick: s
|
|
120
120
|
}, [
|
|
121
|
-
|
|
121
|
+
P(h, { class: "btn-icon" })
|
|
122
122
|
])
|
|
123
123
|
]),
|
|
124
124
|
key: "1"
|
|
@@ -156,32 +156,32 @@ const pt = se({ name: "ant-design-minus", render: dt }), ft = /* @__PURE__ */ F(
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["update:value", "change"],
|
|
158
158
|
setup(e, { emit: n }) {
|
|
159
|
-
const t = e, r = n,
|
|
159
|
+
const t = e, r = n, l = S(), i = S(), u = (s) => {
|
|
160
160
|
const a = ve().add(t.max, t.maxUnit), d = ve().subtract(t.min, t.minUnit), y = t.interval;
|
|
161
|
-
if (!
|
|
162
|
-
return
|
|
163
|
-
const h =
|
|
164
|
-
return
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
}, c = (
|
|
168
|
-
r("update:value",
|
|
169
|
-
}, p = (
|
|
170
|
-
|
|
161
|
+
if (!l.value || l.value.length === 0)
|
|
162
|
+
return s.isAfter(a) || s.isBefore(d);
|
|
163
|
+
const h = l.value[0] && (s.diff(l.value[0], "days") > y || s.isAfter(a));
|
|
164
|
+
return l.value[1] && (l.value[1].diff(s, "days") > y || s.isBefore(d)) || h;
|
|
165
|
+
}, o = (s) => {
|
|
166
|
+
s ? (l.value = [], i.value = []) : i.value = void 0;
|
|
167
|
+
}, c = (s) => {
|
|
168
|
+
r("update:value", s), r("change", s);
|
|
169
|
+
}, p = (s) => {
|
|
170
|
+
l.value = s;
|
|
171
171
|
};
|
|
172
|
-
return (
|
|
172
|
+
return (s, a) => {
|
|
173
173
|
const d = De;
|
|
174
|
-
return
|
|
174
|
+
return E(), z(d, I({
|
|
175
175
|
value: k(i) || e.value,
|
|
176
|
-
"disabled-date":
|
|
176
|
+
"disabled-date": u,
|
|
177
177
|
onChange: c,
|
|
178
|
-
onOpenChange:
|
|
178
|
+
onOpenChange: o,
|
|
179
179
|
onCalendarChange: p
|
|
180
|
-
},
|
|
181
|
-
V(Object.keys(
|
|
180
|
+
}, s.$attrs), re({ _: 2 }, [
|
|
181
|
+
V(Object.keys(s.$slots), (y) => ({
|
|
182
182
|
name: y,
|
|
183
183
|
fn: M((h) => [
|
|
184
|
-
|
|
184
|
+
K(s.$slots, y, le(we(h)))
|
|
185
185
|
])
|
|
186
186
|
}))
|
|
187
187
|
]), 1040, ["value"]);
|
|
@@ -192,7 +192,7 @@ function ue(e) {
|
|
|
192
192
|
e || (e = J());
|
|
193
193
|
const n = (e == null ? void 0 : e.provides) || {}, t = vt(n, "configProvider"), r = n[t];
|
|
194
194
|
return Object.fromEntries(
|
|
195
|
-
Object.entries(r).map(([i,
|
|
195
|
+
Object.entries(r).map(([i, u]) => [i, k(u)])
|
|
196
196
|
);
|
|
197
197
|
}
|
|
198
198
|
function vt(e, n) {
|
|
@@ -217,8 +217,8 @@ function sn(e) {
|
|
|
217
217
|
return null;
|
|
218
218
|
}
|
|
219
219
|
let O, ge, R, he;
|
|
220
|
-
|
|
221
|
-
const e =
|
|
220
|
+
A.destroy = function() {
|
|
221
|
+
const e = A.instanceArr || [], n = e.pop();
|
|
222
222
|
if (n && Z(null, n.container), e.length > 0) {
|
|
223
223
|
const t = e[e.length - 1].instance;
|
|
224
224
|
Object.assign(t.component.props, {
|
|
@@ -226,13 +226,13 @@ T.destroy = function() {
|
|
|
226
226
|
}), t.component.update();
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
|
|
230
|
-
(
|
|
229
|
+
A.destroyAll = function() {
|
|
230
|
+
(A.instanceArr || []).forEach((n) => {
|
|
231
231
|
Z(null, n.container);
|
|
232
|
-
}),
|
|
232
|
+
}), A.instanceArr = [];
|
|
233
233
|
};
|
|
234
|
-
function
|
|
235
|
-
var
|
|
234
|
+
function rn() {
|
|
235
|
+
var s, a;
|
|
236
236
|
const e = J();
|
|
237
237
|
if (!R) {
|
|
238
238
|
const d = Je.useApp();
|
|
@@ -247,15 +247,15 @@ function ln() {
|
|
|
247
247
|
zh: "请输入",
|
|
248
248
|
en: "Please Enter",
|
|
249
249
|
fr: "Veuillez entrer"
|
|
250
|
-
}, r = ue(),
|
|
250
|
+
}, r = ue(), l = ((a = (s = r == null ? void 0 : r.locale) == null ? void 0 : s.locale) == null ? void 0 : a.slice(0, 2)) || "en";
|
|
251
251
|
function i({ title: d, ...y }) {
|
|
252
252
|
const h = S();
|
|
253
|
-
return
|
|
253
|
+
return u({
|
|
254
254
|
title: d,
|
|
255
255
|
...y,
|
|
256
256
|
comp: ot,
|
|
257
257
|
props: {
|
|
258
|
-
placeholder: t[
|
|
258
|
+
placeholder: t[l],
|
|
259
259
|
autoSize: { minRows: 6 },
|
|
260
260
|
value: h,
|
|
261
261
|
"onUpdate:value": (v) => {
|
|
@@ -270,7 +270,7 @@ function ln() {
|
|
|
270
270
|
})
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function u({ title: d, comp: y, props: h, ...v }) {
|
|
274
274
|
const x = W(y, h), f = (v == null ? void 0 : v.type) ?? "info", m = {
|
|
275
275
|
title: d,
|
|
276
276
|
content: x,
|
|
@@ -298,13 +298,13 @@ function ln() {
|
|
|
298
298
|
}
|
|
299
299
|
return O;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function o() {
|
|
302
302
|
O == null || O.destroy();
|
|
303
303
|
}
|
|
304
304
|
function c({ title: d, comp: y, props: h, ...v }) {
|
|
305
305
|
const x = v.getContainer || document.createDocumentFragment();
|
|
306
|
-
|
|
307
|
-
const f =
|
|
306
|
+
A.instanceArr || (A.instanceArr = []);
|
|
307
|
+
const f = A.instanceArr, m = f[f.length - 1];
|
|
308
308
|
let g;
|
|
309
309
|
if ((m == null ? void 0 : m.comp) === y) {
|
|
310
310
|
const b = m.instance;
|
|
@@ -329,16 +329,16 @@ function ln() {
|
|
|
329
329
|
tt,
|
|
330
330
|
{
|
|
331
331
|
onClick: () => {
|
|
332
|
-
|
|
332
|
+
A.destroy();
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
|
-
n[
|
|
335
|
+
n[l]
|
|
336
336
|
)
|
|
337
337
|
});
|
|
338
338
|
const _ = v.width || 992;
|
|
339
339
|
delete v.width;
|
|
340
340
|
const C = W(
|
|
341
|
-
|
|
341
|
+
A,
|
|
342
342
|
{
|
|
343
343
|
title: d,
|
|
344
344
|
width: _,
|
|
@@ -348,7 +348,7 @@ function ln() {
|
|
|
348
348
|
textAlign: "right"
|
|
349
349
|
},
|
|
350
350
|
onClose: () => {
|
|
351
|
-
v != null && v.afterClose && v.afterClose(),
|
|
351
|
+
v != null && v.afterClose && v.afterClose(), A.destroy();
|
|
352
352
|
},
|
|
353
353
|
...v
|
|
354
354
|
},
|
|
@@ -367,15 +367,15 @@ function ln() {
|
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
function p() {
|
|
370
|
-
|
|
370
|
+
A.destroy();
|
|
371
371
|
}
|
|
372
372
|
return {
|
|
373
373
|
message: ge,
|
|
374
374
|
modal: R,
|
|
375
375
|
notification: he,
|
|
376
376
|
modalInput: i,
|
|
377
|
-
modalComp:
|
|
378
|
-
modalDestroy:
|
|
377
|
+
modalComp: u,
|
|
378
|
+
modalDestroy: o,
|
|
379
379
|
drawerComp: c,
|
|
380
380
|
drawerDestroy: p
|
|
381
381
|
};
|
|
@@ -398,7 +398,7 @@ const gt = /* @__PURE__ */ F({
|
|
|
398
398
|
}
|
|
399
399
|
},
|
|
400
400
|
setup(e, { expose: n }) {
|
|
401
|
-
const t = e, r = ke(),
|
|
401
|
+
const t = e, r = ke(), l = S([]), i = S(!1), u = S(0), o = S(1), c = S(10), p = S(), s = S(), a = {
|
|
402
402
|
zh: "共 {num} 条",
|
|
403
403
|
en: "Total {num} items",
|
|
404
404
|
fr: "Total de {num}"
|
|
@@ -406,8 +406,8 @@ const gt = /* @__PURE__ */ F({
|
|
|
406
406
|
var _, C;
|
|
407
407
|
return ((C = (_ = d == null ? void 0 : d.locale) == null ? void 0 : _.locale) == null ? void 0 : C.slice(0, 2)) || "en";
|
|
408
408
|
}), h = D(() => ({
|
|
409
|
-
total:
|
|
410
|
-
current:
|
|
409
|
+
total: u.value,
|
|
410
|
+
current: o.value,
|
|
411
411
|
pageSize: c.value,
|
|
412
412
|
showSizeChanger: !0,
|
|
413
413
|
size: "small",
|
|
@@ -418,32 +418,32 @@ const gt = /* @__PURE__ */ F({
|
|
|
418
418
|
if (typeof t.loadData == "function") {
|
|
419
419
|
i.value = !0;
|
|
420
420
|
let _;
|
|
421
|
-
t.newFieldName ? _ = { current:
|
|
421
|
+
t.newFieldName ? _ = { current: o.value, size: c.value } : _ = { pageNo: o.value, pageSize: c.value }, t.formatSortParams && ((b = s.value) != null && b.orderMap) && (_[s.value.field + "SortField"] = s.value.orderMap), t.loadData(_, p.value, s.value).then((C) => {
|
|
422
422
|
if (i.value = !1, (C == null ? void 0 : C.code) === 0) {
|
|
423
423
|
const w = C.result || {};
|
|
424
|
-
t.newFieldName ? (
|
|
424
|
+
t.newFieldName ? (u.value = w.total, l.value = w.records) : (u.value = w.totalCount, l.value = w.data);
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
function x(b, _, C) {
|
|
430
|
-
if (
|
|
430
|
+
if (o.value = b.current, c.value = b.pageSize, p.value = _, C) {
|
|
431
431
|
const w = {
|
|
432
432
|
ascend: "asc",
|
|
433
433
|
descend: "desc"
|
|
434
434
|
};
|
|
435
435
|
C.orderMap = w[C.order] || "";
|
|
436
436
|
}
|
|
437
|
-
|
|
437
|
+
s.value = C, v();
|
|
438
438
|
}
|
|
439
439
|
function f(b, _) {
|
|
440
440
|
_.width = b;
|
|
441
441
|
}
|
|
442
442
|
function m() {
|
|
443
|
-
|
|
443
|
+
o.value = 1, v();
|
|
444
444
|
}
|
|
445
445
|
function g() {
|
|
446
|
-
|
|
446
|
+
o.value = 1, u.value = 0, l.value = [];
|
|
447
447
|
}
|
|
448
448
|
return n({
|
|
449
449
|
loadData: v,
|
|
@@ -451,18 +451,18 @@ const gt = /* @__PURE__ */ F({
|
|
|
451
451
|
reset: g
|
|
452
452
|
}), (b, _) => {
|
|
453
453
|
const C = Le;
|
|
454
|
-
return
|
|
454
|
+
return E(), z(C, I({
|
|
455
455
|
class: "table-ex",
|
|
456
456
|
loading: k(i),
|
|
457
457
|
pagination: k(h),
|
|
458
|
-
dataSource: k(
|
|
458
|
+
dataSource: k(l),
|
|
459
459
|
onChange: x,
|
|
460
460
|
onResizeColumn: f
|
|
461
|
-
}, b.$attrs),
|
|
461
|
+
}, b.$attrs), re({ _: 2 }, [
|
|
462
462
|
V(Object.keys(k(r)), (w) => ({
|
|
463
463
|
name: w,
|
|
464
464
|
fn: M((L) => [
|
|
465
|
-
w !== "emptyText" ?
|
|
465
|
+
w !== "emptyText" ? K(b.$slots, w, le(I({ key: 0 }, L))) : K(b.$slots, w, { key: 1 })
|
|
466
466
|
])
|
|
467
467
|
}))
|
|
468
468
|
]), 1040, ["loading", "pagination", "dataSource"]);
|
|
@@ -485,51 +485,51 @@ const gt = /* @__PURE__ */ F({
|
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
487
|
setup(e) {
|
|
488
|
-
const n = e, t = S(), r = S(),
|
|
489
|
-
function
|
|
490
|
-
|
|
488
|
+
const n = e, t = S(), r = S(), l = S({}), i = S({}), u = S(0.2);
|
|
489
|
+
function o(p) {
|
|
490
|
+
l.value = { width: `calc(${p * 100}% - 5px)` }, i.value = { width: `calc(${(1 - p) * 100}% - 5px)` };
|
|
491
491
|
}
|
|
492
492
|
function c() {
|
|
493
493
|
const p = t.value;
|
|
494
494
|
if (!p)
|
|
495
495
|
return;
|
|
496
|
-
const
|
|
496
|
+
const s = p.clientWidth, a = p.getBoundingClientRect(), d = a.left;
|
|
497
497
|
function y(v) {
|
|
498
498
|
v.preventDefault(), (v.clientX < a.left || v.clientX > a.right || v.clientY < a.top || v.clientY > a.bottom) && h();
|
|
499
|
-
const f = (v.clientX - d) /
|
|
500
|
-
f > n.leftMin && f < n.leftMax && (
|
|
499
|
+
const f = (v.clientX - d) / s;
|
|
500
|
+
f > n.leftMin && f < n.leftMax && (u.value = f, o(f));
|
|
501
501
|
}
|
|
502
502
|
function h() {
|
|
503
503
|
document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", h);
|
|
504
504
|
}
|
|
505
505
|
document.addEventListener("mousemove", y), document.addEventListener("mouseup", h);
|
|
506
506
|
}
|
|
507
|
-
return
|
|
508
|
-
|
|
507
|
+
return Ee(() => {
|
|
508
|
+
o(u.value), r.value && r.value.addEventListener("mousedown", c, !1);
|
|
509
509
|
}), We(() => {
|
|
510
510
|
r.value && r.value.removeEventListener("mousedown", c);
|
|
511
|
-
}), (p,
|
|
511
|
+
}), (p, s) => (E(), T("div", {
|
|
512
512
|
ref_key: "container",
|
|
513
513
|
ref: t,
|
|
514
514
|
class: ze(["wl-splitter", { bordered: e.bordered }])
|
|
515
515
|
}, [
|
|
516
|
-
|
|
516
|
+
$("div", {
|
|
517
517
|
class: "my-left",
|
|
518
|
-
style: de(k(
|
|
518
|
+
style: de(k(l))
|
|
519
519
|
}, [
|
|
520
|
-
|
|
520
|
+
K(p.$slots, "left")
|
|
521
521
|
], 4),
|
|
522
|
-
|
|
522
|
+
$("div", {
|
|
523
523
|
ref_key: "spliter",
|
|
524
524
|
ref: r,
|
|
525
525
|
style: { height: "100%", width: "10px" },
|
|
526
526
|
class: "my-spliter"
|
|
527
527
|
}, null, 512),
|
|
528
|
-
|
|
528
|
+
$("div", {
|
|
529
529
|
class: "my-right",
|
|
530
530
|
style: de(k(i))
|
|
531
531
|
}, [
|
|
532
|
-
|
|
532
|
+
K(p.$slots, "right")
|
|
533
533
|
], 4)
|
|
534
534
|
], 2));
|
|
535
535
|
}
|
|
@@ -542,20 +542,20 @@ const gt = /* @__PURE__ */ F({
|
|
|
542
542
|
xmlns: "http://www.w3.org/2000/svg"
|
|
543
543
|
};
|
|
544
544
|
function bt(e, n) {
|
|
545
|
-
return
|
|
546
|
-
|
|
545
|
+
return E(), T("svg", yt, n[0] || (n[0] = [
|
|
546
|
+
$("path", {
|
|
547
547
|
d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
|
|
548
548
|
stroke: "#272E3B",
|
|
549
549
|
"stroke-linecap": "round",
|
|
550
550
|
"stroke-linejoin": "round"
|
|
551
551
|
}, null, -1),
|
|
552
|
-
|
|
552
|
+
$("path", {
|
|
553
553
|
d: "M10.8125 9.5L15.8125 14.5",
|
|
554
554
|
stroke: "#272E3B",
|
|
555
555
|
"stroke-linecap": "round",
|
|
556
556
|
"stroke-linejoin": "round"
|
|
557
557
|
}, null, -1),
|
|
558
|
-
|
|
558
|
+
$("path", {
|
|
559
559
|
d: "M15.8125 9.5L10.8125 14.5",
|
|
560
560
|
stroke: "#272E3B",
|
|
561
561
|
"stroke-linecap": "round",
|
|
@@ -589,24 +589,24 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
589
589
|
}),
|
|
590
590
|
emits: /* @__PURE__ */ j(["enter"], ["update:value"]),
|
|
591
591
|
setup(e, { emit: n }) {
|
|
592
|
-
const t = e, r = n,
|
|
592
|
+
const t = e, r = n, l = S(), i = S(), u = S(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), o = G(e, "value"), c = S(!1);
|
|
593
593
|
function p() {
|
|
594
594
|
c.value = !0;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function s() {
|
|
597
597
|
x();
|
|
598
598
|
}
|
|
599
599
|
function a(f) {
|
|
600
|
-
i.value.focus(),
|
|
600
|
+
i.value.focus(), o.value = Number(f).toFixed(t.precision);
|
|
601
601
|
}
|
|
602
602
|
function d(f) {
|
|
603
|
-
if (i.value.focus(), B(
|
|
603
|
+
if (i.value.focus(), B(o.value) || o.value === "") {
|
|
604
604
|
if (["00", "."].includes(f))
|
|
605
605
|
return;
|
|
606
|
-
|
|
606
|
+
o.value = f;
|
|
607
607
|
} else {
|
|
608
|
-
const m = String(
|
|
609
|
-
|
|
608
|
+
const m = String(o.value), g = l.value.getElementsByTagName("input")[0], b = g.selectionStart || 0, _ = g.selectionEnd || 0;
|
|
609
|
+
o.value = `${m.slice(0, b)}${f}${m.slice(_)}`;
|
|
610
610
|
const C = b + f.length;
|
|
611
611
|
fe(() => {
|
|
612
612
|
i.value.setSelectionRange(C, C);
|
|
@@ -614,70 +614,70 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function y() {
|
|
617
|
-
if (i.value.focus(), B(
|
|
617
|
+
if (i.value.focus(), B(o.value))
|
|
618
618
|
return;
|
|
619
|
-
const f = String(
|
|
619
|
+
const f = String(o.value);
|
|
620
620
|
if (f != null && f.length) {
|
|
621
|
-
const m =
|
|
622
|
-
g === b ?
|
|
621
|
+
const m = l.value.getElementsByTagName("input")[0], g = m.selectionStart || 0, b = m.selectionEnd || 0, _ = g > 0 ? g - 1 : 0;
|
|
622
|
+
g === b ? o.value = f.slice(0, _) + f.slice(b) : o.value = f.slice(0, g) + f.slice(b), fe(() => {
|
|
623
623
|
i.value.setSelectionRange(_, _);
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
function h() {
|
|
628
|
-
i.value.focus(),
|
|
628
|
+
i.value.focus(), o.value = "";
|
|
629
629
|
}
|
|
630
630
|
function v() {
|
|
631
631
|
i.value.blur();
|
|
632
632
|
}
|
|
633
633
|
function x() {
|
|
634
634
|
const f = t.min, m = t.max;
|
|
635
|
-
let g = parseFloat(
|
|
636
|
-
B(f) || (g = g > f ? g : f), B(m) || (g = g > m ? m : g),
|
|
635
|
+
let g = parseFloat(o.value || "0");
|
|
636
|
+
B(f) || (g = g > f ? g : f), B(m) || (g = g > m ? m : g), o.value = Number(g).toFixed(t.precision), c.value = !1, r("enter");
|
|
637
637
|
}
|
|
638
638
|
return (f, m) => {
|
|
639
|
-
const g = Ie, b = Oe, _ = _t, C = je, w = Re, L = Be, U =
|
|
640
|
-
return
|
|
639
|
+
const g = Ie, b = Oe, _ = _t, C = je, w = Re, L = Be, U = qe("longpress");
|
|
640
|
+
return E(), T("div", {
|
|
641
641
|
class: "number-keyboard",
|
|
642
642
|
ref_key: "numberKeyboard",
|
|
643
|
-
ref:
|
|
643
|
+
ref: l
|
|
644
644
|
}, [
|
|
645
|
-
|
|
645
|
+
P(L, {
|
|
646
646
|
overlayClassName: "popover-keyboard",
|
|
647
647
|
trigger: "manual",
|
|
648
648
|
placement: "bottomLeft",
|
|
649
649
|
align: { offset: [0, -9] },
|
|
650
650
|
open: k(c),
|
|
651
|
-
"onUpdate:open": m[2] || (m[2] = (
|
|
651
|
+
"onUpdate:open": m[2] || (m[2] = (N) => Q(c) ? c.value = N : null)
|
|
652
652
|
}, {
|
|
653
653
|
content: M(() => [
|
|
654
|
-
|
|
654
|
+
$("div", {
|
|
655
655
|
class: "keyboard-panel",
|
|
656
656
|
onMousedownCapture: m[0] || (m[0] = pe(() => {
|
|
657
657
|
}, ["prevent", "stop"]))
|
|
658
658
|
}, [
|
|
659
|
-
|
|
659
|
+
P(C, { gutter: "8" }, {
|
|
660
660
|
default: M(() => [
|
|
661
|
-
|
|
661
|
+
P(b, { span: 18 }, {
|
|
662
662
|
default: M(() => [
|
|
663
|
-
|
|
664
|
-
(
|
|
663
|
+
$("div", xt, [
|
|
664
|
+
(E(!0), T(H, null, V(e.quickNums, (N) => (E(), z(g, {
|
|
665
665
|
class: "btn-num",
|
|
666
|
-
key:
|
|
667
|
-
onClick: (
|
|
666
|
+
key: N,
|
|
667
|
+
onClick: (Ae) => a(N)
|
|
668
668
|
}, {
|
|
669
669
|
default: M(() => [
|
|
670
|
-
ee(oe(
|
|
670
|
+
ee(oe(N), 1)
|
|
671
671
|
]),
|
|
672
672
|
_: 2
|
|
673
673
|
}, 1032, ["onClick"]))), 128)),
|
|
674
|
-
(
|
|
674
|
+
(E(!0), T(H, null, V(k(u), (N) => (E(), z(g, {
|
|
675
675
|
class: "btn-num",
|
|
676
|
-
key:
|
|
677
|
-
onClick: (
|
|
676
|
+
key: N,
|
|
677
|
+
onClick: (Ae) => d(N)
|
|
678
678
|
}, {
|
|
679
679
|
default: M(() => [
|
|
680
|
-
ee(oe(
|
|
680
|
+
ee(oe(N), 1)
|
|
681
681
|
]),
|
|
682
682
|
_: 2
|
|
683
683
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -685,21 +685,21 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
685
685
|
]),
|
|
686
686
|
_: 1
|
|
687
687
|
}),
|
|
688
|
-
|
|
688
|
+
P(b, { span: 6 }, {
|
|
689
689
|
default: M(() => [
|
|
690
|
-
|
|
691
|
-
|
|
690
|
+
$("div", Ct, [
|
|
691
|
+
Ke((E(), z(g, {
|
|
692
692
|
class: "btn-clear",
|
|
693
693
|
onClick: y
|
|
694
694
|
}, {
|
|
695
695
|
default: M(() => [
|
|
696
|
-
|
|
696
|
+
P(_, { style: { width: "24px", height: "24px" } })
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
})), [
|
|
700
700
|
[U, h]
|
|
701
701
|
]),
|
|
702
|
-
|
|
702
|
+
P(g, {
|
|
703
703
|
class: "btn-enter",
|
|
704
704
|
type: "primary",
|
|
705
705
|
onClick: pe(v, ["stop"])
|
|
@@ -719,14 +719,14 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
719
719
|
], 32)
|
|
720
720
|
]),
|
|
721
721
|
default: M(() => [
|
|
722
|
-
|
|
722
|
+
P(w, I({
|
|
723
723
|
ref_key: "inputRef",
|
|
724
724
|
ref: i,
|
|
725
|
-
value:
|
|
726
|
-
"onUpdate:value": m[1] || (m[1] = (
|
|
725
|
+
value: o.value,
|
|
726
|
+
"onUpdate:value": m[1] || (m[1] = (N) => o.value = N)
|
|
727
727
|
}, f.$attrs, {
|
|
728
728
|
onFocus: p,
|
|
729
|
-
onBlur:
|
|
729
|
+
onBlur: s,
|
|
730
730
|
onKeyup: Ve(v, ["enter"])
|
|
731
731
|
}), null, 16, ["value"])
|
|
732
732
|
]),
|
|
@@ -764,32 +764,32 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
764
764
|
}),
|
|
765
765
|
emits: /* @__PURE__ */ j(["change"], ["update:value"]),
|
|
766
766
|
setup(e, { emit: n }) {
|
|
767
|
-
Xe((
|
|
768
|
-
"6ffd511e": k(
|
|
769
|
-
"1201d0a5": k(
|
|
767
|
+
Xe((s) => ({
|
|
768
|
+
"6ffd511e": k(u),
|
|
769
|
+
"1201d0a5": k(o),
|
|
770
770
|
"1201d466": k(c)
|
|
771
771
|
}));
|
|
772
|
-
const t = e, r = G(e, "value"),
|
|
773
|
-
const
|
|
772
|
+
const t = e, r = G(e, "value"), l = n, i = D(() => {
|
|
773
|
+
const s = {}, a = Array.from(t.flagStops), d = t.min || 0, y = t.max || 100, h = [d, ...r.value, y];
|
|
774
774
|
for (let v = 0; v < h.length; v++) {
|
|
775
775
|
const x = h[v];
|
|
776
|
-
if (
|
|
776
|
+
if (s[x] = x, v > 0) {
|
|
777
777
|
const f = a.shift(), m = h[v - 1], g = m + (x - m) / 2;
|
|
778
|
-
|
|
778
|
+
s[g] = { style: { top: "-28px" }, label: f };
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
|
-
return
|
|
782
|
-
}),
|
|
783
|
-
const
|
|
781
|
+
return s;
|
|
782
|
+
}), u = D(() => {
|
|
783
|
+
const s = r.value, a = t.min || 0, d = t.max || 100, y = Math.floor((s[0] - a) / (d - a) * 100), h = t.colorStops, v = h[0], x = h[h.length - 1];
|
|
784
784
|
return `linear-gradient(90deg, ${v} 0%, ${v} ${y}%, ${x} ${y}%, ${x} 100%)`;
|
|
785
|
-
}),
|
|
786
|
-
function p(
|
|
785
|
+
}), o = D(() => t.colorStops[1]), c = D(() => t.colorStops[2]);
|
|
786
|
+
function p(s) {
|
|
787
787
|
const a = t.min || 0, d = t.max || 100;
|
|
788
|
-
|
|
788
|
+
s[0] <= a ? s[0] = a + 1 : s.at(-1) >= d && (s[s.length - 1] = d - 1), s.length === new Set(s).size && (r.value = s, l("change", s));
|
|
789
789
|
}
|
|
790
|
-
return (
|
|
790
|
+
return (s, a) => {
|
|
791
791
|
const d = Fe;
|
|
792
|
-
return
|
|
792
|
+
return E(), z(d, I({
|
|
793
793
|
class: "rate-slider",
|
|
794
794
|
value: r.value,
|
|
795
795
|
min: e.min,
|
|
@@ -797,10 +797,10 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
797
797
|
range: "",
|
|
798
798
|
marks: k(i),
|
|
799
799
|
onChange: p
|
|
800
|
-
},
|
|
800
|
+
}, s.$attrs), null, 16, ["value", "min", "max", "marks"]);
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
}), wt = { class: "ip-input" },
|
|
803
|
+
}), wt = { class: "ip-input" }, Et = { class: "ip-wrapper" }, $t = {
|
|
804
804
|
key: 0,
|
|
805
805
|
class: "ip-separator"
|
|
806
806
|
}, Mt = /* @__PURE__ */ F({
|
|
@@ -816,20 +816,20 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
816
816
|
}),
|
|
817
817
|
emits: ["update:value"],
|
|
818
818
|
setup(e) {
|
|
819
|
-
const n =
|
|
819
|
+
const n = $e.useInjectFormItemContext(), t = e, r = G(e, "value"), l = S(["", "", "", ""]), i = S(), u = S(""), o = S(), c = (a) => {
|
|
820
820
|
var y, h;
|
|
821
|
-
const d =
|
|
821
|
+
const d = l.value[a];
|
|
822
822
|
if (d && (!/^\d+$/.test(d) || parseInt(d) > 255)) {
|
|
823
|
-
|
|
823
|
+
l.value[a] = "";
|
|
824
824
|
return;
|
|
825
825
|
}
|
|
826
|
-
parseInt(d) >= 100 && (a < 3 ? (y = i.value) != null && y.length && i.value[a + 1].focus() : t.hasPort && ((h =
|
|
826
|
+
parseInt(d) >= 100 && (a < 3 ? (y = i.value) != null && y.length && i.value[a + 1].focus() : t.hasPort && ((h = o.value) == null || h.focus())), r.value = `${l.value.join(".")}${t.hasPort ? ":" + u.value : ""}`, n.clearValidate();
|
|
827
827
|
}, p = (a, d) => {
|
|
828
828
|
var y, h;
|
|
829
|
-
d.key === " " && a < 3 && (d.preventDefault(), (y = i.value) != null && y.length && i.value[a + 1].focus()), d.key === "Backspace" &&
|
|
829
|
+
d.key === " " && a < 3 && (d.preventDefault(), (y = i.value) != null && y.length && i.value[a + 1].focus()), d.key === "Backspace" && l.value[a] === "" && a > 0 && (h = i.value) != null && h.length && i.value[a - 1].focus();
|
|
830
830
|
};
|
|
831
|
-
function
|
|
832
|
-
r.value = `${
|
|
831
|
+
function s() {
|
|
832
|
+
r.value = `${l.value.join(".")}${t.hasPort ? ":" + (u.value || "") : ""}`, n.clearValidate();
|
|
833
833
|
}
|
|
834
834
|
return ie(
|
|
835
835
|
() => r.value,
|
|
@@ -838,26 +838,26 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
838
838
|
let d = a;
|
|
839
839
|
if (t.hasPort) {
|
|
840
840
|
const h = a.split(":");
|
|
841
|
-
|
|
841
|
+
u.value = h[1] || "", d = h[0];
|
|
842
842
|
}
|
|
843
843
|
const y = d.split(".");
|
|
844
|
-
y.length === 4 && (
|
|
844
|
+
y.length === 4 && (l.value = y);
|
|
845
845
|
} else
|
|
846
|
-
|
|
846
|
+
l.value = ["", "", "", ""], u.value = "";
|
|
847
847
|
},
|
|
848
848
|
{ immediate: !0 }
|
|
849
849
|
), (a, d) => {
|
|
850
850
|
const y = ae;
|
|
851
|
-
return
|
|
852
|
-
|
|
853
|
-
(
|
|
854
|
-
|
|
851
|
+
return E(), T("div", wt, [
|
|
852
|
+
$("div", Et, [
|
|
853
|
+
(E(!0), T(H, null, V(k(l), (h, v) => (E(), T(H, { key: v }, [
|
|
854
|
+
P(y, {
|
|
855
855
|
ref_for: !0,
|
|
856
856
|
ref_key: "ipPartArr",
|
|
857
857
|
ref: i,
|
|
858
858
|
class: "ip-part",
|
|
859
|
-
value: k(
|
|
860
|
-
"onUpdate:value": (x) => k(
|
|
859
|
+
value: k(l)[v],
|
|
860
|
+
"onUpdate:value": (x) => k(l)[v] = x,
|
|
861
861
|
min: 0,
|
|
862
862
|
max: 255,
|
|
863
863
|
precision: 0,
|
|
@@ -865,28 +865,28 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
865
865
|
onChange: (x) => c(v),
|
|
866
866
|
onKeydown: (x) => p(v, x)
|
|
867
867
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
|
|
868
|
-
v < 3 ? (
|
|
868
|
+
v < 3 ? (E(), T("span", $t, ".")) : me("", !0)
|
|
869
869
|
], 64))), 128))
|
|
870
870
|
]),
|
|
871
|
-
e.hasPort ? (
|
|
872
|
-
d[1] || (d[1] =
|
|
873
|
-
|
|
871
|
+
e.hasPort ? (E(), T(H, { key: 0 }, [
|
|
872
|
+
d[1] || (d[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
|
|
873
|
+
P(y, {
|
|
874
874
|
ref_key: "portRef",
|
|
875
|
-
ref:
|
|
875
|
+
ref: o,
|
|
876
876
|
class: "ip-port",
|
|
877
|
-
value: k(
|
|
878
|
-
"onUpdate:value": d[0] || (d[0] = (h) => Q(
|
|
877
|
+
value: k(u),
|
|
878
|
+
"onUpdate:value": d[0] || (d[0] = (h) => Q(u) ? u.value = h : null),
|
|
879
879
|
min: 0,
|
|
880
880
|
max: 65535,
|
|
881
881
|
precision: 0,
|
|
882
882
|
controls: !1,
|
|
883
|
-
onChange:
|
|
883
|
+
onChange: s
|
|
884
884
|
}, null, 8, ["value"])
|
|
885
885
|
], 64)) : me("", !0)
|
|
886
886
|
]);
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
|
-
}),
|
|
889
|
+
}), Nt = { class: "number-range" }, Pt = { class: "separator" }, Tt = /* @__PURE__ */ F({
|
|
890
890
|
inheritAttrs: !1,
|
|
891
891
|
__name: "index",
|
|
892
892
|
props: /* @__PURE__ */ j({
|
|
@@ -913,16 +913,16 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
913
913
|
}),
|
|
914
914
|
emits: /* @__PURE__ */ j(["change"], ["update:value"]),
|
|
915
915
|
setup(e, { emit: n }) {
|
|
916
|
-
const t = e, r = G(e, "value"),
|
|
916
|
+
const t = e, r = G(e, "value"), l = n, i = $e.useInjectFormItemContext(), u = D(() => {
|
|
917
917
|
const a = r.value[1];
|
|
918
918
|
return B(a) ? t.max : a;
|
|
919
|
-
}),
|
|
919
|
+
}), o = D(() => {
|
|
920
920
|
const a = r.value[0];
|
|
921
921
|
return B(a) ? t.min : a;
|
|
922
922
|
}), c = S(), p = S();
|
|
923
|
-
function
|
|
923
|
+
function s() {
|
|
924
924
|
const a = [c.value, p.value];
|
|
925
|
-
r.value = a, i.onFieldChange(),
|
|
925
|
+
r.value = a, i.onFieldChange(), l("change", a);
|
|
926
926
|
}
|
|
927
927
|
return ie(
|
|
928
928
|
() => r.value,
|
|
@@ -932,22 +932,22 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
932
932
|
{ immediate: !0 }
|
|
933
933
|
), (a, d) => {
|
|
934
934
|
const y = ae;
|
|
935
|
-
return
|
|
936
|
-
|
|
935
|
+
return E(), T("div", Nt, [
|
|
936
|
+
P(y, I({
|
|
937
937
|
min: t.min,
|
|
938
|
-
max: k(
|
|
938
|
+
max: k(u),
|
|
939
939
|
value: k(c),
|
|
940
940
|
"onUpdate:value": d[0] || (d[0] = (h) => Q(c) ? c.value = h : null),
|
|
941
941
|
placeholder: e.placeholder[0] || ""
|
|
942
|
-
}, a.$attrs, { onChange:
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
min: k(
|
|
942
|
+
}, a.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"]),
|
|
943
|
+
$("span", Pt, oe(e.separator), 1),
|
|
944
|
+
P(y, I({
|
|
945
|
+
min: k(o),
|
|
946
946
|
max: t.max,
|
|
947
947
|
value: k(p),
|
|
948
948
|
"onUpdate:value": d[1] || (d[1] = (h) => Q(p) ? p.value = h : null),
|
|
949
949
|
placeholder: e.placeholder[1] || ""
|
|
950
|
-
}, a.$attrs, { onChange:
|
|
950
|
+
}, a.$attrs, { onChange: s }), null, 16, ["min", "max", "value", "placeholder"])
|
|
951
951
|
]);
|
|
952
952
|
};
|
|
953
953
|
}
|
|
@@ -956,7 +956,7 @@ const _t = se({ name: "local-clear", render: bt }), xt = { class: "nums-box" },
|
|
|
956
956
|
AInputNumberEx: ft,
|
|
957
957
|
ARangePickerEx: mt,
|
|
958
958
|
ATableEx: gt,
|
|
959
|
-
WlInputNumberRange:
|
|
959
|
+
WlInputNumberRange: Tt,
|
|
960
960
|
WlIpInput: Mt,
|
|
961
961
|
WlNumberKeyboard: St,
|
|
962
962
|
WlRateSlider: kt,
|
|
@@ -967,7 +967,7 @@ function Me(e) {
|
|
|
967
967
|
}
|
|
968
968
|
const ce = typeof window < "u" && typeof document < "u";
|
|
969
969
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
970
|
-
const
|
|
970
|
+
const At = Object.prototype.toString, Dt = (e) => At.call(e) === "[object Object]";
|
|
971
971
|
function Lt(e) {
|
|
972
972
|
let n;
|
|
973
973
|
function t() {
|
|
@@ -984,19 +984,19 @@ function te(e) {
|
|
|
984
984
|
function Bt(e, n, t = {}) {
|
|
985
985
|
const {
|
|
986
986
|
immediate: r = !0,
|
|
987
|
-
immediateCallback:
|
|
987
|
+
immediateCallback: l = !1
|
|
988
988
|
} = t, i = X(!1);
|
|
989
|
-
let
|
|
990
|
-
function
|
|
991
|
-
|
|
989
|
+
let u = null;
|
|
990
|
+
function o() {
|
|
991
|
+
u && (clearTimeout(u), u = null);
|
|
992
992
|
}
|
|
993
993
|
function c() {
|
|
994
|
-
i.value = !1,
|
|
994
|
+
i.value = !1, o();
|
|
995
995
|
}
|
|
996
|
-
function p(...
|
|
997
|
-
|
|
998
|
-
i.value = !1,
|
|
999
|
-
},
|
|
996
|
+
function p(...s) {
|
|
997
|
+
l && e(), o(), i.value = !0, u = setTimeout(() => {
|
|
998
|
+
i.value = !1, u = null, e(...s);
|
|
999
|
+
}, q(n));
|
|
1000
1000
|
}
|
|
1001
1001
|
return r && (i.value = !0, ce && p()), Me(c), {
|
|
1002
1002
|
isPending: He(i),
|
|
@@ -1014,35 +1014,35 @@ function Rt(e, n, t) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
);
|
|
1016
1016
|
}
|
|
1017
|
-
const jt = ce ? window : void 0,
|
|
1018
|
-
function
|
|
1017
|
+
const jt = ce ? window : void 0, Ne = ce ? window.navigator : void 0;
|
|
1018
|
+
function Pe(e) {
|
|
1019
1019
|
var n;
|
|
1020
|
-
const t =
|
|
1020
|
+
const t = q(e);
|
|
1021
1021
|
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
1022
1022
|
}
|
|
1023
1023
|
function Y(...e) {
|
|
1024
1024
|
const n = [], t = () => {
|
|
1025
|
-
n.forEach((
|
|
1026
|
-
}, r = (
|
|
1027
|
-
const
|
|
1028
|
-
return
|
|
1025
|
+
n.forEach((o) => o()), n.length = 0;
|
|
1026
|
+
}, r = (o, c, p, s) => (o.addEventListener(c, p, s), () => o.removeEventListener(c, p, s)), l = D(() => {
|
|
1027
|
+
const o = te(q(e[0])).filter((c) => c != null);
|
|
1028
|
+
return o.every((c) => typeof c != "string") ? o : void 0;
|
|
1029
1029
|
}), i = Rt(
|
|
1030
1030
|
() => {
|
|
1031
|
-
var
|
|
1031
|
+
var o, c;
|
|
1032
1032
|
return [
|
|
1033
|
-
(c = (
|
|
1034
|
-
te(
|
|
1035
|
-
te(k(
|
|
1033
|
+
(c = (o = l.value) == null ? void 0 : o.map((p) => Pe(p))) != null ? c : [jt].filter((p) => p != null),
|
|
1034
|
+
te(q(l.value ? e[1] : e[0])),
|
|
1035
|
+
te(k(l.value ? e[2] : e[1])),
|
|
1036
1036
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
1037
|
-
|
|
1037
|
+
q(l.value ? e[3] : e[2])
|
|
1038
1038
|
];
|
|
1039
1039
|
},
|
|
1040
|
-
([
|
|
1041
|
-
if (t(), !(
|
|
1040
|
+
([o, c, p, s]) => {
|
|
1041
|
+
if (t(), !(o != null && o.length) || !(c != null && c.length) || !(p != null && p.length))
|
|
1042
1042
|
return;
|
|
1043
|
-
const a = Dt(
|
|
1043
|
+
const a = Dt(s) ? { ...s } : s;
|
|
1044
1044
|
n.push(
|
|
1045
|
-
...
|
|
1045
|
+
...o.flatMap(
|
|
1046
1046
|
(d) => c.flatMap(
|
|
1047
1047
|
(y) => p.map((h) => r(d, y, h, a))
|
|
1048
1048
|
)
|
|
@@ -1050,44 +1050,44 @@ function Y(...e) {
|
|
|
1050
1050
|
);
|
|
1051
1051
|
},
|
|
1052
1052
|
{ flush: "post" }
|
|
1053
|
-
),
|
|
1053
|
+
), u = () => {
|
|
1054
1054
|
i(), t();
|
|
1055
1055
|
};
|
|
1056
|
-
return Me(t),
|
|
1056
|
+
return Me(t), u;
|
|
1057
1057
|
}
|
|
1058
1058
|
function Ot() {
|
|
1059
1059
|
const e = X(!1), n = J();
|
|
1060
|
-
return n &&
|
|
1060
|
+
return n && Ee(() => {
|
|
1061
1061
|
e.value = !0;
|
|
1062
1062
|
}, n), e;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Te(e) {
|
|
1065
1065
|
const n = Ot();
|
|
1066
1066
|
return D(() => (n.value, !!e()));
|
|
1067
1067
|
}
|
|
1068
1068
|
const It = 500, Ft = 10;
|
|
1069
1069
|
function Ut(e, n, t) {
|
|
1070
|
-
var r,
|
|
1071
|
-
const i = D(() =>
|
|
1072
|
-
let
|
|
1073
|
-
function
|
|
1074
|
-
|
|
1070
|
+
var r, l;
|
|
1071
|
+
const i = D(() => Pe(e));
|
|
1072
|
+
let u, o, c, p = !1;
|
|
1073
|
+
function s() {
|
|
1074
|
+
u && (clearTimeout(u), u = void 0), o = void 0, c = void 0, p = !1;
|
|
1075
1075
|
}
|
|
1076
1076
|
function a(f) {
|
|
1077
1077
|
var m, g, b;
|
|
1078
|
-
const [_, C, w] = [c,
|
|
1079
|
-
if (
|
|
1078
|
+
const [_, C, w] = [c, o, p];
|
|
1079
|
+
if (s(), !(t != null && t.onMouseUp) || !C || !_ || (m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value)
|
|
1080
1080
|
return;
|
|
1081
1081
|
(g = t == null ? void 0 : t.modifiers) != null && g.prevent && f.preventDefault(), (b = t == null ? void 0 : t.modifiers) != null && b.stop && f.stopPropagation();
|
|
1082
|
-
const L = f.x - C.x, U = f.y - C.y,
|
|
1083
|
-
t.onMouseUp(f.timeStamp - _,
|
|
1082
|
+
const L = f.x - C.x, U = f.y - C.y, N = Math.sqrt(L * L + U * U);
|
|
1083
|
+
t.onMouseUp(f.timeStamp - _, N, w);
|
|
1084
1084
|
}
|
|
1085
1085
|
function d(f) {
|
|
1086
1086
|
var m, g, b, _;
|
|
1087
|
-
(m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value || (
|
|
1087
|
+
(m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value || (s(), (g = t == null ? void 0 : t.modifiers) != null && g.prevent && f.preventDefault(), (b = t == null ? void 0 : t.modifiers) != null && b.stop && f.stopPropagation(), o = {
|
|
1088
1088
|
x: f.x,
|
|
1089
1089
|
y: f.y
|
|
1090
|
-
}, c = f.timeStamp,
|
|
1090
|
+
}, c = f.timeStamp, u = setTimeout(
|
|
1091
1091
|
() => {
|
|
1092
1092
|
p = !0, n(f);
|
|
1093
1093
|
},
|
|
@@ -1096,15 +1096,15 @@ function Ut(e, n, t) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
function y(f) {
|
|
1098
1098
|
var m, g, b, _;
|
|
1099
|
-
if ((m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value || !
|
|
1099
|
+
if ((m = t == null ? void 0 : t.modifiers) != null && m.self && f.target !== i.value || !o || (t == null ? void 0 : t.distanceThreshold) === !1)
|
|
1100
1100
|
return;
|
|
1101
1101
|
(g = t == null ? void 0 : t.modifiers) != null && g.prevent && f.preventDefault(), (b = t == null ? void 0 : t.modifiers) != null && b.stop && f.stopPropagation();
|
|
1102
|
-
const C = f.x -
|
|
1103
|
-
Math.sqrt(C * C + w * w) >= ((_ = t == null ? void 0 : t.distanceThreshold) != null ? _ : Ft) &&
|
|
1102
|
+
const C = f.x - o.x, w = f.y - o.y;
|
|
1103
|
+
Math.sqrt(C * C + w * w) >= ((_ = t == null ? void 0 : t.distanceThreshold) != null ? _ : Ft) && s();
|
|
1104
1104
|
}
|
|
1105
1105
|
const h = {
|
|
1106
1106
|
capture: (r = t == null ? void 0 : t.modifiers) == null ? void 0 : r.capture,
|
|
1107
|
-
once: (
|
|
1107
|
+
once: (l = t == null ? void 0 : t.modifiers) == null ? void 0 : l.once
|
|
1108
1108
|
}, v = [
|
|
1109
1109
|
Y(i, "pointerdown", d, h),
|
|
1110
1110
|
Y(i, "pointermove", y, h),
|
|
@@ -1115,17 +1115,17 @@ function Ut(e, n, t) {
|
|
|
1115
1115
|
function be(e, n = {}) {
|
|
1116
1116
|
const {
|
|
1117
1117
|
controls: t = !1,
|
|
1118
|
-
navigator: r =
|
|
1119
|
-
} = n,
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1118
|
+
navigator: r = Ne
|
|
1119
|
+
} = n, l = Te(() => r && "permissions" in r), i = X(), u = typeof e == "string" ? { name: e } : e, o = X(), c = () => {
|
|
1120
|
+
var s, a;
|
|
1121
|
+
o.value = (a = (s = i.value) == null ? void 0 : s.state) != null ? a : "prompt";
|
|
1122
1122
|
};
|
|
1123
1123
|
Y(i, "change", c, { passive: !0 });
|
|
1124
1124
|
const p = Lt(async () => {
|
|
1125
|
-
if (
|
|
1125
|
+
if (l.value) {
|
|
1126
1126
|
if (!i.value)
|
|
1127
1127
|
try {
|
|
1128
|
-
i.value = await r.permissions.query(
|
|
1128
|
+
i.value = await r.permissions.query(u);
|
|
1129
1129
|
} catch {
|
|
1130
1130
|
i.value = void 0;
|
|
1131
1131
|
} finally {
|
|
@@ -1136,40 +1136,40 @@ function be(e, n = {}) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
});
|
|
1138
1138
|
return p(), t ? {
|
|
1139
|
-
state:
|
|
1140
|
-
isSupported:
|
|
1139
|
+
state: o,
|
|
1140
|
+
isSupported: l,
|
|
1141
1141
|
query: p
|
|
1142
|
-
} :
|
|
1142
|
+
} : o;
|
|
1143
1143
|
}
|
|
1144
1144
|
function Wt(e = {}) {
|
|
1145
1145
|
const {
|
|
1146
|
-
navigator: n =
|
|
1146
|
+
navigator: n = Ne,
|
|
1147
1147
|
read: t = !1,
|
|
1148
1148
|
source: r,
|
|
1149
|
-
copiedDuring:
|
|
1149
|
+
copiedDuring: l = 1500,
|
|
1150
1150
|
legacy: i = !1
|
|
1151
|
-
} = e,
|
|
1151
|
+
} = e, u = Te(() => n && "clipboard" in n), o = be("clipboard-read"), c = be("clipboard-write"), p = D(() => u.value || i), s = X(""), a = X(!1), d = Bt(() => a.value = !1, l, { immediate: !1 });
|
|
1152
1152
|
async function y() {
|
|
1153
|
-
let m = !(
|
|
1153
|
+
let m = !(u.value && f(o.value));
|
|
1154
1154
|
if (!m)
|
|
1155
1155
|
try {
|
|
1156
|
-
|
|
1156
|
+
s.value = await n.clipboard.readText();
|
|
1157
1157
|
} catch {
|
|
1158
1158
|
m = !0;
|
|
1159
1159
|
}
|
|
1160
|
-
m && (
|
|
1160
|
+
m && (s.value = x());
|
|
1161
1161
|
}
|
|
1162
1162
|
p.value && t && Y(["copy", "cut"], y, { passive: !0 });
|
|
1163
|
-
async function h(m =
|
|
1163
|
+
async function h(m = q(r)) {
|
|
1164
1164
|
if (p.value && m != null) {
|
|
1165
|
-
let g = !(
|
|
1165
|
+
let g = !(u.value && f(c.value));
|
|
1166
1166
|
if (!g)
|
|
1167
1167
|
try {
|
|
1168
1168
|
await n.clipboard.writeText(m);
|
|
1169
1169
|
} catch {
|
|
1170
1170
|
g = !0;
|
|
1171
1171
|
}
|
|
1172
|
-
g && v(m),
|
|
1172
|
+
g && v(m), s.value = m, a.value = !0, d.start();
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
1175
|
function v(m) {
|
|
@@ -1185,23 +1185,23 @@ function Wt(e = {}) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
return {
|
|
1187
1187
|
isSupported: p,
|
|
1188
|
-
text:
|
|
1188
|
+
text: s,
|
|
1189
1189
|
copied: a,
|
|
1190
1190
|
copy: h
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
1193
|
const zt = Wt();
|
|
1194
1194
|
let ne;
|
|
1195
|
-
const
|
|
1195
|
+
const qt = {
|
|
1196
1196
|
mounted(e, n, t) {
|
|
1197
|
-
var
|
|
1198
|
-
const r = ue(t.ctx),
|
|
1197
|
+
var u, o;
|
|
1198
|
+
const r = ue(t.ctx), l = ((o = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.locale) == null ? void 0 : o.slice(0, 2)) || "en", i = {
|
|
1199
1199
|
zh: "复制成功",
|
|
1200
1200
|
en: "Copy successfully",
|
|
1201
1201
|
fr: "Copie réussie"
|
|
1202
1202
|
};
|
|
1203
1203
|
e.copyValue = n.value, ne = () => {
|
|
1204
|
-
zt.copy(e.copyValue), at.success(i[
|
|
1204
|
+
zt.copy(e.copyValue), at.success(i[l]);
|
|
1205
1205
|
}, e.addEventListener("click", ne);
|
|
1206
1206
|
},
|
|
1207
1207
|
updated(e, n) {
|
|
@@ -1212,7 +1212,10 @@ const Kt = {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}, Vt = {
|
|
1214
1214
|
beforeMount(e, n, t) {
|
|
1215
|
-
const r =
|
|
1215
|
+
const r = e.tagName === "INPUT" ? e : e.querySelector("input");
|
|
1216
|
+
if (!r)
|
|
1217
|
+
return;
|
|
1218
|
+
const l = n.value, i = {
|
|
1216
1219
|
letterNumber: /^\w*$/,
|
|
1217
1220
|
// 字母和数字
|
|
1218
1221
|
price: /^(\d*|(\d+\.\d{0,2}))$/,
|
|
@@ -1224,11 +1227,11 @@ const Kt = {
|
|
|
1224
1227
|
verify: /^\d{0,6}$/,
|
|
1225
1228
|
idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
|
|
1226
1229
|
//身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
|
|
1227
|
-
},
|
|
1230
|
+
}, u = l instanceof RegExp ? l : n.arg && i[n.arg] ? i[n.arg] : null;
|
|
1228
1231
|
e._handleInput = (o) => {
|
|
1229
1232
|
if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
|
|
1230
|
-
const
|
|
1231
|
-
if (e._input =
|
|
1233
|
+
const c = u == null ? void 0 : u.test(o.target.value);
|
|
1234
|
+
if (e._input = c ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !c)
|
|
1232
1235
|
o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
|
|
1233
1236
|
else
|
|
1234
1237
|
switch (o.inputType) {
|
|
@@ -1245,10 +1248,10 @@ const Kt = {
|
|
|
1245
1248
|
case "insertFromPaste":
|
|
1246
1249
|
//粘贴
|
|
1247
1250
|
case "insertFromDrop":
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
const
|
|
1251
|
-
o.target.selectionStart = e._start +
|
|
1251
|
+
const s = o.dataTransfer || o.clipboardData || null;
|
|
1252
|
+
if (s) {
|
|
1253
|
+
const a = s.getData("text") || "";
|
|
1254
|
+
o.target.selectionStart = e._start + a.length, o.target.selectionEnd = e._start + a.length;
|
|
1252
1255
|
}
|
|
1253
1256
|
break;
|
|
1254
1257
|
case "insertText":
|
|
@@ -1257,40 +1260,41 @@ const Kt = {
|
|
|
1257
1260
|
o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
|
|
1258
1261
|
break;
|
|
1259
1262
|
}
|
|
1260
|
-
const
|
|
1263
|
+
const p = new InputEvent("input", {
|
|
1261
1264
|
isComposing: !1
|
|
1262
1265
|
});
|
|
1263
|
-
o.target.dispatchEvent(
|
|
1266
|
+
o.target.dispatchEvent(p);
|
|
1264
1267
|
}
|
|
1265
1268
|
}, e._handleKeydown = (o) => {
|
|
1266
|
-
const
|
|
1267
|
-
e._input =
|
|
1269
|
+
const c = u == null ? void 0 : u.test(o.target.value);
|
|
1270
|
+
e._input = c ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
|
|
1268
1271
|
}, e._handleDrop = (o) => {
|
|
1269
1272
|
o.stopPropagation();
|
|
1270
|
-
},
|
|
1273
|
+
}, r.addEventListener("input", e._handleInput), r.addEventListener("keydown", e._handleKeydown), r.addEventListener("drop", e._handleDrop);
|
|
1271
1274
|
},
|
|
1272
1275
|
unmounted(e) {
|
|
1273
|
-
|
|
1276
|
+
const n = e.tagName === "INPUT" ? e : e.querySelector("input");
|
|
1277
|
+
n && (n.removeEventListener("input", e._handleInput), n.removeEventListener("keydown", e._handleKeydown), n.removeEventListener("drop", e._handleDrop));
|
|
1274
1278
|
}
|
|
1275
1279
|
};
|
|
1276
1280
|
function _e(e, n, t) {
|
|
1277
1281
|
const r = n.value;
|
|
1278
1282
|
if (r) {
|
|
1279
|
-
const
|
|
1280
|
-
e.style.marginLeft = `-${
|
|
1283
|
+
const l = r / 2;
|
|
1284
|
+
e.style.marginLeft = `-${l}px`, e.style.marginRight = `-${l}px`;
|
|
1281
1285
|
const i = t.children;
|
|
1282
|
-
i != null && i.length && i[0].children.forEach((
|
|
1283
|
-
if (
|
|
1284
|
-
const
|
|
1285
|
-
|
|
1286
|
-
} else Array.isArray(
|
|
1287
|
-
const c =
|
|
1288
|
-
c != null && c.style && (c.style.paddingLeft =
|
|
1286
|
+
i != null && i.length && i[0].children.forEach((u) => {
|
|
1287
|
+
if (u.component) {
|
|
1288
|
+
const o = u.el;
|
|
1289
|
+
o != null && o.style && (o.style.paddingLeft = l + "px", o.style.paddingRight = l + "px");
|
|
1290
|
+
} else Array.isArray(u.children) && u.children.forEach((o) => {
|
|
1291
|
+
const c = o.el;
|
|
1292
|
+
c != null && c.style && (c.style.paddingLeft = l + "px", c.style.paddingRight = l + "px");
|
|
1289
1293
|
});
|
|
1290
1294
|
});
|
|
1291
1295
|
}
|
|
1292
1296
|
}
|
|
1293
|
-
const
|
|
1297
|
+
const Kt = {
|
|
1294
1298
|
beforeMount(e) {
|
|
1295
1299
|
e.classList.add("ant-row"), e.style.display = "flex", e.style.flexWrap = "wrap", e.style.flexDirection = "row", e.style.minWidth = 0;
|
|
1296
1300
|
},
|
|
@@ -1309,32 +1313,32 @@ const qt = {
|
|
|
1309
1313
|
}, Ht = {
|
|
1310
1314
|
mounted(e, n, t) {
|
|
1311
1315
|
const { value: r } = n, {
|
|
1312
|
-
content:
|
|
1316
|
+
content: l = "",
|
|
1313
1317
|
placement: i = "top",
|
|
1314
|
-
enabled:
|
|
1315
|
-
padding:
|
|
1318
|
+
enabled: u = !0,
|
|
1319
|
+
padding: o = 8,
|
|
1316
1320
|
// 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
|
|
1317
1321
|
...c
|
|
1318
1322
|
} = typeof r == "string" ? { content: r } : r;
|
|
1319
|
-
if (e.tooltipDisabled = !1, !
|
|
1323
|
+
if (e.tooltipDisabled = !1, !u)
|
|
1320
1324
|
e.tooltipDisabled = !0;
|
|
1321
1325
|
else if (n.modifiers.exceed) {
|
|
1322
|
-
const y = e.clientWidth, h = xe(
|
|
1323
|
-
e.tooltipDisabled = y ? h < y -
|
|
1326
|
+
const y = e.clientWidth, h = xe(l);
|
|
1327
|
+
e.tooltipDisabled = y ? h < y - o * 2 : !0;
|
|
1324
1328
|
}
|
|
1325
1329
|
const p = S({
|
|
1326
1330
|
top: 0,
|
|
1327
1331
|
left: 0,
|
|
1328
1332
|
bottom: 0,
|
|
1329
1333
|
right: 0
|
|
1330
|
-
}),
|
|
1334
|
+
}), s = S({
|
|
1331
1335
|
getBoundingClientRect: () => p.value
|
|
1332
|
-
}), a = W(
|
|
1336
|
+
}), a = W(rt, {
|
|
1333
1337
|
visible: !1,
|
|
1334
|
-
content:
|
|
1338
|
+
content: l,
|
|
1335
1339
|
placement: i,
|
|
1336
1340
|
virtualTriggering: !0,
|
|
1337
|
-
virtualRef:
|
|
1341
|
+
virtualRef: s.value,
|
|
1338
1342
|
popperClass: "vtooltip",
|
|
1339
1343
|
...c
|
|
1340
1344
|
}), d = document.createDocumentFragment();
|
|
@@ -1348,20 +1352,20 @@ const qt = {
|
|
|
1348
1352
|
if (e.tooltipVm) {
|
|
1349
1353
|
const { value: t } = n, {
|
|
1350
1354
|
content: r = "",
|
|
1351
|
-
placement:
|
|
1355
|
+
placement: l = "top",
|
|
1352
1356
|
enabled: i = !0,
|
|
1353
|
-
padding:
|
|
1357
|
+
padding: u = 8,
|
|
1354
1358
|
// 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
|
|
1355
|
-
...
|
|
1359
|
+
...o
|
|
1356
1360
|
} = typeof t == "string" ? { content: t } : t;
|
|
1357
1361
|
if (e.tooltipDisabled = !1, !i)
|
|
1358
1362
|
e.tooltipDisabled = !0;
|
|
1359
1363
|
else if (n.modifiers.exceed) {
|
|
1360
|
-
const p = e.clientWidth,
|
|
1361
|
-
e.tooltipDisabled = p ?
|
|
1364
|
+
const p = e.clientWidth, s = xe(r);
|
|
1365
|
+
e.tooltipDisabled = p ? s < p - u * 2 : !0;
|
|
1362
1366
|
}
|
|
1363
1367
|
const c = e.tooltipVm;
|
|
1364
|
-
c.component && (Object.assign(c.component.props, { content: r, placement:
|
|
1368
|
+
c.component && (Object.assign(c.component.props, { content: r, placement: l, ...o }), c.component.update());
|
|
1365
1369
|
}
|
|
1366
1370
|
},
|
|
1367
1371
|
unmounted(e) {
|
|
@@ -1376,8 +1380,8 @@ const Yt = {
|
|
|
1376
1380
|
beforeMount(e, n) {
|
|
1377
1381
|
const { value: t } = n;
|
|
1378
1382
|
t && (Qe(t) || setTimeout(() => {
|
|
1379
|
-
var
|
|
1380
|
-
(
|
|
1383
|
+
var l;
|
|
1384
|
+
(l = e.parentNode) == null || l.removeChild(e);
|
|
1381
1385
|
}, 50));
|
|
1382
1386
|
}
|
|
1383
1387
|
};
|
|
@@ -1387,12 +1391,12 @@ function Ce(e, n = 4) {
|
|
|
1387
1391
|
}
|
|
1388
1392
|
const Zt = {
|
|
1389
1393
|
mounted(e, n) {
|
|
1390
|
-
const { value: t } = n, { content: r = "", spaceNum:
|
|
1391
|
-
e.textContent = Ce(i,
|
|
1394
|
+
const { value: t } = n, { content: r = "", spaceNum: l = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, i = r.replace(/\s+/g, "");
|
|
1395
|
+
e.textContent = Ce(i, l) || "-";
|
|
1392
1396
|
},
|
|
1393
1397
|
updated(e, n) {
|
|
1394
|
-
const { value: t } = n, { content: r = "", spaceNum:
|
|
1395
|
-
e.textContent = Ce(i,
|
|
1398
|
+
const { value: t } = n, { content: r = "", spaceNum: l = 4 } = typeof t == "object" ? t || {} : { content: t + "" }, i = r.replace(/\s+/g, "");
|
|
1399
|
+
e.textContent = Ce(i, l) || "-";
|
|
1396
1400
|
}
|
|
1397
1401
|
}, Gt = {
|
|
1398
1402
|
mounted(e, n) {
|
|
@@ -1401,11 +1405,11 @@ const Zt = {
|
|
|
1401
1405
|
}, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1402
1406
|
__proto__: null,
|
|
1403
1407
|
col: Xt,
|
|
1404
|
-
copy:
|
|
1408
|
+
copy: qt,
|
|
1405
1409
|
inputlimit: Vt,
|
|
1406
1410
|
longpress: Gt,
|
|
1407
1411
|
permission: Yt,
|
|
1408
|
-
row:
|
|
1412
|
+
row: Kt,
|
|
1409
1413
|
space: Zt,
|
|
1410
1414
|
tooltip: Ht
|
|
1411
1415
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1416,21 +1420,21 @@ function Qt(e) {
|
|
|
1416
1420
|
e.directive(n, Se[n]);
|
|
1417
1421
|
});
|
|
1418
1422
|
}
|
|
1419
|
-
const
|
|
1423
|
+
const ln = { install: Qt };
|
|
1420
1424
|
export {
|
|
1421
1425
|
ft as AInputNumberEx,
|
|
1422
1426
|
mt as ARangePickerEx,
|
|
1423
1427
|
gt as ATableEx,
|
|
1424
1428
|
dn as UserCenterKey,
|
|
1425
|
-
|
|
1429
|
+
Tt as WlInputNumberRange,
|
|
1426
1430
|
Mt as WlIpInput,
|
|
1427
1431
|
St as WlNumberKeyboard,
|
|
1428
1432
|
kt as WlRateSlider,
|
|
1429
1433
|
ht as WlSplitter,
|
|
1430
1434
|
pn as buildTree,
|
|
1431
1435
|
Xt as col,
|
|
1432
|
-
|
|
1433
|
-
|
|
1436
|
+
qt as copy,
|
|
1437
|
+
ln as default,
|
|
1434
1438
|
fn as exportFile,
|
|
1435
1439
|
mn as forEachTree,
|
|
1436
1440
|
vn as getButtonPermissions,
|
|
@@ -1446,13 +1450,13 @@ export {
|
|
|
1446
1450
|
Sn as isArray,
|
|
1447
1451
|
kn as isAsyncFunction,
|
|
1448
1452
|
wn as isBoolean,
|
|
1449
|
-
|
|
1450
|
-
|
|
1453
|
+
En as isClient,
|
|
1454
|
+
$n as isDate,
|
|
1451
1455
|
Mn as isDef,
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
+
Nn as isElement,
|
|
1457
|
+
Pn as isFunction,
|
|
1458
|
+
Tn as isImageDom,
|
|
1459
|
+
An as isNull,
|
|
1456
1460
|
B as isNullOrUndef,
|
|
1457
1461
|
Dn as isNumber,
|
|
1458
1462
|
Ln as isObject,
|
|
@@ -1467,10 +1471,10 @@ export {
|
|
|
1467
1471
|
Un as removeAll,
|
|
1468
1472
|
Wn as removeLocale,
|
|
1469
1473
|
zn as removeToken,
|
|
1470
|
-
|
|
1471
|
-
|
|
1474
|
+
Kt as row,
|
|
1475
|
+
qn as setLocale,
|
|
1472
1476
|
Vn as setMenuInfo,
|
|
1473
|
-
|
|
1477
|
+
Kn as setToken,
|
|
1474
1478
|
Xn as setUserCenterParams,
|
|
1475
1479
|
Hn as setUserInfo,
|
|
1476
1480
|
Zt as space,
|
|
@@ -1478,5 +1482,5 @@ export {
|
|
|
1478
1482
|
Ht as tooltip,
|
|
1479
1483
|
ue as useConfigProvider,
|
|
1480
1484
|
sn as useFindParent,
|
|
1481
|
-
|
|
1485
|
+
rn as useModal
|
|
1482
1486
|
};
|