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