@fox-js/foxui-pc 4.0.1-127 → 4.0.1-129
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.js +2 -2
- package/dist/index.esm.js +646 -645
- package/dist/index.umd.js +2 -2
- package/dist/style.esm.js +1 -1
- package/dist/style.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { inject as qe, provide as ke, onUnmounted as at, getCurrentInstance as Re, effectScope as rr, watchEffect as sr, nextTick as Tt, hasInjectionContext as vn, customRef as ir, reactive as kt, isReactive as pt, watch as fe, toRaw as xe, computed as b, toRef as fn, ref as j, defineComponent as Rt, onMounted as Ne, h as A, unref as St, openBlock as se, createElementBlock as he, normalizeClass as $e, normalizeStyle as Fe, renderSlot as st, shallowRef as rn, markRaw as ur, triggerRef as Xe, createCommentVNode as be, createElementVNode as ce, toDisplayString as Ce, onBeforeUnmount as dt, resolveComponent as Te, Fragment as
|
|
1
|
+
import { inject as qe, provide as ke, onUnmounted as at, getCurrentInstance as Re, effectScope as rr, watchEffect as sr, nextTick as Tt, hasInjectionContext as vn, customRef as ir, reactive as kt, isReactive as pt, watch as fe, toRaw as xe, computed as b, toRef as fn, ref as j, defineComponent as Rt, onMounted as Ne, h as A, unref as St, openBlock as se, createElementBlock as he, normalizeClass as $e, normalizeStyle as Fe, renderSlot as st, shallowRef as rn, markRaw as ur, triggerRef as Xe, createCommentVNode as be, createElementVNode as ce, toDisplayString as Ce, onBeforeUnmount as dt, resolveComponent as Te, Fragment as Lt, withDirectives as _t, createBlock as Ie, vShow as qt, render as $n, createVNode as ge, shallowReactive as cr, mergeProps as yl, withCtx as ve, createTextVNode as Mt, renderList as sn, Transition as Dn, withModifiers as fr, toRefs as _a, Teleport as al, resolveDynamicComponent as Sn, onActivated as dr, onDeactivated as hr } from "vue";
|
|
2
2
|
import Pt from "@fox-js/validator";
|
|
3
|
-
import { ElAffix as gr, ElAlert as vr, ElAutocomplete as qa, ElAutoResizer as mr, ElAvatar as pr, ElBacktop as yr, ElBadge as br, ElBreadcrumb as xr, ElBreadcrumbItem as wr, ElButton as
|
|
4
|
-
import { ElAffix as lp, ElAlert as ap, ElAside as op, ElAutoResizer as rp, ElAutocomplete as sp, ElAvatar as ip, ElBacktop as up, ElBadge as cp, ElBreadcrumb as fp, ElBreadcrumbItem as dp, ElButton as hp, ElButtonGroup as gp, ElCalendar as vp, ElCard as mp, ElCarousel as pp, ElCarouselItem as yp, ElCascader as bp, ElCascaderPanel as xp, ElCheckTag as wp, ElCheckbox as Sp, ElCheckboxButton as $p, ElCheckboxGroup as Tp, ElCol as Cp, ElCollapse as Np, ElCollapseItem as Ep, ElCollapseTransition as kp, ElColorPicker as Ip, ElConfigProvider as Fp, ElContainer as Dp, ElDatePicker as Op, ElDescriptions as Pp, ElDescriptionsItem as Ap, ElDialog as Vp, ElDivider as
|
|
5
|
-
import { ArrowLeft as lo, ArrowUp as An, Download as ao, RefreshLeft as oo, Loading as As, Setting as Vs, CircleClose as
|
|
3
|
+
import { ElAffix as gr, ElAlert as vr, ElAutocomplete as qa, ElAutoResizer as mr, ElAvatar as pr, ElBacktop as yr, ElBadge as br, ElBreadcrumb as xr, ElBreadcrumbItem as wr, ElButton as bl, ElButtonGroup as Sr, ElCalendar as $r, ElCard as Tr, ElCarousel as Cr, ElCarouselItem as Nr, ElCascader as Ba, ElCascaderPanel as Er, ElCheckTag as kr, ElCheckbox as Yt, ElCheckboxButton as Ha, ElCheckboxGroup as On, ElCol as Ir, ElCollapse as Fr, ElCollapseItem as Dr, ElCollapseTransition as Or, ElColorPicker as Pr, ElConfigProvider as Ar, ElContainer as Vr, ElAside as Lr, ElFooter as Mr, ElHeader as Rr, ElMain as _r, ElDatePicker as za, ElDescriptions as qr, ElDescriptionsItem as Br, ElDialog as ja, ElDivider as Hr, ElDrawer as zr, ElDropdown as jr, ElDropdownItem as Kr, ElDropdownMenu as Wr, ElEmpty as Yr, ElForm as Gr, ElFormItem as Ur, ElIcon as Bt, ElImage as Xr, ElImageViewer as Zr, ElInput as xl, ElInputNumber as Ka, ElLink as Qr, ElMenu as Jr, ElSubMenu as es, ElMenuItem as ts, ElMenuItemGroup as ns, ElPageHeader as ls, ElPagination as Wa, ElPopconfirm as as, ElPopover as Pn, ElPopper as os, ElProgress as rs, ElRadio as ol, ElRadioButton as Ya, ElRadioGroup as Ga, ElRate as Ua, ElResult as ss, ElRow as is, ElScrollbar as us, ElSelect as Xa, ElOption as on, ElOptionGroup as Za, ElSelectV2 as cs, ElSkeleton as fs, ElSkeletonItem as ds, ElSlider as hs, ElSpace as gs, ElSteps as vs, ElStep as ms, ElSwitch as Qa, ElTable as Ja, ElTableColumn as wl, ElTableV2 as ps, ElTabs as ys, ElTabPane as bs, ElTag as xs, ElTimePicker as eo, ElTimeSelect as to, ElTimeline as ws, ElTimelineItem as Ss, ElTooltip as $s, ElTransfer as Ts, ElTree as Cs, ElTreeSelect as no, ElTreeV2 as Ns, ElUpload as Es, ElInfiniteScroll as ks, ElLoading as Is, ElMessage as Fs, ElMessageBox as Ds, ElNotification as Os, ElPopoverDirective as Ps } from "element-plus";
|
|
4
|
+
import { ElAffix as lp, ElAlert as ap, ElAside as op, ElAutoResizer as rp, ElAutocomplete as sp, ElAvatar as ip, ElBacktop as up, ElBadge as cp, ElBreadcrumb as fp, ElBreadcrumbItem as dp, ElButton as hp, ElButtonGroup as gp, ElCalendar as vp, ElCard as mp, ElCarousel as pp, ElCarouselItem as yp, ElCascader as bp, ElCascaderPanel as xp, ElCheckTag as wp, ElCheckbox as Sp, ElCheckboxButton as $p, ElCheckboxGroup as Tp, ElCol as Cp, ElCollapse as Np, ElCollapseItem as Ep, ElCollapseTransition as kp, ElColorPicker as Ip, ElConfigProvider as Fp, ElContainer as Dp, ElDatePicker as Op, ElDescriptions as Pp, ElDescriptionsItem as Ap, ElDialog as Vp, ElDivider as Lp, ElDrawer as Mp, ElDropdown as Rp, ElDropdownItem as _p, ElDropdownMenu as qp, ElEmpty as Bp, ElFooter as Hp, ElForm as zp, ElFormItem as jp, ElHeader as Kp, ElIcon as Wp, ElImage as Yp, ElImageViewer as Gp, ElInput as Up, ElInputNumber as Xp, ElLink as Zp, ElMain as Qp, ElMenu as Jp, ElMenuItem as ey, ElMenuItemGroup as ty, ElOption as ny, ElOptionGroup as ly, ElPageHeader as ay, ElPagination as oy, ElPopconfirm as ry, ElPopover as sy, ElPopper as iy, ElProgress as uy, ElRadio as cy, ElRadioButton as fy, ElRadioGroup as dy, ElRate as hy, ElResult as gy, ElRow as vy, ElScrollbar as my, ElSelect as py, ElSelectV2 as yy, ElSkeleton as by, ElSkeletonItem as xy, ElSlider as wy, ElSpace as Sy, ElStep as $y, ElSteps as Ty, ElSubMenu as Cy, ElSwitch as Ny, ElTabPane as Ey, ElTable as ky, ElTableColumn as Iy, ElTableV2 as Fy, ElTabs as Dy, ElTag as Oy, ElTimePicker as Py, ElTimeSelect as Ay, ElTimeline as Vy, ElTimelineItem as Ly, ElTooltip as My, ElTransfer as Ry, ElTree as _y, ElTreeSelect as qy, ElTreeV2 as By, ElUpload as Hy } from "element-plus";
|
|
5
|
+
import { ArrowLeft as lo, ArrowUp as An, Download as ao, RefreshLeft as oo, Loading as As, Setting as Vs, CircleClose as Ls, Close as ro, ArrowRight as Ms } from "@element-plus/icons-vue";
|
|
6
6
|
import { useFoxI18n as tt } from "@fox-js/i18n";
|
|
7
7
|
/*!
|
|
8
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
8
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Aug 20 2026 16:29:36 GMT+0800 (China Standard Time)
|
|
9
9
|
*/
|
|
10
10
|
const mn = window, Rs = typeof window < "u";
|
|
11
11
|
function _s() {
|
|
@@ -21,7 +21,7 @@ function Xv(e) {
|
|
|
21
21
|
const so = _s();
|
|
22
22
|
function Tn(e, t = "0") {
|
|
23
23
|
let l = 0, n = -1;
|
|
24
|
-
e[0] == "-" && (l++, n = 1, e = e.substring(1), e.length), t[0] == "-" && (l++, n = 2, t = t.substring(1), t.length), e = _e(e), t = _e(t), [e, t] =
|
|
24
|
+
e[0] == "-" && (l++, n = 1, e = e.substring(1), e.length), t[0] == "-" && (l++, n = 2, t = t.substring(1), t.length), e = _e(e), t = _e(t), [e, t] = Sl(_e(e), _e(t)), l == 1 && (n == 1 ? e = Wn(e) : t = Wn(t));
|
|
25
25
|
let a = io(e, t);
|
|
26
26
|
return l ? l == 2 ? "-" + _e(a) : e.length < a.length ? _e(a.substring(1)) : "-" + _e(Wn(a)) : _e(a);
|
|
27
27
|
}
|
|
@@ -38,12 +38,12 @@ function _e(e) {
|
|
|
38
38
|
t[0] = t[0].substring(1);
|
|
39
39
|
return t[0] + (t[1] ? "." + t[1] : "");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Sl(e, t) {
|
|
42
42
|
let l = e.split("."), n = t.split("."), a = l[0].length, o = n[0].length;
|
|
43
43
|
return a > o ? n[0] = new Array(Math.abs(a - o) + 1).join("0") + (n[0] ? n[0] : "") : l[0] = new Array(Math.abs(a - o) + 1).join("0") + (l[0] ? l[0] : ""), a = l[1] ? l[1].length : 0, o = n[1] ? n[1].length : 0, (a || o) && (a > o ? n[1] = (n[1] ? n[1] : "") + new Array(Math.abs(a - o) + 1).join("0") : l[1] = (l[1] ? l[1] : "") + new Array(Math.abs(a - o) + 1).join("0")), e = l[0] + (l[1] ? "." + l[1] : ""), t = n[0] + (n[1] ? "." + n[1] : ""), [e, t];
|
|
44
44
|
}
|
|
45
45
|
function io(e, t) {
|
|
46
|
-
[e, t] =
|
|
46
|
+
[e, t] = Sl(e, t);
|
|
47
47
|
let l = "", n = 0;
|
|
48
48
|
for (let a = e.length - 1; a >= 0; a--) {
|
|
49
49
|
if (e[a] === ".") {
|
|
@@ -74,7 +74,7 @@ function dn(e, t = 0, l = Ae.HALF_EVEN) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
if (t == 0)
|
|
77
|
-
return o.length,
|
|
77
|
+
return o.length, Ml(a[1], o, n, l) ? (n ? "-" : "") + Yn(o) : (n ? "-" : "") + o;
|
|
78
78
|
if (a[1]) {
|
|
79
79
|
if (a[1].length < t)
|
|
80
80
|
return (n ? "-" : "") + o + "." + a[1] + new Array(t - a[1].length + 1).join("0");
|
|
@@ -82,9 +82,9 @@ function dn(e, t = 0, l = Ae.HALF_EVEN) {
|
|
|
82
82
|
return (n ? "-" : "") + o + "." + new Array(t + 1).join("0");
|
|
83
83
|
r = a[1].substring(0, t);
|
|
84
84
|
let s = a[1].substring(t);
|
|
85
|
-
return s &&
|
|
85
|
+
return s && Ml(s, r, n, l) && (r = Yn(r), r.length > t) ? (n ? "-" : "") + Yn(o, parseInt(r[0])) + "." + r.substring(1) : (n ? "-" : "") + o + "." + r;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ml(e, t, l, n) {
|
|
88
88
|
if (!e || e === new Array(e.length + 1).join("0") || n === Ae.DOWN || !l && n === Ae.FLOOR || l && n === Ae.CEILING)
|
|
89
89
|
return !1;
|
|
90
90
|
if (n === Ae.UP || l && n === Ae.FLOOR || !l && n === Ae.CEILING)
|
|
@@ -113,7 +113,7 @@ function Yn(e, t = 0) {
|
|
|
113
113
|
}
|
|
114
114
|
return t && (n += t), n.split("").reverse().join("");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function rl(e, t) {
|
|
117
117
|
e = e.toString(), t = t.toString();
|
|
118
118
|
let l = 0;
|
|
119
119
|
e[0] == "-" && (l++, e = e.substr(1)), t[0] == "-" && (l++, t = t.substr(1)), e = en(e), t = en(t);
|
|
@@ -148,7 +148,7 @@ function en(e) {
|
|
|
148
148
|
e = e.substr(0, e.length - 1);
|
|
149
149
|
return e == "" || e == "." ? e = "0" : e[e.length - 1] == "." && (e = e.substr(0, e.length - 1)), e[0] == "." && (e = "0" + e), e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function sl(e, t, l = 8) {
|
|
152
152
|
if (t == 0)
|
|
153
153
|
throw new Error("Cannot divide by 0");
|
|
154
154
|
if (e = e.toString(), t = t.toString(), e = e.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), t = t.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), e == 0)
|
|
@@ -182,32 +182,32 @@ function il(e, t, l = 8) {
|
|
|
182
182
|
}
|
|
183
183
|
return (n == 1 ? "-" : "") + _e(dn(s, l - 2));
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
return e = e.toString(), t = t.toString(), t =
|
|
185
|
+
function il(e, t) {
|
|
186
|
+
return e = e.toString(), t = t.toString(), t = ul(t), Tn(e, t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ul(e) {
|
|
189
189
|
return e[0] == "-" ? e = e.substr(1) : e = "-" + e, e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Rl(e, t) {
|
|
192
192
|
if (t == 0)
|
|
193
193
|
throw new Error("Cannot divide by 0");
|
|
194
|
-
e = e.toString(), t = t.toString(),
|
|
194
|
+
e = e.toString(), t = t.toString(), _l(e), _l(t);
|
|
195
195
|
let l = "";
|
|
196
196
|
e[0] == "-" && (l = "-", e = e.substr(1)), t[0] == "-" && (t = t.substr(1));
|
|
197
|
-
let n =
|
|
197
|
+
let n = il(e, rl(t, dn(sl(e, t), 0, Ae.FLOOR)));
|
|
198
198
|
return l + n;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function _l(e) {
|
|
201
201
|
if (e.indexOf(".") != -1)
|
|
202
202
|
throw new Error("Modulus of non-integers not supported");
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function ql(e, t) {
|
|
205
205
|
let l = !1;
|
|
206
206
|
if (e[0] == "-" && t[0] != "-")
|
|
207
207
|
return -1;
|
|
208
208
|
if (e[0] != "-" && t[0] == "-")
|
|
209
209
|
return 1;
|
|
210
|
-
if (e[0] == "-" && t[0] == "-" && (e = e.substr(1), t = t.substr(1), l = !0), [e, t] =
|
|
210
|
+
if (e[0] == "-" && t[0] == "-" && (e = e.substr(1), t = t.substr(1), l = !0), [e, t] = Sl(e, t), e.localeCompare(t) == 0)
|
|
211
211
|
return 0;
|
|
212
212
|
for (let n = 0; n < e.length; n++)
|
|
213
213
|
if (e[n] != t[n])
|
|
@@ -284,40 +284,40 @@ var Vn = class pe {
|
|
|
284
284
|
return new pe(Tn(this.value, t.getValue()));
|
|
285
285
|
}
|
|
286
286
|
static subtract(t, l) {
|
|
287
|
-
return t = pe.validate(t), l = pe.validate(l),
|
|
287
|
+
return t = pe.validate(t), l = pe.validate(l), il(t, l);
|
|
288
288
|
}
|
|
289
289
|
subtract(t) {
|
|
290
|
-
return new pe(
|
|
290
|
+
return new pe(il(this.value, t.getValue()));
|
|
291
291
|
}
|
|
292
292
|
static multiply(t, l) {
|
|
293
|
-
return t = pe.validate(t), l = pe.validate(l),
|
|
293
|
+
return t = pe.validate(t), l = pe.validate(l), rl(t, l);
|
|
294
294
|
}
|
|
295
295
|
multiply(t) {
|
|
296
|
-
return new pe(
|
|
296
|
+
return new pe(rl(this.value, t.getValue()));
|
|
297
297
|
}
|
|
298
298
|
static divide(t, l, n) {
|
|
299
|
-
return t = pe.validate(t), l = pe.validate(l),
|
|
299
|
+
return t = pe.validate(t), l = pe.validate(l), sl(t, l, n);
|
|
300
300
|
}
|
|
301
301
|
divide(t, l) {
|
|
302
|
-
return new pe(
|
|
302
|
+
return new pe(sl(this.value, t.getValue(), l));
|
|
303
303
|
}
|
|
304
304
|
static modulus(t, l) {
|
|
305
|
-
return t = pe.validate(t), l = pe.validate(l),
|
|
305
|
+
return t = pe.validate(t), l = pe.validate(l), Rl(t, l);
|
|
306
306
|
}
|
|
307
307
|
modulus(t) {
|
|
308
|
-
return new pe(
|
|
308
|
+
return new pe(Rl(this.value, t.getValue()));
|
|
309
309
|
}
|
|
310
310
|
static compareTo(t, l) {
|
|
311
|
-
return t = pe.validate(t), l = pe.validate(l),
|
|
311
|
+
return t = pe.validate(t), l = pe.validate(l), ql(t, l);
|
|
312
312
|
}
|
|
313
313
|
compareTo(t) {
|
|
314
|
-
return
|
|
314
|
+
return ql(this.value, t.getValue());
|
|
315
315
|
}
|
|
316
316
|
static negate(t) {
|
|
317
|
-
return t = pe.validate(t),
|
|
317
|
+
return t = pe.validate(t), ul(t);
|
|
318
318
|
}
|
|
319
319
|
negate() {
|
|
320
|
-
return new pe(
|
|
320
|
+
return new pe(ul(this.value));
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
function Bs(e, t) {
|
|
@@ -326,13 +326,13 @@ function Bs(e, t) {
|
|
|
326
326
|
function uo(e, t, l = 8) {
|
|
327
327
|
return Vn.divide(`${e}`, `${t}`, l);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Bl(e, t) {
|
|
330
330
|
return e = `${e}`, t = `${t}`, Vn.compareTo(e, t);
|
|
331
331
|
}
|
|
332
332
|
function Hs(e) {
|
|
333
333
|
return Vn.negate(e);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function $l(e, t = -1, l = !1, n = 3, a = ",") {
|
|
336
336
|
let o = `${e}`;
|
|
337
337
|
if (o.length == 0 || o === "-")
|
|
338
338
|
return "";
|
|
@@ -356,7 +356,7 @@ function zs(e) {
|
|
|
356
356
|
let n = t.replace(/[^\d\.-]/g, "");
|
|
357
357
|
return `${l}${n}`;
|
|
358
358
|
}
|
|
359
|
-
const co = so, Zv = Array.isArray, Qv = (e) =>
|
|
359
|
+
const co = so, Zv = Array.isArray, Qv = (e) => Tl(e) === "[object Map]", Jv = (e) => Tl(e) === "[object Set]", em = (e) => e instanceof Date, Hl = (e) => typeof e == "function", js = (e) => typeof e == "string", tm = (e) => typeof e == "symbol", It = (e) => e !== null && typeof e == "object", Ks = (e) => It(e) && Hl(e.then) && Hl(e.catch), Ws = Object.prototype.toString, Tl = (e) => Ws.call(e), zl = (e) => Tl(e) === "[object Object]", Ys = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol";
|
|
360
360
|
function nm(e) {
|
|
361
361
|
return e.__esModule || Ys && e[Symbol.toStringTag] === "Module";
|
|
362
362
|
}
|
|
@@ -378,7 +378,7 @@ function Gt(...e) {
|
|
|
378
378
|
}
|
|
379
379
|
return t;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function jl(e, t, l = !1) {
|
|
382
382
|
if (!l)
|
|
383
383
|
Gt(!0, e, t);
|
|
384
384
|
else {
|
|
@@ -389,9 +389,9 @@ function Kl(e, t, l = !1) {
|
|
|
389
389
|
let o = e[a], r = t[a];
|
|
390
390
|
if (o !== r)
|
|
391
391
|
if (typeof r == "object") {
|
|
392
|
-
if (!Array.isArray(r) && !
|
|
392
|
+
if (!Array.isArray(r) && !zl(r))
|
|
393
393
|
continue;
|
|
394
|
-
o =
|
|
394
|
+
o = jl(o, r, l), e[a] = o;
|
|
395
395
|
} else {
|
|
396
396
|
if (typeof r == "function")
|
|
397
397
|
continue;
|
|
@@ -403,9 +403,9 @@ function Kl(e, t, l = !1) {
|
|
|
403
403
|
let o = e[a], r = t[a];
|
|
404
404
|
if (o !== r)
|
|
405
405
|
if (typeof r == "object") {
|
|
406
|
-
if (!Array.isArray(r) && !
|
|
406
|
+
if (!Array.isArray(r) && !zl(r))
|
|
407
407
|
continue;
|
|
408
|
-
o =
|
|
408
|
+
o = jl(o, r, l), e[a] = o;
|
|
409
409
|
} else {
|
|
410
410
|
if (typeof r == "function")
|
|
411
411
|
continue;
|
|
@@ -426,7 +426,7 @@ function lm(e, ...t) {
|
|
|
426
426
|
function de(e) {
|
|
427
427
|
return e == null ? !1 : typeof e == "boolean" ? e : typeof e == "string" ? e.toLocaleLowerCase() === "true" : !!e;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Me(e) {
|
|
430
430
|
return typeof e == "number" ? e : Number(e);
|
|
431
431
|
}
|
|
432
432
|
const Us = {
|
|
@@ -439,21 +439,21 @@ const Us = {
|
|
|
439
439
|
"[object RegExp]": "regExp",
|
|
440
440
|
"[object Object]": "object"
|
|
441
441
|
};
|
|
442
|
-
function
|
|
442
|
+
function cl(e) {
|
|
443
443
|
let l = Object.prototype.toString.call(e);
|
|
444
444
|
return e == null ? String(e) : Us[l] || "object";
|
|
445
445
|
}
|
|
446
446
|
function Xs(e) {
|
|
447
447
|
return e && typeof e == "object" && "setInterval" in e;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Cl(e) {
|
|
450
450
|
if (!e)
|
|
451
451
|
return !0;
|
|
452
452
|
const { display: t } = window.getComputedStyle(e);
|
|
453
453
|
return t === "none";
|
|
454
454
|
}
|
|
455
455
|
function Zs(e) {
|
|
456
|
-
let t = !!e && "length" in e && e.length, l =
|
|
456
|
+
let t = !!e && "length" in e && e.length, l = cl(e);
|
|
457
457
|
return l === "function" || Xs(e) ? !1 : l === "array" || t === 0 || typeof t == "number" && t > 0 && t - 1 in e;
|
|
458
458
|
}
|
|
459
459
|
function Qs(e, t) {
|
|
@@ -471,7 +471,7 @@ function Ct(e, t) {
|
|
|
471
471
|
return !0;
|
|
472
472
|
if (e === void 0 || t === void 0)
|
|
473
473
|
return !1;
|
|
474
|
-
let l =
|
|
474
|
+
let l = cl(e), n = cl(t);
|
|
475
475
|
if (l !== n)
|
|
476
476
|
return !1;
|
|
477
477
|
if (l === "object") {
|
|
@@ -500,7 +500,7 @@ const Nt = typeof window < "u";
|
|
|
500
500
|
function fo(e) {
|
|
501
501
|
return e == null;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Kl(e) {
|
|
504
504
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
505
505
|
}
|
|
506
506
|
const Oe = (e) => e == null ? !0 : typeof e != "string" ? !1 : e.length === 0;
|
|
@@ -526,12 +526,12 @@ function ti(e) {
|
|
|
526
526
|
const l = t.indexOf(".");
|
|
527
527
|
return l == -1 ? 0 : t.length - (l + 1);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Wl(e, t, l) {
|
|
530
530
|
const n = e.indexOf(t);
|
|
531
531
|
return n === -1 ? e : t === "-" && n !== 0 ? e.slice(0, n) : e.slice(0, n + 1) + e.slice(n).replace(l, "");
|
|
532
532
|
}
|
|
533
533
|
function om(e, t = !0, l = !0) {
|
|
534
|
-
t ? e =
|
|
534
|
+
t ? e = Wl(e, ".", /\./g) : e = e.replace(/\./g, ""), l ? e = Wl(e, "-", /-/g) : e = e.replace(/-/, "");
|
|
535
535
|
const n = t ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
536
536
|
return e.replace(n, "");
|
|
537
537
|
}
|
|
@@ -551,7 +551,7 @@ function sm(e, t) {
|
|
|
551
551
|
}
|
|
552
552
|
return t.lastIndexOf(e);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ln(e) {
|
|
555
555
|
return e == null || e == null ? 0 : typeof e == "string" ? e.length : `${e}`.length;
|
|
556
556
|
}
|
|
557
557
|
function ni(e, ...t) {
|
|
@@ -630,7 +630,8 @@ class ho {
|
|
|
630
630
|
* 销毁
|
|
631
631
|
*/
|
|
632
632
|
destroy() {
|
|
633
|
-
|
|
633
|
+
const t = [...this.children];
|
|
634
|
+
this.children = [], t.forEach((l) => l.destroy()), this.parent !== null && this.parent.removeChild(this), this.persistantMessages.clear(), this.callbacks.clear(), this.parent = null, this.proxy = null;
|
|
634
635
|
}
|
|
635
636
|
/**
|
|
636
637
|
* 设置持久化消息
|
|
@@ -683,7 +684,7 @@ class ho {
|
|
|
683
684
|
if (!l || l.messagingPolicy === "Once" && l.resolved === !0)
|
|
684
685
|
return !1;
|
|
685
686
|
let n = !1;
|
|
686
|
-
return !l.name || l.name === "*" || l.name === "+" ||
|
|
687
|
+
return !l.name || l.name === "*" || l.name === "+" || Kl(l.name) && t && l.name.test(t) ? n = !0 : typeof l.name == "function" ? n = Reflect.apply(l.name, null, [t]) : l.name === t && (n = !0), n;
|
|
687
688
|
}
|
|
688
689
|
/**
|
|
689
690
|
* 触发函数
|
|
@@ -735,7 +736,7 @@ class ho {
|
|
|
735
736
|
t.cachePolicy = "None";
|
|
736
737
|
}
|
|
737
738
|
let a = !1;
|
|
738
|
-
!t.name || t.name === "*" ? a = !0 : t.name === "+" ? (a = !1, t.name = "*") :
|
|
739
|
+
!t.name || t.name === "*" ? a = !0 : t.name === "+" ? (a = !1, t.name = "*") : Kl(t.name) && this.name && t.name.test(this.name) ? a = !0 : typeof t.name == "function" ? a = Reflect.apply(t.name, null, [this.name]) : t.name === this.name && (a = !0);
|
|
739
740
|
const o = [];
|
|
740
741
|
if (a) {
|
|
741
742
|
const r = this.callbacks.get(l);
|
|
@@ -790,7 +791,7 @@ class ho {
|
|
|
790
791
|
this.callbacks.set(t, l);
|
|
791
792
|
}
|
|
792
793
|
}
|
|
793
|
-
function
|
|
794
|
+
function Nl(e, t, l, n) {
|
|
794
795
|
const a = new ho(t, e, l);
|
|
795
796
|
if (n && typeof n == "object")
|
|
796
797
|
for (const o in n)
|
|
@@ -1120,7 +1121,7 @@ class ri {
|
|
|
1120
1121
|
});
|
|
1121
1122
|
}
|
|
1122
1123
|
}
|
|
1123
|
-
function
|
|
1124
|
+
function El(e, t, l) {
|
|
1124
1125
|
if (l.valueName = l.valueName ?? "modelValue", l.valueType = l.valueType ?? "string", !l.validateHandler && l.valueName !== "modelValue") {
|
|
1125
1126
|
const a = l.valueName;
|
|
1126
1127
|
l.validateHandler = {
|
|
@@ -1225,7 +1226,7 @@ function ym(e) {
|
|
|
1225
1226
|
t || (t = !0, Reflect.apply(e, null, [...l]));
|
|
1226
1227
|
};
|
|
1227
1228
|
}
|
|
1228
|
-
function
|
|
1229
|
+
function kl(e, t, l, n = 0, a = !0, o) {
|
|
1229
1230
|
let r = t, s = 0;
|
|
1230
1231
|
if (a) {
|
|
1231
1232
|
const u = e();
|
|
@@ -1253,7 +1254,7 @@ function Il(e, t, l, n = 0, a = !0, o) {
|
|
|
1253
1254
|
setTimeout(i, r);
|
|
1254
1255
|
}
|
|
1255
1256
|
const et = Symbol("DomainKey"), nn = Symbol("DataItemsKey");
|
|
1256
|
-
class
|
|
1257
|
+
class Il {
|
|
1257
1258
|
/**
|
|
1258
1259
|
* 父亲domain
|
|
1259
1260
|
*/
|
|
@@ -1399,7 +1400,7 @@ class Fl {
|
|
|
1399
1400
|
return l;
|
|
1400
1401
|
}
|
|
1401
1402
|
}
|
|
1402
|
-
const ii = new
|
|
1403
|
+
const ii = new Il();
|
|
1403
1404
|
function cn() {
|
|
1404
1405
|
return ii;
|
|
1405
1406
|
}
|
|
@@ -1412,7 +1413,7 @@ function po(e, t, l = [], n) {
|
|
|
1412
1413
|
let o = a?.proxy, r = qe(et, null);
|
|
1413
1414
|
r === null && (r = cn());
|
|
1414
1415
|
const s = e || t.prop || t.name;
|
|
1415
|
-
let i = new
|
|
1416
|
+
let i = new Il(s);
|
|
1416
1417
|
i.parent = r;
|
|
1417
1418
|
const u = (I) => {
|
|
1418
1419
|
o[Un] || m(I), i?.set("modelValue", I);
|
|
@@ -1427,9 +1428,9 @@ function po(e, t, l = [], n) {
|
|
|
1427
1428
|
},
|
|
1428
1429
|
{ immediate: !0 }
|
|
1429
1430
|
) : i.merge(t, l), t.modelValue && m(t.modelValue), o[et] = i, ke(et, i), a !== null) {
|
|
1430
|
-
const I = qe(Ve, null), g =
|
|
1431
|
+
const I = qe(Ve, null), g = Nl(o, I, s, n);
|
|
1431
1432
|
i.broadcast = g, o[Ve] = g, ke(Ve, g), o.broadcast = (x, p, ...T) => Reflect.apply(g.emit, g, [x, p, ...T]);
|
|
1432
|
-
const d = qe(ct, null), h =
|
|
1433
|
+
const d = qe(ct, null), h = El(o, d, { componentName: "" });
|
|
1433
1434
|
i.validateSchema = h, o[ct] = h, ke(ct, h), o[nn] = /* @__PURE__ */ new Map(), o.validate = (x = !0) => {
|
|
1434
1435
|
const p = [];
|
|
1435
1436
|
let T = null;
|
|
@@ -1437,19 +1438,19 @@ function po(e, t, l = [], n) {
|
|
|
1437
1438
|
if (x === !0)
|
|
1438
1439
|
T = { name: "*" };
|
|
1439
1440
|
else if (Array.isArray(x) && x.length > 0) {
|
|
1440
|
-
const
|
|
1441
|
+
const M = x;
|
|
1441
1442
|
T = {
|
|
1442
|
-
name: (R) => R ?
|
|
1443
|
+
name: (R) => R ? M.indexOf(R) !== -1 : !1
|
|
1443
1444
|
};
|
|
1444
1445
|
} else if (x != null && typeof x == "object") {
|
|
1445
|
-
const
|
|
1446
|
-
if (Object.assign(H,
|
|
1447
|
-
const R =
|
|
1446
|
+
const M = x;
|
|
1447
|
+
if (Object.assign(H, M), Array.isArray(M.include) && M.include.length > 0) {
|
|
1448
|
+
const R = M.include;
|
|
1448
1449
|
T = {
|
|
1449
1450
|
name: (D) => D ? R.indexOf(D) !== -1 : !1
|
|
1450
1451
|
};
|
|
1451
|
-
} else if (Array.isArray(
|
|
1452
|
-
const R =
|
|
1452
|
+
} else if (Array.isArray(M.exclude) && M.exclude.length > 0) {
|
|
1453
|
+
const R = M.exclude;
|
|
1453
1454
|
T = {
|
|
1454
1455
|
name: (D) => D ? R.indexOf(D) === -1 : !1
|
|
1455
1456
|
};
|
|
@@ -1457,12 +1458,12 @@ function po(e, t, l = [], n) {
|
|
|
1457
1458
|
T = { name: "*" };
|
|
1458
1459
|
}
|
|
1459
1460
|
if (T) {
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1461
|
+
const M = g?.emitToChildren(T, "validate", H);
|
|
1462
|
+
M && Reflect.apply([].push, p, M);
|
|
1462
1463
|
}
|
|
1463
|
-
return p.length == 1 ? p[0] : p.length > 1 ? Promise.all(p).then((
|
|
1464
|
+
return p.length == 1 ? p[0] : p.length > 1 ? Promise.all(p).then((M) => {
|
|
1464
1465
|
let R = [];
|
|
1465
|
-
return
|
|
1466
|
+
return M.forEach((D) => {
|
|
1466
1467
|
D.pass === !1 && Array.isArray(D.errors) && (R = [...R, ...D.errors]);
|
|
1467
1468
|
}), R.length > 0 ? {
|
|
1468
1469
|
pass: !1,
|
|
@@ -1475,37 +1476,37 @@ function po(e, t, l = [], n) {
|
|
|
1475
1476
|
});
|
|
1476
1477
|
}, o.setNameValidateRules = (x, p = !0, T = !1) => {
|
|
1477
1478
|
if (T === !0) {
|
|
1478
|
-
Reflect.ownKeys(x).forEach((
|
|
1479
|
-
let R = String(
|
|
1479
|
+
Reflect.ownKeys(x).forEach((M) => {
|
|
1480
|
+
let R = String(M);
|
|
1480
1481
|
const D = {
|
|
1481
1482
|
componentName: "",
|
|
1482
1483
|
fieldName: R,
|
|
1483
1484
|
pureDataValidate: !0
|
|
1484
1485
|
};
|
|
1485
1486
|
if (i) {
|
|
1486
|
-
const
|
|
1487
|
+
const L = ci(
|
|
1487
1488
|
i,
|
|
1488
1489
|
R,
|
|
1489
1490
|
D,
|
|
1490
1491
|
g,
|
|
1491
1492
|
h
|
|
1492
1493
|
);
|
|
1493
|
-
o[nn].set(R,
|
|
1494
|
+
o[nn].set(R, L);
|
|
1494
1495
|
const N = x[R];
|
|
1495
|
-
N &&
|
|
1496
|
+
N && L.validateSchema.setRule(N);
|
|
1496
1497
|
}
|
|
1497
1498
|
});
|
|
1498
1499
|
return;
|
|
1499
1500
|
}
|
|
1500
1501
|
if (p) {
|
|
1501
|
-
const H = Reflect.ownKeys(x),
|
|
1502
|
+
const H = Reflect.ownKeys(x), M = {
|
|
1502
1503
|
name: (R) => H.includes(R),
|
|
1503
1504
|
// 持久化消息,后续组件动态加载,能获取rule配置
|
|
1504
1505
|
cachePolicy: "Persistant",
|
|
1505
1506
|
// 唯一id,必须和policy Persistant配合使用
|
|
1506
1507
|
uniqueId: "validateRules"
|
|
1507
1508
|
};
|
|
1508
|
-
g?.emitToChildren(
|
|
1509
|
+
g?.emitToChildren(M, "setNameValidateRules", x, !1);
|
|
1509
1510
|
}
|
|
1510
1511
|
}, o.clearValidate = (x = !0) => {
|
|
1511
1512
|
let p = null;
|
|
@@ -1521,12 +1522,12 @@ function po(e, t, l = [], n) {
|
|
|
1521
1522
|
if (Array.isArray(T.include) && T.include.length > 0) {
|
|
1522
1523
|
const H = T.include;
|
|
1523
1524
|
p = {
|
|
1524
|
-
name: (
|
|
1525
|
+
name: (M) => M ? H.indexOf(M) !== -1 : !1
|
|
1525
1526
|
};
|
|
1526
1527
|
} else if (Array.isArray(T.exclude) && T.exclude.length > 0) {
|
|
1527
1528
|
const H = T.exclude;
|
|
1528
1529
|
p = {
|
|
1529
|
-
name: (
|
|
1530
|
+
name: (M) => M ? H.indexOf(M) === -1 : !1
|
|
1530
1531
|
};
|
|
1531
1532
|
} else
|
|
1532
1533
|
p = { name: "*" };
|
|
@@ -1542,13 +1543,13 @@ function po(e, t, l = [], n) {
|
|
|
1542
1543
|
p[H] = T[H];
|
|
1543
1544
|
});
|
|
1544
1545
|
else if (x && Array.isArray(x.include))
|
|
1545
|
-
(x.include ?? []).forEach((
|
|
1546
|
-
p[
|
|
1546
|
+
(x.include ?? []).forEach((M) => {
|
|
1547
|
+
p[M] = T[M];
|
|
1547
1548
|
});
|
|
1548
1549
|
else if (x && Array.isArray(x.exclude)) {
|
|
1549
1550
|
let H = x.exclude ?? [];
|
|
1550
|
-
Reflect.ownKeys(T).forEach((
|
|
1551
|
-
H.includes(
|
|
1551
|
+
Reflect.ownKeys(T).forEach((M) => {
|
|
1552
|
+
H.includes(M) || (p[M] = T[M]);
|
|
1552
1553
|
});
|
|
1553
1554
|
} else
|
|
1554
1555
|
Object.assign(p, T);
|
|
@@ -1567,7 +1568,7 @@ function ui(e, t, l = []) {
|
|
|
1567
1568
|
let a = Re()?.proxy, o = qe(et, null);
|
|
1568
1569
|
o === null && (o = cn());
|
|
1569
1570
|
const r = e || t.prop || t.name;
|
|
1570
|
-
let s = new
|
|
1571
|
+
let s = new Il(r);
|
|
1571
1572
|
return s.parent = o, pt(t) || typeof t == "function" ? fe(
|
|
1572
1573
|
t,
|
|
1573
1574
|
(i) => {
|
|
@@ -1580,11 +1581,11 @@ function ui(e, t, l = []) {
|
|
|
1580
1581
|
}
|
|
1581
1582
|
function Be(e, t, l) {
|
|
1582
1583
|
const a = Re()?.proxy, o = t ?? "", r = qe(Ve, null);
|
|
1583
|
-
let s =
|
|
1584
|
+
let s = Nl(a, r, o, l);
|
|
1584
1585
|
a[Ve] = s, ke(Ve, s), a.broadcast = (g, d, ...h) => s ? Reflect.apply(s.emit, s, [g, d, ...h]) : null;
|
|
1585
1586
|
const i = qe(ct, null);
|
|
1586
1587
|
e.fieldName = e.fieldName ?? o;
|
|
1587
|
-
let u =
|
|
1588
|
+
let u = El(a, i, e);
|
|
1588
1589
|
a[ct] = u, ke(ct, u), a.validate = (g = null) => {
|
|
1589
1590
|
if (!u)
|
|
1590
1591
|
return Promise.resolve({
|
|
@@ -1595,8 +1596,8 @@ function Be(e, t, l) {
|
|
|
1595
1596
|
if (Array.isArray(g) && g.indexOf(o) !== -1)
|
|
1596
1597
|
x = !0, h = !0;
|
|
1597
1598
|
else if (g && typeof g == "object") {
|
|
1598
|
-
const p = g, T = p.ignoreDisabled ?? !0, H = p.ignoreReadonly ?? !0,
|
|
1599
|
-
T === !0 && e.disabled === !0 || H === !0 && e.readonly === !0 ||
|
|
1599
|
+
const p = g, T = p.ignoreDisabled ?? !0, H = p.ignoreReadonly ?? !0, M = p.ignoreHidden ?? !0;
|
|
1600
|
+
T === !0 && e.disabled === !0 || H === !0 && e.readonly === !0 || M === !0 && Cl(a.$el) ? x = !1 : (Array.isArray(p.include) && p.include.indexOf(o) !== -1 || Array.isArray(p.exclude) && p.exclude.indexOf(o), x = !0), h = p.deep ?? !1;
|
|
1600
1601
|
} else
|
|
1601
1602
|
typeof g == "boolean" && (h = g), x = !0;
|
|
1602
1603
|
if (x) {
|
|
@@ -1611,19 +1612,19 @@ function Be(e, t, l) {
|
|
|
1611
1612
|
else if (Array.isArray(g) && g.length > 0) {
|
|
1612
1613
|
const H = g;
|
|
1613
1614
|
p = {
|
|
1614
|
-
name: (
|
|
1615
|
+
name: (M) => M ? H.indexOf(M) !== -1 : !1
|
|
1615
1616
|
};
|
|
1616
1617
|
} else if (g != null && typeof g == "object") {
|
|
1617
1618
|
const H = g;
|
|
1618
1619
|
if (Object.assign(T, H), Array.isArray(H.include) && H.include.length > 0) {
|
|
1619
|
-
const
|
|
1620
|
+
const M = H.include;
|
|
1620
1621
|
p = {
|
|
1621
|
-
name: (R) => R ?
|
|
1622
|
+
name: (R) => R ? M.indexOf(R) !== -1 : !1
|
|
1622
1623
|
};
|
|
1623
1624
|
} else if (Array.isArray(H.exclude) && H.exclude.length > 0) {
|
|
1624
|
-
const
|
|
1625
|
+
const M = H.exclude;
|
|
1625
1626
|
p = {
|
|
1626
|
-
name: (R) => R ?
|
|
1627
|
+
name: (R) => R ? M.indexOf(R) === -1 : !1
|
|
1627
1628
|
};
|
|
1628
1629
|
} else
|
|
1629
1630
|
p = { name: "*" };
|
|
@@ -1730,7 +1731,7 @@ function ci(e, t, l, n, a) {
|
|
|
1730
1731
|
return s.getValue();
|
|
1731
1732
|
}
|
|
1732
1733
|
};
|
|
1733
|
-
let i =
|
|
1734
|
+
let i = El({}, a, l);
|
|
1734
1735
|
o.validate = (c = null) => {
|
|
1735
1736
|
if (!s.isExist())
|
|
1736
1737
|
return console.warn(`validate error: field [${r}] not exist`), Promise.resolve({
|
|
@@ -1796,7 +1797,7 @@ function ci(e, t, l, n, a) {
|
|
|
1796
1797
|
const f = c[r];
|
|
1797
1798
|
f && i?.setRule(f);
|
|
1798
1799
|
};
|
|
1799
|
-
let u =
|
|
1800
|
+
let u = Nl(null, n, r, o);
|
|
1800
1801
|
return at(() => {
|
|
1801
1802
|
i = null, u = null;
|
|
1802
1803
|
}), {
|
|
@@ -1852,7 +1853,7 @@ function mt(e) {
|
|
|
1852
1853
|
};
|
|
1853
1854
|
return e && (e.top !== null && e.top !== void 0 && (t.top = we(e.top)), e.left !== null && e.left !== void 0 && (t.left = we(e.left)), e.bottom !== null && e.bottom !== void 0 && (t.bottom = we(e.bottom)), e.right !== null && e.right !== void 0 && (t.right = we(e.right))), t;
|
|
1854
1855
|
}
|
|
1855
|
-
function
|
|
1856
|
+
function Yl(e, t, l = {}, n = !0, a = -1, o = -1, r = 0, s = 0) {
|
|
1856
1857
|
if (e.headerHeight = we(l.headerHeight ?? t.headerHeight ?? -1), e.headerPadding = mt(l.headerPadding ?? t.headerPadding), e.footerHeight = we(l.footerHeight ?? t.footerHeight ?? -1), e.footerPadding = mt(l.footerPadding ?? t.footerPadding), e.contentPadding = mt(l.contentPadding ?? t.contentPadding), n) {
|
|
1857
1858
|
const i = l.height ?? t.height;
|
|
1858
1859
|
i ? e.height = we(i, o) : e.height = we(o) - we(r, o) - we(s, o), e.width = we(l.width ?? t.width ?? 0, a);
|
|
@@ -1885,10 +1886,10 @@ function di(e, t = {}) {
|
|
|
1885
1886
|
if (!o)
|
|
1886
1887
|
return null;
|
|
1887
1888
|
const r = e.get("rootWidth") ?? -1, s = e.get("rootHeight") ?? -1, i = e.get("headerBarHeight") ?? 0, u = e.get("footerBarHeight") ?? 0;
|
|
1888
|
-
|
|
1889
|
+
Yl(n, o, t, !0, r, s, i, u);
|
|
1889
1890
|
const c = kt(n), f = e.getForParent(Et);
|
|
1890
|
-
f && (n.height =
|
|
1891
|
-
[() =>
|
|
1891
|
+
f && (n.height = fl(e, f), n.width = dl(e, f), fe(
|
|
1892
|
+
[() => fl(e, f), () => dl(e, f)],
|
|
1892
1893
|
([I, g]) => {
|
|
1893
1894
|
c.height = I, c.width = g;
|
|
1894
1895
|
}
|
|
@@ -1911,7 +1912,7 @@ function di(e, t = {}) {
|
|
|
1911
1912
|
x = 0,
|
|
1912
1913
|
p = 0
|
|
1913
1914
|
]) => {
|
|
1914
|
-
|
|
1915
|
+
Yl(
|
|
1915
1916
|
c,
|
|
1916
1917
|
g,
|
|
1917
1918
|
t,
|
|
@@ -1924,7 +1925,7 @@ function di(e, t = {}) {
|
|
|
1924
1925
|
}
|
|
1925
1926
|
), e.set(Et, c), c;
|
|
1926
1927
|
}
|
|
1927
|
-
function
|
|
1928
|
+
function Fl(e) {
|
|
1928
1929
|
return e.get(Et);
|
|
1929
1930
|
}
|
|
1930
1931
|
function En(e, t) {
|
|
@@ -1941,7 +1942,7 @@ function kn(e, t) {
|
|
|
1941
1942
|
}
|
|
1942
1943
|
return 0;
|
|
1943
1944
|
}
|
|
1944
|
-
function
|
|
1945
|
+
function fl(e, t) {
|
|
1945
1946
|
if (t = t ?? e.get(Et), t) {
|
|
1946
1947
|
if (t.contentInnerHeight)
|
|
1947
1948
|
return t.contentInnerHeight;
|
|
@@ -1950,7 +1951,7 @@ function dl(e, t) {
|
|
|
1950
1951
|
}
|
|
1951
1952
|
return 0;
|
|
1952
1953
|
}
|
|
1953
|
-
function
|
|
1954
|
+
function dl(e, t) {
|
|
1954
1955
|
return t = t ?? e.get(Et), t ? t.contentInnerWidth ?? t.width - (t.contentPadding.left ?? 0) - (t.contentPadding.right ?? 0) : 0;
|
|
1955
1956
|
}
|
|
1956
1957
|
function bm(e, t) {
|
|
@@ -2004,9 +2005,9 @@ function Se(e, t = "modelValue", l = null, n) {
|
|
|
2004
2005
|
}), r;
|
|
2005
2006
|
}
|
|
2006
2007
|
const yo = /* @__PURE__ */ new Map(), In = /* @__PURE__ */ new Map();
|
|
2007
|
-
let
|
|
2008
|
+
let hl = null;
|
|
2008
2009
|
function hi(e) {
|
|
2009
|
-
|
|
2010
|
+
hl = e;
|
|
2010
2011
|
}
|
|
2011
2012
|
function bo(e, t, l) {
|
|
2012
2013
|
if (l) {
|
|
@@ -2016,7 +2017,7 @@ function bo(e, t, l) {
|
|
|
2016
2017
|
yo.set(e, t);
|
|
2017
2018
|
}
|
|
2018
2019
|
function it(e, t, l) {
|
|
2019
|
-
!l &&
|
|
2020
|
+
!l && hl && (l = hl(e) ?? void 0);
|
|
2020
2021
|
let n = null;
|
|
2021
2022
|
if (l) {
|
|
2022
2023
|
let a = In.get(l);
|
|
@@ -2188,7 +2189,7 @@ const xi = [
|
|
|
2188
2189
|
br,
|
|
2189
2190
|
xr,
|
|
2190
2191
|
wr,
|
|
2191
|
-
|
|
2192
|
+
bl,
|
|
2192
2193
|
Sr,
|
|
2193
2194
|
$r,
|
|
2194
2195
|
Tr,
|
|
@@ -2207,8 +2208,8 @@ const xi = [
|
|
|
2207
2208
|
Pr,
|
|
2208
2209
|
Ar,
|
|
2209
2210
|
Vr,
|
|
2210
|
-
Mr,
|
|
2211
2211
|
Lr,
|
|
2212
|
+
Mr,
|
|
2212
2213
|
Rr,
|
|
2213
2214
|
_r,
|
|
2214
2215
|
za,
|
|
@@ -2226,7 +2227,7 @@ const xi = [
|
|
|
2226
2227
|
Bt,
|
|
2227
2228
|
Xr,
|
|
2228
2229
|
Zr,
|
|
2229
|
-
|
|
2230
|
+
xl,
|
|
2230
2231
|
Ka,
|
|
2231
2232
|
Qr,
|
|
2232
2233
|
Jr,
|
|
@@ -2239,7 +2240,7 @@ const xi = [
|
|
|
2239
2240
|
Pn,
|
|
2240
2241
|
os,
|
|
2241
2242
|
rs,
|
|
2242
|
-
|
|
2243
|
+
ol,
|
|
2243
2244
|
Ya,
|
|
2244
2245
|
Ga,
|
|
2245
2246
|
Ua,
|
|
@@ -2258,7 +2259,7 @@ const xi = [
|
|
|
2258
2259
|
ms,
|
|
2259
2260
|
Qa,
|
|
2260
2261
|
Ja,
|
|
2261
|
-
|
|
2262
|
+
wl,
|
|
2262
2263
|
ps,
|
|
2263
2264
|
ys,
|
|
2264
2265
|
bs,
|
|
@@ -2314,7 +2315,7 @@ function He(e, t = null) {
|
|
|
2314
2315
|
Object.assign(l, e);
|
|
2315
2316
|
}
|
|
2316
2317
|
}
|
|
2317
|
-
const
|
|
2318
|
+
const Le = {
|
|
2318
2319
|
// 页面范围禁用设置
|
|
2319
2320
|
disabled: {
|
|
2320
2321
|
type: [Boolean, String],
|
|
@@ -2720,7 +2721,7 @@ const $i = Symbol.for("InnerPageScopeKey"), Ti = {
|
|
|
2720
2721
|
//属性
|
|
2721
2722
|
props: {
|
|
2722
2723
|
// item属性(domain属性)
|
|
2723
|
-
...
|
|
2724
|
+
...Le,
|
|
2724
2725
|
// group属性(domain属性)
|
|
2725
2726
|
...xo,
|
|
2726
2727
|
// page属性
|
|
@@ -2736,8 +2737,8 @@ const $i = Symbol.for("InnerPageScopeKey"), Ti = {
|
|
|
2736
2737
|
if (a) {
|
|
2737
2738
|
const c = di(a, l);
|
|
2738
2739
|
He({
|
|
2739
|
-
getPageContentHeight: () =>
|
|
2740
|
-
getPageContentWidth: () =>
|
|
2740
|
+
getPageContentHeight: () => fl(a, c),
|
|
2741
|
+
getPageContentWidth: () => dl(a, c),
|
|
2741
2742
|
getPageHeaderHeight: () => En(a, c),
|
|
2742
2743
|
getPageFooterHeight: () => kn(a, c)
|
|
2743
2744
|
}), c && o && (c.contentHeight = "100%");
|
|
@@ -2783,7 +2784,7 @@ const $i = Symbol.for("InnerPageScopeKey"), Ti = {
|
|
|
2783
2784
|
};
|
|
2784
2785
|
}
|
|
2785
2786
|
}), { componentName: Ni, create: Ei, scope: wm } = ue("page"), ki = Ei(Ci(Ni));
|
|
2786
|
-
function
|
|
2787
|
+
function Dl(e) {
|
|
2787
2788
|
const t = St(e);
|
|
2788
2789
|
return {
|
|
2789
2790
|
width: t.offsetWidth,
|
|
@@ -2889,7 +2890,7 @@ const Ii = (e, t, l, n = !1) => ({
|
|
|
2889
2890
|
emits: ["back", "click-title", "click-right", "click-right-text"],
|
|
2890
2891
|
// setup
|
|
2891
2892
|
setup(a, o) {
|
|
2892
|
-
const r = Ht(), s = r ?
|
|
2893
|
+
const r = Ht(), s = r ? Fl(r) : null;
|
|
2893
2894
|
s && (s.headerMounted = !0);
|
|
2894
2895
|
const i = e, u = b(() => ({
|
|
2895
2896
|
[i]: !0,
|
|
@@ -2918,9 +2919,9 @@ const Ii = (e, t, l, n = !1) => ({
|
|
|
2918
2919
|
}
|
|
2919
2920
|
return C;
|
|
2920
2921
|
}), I = j(null), g = () => {
|
|
2921
|
-
if (s && I.value && !
|
|
2922
|
+
if (s && I.value && !Cl(I.value)) {
|
|
2922
2923
|
if (!n) {
|
|
2923
|
-
const C =
|
|
2924
|
+
const C = Dl(I.value);
|
|
2924
2925
|
s.headerAllHeight = C.height;
|
|
2925
2926
|
}
|
|
2926
2927
|
return s.headerMounted = !0, !0;
|
|
@@ -2929,7 +2930,7 @@ const Ii = (e, t, l, n = !1) => ({
|
|
|
2929
2930
|
};
|
|
2930
2931
|
let d = null;
|
|
2931
2932
|
Ne(() => {
|
|
2932
|
-
s && (
|
|
2933
|
+
s && (kl(g, 50, 5, 50, !0), window.ResizeObserver && I.value && (d = new window.ResizeObserver(() => {
|
|
2933
2934
|
g();
|
|
2934
2935
|
}), d.observe(I.value)));
|
|
2935
2936
|
}), at(() => {
|
|
@@ -2948,7 +2949,7 @@ const Ii = (e, t, l, n = !1) => ({
|
|
|
2948
2949
|
function H() {
|
|
2949
2950
|
o.emit("click-right");
|
|
2950
2951
|
}
|
|
2951
|
-
function
|
|
2952
|
+
function M() {
|
|
2952
2953
|
o.emit("click-right-text");
|
|
2953
2954
|
}
|
|
2954
2955
|
const R = () => {
|
|
@@ -2979,7 +2980,7 @@ const Ii = (e, t, l, n = !1) => ({
|
|
|
2979
2980
|
C.push(o.slots.right());
|
|
2980
2981
|
else {
|
|
2981
2982
|
if (a.rightText) {
|
|
2982
|
-
const w = A("view", { class: "right-text", onClick:
|
|
2983
|
+
const w = A("view", { class: "right-text", onClick: M }, [a.rightText]);
|
|
2983
2984
|
C.push(w);
|
|
2984
2985
|
}
|
|
2985
2986
|
if (o.slots.rightIcon) {
|
|
@@ -2991,7 +2992,7 @@ const Ii = (e, t, l, n = !1) => ({
|
|
|
2991
2992
|
}
|
|
2992
2993
|
}
|
|
2993
2994
|
return C.length === 0 ? null : A("view", { class: "fox-header-bar__right" }, C);
|
|
2994
|
-
},
|
|
2995
|
+
}, L = () => {
|
|
2995
2996
|
if (!a.titleShow)
|
|
2996
2997
|
return null;
|
|
2997
2998
|
const C = [], w = o.slots.default ? o.slots.default() : null;
|
|
@@ -3026,7 +3027,7 @@ const Ii = (e, t, l, n = !1) => ({
|
|
|
3026
3027
|
else {
|
|
3027
3028
|
const B = [], $ = R();
|
|
3028
3029
|
$ && B.push($);
|
|
3029
|
-
const E =
|
|
3030
|
+
const E = L();
|
|
3030
3031
|
E && B.push(E);
|
|
3031
3032
|
const O = D();
|
|
3032
3033
|
if (O && B.push(O), B.length > 0) {
|
|
@@ -3088,7 +3089,7 @@ function Ai(e, t, l = !1) {
|
|
|
3088
3089
|
},
|
|
3089
3090
|
// setup
|
|
3090
3091
|
setup(n, a) {
|
|
3091
|
-
const o = Ht(), r = o ?
|
|
3092
|
+
const o = Ht(), r = o ? Fl(o) : null, s = b(() => {
|
|
3092
3093
|
const g = e;
|
|
3093
3094
|
return {
|
|
3094
3095
|
[g]: !0,
|
|
@@ -3116,9 +3117,9 @@ function Ai(e, t, l = !1) {
|
|
|
3116
3117
|
}
|
|
3117
3118
|
return g;
|
|
3118
3119
|
}), c = j(null), f = () => {
|
|
3119
|
-
if (r && c.value && !
|
|
3120
|
+
if (r && c.value && !Cl(c.value)) {
|
|
3120
3121
|
if (!l) {
|
|
3121
|
-
const g =
|
|
3122
|
+
const g = Dl(c.value);
|
|
3122
3123
|
r.footerAllHeight = g.height;
|
|
3123
3124
|
}
|
|
3124
3125
|
return r.footerMounted = !0, !0;
|
|
@@ -3127,7 +3128,7 @@ function Ai(e, t, l = !1) {
|
|
|
3127
3128
|
};
|
|
3128
3129
|
let m = null;
|
|
3129
3130
|
Ne(() => {
|
|
3130
|
-
r && (
|
|
3131
|
+
r && (kl(f, 50, 5, 50, !0), window.ResizeObserver && (m = new window.ResizeObserver(() => {
|
|
3131
3132
|
f();
|
|
3132
3133
|
}), m.observe(c.value)));
|
|
3133
3134
|
}), at(() => {
|
|
@@ -3148,7 +3149,7 @@ function Ai(e, t, l = !1) {
|
|
|
3148
3149
|
}
|
|
3149
3150
|
};
|
|
3150
3151
|
}
|
|
3151
|
-
const { componentName: Vi, create:
|
|
3152
|
+
const { componentName: Vi, create: Li, scope: Sm } = ue("footer-bar"), Mi = Li(Ai(Vi));
|
|
3152
3153
|
function Ri(e, t) {
|
|
3153
3154
|
return {
|
|
3154
3155
|
//属性
|
|
@@ -3163,7 +3164,7 @@ function Ri(e, t) {
|
|
|
3163
3164
|
setup(l) {
|
|
3164
3165
|
const n = Ht(), a = b(() => ({
|
|
3165
3166
|
[e]: !0
|
|
3166
|
-
})), o = n ?
|
|
3167
|
+
})), o = n ? Fl(n) : null, r = b(() => {
|
|
3167
3168
|
const u = {};
|
|
3168
3169
|
if (n && o) {
|
|
3169
3170
|
if (l.padding) {
|
|
@@ -3221,7 +3222,7 @@ const ot = (e, t) => {
|
|
|
3221
3222
|
l[n] = a;
|
|
3222
3223
|
return l;
|
|
3223
3224
|
}, zi = /* @__PURE__ */ ot(Bi, [["render", Hi]]), Ut = "GroupStateKey", To = Symbol.for("GroupScopeKey");
|
|
3224
|
-
function
|
|
3225
|
+
function Mn() {
|
|
3225
3226
|
return qe(To, !1);
|
|
3226
3227
|
}
|
|
3227
3228
|
function Rn(e = !0) {
|
|
@@ -3260,7 +3261,7 @@ function Zn(e, t, l = -1, n = -1, a = !1, o, r, s) {
|
|
|
3260
3261
|
s || (s = u.type ?? "grid");
|
|
3261
3262
|
const m = () => {
|
|
3262
3263
|
const I = t === "" || t === -1, g = we(t);
|
|
3263
|
-
let d =
|
|
3264
|
+
let d = Me(l);
|
|
3264
3265
|
const h = we(n);
|
|
3265
3266
|
if (!I) {
|
|
3266
3267
|
let T = (g - (d - 1) * h) / d;
|
|
@@ -3290,17 +3291,17 @@ function qn(e, t = !1) {
|
|
|
3290
3291
|
let l;
|
|
3291
3292
|
return t ? l = e.getForParent(Ut) : l = e.get(Ut), l.order;
|
|
3292
3293
|
}
|
|
3293
|
-
function
|
|
3294
|
+
function Gl(e, t = 1) {
|
|
3294
3295
|
if (t === "stretch")
|
|
3295
3296
|
return -1;
|
|
3296
|
-
const l =
|
|
3297
|
+
const l = Me(t);
|
|
3297
3298
|
return l === -1 ? 100 : 100 * l / e;
|
|
3298
3299
|
}
|
|
3299
3300
|
function Bn(e, t, l = 1, n = 0, a) {
|
|
3300
3301
|
const o = {};
|
|
3301
3302
|
let r = 0;
|
|
3302
|
-
a ? r = we(a) : r =
|
|
3303
|
-
const s =
|
|
3303
|
+
a ? r = we(a) : r = Gl(t.column, l), r > 0 && (o.width = `${r}%`);
|
|
3304
|
+
const s = Gl(t.column, n);
|
|
3304
3305
|
s > 0 && (o["margin-left"] = `${s}%`);
|
|
3305
3306
|
const i = t.gutter / 2;
|
|
3306
3307
|
return i > 0 && (o["padding-left"] = `${i}px`, o["padding-right"] = `${i}px`), o;
|
|
@@ -3313,7 +3314,7 @@ function Hn(e, t, l = 1, n = 0) {
|
|
|
3313
3314
|
// 转换为布局坐标为 +1, -1 代表为最后一列
|
|
3314
3315
|
};
|
|
3315
3316
|
}
|
|
3316
|
-
let a =
|
|
3317
|
+
let a = Me(l);
|
|
3317
3318
|
if (a === -1) {
|
|
3318
3319
|
const i = e.index % t.column;
|
|
3319
3320
|
return t.column, i == 0 ? e.index = e.index + t.column : e.index = e.index + (t.column - i) + t.column, {
|
|
@@ -3328,7 +3329,7 @@ function Hn(e, t, l = 1, n = 0) {
|
|
|
3328
3329
|
// 独占一行
|
|
3329
3330
|
};
|
|
3330
3331
|
}
|
|
3331
|
-
const o =
|
|
3332
|
+
const o = Me(n) % t.column;
|
|
3332
3333
|
let r = (e.index + o) % t.column, s = r + a;
|
|
3333
3334
|
return s > t.column ? (r = 0, s = r + a, e.index = e.index + (t.column - r) + a) : e.index = e.index + o + a, o > 0 ? {
|
|
3334
3335
|
"grid-column": `${r + 1} / span ${a}`
|
|
@@ -3344,7 +3345,7 @@ function Wi(e) {
|
|
|
3344
3345
|
function Yi() {
|
|
3345
3346
|
return qe(Co, null);
|
|
3346
3347
|
}
|
|
3347
|
-
function
|
|
3348
|
+
function gl(e) {
|
|
3348
3349
|
let t = 0;
|
|
3349
3350
|
const l = window.getComputedStyle(e, null);
|
|
3350
3351
|
if (l.getPropertyValue("box-sizing") === "content-box") {
|
|
@@ -3355,10 +3356,10 @@ function vl(e) {
|
|
|
3355
3356
|
return t;
|
|
3356
3357
|
}
|
|
3357
3358
|
function Gi(e) {
|
|
3358
|
-
let t =
|
|
3359
|
+
let t = gl(e);
|
|
3359
3360
|
if (t <= 0) {
|
|
3360
3361
|
const l = e.cloneNode(!0), n = e.offsetWidth;
|
|
3361
|
-
l.style = `width: ${n}px; height: initial; overflow: initial; visibility: hidden;`, document.body.appendChild(l), t =
|
|
3362
|
+
l.style = `width: ${n}px; height: initial; overflow: initial; visibility: hidden;`, document.body.appendChild(l), t = gl(l), document.body.removeChild(l);
|
|
3362
3363
|
}
|
|
3363
3364
|
return t;
|
|
3364
3365
|
}
|
|
@@ -3370,7 +3371,7 @@ function Ui(e, t, l) {
|
|
|
3370
3371
|
}
|
|
3371
3372
|
const Xi = {
|
|
3372
3373
|
// item属性(domain范围)
|
|
3373
|
-
...
|
|
3374
|
+
...Le,
|
|
3374
3375
|
// group属性(domain范围)
|
|
3375
3376
|
...xo,
|
|
3376
3377
|
// group属性
|
|
@@ -3384,7 +3385,7 @@ function Zi(e, t, l) {
|
|
|
3384
3385
|
emits: ["update:collapse", "header-click"],
|
|
3385
3386
|
// setup
|
|
3386
3387
|
setup(n, a) {
|
|
3387
|
-
const o = po(n.name, n, So), r = Ki(o, { type: n.type }), s =
|
|
3388
|
+
const o = po(n.name, n, So), r = Ki(o, { type: n.type }), s = Mn();
|
|
3388
3389
|
Rn(!0);
|
|
3389
3390
|
const i = n.rollingDisplay ? Yi() : null, u = j(null), c = b(() => n.rollingDisplay ? i && !i.disabled : !1), f = b(() => s && o ? _n(o, !0).value : null), m = Re(), I = (z, J = !1) => {
|
|
3390
3391
|
const ne = m?.proxy;
|
|
@@ -3440,7 +3441,7 @@ function Zi(e, t, l) {
|
|
|
3440
3441
|
J = `repeat(auto-fill, ${n.columnWidth})`;
|
|
3441
3442
|
else {
|
|
3442
3443
|
const ne = Ui(
|
|
3443
|
-
|
|
3444
|
+
L.value,
|
|
3444
3445
|
r.layout.value.column,
|
|
3445
3446
|
r.layout.value.gutter
|
|
3446
3447
|
);
|
|
@@ -3451,25 +3452,25 @@ function Zi(e, t, l) {
|
|
|
3451
3452
|
"grid-template-columns": J
|
|
3452
3453
|
};
|
|
3453
3454
|
}
|
|
3454
|
-
}), p = fn(n, "gutter"), T = fn(n, "column"), H = b(() => s || c.value ? !0 : de(n.isWrap)),
|
|
3455
|
-
|
|
3455
|
+
}), p = fn(n, "gutter"), T = fn(n, "column"), H = b(() => s || c.value ? !0 : de(n.isWrap)), M = [], R = (z) => {
|
|
3456
|
+
M.push(z);
|
|
3456
3457
|
}, D = () => {
|
|
3457
|
-
let z =
|
|
3458
|
-
|
|
3459
|
-
},
|
|
3458
|
+
let z = M.length;
|
|
3459
|
+
M.splice(0, z);
|
|
3460
|
+
}, L = j(-1), N = (z) => {
|
|
3460
3461
|
const J = $o(z).width;
|
|
3461
|
-
J > 0 && J !==
|
|
3462
|
+
J > 0 && J !== L.value && (L.value = J);
|
|
3462
3463
|
};
|
|
3463
3464
|
Zn(
|
|
3464
3465
|
o,
|
|
3465
|
-
|
|
3466
|
+
L.value,
|
|
3466
3467
|
T.value,
|
|
3467
3468
|
p.value,
|
|
3468
3469
|
!0,
|
|
3469
3470
|
n.minItemWidth,
|
|
3470
3471
|
n.maxItemWidth,
|
|
3471
3472
|
n.type
|
|
3472
|
-
), n.autoLayout && fe([
|
|
3473
|
+
), n.autoLayout && fe([L, T, p], ([z, J, ne]) => {
|
|
3473
3474
|
r.order.index = 0, Zn(o, z, J, ne, !1, n.minItemWidth, n.maxItemWidth, n.type);
|
|
3474
3475
|
});
|
|
3475
3476
|
const C = b(() => G.value ? n.expandText ?? "" : n.collapseText ?? ""), w = b(() => ({
|
|
@@ -3519,9 +3520,9 @@ function Zi(e, t, l) {
|
|
|
3519
3520
|
toggleCollapse: y,
|
|
3520
3521
|
// 重新布局
|
|
3521
3522
|
doLayout: () => {
|
|
3522
|
-
|
|
3523
|
+
M[0] && (N(M[0]), Zn(
|
|
3523
3524
|
o,
|
|
3524
|
-
|
|
3525
|
+
L.value,
|
|
3525
3526
|
T.value,
|
|
3526
3527
|
p.value,
|
|
3527
3528
|
!0,
|
|
@@ -3541,8 +3542,8 @@ function Zi(e, t, l) {
|
|
|
3541
3542
|
const J = xe(n.pureDataRules);
|
|
3542
3543
|
I(J, !0);
|
|
3543
3544
|
}
|
|
3544
|
-
if (Nt && (z && te(de(n.collapse), !1), n.autoLayout && Array.isArray(
|
|
3545
|
-
const J =
|
|
3545
|
+
if (Nt && (z && te(de(n.collapse), !1), n.autoLayout && Array.isArray(M) && M.length > 0)) {
|
|
3546
|
+
const J = M[0];
|
|
3546
3547
|
N(J), window.ResizeObserver && (F = new window.ResizeObserver(() => {
|
|
3547
3548
|
N(J);
|
|
3548
3549
|
}), F.observe(J));
|
|
@@ -3564,7 +3565,7 @@ function Zi(e, t, l) {
|
|
|
3564
3565
|
if (v)
|
|
3565
3566
|
Y.value = i.initialHeight;
|
|
3566
3567
|
else {
|
|
3567
|
-
let S =
|
|
3568
|
+
let S = gl($.value);
|
|
3568
3569
|
S <= 0 ? Y.value = J : (Y.value = `${S}px`, J = Y.value);
|
|
3569
3570
|
}
|
|
3570
3571
|
v || q();
|
|
@@ -3799,7 +3800,7 @@ class su {
|
|
|
3799
3800
|
}
|
|
3800
3801
|
}
|
|
3801
3802
|
}
|
|
3802
|
-
const
|
|
3803
|
+
const Ul = new su(), No = {
|
|
3803
3804
|
price: {
|
|
3804
3805
|
type: [Number, String],
|
|
3805
3806
|
default: 0
|
|
@@ -3849,7 +3850,7 @@ const Xl = new su(), No = {
|
|
|
3849
3850
|
setup(e) {
|
|
3850
3851
|
const t = b(() => ({
|
|
3851
3852
|
[iu]: !0
|
|
3852
|
-
})), l = b(() => e.needSymbol ? e.symbol : ""), n = b(() =>
|
|
3853
|
+
})), l = b(() => e.needSymbol ? e.symbol : ""), n = b(() => Ln(e.price) == 0 ? "" : $l(e.price, e.decimalLength, !0, Me(e.digits), e.separator)), a = b(() => {
|
|
3853
3854
|
let r = n.value;
|
|
3854
3855
|
if (r.length == 0)
|
|
3855
3856
|
return "";
|
|
@@ -4095,9 +4096,9 @@ const Eo = /* @__PURE__ */ ot(cu, [["render", hu]]), { componentName: Qn, create
|
|
|
4095
4096
|
}), Ne(() => {
|
|
4096
4097
|
setTimeout(() => {
|
|
4097
4098
|
c(e.message, e.visible);
|
|
4098
|
-
}, 0),
|
|
4099
|
+
}, 0), Ul.watch(e.reference, m), x.observe(e.reference);
|
|
4099
4100
|
}), dt(() => {
|
|
4100
|
-
|
|
4101
|
+
Ul.unwatch(e.reference, m), x.unobserve(e.reference), x.disconnect();
|
|
4101
4102
|
});
|
|
4102
4103
|
const p = b(() => {
|
|
4103
4104
|
const w = {
|
|
@@ -4112,7 +4113,7 @@ const Eo = /* @__PURE__ */ ot(cu, [["render", hu]]), { componentName: Qn, create
|
|
|
4112
4113
|
}), H = b(() => {
|
|
4113
4114
|
const w = [`${Qn}__content`];
|
|
4114
4115
|
return e.customTextClass && w.push(e.customTextClass), w;
|
|
4115
|
-
}),
|
|
4116
|
+
}), M = b(() => {
|
|
4116
4117
|
const w = {};
|
|
4117
4118
|
return e.customTextStyle && typeof e.customTextStyle == "object" && Object.assign(w, e.customTextStyle), w;
|
|
4118
4119
|
}), R = b(() => ({
|
|
@@ -4122,7 +4123,7 @@ const Eo = /* @__PURE__ */ ot(cu, [["render", hu]]), { componentName: Qn, create
|
|
|
4122
4123
|
return e.showArrow ? (w.width = `${e.arrowSize}px`, w.height = `${e.arrowSize}px`, r.value === "top" ? (w.left = "50%", w.bottom = `-${e.arrowSize}px`, w.transform = " translate(-50%, 0%)") : r.value === "top-start" ? (w.left = `${e.arrowOffset + f.value}px`, w.bottom = `-${e.arrowSize}px`) : r.value === "top-end" ? (w.right = `${e.arrowOffset - f.value}px`, w.bottom = `-${e.arrowSize}px`) : r.value === "right" ? (w.left = `-${e.arrowSize}px`, w.top = "50%", w.transform = " translate(0%, -50%)") : r.value === "right-start" ? (w.left = `-${e.arrowSize}px`, w.top = `${e.arrowOffset}px`) : r.value === "right-end" ? (w.left = `-${e.arrowSize}px`, w.bottom = `-${e.arrowOffset}px`) : r.value === "bottom" ? (w.left = "50%", w.top = `-${e.arrowSize}px`, w.transform = " translate(-50%, 0%)") : r.value === "bottom-start" ? (w.left = `${e.arrowOffset + f.value}px`, w.top = `-${e.arrowSize}px`) : r.value === "bottom-end" ? (w.right = `${e.arrowOffset - f.value}px`, w.top = `-${e.arrowSize}px`) : r.value === "left" ? (w.right = `-${e.arrowSize}px`, w.top = "50%", w.transform = " translate(0%, -50%)") : r.value === "left-start" ? (w.right = `-${e.arrowSize}px`, w.top = `${e.arrowOffset}px`) : r.value === "left-end" && (w.right = `-${e.arrowSize}px`, w.bottom = `-${e.arrowOffset}px`), w) : {
|
|
4123
4124
|
display: "none"
|
|
4124
4125
|
};
|
|
4125
|
-
}),
|
|
4126
|
+
}), L = b(() => g.value && e.closeOnClick), N = b(() => {
|
|
4126
4127
|
const w = {};
|
|
4127
4128
|
return e.zIndex && (w["z-index"] = `${e.zIndex}`), w;
|
|
4128
4129
|
});
|
|
@@ -4132,10 +4133,10 @@ const Eo = /* @__PURE__ */ ot(cu, [["render", hu]]), { componentName: Qn, create
|
|
|
4132
4133
|
classes: p,
|
|
4133
4134
|
styles: T,
|
|
4134
4135
|
textClasses: H,
|
|
4135
|
-
textStyles:
|
|
4136
|
+
textStyles: M,
|
|
4136
4137
|
arrowClasses: R,
|
|
4137
4138
|
arrowStyles: D,
|
|
4138
|
-
overlayShow:
|
|
4139
|
+
overlayShow: L,
|
|
4139
4140
|
overlayStyle: N,
|
|
4140
4141
|
onClickOverlay: () => {
|
|
4141
4142
|
I.value = !1, t.emit("update:visible", !1);
|
|
@@ -4145,7 +4146,7 @@ const Eo = /* @__PURE__ */ ot(cu, [["render", hu]]), { componentName: Qn, create
|
|
|
4145
4146
|
}), mu = ["innerHTML"];
|
|
4146
4147
|
function pu(e, t, l, n, a, o) {
|
|
4147
4148
|
const r = Te("Price");
|
|
4148
|
-
return se(), he(
|
|
4149
|
+
return se(), he(Lt, null, [
|
|
4149
4150
|
e.overlayShow ? (se(), he("div", {
|
|
4150
4151
|
key: 0,
|
|
4151
4152
|
class: "fox-hint-text__overlay",
|
|
@@ -4180,7 +4181,7 @@ function pu(e, t, l, n, a, o) {
|
|
|
4180
4181
|
])
|
|
4181
4182
|
], 64);
|
|
4182
4183
|
}
|
|
4183
|
-
const
|
|
4184
|
+
const Ol = /* @__PURE__ */ ot(vu, [["render", pu]]);
|
|
4184
4185
|
class yu {
|
|
4185
4186
|
/**
|
|
4186
4187
|
* seed id
|
|
@@ -4202,7 +4203,7 @@ class yu {
|
|
|
4202
4203
|
return this.seed < 0 && (this.seed = 0), t;
|
|
4203
4204
|
}
|
|
4204
4205
|
}
|
|
4205
|
-
const
|
|
4206
|
+
const vl = {}, bu = new yu(), Kt = /* @__PURE__ */ new Map(), Fn = (e) => {
|
|
4206
4207
|
if (e) {
|
|
4207
4208
|
const t = document.getElementById(e);
|
|
4208
4209
|
Kt.delete(e), t && ($n(null, t), t.parentNode?.removeChild(t));
|
|
@@ -4218,17 +4219,17 @@ const ml = {}, bu = new yu(), Kt = /* @__PURE__ */ new Map(), Fn = (e) => {
|
|
|
4218
4219
|
const t = document.getElementById(e.id);
|
|
4219
4220
|
if (t) {
|
|
4220
4221
|
const l = Kt.get(e.id);
|
|
4221
|
-
l ? e = { ...
|
|
4222
|
-
const n = ge(
|
|
4222
|
+
l ? e = { ...vl, ...l, ...e } : e = { ...vl, ...e }, e.transition = !1;
|
|
4223
|
+
const n = ge(Ol, e);
|
|
4223
4224
|
return $n(n, t), e.id;
|
|
4224
4225
|
}
|
|
4225
4226
|
}, wu = (e) => {
|
|
4226
4227
|
e.unmount = Fn;
|
|
4227
4228
|
let t = e.id ?? `hinttext_${bu.get()}`;
|
|
4228
|
-
e = { ...
|
|
4229
|
+
e = { ...vl, ...e }, e.id = t, Kt.set(t, e);
|
|
4229
4230
|
const l = document.createElement("div");
|
|
4230
4231
|
l.id = e.id;
|
|
4231
|
-
const n = ge(
|
|
4232
|
+
const n = ge(Ol, e);
|
|
4232
4233
|
return $n(n, l), document.body.appendChild(l), t;
|
|
4233
4234
|
}, Su = (e) => e ? !0 : (console.warn("[FoxUI HintText]: msg不能为空"), !1), Ye = {
|
|
4234
4235
|
/**
|
|
@@ -4266,7 +4267,7 @@ function $u(e, t, l, n = !1) {
|
|
|
4266
4267
|
// 属性
|
|
4267
4268
|
props: {
|
|
4268
4269
|
// item属性(domain范围)
|
|
4269
|
-
...
|
|
4270
|
+
...Le,
|
|
4270
4271
|
// item属性
|
|
4271
4272
|
...ze
|
|
4272
4273
|
},
|
|
@@ -4283,7 +4284,7 @@ function $u(e, t, l, n = !1) {
|
|
|
4283
4284
|
},
|
|
4284
4285
|
r
|
|
4285
4286
|
);
|
|
4286
|
-
const s = Ht(), i =
|
|
4287
|
+
const s = Ht(), i = Mn();
|
|
4287
4288
|
Rn(!1);
|
|
4288
4289
|
const u = b(() => i && s ? _n(s, !1).value : null), c = e, f = j(null), m = b(() => {
|
|
4289
4290
|
const S = {
|
|
@@ -4332,12 +4333,12 @@ function $u(e, t, l, n = !1) {
|
|
|
4332
4333
|
}), x = () => typeof a.label == "string" && a.label.length > 0 || typeof o.slots.label == "function", p = Ze(fn(a, "labelPosition"), "labelPosition", lt.Near), T = b(() => p && p.value === "top" ? "top" : p && p.value === "right" ? "right" : "left"), H = b(() => ({
|
|
4333
4334
|
[`${c}__main`]: !0,
|
|
4334
4335
|
[`${c}__main--${T.value}`]: !0
|
|
4335
|
-
})),
|
|
4336
|
+
})), M = b(() => ({
|
|
4336
4337
|
label: !0,
|
|
4337
4338
|
[`label--${T.value}`]: !0
|
|
4338
4339
|
})), R = Ze(fn(a, "labelWidth"), "labelWidth", lt.Near), D = b(() => R && R.value ? {
|
|
4339
4340
|
width: Ge(R.value)
|
|
4340
|
-
} : {}),
|
|
4341
|
+
} : {}), L = b(() => ({
|
|
4341
4342
|
"label--string": !0,
|
|
4342
4343
|
"label--required": h.value
|
|
4343
4344
|
})), N = b(() => ({
|
|
@@ -4421,7 +4422,7 @@ function $u(e, t, l, n = !1) {
|
|
|
4421
4422
|
W || o.emit("disappear");
|
|
4422
4423
|
}), v.observe(P.value));
|
|
4423
4424
|
}, q = () => {
|
|
4424
|
-
|
|
4425
|
+
v && (P.value && v.unobserve(P.value), v.disconnect(), v = null);
|
|
4425
4426
|
};
|
|
4426
4427
|
fe(
|
|
4427
4428
|
() => de(a.appearListen),
|
|
@@ -4437,14 +4438,14 @@ function $u(e, t, l, n = !1) {
|
|
|
4437
4438
|
if (!x())
|
|
4438
4439
|
return null;
|
|
4439
4440
|
const S = [], W = o.slots?.label?.() ?? a.label, ee = {
|
|
4440
|
-
class:
|
|
4441
|
+
class: L.value
|
|
4441
4442
|
}, ae = A("div", ee, [W]);
|
|
4442
4443
|
if (S.push(ae), o.slots.fixedPreTip) {
|
|
4443
4444
|
const me = o.slots.fixedPreTip();
|
|
4444
4445
|
S.push(me);
|
|
4445
4446
|
}
|
|
4446
4447
|
const ye = {
|
|
4447
|
-
class:
|
|
4448
|
+
class: M.value,
|
|
4448
4449
|
style: D.value
|
|
4449
4450
|
};
|
|
4450
4451
|
return A("div", ye, S);
|
|
@@ -4540,7 +4541,7 @@ function Eu(e, t) {
|
|
|
4540
4541
|
},
|
|
4541
4542
|
// setup
|
|
4542
4543
|
setup(l, n) {
|
|
4543
|
-
const a = Ht(), o =
|
|
4544
|
+
const a = Ht(), o = Mn();
|
|
4544
4545
|
Rn(!1);
|
|
4545
4546
|
const r = b(() => o && a ? _n(a, !1).value : null), s = e, i = b(() => ({
|
|
4546
4547
|
[s]: !0,
|
|
@@ -4620,7 +4621,7 @@ function Du(e, t) {
|
|
|
4620
4621
|
[a]: !0,
|
|
4621
4622
|
[`${a}__stretch`]: l.span === "stretch",
|
|
4622
4623
|
[`${a}__${l.align}`]: !0
|
|
4623
|
-
})), r = Ht(), s =
|
|
4624
|
+
})), r = Ht(), s = Mn();
|
|
4624
4625
|
Rn(!1);
|
|
4625
4626
|
const i = b(() => {
|
|
4626
4627
|
const u = {};
|
|
@@ -4674,7 +4675,7 @@ const { componentName: Ou, create: Pu, scope: Cm } = ue("row-item"), Au = Pu(Du(
|
|
|
4674
4675
|
return Reflect.ownKeys(e).forEach((n) => {
|
|
4675
4676
|
typeof n == "string" && n.indexOf("data-fox") !== 0 && (t[n] = e[n]);
|
|
4676
4677
|
}), t;
|
|
4677
|
-
},
|
|
4678
|
+
}, Xl = {
|
|
4678
4679
|
// model value
|
|
4679
4680
|
modelValue: {
|
|
4680
4681
|
type: [String, Boolean, Number, Object],
|
|
@@ -4716,11 +4717,11 @@ function Vu(e, t, l) {
|
|
|
4716
4717
|
// 属性
|
|
4717
4718
|
props: {
|
|
4718
4719
|
// item属性(domain范围)
|
|
4719
|
-
...
|
|
4720
|
+
...Le,
|
|
4720
4721
|
// item属性
|
|
4721
4722
|
...ze,
|
|
4722
4723
|
// input属性
|
|
4723
|
-
...
|
|
4724
|
+
...Xl
|
|
4724
4725
|
},
|
|
4725
4726
|
// 事件
|
|
4726
4727
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "setValue"],
|
|
@@ -4760,15 +4761,15 @@ function Vu(e, t, l) {
|
|
|
4760
4761
|
n.maxLength && O.length > Number(n.maxLength) && (O = O.slice(0, Number(n.maxLength))), s("blur", O, $);
|
|
4761
4762
|
}, H = () => {
|
|
4762
4763
|
s("clear", "");
|
|
4763
|
-
},
|
|
4764
|
+
}, M = j(!1);
|
|
4764
4765
|
let R = null;
|
|
4765
4766
|
const D = () => {
|
|
4766
|
-
n.showTooltip &&
|
|
4767
|
-
|
|
4767
|
+
n.showTooltip && M.value === !1 && (R && clearTimeout(R), R = setTimeout(() => {
|
|
4768
|
+
M.value = !0;
|
|
4768
4769
|
}, 150));
|
|
4769
|
-
},
|
|
4770
|
-
R && (clearTimeout(R),
|
|
4771
|
-
}, N = b(() =>
|
|
4770
|
+
}, L = () => {
|
|
4771
|
+
R && (clearTimeout(R), M.value = !1, R = null);
|
|
4772
|
+
}, N = b(() => M.value || x.value), C = b(() => M.value ? f.value : h.value), w = b(() => Ln(n.unit) > 0), B = j();
|
|
4772
4773
|
return He({
|
|
4773
4774
|
//使 input 获取焦点
|
|
4774
4775
|
focus: () => {
|
|
@@ -4800,17 +4801,17 @@ function Vu(e, t, l) {
|
|
|
4800
4801
|
onFocus: p,
|
|
4801
4802
|
onBlur: T,
|
|
4802
4803
|
onMouseover: D,
|
|
4803
|
-
onMouseleave:
|
|
4804
|
+
onMouseleave: L
|
|
4804
4805
|
}, O = {};
|
|
4805
4806
|
a.slots.prepend && (O.prepend = a.slots.prepend), a.slots.append && (O.append = a.slots.append), a.slots.prefix && (O.prefix = a.slots.prefix), a.slots.suffix ? O.suffix = a.slots.suffix : w.value && (O.suffix = () => [n.unit]);
|
|
4806
|
-
const G = [], Y = A(
|
|
4807
|
+
const G = [], Y = A(xl, E, O);
|
|
4807
4808
|
G.push(Y);
|
|
4808
4809
|
const Q = {
|
|
4809
4810
|
default: () => G
|
|
4810
4811
|
};
|
|
4811
4812
|
a.slots.default && (Q.label = a.slots.default), a.slots.default && (Q.fixedTip = a.slots.fixedTip);
|
|
4812
4813
|
const te = {
|
|
4813
|
-
...Ue(n,
|
|
4814
|
+
...Ue(n, Xl),
|
|
4814
4815
|
hintText: C.value,
|
|
4815
4816
|
hintVisible: N.value,
|
|
4816
4817
|
prop: `${n.prop}_item`
|
|
@@ -4820,7 +4821,7 @@ function Vu(e, t, l) {
|
|
|
4820
4821
|
}
|
|
4821
4822
|
};
|
|
4822
4823
|
}
|
|
4823
|
-
const { componentName:
|
|
4824
|
+
const { componentName: Lu, create: Mu, scope: Ru } = ue("input-item"), _u = Mu(Vu(Lu, Ru, je));
|
|
4824
4825
|
function $t(e, t) {
|
|
4825
4826
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
4826
4827
|
}
|
|
@@ -4905,7 +4906,7 @@ function zu(e) {
|
|
|
4905
4906
|
value: e
|
|
4906
4907
|
};
|
|
4907
4908
|
}
|
|
4908
|
-
const
|
|
4909
|
+
const Zl = {
|
|
4909
4910
|
// model value
|
|
4910
4911
|
modelValue: {
|
|
4911
4912
|
type: [String, Boolean, Number, Object, Array],
|
|
@@ -5011,11 +5012,11 @@ function ju(e, t, l) {
|
|
|
5011
5012
|
// 属性
|
|
5012
5013
|
props: {
|
|
5013
5014
|
// item属性(domain范围)
|
|
5014
|
-
...
|
|
5015
|
+
...Le,
|
|
5015
5016
|
// item属性
|
|
5016
5017
|
...ze,
|
|
5017
5018
|
// input属性
|
|
5018
|
-
...
|
|
5019
|
+
...Zl
|
|
5019
5020
|
},
|
|
5020
5021
|
// 事件
|
|
5021
5022
|
emits: [
|
|
@@ -5105,7 +5106,7 @@ function ju(e, t, l) {
|
|
|
5105
5106
|
{ immediate: !x.value }
|
|
5106
5107
|
);
|
|
5107
5108
|
let H = !1;
|
|
5108
|
-
const
|
|
5109
|
+
const M = () => {
|
|
5109
5110
|
H || (H = !0, T(n.source, n.params));
|
|
5110
5111
|
};
|
|
5111
5112
|
fe([() => g.value, () => n.modelValue], ([V, U]) => {
|
|
@@ -5130,8 +5131,8 @@ function ju(e, t, l) {
|
|
|
5130
5131
|
}
|
|
5131
5132
|
D.value = !1;
|
|
5132
5133
|
});
|
|
5133
|
-
let
|
|
5134
|
-
typeof n.filterMethod == "function" && (
|
|
5134
|
+
let L = null;
|
|
5135
|
+
typeof n.filterMethod == "function" && (L = async (V) => {
|
|
5135
5136
|
if (V == null) {
|
|
5136
5137
|
d.value = null;
|
|
5137
5138
|
return;
|
|
@@ -5233,7 +5234,7 @@ function ju(e, t, l) {
|
|
|
5233
5234
|
onVisibleChange: v,
|
|
5234
5235
|
onRemoveTag: K
|
|
5235
5236
|
};
|
|
5236
|
-
typeof R == "function" && (U["remote-method"] = R, U.loading = D.value), typeof
|
|
5237
|
+
typeof R == "function" && (U["remote-method"] = R, U.loading = D.value), typeof L == "function" && (U["filter-method"] = L, U.loading = D.value);
|
|
5237
5238
|
const z = {};
|
|
5238
5239
|
a.slots.prefix && (z.prefix = a.slots.prefix), a.slots.empty && (z.empty = a.slots.empty), a.slots.options ? z.default = a.slots.options : z.default = () => q(h.value, a.slots.option);
|
|
5239
5240
|
const J = [], ne = A(Xa, U, z);
|
|
@@ -5243,14 +5244,14 @@ function ju(e, t, l) {
|
|
|
5243
5244
|
};
|
|
5244
5245
|
a.slots.default && (S.label = a.slots.default), a.slots.fixedTip && (S.fixedTip = a.slots.fixedTip);
|
|
5245
5246
|
const ee = {
|
|
5246
|
-
...Ue(n,
|
|
5247
|
+
...Ue(n, Zl),
|
|
5247
5248
|
hintText: P.value,
|
|
5248
5249
|
hintVisible: y.value,
|
|
5249
5250
|
prop: `${n.prop ?? a.attrs.name}_item`,
|
|
5250
5251
|
onMouseover: re,
|
|
5251
5252
|
onMouseleave: k
|
|
5252
5253
|
};
|
|
5253
|
-
return x.value && (ee["appear-listen"] = !0, ee.onAppear =
|
|
5254
|
+
return x.value && (ee["appear-listen"] = !0, ee.onAppear = M), A(l, ee, S);
|
|
5254
5255
|
};
|
|
5255
5256
|
}
|
|
5256
5257
|
};
|
|
@@ -5282,14 +5283,14 @@ var Do = { exports: {} };
|
|
|
5282
5283
|
return { M: f, y: I, w: c, d: u, D: g, h: i, m: s, s: r, ms: o, Q: m }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
5283
5284
|
}, u: function($) {
|
|
5284
5285
|
return $ === void 0;
|
|
5285
|
-
} },
|
|
5286
|
-
R[
|
|
5286
|
+
} }, M = "en", R = {};
|
|
5287
|
+
R[M] = p;
|
|
5287
5288
|
var D = function($) {
|
|
5288
5289
|
return $ instanceof w;
|
|
5289
|
-
},
|
|
5290
|
+
}, L = function $(E, O, G) {
|
|
5290
5291
|
var Y;
|
|
5291
5292
|
if (!E)
|
|
5292
|
-
return
|
|
5293
|
+
return M;
|
|
5293
5294
|
if (typeof E == "string") {
|
|
5294
5295
|
var Q = E.toLowerCase();
|
|
5295
5296
|
R[Q] && (Y = Q), O && (R[Q] = O, Y = Q);
|
|
@@ -5300,19 +5301,19 @@ var Do = { exports: {} };
|
|
|
5300
5301
|
var te = E.name;
|
|
5301
5302
|
R[te] = E, Y = te;
|
|
5302
5303
|
}
|
|
5303
|
-
return !G && Y && (
|
|
5304
|
+
return !G && Y && (M = Y), Y || !G && M;
|
|
5304
5305
|
}, N = function($, E) {
|
|
5305
5306
|
if (D($))
|
|
5306
5307
|
return $.clone();
|
|
5307
5308
|
var O = typeof E == "object" ? E : {};
|
|
5308
5309
|
return O.date = $, O.args = arguments, new w(O);
|
|
5309
5310
|
}, C = H;
|
|
5310
|
-
C.l =
|
|
5311
|
+
C.l = L, C.i = D, C.w = function($, E) {
|
|
5311
5312
|
return N($, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
5312
5313
|
};
|
|
5313
5314
|
var w = function() {
|
|
5314
5315
|
function $(O) {
|
|
5315
|
-
this.$L =
|
|
5316
|
+
this.$L = L(O.locale, null, !0), this.parse(O);
|
|
5316
5317
|
}
|
|
5317
5318
|
var E = $.prototype;
|
|
5318
5319
|
return E.parse = function(O) {
|
|
@@ -5440,7 +5441,7 @@ var Do = { exports: {} };
|
|
|
5440
5441
|
}, E.locale = function(O, G) {
|
|
5441
5442
|
if (!O)
|
|
5442
5443
|
return this.$L;
|
|
5443
|
-
var Y = this.clone(), Q =
|
|
5444
|
+
var Y = this.clone(), Q = L(O, G, !0);
|
|
5444
5445
|
return Q && (Y.$L = Q), Y;
|
|
5445
5446
|
}, E.clone = function() {
|
|
5446
5447
|
return C.w(this.$d, this);
|
|
@@ -5460,9 +5461,9 @@ var Do = { exports: {} };
|
|
|
5460
5461
|
};
|
|
5461
5462
|
}), N.extend = function($, E) {
|
|
5462
5463
|
return $.$i || ($(E, w, N), $.$i = !0), N;
|
|
5463
|
-
}, N.locale =
|
|
5464
|
+
}, N.locale = L, N.isDayjs = D, N.unix = function($) {
|
|
5464
5465
|
return N(1e3 * $);
|
|
5465
|
-
}, N.en = R[
|
|
5466
|
+
}, N.en = R[M], N.Ls = R, N.p = {}, N;
|
|
5466
5467
|
});
|
|
5467
5468
|
})(Do);
|
|
5468
5469
|
var Uu = Do.exports;
|
|
@@ -5538,8 +5539,8 @@ var Oo = { exports: {} };
|
|
|
5538
5539
|
return E || O.slice(1);
|
|
5539
5540
|
});
|
|
5540
5541
|
})).match(n), T = p.length, H = 0; H < T; H += 1) {
|
|
5541
|
-
var
|
|
5542
|
-
p[H] =
|
|
5542
|
+
var M = p[H], R = I[M], D = R && R[0], L = R && R[1];
|
|
5543
|
+
p[H] = L ? { regex: D, parser: L } : M.replace(/^\[|\]$/g, "");
|
|
5543
5544
|
}
|
|
5544
5545
|
return function(N) {
|
|
5545
5546
|
for (var C = {}, w = 0, B = 0; w < T; w += 1) {
|
|
@@ -5564,10 +5565,10 @@ var Oo = { exports: {} };
|
|
|
5564
5565
|
x.p.customParseFormat = !0, d && d.parseTwoDigitYear && (i = d.parseTwoDigitYear);
|
|
5565
5566
|
var p = h.prototype, T = p.parse;
|
|
5566
5567
|
p.parse = function(H) {
|
|
5567
|
-
var
|
|
5568
|
+
var M = H.date, R = H.utc, D = H.args;
|
|
5568
5569
|
this.$u = R;
|
|
5569
|
-
var
|
|
5570
|
-
if (typeof
|
|
5570
|
+
var L = D[1];
|
|
5571
|
+
if (typeof L == "string") {
|
|
5571
5572
|
var N = D[2] === !0, C = D[3] === !0, w = N || C, B = D[2];
|
|
5572
5573
|
C && (B = D[2]), s = this.$locale(), !N && B && (s = x.Ls[B]), this.$d = function(G, Y, Q) {
|
|
5573
5574
|
try {
|
|
@@ -5580,10 +5581,10 @@ var Oo = { exports: {} };
|
|
|
5580
5581
|
} catch {
|
|
5581
5582
|
return /* @__PURE__ */ new Date("");
|
|
5582
5583
|
}
|
|
5583
|
-
}(
|
|
5584
|
-
} else if (
|
|
5585
|
-
for (var $ =
|
|
5586
|
-
D[1] =
|
|
5584
|
+
}(M, L, R), this.init(), B && B !== !0 && (this.$L = this.locale(B).$L), w && M != this.format(L) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
5585
|
+
} else if (L instanceof Array)
|
|
5586
|
+
for (var $ = L.length, E = 1; E <= $; E += 1) {
|
|
5587
|
+
D[1] = L[E - 1];
|
|
5587
5588
|
var O = x.apply(this, D);
|
|
5588
5589
|
if (O.isValid()) {
|
|
5589
5590
|
this.$d = O.$d, this.$L = O.$L, this.init();
|
|
@@ -5662,13 +5663,13 @@ var Ao = { exports: {} };
|
|
|
5662
5663
|
var o = n.prototype, r = function(f) {
|
|
5663
5664
|
return f && (f.indexOf ? f : f.s);
|
|
5664
5665
|
}, s = function(f, m, I, g, d) {
|
|
5665
|
-
var h = f.name ? f : f.$locale(), x = r(h[m]), p = r(h[I]), T = x || p.map(function(
|
|
5666
|
-
return
|
|
5666
|
+
var h = f.name ? f : f.$locale(), x = r(h[m]), p = r(h[I]), T = x || p.map(function(M) {
|
|
5667
|
+
return M.slice(0, g);
|
|
5667
5668
|
});
|
|
5668
5669
|
if (!d)
|
|
5669
5670
|
return T;
|
|
5670
5671
|
var H = h.weekStart;
|
|
5671
|
-
return T.map(function(
|
|
5672
|
+
return T.map(function(M, R) {
|
|
5672
5673
|
return T[(R + (H || 0)) % 7];
|
|
5673
5674
|
});
|
|
5674
5675
|
}, i = function() {
|
|
@@ -5759,7 +5760,7 @@ var Vo = { exports: {} };
|
|
|
5759
5760
|
})(Vo);
|
|
5760
5761
|
var nc = Vo.exports;
|
|
5761
5762
|
const lc = /* @__PURE__ */ bt(nc);
|
|
5762
|
-
var
|
|
5763
|
+
var Lo = { exports: {} };
|
|
5763
5764
|
(function(e, t) {
|
|
5764
5765
|
(function(l, n) {
|
|
5765
5766
|
e.exports = n();
|
|
@@ -5771,10 +5772,10 @@ var Mo = { exports: {} };
|
|
|
5771
5772
|
};
|
|
5772
5773
|
};
|
|
5773
5774
|
});
|
|
5774
|
-
})(
|
|
5775
|
-
var ac =
|
|
5775
|
+
})(Lo);
|
|
5776
|
+
var ac = Lo.exports;
|
|
5776
5777
|
const oc = /* @__PURE__ */ bt(ac);
|
|
5777
|
-
var
|
|
5778
|
+
var Mo = { exports: {} };
|
|
5778
5779
|
(function(e, t) {
|
|
5779
5780
|
(function(l, n) {
|
|
5780
5781
|
e.exports = n();
|
|
@@ -5786,8 +5787,8 @@ var Lo = { exports: {} };
|
|
|
5786
5787
|
};
|
|
5787
5788
|
};
|
|
5788
5789
|
});
|
|
5789
|
-
})(
|
|
5790
|
-
var rc =
|
|
5790
|
+
})(Mo);
|
|
5791
|
+
var rc = Mo.exports;
|
|
5791
5792
|
const sc = /* @__PURE__ */ bt(rc);
|
|
5792
5793
|
var Ro = { exports: {} };
|
|
5793
5794
|
(function(e, t) {
|
|
@@ -5993,7 +5994,7 @@ const nt = {
|
|
|
5993
5994
|
const n = new Date(new Date(t).setMonth(t.getMonth() + l)), a = e.getTime(), o = n.getTime(), r = t.getTime();
|
|
5994
5995
|
return o > r ? a >= r && a <= o : a >= o && a <= r;
|
|
5995
5996
|
}
|
|
5996
|
-
},
|
|
5997
|
+
}, Ql = {
|
|
5997
5998
|
// type
|
|
5998
5999
|
type: {
|
|
5999
6000
|
type: [String],
|
|
@@ -6043,7 +6044,7 @@ const nt = {
|
|
|
6043
6044
|
required: !1,
|
|
6044
6045
|
default: "YYYYMMDD"
|
|
6045
6046
|
}
|
|
6046
|
-
},
|
|
6047
|
+
}, Jl = {
|
|
6047
6048
|
// 是否支持长期
|
|
6048
6049
|
isLongTerm: {
|
|
6049
6050
|
type: [Boolean, String],
|
|
@@ -6082,13 +6083,13 @@ function dc(e, t, l) {
|
|
|
6082
6083
|
// 属性
|
|
6083
6084
|
props: {
|
|
6084
6085
|
// item属性(domain范围)
|
|
6085
|
-
...
|
|
6086
|
+
...Le,
|
|
6086
6087
|
// item属性
|
|
6087
6088
|
...ze,
|
|
6088
6089
|
// input属性
|
|
6089
|
-
...
|
|
6090
|
+
...Ql,
|
|
6090
6091
|
// long属性
|
|
6091
|
-
...
|
|
6092
|
+
...Jl
|
|
6092
6093
|
},
|
|
6093
6094
|
// 事件
|
|
6094
6095
|
emits: [
|
|
@@ -6137,7 +6138,7 @@ function dc(e, t, l) {
|
|
|
6137
6138
|
const H = (_) => {
|
|
6138
6139
|
let U = _.target.value;
|
|
6139
6140
|
c.value = !0, Oe(p.value) || (T.value = !0), s("focus", U, _);
|
|
6140
|
-
},
|
|
6141
|
+
}, M = (_) => {
|
|
6141
6142
|
setTimeout(() => {
|
|
6142
6143
|
T.value && (T.value = !1), c.value = !1;
|
|
6143
6144
|
}, 0);
|
|
@@ -6147,7 +6148,7 @@ function dc(e, t, l) {
|
|
|
6147
6148
|
s("clear", "");
|
|
6148
6149
|
}, D = (_) => {
|
|
6149
6150
|
s("calendar-change", _);
|
|
6150
|
-
},
|
|
6151
|
+
}, L = (_, V, U) => {
|
|
6151
6152
|
s("panel-change", _, V, U);
|
|
6152
6153
|
}, N = (_) => {
|
|
6153
6154
|
s("visible-change", _);
|
|
@@ -6311,9 +6312,9 @@ function dc(e, t, l) {
|
|
|
6311
6312
|
"onUpdate:modelValue": g,
|
|
6312
6313
|
onClear: R,
|
|
6313
6314
|
onFocus: H,
|
|
6314
|
-
onBlur:
|
|
6315
|
+
onBlur: M,
|
|
6315
6316
|
onCalendarChange: D,
|
|
6316
|
-
onPanelChange:
|
|
6317
|
+
onPanelChange: L,
|
|
6317
6318
|
onVisibleChange: N
|
|
6318
6319
|
}, U = {};
|
|
6319
6320
|
a.slots["range-separator"] && (U["range-separator"] = a.slots["range-separator"]), a.slots.cell && (U.default = a.slots.cell);
|
|
@@ -6352,7 +6353,7 @@ function dc(e, t, l) {
|
|
|
6352
6353
|
}
|
|
6353
6354
|
}
|
|
6354
6355
|
const W = {
|
|
6355
|
-
...Ue(n,
|
|
6356
|
+
...Ue(n, Ql, Jl),
|
|
6356
6357
|
ref: X,
|
|
6357
6358
|
class: {
|
|
6358
6359
|
[`${h}__wrapper`]: !0,
|
|
@@ -6367,7 +6368,7 @@ function dc(e, t, l) {
|
|
|
6367
6368
|
}
|
|
6368
6369
|
};
|
|
6369
6370
|
}
|
|
6370
|
-
const { componentName: hc, create: gc, scope: vc } = ue("date-item"), mc = gc(dc(hc, vc, je)),
|
|
6371
|
+
const { componentName: hc, create: gc, scope: vc } = ue("date-item"), mc = gc(dc(hc, vc, je)), ea = {
|
|
6371
6372
|
// model value
|
|
6372
6373
|
modelValue: {
|
|
6373
6374
|
type: [Date, Number, String, Array],
|
|
@@ -6389,11 +6390,11 @@ function pc(e, t, l) {
|
|
|
6389
6390
|
// 属性
|
|
6390
6391
|
props: {
|
|
6391
6392
|
// item属性(domain范围)
|
|
6392
|
-
...
|
|
6393
|
+
...Le,
|
|
6393
6394
|
// item属性
|
|
6394
6395
|
...ze,
|
|
6395
6396
|
// input属性
|
|
6396
|
-
...
|
|
6397
|
+
...ea
|
|
6397
6398
|
},
|
|
6398
6399
|
// 事件
|
|
6399
6400
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "visible-change", "setValue"],
|
|
@@ -6419,40 +6420,40 @@ function pc(e, t, l) {
|
|
|
6419
6420
|
};
|
|
6420
6421
|
let d = Se(n, "hintText"), h = j(!1);
|
|
6421
6422
|
const x = (R) => {
|
|
6422
|
-
let
|
|
6423
|
-
c.value = !0, Oe(d.value) || (h.value = !0), s("focus",
|
|
6423
|
+
let L = R.target.value;
|
|
6424
|
+
c.value = !0, Oe(d.value) || (h.value = !0), s("focus", L, R);
|
|
6424
6425
|
}, p = (R) => {
|
|
6425
6426
|
setTimeout(() => {
|
|
6426
6427
|
h.value && (h.value = !1), c.value = !1;
|
|
6427
6428
|
}, 0);
|
|
6428
|
-
let
|
|
6429
|
-
n.maxLength &&
|
|
6429
|
+
let L = R.target.value;
|
|
6430
|
+
n.maxLength && L.length > Number(n.maxLength) && (L = L.slice(0, Number(n.maxLength))), s("blur", L, R);
|
|
6430
6431
|
}, T = () => {
|
|
6431
6432
|
s("clear", "");
|
|
6432
6433
|
}, H = (R) => {
|
|
6433
6434
|
s("visible-change", R);
|
|
6434
|
-
},
|
|
6435
|
+
}, M = j();
|
|
6435
6436
|
return He({
|
|
6436
6437
|
//使 input 获取焦点
|
|
6437
6438
|
focus: () => {
|
|
6438
|
-
|
|
6439
|
+
M?.value.focus();
|
|
6439
6440
|
},
|
|
6440
6441
|
// 使 input 失去焦点
|
|
6441
6442
|
blur: () => {
|
|
6442
|
-
|
|
6443
|
+
M?.value.blur();
|
|
6443
6444
|
},
|
|
6444
6445
|
// 打开日期选择器弹窗
|
|
6445
6446
|
handleOpen: () => {
|
|
6446
|
-
|
|
6447
|
+
M?.value.handleOpen();
|
|
6447
6448
|
},
|
|
6448
6449
|
// 关闭日期选择器弹窗
|
|
6449
6450
|
handleClose: () => {
|
|
6450
|
-
|
|
6451
|
+
M?.value.handleClose();
|
|
6451
6452
|
}
|
|
6452
6453
|
}), () => {
|
|
6453
6454
|
const D = {
|
|
6454
6455
|
...a.attrs,
|
|
6455
|
-
ref:
|
|
6456
|
+
ref: M,
|
|
6456
6457
|
class: I.value,
|
|
6457
6458
|
placeholder: u.placeholder.value,
|
|
6458
6459
|
disabled: o.value,
|
|
@@ -6463,14 +6464,14 @@ function pc(e, t, l) {
|
|
|
6463
6464
|
onFocus: x,
|
|
6464
6465
|
onBlur: p,
|
|
6465
6466
|
onVisibleChange: H
|
|
6466
|
-
},
|
|
6467
|
+
}, L = {}, N = [], C = A(eo, D, L);
|
|
6467
6468
|
N.push(C);
|
|
6468
6469
|
const w = {
|
|
6469
6470
|
default: () => N
|
|
6470
6471
|
};
|
|
6471
6472
|
a.slots.default && (w.label = a.slots.default), a.slots.fixedTip && (w.fixedTip = a.slots.fixedTip);
|
|
6472
6473
|
const $ = {
|
|
6473
|
-
...Ue(n,
|
|
6474
|
+
...Ue(n, ea),
|
|
6474
6475
|
hintText: d.value,
|
|
6475
6476
|
hintVisible: h.value,
|
|
6476
6477
|
prop: `${n.prop}_item`
|
|
@@ -6480,7 +6481,7 @@ function pc(e, t, l) {
|
|
|
6480
6481
|
}
|
|
6481
6482
|
};
|
|
6482
6483
|
}
|
|
6483
|
-
const { componentName: yc, create: bc, scope: xc } = ue("time-item"), wc = bc(pc(yc, xc, je)),
|
|
6484
|
+
const { componentName: yc, create: bc, scope: xc } = ue("time-item"), wc = bc(pc(yc, xc, je)), ta = {
|
|
6484
6485
|
// model value
|
|
6485
6486
|
modelValue: {
|
|
6486
6487
|
type: [Date, Number, String, Array],
|
|
@@ -6502,11 +6503,11 @@ function Sc(e, t, l) {
|
|
|
6502
6503
|
// 属性
|
|
6503
6504
|
props: {
|
|
6504
6505
|
// item属性(domain范围)
|
|
6505
|
-
...
|
|
6506
|
+
...Le,
|
|
6506
6507
|
// item属性
|
|
6507
6508
|
...ze,
|
|
6508
6509
|
// input属性
|
|
6509
|
-
...
|
|
6510
|
+
...ta
|
|
6510
6511
|
},
|
|
6511
6512
|
// 事件
|
|
6512
6513
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "setValue"],
|
|
@@ -6527,19 +6528,19 @@ function Sc(e, t, l) {
|
|
|
6527
6528
|
n.prop ?? a.attrs.name
|
|
6528
6529
|
), { toLocaleRefs: i } = tt(t), u = i(n, ["placeholder"]), c = j(!1), f = Se(n, "modelValue", null, s), m = e, I = b(() => ({
|
|
6529
6530
|
[m]: !0
|
|
6530
|
-
})), g = (
|
|
6531
|
-
f.value =
|
|
6531
|
+
})), g = (M) => {
|
|
6532
|
+
f.value = M, s("update:modelValue", M), s("change", M);
|
|
6532
6533
|
};
|
|
6533
6534
|
let d = Se(n, "hintText"), h = j(!1);
|
|
6534
|
-
const x = (
|
|
6535
|
-
let D =
|
|
6536
|
-
c.value = !0, Oe(d.value) || (h.value = !0), s("focus", D,
|
|
6537
|
-
}, p = (
|
|
6535
|
+
const x = (M) => {
|
|
6536
|
+
let D = M.target.value;
|
|
6537
|
+
c.value = !0, Oe(d.value) || (h.value = !0), s("focus", D, M);
|
|
6538
|
+
}, p = (M) => {
|
|
6538
6539
|
setTimeout(() => {
|
|
6539
6540
|
h.value && (h.value = !1), c.value = !1;
|
|
6540
6541
|
}, 0);
|
|
6541
|
-
let D =
|
|
6542
|
-
n.maxLength && D.length > Number(n.maxLength) && (D = D.slice(0, Number(n.maxLength))), s("blur", D,
|
|
6542
|
+
let D = M.target.value;
|
|
6543
|
+
n.maxLength && D.length > Number(n.maxLength) && (D = D.slice(0, Number(n.maxLength))), s("blur", D, M);
|
|
6543
6544
|
}, T = () => {
|
|
6544
6545
|
s("clear", "");
|
|
6545
6546
|
}, H = j();
|
|
@@ -6573,14 +6574,14 @@ function Sc(e, t, l) {
|
|
|
6573
6574
|
onClear: T,
|
|
6574
6575
|
onFocus: x,
|
|
6575
6576
|
onBlur: p
|
|
6576
|
-
}, D = {},
|
|
6577
|
-
|
|
6577
|
+
}, D = {}, L = [], N = A(to, R, D);
|
|
6578
|
+
L.push(N);
|
|
6578
6579
|
const C = {
|
|
6579
|
-
default: () =>
|
|
6580
|
+
default: () => L
|
|
6580
6581
|
};
|
|
6581
6582
|
a.slots.default && (C.label = a.slots.default), a.slots.fixedTip && (C.fixedTip = a.slots.fixedTip);
|
|
6582
6583
|
const B = {
|
|
6583
|
-
...Ue(n,
|
|
6584
|
+
...Ue(n, ta),
|
|
6584
6585
|
hintText: d.value,
|
|
6585
6586
|
hintVisible: h.value,
|
|
6586
6587
|
prop: `${n.prop}_item`
|
|
@@ -6591,7 +6592,7 @@ function Sc(e, t, l) {
|
|
|
6591
6592
|
};
|
|
6592
6593
|
}
|
|
6593
6594
|
const { componentName: $c, create: Tc, scope: Cc } = ue("time-select-item"), Nc = Tc(Sc($c, Cc, je));
|
|
6594
|
-
function
|
|
6595
|
+
function na(e, t = 0) {
|
|
6595
6596
|
let l = `${e}`, n = l.indexOf(".");
|
|
6596
6597
|
if (n == -1)
|
|
6597
6598
|
return l;
|
|
@@ -6603,55 +6604,55 @@ function la(e, t = 0) {
|
|
|
6603
6604
|
}
|
|
6604
6605
|
return a - n < t ? a = n + t + 1 : a != n && (a += 1), a > l.length ? l = l.padEnd(a, "0") : l = l.substring(0, a), l;
|
|
6605
6606
|
}
|
|
6606
|
-
function
|
|
6607
|
-
if (typeof t == "string" && (t =
|
|
6607
|
+
function la(e, t, l = 20) {
|
|
6608
|
+
if (typeof t == "string" && (t = Me(t)), t == 1 || t == -1)
|
|
6608
6609
|
return `${e}`;
|
|
6609
6610
|
if (t == 0)
|
|
6610
6611
|
return "0";
|
|
6611
6612
|
if (t > 0) {
|
|
6612
6613
|
let n = Bs(`${e}`, `${t}`);
|
|
6613
|
-
return
|
|
6614
|
+
return na(n);
|
|
6614
6615
|
} else {
|
|
6615
6616
|
let n = uo(`${e}`, Hs(`${t}`), 20);
|
|
6616
|
-
return
|
|
6617
|
+
return na(n);
|
|
6617
6618
|
}
|
|
6618
6619
|
}
|
|
6619
6620
|
function Ec(e, t = -1, l = !1, n = 3, a = ",") {
|
|
6620
|
-
return
|
|
6621
|
+
return $l(e, t, l, n, a);
|
|
6621
6622
|
}
|
|
6622
|
-
function
|
|
6623
|
+
function aa(e, t, l, n, a = !0) {
|
|
6623
6624
|
if (e === "")
|
|
6624
6625
|
return "";
|
|
6625
|
-
if (e = zs(e), t =
|
|
6626
|
+
if (e = zs(e), t = Me(t), t == 1)
|
|
6626
6627
|
return e;
|
|
6627
6628
|
if (n)
|
|
6628
|
-
e =
|
|
6629
|
+
e = la(e, t), l && (e == "0" && a ? e = `${e}.`.padEnd(Me(l) + 2, "0") : e = uo(e, 1, Me(l)));
|
|
6629
6630
|
else {
|
|
6630
6631
|
let o = -1 * t;
|
|
6631
|
-
e =
|
|
6632
|
+
e = la(e, o);
|
|
6632
6633
|
}
|
|
6633
6634
|
return e;
|
|
6634
6635
|
}
|
|
6635
|
-
function
|
|
6636
|
+
function oa(e, t) {
|
|
6636
6637
|
let l = {
|
|
6637
6638
|
maxValid: !0,
|
|
6638
6639
|
minValid: !0,
|
|
6639
6640
|
message: ""
|
|
6640
6641
|
};
|
|
6641
6642
|
if (t.min !== void 0) {
|
|
6642
|
-
let n = de(t.minInclude), a =
|
|
6643
|
+
let n = de(t.minInclude), a = Bl(e, t.min);
|
|
6643
6644
|
if (n && a == -1 || !n && (a == 0 || a == -1)) {
|
|
6644
6645
|
let o = "请输入不小于 {0} 的数值";
|
|
6645
6646
|
l.message = o.replace("{0}", t.min), l.minValid = !1;
|
|
6646
6647
|
}
|
|
6647
6648
|
}
|
|
6648
6649
|
if (t.max != null) {
|
|
6649
|
-
let n = de(t.maxInclude), a =
|
|
6650
|
+
let n = de(t.maxInclude), a = Bl(e, t.max);
|
|
6650
6651
|
(n && a == 1 || !n && (a == 0 || a == 1)) && (l.maxValid = !1);
|
|
6651
6652
|
}
|
|
6652
6653
|
return l;
|
|
6653
6654
|
}
|
|
6654
|
-
const
|
|
6655
|
+
const ra = {
|
|
6655
6656
|
// model value
|
|
6656
6657
|
modelValue: {
|
|
6657
6658
|
type: [String, Number],
|
|
@@ -6763,11 +6764,11 @@ function kc(e, t, l) {
|
|
|
6763
6764
|
// 属性
|
|
6764
6765
|
props: {
|
|
6765
6766
|
// item属性(domain范围)
|
|
6766
|
-
...
|
|
6767
|
+
...Le,
|
|
6767
6768
|
// item属性
|
|
6768
6769
|
...ze,
|
|
6769
6770
|
// input属性
|
|
6770
|
-
...
|
|
6771
|
+
...ra
|
|
6771
6772
|
},
|
|
6772
6773
|
// 事件
|
|
6773
6774
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "setValue"],
|
|
@@ -6794,7 +6795,7 @@ function kc(e, t, l) {
|
|
|
6794
6795
|
c.value = "";
|
|
6795
6796
|
return;
|
|
6796
6797
|
}
|
|
6797
|
-
const G =
|
|
6798
|
+
const G = aa($, E, O, !1);
|
|
6798
6799
|
c.value !== G && (c.value = G);
|
|
6799
6800
|
},
|
|
6800
6801
|
{ immediate: !0 }
|
|
@@ -6821,7 +6822,7 @@ function kc(e, t, l) {
|
|
|
6821
6822
|
const x = j(""), p = b(() => {
|
|
6822
6823
|
let $ = x.value;
|
|
6823
6824
|
return Oe($) && ($ = n.errorTip ?? ""), $;
|
|
6824
|
-
}), T = j(""), H = j(!1),
|
|
6825
|
+
}), T = j(""), H = j(!1), M = ($, E) => {
|
|
6825
6826
|
if ($ = `${$}`, Oe($)) {
|
|
6826
6827
|
c.value = "", u.value = "", E.forEach((O) => {
|
|
6827
6828
|
s(O, "");
|
|
@@ -6848,23 +6849,23 @@ function kc(e, t, l) {
|
|
|
6848
6849
|
Xe(c);
|
|
6849
6850
|
return;
|
|
6850
6851
|
}
|
|
6851
|
-
let O =
|
|
6852
|
+
let O = oa($, n);
|
|
6852
6853
|
if (O.maxValid === !1) {
|
|
6853
6854
|
x.value = O.message, Xe(c);
|
|
6854
6855
|
return;
|
|
6855
6856
|
}
|
|
6856
|
-
} else if (n.min != null &&
|
|
6857
|
+
} else if (n.min != null && Me(n.min) >= 0) {
|
|
6857
6858
|
Xe(c);
|
|
6858
6859
|
return;
|
|
6859
6860
|
}
|
|
6860
|
-
T.value = $, de(n.showTip) && (H.value = $.length > 0), c.value = $, u.value =
|
|
6861
|
+
T.value = $, de(n.showTip) && (H.value = $.length > 0), c.value = $, u.value = aa($, n.rates, n.precision, !0), E.forEach((O) => {
|
|
6861
6862
|
s(O, u.value);
|
|
6862
6863
|
});
|
|
6863
6864
|
}, R = ($) => {
|
|
6864
|
-
|
|
6865
|
+
M($, ["update:modelValue", "input"]);
|
|
6865
6866
|
}, D = ($) => {
|
|
6866
|
-
|
|
6867
|
-
},
|
|
6867
|
+
M($, ["update:modelValue", "change"]);
|
|
6868
|
+
}, L = ($) => {
|
|
6868
6869
|
if (i.value = !0, de(n.showTip)) {
|
|
6869
6870
|
let E = c.value;
|
|
6870
6871
|
Oe(E) && (E = n.hintText), Oe(E) || (T.value = E, H.value = !0);
|
|
@@ -6874,7 +6875,7 @@ function kc(e, t, l) {
|
|
|
6874
6875
|
if (setTimeout(() => {
|
|
6875
6876
|
i.value = !1, de(n.showTip) && H.value === !0 && (H.value = !1);
|
|
6876
6877
|
}, 0), !Oe(c.value)) {
|
|
6877
|
-
let E =
|
|
6878
|
+
let E = oa(c.value, n);
|
|
6878
6879
|
if (E.minValid === !1 || E.maxValid === !1) {
|
|
6879
6880
|
x.value = E.message;
|
|
6880
6881
|
return;
|
|
@@ -6883,7 +6884,7 @@ function kc(e, t, l) {
|
|
|
6883
6884
|
s("update:modelValue", u.value, $), s("blur", u.value, $);
|
|
6884
6885
|
}, C = () => {
|
|
6885
6886
|
s("clear", "");
|
|
6886
|
-
}, w = b(() =>
|
|
6887
|
+
}, w = b(() => Ln(n.unit) > 0), B = j();
|
|
6887
6888
|
return He({
|
|
6888
6889
|
//使 input 获取焦点
|
|
6889
6890
|
focus: () => {
|
|
@@ -6914,18 +6915,18 @@ function kc(e, t, l) {
|
|
|
6914
6915
|
onClear: C,
|
|
6915
6916
|
onInput: R,
|
|
6916
6917
|
onChange: D,
|
|
6917
|
-
onFocus:
|
|
6918
|
+
onFocus: L,
|
|
6918
6919
|
onBlur: N
|
|
6919
6920
|
}, O = {};
|
|
6920
6921
|
a.slots.prepend && (O.prepend = a.slots.prepend), a.slots.append && (O.append = a.slots.append), a.slots.prefix && (O.prefix = a.slots.prefix), a.slots.suffix ? O.suffix = a.slots.suffix : w.value && (O.suffix = () => [n.unit]);
|
|
6921
|
-
const G = [], Y = A(
|
|
6922
|
+
const G = [], Y = A(xl, E, O);
|
|
6922
6923
|
G.push(Y);
|
|
6923
6924
|
const Q = {
|
|
6924
6925
|
default: () => G
|
|
6925
6926
|
};
|
|
6926
6927
|
a.slots.default && (Q.label = a.slots.default), a.slots.fixedTip && (Q.fixedTip = a.slots.fixedTip);
|
|
6927
6928
|
const te = {
|
|
6928
|
-
...Ue(n,
|
|
6929
|
+
...Ue(n, ra),
|
|
6929
6930
|
errorTip: p.value,
|
|
6930
6931
|
hintText: T.value,
|
|
6931
6932
|
hintVisible: H.value,
|
|
@@ -6937,7 +6938,7 @@ function kc(e, t, l) {
|
|
|
6937
6938
|
}
|
|
6938
6939
|
};
|
|
6939
6940
|
}
|
|
6940
|
-
const { componentName: Ic, create: Fc, scope: Dc } = ue("money-item"), Oc = Fc(kc(Ic, Dc, je)),
|
|
6941
|
+
const { componentName: Ic, create: Fc, scope: Dc } = ue("money-item"), Oc = Fc(kc(Ic, Dc, je)), sa = {
|
|
6941
6942
|
// model value
|
|
6942
6943
|
modelValue: {
|
|
6943
6944
|
type: [String, Number],
|
|
@@ -6974,11 +6975,11 @@ function Pc(e, t, l) {
|
|
|
6974
6975
|
// 属性
|
|
6975
6976
|
props: {
|
|
6976
6977
|
// item属性(domain范围)
|
|
6977
|
-
...
|
|
6978
|
+
...Le,
|
|
6978
6979
|
// item属性
|
|
6979
6980
|
...ze,
|
|
6980
6981
|
// input属性
|
|
6981
|
-
...
|
|
6982
|
+
...sa
|
|
6982
6983
|
},
|
|
6983
6984
|
// 事件
|
|
6984
6985
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "setValue"],
|
|
@@ -7002,24 +7003,24 @@ function Pc(e, t, l) {
|
|
|
7002
7003
|
[`${m}__append`]: R.value
|
|
7003
7004
|
})), g = b(() => ({
|
|
7004
7005
|
[`${m}__unit`]: !0
|
|
7005
|
-
})), d = (
|
|
7006
|
-
f.value =
|
|
7007
|
-
}, h = (
|
|
7008
|
-
s("change",
|
|
7006
|
+
})), d = (L) => {
|
|
7007
|
+
f.value = L, s("update:modelValue", L), s("input", L);
|
|
7008
|
+
}, h = (L) => {
|
|
7009
|
+
s("change", L);
|
|
7009
7010
|
};
|
|
7010
7011
|
let x = Se(n, "hintText"), p = j(!1);
|
|
7011
|
-
const T = (
|
|
7012
|
-
let C =
|
|
7013
|
-
c.value = !0, Oe(x.value) || (p.value = !0), s("focus", C,
|
|
7014
|
-
}, H = (
|
|
7012
|
+
const T = (L) => {
|
|
7013
|
+
let C = L.target.value;
|
|
7014
|
+
c.value = !0, Oe(x.value) || (p.value = !0), s("focus", C, L);
|
|
7015
|
+
}, H = (L) => {
|
|
7015
7016
|
setTimeout(() => {
|
|
7016
7017
|
p.value && (p.value = !1), c.value = !1;
|
|
7017
7018
|
}, 0);
|
|
7018
|
-
let C =
|
|
7019
|
-
n.maxLength && C.length > Number(n.maxLength) && (C = C.slice(0, Number(n.maxLength))), s("blur", C,
|
|
7020
|
-
},
|
|
7019
|
+
let C = L.target.value;
|
|
7020
|
+
n.maxLength && C.length > Number(n.maxLength) && (C = C.slice(0, Number(n.maxLength))), s("blur", C, L);
|
|
7021
|
+
}, M = () => {
|
|
7021
7022
|
s("clear", "");
|
|
7022
|
-
}, R = b(() =>
|
|
7023
|
+
}, R = b(() => Ln(n.unit) > 0), D = j();
|
|
7023
7024
|
return He({
|
|
7024
7025
|
//使 input 获取焦点
|
|
7025
7026
|
focus: () => {
|
|
@@ -7041,7 +7042,7 @@ function Pc(e, t, l) {
|
|
|
7041
7042
|
modelValue: f.value,
|
|
7042
7043
|
"adjust-position": n.adjustPosition,
|
|
7043
7044
|
"always-system": n.alwaysSystem,
|
|
7044
|
-
onClear:
|
|
7045
|
+
onClear: M,
|
|
7045
7046
|
onChange: h,
|
|
7046
7047
|
onInput: d,
|
|
7047
7048
|
onFocus: T,
|
|
@@ -7053,7 +7054,7 @@ function Pc(e, t, l) {
|
|
|
7053
7054
|
};
|
|
7054
7055
|
a.slots.default && ($.label = a.slots.default), a.slots.fixedTip && ($.fixedTip = a.slots.fixedTip);
|
|
7055
7056
|
const O = {
|
|
7056
|
-
...Ue(n,
|
|
7057
|
+
...Ue(n, sa),
|
|
7057
7058
|
hintText: x.value,
|
|
7058
7059
|
hintVisible: p.value,
|
|
7059
7060
|
prop: `${n.prop}_item`
|
|
@@ -7071,7 +7072,7 @@ function Pc(e, t, l) {
|
|
|
7071
7072
|
}
|
|
7072
7073
|
};
|
|
7073
7074
|
}
|
|
7074
|
-
const { componentName: Ac, create: Vc, scope:
|
|
7075
|
+
const { componentName: Ac, create: Vc, scope: Lc } = ue("input-number-item"), Mc = Vc(Pc(Ac, Lc, je));
|
|
7075
7076
|
function vt(e, t) {
|
|
7076
7077
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
7077
7078
|
}
|
|
@@ -7113,7 +7114,7 @@ function qc() {
|
|
|
7113
7114
|
const e = Re();
|
|
7114
7115
|
return new _c(e.proxy);
|
|
7115
7116
|
}
|
|
7116
|
-
function
|
|
7117
|
+
function ml(e, t, l) {
|
|
7117
7118
|
const n = vt(e, t), a = vt(e, l);
|
|
7118
7119
|
if (n !== a)
|
|
7119
7120
|
return !1;
|
|
@@ -7137,7 +7138,7 @@ function qo(e, t, l, n) {
|
|
|
7137
7138
|
if (l === "text")
|
|
7138
7139
|
i = vt(e, u) === s;
|
|
7139
7140
|
else if (l === "item")
|
|
7140
|
-
i =
|
|
7141
|
+
i = ml(e, u, s);
|
|
7141
7142
|
else {
|
|
7142
7143
|
let c = Vt(e, u);
|
|
7143
7144
|
c == null && (c = vt(e, u)), i = c === s;
|
|
@@ -7159,7 +7160,7 @@ function Bc(e) {
|
|
|
7159
7160
|
value: e
|
|
7160
7161
|
};
|
|
7161
7162
|
}
|
|
7162
|
-
const
|
|
7163
|
+
const ia = {
|
|
7163
7164
|
// model value
|
|
7164
7165
|
modelValue: {
|
|
7165
7166
|
type: [Array, String],
|
|
@@ -7263,11 +7264,11 @@ function Hc(e, t, l) {
|
|
|
7263
7264
|
// 属性
|
|
7264
7265
|
props: {
|
|
7265
7266
|
// item属性(domain范围)
|
|
7266
|
-
...
|
|
7267
|
+
...Le,
|
|
7267
7268
|
// item属性
|
|
7268
7269
|
...ze,
|
|
7269
7270
|
// input属性
|
|
7270
|
-
...
|
|
7271
|
+
...ia
|
|
7271
7272
|
},
|
|
7272
7273
|
// 事件
|
|
7273
7274
|
emits: [
|
|
@@ -7336,9 +7337,9 @@ function Hc(e, t, l) {
|
|
|
7336
7337
|
z.forEach((W) => {
|
|
7337
7338
|
const ee = `${vt(n, W)}`;
|
|
7338
7339
|
S.push(ee);
|
|
7339
|
-
}), S.length > 0 && (
|
|
7340
|
+
}), S.length > 0 && (L.value = S.join(n.separator));
|
|
7340
7341
|
} else
|
|
7341
|
-
|
|
7342
|
+
L.value = null;
|
|
7342
7343
|
let ne = !0;
|
|
7343
7344
|
if (z.length !== f.value.length)
|
|
7344
7345
|
ne = !1;
|
|
@@ -7350,12 +7351,12 @@ function Hc(e, t, l) {
|
|
|
7350
7351
|
ne = !1;
|
|
7351
7352
|
else
|
|
7352
7353
|
for (let ae = 0; ae < W.length; ae++)
|
|
7353
|
-
if (!
|
|
7354
|
+
if (!ml(n, W[ae], ee[ae])) {
|
|
7354
7355
|
ne = !1;
|
|
7355
7356
|
break;
|
|
7356
7357
|
}
|
|
7357
7358
|
} else
|
|
7358
|
-
|
|
7359
|
+
ml(n, W, ee) || (ne = !1);
|
|
7359
7360
|
if (!ne)
|
|
7360
7361
|
break;
|
|
7361
7362
|
}
|
|
@@ -7404,22 +7405,22 @@ function Hc(e, t, l) {
|
|
|
7404
7405
|
fe([() => g.value, () => n.modelValue], ([q, _]) => {
|
|
7405
7406
|
I(_, n.valueType, q, !1), s("setValue", _);
|
|
7406
7407
|
}), n.lazy && I(n.modelValue, "value", [], !1);
|
|
7407
|
-
let H = null,
|
|
7408
|
+
let H = null, M = j(!1);
|
|
7408
7409
|
typeof n.remoteMethod == "function" && (H = async (q) => {
|
|
7409
7410
|
if (q != null) {
|
|
7410
|
-
|
|
7411
|
+
M.value = !0;
|
|
7411
7412
|
try {
|
|
7412
7413
|
const _ = await n.remoteMethod(q);
|
|
7413
7414
|
g.value = _;
|
|
7414
7415
|
} catch (_) {
|
|
7415
7416
|
console.error(_);
|
|
7416
7417
|
}
|
|
7417
|
-
|
|
7418
|
+
M.value = !1;
|
|
7418
7419
|
}
|
|
7419
7420
|
});
|
|
7420
|
-
const R = j(!1), D = e,
|
|
7421
|
+
const R = j(!1), D = e, L = j(null), N = b(() => ({
|
|
7421
7422
|
[D]: !0,
|
|
7422
|
-
"is-incomplete":
|
|
7423
|
+
"is-incomplete": L.value && L.value.length > 0
|
|
7423
7424
|
})), C = b(() => {
|
|
7424
7425
|
let q = {
|
|
7425
7426
|
label: n.textKey,
|
|
@@ -7433,9 +7434,9 @@ function Hc(e, t, l) {
|
|
|
7433
7434
|
let J = [];
|
|
7434
7435
|
z.forEach((ne) => {
|
|
7435
7436
|
ne && J.push(ne);
|
|
7436
|
-
}), J.length > 0 && (
|
|
7437
|
+
}), J.length > 0 && (L.value = J.join(n.separator));
|
|
7437
7438
|
} else
|
|
7438
|
-
|
|
7439
|
+
L.value = null;
|
|
7439
7440
|
V(U);
|
|
7440
7441
|
}), q;
|
|
7441
7442
|
}), w = (q) => {
|
|
@@ -7486,7 +7487,7 @@ function Hc(e, t, l) {
|
|
|
7486
7487
|
class: N.value,
|
|
7487
7488
|
props: C.value,
|
|
7488
7489
|
clearable: n.clearable,
|
|
7489
|
-
placeholder:
|
|
7490
|
+
placeholder: L.value || u.placeholder.value,
|
|
7490
7491
|
disabled: o.value || r.value,
|
|
7491
7492
|
options: g.value,
|
|
7492
7493
|
modelValue: c.value,
|
|
@@ -7499,7 +7500,7 @@ function Hc(e, t, l) {
|
|
|
7499
7500
|
onRemoveTag: F,
|
|
7500
7501
|
expandChange: v
|
|
7501
7502
|
};
|
|
7502
|
-
typeof H == "function" && (_["remote-method"] = H, _.loading =
|
|
7503
|
+
typeof H == "function" && (_["remote-method"] = H, _.loading = M.value);
|
|
7503
7504
|
const V = {};
|
|
7504
7505
|
a.slots.option && (V.default = a.slots.option), a.slots.empty && (V.empty = a.slots.empty);
|
|
7505
7506
|
const U = [], z = A(Ba, _, V);
|
|
@@ -7509,7 +7510,7 @@ function Hc(e, t, l) {
|
|
|
7509
7510
|
};
|
|
7510
7511
|
a.slots.default && (J.label = a.slots.default), a.slots.fixedTip && (J.fixedTip = a.slots.fixedTip);
|
|
7511
7512
|
const S = {
|
|
7512
|
-
...Ue(n,
|
|
7513
|
+
...Ue(n, ia),
|
|
7513
7514
|
hintText: k.value,
|
|
7514
7515
|
hintVisible: re.value,
|
|
7515
7516
|
prop: `${n.prop ?? a.attrs.name}_item`,
|
|
@@ -7521,7 +7522,7 @@ function Hc(e, t, l) {
|
|
|
7521
7522
|
}
|
|
7522
7523
|
};
|
|
7523
7524
|
}
|
|
7524
|
-
const { componentName: zc, create: jc, scope: Kc } = ue("cascader-item"), Wc = jc(Hc(zc, Kc, je)),
|
|
7525
|
+
const { componentName: zc, create: jc, scope: Kc } = ue("cascader-item"), Wc = jc(Hc(zc, Kc, je)), ua = {
|
|
7525
7526
|
// model value
|
|
7526
7527
|
modelValue: {
|
|
7527
7528
|
type: [String, Object],
|
|
@@ -7548,11 +7549,11 @@ function Yc(e, t, l) {
|
|
|
7548
7549
|
// 属性
|
|
7549
7550
|
props: {
|
|
7550
7551
|
// item属性(domain范围)
|
|
7551
|
-
...
|
|
7552
|
+
...Le,
|
|
7552
7553
|
// item属性
|
|
7553
7554
|
...ze,
|
|
7554
7555
|
// input属性
|
|
7555
|
-
...
|
|
7556
|
+
...ua
|
|
7556
7557
|
},
|
|
7557
7558
|
// 事件
|
|
7558
7559
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "select", "setValue"],
|
|
@@ -7590,7 +7591,7 @@ function Yc(e, t, l) {
|
|
|
7590
7591
|
}, 0);
|
|
7591
7592
|
let N = D.target.value;
|
|
7592
7593
|
n.maxLength && N.length > Number(n.maxLength) && (N = N.slice(0, Number(n.maxLength))), s("blur", N, D);
|
|
7593
|
-
},
|
|
7594
|
+
}, M = () => {
|
|
7594
7595
|
s("clear", "");
|
|
7595
7596
|
}, R = j();
|
|
7596
7597
|
return He({
|
|
@@ -7607,7 +7608,7 @@ function Yc(e, t, l) {
|
|
|
7607
7608
|
R?.value.select();
|
|
7608
7609
|
}
|
|
7609
7610
|
}), () => {
|
|
7610
|
-
const
|
|
7611
|
+
const L = {
|
|
7611
7612
|
...a.attrs,
|
|
7612
7613
|
ref: R,
|
|
7613
7614
|
class: I.value,
|
|
@@ -7616,7 +7617,7 @@ function Yc(e, t, l) {
|
|
|
7616
7617
|
disabled: o.value,
|
|
7617
7618
|
readonly: r.value,
|
|
7618
7619
|
modelValue: f.value,
|
|
7619
|
-
onClear:
|
|
7620
|
+
onClear: M,
|
|
7620
7621
|
onChange: d,
|
|
7621
7622
|
onInput: g,
|
|
7622
7623
|
onFocus: T,
|
|
@@ -7624,14 +7625,14 @@ function Yc(e, t, l) {
|
|
|
7624
7625
|
onSelect: h
|
|
7625
7626
|
}, N = {};
|
|
7626
7627
|
a.slots.prepend && (N.prepend = a.slots.prepend), a.slots.append && (N.append = a.slots.append), a.slots.prefix && (N.prefix = a.slots.prefix), a.slots.suffix && (N.suffix = a.slots.suffix), a.slots.option && (N.default = a.slots.option);
|
|
7627
|
-
const C = [], w = A(qa,
|
|
7628
|
+
const C = [], w = A(qa, L, N);
|
|
7628
7629
|
C.push(w);
|
|
7629
7630
|
const B = {
|
|
7630
7631
|
default: () => C
|
|
7631
7632
|
};
|
|
7632
7633
|
a.slots.default && (B.label = a.slots.default), a.slots.fixedTip && (B.fixedTip = a.slots.fixedTip);
|
|
7633
7634
|
const E = {
|
|
7634
|
-
...Ue(n,
|
|
7635
|
+
...Ue(n, ua),
|
|
7635
7636
|
hintText: x.value,
|
|
7636
7637
|
hintVisible: p.value,
|
|
7637
7638
|
prop: `${n.prop}_item`
|
|
@@ -7816,7 +7817,7 @@ function tf(e, t) {
|
|
|
7816
7817
|
}
|
|
7817
7818
|
};
|
|
7818
7819
|
}
|
|
7819
|
-
const { componentName: Im, create: nf, scope: Fm } = ue("mapping"),
|
|
7820
|
+
const { componentName: Im, create: nf, scope: Fm } = ue("mapping"), pl = nf(tf());
|
|
7820
7821
|
function lf(e, t) {
|
|
7821
7822
|
let l = t.split("."), n = e;
|
|
7822
7823
|
for (let a = 0; a < l.length; a++) {
|
|
@@ -7850,18 +7851,18 @@ function af(e, t) {
|
|
|
7850
7851
|
const o = {
|
|
7851
7852
|
default: (r) => {
|
|
7852
7853
|
const s = lf(r.row, r.column.property);
|
|
7853
|
-
return a.default ? A(
|
|
7854
|
+
return a.default ? A(pl, { ...l, modelValue: s }, { default: a.default }) : A(pl, { ...l, modelValue: s });
|
|
7854
7855
|
}
|
|
7855
7856
|
};
|
|
7856
7857
|
for (let r in a)
|
|
7857
7858
|
r !== "default" && (o[r] = a[r]);
|
|
7858
|
-
return A(
|
|
7859
|
+
return A(wl, { ...n }, o);
|
|
7859
7860
|
};
|
|
7860
7861
|
}
|
|
7861
7862
|
};
|
|
7862
7863
|
}
|
|
7863
7864
|
const { componentName: Dm, create: of, scope: Om } = ue("table-mapping-column"), rf = of(af()), sf = Symbol.for("TableStateKey");
|
|
7864
|
-
function
|
|
7865
|
+
function ca(e, t) {
|
|
7865
7866
|
let l = t.split("."), n = e;
|
|
7866
7867
|
for (let a = 0; a < l.length; a++) {
|
|
7867
7868
|
let o = l[a], r = 0, s = o.indexOf("["), i = s == -1 ? -1 : o.indexOf("]", s);
|
|
@@ -7892,7 +7893,7 @@ function uf(e, t) {
|
|
|
7892
7893
|
return () => {
|
|
7893
7894
|
const o = a.currentRow ? a.currentRow.value : null, r = {
|
|
7894
7895
|
default: (s) => {
|
|
7895
|
-
const i =
|
|
7896
|
+
const i = ca(s.row, s.column.property), u = o ? ca(o, s.column.property) : null, c = i === u, m = A("span", {
|
|
7896
7897
|
class: {
|
|
7897
7898
|
"el-radio__input": !0,
|
|
7898
7899
|
"is-checked": c
|
|
@@ -7906,7 +7907,7 @@ function uf(e, t) {
|
|
|
7906
7907
|
}, [m]);
|
|
7907
7908
|
}
|
|
7908
7909
|
};
|
|
7909
|
-
return A(
|
|
7910
|
+
return A(wl, { ...n }, r);
|
|
7910
7911
|
};
|
|
7911
7912
|
}
|
|
7912
7913
|
};
|
|
@@ -7927,7 +7928,7 @@ const { componentName: Pm, create: cf, scope: Am } = ue("table-radio-column"), f
|
|
|
7927
7928
|
function mf(e, t) {
|
|
7928
7929
|
return se(), he("svg", hf, vf);
|
|
7929
7930
|
}
|
|
7930
|
-
const pf = /* @__PURE__ */ ot(df, [["render", mf]]), { componentName: Vm, create: yf, scope:
|
|
7931
|
+
const pf = /* @__PURE__ */ ot(df, [["render", mf]]), { componentName: Vm, create: yf, scope: Lm } = ue("table-setting"), bf = {
|
|
7931
7932
|
// table ref
|
|
7932
7933
|
tableRef: {
|
|
7933
7934
|
type: Object
|
|
@@ -7997,7 +7998,7 @@ const pf = /* @__PURE__ */ ot(df, [["render", mf]]), { componentName: Vm, create
|
|
|
7997
7998
|
FoxPopover: Pn,
|
|
7998
7999
|
FoxCheckbox: Yt,
|
|
7999
8000
|
FoxCheckboxGroup: On,
|
|
8000
|
-
FoxButton:
|
|
8001
|
+
FoxButton: bl,
|
|
8001
8002
|
FoxIcon: Bt,
|
|
8002
8003
|
DragIcon: pf,
|
|
8003
8004
|
Download: ao,
|
|
@@ -8039,7 +8040,7 @@ const pf = /* @__PURE__ */ ot(df, [["render", mf]]), { componentName: Vm, create
|
|
|
8039
8040
|
a.value.forEach((_) => {
|
|
8040
8041
|
v && !(_.label === "" || _.type) && K.push(_.prop), _.visible = v;
|
|
8041
8042
|
}), p.value = !1, T.value = !1, s.value.length + o.value.length + r.value.length === K.length ? p.value = !0 : K.length > 0 && (T.value = !0), R.value = K, h();
|
|
8042
|
-
},
|
|
8043
|
+
}, M = () => {
|
|
8043
8044
|
d(n), h();
|
|
8044
8045
|
}, R = j([]), D = (v) => {
|
|
8045
8046
|
a.value.forEach((q) => {
|
|
@@ -8050,7 +8051,7 @@ const pf = /* @__PURE__ */ ot(df, [["render", mf]]), { componentName: Vm, create
|
|
|
8050
8051
|
}), p.value = !1, T.value = !1;
|
|
8051
8052
|
const K = s.value.length + o.value.length + r.value.length;
|
|
8052
8053
|
v.length === K ? p.value = !0 : v.length > 0 && (T.value = !0), h();
|
|
8053
|
-
},
|
|
8054
|
+
}, L = () => {
|
|
8054
8055
|
d();
|
|
8055
8056
|
};
|
|
8056
8057
|
Ne(() => {
|
|
@@ -8123,10 +8124,10 @@ const pf = /* @__PURE__ */ ot(df, [["render", mf]]), { componentName: Vm, create
|
|
|
8123
8124
|
isCheckAll: p,
|
|
8124
8125
|
isIndeterminate: T,
|
|
8125
8126
|
handleCheckAllChange: H,
|
|
8126
|
-
handleReset:
|
|
8127
|
+
handleReset: M,
|
|
8127
8128
|
checkedValue: R,
|
|
8128
8129
|
handleCheckChange: D,
|
|
8129
|
-
onShow:
|
|
8130
|
+
onShow: L,
|
|
8130
8131
|
onDragStart: w,
|
|
8131
8132
|
onDragEnd: B,
|
|
8132
8133
|
onDragOver: $,
|
|
@@ -8196,10 +8197,10 @@ const pf = /* @__PURE__ */ ot(df, [["render", mf]]), { componentName: Vm, create
|
|
|
8196
8197
|
}, Vf = {
|
|
8197
8198
|
key: 0,
|
|
8198
8199
|
class: "fox-table-setting__body-title"
|
|
8199
|
-
},
|
|
8200
|
+
}, Lf = ["data-index", "draggable"], Mf = ["onMouseover", "onMouseleave"], Rf = { class: "tools-item" };
|
|
8200
8201
|
function _f(e, t, l, n, a, o) {
|
|
8201
8202
|
const r = Te("FoxCheckbox"), s = Te("FoxButton"), i = Te("DragIcon"), u = Te("RefreshLeft"), c = Te("FoxIcon"), f = Te("Download"), m = Te("fox-checkbox"), I = Te("FoxCheckboxGroup"), g = Te("FoxPopover");
|
|
8202
|
-
return se(), Ie(g,
|
|
8203
|
+
return se(), Ie(g, yl(e.attrs, {
|
|
8203
8204
|
placement: e.popoverPlacement,
|
|
8204
8205
|
width: e.popoverWidth,
|
|
8205
8206
|
onShow: e.onShow,
|
|
@@ -8219,7 +8220,7 @@ function _f(e, t, l, n, a, o) {
|
|
|
8219
8220
|
onChange: e.handleCheckAllChange
|
|
8220
8221
|
}, {
|
|
8221
8222
|
default: ve(() => [
|
|
8222
|
-
|
|
8223
|
+
Mt(Ce(e.title), 1)
|
|
8223
8224
|
]),
|
|
8224
8225
|
_: 1
|
|
8225
8226
|
}, 8, ["modelValue", "indeterminate", "onChange"]),
|
|
@@ -8229,7 +8230,7 @@ function _f(e, t, l, n, a, o) {
|
|
|
8229
8230
|
type: "primary"
|
|
8230
8231
|
}, {
|
|
8231
8232
|
default: ve(() => [
|
|
8232
|
-
|
|
8233
|
+
Mt(Ce(e.resetText), 1)
|
|
8233
8234
|
]),
|
|
8234
8235
|
_: 1
|
|
8235
8236
|
}, 8, ["onClick"])
|
|
@@ -8243,7 +8244,7 @@ function _f(e, t, l, n, a, o) {
|
|
|
8243
8244
|
default: ve(() => [
|
|
8244
8245
|
e.leftFixedColumns.length > 0 ? (se(), he("div", Tf, [
|
|
8245
8246
|
e.isShowLeftFixedTitle ? (se(), he("div", Cf, Ce(e.leftFixedTitle), 1)) : be("", !0),
|
|
8246
|
-
(se(!0), he(
|
|
8247
|
+
(se(!0), he(Lt, null, sn(e.leftFixedColumns, (d) => (se(), he("div", {
|
|
8247
8248
|
key: d.prop,
|
|
8248
8249
|
class: "fox-table-setting__body-row",
|
|
8249
8250
|
"data-role": "row",
|
|
@@ -8300,7 +8301,7 @@ function _f(e, t, l, n, a, o) {
|
|
|
8300
8301
|
])) : be("", !0),
|
|
8301
8302
|
e.unFixedColumns.length > 0 ? (se(), he("div", If, [
|
|
8302
8303
|
e.isShowNotFixedTitle ? (se(), he("div", Ff, Ce(e.unFixedTitle), 1)) : be("", !0),
|
|
8303
|
-
(se(!0), he(
|
|
8304
|
+
(se(!0), he(Lt, null, sn(e.unFixedColumns, (d) => (se(), he("div", {
|
|
8304
8305
|
key: d.prop,
|
|
8305
8306
|
class: "fox-table-setting__body-row",
|
|
8306
8307
|
"data-role": "row",
|
|
@@ -8358,7 +8359,7 @@ function _f(e, t, l, n, a, o) {
|
|
|
8358
8359
|
])) : be("", !0),
|
|
8359
8360
|
e.rightFixedColumns.length > 0 ? (se(), he("div", Af, [
|
|
8360
8361
|
e.isShowRightFixedTitle ? (se(), he("div", Vf, Ce(e.rightFixedTitle), 1)) : be("", !0),
|
|
8361
|
-
(se(!0), he(
|
|
8362
|
+
(se(!0), he(Lt, null, sn(e.rightFixedColumns, (d) => (se(), he("div", {
|
|
8362
8363
|
key: d.prop,
|
|
8363
8364
|
class: "fox-table-setting__body-row",
|
|
8364
8365
|
"data-role": "row",
|
|
@@ -8385,7 +8386,7 @@ function _f(e, t, l, n, a, o) {
|
|
|
8385
8386
|
onMouseleave: (h) => e.onMouseLeaveForOverflowText(h, d.prop),
|
|
8386
8387
|
class: "checkbox-item__label",
|
|
8387
8388
|
style: Fe(e.checkboxLabelStyle)
|
|
8388
|
-
}, Ce(d.label), 45,
|
|
8389
|
+
}, Ce(d.label), 45, Mf)
|
|
8389
8390
|
]),
|
|
8390
8391
|
_: 2
|
|
8391
8392
|
}, 1032, ["label"]),
|
|
@@ -8412,7 +8413,7 @@ function _f(e, t, l, n, a, o) {
|
|
|
8412
8413
|
_: 2
|
|
8413
8414
|
}, 1032, ["onClick"])
|
|
8414
8415
|
])
|
|
8415
|
-
], 40,
|
|
8416
|
+
], 40, Lf))), 128))
|
|
8416
8417
|
])) : be("", !0)
|
|
8417
8418
|
]),
|
|
8418
8419
|
_: 1
|
|
@@ -8507,7 +8508,7 @@ function zo() {
|
|
|
8507
8508
|
const e = Re();
|
|
8508
8509
|
return new Hf(e.proxy);
|
|
8509
8510
|
}
|
|
8510
|
-
const zf = Symbol.for("TableStateKey"),
|
|
8511
|
+
const zf = Symbol.for("TableStateKey"), fa = {
|
|
8511
8512
|
// model value
|
|
8512
8513
|
data: {
|
|
8513
8514
|
type: [String, Array, Function],
|
|
@@ -8565,7 +8566,7 @@ const zf = Symbol.for("TableStateKey"), da = {
|
|
|
8565
8566
|
required: !1,
|
|
8566
8567
|
default: () => "right"
|
|
8567
8568
|
}
|
|
8568
|
-
},
|
|
8569
|
+
}, da = {
|
|
8569
8570
|
// page size
|
|
8570
8571
|
pageIndex: {
|
|
8571
8572
|
type: [Number],
|
|
@@ -8734,13 +8735,13 @@ function Wf(e, t, l) {
|
|
|
8734
8735
|
// 属性
|
|
8735
8736
|
props: {
|
|
8736
8737
|
// item属性(domain范围)
|
|
8737
|
-
...
|
|
8738
|
+
...Le,
|
|
8738
8739
|
// item属性
|
|
8739
8740
|
...ze,
|
|
8740
8741
|
// table属性
|
|
8741
|
-
...
|
|
8742
|
+
...fa,
|
|
8742
8743
|
// pagination属性
|
|
8743
|
-
...
|
|
8744
|
+
...da,
|
|
8744
8745
|
// setting属性
|
|
8745
8746
|
...Jn,
|
|
8746
8747
|
// 滚动加载属性
|
|
@@ -8797,7 +8798,7 @@ function Wf(e, t, l) {
|
|
|
8797
8798
|
p() && fe(
|
|
8798
8799
|
[() => n.data, g],
|
|
8799
8800
|
async ([Z, le], [oe, ie]) => {
|
|
8800
|
-
p() && (Z !== oe && (N = !0), !(!Array.isArray(Z) && Ct(Z, oe) && Ct(le, ie)) && (x ? (d.value = 0,
|
|
8801
|
+
p() && (Z !== oe && (N = !0), !(!Array.isArray(Z) && Ct(Z, oe) && Ct(le, ie)) && (x ? (d.value = 0, M.value = !0, D.value = [], $()) : d.value === 1 ? w(Z, d.value, h.value, le) : d.value = 1));
|
|
8801
8802
|
},
|
|
8802
8803
|
{ deep: !0 }
|
|
8803
8804
|
);
|
|
@@ -8805,7 +8806,7 @@ function Wf(e, t, l) {
|
|
|
8805
8806
|
d.value = Z, r("page-index-change", Z);
|
|
8806
8807
|
}, H = (Z) => {
|
|
8807
8808
|
h.value = Z, r("page-size-change", Z);
|
|
8808
|
-
},
|
|
8809
|
+
}, M = j(!0), R = j(0), D = j(), L = Bf();
|
|
8809
8810
|
let N = !0;
|
|
8810
8811
|
const C = Ze(
|
|
8811
8812
|
b(() => n.appearLoad),
|
|
@@ -8816,14 +8817,14 @@ function Wf(e, t, l) {
|
|
|
8816
8817
|
N = !1;
|
|
8817
8818
|
try {
|
|
8818
8819
|
if (Ke === !0) {
|
|
8819
|
-
if (!
|
|
8820
|
+
if (!M.value)
|
|
8820
8821
|
return !1;
|
|
8821
|
-
const Ee = await
|
|
8822
|
+
const Ee = await L.load("table", Z, le, oe, ie, N, o.value);
|
|
8822
8823
|
return R.value = Ee.totalSize, !Ee.page || !Array.isArray(Ee.page) || (Reflect.apply([].push, D.value, Ee.page), setTimeout(() => {
|
|
8823
8824
|
r("loaded-data");
|
|
8824
|
-
}, 250), (D.value?.length ?? 0) >= R.value) || Ee.page.length < oe ? (
|
|
8825
|
+
}, 250), (D.value?.length ?? 0) >= R.value) || Ee.page.length < oe ? (M.value = !1, !1) : !0;
|
|
8825
8826
|
} else {
|
|
8826
|
-
const Ee = await
|
|
8827
|
+
const Ee = await L.load("table", Z, le, oe, ie, N, o.value);
|
|
8827
8828
|
return R.value = Ee.totalSize, D.value = Ee.page ?? [], setTimeout(() => {
|
|
8828
8829
|
r("loaded-data");
|
|
8829
8830
|
}, 250), !0;
|
|
@@ -8836,16 +8837,16 @@ function Wf(e, t, l) {
|
|
|
8836
8837
|
let B = !1;
|
|
8837
8838
|
const $ = async () => {
|
|
8838
8839
|
if (!B) {
|
|
8839
|
-
if (B = !0, !
|
|
8840
|
+
if (B = !0, !M.value) {
|
|
8840
8841
|
B = !1;
|
|
8841
8842
|
return;
|
|
8842
8843
|
}
|
|
8843
8844
|
d.value += 1, await w(n.data, d.value, h.value, g.value, !0), B = !1;
|
|
8844
8845
|
}
|
|
8845
8846
|
}, E = (Z = {}, le = !1) => new Promise(async (oe) => {
|
|
8846
|
-
I.value = { ...xe(Z ?? {}) }, le || (d.value = n.pageIndex ?? 1), x === !0 ? (d.value = 0, D.value = [],
|
|
8847
|
+
I.value = { ...xe(Z ?? {}) }, le || (d.value = n.pageIndex ?? 1), x === !0 ? (d.value = 0, D.value = [], M.value = !0, await $()) : await w(n.data, d.value, h.value, g.value), oe();
|
|
8847
8848
|
}), O = () => {
|
|
8848
|
-
R.value = 0, D.value = [], x === !0 && (d.value = 0,
|
|
8849
|
+
R.value = 0, D.value = [], x === !0 && (d.value = 0, M.value = !0);
|
|
8849
8850
|
};
|
|
8850
8851
|
let G = !1;
|
|
8851
8852
|
const Y = () => {
|
|
@@ -9096,7 +9097,7 @@ function Wf(e, t, l) {
|
|
|
9096
9097
|
}, oe = {};
|
|
9097
9098
|
if (a.slots.default && (oe.default = () => W.value), a.slots.append && (oe.append = a.slots.append), a.slots.empty && (oe.empty = a.slots.empty), x === !0) {
|
|
9098
9099
|
const rt = [];
|
|
9099
|
-
if (
|
|
9100
|
+
if (M.value) {
|
|
9100
9101
|
const Jt = A(As, { class: `${i}__infinite-icon` });
|
|
9101
9102
|
rt.push(Jt);
|
|
9102
9103
|
const Kn = A("span", { class: `${i}__infinite-text` }, [n.loadText]);
|
|
@@ -9148,7 +9149,7 @@ function Wf(e, t, l) {
|
|
|
9148
9149
|
}
|
|
9149
9150
|
const Ee = {
|
|
9150
9151
|
default: () => Ke
|
|
9151
|
-
}, Qt = { ...Ue(n,
|
|
9152
|
+
}, Qt = { ...Ue(n, fa, da, Jn), prop: `${n.prop}_item` };
|
|
9152
9153
|
return Qt.contentClass = `${i}__wrap`, Qt.errorMarkClass = "is-table-error", C.value && p() && (Qt["appear-listen"] = !0, Qt.onAppear = Y), A(l, Qt, Ee);
|
|
9153
9154
|
};
|
|
9154
9155
|
}
|
|
@@ -9235,7 +9236,7 @@ function td(e) {
|
|
|
9235
9236
|
function nd(e, t, l) {
|
|
9236
9237
|
return typeof e.itemOptions == "function" ? e.itemOptions(t, l) : e.itemOptions;
|
|
9237
9238
|
}
|
|
9238
|
-
const
|
|
9239
|
+
const ha = {
|
|
9239
9240
|
// model value
|
|
9240
9241
|
modelValue: {
|
|
9241
9242
|
type: [String, Object, Boolean, Number],
|
|
@@ -9323,9 +9324,9 @@ function ld(e, t, l) {
|
|
|
9323
9324
|
inheritAttrs: !0,
|
|
9324
9325
|
// 属性
|
|
9325
9326
|
props: {
|
|
9326
|
-
...
|
|
9327
|
+
...Le,
|
|
9327
9328
|
...ze,
|
|
9328
|
-
...
|
|
9329
|
+
...ha
|
|
9329
9330
|
},
|
|
9330
9331
|
// 事件
|
|
9331
9332
|
emits: ["change", "update:modelValue", "setValue"],
|
|
@@ -9348,8 +9349,8 @@ function ld(e, t, l) {
|
|
|
9348
9349
|
}
|
|
9349
9350
|
},
|
|
9350
9351
|
n.prop ?? a.attrs.name
|
|
9351
|
-
), i = j(null), u = j(null), c = (D,
|
|
9352
|
-
const w = ed(n, D,
|
|
9352
|
+
), i = j(null), u = j(null), c = (D, L, N, C = !0) => {
|
|
9353
|
+
const w = ed(n, D, L, N);
|
|
9353
9354
|
if (w === null) {
|
|
9354
9355
|
if (u.value === null)
|
|
9355
9356
|
return;
|
|
@@ -9368,9 +9369,9 @@ function ld(e, t, l) {
|
|
|
9368
9369
|
"appearLoad",
|
|
9369
9370
|
lt.Near,
|
|
9370
9371
|
(D) => de(D)
|
|
9371
|
-
), I = Jf(), g = async (D,
|
|
9372
|
+
), I = Jf(), g = async (D, L) => {
|
|
9372
9373
|
if (D) {
|
|
9373
|
-
const N = await I.load("radio", D,
|
|
9374
|
+
const N = await I.load("radio", D, L);
|
|
9374
9375
|
if (N.length > 0)
|
|
9375
9376
|
if (typeof N[0] == "string") {
|
|
9376
9377
|
let B = N.map(($) => td($));
|
|
@@ -9381,8 +9382,8 @@ function ld(e, t, l) {
|
|
|
9381
9382
|
};
|
|
9382
9383
|
fe(
|
|
9383
9384
|
[() => n.source, () => n.params],
|
|
9384
|
-
async ([D,
|
|
9385
|
-
g(D,
|
|
9385
|
+
async ([D, L]) => {
|
|
9386
|
+
g(D, L);
|
|
9386
9387
|
},
|
|
9387
9388
|
{ immediate: !m.value }
|
|
9388
9389
|
);
|
|
@@ -9390,8 +9391,8 @@ function ld(e, t, l) {
|
|
|
9390
9391
|
const h = () => {
|
|
9391
9392
|
d || (d = !0, g(n.source, n.params));
|
|
9392
9393
|
};
|
|
9393
|
-
fe([() => f.value, () => n.modelValue], ([D,
|
|
9394
|
-
c(
|
|
9394
|
+
fe([() => f.value, () => n.modelValue], ([D, L]) => {
|
|
9395
|
+
c(L, n.valueType, D, !1), s("setValue", L);
|
|
9395
9396
|
});
|
|
9396
9397
|
const x = e, p = b(() => ({
|
|
9397
9398
|
[x]: !0,
|
|
@@ -9399,8 +9400,8 @@ function ld(e, t, l) {
|
|
|
9399
9400
|
})), T = (D) => {
|
|
9400
9401
|
c(D, "value", f.value, !0);
|
|
9401
9402
|
};
|
|
9402
|
-
let H = Se(n, "hintText"),
|
|
9403
|
-
const R = (D,
|
|
9403
|
+
let H = Se(n, "hintText"), M = Se(n, "hintVisible");
|
|
9404
|
+
const R = (D, L) => {
|
|
9404
9405
|
const N = [];
|
|
9405
9406
|
return D.forEach((C, w) => {
|
|
9406
9407
|
const B = gn(n, C), $ = Xt(n, C);
|
|
@@ -9413,11 +9414,11 @@ function ld(e, t, l) {
|
|
|
9413
9414
|
size: n.size,
|
|
9414
9415
|
border: de(n.border)
|
|
9415
9416
|
};
|
|
9416
|
-
E && (Y.disabled = E), n.itemType === "button" ? N.push(A(Ya, Y, { default: () => [$] })) : typeof
|
|
9417
|
+
E && (Y.disabled = E), n.itemType === "button" ? N.push(A(Ya, Y, { default: () => [$] })) : typeof L == "function" ? N.push(A(ol, Y, { default: () => L(C) })) : N.push(A(ol, Y, { default: () => [$] }));
|
|
9417
9418
|
}), N;
|
|
9418
9419
|
};
|
|
9419
9420
|
return () => {
|
|
9420
|
-
const
|
|
9421
|
+
const L = {
|
|
9421
9422
|
...ht(a.attrs),
|
|
9422
9423
|
class: p.value,
|
|
9423
9424
|
disabled: o.value || r.value,
|
|
@@ -9427,16 +9428,16 @@ function ld(e, t, l) {
|
|
|
9427
9428
|
onChange: T
|
|
9428
9429
|
}, N = [], C = {};
|
|
9429
9430
|
a.slots.options ? C.default = a.slots.options : C.default = () => R(f.value, a.slots.text);
|
|
9430
|
-
const w = A(Ga,
|
|
9431
|
+
const w = A(Ga, L, C);
|
|
9431
9432
|
N.push(w);
|
|
9432
9433
|
const B = {
|
|
9433
9434
|
default: () => N
|
|
9434
9435
|
};
|
|
9435
9436
|
a.slots.default && (B.label = a.slots.default), a.slots.fixedTip && (B.fixedTip = a.slots.fixedTip);
|
|
9436
9437
|
const E = {
|
|
9437
|
-
...Ue(n,
|
|
9438
|
+
...Ue(n, ha),
|
|
9438
9439
|
hintText: H.value,
|
|
9439
|
-
hintVisible:
|
|
9440
|
+
hintVisible: M.value,
|
|
9440
9441
|
prop: `${n.prop ?? a.attrs.name}_item`
|
|
9441
9442
|
};
|
|
9442
9443
|
return m.value && (E["appear-listen"] = !0, E.onAppear = h), A(l, E, B);
|
|
@@ -9527,7 +9528,7 @@ function dd(e) {
|
|
|
9527
9528
|
function hd(e, t, l) {
|
|
9528
9529
|
return typeof e.itemOptions == "function" ? e.itemOptions(t, l) : e.itemOptions;
|
|
9529
9530
|
}
|
|
9530
|
-
const
|
|
9531
|
+
const ga = {
|
|
9531
9532
|
// model value
|
|
9532
9533
|
modelValue: {
|
|
9533
9534
|
type: [Array, String],
|
|
@@ -9625,9 +9626,9 @@ function gd(e, t, l) {
|
|
|
9625
9626
|
inheritAttrs: !0,
|
|
9626
9627
|
// 属性
|
|
9627
9628
|
props: {
|
|
9628
|
-
...
|
|
9629
|
+
...Le,
|
|
9629
9630
|
...ze,
|
|
9630
|
-
...
|
|
9631
|
+
...ga
|
|
9631
9632
|
},
|
|
9632
9633
|
// 事件
|
|
9633
9634
|
emits: ["change", "update:modelValue", "setValue"],
|
|
@@ -9650,8 +9651,8 @@ function gd(e, t, l) {
|
|
|
9650
9651
|
}
|
|
9651
9652
|
},
|
|
9652
9653
|
n.prop ?? a.attrs.name
|
|
9653
|
-
), i = j([]), u = j([]), c = (D,
|
|
9654
|
-
const w = fd(n, D,
|
|
9654
|
+
), i = j([]), u = j([]), c = (D, L, N, C = !0) => {
|
|
9655
|
+
const w = fd(n, D, L, N);
|
|
9655
9656
|
if (w === null) {
|
|
9656
9657
|
if (u.value === null || u.value.length === 0)
|
|
9657
9658
|
return;
|
|
@@ -9683,9 +9684,9 @@ function gd(e, t, l) {
|
|
|
9683
9684
|
"appearLoad",
|
|
9684
9685
|
lt.Near,
|
|
9685
9686
|
(D) => de(D)
|
|
9686
|
-
), I = cd(), g = async (D,
|
|
9687
|
+
), I = cd(), g = async (D, L) => {
|
|
9687
9688
|
if (D) {
|
|
9688
|
-
const N = await I.load("checkbox", D,
|
|
9689
|
+
const N = await I.load("checkbox", D, L);
|
|
9689
9690
|
if (N.length > 0)
|
|
9690
9691
|
if (typeof N[0] == "string") {
|
|
9691
9692
|
let B = N.map(($) => dd($));
|
|
@@ -9696,8 +9697,8 @@ function gd(e, t, l) {
|
|
|
9696
9697
|
};
|
|
9697
9698
|
fe(
|
|
9698
9699
|
[() => n.source, () => n.params],
|
|
9699
|
-
async ([D,
|
|
9700
|
-
g(D,
|
|
9700
|
+
async ([D, L]) => {
|
|
9701
|
+
g(D, L);
|
|
9701
9702
|
},
|
|
9702
9703
|
{ immediate: !m.value }
|
|
9703
9704
|
);
|
|
@@ -9705,8 +9706,8 @@ function gd(e, t, l) {
|
|
|
9705
9706
|
const h = () => {
|
|
9706
9707
|
d || (d = !0, g(n.source, n.params));
|
|
9707
9708
|
};
|
|
9708
|
-
fe([() => f.value, () => n.modelValue], ([D,
|
|
9709
|
-
c(
|
|
9709
|
+
fe([() => f.value, () => n.modelValue], ([D, L]) => {
|
|
9710
|
+
c(L, n.valueType, D, !1), s("setValue", L);
|
|
9710
9711
|
});
|
|
9711
9712
|
const x = e, p = b(() => ({
|
|
9712
9713
|
[x]: !0,
|
|
@@ -9714,8 +9715,8 @@ function gd(e, t, l) {
|
|
|
9714
9715
|
})), T = (D) => {
|
|
9715
9716
|
c(D, "value", f.value, !0);
|
|
9716
9717
|
};
|
|
9717
|
-
let H = Se(n, "hintText"),
|
|
9718
|
-
const R = (D,
|
|
9718
|
+
let H = Se(n, "hintText"), M = Se(n, "hintVisible");
|
|
9719
|
+
const R = (D, L) => {
|
|
9719
9720
|
const N = [];
|
|
9720
9721
|
return D.forEach((C, w) => {
|
|
9721
9722
|
const B = Wt(n, C), $ = Zt(n, C);
|
|
@@ -9729,32 +9730,32 @@ function gd(e, t, l) {
|
|
|
9729
9730
|
size: n.size,
|
|
9730
9731
|
border: de(n.border)
|
|
9731
9732
|
};
|
|
9732
|
-
E && (Y.disabled = E), n.itemType === "button" ? N.push(A(Ha, Y, { default: () => [$] })) : typeof
|
|
9733
|
+
E && (Y.disabled = E), n.itemType === "button" ? N.push(A(Ha, Y, { default: () => [$] })) : typeof L == "function" ? N.push(A(Yt, Y, { default: () => L(C) })) : N.push(A(Yt, Y, { default: () => [$] }));
|
|
9733
9734
|
}), N;
|
|
9734
9735
|
};
|
|
9735
9736
|
return () => {
|
|
9736
|
-
const
|
|
9737
|
+
const L = {
|
|
9737
9738
|
...ht(a.attrs),
|
|
9738
9739
|
class: p.value,
|
|
9739
9740
|
disabled: o.value || r.value,
|
|
9740
9741
|
modelValue: i.value,
|
|
9741
9742
|
"text-color": n.textColor,
|
|
9742
9743
|
fill: n.fill,
|
|
9743
|
-
max:
|
|
9744
|
-
min:
|
|
9744
|
+
max: Me(n.max),
|
|
9745
|
+
min: Me(n.min),
|
|
9745
9746
|
onChange: T
|
|
9746
9747
|
}, N = [], C = {};
|
|
9747
9748
|
a.slots.options ? C.default = a.slots.options : C.default = () => R(f.value, a.slots.text);
|
|
9748
|
-
const w = A(On,
|
|
9749
|
+
const w = A(On, L, C);
|
|
9749
9750
|
N.push(w);
|
|
9750
9751
|
const B = {
|
|
9751
9752
|
default: () => N
|
|
9752
9753
|
};
|
|
9753
9754
|
a.slots.default && (B.label = a.slots.default), a.slots.fixedTip && (B.fixedTip = a.slots.fixedTip);
|
|
9754
9755
|
const E = {
|
|
9755
|
-
...Ue(n,
|
|
9756
|
+
...Ue(n, ga),
|
|
9756
9757
|
hintText: H.value,
|
|
9757
|
-
hintVisible:
|
|
9758
|
+
hintVisible: M.value,
|
|
9758
9759
|
prop: `${n.prop ?? a.attrs.name}_item`
|
|
9759
9760
|
};
|
|
9760
9761
|
return m.value && (E["appear-listen"] = !0, E.onAppear = h), A(l, E, B);
|
|
@@ -9762,7 +9763,7 @@ function gd(e, t, l) {
|
|
|
9762
9763
|
}
|
|
9763
9764
|
};
|
|
9764
9765
|
}
|
|
9765
|
-
const { componentName: vd, create: md, scope: pd } = ue("checkbox-item"), yd = md(gd(vd, pd, je)),
|
|
9766
|
+
const { componentName: vd, create: md, scope: pd } = ue("checkbox-item"), yd = md(gd(vd, pd, je)), va = {
|
|
9766
9767
|
// model value
|
|
9767
9768
|
modelValue: {
|
|
9768
9769
|
type: [Number, String],
|
|
@@ -9774,11 +9775,11 @@ function bd(e, t, l) {
|
|
|
9774
9775
|
// 属性
|
|
9775
9776
|
props: {
|
|
9776
9777
|
// item属性(domain范围)
|
|
9777
|
-
...
|
|
9778
|
+
...Le,
|
|
9778
9779
|
// item属性
|
|
9779
9780
|
...ze,
|
|
9780
9781
|
// input属性
|
|
9781
|
-
...
|
|
9782
|
+
...va
|
|
9782
9783
|
},
|
|
9783
9784
|
// 事件
|
|
9784
9785
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "setValue"],
|
|
@@ -9804,7 +9805,7 @@ function bd(e, t, l) {
|
|
|
9804
9805
|
), i = Se(
|
|
9805
9806
|
n,
|
|
9806
9807
|
"modelValue",
|
|
9807
|
-
(d) =>
|
|
9808
|
+
(d) => Me(d),
|
|
9808
9809
|
s
|
|
9809
9810
|
), u = e, c = b(() => ({
|
|
9810
9811
|
[u]: !0
|
|
@@ -9828,7 +9829,7 @@ function bd(e, t, l) {
|
|
|
9828
9829
|
};
|
|
9829
9830
|
a.slots.default && (H.label = a.slots.default), a.slots.fixedTip && (H.fixedTip = a.slots.fixedTip);
|
|
9830
9831
|
const R = {
|
|
9831
|
-
...Ue(n,
|
|
9832
|
+
...Ue(n, va),
|
|
9832
9833
|
hintText: m.value,
|
|
9833
9834
|
hintVisible: I.value,
|
|
9834
9835
|
prop: `${n.prop}_item`
|
|
@@ -9838,7 +9839,7 @@ function bd(e, t, l) {
|
|
|
9838
9839
|
}
|
|
9839
9840
|
};
|
|
9840
9841
|
}
|
|
9841
|
-
const { componentName: xd, create: wd, scope: Sd } = ue("rate-item"), $d = wd(bd(xd, Sd, je)),
|
|
9842
|
+
const { componentName: xd, create: wd, scope: Sd } = ue("rate-item"), $d = wd(bd(xd, Sd, je)), ma = {
|
|
9842
9843
|
// model value
|
|
9843
9844
|
modelValue: {
|
|
9844
9845
|
type: [Boolean, String, Number],
|
|
@@ -9850,11 +9851,11 @@ function Td(e, t, l) {
|
|
|
9850
9851
|
// 属性
|
|
9851
9852
|
props: {
|
|
9852
9853
|
// item属性(domain范围)
|
|
9853
|
-
...
|
|
9854
|
+
...Le,
|
|
9854
9855
|
// item属性
|
|
9855
9856
|
...ze,
|
|
9856
9857
|
// input属性
|
|
9857
|
-
...
|
|
9858
|
+
...ma
|
|
9858
9859
|
},
|
|
9859
9860
|
// 事件
|
|
9860
9861
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "setValue"],
|
|
@@ -9900,7 +9901,7 @@ function Td(e, t, l) {
|
|
|
9900
9901
|
};
|
|
9901
9902
|
a.slots.default && (H.label = a.slots.default), a.slots.fixedTip && (H.fixedTip = a.slots.fixedTip);
|
|
9902
9903
|
const R = {
|
|
9903
|
-
...Ue(n,
|
|
9904
|
+
...Ue(n, ma),
|
|
9904
9905
|
hintText: m.value,
|
|
9905
9906
|
hintVisible: I.value,
|
|
9906
9907
|
prop: `${n.prop}_item`
|
|
@@ -9910,7 +9911,7 @@ function Td(e, t, l) {
|
|
|
9910
9911
|
}
|
|
9911
9912
|
};
|
|
9912
9913
|
}
|
|
9913
|
-
const { componentName: Cd, create: Nd, scope: Ed } = ue("switch-item"), kd = Nd(Td(Cd, Ed, je)),
|
|
9914
|
+
const { componentName: Cd, create: Nd, scope: Ed } = ue("switch-item"), kd = Nd(Td(Cd, Ed, je)), pa = {
|
|
9914
9915
|
// model value
|
|
9915
9916
|
modelValue: {
|
|
9916
9917
|
type: [String, Number, Boolean, Array],
|
|
@@ -9922,11 +9923,11 @@ function Id(e, t, l) {
|
|
|
9922
9923
|
// 属性
|
|
9923
9924
|
props: {
|
|
9924
9925
|
// item属性(domain范围)
|
|
9925
|
-
...
|
|
9926
|
+
...Le,
|
|
9926
9927
|
// item属性
|
|
9927
9928
|
...ze,
|
|
9928
9929
|
// input属性
|
|
9929
|
-
...
|
|
9930
|
+
...pa
|
|
9930
9931
|
},
|
|
9931
9932
|
// 事件
|
|
9932
9933
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "setValue"],
|
|
@@ -9947,23 +9948,23 @@ function Id(e, t, l) {
|
|
|
9947
9948
|
n.prop ?? a.attrs.name
|
|
9948
9949
|
), u = Se(n, "modelValue", null, i), c = e, f = b(() => ({
|
|
9949
9950
|
[c]: !0
|
|
9950
|
-
})), m = (
|
|
9951
|
-
i("update:modelValue",
|
|
9951
|
+
})), m = (M) => {
|
|
9952
|
+
i("update:modelValue", M), i("change", M);
|
|
9952
9953
|
};
|
|
9953
9954
|
let I = Se(n, "hintText"), g = j(!1);
|
|
9954
|
-
const d = (
|
|
9955
|
-
let D =
|
|
9956
|
-
s.value = !0, Oe(I.value) || (g.value = !0), i("focus", D,
|
|
9957
|
-
}, h = (
|
|
9955
|
+
const d = (M) => {
|
|
9956
|
+
let D = M.target.value;
|
|
9957
|
+
s.value = !0, Oe(I.value) || (g.value = !0), i("focus", D, M);
|
|
9958
|
+
}, h = (M) => {
|
|
9958
9959
|
setTimeout(() => {
|
|
9959
9960
|
g.value && (g.value = !1), s.value = !1;
|
|
9960
9961
|
}, 0);
|
|
9961
|
-
let D =
|
|
9962
|
-
n.maxLength && D.length > Number(n.maxLength) && (D = D.slice(0, Number(n.maxLength))), p.value || i("blur", D,
|
|
9962
|
+
let D = M.target.value;
|
|
9963
|
+
n.maxLength && D.length > Number(n.maxLength) && (D = D.slice(0, Number(n.maxLength))), p.value || i("blur", D, M);
|
|
9963
9964
|
}, x = () => {
|
|
9964
9965
|
i("clear", "");
|
|
9965
|
-
}, p = j(!1), T = (
|
|
9966
|
-
p.value =
|
|
9966
|
+
}, p = j(!1), T = (M) => {
|
|
9967
|
+
p.value = M, i("visible-change", M), M || i("selected");
|
|
9967
9968
|
}, H = j();
|
|
9968
9969
|
return He({
|
|
9969
9970
|
//使 input 获取焦点
|
|
@@ -9988,14 +9989,14 @@ function Id(e, t, l) {
|
|
|
9988
9989
|
onVisibleChange: T
|
|
9989
9990
|
}, D = {};
|
|
9990
9991
|
a.slots.option && (D.default = a.slots.option);
|
|
9991
|
-
const
|
|
9992
|
-
|
|
9992
|
+
const L = [], N = A(no, R, D);
|
|
9993
|
+
L.push(N);
|
|
9993
9994
|
const C = {
|
|
9994
|
-
default: () =>
|
|
9995
|
+
default: () => L
|
|
9995
9996
|
};
|
|
9996
9997
|
a.slots.default && (C.label = a.slots.default), a.slots.fixedTip && (C.fixedTip = a.slots.fixedTip);
|
|
9997
9998
|
const B = {
|
|
9998
|
-
...Ue(n,
|
|
9999
|
+
...Ue(n, pa),
|
|
9999
10000
|
hintText: I.value,
|
|
10000
10001
|
hintVisible: g.value,
|
|
10001
10002
|
prop: `${n.prop}_item`
|
|
@@ -10012,14 +10013,14 @@ const { componentName: Fd, create: Dd, scope: Od } = ue("tree-select-item"), Pd
|
|
|
10012
10013
|
version: "1.1",
|
|
10013
10014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10014
10015
|
"p-id": "721"
|
|
10015
|
-
},
|
|
10016
|
+
}, Ld = /* @__PURE__ */ ce("path", {
|
|
10016
10017
|
d: "M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z",
|
|
10017
10018
|
"p-id": "722"
|
|
10018
|
-
}, null, -1),
|
|
10019
|
-
|
|
10019
|
+
}, null, -1), Md = [
|
|
10020
|
+
Ld
|
|
10020
10021
|
];
|
|
10021
10022
|
function Rd(e, t) {
|
|
10022
|
-
return se(), he("svg", Vd,
|
|
10023
|
+
return se(), he("svg", Vd, Md);
|
|
10023
10024
|
}
|
|
10024
10025
|
const _d = /* @__PURE__ */ ot(Ad, [["render", Rd]]), { componentName: qm, create: qd, scope: Bm } = ue("group-setting"), Bd = {
|
|
10025
10026
|
// group prop
|
|
@@ -10077,7 +10078,7 @@ const _d = /* @__PURE__ */ ot(Ad, [["render", Rd]]), { componentName: qm, create
|
|
|
10077
10078
|
FoxPopover: Pn,
|
|
10078
10079
|
FoxCheckbox: Yt,
|
|
10079
10080
|
FoxCheckboxGroup: On,
|
|
10080
|
-
FoxButton:
|
|
10081
|
+
FoxButton: bl,
|
|
10081
10082
|
FoxIcon: Bt,
|
|
10082
10083
|
DragIcon: _d,
|
|
10083
10084
|
Download: ao,
|
|
@@ -10141,7 +10142,7 @@ const _d = /* @__PURE__ */ ot(Ad, [["render", Rd]]), { componentName: qm, create
|
|
|
10141
10142
|
});
|
|
10142
10143
|
}), o.value = v.sort((K, q) => K.sortIndex - q.sortIndex), i(), k && I(!1);
|
|
10143
10144
|
};
|
|
10144
|
-
a ? P(!0) :
|
|
10145
|
+
a ? P(!0) : kl(c, e.initDelay, 5, 50, !1, P);
|
|
10145
10146
|
}, m = () => {
|
|
10146
10147
|
const k = a ?? [];
|
|
10147
10148
|
o.value = k.map((y) => ({ ...y })), i(), I();
|
|
@@ -10163,7 +10164,7 @@ const _d = /* @__PURE__ */ ot(Ad, [["render", Rd]]), { componentName: qm, create
|
|
|
10163
10164
|
}), d.value = !1, h.value = !1;
|
|
10164
10165
|
const y = o.value.length;
|
|
10165
10166
|
k.length === y ? d.value = !0 : k.length > 0 && (h.value = !0), I();
|
|
10166
|
-
},
|
|
10167
|
+
}, M = () => {
|
|
10167
10168
|
f();
|
|
10168
10169
|
};
|
|
10169
10170
|
Ne(() => {
|
|
@@ -10172,7 +10173,7 @@ const _d = /* @__PURE__ */ ot(Ad, [["render", Rd]]), { componentName: qm, create
|
|
|
10172
10173
|
const R = {
|
|
10173
10174
|
currentRow: null,
|
|
10174
10175
|
index: null
|
|
10175
|
-
}, D = (k) => k ? k.dataset && k.dataset.role === "row" ? k : k.tagName.toLowerCase() !== "body" ? (k = k.parentElement, D(k)) : null : null,
|
|
10176
|
+
}, D = (k) => k ? k.dataset && k.dataset.role === "row" ? k : k.tagName.toLowerCase() !== "body" ? (k = k.parentElement, D(k)) : null : null, L = (k) => {
|
|
10176
10177
|
const y = k.currentTarget;
|
|
10177
10178
|
y && y.dataset && (R.index = y.dataset.index);
|
|
10178
10179
|
}, N = (k) => {
|
|
@@ -10229,8 +10230,8 @@ const _d = /* @__PURE__ */ ot(Ad, [["render", Rd]]), { componentName: qm, create
|
|
|
10229
10230
|
handleReset: p,
|
|
10230
10231
|
checkedValue: T,
|
|
10231
10232
|
handleCheckChange: H,
|
|
10232
|
-
onShow:
|
|
10233
|
-
onDragStart:
|
|
10233
|
+
onShow: M,
|
|
10234
|
+
onDragStart: L,
|
|
10234
10235
|
onDragEnd: N,
|
|
10235
10236
|
onDragOver: C,
|
|
10236
10237
|
onDragLeave: w,
|
|
@@ -10280,7 +10281,7 @@ const _d = /* @__PURE__ */ ot(Ad, [["render", Rd]]), { componentName: qm, create
|
|
|
10280
10281
|
}, Yd = ["data-index", "draggable"], Gd = ["onMouseover", "onMouseleave"], Ud = { class: "tools-item" };
|
|
10281
10282
|
function Xd(e, t, l, n, a, o) {
|
|
10282
10283
|
const r = Te("FoxCheckbox"), s = Te("FoxButton"), i = Te("DragIcon"), u = Te("Download"), c = Te("FoxIcon"), f = Te("FoxCheckboxGroup"), m = Te("FoxPopover");
|
|
10283
|
-
return se(), Ie(m,
|
|
10284
|
+
return se(), Ie(m, yl(e.attrs, {
|
|
10284
10285
|
placement: e.popoverPlacement,
|
|
10285
10286
|
width: e.popoverWidth,
|
|
10286
10287
|
onShow: e.onShow,
|
|
@@ -10300,7 +10301,7 @@ function Xd(e, t, l, n, a, o) {
|
|
|
10300
10301
|
onChange: e.handleCheckAllChange
|
|
10301
10302
|
}, {
|
|
10302
10303
|
default: ve(() => [
|
|
10303
|
-
|
|
10304
|
+
Mt(Ce(e.title), 1)
|
|
10304
10305
|
]),
|
|
10305
10306
|
_: 1
|
|
10306
10307
|
}, 8, ["modelValue", "indeterminate", "onChange"]),
|
|
@@ -10310,7 +10311,7 @@ function Xd(e, t, l, n, a, o) {
|
|
|
10310
10311
|
type: "primary"
|
|
10311
10312
|
}, {
|
|
10312
10313
|
default: ve(() => [
|
|
10313
|
-
|
|
10314
|
+
Mt(Ce(e.resetText), 1)
|
|
10314
10315
|
]),
|
|
10315
10316
|
_: 1
|
|
10316
10317
|
}, 8, ["onClick"])
|
|
@@ -10323,7 +10324,7 @@ function Xd(e, t, l, n, a, o) {
|
|
|
10323
10324
|
}, {
|
|
10324
10325
|
default: ve(() => [
|
|
10325
10326
|
ce("div", Wd, [
|
|
10326
|
-
(se(!0), he(
|
|
10327
|
+
(se(!0), he(Lt, null, sn(e.itemPropertyList, (I) => (se(), he("div", {
|
|
10327
10328
|
key: I.prop,
|
|
10328
10329
|
class: "fox-group-setting__body-row",
|
|
10329
10330
|
"data-role": "row",
|
|
@@ -10445,7 +10446,7 @@ var Qd = ["aria-labelledby"], Jd = /* @__PURE__ */ Rt({
|
|
|
10445
10446
|
"fill-opacity": "0.9"
|
|
10446
10447
|
}, null, -1)]], 14, Qd));
|
|
10447
10448
|
}
|
|
10448
|
-
}), eh = ["aria-labelledby"],
|
|
10449
|
+
}), eh = ["aria-labelledby"], Pl = /* @__PURE__ */ Rt({
|
|
10449
10450
|
__name: "Loading",
|
|
10450
10451
|
props: {
|
|
10451
10452
|
class: {
|
|
@@ -10772,13 +10773,13 @@ const sh = {
|
|
|
10772
10773
|
beforeChange: {
|
|
10773
10774
|
type: Function
|
|
10774
10775
|
}
|
|
10775
|
-
},
|
|
10776
|
+
}, ya = (e, t) => t[e.textKey], ln = (e, t) => t[e.valueKey], ih = (e, t) => t[e.visibleKey], ba = (e, t) => t[e.disabledKey], uh = (e, t) => {
|
|
10776
10777
|
const l = t[e.doitKey];
|
|
10777
10778
|
return de(l);
|
|
10778
10779
|
}, ch = (e, t) => {
|
|
10779
10780
|
const l = t[e.numKey];
|
|
10780
|
-
return l == null ? null :
|
|
10781
|
-
},
|
|
10781
|
+
return l == null ? null : Me(t[l]);
|
|
10782
|
+
}, xa = (e, t, l) => {
|
|
10782
10783
|
const n = e.itemOptions;
|
|
10783
10784
|
return typeof n == "function" ? n(t, l) : n || null;
|
|
10784
10785
|
};
|
|
@@ -10835,7 +10836,7 @@ function fh(e, t, l, n = !1) {
|
|
|
10835
10836
|
}, 0));
|
|
10836
10837
|
}, p = j(), T = j([]), H = (k, y) => {
|
|
10837
10838
|
T.value[y] = k;
|
|
10838
|
-
},
|
|
10839
|
+
}, M = (k) => (y) => {
|
|
10839
10840
|
H(y, k);
|
|
10840
10841
|
}, R = (k, y) => {
|
|
10841
10842
|
const P = p.value, F = T.value;
|
|
@@ -10851,9 +10852,9 @@ function fh(e, t, l, n = !1) {
|
|
|
10851
10852
|
F === "horizontal" ? k.scrollLeft += (y - K) / q : k.scrollTop += (y - K) / q, ++v < q && co(_);
|
|
10852
10853
|
}
|
|
10853
10854
|
_();
|
|
10854
|
-
},
|
|
10855
|
+
}, L = (k, y) => {
|
|
10855
10856
|
const P = ln(a, k), F = {};
|
|
10856
|
-
return F[`${e}__titles-item`] = !0, F.disabled =
|
|
10857
|
+
return F[`${e}__titles-item`] = !0, F.disabled = ba(a, k), F.active = P === f.value, a.shape && (F[`${a.shape}`] = !0), a.ellipsis && (F.ellipsis = !0), y && (y.class && (F[`${y.class}`] = !0), y.disabled === !0 && (F.disabled = y.disabled)), F;
|
|
10857
10858
|
}, N = (k, y) => {
|
|
10858
10859
|
const P = {};
|
|
10859
10860
|
if (c.value > 0) {
|
|
@@ -10863,8 +10864,8 @@ function fh(e, t, l, n = !1) {
|
|
|
10863
10864
|
return y && y.style && Object.assign(P, y.style), P;
|
|
10864
10865
|
}, C = (k, y) => `${ln(a, k) ?? y}`, w = (k, y) => {
|
|
10865
10866
|
const P = ln(a, k), F = {};
|
|
10866
|
-
F[`${e}__popup-item`] = !0, F.disabled =
|
|
10867
|
-
const v =
|
|
10867
|
+
F[`${e}__popup-item`] = !0, F.disabled = ba(a, k), F.active = P === f.value, a.shape && (F[`${a.shape}`] = !0);
|
|
10868
|
+
const v = xa(a, k, y);
|
|
10868
10869
|
return v && v.disabled === !0 && (F.disabled = v.disabled), F;
|
|
10869
10870
|
}, B = b(() => (a.data ?? []).filter((y) => ih(a, y) !== !1)), $ = (k, y) => {
|
|
10870
10871
|
const P = ln(a, k);
|
|
@@ -10908,7 +10909,7 @@ function fh(e, t, l, n = !1) {
|
|
|
10908
10909
|
item: k,
|
|
10909
10910
|
index: y
|
|
10910
10911
|
});
|
|
10911
|
-
const P =
|
|
10912
|
+
const P = xa(a, k, y), F = [];
|
|
10912
10913
|
if (o.text) {
|
|
10913
10914
|
const _ = o.text({
|
|
10914
10915
|
item: k,
|
|
@@ -10926,7 +10927,7 @@ function fh(e, t, l, n = !1) {
|
|
|
10926
10927
|
const V = P?.num ?? ch(a, k);
|
|
10927
10928
|
if (V) {
|
|
10928
10929
|
let J = "";
|
|
10929
|
-
const ne =
|
|
10930
|
+
const ne = Me(V);
|
|
10930
10931
|
ne >= 100 ? J = "99+" : J = `${ne}`;
|
|
10931
10932
|
const S = {
|
|
10932
10933
|
class: [`${e}__titles-item-tip`, "num"]
|
|
@@ -10936,7 +10937,7 @@ function fh(e, t, l, n = !1) {
|
|
|
10936
10937
|
const U = {
|
|
10937
10938
|
class: `${e}__titles-item-text`
|
|
10938
10939
|
};
|
|
10939
|
-
_.push(
|
|
10940
|
+
_.push(ya(a, k));
|
|
10940
10941
|
const z = A("view", U, _);
|
|
10941
10942
|
F.push(z);
|
|
10942
10943
|
}
|
|
@@ -10945,8 +10946,8 @@ function fh(e, t, l, n = !1) {
|
|
|
10945
10946
|
}, K = A("view", v);
|
|
10946
10947
|
F.push(K);
|
|
10947
10948
|
const q = {
|
|
10948
|
-
ref:
|
|
10949
|
-
class:
|
|
10949
|
+
ref: M(y),
|
|
10950
|
+
class: L(k, P),
|
|
10950
10951
|
style: N(k, P),
|
|
10951
10952
|
key: C(k, y),
|
|
10952
10953
|
onClick: E(k, y)
|
|
@@ -10978,7 +10979,7 @@ function fh(e, t, l, n = !1) {
|
|
|
10978
10979
|
for (let P = 0; P < B.value.length; P++) {
|
|
10979
10980
|
const F = B.value[P];
|
|
10980
10981
|
let v = null;
|
|
10981
|
-
o.popupItem ? v = o.popupItem({ item: F, index: P }) : v =
|
|
10982
|
+
o.popupItem ? v = o.popupItem({ item: F, index: P }) : v = ya(a, F);
|
|
10982
10983
|
const K = {
|
|
10983
10984
|
class: w(F, P),
|
|
10984
10985
|
key: C(F, P),
|
|
@@ -11086,7 +11087,7 @@ function ph(e, t, l = !1) {
|
|
|
11086
11087
|
if (!u.value)
|
|
11087
11088
|
return;
|
|
11088
11089
|
const d = () => {
|
|
11089
|
-
const h =
|
|
11090
|
+
const h = Dl(u.value);
|
|
11090
11091
|
s.tabWidth.value = h.width, s.tabHeight.value = h.height;
|
|
11091
11092
|
};
|
|
11092
11093
|
window.ResizeObserver && (g = new window.ResizeObserver(d), g.observe(u.value)), d();
|
|
@@ -11169,7 +11170,7 @@ function $h(e, t, l) {
|
|
|
11169
11170
|
}
|
|
11170
11171
|
};
|
|
11171
11172
|
}
|
|
11172
|
-
const { create: Th, componentName: Ch, scope: Nh } = ue("tabs-pane"), Eh = Th($h(Ch, Nh,
|
|
11173
|
+
const { create: Th, componentName: Ch, scope: Nh } = ue("tabs-pane"), Eh = Th($h(Ch, Nh, Pl)), kh = {
|
|
11173
11174
|
// 步骤栏方向
|
|
11174
11175
|
direction: {
|
|
11175
11176
|
type: [String],
|
|
@@ -11287,10 +11288,10 @@ const { create: Th, componentName: Ch, scope: Nh } = ue("tabs-pane"), Eh = Th($h
|
|
|
11287
11288
|
function Ih(e, t) {
|
|
11288
11289
|
return typeof e.textKey == "string" && e.textKey.length > 0 ? t[e.textKey] : t.text;
|
|
11289
11290
|
}
|
|
11290
|
-
function
|
|
11291
|
+
function wa(e, t) {
|
|
11291
11292
|
return typeof e.valueKey == "string" && e.valueKey.length > 0 ? t[e.valueKey] : t.value;
|
|
11292
11293
|
}
|
|
11293
|
-
function
|
|
11294
|
+
function Sa(e, t) {
|
|
11294
11295
|
return typeof e.disabledKey == "string" && e.disabledKey.length > 0 ? t[e.disabledKey] : t.disabled ?? null;
|
|
11295
11296
|
}
|
|
11296
11297
|
function Fh(e, t) {
|
|
@@ -11299,10 +11300,10 @@ function Fh(e, t) {
|
|
|
11299
11300
|
function tl(e, t) {
|
|
11300
11301
|
return typeof e.statusKey == "string" && e.statusKey.length > 0 ? t[e.statusKey] : t.statusKey ?? null;
|
|
11301
11302
|
}
|
|
11302
|
-
function
|
|
11303
|
+
function $a(e, t) {
|
|
11303
11304
|
return typeof e.doitKey == "string" && e.doitKey.length > 0 ? t[e.doitKey] : t.doitKey ?? null;
|
|
11304
11305
|
}
|
|
11305
|
-
function
|
|
11306
|
+
function Ta(e, t) {
|
|
11306
11307
|
return typeof e.labelKey == "string" && e.labelKey.length > 0 ? t[e.labelKey] : t.labelKey ?? null;
|
|
11307
11308
|
}
|
|
11308
11309
|
function nl(e, t, l) {
|
|
@@ -11351,7 +11352,7 @@ function Ph(e, t, l, n) {
|
|
|
11351
11352
|
// setup
|
|
11352
11353
|
setup(a, { slots: o, emit: r }) {
|
|
11353
11354
|
const s = e, i = Oh(), u = j([]), c = b(() => u.value.filter((y) => Fh(a, y) !== !1)), f = j(-1), m = () => {
|
|
11354
|
-
const y = a.modelValue, P = c.value.findIndex((F) =>
|
|
11355
|
+
const y = a.modelValue, P = c.value.findIndex((F) => wa(a, F) === y);
|
|
11355
11356
|
f.value !== P && (f.value = P, a.scroll && re(P, !1));
|
|
11356
11357
|
};
|
|
11357
11358
|
fe([() => a.modelValue, c], () => {
|
|
@@ -11389,12 +11390,12 @@ function Ph(e, t, l, n) {
|
|
|
11389
11390
|
g(P) && g(v) ? a.direction === "vertical" ? F.height = "100%" : F.width = "100%" : F.opacity = "0";
|
|
11390
11391
|
}
|
|
11391
11392
|
return F;
|
|
11392
|
-
},
|
|
11393
|
+
}, M = (y) => c.value.length - 1 === y, R = (y, P) => {
|
|
11393
11394
|
if (a.clickNavigatePolicy === "disabled" || (a.clickNavigatePolicy === "only-back" || a.clickNavigatePolicy === "only-back-reset") && P > f.value || f.value === P)
|
|
11394
11395
|
return;
|
|
11395
11396
|
const F = f.value, v = P;
|
|
11396
11397
|
f.value = P, a.scroll && re(P, !1);
|
|
11397
|
-
const K =
|
|
11398
|
+
const K = wa(a, y);
|
|
11398
11399
|
r("update:modelValue", K);
|
|
11399
11400
|
const q = {
|
|
11400
11401
|
fromIndex: F,
|
|
@@ -11404,7 +11405,7 @@ function Ph(e, t, l, n) {
|
|
|
11404
11405
|
clickNavigatePolicy: a.clickNavigatePolicy
|
|
11405
11406
|
};
|
|
11406
11407
|
r("change", K, q);
|
|
11407
|
-
}, D = j(!0),
|
|
11408
|
+
}, D = j(!0), L = async (y, P) => {
|
|
11408
11409
|
try {
|
|
11409
11410
|
const F = await i.load("stesbar", y, P);
|
|
11410
11411
|
Array.isArray(F) && (u.value = F), D.value = !1;
|
|
@@ -11418,7 +11419,7 @@ function Ph(e, t, l, n) {
|
|
|
11418
11419
|
fe(
|
|
11419
11420
|
[() => a.data, () => a.params],
|
|
11420
11421
|
async ([y, P]) => {
|
|
11421
|
-
y &&
|
|
11422
|
+
y && L(y, P);
|
|
11422
11423
|
},
|
|
11423
11424
|
{ immediate: !0 }
|
|
11424
11425
|
);
|
|
@@ -11457,7 +11458,7 @@ function Ph(e, t, l, n) {
|
|
|
11457
11458
|
return A("view", { class: "fox-steps-bar__mark" }, [y]);
|
|
11458
11459
|
}, B = (y, P, F, v, K) => {
|
|
11459
11460
|
const q = [];
|
|
11460
|
-
if (!
|
|
11461
|
+
if (!M(P)) {
|
|
11461
11462
|
const U = C(y, P);
|
|
11462
11463
|
q.push(U);
|
|
11463
11464
|
}
|
|
@@ -11480,17 +11481,17 @@ function Ph(e, t, l, n) {
|
|
|
11480
11481
|
}, [v])) : null;
|
|
11481
11482
|
}, O = (y, P) => {
|
|
11482
11483
|
const F = nl(a, y, P) ?? {}, v = F.status ?? tl(a, y);
|
|
11483
|
-
let K =
|
|
11484
|
+
let K = Sa(a, y);
|
|
11484
11485
|
F.disabled === !0 && (K = !0), a.disabled === !0 && (K = !0);
|
|
11485
|
-
const q = F.label ??
|
|
11486
|
+
const q = F.label ?? Ta(a, y), _ = [], V = N(y, P, q, v, K);
|
|
11486
11487
|
V && _.push(V);
|
|
11487
11488
|
const U = $(y, P, v, K);
|
|
11488
|
-
if (U && _.push(U), !
|
|
11489
|
+
if (U && _.push(U), !M(P)) {
|
|
11489
11490
|
const ee = C(y, P);
|
|
11490
11491
|
ee && _.push(ee);
|
|
11491
11492
|
}
|
|
11492
11493
|
const z = A("view", { class: "fox-steps-bar__head" }, _), J = F.class, ne = F.style ?? {};
|
|
11493
|
-
let S =
|
|
11494
|
+
let S = $a(a, y);
|
|
11494
11495
|
F.doit === !0 && (S = !0);
|
|
11495
11496
|
const W = {
|
|
11496
11497
|
ref: te(P),
|
|
@@ -11500,9 +11501,9 @@ function Ph(e, t, l, n) {
|
|
|
11500
11501
|
return A("view", W, [z]);
|
|
11501
11502
|
}, G = (y, P) => {
|
|
11502
11503
|
const F = nl(a, y, P) ?? {}, v = F.status ?? tl(a, y);
|
|
11503
|
-
let K =
|
|
11504
|
+
let K = Sa(a, y);
|
|
11504
11505
|
F.disabled === !0 && (K = !0), a.disabled === !0 && (K = !0);
|
|
11505
|
-
const q = F.label ??
|
|
11506
|
+
const q = F.label ?? Ta(a, y), _ = [], V = a.layout;
|
|
11506
11507
|
for (let S of V)
|
|
11507
11508
|
if (S === "head") {
|
|
11508
11509
|
const W = B(y, P, q, v, K);
|
|
@@ -11518,7 +11519,7 @@ function Ph(e, t, l, n) {
|
|
|
11518
11519
|
_.push(W);
|
|
11519
11520
|
}
|
|
11520
11521
|
const U = F.class, z = F.style ?? {};
|
|
11521
|
-
let J =
|
|
11522
|
+
let J = $a(a, y);
|
|
11522
11523
|
F.doit === !0 && (J = !0);
|
|
11523
11524
|
const ne = {
|
|
11524
11525
|
ref: te(P),
|
|
@@ -11567,7 +11568,7 @@ function Ph(e, t, l, n) {
|
|
|
11567
11568
|
}
|
|
11568
11569
|
};
|
|
11569
11570
|
}
|
|
11570
|
-
const { componentName: Ah, create: Vh, scope:
|
|
11571
|
+
const { componentName: Ah, create: Vh, scope: Lh } = ue("steps-bar"), Mh = Vh(Ph(Ah, Lh, ah, rh)), Rh = Symbol.for("InnerPageScopeKey"), _h = Symbol.for("PageWrapperKey");
|
|
11571
11572
|
function qh(e, t) {
|
|
11572
11573
|
return {
|
|
11573
11574
|
// 属性
|
|
@@ -11630,18 +11631,18 @@ function qh(e, t) {
|
|
|
11630
11631
|
}
|
|
11631
11632
|
const { componentName: Hm, create: Bh, scope: zm } = ue("dialog-item"), Hh = Bh(qh());
|
|
11632
11633
|
let an = 0;
|
|
11633
|
-
const
|
|
11634
|
+
const Ca = "fox-overflow-hidden", Na = () => Nt ? document.body : {
|
|
11634
11635
|
classList: []
|
|
11635
11636
|
}, zh = (e) => [() => {
|
|
11636
11637
|
if (e())
|
|
11637
11638
|
try {
|
|
11638
|
-
!an &&
|
|
11639
|
+
!an && Na().classList.add(Ca), an++;
|
|
11639
11640
|
} catch {
|
|
11640
11641
|
}
|
|
11641
11642
|
}, () => {
|
|
11642
11643
|
if (e() && an)
|
|
11643
11644
|
try {
|
|
11644
|
-
an--, !an &&
|
|
11645
|
+
an--, !an && Na().classList.remove(Ca);
|
|
11645
11646
|
} catch {
|
|
11646
11647
|
}
|
|
11647
11648
|
}], jh = {
|
|
@@ -11790,7 +11791,7 @@ const Yo = /* @__PURE__ */ ot(Yh, [["render", Gh]]), Uh = {
|
|
|
11790
11791
|
default: {}
|
|
11791
11792
|
}
|
|
11792
11793
|
}, Go = 2e3;
|
|
11793
|
-
let
|
|
11794
|
+
let Ea = Go;
|
|
11794
11795
|
const Xh = (e, t) => ({
|
|
11795
11796
|
components: t,
|
|
11796
11797
|
props: {
|
|
@@ -11813,7 +11814,7 @@ const Xh = (e, t) => ({
|
|
|
11813
11814
|
transitionDuration: `${l.duration}s`,
|
|
11814
11815
|
...l.style
|
|
11815
11816
|
})), s = b(() => l.transition ? l.transition : `fox-popup-slide-${l.position}`), i = () => {
|
|
11816
|
-
l.zIndex !== Go && (
|
|
11817
|
+
l.zIndex !== Go && (Ea = Number(l.zIndex)), n("update:visible", !0), a.zIndex = ++Ea, l.destroyOnClose && (a.showSlot = !0), n("open");
|
|
11817
11818
|
}, u = () => {
|
|
11818
11819
|
n("update:visible", !1), n("close"), l.destroyOnClose && setTimeout(() => {
|
|
11819
11820
|
a.showSlot = !1;
|
|
@@ -11859,11 +11860,11 @@ const Xh = (e, t) => ({
|
|
|
11859
11860
|
);
|
|
11860
11861
|
function eg(e, t, l, n, a, o) {
|
|
11861
11862
|
const r = Te("FoxOverLay"), s = Te("Close");
|
|
11862
|
-
return se(), Ie(
|
|
11863
|
+
return se(), Ie(al, {
|
|
11863
11864
|
to: e.teleport,
|
|
11864
11865
|
disabled: e.teleportDisable
|
|
11865
11866
|
}, [
|
|
11866
|
-
e.overlay ? (se(), Ie(r,
|
|
11867
|
+
e.overlay ? (se(), Ie(r, yl({
|
|
11867
11868
|
key: 0,
|
|
11868
11869
|
visible: e.visible,
|
|
11869
11870
|
"close-on-click-overlay": e.closeOnClickOverlay,
|
|
@@ -12211,7 +12212,7 @@ const sg = /* @__PURE__ */ ot(lg, [["render", rg]]), ig = {
|
|
|
12211
12212
|
o("keyup-input", N), N.key.toLocaleUpperCase() === "ENTER" && p();
|
|
12212
12213
|
}, H = (N) => {
|
|
12213
12214
|
o("click-input", N);
|
|
12214
|
-
},
|
|
12215
|
+
}, M = (N) => {
|
|
12215
12216
|
o("click-left-icon", n.modelValue, N);
|
|
12216
12217
|
}, R = b(() => ({
|
|
12217
12218
|
textAlign: n.inputAlign
|
|
@@ -12219,12 +12220,12 @@ const sg = /* @__PURE__ */ ot(lg, [["render", rg]]), ig = {
|
|
|
12219
12220
|
Ne(() => {
|
|
12220
12221
|
n.autofocus && D.value.focus();
|
|
12221
12222
|
});
|
|
12222
|
-
const
|
|
12223
|
+
const L = () => {
|
|
12223
12224
|
const N = [];
|
|
12224
12225
|
if (a.leftin) {
|
|
12225
12226
|
const E = {
|
|
12226
12227
|
class: [`${e}__search-icon`, `${e}__input-left-search-icon`],
|
|
12227
|
-
onClick:
|
|
12228
|
+
onClick: M
|
|
12228
12229
|
}, O = A("view", E, [a.leftin()]);
|
|
12229
12230
|
N.push(O);
|
|
12230
12231
|
}
|
|
@@ -12289,7 +12290,7 @@ const sg = /* @__PURE__ */ ot(lg, [["render", rg]]), ig = {
|
|
|
12289
12290
|
}, $ = A("view", B, [a.leftout()]);
|
|
12290
12291
|
N.push($);
|
|
12291
12292
|
}
|
|
12292
|
-
const C =
|
|
12293
|
+
const C = L();
|
|
12293
12294
|
if (N.push(C), a.rightout) {
|
|
12294
12295
|
const B = {
|
|
12295
12296
|
class: [`${e}__search-icon`, `${e}__right-search-icon`]
|
|
@@ -12303,7 +12304,7 @@ const sg = /* @__PURE__ */ ot(lg, [["render", rg]]), ig = {
|
|
|
12303
12304
|
return A("view", w, N);
|
|
12304
12305
|
};
|
|
12305
12306
|
}
|
|
12306
|
-
}), { componentName: cg, create: fg, scope: dg } = ue("searchbar"), hg = fg(ug(cg, dg,
|
|
12307
|
+
}), { componentName: cg, create: fg, scope: dg } = ue("searchbar"), hg = fg(ug(cg, dg, Ls)), gg = /scroll|auto|overlay/i, Uo = window;
|
|
12307
12308
|
function vg(e) {
|
|
12308
12309
|
return e.tagName !== "HTML" && e.tagName !== "BODY" && e.nodeType === 1;
|
|
12309
12310
|
}
|
|
@@ -12379,11 +12380,11 @@ function yg(e, t, l) {
|
|
|
12379
12380
|
})), m = (p) => p ? p.offsetTop + m(p.offsetParent) : 0, I = () => {
|
|
12380
12381
|
let p = 0, T = 0, H = "down";
|
|
12381
12382
|
if (u.value == window) {
|
|
12382
|
-
const
|
|
12383
|
-
i.value && (p = m(i.value) + i.value.offsetHeight -
|
|
12383
|
+
const M = Zo();
|
|
12384
|
+
i.value && (p = m(i.value) + i.value.offsetHeight - M - window.innerHeight), T = M;
|
|
12384
12385
|
} else {
|
|
12385
|
-
const { scrollHeight:
|
|
12386
|
-
p =
|
|
12386
|
+
const { scrollHeight: M, clientHeight: R, scrollTop: D } = u.value;
|
|
12387
|
+
p = M - R - D, T = D;
|
|
12387
12388
|
}
|
|
12388
12389
|
return c.beforeScrollTop > T ? H = "up" : H = "down", c.beforeScrollTop = T, a("scroll-change", T), p <= n.threshold && H == "down";
|
|
12389
12390
|
}, g = () => {
|
|
@@ -12417,8 +12418,8 @@ function yg(e, t, l) {
|
|
|
12417
12418
|
class: "fox-infinite__container"
|
|
12418
12419
|
}, [o?.default?.()]), H = [];
|
|
12419
12420
|
if (c.isInfiniting) {
|
|
12420
|
-
let
|
|
12421
|
-
if (!
|
|
12421
|
+
let L = o?.loading?.() ?? null;
|
|
12422
|
+
if (!L) {
|
|
12422
12423
|
let w = o?.loadingIcon?.() ?? null;
|
|
12423
12424
|
w || (w = A(l, {
|
|
12424
12425
|
class: ["fox-infinite__bottom-box__img"]
|
|
@@ -12426,17 +12427,17 @@ function yg(e, t, l) {
|
|
|
12426
12427
|
const $ = A("view", {
|
|
12427
12428
|
class: "fox-infinite__bottom-box__text"
|
|
12428
12429
|
}, [s.loadText.value]);
|
|
12429
|
-
|
|
12430
|
+
L = [w, $];
|
|
12430
12431
|
}
|
|
12431
12432
|
const C = A("view", {
|
|
12432
12433
|
class: "fox-infinite__bottom-box"
|
|
12433
|
-
},
|
|
12434
|
+
}, L);
|
|
12434
12435
|
H.push(C);
|
|
12435
12436
|
} else if (!n.hasMore) {
|
|
12436
|
-
let
|
|
12437
|
-
|
|
12437
|
+
let L = o?.finished?.() ?? null;
|
|
12438
|
+
L || (L = A("view", {
|
|
12438
12439
|
class: "fox-infinite__bottom-tips"
|
|
12439
|
-
}, [s.loadMoreText.value]), H.push(
|
|
12440
|
+
}, [s.loadMoreText.value]), H.push(L));
|
|
12440
12441
|
}
|
|
12441
12442
|
const R = A("view", {
|
|
12442
12443
|
class: "fox-infinite__bottom"
|
|
@@ -12449,9 +12450,9 @@ function yg(e, t, l) {
|
|
|
12449
12450
|
}
|
|
12450
12451
|
};
|
|
12451
12452
|
}
|
|
12452
|
-
const { componentName: bg, create: xg, scope: wg } = ue("infinite-loading"), Sg = xg(yg(bg, wg,
|
|
12453
|
+
const { componentName: bg, create: xg, scope: wg } = ue("infinite-loading"), Sg = xg(yg(bg, wg, Pl)), ka = 10;
|
|
12453
12454
|
function Qo(e, t) {
|
|
12454
|
-
return e > t && e >
|
|
12455
|
+
return e > t && e > ka ? "horizontal" : t > e && t > ka ? "vertical" : "";
|
|
12455
12456
|
}
|
|
12456
12457
|
function Jo() {
|
|
12457
12458
|
const e = window.navigator.userAgent;
|
|
@@ -12608,15 +12609,15 @@ const $g = {
|
|
|
12608
12609
|
const D = {};
|
|
12609
12610
|
return n.headHeight != 50 && (D.height = Ge(n.headHeight)), D;
|
|
12610
12611
|
}), h = (D) => {
|
|
12611
|
-
const
|
|
12612
|
+
const L = +(n.pullDistance || n.headHeight);
|
|
12612
12613
|
let N = D;
|
|
12613
|
-
return D >
|
|
12614
|
-
}, x = (D,
|
|
12614
|
+
return D > L && (D < L * 2 ? N = (D + L) / 2 : N = L + D / 4), Math.round(N);
|
|
12615
|
+
}, x = (D, L) => {
|
|
12615
12616
|
const N = +(n.pullDistance || n.headHeight);
|
|
12616
|
-
f.distance = D,
|
|
12617
|
+
f.distance = D, L ? f.status = "loading" : D === 0 ? f.status = "normal" : D < N ? f.status = "pulling" : f.status = "loosing", a("change", { status: f.status, distance: D });
|
|
12617
12618
|
}, p = () => f.status !== "loading" && f.status !== "complete", T = () => c.value == window ? Zo() == 0 : c.value && c.value.scrollTop == 0, H = (D) => {
|
|
12618
12619
|
p() && (T() ? (i.start(D), f.isPullRefresh = !0, f.moving = !0) : (f.distance = 0, f.isPullRefresh = !1));
|
|
12619
|
-
},
|
|
12620
|
+
}, M = (D) => {
|
|
12620
12621
|
p() && f.moving && (i.move(D), i.isVertical() && i.state.deltaY > 0 && f.isPullRefresh && (D.cancelable && D.preventDefault(), x(h(i.state.deltaY))));
|
|
12621
12622
|
}, R = () => {
|
|
12622
12623
|
f.moving = !1, f.isPullRefresh && p() && i.state.deltaY && (f.status === "loosing" ? (x(+n.headHeight, !0), a("update:modelValue", !0), Tt(() => a("refresh"))) : x(0)), setTimeout(() => {
|
|
@@ -12630,10 +12631,10 @@ const $g = {
|
|
|
12630
12631
|
}
|
|
12631
12632
|
), () => {
|
|
12632
12633
|
const D = [];
|
|
12633
|
-
let
|
|
12634
|
-
f.status === "loading" ? (
|
|
12634
|
+
let L = null;
|
|
12635
|
+
f.status === "loading" ? (L = o?.loading?.() ?? null, L || (L = A(l, {
|
|
12635
12636
|
class: ["fox-pull-refresh-container-topbox-icon"]
|
|
12636
|
-
}))) : f.status === "pulling" ?
|
|
12637
|
+
}))) : f.status === "pulling" ? L = o?.pulling?.() ?? null : f.status === "loosing" && (L = o?.loosing?.() ?? null), L && D.push(L);
|
|
12637
12638
|
const C = A("dive", {
|
|
12638
12639
|
class: ["fox-pull-refresh-container-topbox-text"]
|
|
12639
12640
|
}, [I.value]);
|
|
@@ -12648,10 +12649,10 @@ const $g = {
|
|
|
12648
12649
|
ref: u,
|
|
12649
12650
|
class: m.value
|
|
12650
12651
|
};
|
|
12651
|
-
return Jo() ? Object.assign(O, { onTouchstart: H, onTouchmove:
|
|
12652
|
+
return Jo() ? Object.assign(O, { onTouchstart: H, onTouchmove: M, onTouchend: R }) : Object.assign(O, { onMousedown: H, onMousemove: M, onMouseup: R }), A("div", O, [E]);
|
|
12652
12653
|
};
|
|
12653
12654
|
}
|
|
12654
|
-
}), { componentName: Cg, create: Ng, scope: Eg } = ue("pull-refresh"), kg = Ng(Tg(Cg, Eg,
|
|
12655
|
+
}), { componentName: Cg, create: Ng, scope: Eg } = ue("pull-refresh"), kg = Ng(Tg(Cg, Eg, Pl));
|
|
12655
12656
|
function Ig(e, t) {
|
|
12656
12657
|
return {
|
|
12657
12658
|
// 属性
|
|
@@ -12866,18 +12867,18 @@ function Vg(e, t, l, n = !1) {
|
|
|
12866
12867
|
const T = {}, H = a.textColor ?? a.color;
|
|
12867
12868
|
return H && (T.color = H), T;
|
|
12868
12869
|
}), u = (T, H) => {
|
|
12869
|
-
let
|
|
12870
|
+
let M = null;
|
|
12870
12871
|
if (typeof a.highlightFilter == "string" && a.highlightFilter.length > 0) {
|
|
12871
12872
|
const R = a.highlightFilter;
|
|
12872
12873
|
if (T.indexOf(R) !== -1) {
|
|
12873
|
-
const
|
|
12874
|
-
H.innerHTML =
|
|
12874
|
+
const L = T.replace(new RegExp(R, "g"), `<span>${R}</span>`);
|
|
12875
|
+
H.innerHTML = L, H.class["is-highlight"] = !0, M = A(a.tag, H);
|
|
12875
12876
|
}
|
|
12876
12877
|
} else if (typeof a.highlightFilter == "function") {
|
|
12877
12878
|
const R = a.highlightFilter(T);
|
|
12878
|
-
R && (H.innerHTML = R, H.class["is-highlight"] = !0,
|
|
12879
|
+
R && (H.innerHTML = R, H.class["is-highlight"] = !0, M = A(a.tag, H));
|
|
12879
12880
|
}
|
|
12880
|
-
return
|
|
12881
|
+
return M;
|
|
12881
12882
|
}, c = (T) => {
|
|
12882
12883
|
o.emit("click", T);
|
|
12883
12884
|
};
|
|
@@ -12887,9 +12888,9 @@ function Vg(e, t, l, n = !1) {
|
|
|
12887
12888
|
if (!T)
|
|
12888
12889
|
return;
|
|
12889
12890
|
const H = T.clientWidth;
|
|
12890
|
-
Pg(T, (
|
|
12891
|
+
Pg(T, (M) => {
|
|
12891
12892
|
const R = T.innerHTML ?? "";
|
|
12892
|
-
Oe(R) ||
|
|
12893
|
+
Oe(R) || M < H || (f ? l?.show(T, R, { type: "text", id: f, showArrow: a.showArrow }, !0) : f = l?.show(T, R, { type: "text", showArrow: a.showArrow }, !0) ?? "");
|
|
12893
12894
|
});
|
|
12894
12895
|
}, I = () => {
|
|
12895
12896
|
f && l?.hide(f);
|
|
@@ -12923,22 +12924,22 @@ function Vg(e, t, l, n = !1) {
|
|
|
12923
12924
|
};
|
|
12924
12925
|
let H = null;
|
|
12925
12926
|
if (de(a.numberFormat) && typeof o.slots.default == "function") {
|
|
12926
|
-
const
|
|
12927
|
-
if (Array.isArray(
|
|
12928
|
-
const N =
|
|
12927
|
+
const L = o.slots.default();
|
|
12928
|
+
if (Array.isArray(L) && L.length === 1) {
|
|
12929
|
+
const N = L[0].type.toString();
|
|
12929
12930
|
if (N === "Symbol(Text)" || N === "Symbol(v-txt)") {
|
|
12930
|
-
const C =
|
|
12931
|
-
let $ = `${
|
|
12932
|
-
E =
|
|
12931
|
+
const C = Me(a.digits), w = Me(a.decimalLength), B = de(a.autoPadding);
|
|
12932
|
+
let $ = `${L[0].children}`, E = $.split("").reverse().join("");
|
|
12933
|
+
E = $l(E, w, B, C, a.separator), $ = E.split("").reverse().join(""), a.highlightFilter !== void 0 && (H = u($, T)), H || (T.innerHTML = $, H = A(a.tag, T));
|
|
12933
12934
|
}
|
|
12934
12935
|
}
|
|
12935
12936
|
} else {
|
|
12936
12937
|
if (a.highlightFilter !== void 0 && typeof o.slots.default == "function") {
|
|
12937
|
-
const
|
|
12938
|
-
if (Array.isArray(
|
|
12939
|
-
const N =
|
|
12938
|
+
const L = o.slots.default();
|
|
12939
|
+
if (Array.isArray(L) && L.length === 1) {
|
|
12940
|
+
const N = L[0].type.toString();
|
|
12940
12941
|
if (N === "Symbol(Text)" || N === "Symbol(v-txt)") {
|
|
12941
|
-
const C = `${
|
|
12942
|
+
const C = `${L[0].children}`;
|
|
12942
12943
|
H = u(C, T), H || (T.innerHTML = C, H = A(a.tag, T));
|
|
12943
12944
|
}
|
|
12944
12945
|
}
|
|
@@ -12949,33 +12950,33 @@ function Vg(e, t, l, n = !1) {
|
|
|
12949
12950
|
return H;
|
|
12950
12951
|
let R = null;
|
|
12951
12952
|
if (a.icon) {
|
|
12952
|
-
const
|
|
12953
|
+
const L = {
|
|
12953
12954
|
[`${e}__mark-wrap`]: !0
|
|
12954
12955
|
};
|
|
12955
|
-
a.type && (
|
|
12956
|
+
a.type && (L[`${e}__mark-wrap--${a.type}`] = !0);
|
|
12956
12957
|
const N = {}, C = a.color;
|
|
12957
12958
|
C && (N.color = C), R = A("view", {
|
|
12958
|
-
class:
|
|
12959
|
+
class: L,
|
|
12959
12960
|
style: N
|
|
12960
12961
|
}, A(a.icon));
|
|
12961
12962
|
} else if (o.slots.mark) {
|
|
12962
|
-
const
|
|
12963
|
+
const L = {
|
|
12963
12964
|
[`${e}__mark-wrap`]: !0
|
|
12964
12965
|
};
|
|
12965
|
-
a.type && (
|
|
12966
|
+
a.type && (L[`${e}__mark-wrap--${a.type}`] = !0);
|
|
12966
12967
|
const N = {}, C = a.color;
|
|
12967
12968
|
C && (N.color = C), R = A("view", {
|
|
12968
|
-
class:
|
|
12969
|
+
class: L,
|
|
12969
12970
|
style: N
|
|
12970
12971
|
}, { default: o.slots.mark });
|
|
12971
12972
|
} else {
|
|
12972
|
-
const
|
|
12973
|
+
const L = {
|
|
12973
12974
|
[`${e}__mark`]: !0
|
|
12974
12975
|
};
|
|
12975
|
-
a.type && (
|
|
12976
|
+
a.type && (L[`${e}__mark--${a.type ?? "default"}`] = !0);
|
|
12976
12977
|
const N = {}, C = a.color;
|
|
12977
12978
|
C && (N["background-color"] = C), R = A("view", {
|
|
12978
|
-
class:
|
|
12979
|
+
class: L,
|
|
12979
12980
|
style: N
|
|
12980
12981
|
});
|
|
12981
12982
|
}
|
|
@@ -12991,7 +12992,7 @@ function Vg(e, t, l, n = !1) {
|
|
|
12991
12992
|
}
|
|
12992
12993
|
};
|
|
12993
12994
|
}
|
|
12994
|
-
const { componentName:
|
|
12995
|
+
const { componentName: Lg, create: Mg, scope: Rg } = ue("text"), _g = Mg(Vg(Lg, Rg, Ye, !1)), qg = {
|
|
12995
12996
|
// model value
|
|
12996
12997
|
modelValue: {
|
|
12997
12998
|
type: [Boolean],
|
|
@@ -13179,12 +13180,12 @@ const Gg = (e) => {
|
|
|
13179
13180
|
showPopup: !1,
|
|
13180
13181
|
active: 0
|
|
13181
13182
|
}), a = j({}), o = b(() => `${l}`), r = b(() => {
|
|
13182
|
-
const { offset: g, maskWidth: d, maskHeight: h } = e, { width: x, height: p, left: T, top: H } = a.value,
|
|
13183
|
+
const { offset: g, maskWidth: d, maskHeight: h } = e, { width: x, height: p, left: T, top: H } = a.value, M = e.steps[n.active].offset ?? g, R = [T + x / 2, H + p / 2], D = Number(d || x), L = Number(h || p);
|
|
13183
13184
|
return {
|
|
13184
|
-
width: `${D + +
|
|
13185
|
-
height: `${
|
|
13186
|
-
top: `${R[1] -
|
|
13187
|
-
left: `${R[0] - D / 2 - +
|
|
13185
|
+
width: `${D + +M.left + M.right}px`,
|
|
13186
|
+
height: `${L + M.top + M.bottom}px`,
|
|
13187
|
+
top: `${R[1] - L / 2 - +M.top}px`,
|
|
13188
|
+
left: `${R[0] - D / 2 - +M.left}px`
|
|
13188
13189
|
};
|
|
13189
13190
|
}), s = (g) => {
|
|
13190
13191
|
g == "next" ? n.active = n.active + 1 : n.active = n.active - 1, n.showPopup = !1, Tt(() => {
|
|
@@ -13246,7 +13247,7 @@ function rv(e, t, l, n, a, o) {
|
|
|
13246
13247
|
}, null, 512), [
|
|
13247
13248
|
[qt, e.showTour]
|
|
13248
13249
|
]),
|
|
13249
|
-
(se(!0), he(
|
|
13250
|
+
(se(!0), he(Lt, null, sn(e.steps, (u, c) => (se(), he("div", {
|
|
13250
13251
|
key: c,
|
|
13251
13252
|
style: { height: "0" }
|
|
13252
13253
|
}, [
|
|
@@ -13287,7 +13288,7 @@ function rv(e, t, l, n, a, o) {
|
|
|
13287
13288
|
onClick: t[2] || (t[2] = (f) => e.changeStep("prev"))
|
|
13288
13289
|
}, {
|
|
13289
13290
|
default: ve(() => [
|
|
13290
|
-
|
|
13291
|
+
Mt(Ce(e.prevStepText), 1)
|
|
13291
13292
|
]),
|
|
13292
13293
|
_: 1
|
|
13293
13294
|
})) : be("", !0)
|
|
@@ -13300,7 +13301,7 @@ function rv(e, t, l, n, a, o) {
|
|
|
13300
13301
|
onClick: e.close
|
|
13301
13302
|
}, {
|
|
13302
13303
|
default: ve(() => [
|
|
13303
|
-
|
|
13304
|
+
Mt(Ce(e.completeText), 1)
|
|
13304
13305
|
]),
|
|
13305
13306
|
_: 1
|
|
13306
13307
|
}, 8, ["onClick"])) : be("", !0),
|
|
@@ -13313,7 +13314,7 @@ function rv(e, t, l, n, a, o) {
|
|
|
13313
13314
|
onClick: t[3] || (t[3] = (f) => e.changeStep("next"))
|
|
13314
13315
|
}, {
|
|
13315
13316
|
default: ve(() => [
|
|
13316
|
-
|
|
13317
|
+
Mt(Ce(e.nextStepText), 1)
|
|
13317
13318
|
]),
|
|
13318
13319
|
_: 1
|
|
13319
13320
|
})) : be("", !0)
|
|
@@ -13401,26 +13402,26 @@ class iv {
|
|
|
13401
13402
|
}), this.els = null;
|
|
13402
13403
|
}
|
|
13403
13404
|
}
|
|
13404
|
-
function
|
|
13405
|
+
function Ia(e, t) {
|
|
13405
13406
|
return new iv(e, t);
|
|
13406
13407
|
}
|
|
13407
13408
|
let jt = [];
|
|
13408
|
-
const
|
|
13409
|
+
const Fa = (e) => {
|
|
13409
13410
|
const t = e;
|
|
13410
13411
|
t.key === "Escape" && jt.forEach((l) => l(t));
|
|
13411
13412
|
}, uv = (e) => {
|
|
13412
13413
|
Ne(() => {
|
|
13413
|
-
jt.length === 0 && document.addEventListener("keydown",
|
|
13414
|
+
jt.length === 0 && document.addEventListener("keydown", Fa), Nt && jt.push(e);
|
|
13414
13415
|
}), dt(() => {
|
|
13415
|
-
jt = jt.filter((t) => t !== e), jt.length === 0 && Nt && document.removeEventListener("keydown",
|
|
13416
|
+
jt = jt.filter((t) => t !== e), jt.length === 0 && Nt && document.removeEventListener("keydown", Fa);
|
|
13416
13417
|
});
|
|
13417
|
-
}, ll = "fox-focus-trap.focus-after-trapped",
|
|
13418
|
+
}, ll = "fox-focus-trap.focus-after-trapped", Da = "fox-focus-trap.focus-after-released", cv = "fox-focus-trap.focusout-prevented", Oa = {
|
|
13418
13419
|
cancelable: !0,
|
|
13419
13420
|
bubbles: !1
|
|
13420
13421
|
}, fv = {
|
|
13421
13422
|
cancelable: !0,
|
|
13422
13423
|
bubbles: !1
|
|
13423
|
-
}, Pa = "foxFocusAfterTrapped", Aa = "foxFocusAfterReleased", dv = Symbol("foxFocusTrap"),
|
|
13424
|
+
}, Pa = "foxFocusAfterTrapped", Aa = "foxFocusAfterReleased", dv = Symbol("foxFocusTrap"), Al = j(), zn = j(0), Vl = j(0);
|
|
13424
13425
|
let bn = 0;
|
|
13425
13426
|
const tr = (e) => {
|
|
13426
13427
|
const t = [], l = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -13453,10 +13454,10 @@ const tr = (e) => {
|
|
|
13453
13454
|
}, vv = (e) => e instanceof HTMLInputElement && "select" in e, wt = (e, t) => {
|
|
13454
13455
|
if (e && e.focus) {
|
|
13455
13456
|
const l = document.activeElement;
|
|
13456
|
-
e.focus({ preventScroll: !0 }),
|
|
13457
|
+
e.focus({ preventScroll: !0 }), Vl.value = window.performance.now(), e !== l && vv(e) && t && e.select();
|
|
13457
13458
|
}
|
|
13458
13459
|
};
|
|
13459
|
-
function
|
|
13460
|
+
function La(e, t) {
|
|
13460
13461
|
const l = [...e], n = e.indexOf(t);
|
|
13461
13462
|
return n !== -1 && l.splice(n, 1), l;
|
|
13462
13463
|
}
|
|
@@ -13465,10 +13466,10 @@ const mv = () => {
|
|
|
13465
13466
|
return {
|
|
13466
13467
|
push: (n) => {
|
|
13467
13468
|
const a = e[0];
|
|
13468
|
-
a && n !== a && a.pause(), e =
|
|
13469
|
+
a && n !== a && a.pause(), e = La(e, n), e.unshift(n);
|
|
13469
13470
|
},
|
|
13470
13471
|
remove: (n) => {
|
|
13471
|
-
e =
|
|
13472
|
+
e = La(e, n), e[0]?.resume?.();
|
|
13472
13473
|
}
|
|
13473
13474
|
};
|
|
13474
13475
|
}, pv = (e, t = !1) => {
|
|
@@ -13476,18 +13477,18 @@ const mv = () => {
|
|
|
13476
13477
|
for (const n of e)
|
|
13477
13478
|
if (wt(n, t), document.activeElement !== l)
|
|
13478
13479
|
return;
|
|
13479
|
-
},
|
|
13480
|
-
|
|
13480
|
+
}, Ma = mv(), yv = () => zn.value > Vl.value, xn = () => {
|
|
13481
|
+
Al.value = "pointer", zn.value = window.performance.now();
|
|
13481
13482
|
}, Ra = () => {
|
|
13482
|
-
|
|
13483
|
+
Al.value = "keyboard", zn.value = window.performance.now();
|
|
13483
13484
|
}, bv = () => (Ne(() => {
|
|
13484
13485
|
bn === 0 && (document.addEventListener("mousedown", xn), document.addEventListener("touchstart", xn), document.addEventListener("keydown", Ra)), bn++;
|
|
13485
13486
|
}), dt(() => {
|
|
13486
13487
|
bn--, bn <= 0 && (document.removeEventListener("mousedown", xn), document.removeEventListener("touchstart", xn), document.removeEventListener("keydown", Ra));
|
|
13487
13488
|
}), {
|
|
13488
|
-
focusReason:
|
|
13489
|
+
focusReason: Al,
|
|
13489
13490
|
lastUserFocusTimestamp: zn,
|
|
13490
|
-
lastAutomatedFocusTimestamp:
|
|
13491
|
+
lastAutomatedFocusTimestamp: Vl
|
|
13491
13492
|
}), wn = (e) => new CustomEvent(cv, {
|
|
13492
13493
|
...fv,
|
|
13493
13494
|
detail: e
|
|
@@ -13541,22 +13542,22 @@ const mv = () => {
|
|
|
13541
13542
|
}, i = (d) => {
|
|
13542
13543
|
if (!e.loop && !de(e.trapped) || s.paused)
|
|
13543
13544
|
return;
|
|
13544
|
-
const { key: h, altKey: x, ctrlKey: p, metaKey: T, currentTarget: H, shiftKey:
|
|
13545
|
-
if (D &&
|
|
13545
|
+
const { key: h, altKey: x, ctrlKey: p, metaKey: T, currentTarget: H, shiftKey: M } = d, { loop: R } = e, D = h === "Tab" && !x && !p && !T, L = document.activeElement;
|
|
13546
|
+
if (D && L) {
|
|
13546
13547
|
const N = H, [C, w] = gv(N);
|
|
13547
13548
|
if (C && w) {
|
|
13548
|
-
if (!
|
|
13549
|
+
if (!M && L === w) {
|
|
13549
13550
|
const $ = wn({
|
|
13550
13551
|
focusReason: r.value
|
|
13551
13552
|
});
|
|
13552
13553
|
l("focusout-prevented", $), $.defaultPrevented || (d.preventDefault(), R && wt(C, !0));
|
|
13553
|
-
} else if (
|
|
13554
|
+
} else if (M && [C, N].includes(L)) {
|
|
13554
13555
|
const $ = wn({
|
|
13555
13556
|
focusReason: r.value
|
|
13556
13557
|
});
|
|
13557
13558
|
l("focusout-prevented", $), $.defaultPrevented || (d.preventDefault(), R && wt(w, !0));
|
|
13558
13559
|
}
|
|
13559
|
-
} else if (
|
|
13560
|
+
} else if (L === N) {
|
|
13560
13561
|
const $ = wn({
|
|
13561
13562
|
focusReason: r.value
|
|
13562
13563
|
});
|
|
@@ -13606,7 +13607,7 @@ const mv = () => {
|
|
|
13606
13607
|
await Tt();
|
|
13607
13608
|
const d = St(n);
|
|
13608
13609
|
if (d) {
|
|
13609
|
-
|
|
13610
|
+
Ma.push(s);
|
|
13610
13611
|
const h = d.contains(document.activeElement) ? a : document.activeElement;
|
|
13611
13612
|
if (a = h, !d.contains(h)) {
|
|
13612
13613
|
const p = new Event(ll, Oa);
|
|
@@ -13621,13 +13622,13 @@ const mv = () => {
|
|
|
13621
13622
|
const d = St(n);
|
|
13622
13623
|
if (d) {
|
|
13623
13624
|
d.removeEventListener(ll, u);
|
|
13624
|
-
const h = new CustomEvent(
|
|
13625
|
+
const h = new CustomEvent(Da, {
|
|
13625
13626
|
...Oa,
|
|
13626
13627
|
detail: {
|
|
13627
13628
|
focusReason: r.value
|
|
13628
13629
|
}
|
|
13629
13630
|
});
|
|
13630
|
-
d.
|
|
13631
|
+
d.addEventListener(Da, c, { once: !0 }), d.dispatchEvent(h), !h.defaultPrevented && (r.value == "keyboard" || !yv()) && wt(a ?? document.body, !0), Ma.remove(s);
|
|
13631
13632
|
}
|
|
13632
13633
|
}
|
|
13633
13634
|
return Ne(() => {
|
|
@@ -13638,7 +13639,7 @@ const mv = () => {
|
|
|
13638
13639
|
}
|
|
13639
13640
|
);
|
|
13640
13641
|
}), dt(() => {
|
|
13641
|
-
de(e.trapped) && g();
|
|
13642
|
+
de(e.trapped) && g(), n.value && (n.value.removeEventListener("keydown", i), n.value.removeEventListener("focusin", f), n.value.removeEventListener("focusout", m));
|
|
13642
13643
|
}), () => typeof t.default == "function" ? t.default({ "handle-keydown": i }) : null;
|
|
13643
13644
|
}
|
|
13644
13645
|
}), { componentName: $v, create: Tv, scope: Um } = ue("floating-window"), Cv = Symbol.for("InnerPageScopeKey"), Nv = Symbol.for("PageWrapperKey"), Ev = {
|
|
@@ -13797,20 +13798,20 @@ const mv = () => {
|
|
|
13797
13798
|
n.value = S;
|
|
13798
13799
|
}
|
|
13799
13800
|
);
|
|
13800
|
-
const o = b(() => n.value === !1 ? !1 : !
|
|
13801
|
+
const o = b(() => n.value === !1 ? !1 : !L.value), r = j(e.left), s = j(e.top), i = j(e.right), u = j(e.bottom), c = b(() => {
|
|
13801
13802
|
const S = ["fox-floating-window"];
|
|
13802
13803
|
return e.customClass && S.push(e.customClass), S;
|
|
13803
13804
|
}), f = b(() => {
|
|
13804
13805
|
const S = {};
|
|
13805
13806
|
return Ot(r.value) ? S.left = "auto" : S.left = We(r.value), Ot(s.value) ? S.top = "auto" : S.top = We(s.value), Ot(i.value) ? S.right = "auto" : S.right = We(i.value), Ot(u.value) ? S.bottom = "auto" : S.bottom = We(u.value), Ot(e.zIndex) || (S["z-index"] = We(e.zIndex)), Ot(R.value) || (S.height = R.value), Ot(D.value) || (S.width = D.value), S;
|
|
13806
|
-
}), m = b(() => e.closeIcon ?? ro), I = b(() => e.collapseIcon ?? An), g = b(() => e.collapseText ?? ""), d = b(() => e.collapsePosition === "left" ? e.expandIcon ??
|
|
13807
|
+
}), m = b(() => e.closeIcon ?? ro), I = b(() => e.collapseIcon ?? An), g = b(() => e.collapseText ?? ""), d = b(() => e.collapsePosition === "left" ? e.expandIcon ?? Ms : e.expandIcon ?? lo), h = b(() => e.expandText ?? e.title ?? "展开"), x = b(() => ({
|
|
13807
13808
|
[`${l}__collapse-text`]: !0
|
|
13808
13809
|
})), p = b(() => ({
|
|
13809
13810
|
[`${l}__collapse-icon`]: !0,
|
|
13810
|
-
"is-expand": !
|
|
13811
|
-
"is-collapse":
|
|
13812
|
-
})), T = j(), H = j(null),
|
|
13813
|
-
|
|
13811
|
+
"is-expand": !L.value,
|
|
13812
|
+
"is-collapse": L.value
|
|
13813
|
+
})), T = j(), H = j(null), M = j(null), R = b(() => We(e.height) || ""), D = b(() => We(e.width) || ""), L = j(de(e.collapse)), N = (S, W = !0) => {
|
|
13814
|
+
L.value !== S && (L.value = S, S ? y() : P(), t("update:collapse", S), S && typeof B.onHide == "function" ? B.onHide() : !S && typeof B.onShow == "function" && B.onShow());
|
|
13814
13815
|
};
|
|
13815
13816
|
fe(
|
|
13816
13817
|
() => e.collapse,
|
|
@@ -13821,7 +13822,7 @@ const mv = () => {
|
|
|
13821
13822
|
const C = () => {
|
|
13822
13823
|
w();
|
|
13823
13824
|
}, w = (S) => {
|
|
13824
|
-
S = S ?? !
|
|
13825
|
+
S = S ?? !L.value, N(S);
|
|
13825
13826
|
};
|
|
13826
13827
|
ke(Cv, !0);
|
|
13827
13828
|
const B = {
|
|
@@ -13841,7 +13842,7 @@ const mv = () => {
|
|
|
13841
13842
|
}), Y = j(""), Q = b(() => {
|
|
13842
13843
|
const S = {};
|
|
13843
13844
|
return Y.value ? S.top = Y.value : e.collapseTop && (S.top = e.collapseTop), S;
|
|
13844
|
-
}), X = j(
|
|
13845
|
+
}), X = j(L.value), te = b({
|
|
13845
13846
|
set: (S) => {
|
|
13846
13847
|
X.value = S;
|
|
13847
13848
|
},
|
|
@@ -13860,7 +13861,7 @@ const mv = () => {
|
|
|
13860
13861
|
};
|
|
13861
13862
|
}, F = () => {
|
|
13862
13863
|
r.value = null, s.value = null, i.value = null, u.value = null;
|
|
13863
|
-
}, v = { x: 0, y: 0 }, _ =
|
|
13864
|
+
}, v = { x: 0, y: 0 }, _ = Ia((S) => {
|
|
13864
13865
|
if (!T.value)
|
|
13865
13866
|
return;
|
|
13866
13867
|
const W = T.value;
|
|
@@ -13881,7 +13882,7 @@ const mv = () => {
|
|
|
13881
13882
|
return;
|
|
13882
13883
|
const W = T.value;
|
|
13883
13884
|
F(), e.origin === "left-top" ? (r.value = v.x + S.x, s.value = v.y + S.y, W.style.left = We(r.value), W.style.top = We(s.value)) : e.origin === "left-bottom" ? (r.value = v.x + S.x, u.value = v.y - S.y, W.style.left = We(r.value), W.style.bottom = We(u.value)) : e.origin === "right-bottom" ? (i.value = v.x - S.x, u.value = v.y - S.y, W.style.right = We(i.value), W.style.bottom = We(u.value)) : (i.value = v.x - S.x, s.value = v.y + S.y, W.style.right = We(i.value), W.style.top = We(s.value));
|
|
13884
|
-
}), V = { x: 0, y: 0 }, J =
|
|
13885
|
+
}), V = { x: 0, y: 0 }, J = Ia((S) => {
|
|
13885
13886
|
E.value && (V.x = E.value.offsetLeft, V.y = E.value.offsetTop);
|
|
13886
13887
|
}, (S) => {
|
|
13887
13888
|
if (!E.value)
|
|
@@ -13891,13 +13892,13 @@ const mv = () => {
|
|
|
13891
13892
|
}), ne = () => {
|
|
13892
13893
|
if (T.value) {
|
|
13893
13894
|
const S = T.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");
|
|
13894
|
-
|
|
13895
|
+
M.value = S;
|
|
13895
13896
|
}
|
|
13896
13897
|
};
|
|
13897
13898
|
return Ne(() => {
|
|
13898
13899
|
if (e.draggable && T.value) {
|
|
13899
13900
|
const S = [];
|
|
13900
|
-
H.value && S.push(H.value), e.footerDraggable && (ne(),
|
|
13901
|
+
H.value && S.push(H.value), e.footerDraggable && (ne(), M.value && S.push(M.value)), _.open(S);
|
|
13901
13902
|
}
|
|
13902
13903
|
e.collapse === !0 && N(e.collapse, !1), E.value && J.open(E.value);
|
|
13903
13904
|
}), dt(() => {
|
|
@@ -13932,8 +13933,8 @@ const mv = () => {
|
|
|
13932
13933
|
}, Fv = { class: "fox-floating-window__title" }, Dv = { class: "fox-floating-window__tools" }, Ov = { class: "fox-floating-window__body" }, Pv = { class: "fox-floating-window__fixednav__text" };
|
|
13933
13934
|
function Av(e, t, l, n, a, o) {
|
|
13934
13935
|
const r = Te("FoxIcon"), s = Te("FocusTrap");
|
|
13935
|
-
return se(), he(
|
|
13936
|
-
(se(), Ie(
|
|
13936
|
+
return se(), he(Lt, null, [
|
|
13937
|
+
(se(), Ie(al, {
|
|
13937
13938
|
to: e.teleport,
|
|
13938
13939
|
disabled: e.teleportDisabled
|
|
13939
13940
|
}, [
|
|
@@ -14000,7 +14001,7 @@ function Av(e, t, l, n, a, o) {
|
|
|
14000
14001
|
_: 3
|
|
14001
14002
|
})
|
|
14002
14003
|
], 8, ["to", "disabled"])),
|
|
14003
|
-
(se(), Ie(
|
|
14004
|
+
(se(), Ie(al, {
|
|
14004
14005
|
to: e.fixedNavTeleport,
|
|
14005
14006
|
disabled: e.fixedNavTeleportDisabled
|
|
14006
14007
|
}, [
|
|
@@ -14029,7 +14030,7 @@ function Av(e, t, l, n, a, o) {
|
|
|
14029
14030
|
], 64);
|
|
14030
14031
|
}
|
|
14031
14032
|
const Vv = /* @__PURE__ */ ot(kv, [["render", Av]]);
|
|
14032
|
-
function
|
|
14033
|
+
function Lv(e, t) {
|
|
14033
14034
|
return {
|
|
14034
14035
|
//继承特性
|
|
14035
14036
|
inheritAttrs: !1,
|
|
@@ -14054,7 +14055,7 @@ function Mv(e, t) {
|
|
|
14054
14055
|
}
|
|
14055
14056
|
};
|
|
14056
14057
|
}
|
|
14057
|
-
const { componentName: Xm, create:
|
|
14058
|
+
const { componentName: Xm, create: Mv, scope: Zm } = ue("domain-provider"), Rv = Mv(Lv()), _v = {
|
|
14058
14059
|
// 初始化时默认显示观察对象数量
|
|
14059
14060
|
initialVisibleObserverSize: {
|
|
14060
14061
|
type: [Number],
|
|
@@ -14180,7 +14181,7 @@ function qv(e, t) {
|
|
|
14180
14181
|
}
|
|
14181
14182
|
};
|
|
14182
14183
|
}
|
|
14183
|
-
const { componentName: Qm, create: Bv, scope: Jm } = ue("rolling-provider"), Hv = Bv(qv()), zv = [ki, Pi,
|
|
14184
|
+
const { componentName: Qm, create: Bv, scope: Jm } = ue("rolling-provider"), Hv = Bv(qv()), zv = [ki, Pi, Mi, zi, nu, je, Fu, Au, Ol, _u, Gu, mc, wc, Nc, Oc, Mc, Wc, Zc, rf, ff, Ho, Xf, sd, yd, $d, kd, Pd, Zd, vh, wh, Eh, Mh, Hh, Yo, tg, sg, hg, Sg, kg, pl, Eo, Og, _g, Wg, sv, Vv, Rv, Hv], ep = new bi(zv, [Si], "4.0.0");
|
|
14184
14185
|
export {
|
|
14185
14186
|
Zc as AutocompleteItem,
|
|
14186
14187
|
ho as Broadcast,
|
|
@@ -14192,11 +14193,11 @@ export {
|
|
|
14192
14193
|
mc as DateItem,
|
|
14193
14194
|
nt as DateUtils,
|
|
14194
14195
|
Hh as DialogItem,
|
|
14195
|
-
|
|
14196
|
+
Il as Domain,
|
|
14196
14197
|
et as DomainKey,
|
|
14197
14198
|
Rv as DomainProvider,
|
|
14198
14199
|
Vv as FloatingWindow,
|
|
14199
|
-
|
|
14200
|
+
Mi as FooterBar,
|
|
14200
14201
|
lp as FoxAffix,
|
|
14201
14202
|
ap as FoxAlert,
|
|
14202
14203
|
op as FoxAside,
|
|
@@ -14236,23 +14237,23 @@ export {
|
|
|
14236
14237
|
Ap as FoxDescriptionsItem,
|
|
14237
14238
|
Vp as FoxDialog,
|
|
14238
14239
|
Hh as FoxDialogItem,
|
|
14239
|
-
|
|
14240
|
+
Lp as FoxDivider,
|
|
14240
14241
|
Rv as FoxDomainProvider,
|
|
14241
|
-
|
|
14242
|
+
Mp as FoxDrawer,
|
|
14242
14243
|
Rp as FoxDropdown,
|
|
14243
14244
|
_p as FoxDropdownItem,
|
|
14244
14245
|
qp as FoxDropdownMenu,
|
|
14245
14246
|
Bp as FoxEmpty,
|
|
14246
14247
|
Vv as FoxFloatingWindow,
|
|
14247
14248
|
Hp as FoxFooter,
|
|
14248
|
-
|
|
14249
|
+
Mi as FoxFooterBar,
|
|
14249
14250
|
zp as FoxForm,
|
|
14250
14251
|
jp as FoxFormItem,
|
|
14251
14252
|
nu as FoxGroup,
|
|
14252
14253
|
Zd as FoxGroupSetting,
|
|
14253
14254
|
Kp as FoxHeader,
|
|
14254
14255
|
Pi as FoxHeaderBar,
|
|
14255
|
-
|
|
14256
|
+
Ol as FoxHintText,
|
|
14256
14257
|
Wp as FoxIcon,
|
|
14257
14258
|
Yp as FoxImage,
|
|
14258
14259
|
Gp as FoxImageViewer,
|
|
@@ -14261,11 +14262,11 @@ export {
|
|
|
14261
14262
|
Up as FoxInput,
|
|
14262
14263
|
_u as FoxInputItem,
|
|
14263
14264
|
Xp as FoxInputNumber,
|
|
14264
|
-
|
|
14265
|
+
Mc as FoxInputNumberItem,
|
|
14265
14266
|
je as FoxItem,
|
|
14266
14267
|
Zp as FoxLink,
|
|
14267
14268
|
Qp as FoxMain,
|
|
14268
|
-
|
|
14269
|
+
pl as FoxMapping,
|
|
14269
14270
|
Jp as FoxMenu,
|
|
14270
14271
|
ey as FoxMenuItem,
|
|
14271
14272
|
ty as FoxMenuItemGroup,
|
|
@@ -14306,7 +14307,7 @@ export {
|
|
|
14306
14307
|
Sy as FoxSpace,
|
|
14307
14308
|
$y as FoxStep,
|
|
14308
14309
|
Ty as FoxSteps,
|
|
14309
|
-
|
|
14310
|
+
Mh as FoxStepsBar,
|
|
14310
14311
|
Cy as FoxSubMenu,
|
|
14311
14312
|
Ny as FoxSwitch,
|
|
14312
14313
|
kd as FoxSwitchItem,
|
|
@@ -14329,9 +14330,9 @@ export {
|
|
|
14329
14330
|
Ay as FoxTimeSelect,
|
|
14330
14331
|
Nc as FoxTimeSelectItem,
|
|
14331
14332
|
Vy as FoxTimeline,
|
|
14332
|
-
|
|
14333
|
+
Ly as FoxTimelineItem,
|
|
14333
14334
|
sg as FoxToast,
|
|
14334
|
-
|
|
14335
|
+
My as FoxTooltip,
|
|
14335
14336
|
sv as FoxTour,
|
|
14336
14337
|
Ry as FoxTransfer,
|
|
14337
14338
|
_y as FoxTree,
|
|
@@ -14342,13 +14343,13 @@ export {
|
|
|
14342
14343
|
nu as Group,
|
|
14343
14344
|
Zd as GroupSetting,
|
|
14344
14345
|
Pi as HeaderBar,
|
|
14345
|
-
|
|
14346
|
+
Ol as HintText,
|
|
14346
14347
|
Og as Indicator,
|
|
14347
14348
|
Sg as InfiniteLoading,
|
|
14348
14349
|
_u as InputItem,
|
|
14349
|
-
|
|
14350
|
+
Mc as InputNumberItem,
|
|
14350
14351
|
je as Item,
|
|
14351
|
-
|
|
14352
|
+
pl as Mapping,
|
|
14352
14353
|
Oc as MoneyItem,
|
|
14353
14354
|
Wg as MoreButton,
|
|
14354
14355
|
Yo as OverLay,
|
|
@@ -14364,7 +14365,7 @@ export {
|
|
|
14364
14365
|
hg as SearchBar,
|
|
14365
14366
|
Gu as SelectItem,
|
|
14366
14367
|
Fu as SlotItem,
|
|
14367
|
-
|
|
14368
|
+
Mh as StepsBar,
|
|
14368
14369
|
kd as SwitchItem,
|
|
14369
14370
|
Xf as TableItem,
|
|
14370
14371
|
rf as TableMappingColumn,
|
|
@@ -14384,10 +14385,10 @@ export {
|
|
|
14384
14385
|
ct as ValidateSchemaKey,
|
|
14385
14386
|
Xv as cancelRaf,
|
|
14386
14387
|
om as clearNonNumber,
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
|
|
14388
|
+
jl as clone,
|
|
14389
|
+
Bl as compareTo,
|
|
14390
|
+
Nl as createBroadcast,
|
|
14391
|
+
El as createValidateSchema,
|
|
14391
14392
|
Nn as debounce,
|
|
14392
14393
|
pm as debounceRef,
|
|
14393
14394
|
ti as decimalLength,
|
|
@@ -14407,8 +14408,8 @@ export {
|
|
|
14407
14408
|
im as floatData,
|
|
14408
14409
|
ai as getGlobalValidateCheckEvents,
|
|
14409
14410
|
oi as getGlobalValidateResetEvents,
|
|
14410
|
-
|
|
14411
|
-
|
|
14411
|
+
fl as getPageContentAreaHeight,
|
|
14412
|
+
dl as getPageContentAreaWidth,
|
|
14412
14413
|
kn as getPageFooterAreaHeight,
|
|
14413
14414
|
En as getPageHeaderAreaHeight,
|
|
14414
14415
|
cn as getRootDomain,
|
|
@@ -14423,16 +14424,16 @@ export {
|
|
|
14423
14424
|
nm as isESModule,
|
|
14424
14425
|
Oe as isEmptyString,
|
|
14425
14426
|
Ct as isEqual,
|
|
14426
|
-
|
|
14427
|
-
|
|
14427
|
+
Hl as isFunction,
|
|
14428
|
+
Cl as isHidden,
|
|
14428
14429
|
bm as isInnerPage,
|
|
14429
14430
|
Qv as isMap,
|
|
14430
14431
|
fo as isNil,
|
|
14431
14432
|
Js as isNumberString,
|
|
14432
14433
|
It as isObject,
|
|
14433
|
-
|
|
14434
|
+
zl as isPlainObject,
|
|
14434
14435
|
Ks as isPromise,
|
|
14435
|
-
|
|
14436
|
+
Kl as isRegExp,
|
|
14436
14437
|
Jv as isSet,
|
|
14437
14438
|
js as isString,
|
|
14438
14439
|
xm as isSubPage,
|
|
@@ -14445,7 +14446,7 @@ export {
|
|
|
14445
14446
|
Bs as multiply,
|
|
14446
14447
|
Hs as negate,
|
|
14447
14448
|
lm as nextTick,
|
|
14448
|
-
|
|
14449
|
+
$l as numberFormat,
|
|
14449
14450
|
Ws as objectToString,
|
|
14450
14451
|
ym as once,
|
|
14451
14452
|
fm as overrideGlobalValidateHandler,
|
|
@@ -14459,25 +14460,25 @@ export {
|
|
|
14459
14460
|
dm as setGlobalValidator,
|
|
14460
14461
|
si as throttle,
|
|
14461
14462
|
de as toBoolean,
|
|
14462
|
-
|
|
14463
|
+
Me as toNumber,
|
|
14463
14464
|
mt as toPadding,
|
|
14464
14465
|
we as toPx,
|
|
14465
14466
|
Ge as toPxDesc,
|
|
14466
|
-
|
|
14467
|
+
Tl as toTypeString,
|
|
14467
14468
|
Se as toValue,
|
|
14468
|
-
|
|
14469
|
-
|
|
14469
|
+
kl as tryTimes,
|
|
14470
|
+
cl as typeOf,
|
|
14470
14471
|
zs as unNumberFormat,
|
|
14471
|
-
|
|
14472
|
+
Yl as updatePageState,
|
|
14472
14473
|
pn as useBroadcast,
|
|
14473
14474
|
Ht as useDomain,
|
|
14474
14475
|
He as useExpose,
|
|
14475
14476
|
$o as useInnerSize,
|
|
14476
|
-
|
|
14477
|
+
Fl as usePageState,
|
|
14477
14478
|
ou as usePosition,
|
|
14478
14479
|
er as useRawTouch,
|
|
14479
14480
|
Gg as useRect,
|
|
14480
|
-
|
|
14481
|
+
Dl as useSize,
|
|
14481
14482
|
jm as useTouch,
|
|
14482
|
-
|
|
14483
|
+
Ln as valueLength
|
|
14483
14484
|
};
|