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