@witlink/components 2.0.2 → 2.0.3
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 +352 -356
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { InputNumber as re, DateRangePicker as Le, Select as Oe, Divider as Re, Space as Ue, Input as ke, Button as le, Drawer as je, App as Be, Modal as Ie, ConfigProvider as We, TextArea as Fe, Table as ze, Popover as qe, Row as Ke, Col as Ve, Slider as He, message as Xe } from "antdv-next";
|
|
2
|
-
import { defineComponent as j, useSlots as we, createBlock as U, openBlock as
|
|
2
|
+
import { defineComponent as j, useSlots as we, createBlock as U, openBlock as w, mergeProps as F, createSlots as ie, renderList as V, unref as S, withCtx as P, renderSlot as I, normalizeProps as ce, guardReactiveProps as $e, useAttrs as Ye, ref as x, markRaw as Ee, createElementBlock as M, createElementVNode as $, watch as Q, createVNode as E, resolveDynamicComponent as Ze, isRef as Z, withModifiers as ae, getCurrentInstance as J, render as G, h as W, computed as L, onMounted as Pe, onUnmounted as Ge, normalizeClass as Qe, normalizeStyle as pe, mergeModels as z, useModel as ee, resolveDirective as Je, withKeys as et, Fragment as X, createTextVNode as te, toDisplayString as se, withDirectives as tt, nextTick as fe, useCssVars as nt, createCommentVNode as me, shallowRef as H, shallowReadonly as ot, toValue as K, getCurrentScope as at, onScopeDispose as st, toRaw as rt } from "vue";
|
|
3
3
|
import ve from "dayjs";
|
|
4
4
|
import "antdv-next/dist/modal/useModal/types";
|
|
5
5
|
import { ElScrollbar as lt, ElTooltip as it } from "element-plus";
|
|
6
|
-
import { isNullOrUndef as q, hasPermission as
|
|
6
|
+
import { isNullOrUndef as q, hasPermission as ct } from "./utils.js";
|
|
7
7
|
import { UserCenterKey as xn, buildTree as Cn, exportFile as Sn, forEachTree as kn, getButtonPermissions as wn, getLocale as $n, getMenuInfo as En, getToken as Pn, getUserCenterParams as Dn, getUserCenterParamsByUrl as An, getUserInfo as Tn, is as Mn, isArray as Nn, isAsyncFunction as Ln, isBoolean as On, isClient as Rn, isDate as Un, isDef as jn, isElement as Bn, isFunction as In, isImageDom as Wn, isNull as Fn, isNumber as zn, isObject as qn, isPromise as Kn, isServer as Vn, isString as Hn, isUndef as Xn, isWindow as Yn, logoutToUserCenter as Zn, removeAll as Gn, removeLocale as Qn, removeToken as Jn, setLocale as eo, setMenuInfo as to, setToken as no, setUserCenterParams as oo, setUserInfo as ao, toUserCenterConsole as so } from "./utils.js";
|
|
8
|
-
const
|
|
8
|
+
const ut = /* @__PURE__ */ j({
|
|
9
9
|
inheritAttrs: !1,
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -18,13 +18,13 @@ const ct = /* @__PURE__ */ j({
|
|
|
18
18
|
const n = we();
|
|
19
19
|
return (t, s) => {
|
|
20
20
|
const i = re;
|
|
21
|
-
return
|
|
21
|
+
return w(), U(i, F({
|
|
22
22
|
mode: e.customControls ? "spinner" : ""
|
|
23
23
|
}, t.$attrs), ie({ _: 2 }, [
|
|
24
24
|
V(Object.keys(S(n)), (r) => ({
|
|
25
25
|
name: r,
|
|
26
|
-
fn:
|
|
27
|
-
I(t.$slots, r,
|
|
26
|
+
fn: P((c) => [
|
|
27
|
+
I(t.$slots, r, ce($e(c)))
|
|
28
28
|
])
|
|
29
29
|
}))
|
|
30
30
|
]), 1040, ["mode"]);
|
|
@@ -65,33 +65,33 @@ const ct = /* @__PURE__ */ j({
|
|
|
65
65
|
},
|
|
66
66
|
emits: ["update:value", "change"],
|
|
67
67
|
setup(e, { emit: n }) {
|
|
68
|
-
const t = e, s = n, i = Ye(), r =
|
|
69
|
-
var
|
|
68
|
+
const t = e, s = n, i = Ye(), r = x(), c = x(), o = (l) => {
|
|
69
|
+
var A, O, R;
|
|
70
70
|
const g = t.maxUnit || t.unit, h = t.minUnit || t.unit, y = ve().add(t.max, g), v = ve().subtract(t.min, h), k = t.interval;
|
|
71
|
-
if (!((
|
|
71
|
+
if (!((A = r.value) != null && A.length))
|
|
72
72
|
return l.isAfter(y) || l.isBefore(v);
|
|
73
|
-
const
|
|
74
|
-
return _ && (_.diff(l,
|
|
75
|
-
},
|
|
76
|
-
l ? (r.value = [],
|
|
77
|
-
},
|
|
73
|
+
const f = t.intervalUnit || t.unit, p = i.picker || "date", d = (O = r.value[0]) == null ? void 0 : O.startOf(p), _ = (R = r.value[1]) == null ? void 0 : R.endOf(p), b = d && (l.diff(d, f) > k || l.isAfter(y));
|
|
74
|
+
return _ && (_.diff(l, f) > k || l.isBefore(v)) || b;
|
|
75
|
+
}, u = (l) => {
|
|
76
|
+
l ? (r.value = [], c.value = []) : c.value = void 0;
|
|
77
|
+
}, m = (l) => {
|
|
78
78
|
s("update:value", l), s("change", l);
|
|
79
79
|
}, a = (l) => {
|
|
80
80
|
r.value = l;
|
|
81
81
|
};
|
|
82
82
|
return (l, g) => {
|
|
83
83
|
const h = Le;
|
|
84
|
-
return
|
|
85
|
-
value: S(
|
|
84
|
+
return w(), U(h, F({
|
|
85
|
+
value: S(c) || e.value,
|
|
86
86
|
"disabled-date": o,
|
|
87
|
-
onChange:
|
|
88
|
-
onOpenChange:
|
|
87
|
+
onChange: m,
|
|
88
|
+
onOpenChange: u,
|
|
89
89
|
onCalendarChange: a
|
|
90
90
|
}, l.$attrs), ie({ _: 2 }, [
|
|
91
91
|
V(Object.keys(l.$slots), (y) => ({
|
|
92
92
|
name: y,
|
|
93
|
-
fn:
|
|
94
|
-
I(l.$slots, y,
|
|
93
|
+
fn: P((v) => [
|
|
94
|
+
I(l.$slots, y, ce($e(v)))
|
|
95
95
|
])
|
|
96
96
|
}))
|
|
97
97
|
]), 1040, ["value"]);
|
|
@@ -104,12 +104,12 @@ const ct = /* @__PURE__ */ j({
|
|
|
104
104
|
height: "1.2em"
|
|
105
105
|
};
|
|
106
106
|
function ft(e, n) {
|
|
107
|
-
return
|
|
108
|
-
|
|
107
|
+
return w(), M("svg", pt, n[0] || (n[0] = [
|
|
108
|
+
$("path", {
|
|
109
109
|
fill: "currentColor",
|
|
110
110
|
d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8"
|
|
111
111
|
}, null, -1),
|
|
112
|
-
|
|
112
|
+
$("path", {
|
|
113
113
|
fill: "currentColor",
|
|
114
114
|
d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"
|
|
115
115
|
}, null, -1)
|
|
@@ -127,37 +127,37 @@ const mt = Ee({ name: "ant-design-plus", render: ft }), vt = /* @__PURE__ */ j({
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
setup(e) {
|
|
130
|
-
const n = e, t =
|
|
130
|
+
const n = e, t = x([]), s = x();
|
|
131
131
|
function i() {
|
|
132
132
|
const r = s.value;
|
|
133
|
-
r && t.value.every((
|
|
133
|
+
r && t.value.every((c) => c.value !== r) && (t.value.push({ value: r }), s.value = "");
|
|
134
134
|
}
|
|
135
135
|
return Q(
|
|
136
136
|
() => n.options,
|
|
137
|
-
(r,
|
|
137
|
+
(r, c) => {
|
|
138
138
|
var o;
|
|
139
|
-
r &&
|
|
139
|
+
r && c && r.length === c.length && r.every((u) => c.includes(u)) || (t.value = ((o = n.options) == null ? void 0 : o.map((u) => ({ value: u }))) || []);
|
|
140
140
|
},
|
|
141
141
|
{ immediate: !0 }
|
|
142
|
-
), (r,
|
|
143
|
-
const o = Re,
|
|
144
|
-
return
|
|
145
|
-
popupRender:
|
|
146
|
-
(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
default:
|
|
150
|
-
|
|
142
|
+
), (r, c) => {
|
|
143
|
+
const o = Re, u = ke, m = mt, a = le, l = Ue, g = Oe;
|
|
144
|
+
return w(), U(g, F({ options: S(t) }, r.$attrs), {
|
|
145
|
+
popupRender: P((h) => [
|
|
146
|
+
(w(), U(Ze(h))),
|
|
147
|
+
E(o, { style: { margin: "4px 0" } }),
|
|
148
|
+
E(l, null, {
|
|
149
|
+
default: P(() => [
|
|
150
|
+
E(u, {
|
|
151
151
|
value: S(s),
|
|
152
|
-
"onUpdate:value":
|
|
152
|
+
"onUpdate:value": c[0] || (c[0] = (y) => Z(s) ? s.value = y : null),
|
|
153
153
|
placeholder: e.inputPlaceholder
|
|
154
154
|
}, null, 8, ["value", "placeholder"]),
|
|
155
|
-
|
|
155
|
+
E(a, {
|
|
156
156
|
type: "text",
|
|
157
157
|
onClick: ae(i, ["prevent"])
|
|
158
158
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
159
|
+
default: P(() => [
|
|
160
|
+
E(m)
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
163
163
|
})
|
|
@@ -170,11 +170,11 @@ const mt = Ee({ name: "ant-design-plus", render: ft }), vt = /* @__PURE__ */ j({
|
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
function
|
|
173
|
+
function ue(e) {
|
|
174
174
|
e || (e = J());
|
|
175
175
|
const n = (e == null ? void 0 : e.provides) || {}, t = gt(n, "ConfigConsumerContext"), s = n[t].value;
|
|
176
176
|
return Object.fromEntries(
|
|
177
|
-
Object.entries(s).map(([r,
|
|
177
|
+
Object.entries(s).map(([r, c]) => [r, S(c)])
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
180
|
function gt(e, n) {
|
|
@@ -198,10 +198,10 @@ function gn(e) {
|
|
|
198
198
|
}
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
let B, ge,
|
|
203
|
-
|
|
204
|
-
const e =
|
|
201
|
+
const N = je;
|
|
202
|
+
let B, ge, D, he;
|
|
203
|
+
N.destroy = function() {
|
|
204
|
+
const e = N.instanceArr || [], n = e.pop();
|
|
205
205
|
if (n && G(null, n.container), e.length > 0) {
|
|
206
206
|
const t = e[e.length - 1].instance;
|
|
207
207
|
Object.assign(t.component.props, {
|
|
@@ -209,19 +209,19 @@ L.destroy = function() {
|
|
|
209
209
|
}), t.component.update();
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
|
-
|
|
213
|
-
(
|
|
212
|
+
N.destroyAll = function() {
|
|
213
|
+
(N.instanceArr || []).forEach((n) => {
|
|
214
214
|
G(null, n.container);
|
|
215
|
-
}),
|
|
215
|
+
}), N.instanceArr = [];
|
|
216
216
|
};
|
|
217
217
|
function hn() {
|
|
218
218
|
var a, l;
|
|
219
219
|
const e = J();
|
|
220
|
-
if (!
|
|
220
|
+
if (!D) {
|
|
221
221
|
const g = Be.useApp();
|
|
222
|
-
|
|
222
|
+
D = g.modal, ge = g.message, he = g.notification;
|
|
223
223
|
}
|
|
224
|
-
|
|
224
|
+
D.info || (D = Ie);
|
|
225
225
|
const n = {
|
|
226
226
|
zh: "关闭",
|
|
227
227
|
en: "Close",
|
|
@@ -230,10 +230,10 @@ function hn() {
|
|
|
230
230
|
zh: "请输入",
|
|
231
231
|
en: "Please Enter",
|
|
232
232
|
fr: "Veuillez entrer"
|
|
233
|
-
}, s =
|
|
233
|
+
}, s = ue(), i = ((l = (a = s == null ? void 0 : s.locale) == null ? void 0 : a.locale) == null ? void 0 : l.slice(0, 2)) || "en";
|
|
234
234
|
function r({ title: g, ...h }) {
|
|
235
|
-
const y =
|
|
236
|
-
return
|
|
235
|
+
const y = x();
|
|
236
|
+
return c({
|
|
237
237
|
title: g,
|
|
238
238
|
...h,
|
|
239
239
|
comp: Fe,
|
|
@@ -253,8 +253,8 @@ function hn() {
|
|
|
253
253
|
})
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const k = W(h, y),
|
|
256
|
+
function c({ title: g, comp: h, props: y, ...v }) {
|
|
257
|
+
const k = W(h, y), f = (v == null ? void 0 : v.type) ?? "info", p = {
|
|
258
258
|
title: g,
|
|
259
259
|
content: k,
|
|
260
260
|
width: "auto",
|
|
@@ -265,18 +265,18 @@ function hn() {
|
|
|
265
265
|
class: "modal-comp",
|
|
266
266
|
...v
|
|
267
267
|
};
|
|
268
|
-
switch (
|
|
268
|
+
switch (f) {
|
|
269
269
|
case "info":
|
|
270
|
-
B =
|
|
270
|
+
B = D.info(p);
|
|
271
271
|
break;
|
|
272
272
|
case "warning":
|
|
273
|
-
B =
|
|
273
|
+
B = D.warning(p);
|
|
274
274
|
break;
|
|
275
275
|
case "success":
|
|
276
|
-
B =
|
|
276
|
+
B = D.success(p);
|
|
277
277
|
break;
|
|
278
278
|
case "confirm":
|
|
279
|
-
B =
|
|
279
|
+
B = D.confirm(p);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
return B;
|
|
@@ -284,27 +284,27 @@ function hn() {
|
|
|
284
284
|
function o() {
|
|
285
285
|
B == null || B.destroy();
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function u({ title: g, comp: h, props: y, ...v }) {
|
|
288
288
|
const k = v.getContainer || document.createDocumentFragment();
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
if ((
|
|
293
|
-
const _ =
|
|
294
|
-
Object.assign(_.component.props, { title: g, ...v }), _.component.update(),
|
|
289
|
+
N.instanceArr || (N.instanceArr = []);
|
|
290
|
+
const f = N.instanceArr, p = f[f.length - 1];
|
|
291
|
+
let d;
|
|
292
|
+
if ((p == null ? void 0 : p.comp) === h) {
|
|
293
|
+
const _ = p.instance;
|
|
294
|
+
Object.assign(_.component.props, { title: g, ...v }), _.component.update(), d = p.compInstance, Object.assign(d.component.props, { ...y }), d.component.update();
|
|
295
295
|
} else {
|
|
296
|
-
if (
|
|
297
|
-
const R =
|
|
296
|
+
if (p) {
|
|
297
|
+
const R = p.instance;
|
|
298
298
|
Object.assign(R.component.props, {
|
|
299
299
|
contentWrapperStyle: { transform: "translateX(-180px)" }
|
|
300
300
|
}), R.component.update();
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
d = W(h, y);
|
|
303
303
|
const _ = {
|
|
304
304
|
default: () => W(
|
|
305
305
|
lt,
|
|
306
306
|
{ style: { height: "100%" }, wrapStyle: { overflowX: "hidden" } },
|
|
307
|
-
|
|
307
|
+
d
|
|
308
308
|
)
|
|
309
309
|
};
|
|
310
310
|
v.footer === void 0 && Object.assign(_, {
|
|
@@ -312,7 +312,7 @@ function hn() {
|
|
|
312
312
|
le,
|
|
313
313
|
{
|
|
314
314
|
onClick: () => {
|
|
315
|
-
|
|
315
|
+
N.destroy();
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
n[i]
|
|
@@ -320,8 +320,8 @@ function hn() {
|
|
|
320
320
|
});
|
|
321
321
|
const b = v.width || 992;
|
|
322
322
|
delete v.width;
|
|
323
|
-
const
|
|
324
|
-
|
|
323
|
+
const C = W(
|
|
324
|
+
N,
|
|
325
325
|
{
|
|
326
326
|
title: g,
|
|
327
327
|
width: b,
|
|
@@ -331,41 +331,41 @@ function hn() {
|
|
|
331
331
|
textAlign: "right"
|
|
332
332
|
},
|
|
333
333
|
onClose: () => {
|
|
334
|
-
v != null && v.afterClose && v.afterClose(),
|
|
334
|
+
v != null && v.afterClose && v.afterClose(), N.destroy();
|
|
335
335
|
},
|
|
336
336
|
...v
|
|
337
337
|
},
|
|
338
338
|
_
|
|
339
|
-
),
|
|
339
|
+
), A = s.getPrefixCls(), O = W(
|
|
340
340
|
We,
|
|
341
|
-
{ ...s, prefixCls:
|
|
342
|
-
{ default: () =>
|
|
341
|
+
{ ...s, prefixCls: A },
|
|
342
|
+
{ default: () => C }
|
|
343
343
|
);
|
|
344
|
-
|
|
344
|
+
O.appContext = e.appContext, G(O, k), f.push({ instance: C, comp: h, compInstance: d, container: k });
|
|
345
345
|
}
|
|
346
346
|
return {
|
|
347
347
|
updateProps: (_) => {
|
|
348
|
-
Object.assign(
|
|
348
|
+
Object.assign(d.component.props, { ..._ }), d.component.update();
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
|
|
352
|
+
function m() {
|
|
353
|
+
N.destroy();
|
|
354
354
|
}
|
|
355
355
|
return {
|
|
356
356
|
message: ge,
|
|
357
|
-
modal:
|
|
357
|
+
modal: D,
|
|
358
358
|
notification: he,
|
|
359
|
-
confirm:
|
|
360
|
-
info:
|
|
361
|
-
warn:
|
|
362
|
-
warning:
|
|
363
|
-
error:
|
|
359
|
+
confirm: D.confirm,
|
|
360
|
+
info: D.info,
|
|
361
|
+
warn: D.warning,
|
|
362
|
+
warning: D.warning,
|
|
363
|
+
error: D.error,
|
|
364
364
|
modalInput: r,
|
|
365
|
-
modalComp:
|
|
365
|
+
modalComp: c,
|
|
366
366
|
modalDestroy: o,
|
|
367
|
-
drawerComp:
|
|
368
|
-
drawerDestroy:
|
|
367
|
+
drawerComp: u,
|
|
368
|
+
drawerDestroy: m
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
const ht = /* @__PURE__ */ j({
|
|
@@ -386,71 +386,67 @@ const ht = /* @__PURE__ */ j({
|
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
setup(e, { expose: n }) {
|
|
389
|
-
const t = e, s = we(), i =
|
|
389
|
+
const t = e, s = we(), i = x([]), r = x(!1), c = x(0), o = x(1), u = x(10), m = x(), a = x(), l = {
|
|
390
390
|
zh: "共 {num} 条",
|
|
391
391
|
en: "Total {num} items",
|
|
392
392
|
fr: "Total de {num}"
|
|
393
|
-
}, g =
|
|
394
|
-
var
|
|
395
|
-
return ((
|
|
396
|
-
}), y =
|
|
397
|
-
total:
|
|
393
|
+
}, g = ue(), h = L(() => {
|
|
394
|
+
var _, b;
|
|
395
|
+
return ((b = (_ = g == null ? void 0 : g.locale) == null ? void 0 : _.locale) == null ? void 0 : b.slice(0, 2)) || "en";
|
|
396
|
+
}), y = L(() => ({
|
|
397
|
+
total: c.value,
|
|
398
398
|
current: o.value,
|
|
399
|
-
pageSize:
|
|
399
|
+
pageSize: u.value,
|
|
400
400
|
showSizeChanger: !0,
|
|
401
401
|
size: "small",
|
|
402
|
-
showTotal: (
|
|
402
|
+
showTotal: (d) => l[h.value].replace("{num}", d)
|
|
403
403
|
}));
|
|
404
404
|
function v() {
|
|
405
|
-
var
|
|
405
|
+
var d;
|
|
406
406
|
if (typeof t.loadData == "function") {
|
|
407
407
|
r.value = !0;
|
|
408
|
-
let
|
|
409
|
-
t.newFieldName ?
|
|
410
|
-
if (r.value = !1, (
|
|
411
|
-
const
|
|
412
|
-
t.newFieldName ? (
|
|
408
|
+
let _;
|
|
409
|
+
t.newFieldName ? _ = { current: o.value, size: u.value } : _ = { pageNo: o.value, pageSize: u.value }, t.formatSortParams && ((d = a.value) != null && d.orderMap) && (_[a.value.field + "SortField"] = a.value.orderMap), t.loadData(_, m.value, a.value).then((b) => {
|
|
410
|
+
if (r.value = !1, (b == null ? void 0 : b.code) === 0) {
|
|
411
|
+
const C = b.result || {};
|
|
412
|
+
t.newFieldName ? (c.value = C.total, i.value = C.records) : (c.value = C.totalCount, i.value = C.data);
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function k(_, b
|
|
418
|
-
if (o.value =
|
|
419
|
-
const
|
|
417
|
+
function k(d, _, b) {
|
|
418
|
+
if (o.value = d.current, u.value = d.pageSize, m.value = _, b) {
|
|
419
|
+
const C = {
|
|
420
420
|
ascend: "asc",
|
|
421
421
|
descend: "desc"
|
|
422
422
|
};
|
|
423
|
-
|
|
423
|
+
b.orderMap = C[b.order] || "";
|
|
424
424
|
}
|
|
425
|
-
a.value =
|
|
425
|
+
a.value = b, v();
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
b.width = _;
|
|
429
|
-
}
|
|
430
|
-
function d() {
|
|
427
|
+
function f() {
|
|
431
428
|
o.value = 1, v();
|
|
432
429
|
}
|
|
433
|
-
function
|
|
434
|
-
o.value = 1,
|
|
430
|
+
function p() {
|
|
431
|
+
o.value = 1, c.value = 0, i.value = [];
|
|
435
432
|
}
|
|
436
433
|
return n({
|
|
437
434
|
loadData: v,
|
|
438
|
-
refresh:
|
|
439
|
-
reset:
|
|
440
|
-
}), (
|
|
441
|
-
const
|
|
442
|
-
return
|
|
435
|
+
refresh: f,
|
|
436
|
+
reset: p
|
|
437
|
+
}), (d, _) => {
|
|
438
|
+
const b = ze;
|
|
439
|
+
return w(), U(b, F({
|
|
443
440
|
class: "table-ex",
|
|
444
441
|
loading: S(r),
|
|
445
442
|
pagination: S(y),
|
|
446
443
|
dataSource: S(i),
|
|
447
|
-
onChange: k
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
w !== "emptyText" ? I(_.$slots, w, ue(F({ key: 0 }, T))) : I(_.$slots, w, { key: 1 })
|
|
444
|
+
onChange: k
|
|
445
|
+
}, d.$attrs), ie({ _: 2 }, [
|
|
446
|
+
V(Object.keys(S(s)), (C) => ({
|
|
447
|
+
name: C,
|
|
448
|
+
fn: P((A) => [
|
|
449
|
+
C !== "emptyText" ? I(d.$slots, C, ce(F({ key: 0 }, A))) : I(d.$slots, C, { key: 1 })
|
|
454
450
|
])
|
|
455
451
|
}))
|
|
456
452
|
]), 1040, ["loading", "pagination", "dataSource"]);
|
|
@@ -463,14 +459,14 @@ const ht = /* @__PURE__ */ j({
|
|
|
463
459
|
return t;
|
|
464
460
|
}, _t = {}, bt = { class: "page-header" }, xt = { class: "page-header-heading" }, Ct = { class: "page-header-heading-left" }, St = { class: "page-header-heading-title" }, kt = { class: "page-header-heading-extra" };
|
|
465
461
|
function wt(e, n) {
|
|
466
|
-
return
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
462
|
+
return w(), M("div", bt, [
|
|
463
|
+
$("div", xt, [
|
|
464
|
+
$("div", Ct, [
|
|
465
|
+
$("span", St, [
|
|
470
466
|
I(e.$slots, "title")
|
|
471
467
|
])
|
|
472
468
|
]),
|
|
473
|
-
|
|
469
|
+
$("span", kt, [
|
|
474
470
|
I(e.$slots, "extra")
|
|
475
471
|
])
|
|
476
472
|
])
|
|
@@ -493,19 +489,19 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
|
|
|
493
489
|
}
|
|
494
490
|
},
|
|
495
491
|
setup(e) {
|
|
496
|
-
const n = e, t =
|
|
497
|
-
function o(
|
|
498
|
-
i.value = { width: `calc(${
|
|
492
|
+
const n = e, t = x(), s = x(), i = x({}), r = x({}), c = x(0.2);
|
|
493
|
+
function o(m) {
|
|
494
|
+
i.value = { width: `calc(${m * 100}% - 5px)` }, r.value = { width: `calc(${(1 - m) * 100}% - 5px)` };
|
|
499
495
|
}
|
|
500
|
-
function
|
|
501
|
-
const
|
|
502
|
-
if (!
|
|
496
|
+
function u() {
|
|
497
|
+
const m = t.value;
|
|
498
|
+
if (!m)
|
|
503
499
|
return;
|
|
504
|
-
const a =
|
|
500
|
+
const a = m.clientWidth, l = m.getBoundingClientRect(), g = l.left;
|
|
505
501
|
function h(v) {
|
|
506
502
|
v.preventDefault(), (v.clientX < l.left || v.clientX > l.right || v.clientY < l.top || v.clientY > l.bottom) && y();
|
|
507
|
-
const
|
|
508
|
-
|
|
503
|
+
const f = (v.clientX - g) / a;
|
|
504
|
+
f > n.leftMin && f < n.leftMax && (c.value = f, o(f));
|
|
509
505
|
}
|
|
510
506
|
function y() {
|
|
511
507
|
document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", y);
|
|
@@ -513,31 +509,31 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
|
|
|
513
509
|
document.addEventListener("mousemove", h), document.addEventListener("mouseup", y);
|
|
514
510
|
}
|
|
515
511
|
return Pe(() => {
|
|
516
|
-
o(
|
|
512
|
+
o(c.value), s.value && s.value.addEventListener("mousedown", u, !1);
|
|
517
513
|
}), Ge(() => {
|
|
518
|
-
s.value && s.value.removeEventListener("mousedown",
|
|
519
|
-
}), (
|
|
514
|
+
s.value && s.value.removeEventListener("mousedown", u);
|
|
515
|
+
}), (m, a) => (w(), M("div", {
|
|
520
516
|
ref_key: "container",
|
|
521
517
|
ref: t,
|
|
522
518
|
class: Qe(["wl-splitter", { bordered: e.bordered }])
|
|
523
519
|
}, [
|
|
524
|
-
|
|
520
|
+
$("div", {
|
|
525
521
|
class: "my-left",
|
|
526
522
|
style: pe(S(i))
|
|
527
523
|
}, [
|
|
528
|
-
I(
|
|
524
|
+
I(m.$slots, "left")
|
|
529
525
|
], 4),
|
|
530
|
-
|
|
526
|
+
$("div", {
|
|
531
527
|
ref_key: "spliter",
|
|
532
528
|
ref: s,
|
|
533
529
|
style: { height: "100%", width: "10px" },
|
|
534
530
|
class: "my-spliter"
|
|
535
531
|
}, null, 512),
|
|
536
|
-
|
|
532
|
+
$("div", {
|
|
537
533
|
class: "my-right",
|
|
538
534
|
style: pe(S(r))
|
|
539
535
|
}, [
|
|
540
|
-
I(
|
|
536
|
+
I(m.$slots, "right")
|
|
541
537
|
], 4)
|
|
542
538
|
], 2));
|
|
543
539
|
}
|
|
@@ -550,20 +546,20 @@ const $t = /* @__PURE__ */ yt(_t, [["render", wt]]), Et = /* @__PURE__ */ j({
|
|
|
550
546
|
xmlns: "http://www.w3.org/2000/svg"
|
|
551
547
|
};
|
|
552
548
|
function Dt(e, n) {
|
|
553
|
-
return
|
|
554
|
-
|
|
549
|
+
return w(), M("svg", Pt, n[0] || (n[0] = [
|
|
550
|
+
$("path", {
|
|
555
551
|
d: "M7.3125 5.5L2.3125 12L7.3125 18.5H22.3125V5.5H7.3125Z",
|
|
556
552
|
stroke: "#272E3B",
|
|
557
553
|
"stroke-linecap": "round",
|
|
558
554
|
"stroke-linejoin": "round"
|
|
559
555
|
}, null, -1),
|
|
560
|
-
|
|
556
|
+
$("path", {
|
|
561
557
|
d: "M10.8125 9.5L15.8125 14.5",
|
|
562
558
|
stroke: "#272E3B",
|
|
563
559
|
"stroke-linecap": "round",
|
|
564
560
|
"stroke-linejoin": "round"
|
|
565
561
|
}, null, -1),
|
|
566
|
-
|
|
562
|
+
$("path", {
|
|
567
563
|
d: "M15.8125 9.5L10.8125 14.5",
|
|
568
564
|
stroke: "#272E3B",
|
|
569
565
|
"stroke-linecap": "round",
|
|
@@ -597,37 +593,37 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
597
593
|
}),
|
|
598
594
|
emits: /* @__PURE__ */ z(["enter"], ["update:value"]),
|
|
599
595
|
setup(e, { emit: n }) {
|
|
600
|
-
const t = e, s = n, i =
|
|
601
|
-
function
|
|
602
|
-
|
|
596
|
+
const t = e, s = n, i = x(), r = x(), c = x(["7", "8", "9", "4", "5", "6", "1", "2", "3", "0", "00", "."]), o = ee(e, "value"), u = x(!1);
|
|
597
|
+
function m() {
|
|
598
|
+
u.value = !0;
|
|
603
599
|
}
|
|
604
600
|
function a() {
|
|
605
601
|
k();
|
|
606
602
|
}
|
|
607
|
-
function l(
|
|
608
|
-
r.value.focus(), o.value = Number(
|
|
603
|
+
function l(f) {
|
|
604
|
+
r.value.focus(), o.value = Number(f).toFixed(t.precision);
|
|
609
605
|
}
|
|
610
|
-
function g(
|
|
606
|
+
function g(f) {
|
|
611
607
|
if (r.value.focus(), q(o.value) || o.value === "") {
|
|
612
|
-
if (["00", "."].includes(
|
|
608
|
+
if (["00", "."].includes(f))
|
|
613
609
|
return;
|
|
614
|
-
o.value =
|
|
610
|
+
o.value = f;
|
|
615
611
|
} else {
|
|
616
|
-
const
|
|
617
|
-
o.value = `${
|
|
618
|
-
const
|
|
612
|
+
const p = String(o.value), d = i.value.getElementsByTagName("input")[0], _ = d.selectionStart || 0, b = d.selectionEnd || 0;
|
|
613
|
+
o.value = `${p.slice(0, _)}${f}${p.slice(b)}`;
|
|
614
|
+
const C = _ + f.length;
|
|
619
615
|
fe(() => {
|
|
620
|
-
r.value.setSelectionRange(
|
|
616
|
+
r.value.setSelectionRange(C, C);
|
|
621
617
|
});
|
|
622
618
|
}
|
|
623
619
|
}
|
|
624
620
|
function h() {
|
|
625
621
|
if (r.value.focus(), q(o.value))
|
|
626
622
|
return;
|
|
627
|
-
const
|
|
628
|
-
if (
|
|
629
|
-
const
|
|
630
|
-
|
|
623
|
+
const f = String(o.value);
|
|
624
|
+
if (f != null && f.length) {
|
|
625
|
+
const p = i.value.getElementsByTagName("input")[0], d = p.selectionStart || 0, _ = p.selectionEnd || 0, b = d > 0 ? d - 1 : 0;
|
|
626
|
+
d === _ ? o.value = f.slice(0, b) + f.slice(_) : o.value = f.slice(0, d) + f.slice(_), fe(() => {
|
|
631
627
|
r.value.setSelectionRange(b, b);
|
|
632
628
|
});
|
|
633
629
|
}
|
|
@@ -639,54 +635,54 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
639
635
|
r.value.blur();
|
|
640
636
|
}
|
|
641
637
|
function k() {
|
|
642
|
-
const
|
|
643
|
-
let
|
|
644
|
-
q(
|
|
638
|
+
const f = t.min, p = t.max;
|
|
639
|
+
let d = parseFloat(o.value || "0");
|
|
640
|
+
q(f) || (d = d > f ? d : f), q(p) || (d = d > p ? p : d), o.value = Number(d).toFixed(t.precision), u.value = !1, s("enter");
|
|
645
641
|
}
|
|
646
|
-
return (
|
|
647
|
-
const
|
|
648
|
-
return
|
|
642
|
+
return (f, p) => {
|
|
643
|
+
const d = le, _ = Ve, b = At, C = Ke, A = ke, O = qe, R = Je("longpress");
|
|
644
|
+
return w(), M("div", {
|
|
649
645
|
class: "number-keyboard",
|
|
650
646
|
ref_key: "numberKeyboard",
|
|
651
647
|
ref: i
|
|
652
648
|
}, [
|
|
653
|
-
|
|
649
|
+
E(O, {
|
|
654
650
|
overlayClassName: "popover-keyboard",
|
|
655
651
|
trigger: "manual",
|
|
656
652
|
placement: "bottomLeft",
|
|
657
653
|
arrow: !1,
|
|
658
654
|
align: { offset: [0, 0] },
|
|
659
|
-
open: S(
|
|
660
|
-
"onUpdate:open":
|
|
655
|
+
open: S(u),
|
|
656
|
+
"onUpdate:open": p[2] || (p[2] = (T) => Z(u) ? u.value = T : null)
|
|
661
657
|
}, {
|
|
662
|
-
content:
|
|
663
|
-
|
|
658
|
+
content: P(() => [
|
|
659
|
+
$("div", {
|
|
664
660
|
class: "keyboard-panel",
|
|
665
|
-
onMousedownCapture:
|
|
661
|
+
onMousedownCapture: p[0] || (p[0] = ae(() => {
|
|
666
662
|
}, ["prevent", "stop"]))
|
|
667
663
|
}, [
|
|
668
|
-
|
|
669
|
-
default:
|
|
670
|
-
|
|
671
|
-
default:
|
|
672
|
-
|
|
673
|
-
(
|
|
664
|
+
E(C, { gutter: "8" }, {
|
|
665
|
+
default: P(() => [
|
|
666
|
+
E(_, { span: 18 }, {
|
|
667
|
+
default: P(() => [
|
|
668
|
+
$("div", Tt, [
|
|
669
|
+
(w(!0), M(X, null, V(e.quickNums, (T) => (w(), U(d, {
|
|
674
670
|
class: "btn-num",
|
|
675
|
-
key:
|
|
676
|
-
onClick: (Ne) => l(
|
|
671
|
+
key: T,
|
|
672
|
+
onClick: (Ne) => l(T)
|
|
677
673
|
}, {
|
|
678
|
-
default:
|
|
679
|
-
te(se(
|
|
674
|
+
default: P(() => [
|
|
675
|
+
te(se(T), 1)
|
|
680
676
|
]),
|
|
681
677
|
_: 2
|
|
682
678
|
}, 1032, ["onClick"]))), 128)),
|
|
683
|
-
(
|
|
679
|
+
(w(!0), M(X, null, V(S(c), (T) => (w(), U(d, {
|
|
684
680
|
class: "btn-num",
|
|
685
|
-
key:
|
|
686
|
-
onClick: (Ne) => g(
|
|
681
|
+
key: T,
|
|
682
|
+
onClick: (Ne) => g(T)
|
|
687
683
|
}, {
|
|
688
|
-
default:
|
|
689
|
-
te(se(
|
|
684
|
+
default: P(() => [
|
|
685
|
+
te(se(T), 1)
|
|
690
686
|
]),
|
|
691
687
|
_: 2
|
|
692
688
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -694,26 +690,26 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
694
690
|
]),
|
|
695
691
|
_: 1
|
|
696
692
|
}),
|
|
697
|
-
|
|
698
|
-
default:
|
|
699
|
-
|
|
700
|
-
tt((
|
|
693
|
+
E(_, { span: 6 }, {
|
|
694
|
+
default: P(() => [
|
|
695
|
+
$("div", Mt, [
|
|
696
|
+
tt((w(), U(d, {
|
|
701
697
|
class: "btn-clear",
|
|
702
698
|
onClick: h
|
|
703
699
|
}, {
|
|
704
|
-
default:
|
|
705
|
-
|
|
700
|
+
default: P(() => [
|
|
701
|
+
E(b, { style: { width: "24px", height: "24px" } })
|
|
706
702
|
]),
|
|
707
703
|
_: 1
|
|
708
704
|
})), [
|
|
709
705
|
[R, y]
|
|
710
706
|
]),
|
|
711
|
-
|
|
707
|
+
E(d, {
|
|
712
708
|
class: "btn-enter",
|
|
713
709
|
type: "primary",
|
|
714
710
|
onClick: ae(v, ["stop"])
|
|
715
711
|
}, {
|
|
716
|
-
default:
|
|
712
|
+
default: P(() => p[3] || (p[3] = [
|
|
717
713
|
te("Enter ")
|
|
718
714
|
])),
|
|
719
715
|
_: 1
|
|
@@ -727,14 +723,14 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
727
723
|
})
|
|
728
724
|
], 32)
|
|
729
725
|
]),
|
|
730
|
-
default:
|
|
731
|
-
|
|
726
|
+
default: P(() => [
|
|
727
|
+
E(A, F({
|
|
732
728
|
ref_key: "inputRef",
|
|
733
729
|
ref: r,
|
|
734
730
|
value: o.value,
|
|
735
|
-
"onUpdate:value":
|
|
736
|
-
},
|
|
737
|
-
onFocus:
|
|
731
|
+
"onUpdate:value": p[1] || (p[1] = (T) => o.value = T)
|
|
732
|
+
}, f.$attrs, {
|
|
733
|
+
onFocus: m,
|
|
738
734
|
onBlur: a,
|
|
739
735
|
onKeyup: et(v, ["enter"])
|
|
740
736
|
}), null, 16, ["value"])
|
|
@@ -774,38 +770,38 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
774
770
|
emits: /* @__PURE__ */ z(["change"], ["update:value"]),
|
|
775
771
|
setup(e, { emit: n }) {
|
|
776
772
|
nt((a) => ({
|
|
777
|
-
"6ffd511e": S(
|
|
773
|
+
"6ffd511e": S(c),
|
|
778
774
|
"1201d0a5": S(o),
|
|
779
|
-
"1201d466": S(
|
|
775
|
+
"1201d466": S(u)
|
|
780
776
|
}));
|
|
781
|
-
const t = e, s = ee(e, "value"), i = n, r =
|
|
777
|
+
const t = e, s = ee(e, "value"), i = n, r = L(() => {
|
|
782
778
|
const a = {}, l = Array.from(t.flagStops), g = t.min || 0, h = t.max || 100, y = [g, ...s.value, h];
|
|
783
779
|
for (let v = 0; v < y.length; v++) {
|
|
784
780
|
const k = y[v];
|
|
785
781
|
if (a[k] = k, v > 0) {
|
|
786
|
-
const
|
|
787
|
-
a[
|
|
782
|
+
const f = l.shift(), p = y[v - 1], d = p + (k - p) / 2;
|
|
783
|
+
a[d] = { style: { top: "-28px" }, label: f };
|
|
788
784
|
}
|
|
789
785
|
}
|
|
790
786
|
return a;
|
|
791
|
-
}),
|
|
787
|
+
}), c = L(() => {
|
|
792
788
|
const a = s.value, l = t.min || 0, g = t.max || 100, h = Math.floor((a[0] - l) / (g - l) * 100), y = t.colorStops, v = y[0], k = y[y.length - 1];
|
|
793
789
|
return `linear-gradient(90deg, ${v} 0%, ${v} ${h}%, ${k} ${h}%, ${k} 100%)`;
|
|
794
|
-
}), o =
|
|
795
|
-
function
|
|
790
|
+
}), o = L(() => t.colorStops[1]), u = L(() => t.colorStops[2]);
|
|
791
|
+
function m(a) {
|
|
796
792
|
const l = t.min || 0, g = t.max || 100;
|
|
797
793
|
a[0] <= l ? a[0] = l + 1 : a.at(-1) >= g && (a[a.length - 1] = g - 1), a.length === new Set(a).size && (s.value = a, i("change", a));
|
|
798
794
|
}
|
|
799
795
|
return (a, l) => {
|
|
800
796
|
const g = He;
|
|
801
|
-
return
|
|
797
|
+
return w(), U(g, F({
|
|
802
798
|
class: "rate-slider",
|
|
803
799
|
value: s.value,
|
|
804
800
|
min: e.min,
|
|
805
801
|
max: e.max,
|
|
806
802
|
range: "",
|
|
807
803
|
marks: S(r),
|
|
808
|
-
onChange:
|
|
804
|
+
onChange: m
|
|
809
805
|
}, a.$attrs), null, 16, ["value", "min", "max", "marks"]);
|
|
810
806
|
};
|
|
811
807
|
}
|
|
@@ -825,19 +821,19 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
825
821
|
}),
|
|
826
822
|
emits: ["update:value"],
|
|
827
823
|
setup(e) {
|
|
828
|
-
const n = e, t = ee(e, "value"), s =
|
|
824
|
+
const n = e, t = ee(e, "value"), s = x(["", "", "", ""]), i = x(), r = x(""), c = x(), o = (a) => {
|
|
829
825
|
var g, h;
|
|
830
826
|
const l = s.value[a];
|
|
831
827
|
if (l && (!/^\d+$/.test(l) || parseInt(l) > 255)) {
|
|
832
828
|
s.value[a] = "";
|
|
833
829
|
return;
|
|
834
830
|
}
|
|
835
|
-
parseInt(l) >= 100 && (a < 3 ? (g = i.value) != null && g.length && i.value[a + 1].focus() : n.hasPort && ((h =
|
|
836
|
-
},
|
|
831
|
+
parseInt(l) >= 100 && (a < 3 ? (g = i.value) != null && g.length && i.value[a + 1].focus() : n.hasPort && ((h = c.value) == null || h.focus())), t.value = `${s.value.join(".")}${n.hasPort ? ":" + r.value : ""}`;
|
|
832
|
+
}, u = (a, l) => {
|
|
837
833
|
var g, h;
|
|
838
834
|
l.key === " " && a < 3 && (l.preventDefault(), (g = i.value) != null && g.length && i.value[a + 1].focus()), l.key === "Backspace" && s.value[a] === "" && a > 0 && (h = i.value) != null && h.length && i.value[a - 1].focus();
|
|
839
835
|
};
|
|
840
|
-
function
|
|
836
|
+
function m() {
|
|
841
837
|
t.value = `${s.value.join(".")}${n.hasPort ? ":" + (r.value || "") : ""}`;
|
|
842
838
|
}
|
|
843
839
|
return Q(
|
|
@@ -857,10 +853,10 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
857
853
|
{ immediate: !0 }
|
|
858
854
|
), (a, l) => {
|
|
859
855
|
const g = re;
|
|
860
|
-
return
|
|
861
|
-
|
|
862
|
-
(
|
|
863
|
-
|
|
856
|
+
return w(), M("div", Ot, [
|
|
857
|
+
$("div", Rt, [
|
|
858
|
+
(w(!0), M(X, null, V(S(s), (h, y) => (w(), M(X, { key: y }, [
|
|
859
|
+
E(g, {
|
|
864
860
|
ref_for: !0,
|
|
865
861
|
ref_key: "ipPartArr",
|
|
866
862
|
ref: i,
|
|
@@ -872,16 +868,16 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
872
868
|
precision: 0,
|
|
873
869
|
controls: !1,
|
|
874
870
|
onChange: (v) => o(y),
|
|
875
|
-
onKeydown: (v) =>
|
|
871
|
+
onKeydown: (v) => u(y, v)
|
|
876
872
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onKeydown"]),
|
|
877
|
-
y < 3 ? (
|
|
873
|
+
y < 3 ? (w(), M("span", Ut, ".")) : me("", !0)
|
|
878
874
|
], 64))), 128))
|
|
879
875
|
]),
|
|
880
|
-
e.hasPort ? (
|
|
881
|
-
l[1] || (l[1] =
|
|
882
|
-
|
|
876
|
+
e.hasPort ? (w(), M(X, { key: 0 }, [
|
|
877
|
+
l[1] || (l[1] = $("span", { class: "ip-port-separator" }, ":", -1)),
|
|
878
|
+
E(g, {
|
|
883
879
|
ref_key: "portRef",
|
|
884
|
-
ref:
|
|
880
|
+
ref: c,
|
|
885
881
|
class: "ip-port",
|
|
886
882
|
value: S(r),
|
|
887
883
|
"onUpdate:value": l[0] || (l[0] = (h) => Z(r) ? r.value = h : null),
|
|
@@ -889,7 +885,7 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
889
885
|
max: 65535,
|
|
890
886
|
precision: 0,
|
|
891
887
|
controls: !1,
|
|
892
|
-
onChange:
|
|
888
|
+
onChange: m
|
|
893
889
|
}, null, 8, ["value"])
|
|
894
890
|
], 64)) : me("", !0)
|
|
895
891
|
]);
|
|
@@ -921,49 +917,49 @@ const At = Ee({ name: "local-clear", render: Dt }), Tt = { class: "nums-box" },
|
|
|
921
917
|
}),
|
|
922
918
|
emits: /* @__PURE__ */ z(["change"], ["update:value"]),
|
|
923
919
|
setup(e, { emit: n }) {
|
|
924
|
-
const t = e, s = ee(e, "value"), i = n, r =
|
|
920
|
+
const t = e, s = ee(e, "value"), i = n, r = L(() => {
|
|
925
921
|
const a = s.value[1];
|
|
926
922
|
return q(a) ? t.max : a;
|
|
927
|
-
}),
|
|
923
|
+
}), c = L(() => {
|
|
928
924
|
const a = s.value[0];
|
|
929
925
|
return q(a) ? t.min : a;
|
|
930
|
-
}), o =
|
|
931
|
-
function
|
|
932
|
-
const a = [o.value,
|
|
926
|
+
}), o = x(), u = x();
|
|
927
|
+
function m() {
|
|
928
|
+
const a = [o.value, u.value];
|
|
933
929
|
s.value = a, i("change", a);
|
|
934
930
|
}
|
|
935
931
|
return Q(
|
|
936
932
|
() => s.value,
|
|
937
933
|
(a) => {
|
|
938
|
-
a != null && a.length ? (o.value = a[0],
|
|
934
|
+
a != null && a.length ? (o.value = a[0], u.value = a[1]) : (o.value = void 0, u.value = void 0);
|
|
939
935
|
},
|
|
940
936
|
{ immediate: !0 }
|
|
941
937
|
), (a, l) => {
|
|
942
938
|
const g = re;
|
|
943
|
-
return
|
|
944
|
-
|
|
939
|
+
return w(), M("div", Bt, [
|
|
940
|
+
E(g, {
|
|
945
941
|
min: t.min,
|
|
946
942
|
max: S(r),
|
|
947
943
|
value: S(o),
|
|
948
944
|
"onUpdate:value": l[0] || (l[0] = (h) => Z(o) ? o.value = h : null),
|
|
949
945
|
placeholder: e.placeholder[0] || "",
|
|
950
|
-
onChange:
|
|
946
|
+
onChange: m
|
|
951
947
|
}, null, 8, ["min", "max", "value", "placeholder"]),
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
min: S(
|
|
948
|
+
$("span", It, se(e.separator), 1),
|
|
949
|
+
E(g, {
|
|
950
|
+
min: S(c),
|
|
955
951
|
max: t.max,
|
|
956
|
-
value: S(
|
|
957
|
-
"onUpdate:value": l[1] || (l[1] = (h) => Z(
|
|
952
|
+
value: S(u),
|
|
953
|
+
"onUpdate:value": l[1] || (l[1] = (h) => Z(u) ? u.value = h : null),
|
|
958
954
|
placeholder: e.placeholder[1] || "",
|
|
959
|
-
onChange:
|
|
955
|
+
onChange: m
|
|
960
956
|
}, null, 8, ["min", "max", "value", "placeholder"])
|
|
961
957
|
]);
|
|
962
958
|
};
|
|
963
959
|
}
|
|
964
960
|
}), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
965
961
|
__proto__: null,
|
|
966
|
-
AInputNumberEx:
|
|
962
|
+
AInputNumberEx: ut,
|
|
967
963
|
APageHeader: $t,
|
|
968
964
|
ARangePickerEx: dt,
|
|
969
965
|
ASelectEx: vt,
|
|
@@ -998,22 +994,22 @@ function Kt(e, n, t = {}) {
|
|
|
998
994
|
immediate: s = !0,
|
|
999
995
|
immediateCallback: i = !1
|
|
1000
996
|
} = t, r = H(!1);
|
|
1001
|
-
let
|
|
997
|
+
let c = null;
|
|
1002
998
|
function o() {
|
|
1003
|
-
|
|
999
|
+
c && (clearTimeout(c), c = null);
|
|
1004
1000
|
}
|
|
1005
|
-
function
|
|
1001
|
+
function u() {
|
|
1006
1002
|
r.value = !1, o();
|
|
1007
1003
|
}
|
|
1008
|
-
function
|
|
1009
|
-
i && e(), o(), r.value = !0,
|
|
1010
|
-
r.value = !1,
|
|
1004
|
+
function m(...a) {
|
|
1005
|
+
i && e(), o(), r.value = !0, c = setTimeout(() => {
|
|
1006
|
+
r.value = !1, c = null, e(...a);
|
|
1011
1007
|
}, K(n));
|
|
1012
1008
|
}
|
|
1013
|
-
return s && (r.value = !0, de &&
|
|
1009
|
+
return s && (r.value = !0, de && m()), De(u), {
|
|
1014
1010
|
isPending: ot(r),
|
|
1015
|
-
start:
|
|
1016
|
-
stop:
|
|
1011
|
+
start: m,
|
|
1012
|
+
stop: u
|
|
1017
1013
|
};
|
|
1018
1014
|
}
|
|
1019
1015
|
function Vt(e, n, t) {
|
|
@@ -1035,37 +1031,37 @@ function Te(e) {
|
|
|
1035
1031
|
function Y(...e) {
|
|
1036
1032
|
const n = [], t = () => {
|
|
1037
1033
|
n.forEach((o) => o()), n.length = 0;
|
|
1038
|
-
}, s = (o,
|
|
1039
|
-
const o = ne(K(e[0])).filter((
|
|
1040
|
-
return o.every((
|
|
1034
|
+
}, s = (o, u, m, a) => (o.addEventListener(u, m, a), () => o.removeEventListener(u, m, a)), i = L(() => {
|
|
1035
|
+
const o = ne(K(e[0])).filter((u) => u != null);
|
|
1036
|
+
return o.every((u) => typeof u != "string") ? o : void 0;
|
|
1041
1037
|
}), r = Vt(
|
|
1042
1038
|
() => {
|
|
1043
|
-
var o,
|
|
1039
|
+
var o, u;
|
|
1044
1040
|
return [
|
|
1045
|
-
(
|
|
1041
|
+
(u = (o = i.value) == null ? void 0 : o.map((m) => Te(m))) != null ? u : [Ht].filter((m) => m != null),
|
|
1046
1042
|
ne(K(i.value ? e[1] : e[0])),
|
|
1047
1043
|
ne(S(i.value ? e[2] : e[1])),
|
|
1048
1044
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
1049
1045
|
K(i.value ? e[3] : e[2])
|
|
1050
1046
|
];
|
|
1051
1047
|
},
|
|
1052
|
-
([o,
|
|
1053
|
-
if (t(), !(o != null && o.length) || !(
|
|
1048
|
+
([o, u, m, a]) => {
|
|
1049
|
+
if (t(), !(o != null && o.length) || !(u != null && u.length) || !(m != null && m.length))
|
|
1054
1050
|
return;
|
|
1055
1051
|
const l = zt(a) ? { ...a } : a;
|
|
1056
1052
|
n.push(
|
|
1057
1053
|
...o.flatMap(
|
|
1058
|
-
(g) =>
|
|
1059
|
-
(h) =>
|
|
1054
|
+
(g) => u.flatMap(
|
|
1055
|
+
(h) => m.map((y) => s(g, h, y, l))
|
|
1060
1056
|
)
|
|
1061
1057
|
)
|
|
1062
1058
|
);
|
|
1063
1059
|
},
|
|
1064
1060
|
{ flush: "post" }
|
|
1065
|
-
),
|
|
1061
|
+
), c = () => {
|
|
1066
1062
|
r(), t();
|
|
1067
1063
|
};
|
|
1068
|
-
return De(t),
|
|
1064
|
+
return De(t), c;
|
|
1069
1065
|
}
|
|
1070
1066
|
function Xt() {
|
|
1071
1067
|
const e = H(!1), n = J();
|
|
@@ -1075,44 +1071,44 @@ function Xt() {
|
|
|
1075
1071
|
}
|
|
1076
1072
|
function Me(e) {
|
|
1077
1073
|
const n = Xt();
|
|
1078
|
-
return
|
|
1074
|
+
return L(() => (n.value, !!e()));
|
|
1079
1075
|
}
|
|
1080
1076
|
const Yt = 500, Zt = 10;
|
|
1081
1077
|
function Gt(e, n, t) {
|
|
1082
1078
|
var s, i;
|
|
1083
|
-
const r =
|
|
1084
|
-
let
|
|
1079
|
+
const r = L(() => Te(e));
|
|
1080
|
+
let c, o, u, m = !1;
|
|
1085
1081
|
function a() {
|
|
1086
|
-
|
|
1082
|
+
c && (clearTimeout(c), c = void 0), o = void 0, u = void 0, m = !1;
|
|
1087
1083
|
}
|
|
1088
|
-
function l(
|
|
1089
|
-
var
|
|
1090
|
-
const [b,
|
|
1091
|
-
if (a(), !(t != null && t.onMouseUp) || !
|
|
1084
|
+
function l(f) {
|
|
1085
|
+
var p, d, _;
|
|
1086
|
+
const [b, C, A] = [u, o, m];
|
|
1087
|
+
if (a(), !(t != null && t.onMouseUp) || !C || !b || (p = t == null ? void 0 : t.modifiers) != null && p.self && f.target !== r.value)
|
|
1092
1088
|
return;
|
|
1093
|
-
(
|
|
1094
|
-
const
|
|
1095
|
-
t.onMouseUp(
|
|
1089
|
+
(d = t == null ? void 0 : t.modifiers) != null && d.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
|
|
1090
|
+
const O = f.x - C.x, R = f.y - C.y, T = Math.sqrt(O * O + R * R);
|
|
1091
|
+
t.onMouseUp(f.timeStamp - b, T, A);
|
|
1096
1092
|
}
|
|
1097
|
-
function g(
|
|
1098
|
-
var
|
|
1099
|
-
(
|
|
1100
|
-
x:
|
|
1101
|
-
y:
|
|
1102
|
-
},
|
|
1093
|
+
function g(f) {
|
|
1094
|
+
var p, d, _, b;
|
|
1095
|
+
(p = t == null ? void 0 : t.modifiers) != null && p.self && f.target !== r.value || (a(), (d = t == null ? void 0 : t.modifiers) != null && d.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation(), o = {
|
|
1096
|
+
x: f.x,
|
|
1097
|
+
y: f.y
|
|
1098
|
+
}, u = f.timeStamp, c = setTimeout(
|
|
1103
1099
|
() => {
|
|
1104
|
-
|
|
1100
|
+
m = !0, n(f);
|
|
1105
1101
|
},
|
|
1106
1102
|
(b = t == null ? void 0 : t.delay) != null ? b : Yt
|
|
1107
1103
|
));
|
|
1108
1104
|
}
|
|
1109
|
-
function h(
|
|
1110
|
-
var
|
|
1111
|
-
if ((
|
|
1105
|
+
function h(f) {
|
|
1106
|
+
var p, d, _, b;
|
|
1107
|
+
if ((p = t == null ? void 0 : t.modifiers) != null && p.self && f.target !== r.value || !o || (t == null ? void 0 : t.distanceThreshold) === !1)
|
|
1112
1108
|
return;
|
|
1113
|
-
(
|
|
1114
|
-
const
|
|
1115
|
-
Math.sqrt(
|
|
1109
|
+
(d = t == null ? void 0 : t.modifiers) != null && d.prevent && f.preventDefault(), (_ = t == null ? void 0 : t.modifiers) != null && _.stop && f.stopPropagation();
|
|
1110
|
+
const C = f.x - o.x, A = f.y - o.y;
|
|
1111
|
+
Math.sqrt(C * C + A * A) >= ((b = t == null ? void 0 : t.distanceThreshold) != null ? b : Zt) && a();
|
|
1116
1112
|
}
|
|
1117
1113
|
const y = {
|
|
1118
1114
|
capture: (s = t == null ? void 0 : t.modifiers) == null ? void 0 : s.capture,
|
|
@@ -1122,35 +1118,35 @@ function Gt(e, n, t) {
|
|
|
1122
1118
|
Y(r, "pointermove", h, y),
|
|
1123
1119
|
Y(r, ["pointerup", "pointerleave"], l, y)
|
|
1124
1120
|
];
|
|
1125
|
-
return () => v.forEach((
|
|
1121
|
+
return () => v.forEach((f) => f());
|
|
1126
1122
|
}
|
|
1127
1123
|
function _e(e, n = {}) {
|
|
1128
1124
|
const {
|
|
1129
1125
|
controls: t = !1,
|
|
1130
1126
|
navigator: s = Ae
|
|
1131
|
-
} = n, i = Me(() => s && "permissions" in s), r = H(),
|
|
1127
|
+
} = n, i = Me(() => s && "permissions" in s), r = H(), c = typeof e == "string" ? { name: e } : e, o = H(), u = () => {
|
|
1132
1128
|
var a, l;
|
|
1133
1129
|
o.value = (l = (a = r.value) == null ? void 0 : a.state) != null ? l : "prompt";
|
|
1134
1130
|
};
|
|
1135
|
-
Y(r, "change",
|
|
1136
|
-
const
|
|
1131
|
+
Y(r, "change", u, { passive: !0 });
|
|
1132
|
+
const m = qt(async () => {
|
|
1137
1133
|
if (i.value) {
|
|
1138
1134
|
if (!r.value)
|
|
1139
1135
|
try {
|
|
1140
|
-
r.value = await s.permissions.query(
|
|
1136
|
+
r.value = await s.permissions.query(c);
|
|
1141
1137
|
} catch {
|
|
1142
1138
|
r.value = void 0;
|
|
1143
1139
|
} finally {
|
|
1144
|
-
|
|
1140
|
+
u();
|
|
1145
1141
|
}
|
|
1146
1142
|
if (t)
|
|
1147
1143
|
return rt(r.value);
|
|
1148
1144
|
}
|
|
1149
1145
|
});
|
|
1150
|
-
return
|
|
1146
|
+
return m(), t ? {
|
|
1151
1147
|
state: o,
|
|
1152
1148
|
isSupported: i,
|
|
1153
|
-
query:
|
|
1149
|
+
query: m
|
|
1154
1150
|
} : o;
|
|
1155
1151
|
}
|
|
1156
1152
|
function Qt(e = {}) {
|
|
@@ -1160,43 +1156,43 @@ function Qt(e = {}) {
|
|
|
1160
1156
|
source: s,
|
|
1161
1157
|
copiedDuring: i = 1500,
|
|
1162
1158
|
legacy: r = !1
|
|
1163
|
-
} = e,
|
|
1159
|
+
} = e, c = Me(() => n && "clipboard" in n), o = _e("clipboard-read"), u = _e("clipboard-write"), m = L(() => c.value || r), a = H(""), l = H(!1), g = Kt(() => l.value = !1, i, { immediate: !1 });
|
|
1164
1160
|
async function h() {
|
|
1165
|
-
let
|
|
1166
|
-
if (!
|
|
1161
|
+
let p = !(c.value && f(o.value));
|
|
1162
|
+
if (!p)
|
|
1167
1163
|
try {
|
|
1168
1164
|
a.value = await n.clipboard.readText();
|
|
1169
1165
|
} catch {
|
|
1170
|
-
|
|
1166
|
+
p = !0;
|
|
1171
1167
|
}
|
|
1172
|
-
|
|
1168
|
+
p && (a.value = k());
|
|
1173
1169
|
}
|
|
1174
|
-
|
|
1175
|
-
async function y(
|
|
1176
|
-
if (
|
|
1177
|
-
let
|
|
1178
|
-
if (!
|
|
1170
|
+
m.value && t && Y(["copy", "cut"], h, { passive: !0 });
|
|
1171
|
+
async function y(p = K(s)) {
|
|
1172
|
+
if (m.value && p != null) {
|
|
1173
|
+
let d = !(c.value && f(u.value));
|
|
1174
|
+
if (!d)
|
|
1179
1175
|
try {
|
|
1180
|
-
await n.clipboard.writeText(
|
|
1176
|
+
await n.clipboard.writeText(p);
|
|
1181
1177
|
} catch {
|
|
1182
|
-
|
|
1178
|
+
d = !0;
|
|
1183
1179
|
}
|
|
1184
|
-
|
|
1180
|
+
d && v(p), a.value = p, l.value = !0, g.start();
|
|
1185
1181
|
}
|
|
1186
1182
|
}
|
|
1187
|
-
function v(
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1183
|
+
function v(p) {
|
|
1184
|
+
const d = document.createElement("textarea");
|
|
1185
|
+
d.value = p ?? "", d.style.position = "absolute", d.style.opacity = "0", document.body.appendChild(d), d.select(), document.execCommand("copy"), d.remove();
|
|
1190
1186
|
}
|
|
1191
1187
|
function k() {
|
|
1192
|
-
var
|
|
1193
|
-
return (_ = (
|
|
1188
|
+
var p, d, _;
|
|
1189
|
+
return (_ = (d = (p = document == null ? void 0 : document.getSelection) == null ? void 0 : p.call(document)) == null ? void 0 : d.toString()) != null ? _ : "";
|
|
1194
1190
|
}
|
|
1195
|
-
function p
|
|
1196
|
-
return
|
|
1191
|
+
function f(p) {
|
|
1192
|
+
return p === "granted" || p === "prompt";
|
|
1197
1193
|
}
|
|
1198
1194
|
return {
|
|
1199
|
-
isSupported:
|
|
1195
|
+
isSupported: m,
|
|
1200
1196
|
text: a,
|
|
1201
1197
|
copied: l,
|
|
1202
1198
|
copy: y
|
|
@@ -1206,8 +1202,8 @@ const Jt = Qt();
|
|
|
1206
1202
|
let oe;
|
|
1207
1203
|
const en = {
|
|
1208
1204
|
mounted(e, n, t) {
|
|
1209
|
-
var
|
|
1210
|
-
const s =
|
|
1205
|
+
var c, o;
|
|
1206
|
+
const s = ue(t.ctx), i = ((o = (c = s == null ? void 0 : s.locale) == null ? void 0 : c.locale) == null ? void 0 : o.slice(0, 2)) || "en", r = {
|
|
1211
1207
|
zh: "复制成功",
|
|
1212
1208
|
en: "Copy successfully",
|
|
1213
1209
|
fr: "Copie réussie"
|
|
@@ -1239,11 +1235,11 @@ const en = {
|
|
|
1239
1235
|
verify: /^\d{0,6}$/,
|
|
1240
1236
|
idCard: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
|
|
1241
1237
|
//身份证号(15位、18位数字),最后一位是校验位,可能为数字或字符X
|
|
1242
|
-
},
|
|
1238
|
+
}, c = i instanceof RegExp ? i : n.arg && r[n.arg] ? r[n.arg] : null;
|
|
1243
1239
|
e._handleInput = (o) => {
|
|
1244
1240
|
if (o.isTrusted && !(!o.isComposing && o.inputType === "insertCompositionText" && o.data)) {
|
|
1245
|
-
const
|
|
1246
|
-
if (e._input =
|
|
1241
|
+
const u = c == null ? void 0 : c.test(o.target.value);
|
|
1242
|
+
if (e._input = u ? o.target.value : e._input, o.target.value = "", o.target.value = e._input, !u)
|
|
1247
1243
|
o.target.selectionStart = e._start, o.target.selectionEnd = e._end;
|
|
1248
1244
|
else
|
|
1249
1245
|
switch (o.inputType) {
|
|
@@ -1272,14 +1268,14 @@ const en = {
|
|
|
1272
1268
|
o.target.selectionStart = e._start + 1, o.target.selectionEnd = e._start + 1;
|
|
1273
1269
|
break;
|
|
1274
1270
|
}
|
|
1275
|
-
const
|
|
1271
|
+
const m = new InputEvent("input", {
|
|
1276
1272
|
isComposing: !1
|
|
1277
1273
|
});
|
|
1278
|
-
o.target.dispatchEvent(
|
|
1274
|
+
o.target.dispatchEvent(m);
|
|
1279
1275
|
}
|
|
1280
1276
|
}, e._handleKeydown = (o) => {
|
|
1281
|
-
const
|
|
1282
|
-
e._input =
|
|
1277
|
+
const u = c == null ? void 0 : c.test(o.target.value);
|
|
1278
|
+
e._input = u ? o.target.value : "", e._start = o.target.selectionStart, e._end = o.target.selectionEnd;
|
|
1283
1279
|
}, e._handleDrop = (o) => {
|
|
1284
1280
|
o.stopPropagation();
|
|
1285
1281
|
}, s.addEventListener("input", e._handleInput), s.addEventListener("keydown", e._handleKeydown), s.addEventListener("drop", e._handleDrop);
|
|
@@ -1296,8 +1292,8 @@ function be(e, n, t) {
|
|
|
1296
1292
|
e.style.marginLeft = `-${i}px`, e.style.marginRight = `-${i}px`;
|
|
1297
1293
|
const r = e.children;
|
|
1298
1294
|
if (r != null && r.length)
|
|
1299
|
-
for (let
|
|
1300
|
-
const o = r[
|
|
1295
|
+
for (let c = 0; c < r.length; c++) {
|
|
1296
|
+
const o = r[c];
|
|
1301
1297
|
o != null && o.style && (o.style.paddingLeft = i + "px", o.style.paddingRight = i + "px");
|
|
1302
1298
|
}
|
|
1303
1299
|
}
|
|
@@ -1323,24 +1319,24 @@ const nn = {
|
|
|
1323
1319
|
const { value: s } = n, {
|
|
1324
1320
|
content: i = "",
|
|
1325
1321
|
placement: r = "top",
|
|
1326
|
-
enabled:
|
|
1322
|
+
enabled: c = !0,
|
|
1327
1323
|
padding: o = 8,
|
|
1328
1324
|
// 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
|
|
1329
|
-
...
|
|
1325
|
+
...u
|
|
1330
1326
|
} = typeof s == "string" ? { content: s } : s;
|
|
1331
|
-
if (e.tooltipDisabled = !1, !
|
|
1327
|
+
if (e.tooltipDisabled = !1, !c)
|
|
1332
1328
|
e.tooltipDisabled = !0;
|
|
1333
1329
|
else if (n.modifiers.exceed) {
|
|
1334
1330
|
const h = e.clientWidth, y = xe(i);
|
|
1335
1331
|
e.tooltipDisabled = h ? y < h - o * 2 : !0;
|
|
1336
1332
|
}
|
|
1337
|
-
const
|
|
1333
|
+
const m = x({
|
|
1338
1334
|
top: 0,
|
|
1339
1335
|
left: 0,
|
|
1340
1336
|
bottom: 0,
|
|
1341
1337
|
right: 0
|
|
1342
|
-
}), a =
|
|
1343
|
-
getBoundingClientRect: () =>
|
|
1338
|
+
}), a = x({
|
|
1339
|
+
getBoundingClientRect: () => m.value
|
|
1344
1340
|
}), l = W(it, {
|
|
1345
1341
|
visible: !1,
|
|
1346
1342
|
content: i,
|
|
@@ -1348,10 +1344,10 @@ const nn = {
|
|
|
1348
1344
|
virtualTriggering: !0,
|
|
1349
1345
|
virtualRef: a.value,
|
|
1350
1346
|
popperClass: "vtooltip",
|
|
1351
|
-
...
|
|
1347
|
+
...u
|
|
1352
1348
|
}), g = document.createDocumentFragment();
|
|
1353
1349
|
G(l, g), e.tooltipVm = l, e.tooltipContainer = g, e.addEventListener("mouseenter", () => {
|
|
1354
|
-
|
|
1350
|
+
m.value = e.getBoundingClientRect(), l.component && !e.tooltipDisabled && (Object.assign(l.component.props, { visible: !0 }), l.component.update());
|
|
1355
1351
|
}), e.addEventListener("mouseleave", () => {
|
|
1356
1352
|
l.component && (Object.assign(l.component.props, { visible: !1 }), l.component.update());
|
|
1357
1353
|
});
|
|
@@ -1362,18 +1358,18 @@ const nn = {
|
|
|
1362
1358
|
content: s = "",
|
|
1363
1359
|
placement: i = "top",
|
|
1364
1360
|
enabled: r = !0,
|
|
1365
|
-
padding:
|
|
1361
|
+
padding: c = 8,
|
|
1366
1362
|
// 默认左右间距8px,用来判断文本的测量宽度是否超出元素宽度
|
|
1367
1363
|
...o
|
|
1368
1364
|
} = typeof t == "string" ? { content: t } : t;
|
|
1369
1365
|
if (e.tooltipDisabled = !1, !r)
|
|
1370
1366
|
e.tooltipDisabled = !0;
|
|
1371
1367
|
else if (n.modifiers.exceed) {
|
|
1372
|
-
const
|
|
1373
|
-
e.tooltipDisabled =
|
|
1368
|
+
const m = e.clientWidth, a = xe(s);
|
|
1369
|
+
e.tooltipDisabled = m ? a < m - c * 2 : !0;
|
|
1374
1370
|
}
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1371
|
+
const u = e.tooltipVm;
|
|
1372
|
+
u.component && (Object.assign(u.component.props, { content: s, placement: i, ...o }), u.component.update());
|
|
1377
1373
|
}
|
|
1378
1374
|
},
|
|
1379
1375
|
unmounted(e) {
|
|
@@ -1387,7 +1383,7 @@ function xe(e, n) {
|
|
|
1387
1383
|
const sn = {
|
|
1388
1384
|
beforeMount(e, n) {
|
|
1389
1385
|
const { value: t } = n;
|
|
1390
|
-
t && (
|
|
1386
|
+
t && (ct(t) || setTimeout(() => {
|
|
1391
1387
|
var i;
|
|
1392
1388
|
(i = e.parentNode) == null || i.removeChild(e);
|
|
1393
1389
|
}, 50));
|
|
@@ -1421,16 +1417,16 @@ const rn = {
|
|
|
1421
1417
|
space: rn,
|
|
1422
1418
|
tooltip: an
|
|
1423
1419
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1424
|
-
function
|
|
1420
|
+
function cn(e) {
|
|
1425
1421
|
Object.keys(ye).forEach((n) => {
|
|
1426
1422
|
e.component(n, ye[n]);
|
|
1427
1423
|
}), Object.keys(Se).forEach((n) => {
|
|
1428
1424
|
e.directive(n, Se[n]);
|
|
1429
1425
|
});
|
|
1430
1426
|
}
|
|
1431
|
-
const yn = { install:
|
|
1427
|
+
const yn = { install: cn };
|
|
1432
1428
|
export {
|
|
1433
|
-
|
|
1429
|
+
ut as AInputNumberEx,
|
|
1434
1430
|
$t as APageHeader,
|
|
1435
1431
|
dt as ARangePickerEx,
|
|
1436
1432
|
vt as ASelectEx,
|
|
@@ -1454,7 +1450,7 @@ export {
|
|
|
1454
1450
|
Dn as getUserCenterParams,
|
|
1455
1451
|
An as getUserCenterParamsByUrl,
|
|
1456
1452
|
Tn as getUserInfo,
|
|
1457
|
-
|
|
1453
|
+
ct as hasPermission,
|
|
1458
1454
|
tn as inputlimit,
|
|
1459
1455
|
Mn as is,
|
|
1460
1456
|
Nn as isArray,
|
|
@@ -1490,7 +1486,7 @@ export {
|
|
|
1490
1486
|
rn as space,
|
|
1491
1487
|
so as toUserCenterConsole,
|
|
1492
1488
|
an as tooltip,
|
|
1493
|
-
|
|
1489
|
+
ue as useConfigProvider,
|
|
1494
1490
|
gn as useFindParent,
|
|
1495
1491
|
hn as useModal
|
|
1496
1492
|
};
|