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