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