@fox-js/foxui-pc 4.1.1-3 → 4.1.1-4
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 +270 -249
- package/dist/index.umd.js +2 -2
- 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 tt, getCurrentInstance as Me, effectScope as Jo, watchEffect as Qo, nextTick as xt, hasInjectionContext as sn, customRef as er, reactive as $t, isReactive as ht, watch as fe, toRaw as xe, computed as S, toRef as ln, ref as R, defineComponent as Ot, onMounted as Ee, h as O, unref as pt, openBlock as se, createElementBlock as ve, normalizeClass as $e, normalizeStyle as De, renderSlot as at, shallowRef as
|
|
1
|
+
import { inject as qe, provide as ke, onUnmounted as tt, getCurrentInstance as Me, effectScope as Jo, watchEffect as Qo, nextTick as xt, hasInjectionContext as sn, customRef as er, reactive as $t, isReactive as ht, watch as fe, toRaw as xe, computed as S, toRef as ln, ref as R, defineComponent as Ot, onMounted as Ee, h as O, unref as pt, openBlock as se, createElementBlock as ve, normalizeClass as $e, normalizeStyle as De, renderSlot as at, shallowRef as yn, markRaw as tr, triggerRef as rt, createCommentVNode as be, createElementVNode as ce, toDisplayString as Ne, onBeforeMount as nr, resolveComponent as Te, Fragment as Ft, withDirectives as Vt, createBlock as Ie, vShow as Rt, createVNode as ye, render as Da, shallowReactive as lr, onBeforeUnmount as gt, mergeProps as fl, withCtx as pe, createTextVNode as At, renderList as en, Transition as Cn, withModifiers as ar, toRefs as Fa, Teleport as Zn, resolveDynamicComponent as mn, onActivated as or, onDeactivated as rr } from "vue";
|
|
2
2
|
import kt from "@fox-js/validator";
|
|
3
|
-
import { ElAffix as sr, ElAlert as ir, ElAutocomplete as Aa, ElAutoResizer as ur, ElAvatar as cr, ElBacktop as fr, ElBadge as dr, ElBreadcrumb as hr, ElBreadcrumbItem as gr, ElButton as dl, ElButtonGroup as vr, ElCalendar as mr, ElCard as yr, ElCarousel as pr, ElCarouselItem as br, ElCascader as Oa, ElCascaderPanel as xr, ElCheckTag as wr, ElCheckbox as Bt, ElCheckboxButton as Va, ElCheckboxGroup as
|
|
3
|
+
import { ElAffix as sr, ElAlert as ir, ElAutocomplete as Aa, ElAutoResizer as ur, ElAvatar as cr, ElBacktop as fr, ElBadge as dr, ElBreadcrumb as hr, ElBreadcrumbItem as gr, ElButton as dl, ElButtonGroup as vr, ElCalendar as mr, ElCard as yr, ElCarousel as pr, ElCarouselItem as br, ElCascader as Oa, ElCascaderPanel as xr, ElCheckTag as wr, ElCheckbox as Bt, ElCheckboxButton as Va, ElCheckboxGroup as Nn, ElCol as Sr, ElCollapse as $r, ElCollapseItem as Tr, ElCollapseTransition as Cr, ElColorPicker as Nr, ElConfigProvider as Er, ElContainer as kr, ElAside as Ir, ElFooter as Dr, ElHeader as Fr, ElMain as Ar, ElDatePicker as Ra, ElDescriptions as Or, ElDescriptionsItem as Vr, ElDialog as Pa, ElDivider as Rr, ElDrawer as Pr, ElDropdown as Lr, ElDropdownItem as Mr, ElDropdownMenu as _r, ElEmpty as qr, ElForm as Br, ElFormItem as zr, ElIcon as Pt, ElImage as Hr, ElImageViewer as jr, ElInput as hl, ElInputNumber as La, ElLink as Kr, ElMenu as Wr, ElSubMenu as Yr, ElMenuItem as Gr, ElMenuItemGroup as Ur, ElPageHeader as Xr, ElPagination as Ma, ElPopconfirm as Zr, ElPopover as En, ElPopper as Jr, ElProgress as Qr, ElRadio as Jn, ElRadioButton as _a, ElRadioGroup as qa, ElRate as Ba, ElResult as es, ElRow as ts, ElScrollbar as ns, ElSelect as za, ElOption as Qt, ElOptionGroup as Ha, ElSelectV2 as ls, ElSkeleton as as, ElSkeletonItem as os, ElSlider as rs, ElSpace as ss, ElSteps as is, ElStep as us, ElSwitch as ja, ElTable as Ka, ElTableColumn as gl, ElTableV2 as cs, ElTabs as fs, ElTabPane as ds, ElTag as hs, ElTimePicker as Wa, ElTimeSelect as Ya, ElTimeline as gs, ElTimelineItem as vs, ElTooltip as ms, ElTransfer as ys, ElTree as ps, ElTreeSelect as Ga, ElTreeV2 as bs, ElUpload as xs, ElStatistic as ws, ElCountdown as Ss, ElSegmented as $s, ElAnchor as Ts, ElAnchorLink as Cs, ElWatermark as Ns, ElMessageBox as Ua, ElMessage as Xa, ElNotification as Za, ElInfiniteScroll as Es, ElLoading as ks, ElPopoverDirective as Is } from "element-plus";
|
|
4
4
|
import { ElAffix as fy, ElAlert as dy, ElAnchor as hy, ElAnchorLink as gy, ElAside as vy, ElAutoResizer as my, ElAutocomplete as yy, ElAvatar as py, ElBacktop as by, ElBadge as xy, ElBreadcrumb as wy, ElBreadcrumbItem as Sy, ElButton as $y, ElButtonGroup as Ty, ElCalendar as Cy, ElCard as Ny, ElCarousel as Ey, ElCarouselItem as ky, ElCascader as Iy, ElCascaderPanel as Dy, ElCheckTag as Fy, ElCheckbox as Ay, ElCheckboxButton as Oy, ElCheckboxGroup as Vy, ElCol as Ry, ElCollapse as Py, ElCollapseItem as Ly, ElCollapseTransition as My, ElColorPicker as _y, ElConfigProvider as qy, ElContainer as By, ElCountdown as zy, ElDatePicker as Hy, ElDescriptions as jy, ElDescriptionsItem as Ky, ElDialog as Wy, ElDivider as Yy, ElDrawer as Gy, ElDropdown as Uy, ElDropdownItem as Xy, ElDropdownMenu as Zy, ElEmpty as Jy, ElFooter as Qy, ElForm as ep, ElFormItem as tp, ElHeader as np, ElIcon as lp, ElImage as ap, ElImageViewer as op, ElInput as rp, ElInputNumber as sp, ElLink as ip, ElMain as up, ElMenu as cp, ElMenuItem as fp, ElMenuItemGroup as dp, ElMessage as hp, ElMessageBox as gp, ElNotification as vp, ElOption as mp, ElOptionGroup as yp, ElPageHeader as pp, ElPagination as bp, ElPopconfirm as xp, ElPopover as wp, ElPopper as Sp, ElProgress as $p, ElRadio as Tp, ElRadioButton as Cp, ElRadioGroup as Np, ElRate as Ep, ElResult as kp, ElRow as Ip, ElScrollbar as Dp, ElSegmented as Fp, ElSelect as Ap, ElSelectV2 as Op, ElSkeleton as Vp, ElSkeletonItem as Rp, ElSlider as Pp, ElSpace as Lp, ElStatistic as Mp, ElStep as _p, ElSteps as qp, ElSubMenu as Bp, ElSwitch as zp, ElTabPane as Hp, ElTable as jp, ElTableColumn as Kp, ElTableV2 as Wp, ElTabs as Yp, ElTag as Gp, ElTimePicker as Up, ElTimeSelect as Xp, ElTimeline as Zp, ElTimelineItem as Jp, ElTooltip as Qp, ElTransfer as eb, ElTree as tb, ElTreeSelect as nb, ElTreeV2 as lb, ElUpload as ab, ElWatermark as ob } from "element-plus";
|
|
5
|
-
import { ArrowLeft as Ja, ArrowUp as
|
|
5
|
+
import { ArrowLeft as Ja, ArrowUp as kn, Download as Qa, RefreshLeft as eo, Loading as Ds, Setting as Fs, CircleClose as As, Close as to, ArrowRight as Os } from "@element-plus/icons-vue";
|
|
6
6
|
import { useFoxI18n as Je } from "@fox-js/i18n";
|
|
7
7
|
/*!
|
|
8
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
8
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Sep 25 2024 15:27:48 GMT+0800 (中国标准时间)
|
|
9
9
|
*/
|
|
10
10
|
const un = window, Vs = typeof window < "u";
|
|
11
11
|
function Rs() {
|
|
@@ -22,13 +22,13 @@ const no = Rs();
|
|
|
22
22
|
/*!
|
|
23
23
|
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function pn(e, t = "0") {
|
|
26
26
|
let l = 0, n = -1;
|
|
27
|
-
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] = vl(_e(e), _e(t)), l == 1 && (n == 1 ? e =
|
|
27
|
+
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] = vl(_e(e), _e(t)), l == 1 && (n == 1 ? e = _n(e) : t = _n(t));
|
|
28
28
|
let a = lo(e, t);
|
|
29
|
-
return l ? l == 2 ? "-" + _e(a) : e.length < a.length ? _e(a.substring(1)) : "-" + _e(
|
|
29
|
+
return l ? l == 2 ? "-" + _e(a) : e.length < a.length ? _e(a.substring(1)) : "-" + _e(_n(a)) : _e(a);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function _n(e) {
|
|
32
32
|
let t = "", l = e.length, n = e.split(".")[1], a = n ? n.length : 0;
|
|
33
33
|
for (let r = 0; r < l; r++)
|
|
34
34
|
e[r] >= "0" && e[r] <= "9" ? t += 9 - parseInt(e[r]) : t += e[r];
|
|
@@ -75,14 +75,14 @@ function an(e, t = 0, l = Ae.HALF_EVEN) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
if (t == 0)
|
|
78
|
-
return o.length, Il(a[1], o, n, l) ? (n ? "-" : "") +
|
|
78
|
+
return o.length, Il(a[1], o, n, l) ? (n ? "-" : "") + qn(o) : (n ? "-" : "") + o;
|
|
79
79
|
if (a[1]) {
|
|
80
80
|
if (a[1].length < t)
|
|
81
81
|
return (n ? "-" : "") + o + "." + a[1] + new Array(t - a[1].length + 1).join("0");
|
|
82
82
|
} else return (n ? "-" : "") + o + "." + new Array(t + 1).join("0");
|
|
83
83
|
r = a[1].substring(0, t);
|
|
84
84
|
let i = a[1].substring(t);
|
|
85
|
-
return i && Il(i, r, n, l) && (r =
|
|
85
|
+
return i && Il(i, r, n, l) && (r = qn(r), r.length > t) ? (n ? "-" : "") + qn(o, parseInt(r[0])) + "." + r.substring(1) : (n ? "-" : "") + o + "." + r;
|
|
86
86
|
}
|
|
87
87
|
function Il(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)
|
|
@@ -104,7 +104,7 @@ function Il(e, t, l, n) {
|
|
|
104
104
|
return parseInt(t[t.length - 1]) % 2 == 1;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function qn(e, t = 0) {
|
|
108
108
|
t || (t = 1), typeof e == "number" && e.toString();
|
|
109
109
|
let l = e.length - 1, n = "";
|
|
110
110
|
for (let a = l; a >= 0; a--) {
|
|
@@ -176,13 +176,13 @@ function el(e, t, l = 8) {
|
|
|
176
176
|
for (l = l + 2; o <= l; ) {
|
|
177
177
|
let u = 0;
|
|
178
178
|
for (; parseInt(s) >= parseInt(t); )
|
|
179
|
-
s =
|
|
179
|
+
s = pn(s, "-" + t), u++;
|
|
180
180
|
i += u, e ? (e[0] == "." && (i += ".", o++, e = e.substring(1)), s = s + e.substring(0, 1), e = e.substring(1)) : (o || (i += "."), o++, s = s + "0");
|
|
181
181
|
}
|
|
182
182
|
return (n == 1 ? "-" : "") + _e(an(i, l - 2));
|
|
183
183
|
}
|
|
184
184
|
function tl(e, t) {
|
|
185
|
-
return e = e.toString(), t = t.toString(), t = nl(t),
|
|
185
|
+
return e = e.toString(), t = t.toString(), t = nl(t), pn(e, t);
|
|
186
186
|
}
|
|
187
187
|
function nl(e) {
|
|
188
188
|
return e[0] == "-" ? e = e.substr(1) : e = "-" + e, e;
|
|
@@ -273,10 +273,10 @@ class me {
|
|
|
273
273
|
return this.value.indexOf(".") === -1 ? new me(this.value) : new me(this.value).round(0, Ae.CEILING);
|
|
274
274
|
}
|
|
275
275
|
static add(t, l) {
|
|
276
|
-
return t = me.validate(t), l = me.validate(l),
|
|
276
|
+
return t = me.validate(t), l = me.validate(l), pn(t, l);
|
|
277
277
|
}
|
|
278
278
|
add(t) {
|
|
279
|
-
return new me(
|
|
279
|
+
return new me(pn(this.value, t.getValue()));
|
|
280
280
|
}
|
|
281
281
|
static subtract(t, l) {
|
|
282
282
|
return t = me.validate(t), l = me.validate(l), tl(t, l);
|
|
@@ -409,15 +409,15 @@ function Pl(e, t, l = !1) {
|
|
|
409
409
|
}
|
|
410
410
|
return e;
|
|
411
411
|
}
|
|
412
|
-
const
|
|
412
|
+
const Bn = js ? Promise.resolve() : null;
|
|
413
413
|
function fm(e, ...t) {
|
|
414
|
-
|
|
414
|
+
Bn !== null ? t && t.length > 0 ? Bn.then(() => {
|
|
415
415
|
e(t);
|
|
416
|
-
}) :
|
|
416
|
+
}) : Bn.then(e) : t && t.length > 0 ? setTimeout(() => {
|
|
417
417
|
e(t);
|
|
418
418
|
}) : setTimeout(e);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function he(e) {
|
|
421
421
|
return e == null ? !1 : typeof e == "boolean" ? e : typeof e == "string" ? e.toLocaleLowerCase() === "true" : !!e;
|
|
422
422
|
}
|
|
423
423
|
function Le(e) {
|
|
@@ -545,7 +545,7 @@ function vm(e, t) {
|
|
|
545
545
|
}
|
|
546
546
|
return t.lastIndexOf(e);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function In(e) {
|
|
549
549
|
return e == null || e == null ? 0 : typeof e == "string" ? e.length : `${e}`.length;
|
|
550
550
|
}
|
|
551
551
|
function Qs(e, ...t) {
|
|
@@ -1018,7 +1018,7 @@ function xl(e, t, l) {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
return new li(t, l, e);
|
|
1020
1020
|
}
|
|
1021
|
-
const
|
|
1021
|
+
const bn = Symbol.for("EventEmitterKey");
|
|
1022
1022
|
class co {
|
|
1023
1023
|
/**
|
|
1024
1024
|
* 监听器
|
|
@@ -1078,7 +1078,7 @@ class co {
|
|
|
1078
1078
|
}), this.proxy && Reflect.apply(this.proxy.$emit, this.proxy, [t, ...l]);
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function xn(e, t) {
|
|
1082
1082
|
let l = null;
|
|
1083
1083
|
return function(...n) {
|
|
1084
1084
|
l && clearTimeout(l), l = setTimeout(() => {
|
|
@@ -1094,7 +1094,7 @@ function ai(e, t) {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
1096
|
function Cm(e, t) {
|
|
1097
|
-
const l =
|
|
1097
|
+
const l = xn((n, a) => {
|
|
1098
1098
|
e = n, a();
|
|
1099
1099
|
}, t);
|
|
1100
1100
|
return er((n, a) => ({
|
|
@@ -1293,7 +1293,7 @@ function nn() {
|
|
|
1293
1293
|
function Ct(e = null) {
|
|
1294
1294
|
return e || (e = Me()?.proxy ?? null), e ? e[Ze] ?? qe(Ze, null) : qe(Ze, null);
|
|
1295
1295
|
}
|
|
1296
|
-
const
|
|
1296
|
+
const zn = Symbol("OriginalDateKey");
|
|
1297
1297
|
function fo(e, t, l = [], n) {
|
|
1298
1298
|
const a = Me();
|
|
1299
1299
|
let o = a?.proxy, r = qe(Ze, null);
|
|
@@ -1302,10 +1302,10 @@ function fo(e, t, l = [], n) {
|
|
|
1302
1302
|
let s = new Sl(i);
|
|
1303
1303
|
s.parent = r;
|
|
1304
1304
|
const u = (c) => {
|
|
1305
|
-
o[
|
|
1306
|
-
}, f = () => s?.getForSelf("modelValue") ?? null, h = () => o[
|
|
1305
|
+
o[zn] || v(c), s?.set("modelValue", c);
|
|
1306
|
+
}, f = () => s?.getForSelf("modelValue") ?? null, h = () => o[zn] ?? null, v = (c) => {
|
|
1307
1307
|
const d = {};
|
|
1308
|
-
zt(!0, d, xe(c)), o[
|
|
1308
|
+
zt(!0, d, xe(c)), o[zn] = d;
|
|
1309
1309
|
};
|
|
1310
1310
|
ht(t) || typeof t == "function" ? fe(
|
|
1311
1311
|
t,
|
|
@@ -1576,8 +1576,8 @@ function Be(e, t, l) {
|
|
|
1576
1576
|
c && i && i.emitToChildren(c, "clearValidate", !1);
|
|
1577
1577
|
};
|
|
1578
1578
|
let f = new co(a);
|
|
1579
|
-
a[
|
|
1580
|
-
const h =
|
|
1579
|
+
a[bn] = f;
|
|
1580
|
+
const h = xn((g = "validate") => {
|
|
1581
1581
|
u && (g === "reset" ? u.clear() : u.validate());
|
|
1582
1582
|
}, 60);
|
|
1583
1583
|
return (Array.isArray(e.validateCheckEvents) ? e.validateCheckEvents : ti()).forEach((g) => {
|
|
@@ -1589,7 +1589,7 @@ function Be(e, t, l) {
|
|
|
1589
1589
|
h("reset");
|
|
1590
1590
|
});
|
|
1591
1591
|
}), tt(() => {
|
|
1592
|
-
i?.destroy(), a[Ve] = void 0, ke(Ve, null), i = null, u?.destroy(), a[st] = void 0, ke(st, null), u = null, f?.destroy(), a[
|
|
1592
|
+
i?.destroy(), a[Ve] = void 0, ke(Ve, null), i = null, u?.destroy(), a[st] = void 0, ke(st, null), u = null, f?.destroy(), a[bn] = void 0, f = null, a.broadcast = null, a.validate = null, a.setValidateRule = null, a.setNameValidateRules = null, a.clearValidate = null;
|
|
1593
1593
|
}), {
|
|
1594
1594
|
broadcast: i,
|
|
1595
1595
|
validateSchema: u,
|
|
@@ -1698,8 +1698,8 @@ function ii(e, t, l, n, a) {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
function ui() {
|
|
1700
1700
|
let t = Me()?.proxy, l = new co(t);
|
|
1701
|
-
return t[
|
|
1702
|
-
l?.destroy(), t[
|
|
1701
|
+
return t[bn] = l, tt(() => {
|
|
1702
|
+
l?.destroy(), t[bn] = void 0, l = null, t = null;
|
|
1703
1703
|
}), {
|
|
1704
1704
|
emitEvent: (n, ...a) => {
|
|
1705
1705
|
l && Reflect.apply(l.emit, l, [n, ...a]);
|
|
@@ -1821,14 +1821,14 @@ function ci(e, t = {}) {
|
|
|
1821
1821
|
function $l(e) {
|
|
1822
1822
|
return e.get(St);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function wn(e, t) {
|
|
1825
1825
|
if (t = t ?? e.get(St), t && t.headerMounted) {
|
|
1826
1826
|
const l = t.safeAreaTop == -1 ? 0 : t.safeAreaTop;
|
|
1827
1827
|
return t.headerAllHeight ?? t.headerHeight + l;
|
|
1828
1828
|
}
|
|
1829
1829
|
return 0;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function Sn(e, t) {
|
|
1832
1832
|
if (t = t ?? e.get(St), t && t.footerMounted) {
|
|
1833
1833
|
const l = t.safeAreaBottom == -1 ? 0 : t.safeAreaBottom;
|
|
1834
1834
|
return t.footerAllHeight ?? t.footerHeight + l;
|
|
@@ -1839,7 +1839,7 @@ function al(e, t) {
|
|
|
1839
1839
|
if (t = t ?? e.get(St), t) {
|
|
1840
1840
|
if (t.contentInnerHeight)
|
|
1841
1841
|
return t.contentInnerHeight;
|
|
1842
|
-
const l =
|
|
1842
|
+
const l = wn(e, t), n = Sn(e, t);
|
|
1843
1843
|
return t.height - l - n - (t.contentPadding.top ?? 0) - (t.contentPadding.bottom ?? 0);
|
|
1844
1844
|
}
|
|
1845
1845
|
return 0;
|
|
@@ -1855,7 +1855,7 @@ function km(e) {
|
|
|
1855
1855
|
return !!e.getForParent(St);
|
|
1856
1856
|
}
|
|
1857
1857
|
var et = /* @__PURE__ */ ((e) => (e[e.Parent = 0] = "Parent", e[e.Near = 1] = "Near", e))(et || {});
|
|
1858
|
-
function
|
|
1858
|
+
function dn(e, t) {
|
|
1859
1859
|
return e == null ? !1 : typeof t == "function" ? t(e) : !0;
|
|
1860
1860
|
}
|
|
1861
1861
|
function Ge(e, t, l = 1, n) {
|
|
@@ -1864,25 +1864,39 @@ function Ge(e, t, l = 1, n) {
|
|
|
1864
1864
|
const o = a.getAll(t);
|
|
1865
1865
|
for (let i = o.length - 1; i >= 0; i--) {
|
|
1866
1866
|
const s = o[i];
|
|
1867
|
-
if (
|
|
1867
|
+
if (dn(s, n))
|
|
1868
1868
|
return s;
|
|
1869
1869
|
}
|
|
1870
1870
|
const r = e.value;
|
|
1871
|
-
return
|
|
1871
|
+
return dn(r, n) ? r : null;
|
|
1872
1872
|
}) : S(() => {
|
|
1873
1873
|
const o = e.value;
|
|
1874
|
-
|
|
1874
|
+
if (dn(o, n))
|
|
1875
|
+
return o;
|
|
1876
|
+
const r = a.getAll(t);
|
|
1877
|
+
for (let i = 0; i < r.length; i++) {
|
|
1878
|
+
const s = r[i];
|
|
1879
|
+
if (dn(s, n))
|
|
1880
|
+
return s;
|
|
1881
|
+
}
|
|
1882
|
+
return null;
|
|
1875
1883
|
});
|
|
1876
1884
|
}
|
|
1877
1885
|
function Ue(e) {
|
|
1878
|
-
return Ge(
|
|
1879
|
-
|
|
1880
|
-
|
|
1886
|
+
return Ge(
|
|
1887
|
+
e,
|
|
1888
|
+
"readonly",
|
|
1889
|
+
1
|
|
1890
|
+
/* Near */
|
|
1891
|
+
);
|
|
1881
1892
|
}
|
|
1882
1893
|
function Xe(e) {
|
|
1883
|
-
return Ge(
|
|
1884
|
-
|
|
1885
|
-
|
|
1894
|
+
return Ge(
|
|
1895
|
+
e,
|
|
1896
|
+
"disabled",
|
|
1897
|
+
1
|
|
1898
|
+
/* Near */
|
|
1899
|
+
);
|
|
1886
1900
|
}
|
|
1887
1901
|
function Se(e, t = "modelValue", l = null, n) {
|
|
1888
1902
|
const a = ln(e, t);
|
|
@@ -1896,15 +1910,15 @@ function Se(e, t = "modelValue", l = null, n) {
|
|
|
1896
1910
|
} else i !== r.value && (r.value = i, n && n("setValue", i));
|
|
1897
1911
|
}), r;
|
|
1898
1912
|
}
|
|
1899
|
-
const ho = /* @__PURE__ */ new Map(),
|
|
1913
|
+
const ho = /* @__PURE__ */ new Map(), $n = /* @__PURE__ */ new Map();
|
|
1900
1914
|
let rl = null;
|
|
1901
1915
|
function fi(e) {
|
|
1902
1916
|
rl = e;
|
|
1903
1917
|
}
|
|
1904
1918
|
function go(e, t, l) {
|
|
1905
1919
|
if (l) {
|
|
1906
|
-
let n =
|
|
1907
|
-
n || (n = /* @__PURE__ */ new Map(),
|
|
1920
|
+
let n = $n.get(l);
|
|
1921
|
+
n || (n = /* @__PURE__ */ new Map(), $n.set(l, n)), n.set(e, t);
|
|
1908
1922
|
} else
|
|
1909
1923
|
ho.set(e, t);
|
|
1910
1924
|
}
|
|
@@ -1912,7 +1926,7 @@ function ot(e, t, l) {
|
|
|
1912
1926
|
!l && rl && (l = rl(e) ?? void 0);
|
|
1913
1927
|
let n = null;
|
|
1914
1928
|
if (l) {
|
|
1915
|
-
let a =
|
|
1929
|
+
let a = $n.get(l);
|
|
1916
1930
|
a && (n = a.get(t));
|
|
1917
1931
|
}
|
|
1918
1932
|
return n || (n = ho.get(t)), n;
|
|
@@ -1924,7 +1938,7 @@ function di(e, t) {
|
|
|
1924
1938
|
}
|
|
1925
1939
|
}
|
|
1926
1940
|
function hi(e) {
|
|
1927
|
-
|
|
1941
|
+
$n.delete(e);
|
|
1928
1942
|
}
|
|
1929
1943
|
function gi() {
|
|
1930
1944
|
return {
|
|
@@ -2092,7 +2106,7 @@ const pi = [
|
|
|
2092
2106
|
wr,
|
|
2093
2107
|
Bt,
|
|
2094
2108
|
Va,
|
|
2095
|
-
|
|
2109
|
+
Nn,
|
|
2096
2110
|
Sr,
|
|
2097
2111
|
$r,
|
|
2098
2112
|
Tr,
|
|
@@ -2129,7 +2143,7 @@ const pi = [
|
|
|
2129
2143
|
Xr,
|
|
2130
2144
|
Ma,
|
|
2131
2145
|
Zr,
|
|
2132
|
-
|
|
2146
|
+
En,
|
|
2133
2147
|
Jr,
|
|
2134
2148
|
Qr,
|
|
2135
2149
|
Jn,
|
|
@@ -2220,33 +2234,38 @@ const Pe = {
|
|
|
2220
2234
|
// 页面范围禁用设置
|
|
2221
2235
|
disabled: {
|
|
2222
2236
|
type: [Boolean, String],
|
|
2223
|
-
required: !1
|
|
2237
|
+
required: !1,
|
|
2238
|
+
default: () => null
|
|
2224
2239
|
},
|
|
2225
2240
|
// 页面范围只读设置
|
|
2226
2241
|
readonly: {
|
|
2227
2242
|
type: [Boolean, String],
|
|
2228
|
-
required: !1
|
|
2243
|
+
required: !1,
|
|
2244
|
+
default: () => null
|
|
2229
2245
|
},
|
|
2230
2246
|
// label position
|
|
2231
2247
|
labelPosition: {
|
|
2232
2248
|
type: String,
|
|
2233
|
-
required: !1
|
|
2249
|
+
required: !1,
|
|
2250
|
+
default: () => null
|
|
2234
2251
|
},
|
|
2235
2252
|
// label width
|
|
2236
2253
|
labelWidth: {
|
|
2237
2254
|
type: [String, Number],
|
|
2238
|
-
required: !1
|
|
2255
|
+
required: !1,
|
|
2256
|
+
default: () => null
|
|
2239
2257
|
},
|
|
2240
2258
|
// text align
|
|
2241
2259
|
textAlign: {
|
|
2242
2260
|
type: [String],
|
|
2243
|
-
required: !1
|
|
2261
|
+
required: !1,
|
|
2262
|
+
default: () => null
|
|
2244
2263
|
},
|
|
2245
2264
|
// 是否有边框
|
|
2246
2265
|
hasBorder: {
|
|
2247
2266
|
type: Boolean,
|
|
2248
2267
|
required: !1,
|
|
2249
|
-
default: !0
|
|
2268
|
+
default: () => !0
|
|
2250
2269
|
}
|
|
2251
2270
|
}, ze = {
|
|
2252
2271
|
// item对应的value名称
|
|
@@ -2263,18 +2282,18 @@ const Pe = {
|
|
|
2263
2282
|
isRequired: {
|
|
2264
2283
|
type: [String, Boolean],
|
|
2265
2284
|
required: !1,
|
|
2266
|
-
default: !1
|
|
2285
|
+
default: () => !1
|
|
2267
2286
|
},
|
|
2268
2287
|
// 跨列数
|
|
2269
2288
|
span: {
|
|
2270
2289
|
type: [Number, String],
|
|
2271
2290
|
required: !1,
|
|
2272
|
-
default: 1
|
|
2291
|
+
default: () => 1
|
|
2273
2292
|
},
|
|
2274
2293
|
// 列偏移量
|
|
2275
2294
|
offset: {
|
|
2276
2295
|
type: [Number, String],
|
|
2277
|
-
default: 0
|
|
2296
|
+
default: () => 0
|
|
2278
2297
|
},
|
|
2279
2298
|
// 宽度
|
|
2280
2299
|
width: {
|
|
@@ -2285,19 +2304,19 @@ const Pe = {
|
|
|
2285
2304
|
infoMarkClass: {
|
|
2286
2305
|
type: String,
|
|
2287
2306
|
required: !1,
|
|
2288
|
-
default: "is-info"
|
|
2307
|
+
default: () => "is-info"
|
|
2289
2308
|
},
|
|
2290
2309
|
// item警告标识class
|
|
2291
2310
|
warnMarkClass: {
|
|
2292
2311
|
type: String,
|
|
2293
2312
|
required: !1,
|
|
2294
|
-
default: "is-warn"
|
|
2313
|
+
default: () => "is-warn"
|
|
2295
2314
|
},
|
|
2296
2315
|
// item错误标识class
|
|
2297
2316
|
errorMarkClass: {
|
|
2298
2317
|
type: String,
|
|
2299
2318
|
required: !1,
|
|
2300
|
-
default: "is-error"
|
|
2319
|
+
default: () => "is-error"
|
|
2301
2320
|
},
|
|
2302
2321
|
// 错误提示
|
|
2303
2322
|
errorTip: {
|
|
@@ -2348,19 +2367,20 @@ const Pe = {
|
|
|
2348
2367
|
contentClass: {
|
|
2349
2368
|
type: String,
|
|
2350
2369
|
required: !1,
|
|
2351
|
-
default: "content--default"
|
|
2370
|
+
default: () => "content--default"
|
|
2352
2371
|
},
|
|
2353
2372
|
// content style
|
|
2354
2373
|
contentStyle: {
|
|
2355
2374
|
type: Object,
|
|
2356
2375
|
required: !1,
|
|
2357
|
-
default: {
|
|
2376
|
+
default: () => {
|
|
2377
|
+
}
|
|
2358
2378
|
},
|
|
2359
2379
|
// hint类型
|
|
2360
2380
|
hintType: {
|
|
2361
2381
|
type: String,
|
|
2362
2382
|
required: !1,
|
|
2363
|
-
default: "text"
|
|
2383
|
+
default: () => "text"
|
|
2364
2384
|
},
|
|
2365
2385
|
// hint text
|
|
2366
2386
|
hintText: {
|
|
@@ -2371,19 +2391,20 @@ const Pe = {
|
|
|
2371
2391
|
hintVisible: {
|
|
2372
2392
|
type: [Boolean, String],
|
|
2373
2393
|
required: !1,
|
|
2374
|
-
default: !0
|
|
2394
|
+
default: () => !0
|
|
2375
2395
|
},
|
|
2376
2396
|
// hint 属性
|
|
2377
2397
|
hintProps: {
|
|
2378
2398
|
type: Object,
|
|
2379
2399
|
required: !1,
|
|
2380
|
-
default: {
|
|
2400
|
+
default: () => {
|
|
2401
|
+
}
|
|
2381
2402
|
},
|
|
2382
2403
|
// 可见监听
|
|
2383
2404
|
appearListen: {
|
|
2384
2405
|
type: [Boolean, String],
|
|
2385
2406
|
required: !1,
|
|
2386
|
-
default: !1
|
|
2407
|
+
default: () => !1
|
|
2387
2408
|
}
|
|
2388
2409
|
}, vo = {
|
|
2389
2410
|
// 列数
|
|
@@ -2426,7 +2447,7 @@ const Pe = {
|
|
|
2426
2447
|
tag: {
|
|
2427
2448
|
type: String,
|
|
2428
2449
|
required: !1,
|
|
2429
|
-
default: "div"
|
|
2450
|
+
default: () => "div"
|
|
2430
2451
|
},
|
|
2431
2452
|
// model value
|
|
2432
2453
|
modelValue: {
|
|
@@ -2452,36 +2473,36 @@ const Pe = {
|
|
|
2452
2473
|
justify: {
|
|
2453
2474
|
type: [String],
|
|
2454
2475
|
required: !1,
|
|
2455
|
-
default: "stretch"
|
|
2476
|
+
default: () => "stretch"
|
|
2456
2477
|
},
|
|
2457
2478
|
// grid 布局下的垂直排列方式
|
|
2458
2479
|
align: {
|
|
2459
2480
|
type: [String],
|
|
2460
2481
|
required: !1,
|
|
2461
|
-
default: "start"
|
|
2482
|
+
default: () => "start"
|
|
2462
2483
|
},
|
|
2463
2484
|
// 跨列数
|
|
2464
2485
|
span: {
|
|
2465
2486
|
type: [Number, String],
|
|
2466
2487
|
required: !1,
|
|
2467
|
-
default: 1
|
|
2488
|
+
default: () => 1
|
|
2468
2489
|
},
|
|
2469
2490
|
// 列偏移量
|
|
2470
2491
|
offset: {
|
|
2471
2492
|
type: [Number],
|
|
2472
|
-
default: 0
|
|
2493
|
+
default: () => 0
|
|
2473
2494
|
},
|
|
2474
2495
|
// 自动调整布局
|
|
2475
2496
|
autoLayout: {
|
|
2476
2497
|
type: [Boolean],
|
|
2477
2498
|
required: !1,
|
|
2478
|
-
default: !0
|
|
2499
|
+
default: () => !0
|
|
2479
2500
|
},
|
|
2480
2501
|
// 是否包裹容器
|
|
2481
2502
|
isWrap: {
|
|
2482
2503
|
type: [Boolean, String],
|
|
2483
2504
|
required: !1,
|
|
2484
|
-
default: !0
|
|
2505
|
+
default: () => !0
|
|
2485
2506
|
},
|
|
2486
2507
|
// 宽度
|
|
2487
2508
|
width: {
|
|
@@ -2497,7 +2518,7 @@ const Pe = {
|
|
|
2497
2518
|
showMark: {
|
|
2498
2519
|
type: [String, Boolean],
|
|
2499
2520
|
required: !1,
|
|
2500
|
-
default: !0
|
|
2521
|
+
default: () => !0
|
|
2501
2522
|
},
|
|
2502
2523
|
// mark color
|
|
2503
2524
|
markColor: {
|
|
@@ -2507,7 +2528,7 @@ const Pe = {
|
|
|
2507
2528
|
// 标题
|
|
2508
2529
|
title: {
|
|
2509
2530
|
type: String,
|
|
2510
|
-
default: ""
|
|
2531
|
+
default: () => ""
|
|
2511
2532
|
},
|
|
2512
2533
|
// title color
|
|
2513
2534
|
titleColor: {
|
|
@@ -2523,13 +2544,13 @@ const Pe = {
|
|
|
2523
2544
|
showCollapse: {
|
|
2524
2545
|
type: [String, Boolean],
|
|
2525
2546
|
required: !1,
|
|
2526
|
-
default: !1
|
|
2547
|
+
default: () => !1
|
|
2527
2548
|
},
|
|
2528
2549
|
// 收缩区域位置
|
|
2529
2550
|
collapsePosition: {
|
|
2530
2551
|
type: [String],
|
|
2531
2552
|
requried: !1,
|
|
2532
|
-
default: "right"
|
|
2553
|
+
default: () => "right"
|
|
2533
2554
|
},
|
|
2534
2555
|
// 收缩text
|
|
2535
2556
|
collapseText: {
|
|
@@ -2555,7 +2576,7 @@ const Pe = {
|
|
|
2555
2576
|
rollingDisplay: {
|
|
2556
2577
|
type: [Boolean],
|
|
2557
2578
|
requried: !1,
|
|
2558
|
-
default: !0
|
|
2579
|
+
default: () => !0
|
|
2559
2580
|
}
|
|
2560
2581
|
}, yo = [];
|
|
2561
2582
|
for (const e in mo)
|
|
@@ -2565,7 +2586,7 @@ const wi = Symbol.for("InnerPageScopeKey"), Si = {
|
|
|
2565
2586
|
name: {
|
|
2566
2587
|
type: String,
|
|
2567
2588
|
required: !1,
|
|
2568
|
-
default: ""
|
|
2589
|
+
default: () => ""
|
|
2569
2590
|
},
|
|
2570
2591
|
// model value
|
|
2571
2592
|
modelValue: {
|
|
@@ -2645,8 +2666,8 @@ const wi = Symbol.for("InnerPageScopeKey"), Si = {
|
|
|
2645
2666
|
Re({
|
|
2646
2667
|
getPageContentHeight: () => al(a, f),
|
|
2647
2668
|
getPageContentWidth: () => ol(a, f),
|
|
2648
|
-
getPageHeaderHeight: () =>
|
|
2649
|
-
getPageFooterHeight: () =>
|
|
2669
|
+
getPageHeaderHeight: () => wn(a, f),
|
|
2670
|
+
getPageFooterHeight: () => Sn(a, f)
|
|
2650
2671
|
}), f && o && (f.contentHeight = "100%");
|
|
2651
2672
|
}
|
|
2652
2673
|
const r = S(() => ({
|
|
@@ -3077,7 +3098,7 @@ function Pi(e, t) {
|
|
|
3077
3098
|
const y = dt(l.padding);
|
|
3078
3099
|
Object.assign(o.contentPadding, y);
|
|
3079
3100
|
}
|
|
3080
|
-
const f =
|
|
3101
|
+
const f = wn(n, o), h = Sn(n, o);
|
|
3081
3102
|
let v = "";
|
|
3082
3103
|
if (o.contentHeight ? v = `${o.contentHeight}` : v = `${o.height}px`, o.contentPadding, u.height = v, o.contentPadding.top || f > 0) {
|
|
3083
3104
|
const y = (o && o.contentPadding && o.contentPadding.top) ?? 0;
|
|
@@ -3102,7 +3123,7 @@ function Pi(e, t) {
|
|
|
3102
3123
|
};
|
|
3103
3124
|
return Ee(() => {
|
|
3104
3125
|
s();
|
|
3105
|
-
}), n && o && fe([() =>
|
|
3126
|
+
}), n && o && fe([() => wn(n), () => Sn(n)], ([]) => {
|
|
3106
3127
|
s();
|
|
3107
3128
|
}), {
|
|
3108
3129
|
contentRef: i,
|
|
@@ -3128,10 +3149,10 @@ const nt = (e, t) => {
|
|
|
3128
3149
|
l[n] = a;
|
|
3129
3150
|
return l;
|
|
3130
3151
|
}, Bi = /* @__PURE__ */ nt(_i, [["render", qi]]), Ht = "GroupStateKey", bo = Symbol.for("GroupScopeKey");
|
|
3131
|
-
function
|
|
3152
|
+
function Dn() {
|
|
3132
3153
|
return qe(bo, !1);
|
|
3133
3154
|
}
|
|
3134
|
-
function
|
|
3155
|
+
function Fn(e = !0) {
|
|
3135
3156
|
ke(bo, e);
|
|
3136
3157
|
}
|
|
3137
3158
|
function zi(e, t = {}) {
|
|
@@ -3145,7 +3166,7 @@ function zi(e, t = {}) {
|
|
|
3145
3166
|
function Hi(e, t = {}) {
|
|
3146
3167
|
const n = { type: "grid", width: e.get("width", -1), column: -1, gutter: -1 };
|
|
3147
3168
|
zi(n, t);
|
|
3148
|
-
const a =
|
|
3169
|
+
const a = yn(n), o = tr({
|
|
3149
3170
|
// layout
|
|
3150
3171
|
layout: a,
|
|
3151
3172
|
// 通行证
|
|
@@ -3189,11 +3210,11 @@ function Hn(e, t, l = -1, n = -1, a = !1, o, r, i) {
|
|
|
3189
3210
|
}, 50);
|
|
3190
3211
|
}
|
|
3191
3212
|
}
|
|
3192
|
-
function
|
|
3213
|
+
function An(e, t = !1) {
|
|
3193
3214
|
let l;
|
|
3194
3215
|
return t ? l = e.getForParent(Ht) : l = e.get(Ht), l.layout;
|
|
3195
3216
|
}
|
|
3196
|
-
function
|
|
3217
|
+
function On(e, t = !1) {
|
|
3197
3218
|
let l;
|
|
3198
3219
|
return t ? l = e.getForParent(Ht) : l = e.get(Ht), l.order;
|
|
3199
3220
|
}
|
|
@@ -3203,7 +3224,7 @@ function _l(e, t = 1) {
|
|
|
3203
3224
|
const l = Le(t);
|
|
3204
3225
|
return l === -1 ? 100 : 100 * l / e;
|
|
3205
3226
|
}
|
|
3206
|
-
function
|
|
3227
|
+
function Vn(e, t, l = 1, n = 0, a) {
|
|
3207
3228
|
const o = {};
|
|
3208
3229
|
let r = 0;
|
|
3209
3230
|
a ? r = we(a) : r = _l(t.column, l), r > 0 && (o.width = `${r}%`);
|
|
@@ -3212,7 +3233,7 @@ function On(e, t, l = 1, n = 0, a) {
|
|
|
3212
3233
|
const s = t.gutter / 2;
|
|
3213
3234
|
return s > 0 && (o["padding-left"] = `${s}px`, o["padding-right"] = `${s}px`), o;
|
|
3214
3235
|
}
|
|
3215
|
-
function
|
|
3236
|
+
function Rn(e, t, l = 1, n = 0) {
|
|
3216
3237
|
if (l === "stretch") {
|
|
3217
3238
|
const s = e.index % t.column, u = s + (t.column - s);
|
|
3218
3239
|
return e.index = e.index + (u - s), {
|
|
@@ -3291,9 +3312,9 @@ function Ui(e, t, l) {
|
|
|
3291
3312
|
emits: ["update:collapse", "header-click"],
|
|
3292
3313
|
// setup
|
|
3293
3314
|
setup(n, a) {
|
|
3294
|
-
const o = fo(n.prop ?? n.name, n, yo), r = Hi(o, { type: n.type }), i =
|
|
3295
|
-
|
|
3296
|
-
const s = n.rollingDisplay ? Ki() : null, u = R(null), f = S(() => n.rollingDisplay ? s && !s.disabled : !1), h = S(() => i && o ?
|
|
3315
|
+
const o = fo(n.prop ?? n.name, n, yo), r = Hi(o, { type: n.type }), i = Dn();
|
|
3316
|
+
Fn(!0);
|
|
3317
|
+
const s = n.rollingDisplay ? Ki() : null, u = R(null), f = S(() => n.rollingDisplay ? s && !s.disabled : !1), h = S(() => i && o ? An(o, !0).value : null), v = Me(), y = (C, j = !1) => {
|
|
3297
3318
|
const X = v?.proxy;
|
|
3298
3319
|
X && typeof X.setNameValidateRules == "function" && X.setNameValidateRules(C, !0, j);
|
|
3299
3320
|
};
|
|
@@ -3318,13 +3339,13 @@ function Ui(e, t, l) {
|
|
|
3318
3339
|
const g = e, c = S(() => {
|
|
3319
3340
|
const C = {};
|
|
3320
3341
|
C.height = w.value;
|
|
3321
|
-
const j = i ?
|
|
3342
|
+
const j = i ? On(o, !0) : null;
|
|
3322
3343
|
if (h.value && j) {
|
|
3323
3344
|
if (h.value.type === "grid") {
|
|
3324
|
-
const X =
|
|
3345
|
+
const X = Rn(j, h.value, n.span, n.offset);
|
|
3325
3346
|
Object.assign(C, X);
|
|
3326
3347
|
} else if (h.value.type === "flow") {
|
|
3327
|
-
const X =
|
|
3348
|
+
const X = Vn(j, h.value, n.span, n.offset, n.width);
|
|
3328
3349
|
Object.assign(C, X);
|
|
3329
3350
|
}
|
|
3330
3351
|
} else if (n.width) {
|
|
@@ -3358,7 +3379,7 @@ function Ui(e, t, l) {
|
|
|
3358
3379
|
"grid-template-columns": j
|
|
3359
3380
|
};
|
|
3360
3381
|
}
|
|
3361
|
-
}), E = ln(n, "gutter"), $ = ln(n, "column"), q = S(() => i || f.value ? !0 :
|
|
3382
|
+
}), E = ln(n, "gutter"), $ = ln(n, "column"), q = S(() => i || f.value ? !0 : he(n.isWrap)), z = [], M = (C) => {
|
|
3362
3383
|
z.push(C);
|
|
3363
3384
|
}, _ = () => {
|
|
3364
3385
|
let C = z.length;
|
|
@@ -3448,7 +3469,7 @@ function Ui(e, t, l) {
|
|
|
3448
3469
|
const j = xe(n.pureDataRules);
|
|
3449
3470
|
y(j, !0);
|
|
3450
3471
|
}
|
|
3451
|
-
if (Wt && (C && ee(
|
|
3472
|
+
if (Wt && (C && ee(he(n.collapse), !1), n.autoLayout && Array.isArray(z) && z.length > 0)) {
|
|
3452
3473
|
const j = z[0];
|
|
3453
3474
|
b(j), window.ResizeObserver && (I = new window.ResizeObserver(() => {
|
|
3454
3475
|
b(j);
|
|
@@ -3540,8 +3561,8 @@ function Ui(e, t, l) {
|
|
|
3540
3561
|
n.markColor && (ae.style = {
|
|
3541
3562
|
background: n.markColor
|
|
3542
3563
|
});
|
|
3543
|
-
const
|
|
3544
|
-
K.push(
|
|
3564
|
+
const de = O("div", ae);
|
|
3565
|
+
K.push(de);
|
|
3545
3566
|
}
|
|
3546
3567
|
if (a.slots.title) {
|
|
3547
3568
|
const ae = O("div", { class: { [`${g}__header-title`]: !0 } }, [
|
|
@@ -3563,8 +3584,8 @@ function Ui(e, t, l) {
|
|
|
3563
3584
|
ref: V,
|
|
3564
3585
|
class: { [`${g}__header`]: !0, [`${g}__first`]: !0 },
|
|
3565
3586
|
onClick: ne
|
|
3566
|
-
},
|
|
3567
|
-
C.push(
|
|
3587
|
+
}, de = O("div", ae, K);
|
|
3588
|
+
C.push(de);
|
|
3568
3589
|
}
|
|
3569
3590
|
}
|
|
3570
3591
|
_();
|
|
@@ -3598,7 +3619,7 @@ function Ui(e, t, l) {
|
|
|
3598
3619
|
}
|
|
3599
3620
|
};
|
|
3600
3621
|
}
|
|
3601
|
-
const { componentName: Xi, create: Zi, scope: Ji } = ue("group"), Qi = (e, t) => (e = e ??
|
|
3622
|
+
const { componentName: Xi, create: Zi, scope: Ji } = ue("group"), Qi = (e, t) => (e = e ?? kn, O(Pt, t, { default: () => [O(e)] })), eu = Zi(Ui(Xi, Ji, Qi));
|
|
3602
3623
|
function tu(e) {
|
|
3603
3624
|
return e === window;
|
|
3604
3625
|
}
|
|
@@ -3756,7 +3777,7 @@ const ql = new ou(), wo = {
|
|
|
3756
3777
|
setup(e) {
|
|
3757
3778
|
const t = S(() => ({
|
|
3758
3779
|
[ru]: !0
|
|
3759
|
-
})), l = S(() => e.needSymbol ? e.symbol : ""), n = S(() =>
|
|
3780
|
+
})), l = S(() => e.needSymbol ? e.symbol : ""), n = S(() => In(e.price) == 0 ? "" : ml(e.price, e.decimalLength, !0, Le(e.digits), e.separator)), a = S(() => {
|
|
3760
3781
|
let r = n.value;
|
|
3761
3782
|
if (r.length == 0)
|
|
3762
3783
|
return "";
|
|
@@ -3982,7 +4003,7 @@ const So = /* @__PURE__ */ nt(iu, [["render", fu]]), { componentName: jn, create
|
|
|
3982
4003
|
V
|
|
3983
4004
|
);
|
|
3984
4005
|
r.value = A, l.value = L, i.value = !0;
|
|
3985
|
-
}, h = R(0), v =
|
|
4006
|
+
}, h = R(0), v = xn(() => {
|
|
3986
4007
|
f(e.message, e.visible);
|
|
3987
4008
|
}, 10), y = R(e.visible);
|
|
3988
4009
|
fe(
|
|
@@ -3991,7 +4012,7 @@ const So = /* @__PURE__ */ nt(iu, [["render", fu]]), { componentName: jn, create
|
|
|
3991
4012
|
y.value = m;
|
|
3992
4013
|
}
|
|
3993
4014
|
);
|
|
3994
|
-
const g = S(() => y.value && c.value), c = R(!0), d =
|
|
4015
|
+
const g = S(() => y.value && c.value), c = R(!0), d = xn((m) => {
|
|
3995
4016
|
const B = m[0];
|
|
3996
4017
|
B && (c.value = B.isIntersecting);
|
|
3997
4018
|
}, 10), D = new IntersectionObserver(d);
|
|
@@ -4109,7 +4130,7 @@ class mu {
|
|
|
4109
4130
|
return this.seed < 0 && (this.seed = 0), t;
|
|
4110
4131
|
}
|
|
4111
4132
|
}
|
|
4112
|
-
const il = {}, yu = new mu(), _t = /* @__PURE__ */ new Map(),
|
|
4133
|
+
const il = {}, yu = new mu(), _t = /* @__PURE__ */ new Map(), Tn = (e) => {
|
|
4113
4134
|
if (e) {
|
|
4114
4135
|
const t = document.getElementById(e);
|
|
4115
4136
|
_t.delete(e), t && t.parentNode?.removeChild(t);
|
|
@@ -4121,7 +4142,7 @@ const il = {}, yu = new mu(), _t = /* @__PURE__ */ new Map(), $n = (e) => {
|
|
|
4121
4142
|
_t.clear();
|
|
4122
4143
|
}
|
|
4123
4144
|
}, pu = (e) => {
|
|
4124
|
-
e.unmount =
|
|
4145
|
+
e.unmount = Tn;
|
|
4125
4146
|
const t = document.getElementById(e.id);
|
|
4126
4147
|
if (t) {
|
|
4127
4148
|
const l = _t.get(e.id);
|
|
@@ -4131,7 +4152,7 @@ const il = {}, yu = new mu(), _t = /* @__PURE__ */ new Map(), $n = (e) => {
|
|
|
4131
4152
|
}
|
|
4132
4153
|
return e.id;
|
|
4133
4154
|
}, bu = (e) => {
|
|
4134
|
-
e.unmount =
|
|
4155
|
+
e.unmount = Tn;
|
|
4135
4156
|
let t = e.id ?? `hinttext_${yu.get()}`;
|
|
4136
4157
|
e = { ...il, ...e }, e.id = t, _t.set(t, e);
|
|
4137
4158
|
const l = document.createElement("div");
|
|
@@ -4155,14 +4176,14 @@ const il = {}, yu = new mu(), _t = /* @__PURE__ */ new Map(), $n = (e) => {
|
|
|
4155
4176
|
show(e, t, l = {}, n = !0) {
|
|
4156
4177
|
xu(t);
|
|
4157
4178
|
const a = l.id;
|
|
4158
|
-
return a && _t.has(a) ? pu({ ...l, message: t, reference: e }) : (n &&
|
|
4179
|
+
return a && _t.has(a) ? pu({ ...l, message: t, reference: e }) : (n && Tn(), bu({ ...l, message: t, reference: e }));
|
|
4159
4180
|
},
|
|
4160
4181
|
/**
|
|
4161
4182
|
* 隐藏
|
|
4162
4183
|
* @param id
|
|
4163
4184
|
*/
|
|
4164
4185
|
hide(e) {
|
|
4165
|
-
|
|
4186
|
+
Tn(e);
|
|
4166
4187
|
},
|
|
4167
4188
|
/**
|
|
4168
4189
|
* 安装
|
|
@@ -4196,14 +4217,14 @@ function wu(e, t, l, n = !1) {
|
|
|
4196
4217
|
},
|
|
4197
4218
|
r
|
|
4198
4219
|
);
|
|
4199
|
-
const i = Ct(), s =
|
|
4200
|
-
|
|
4201
|
-
const u = S(() => s && i ?
|
|
4220
|
+
const i = Ct(), s = Dn();
|
|
4221
|
+
Fn(!1);
|
|
4222
|
+
const u = S(() => s && i ? An(i, !1).value : null), f = e, h = R(null), v = S(() => {
|
|
4202
4223
|
const N = {
|
|
4203
4224
|
[f]: !0,
|
|
4204
4225
|
[`${f}__gutter`]: u.value && u.value.type !== "flow",
|
|
4205
4226
|
[`${f}__stretch`]: a.span === "stretch",
|
|
4206
|
-
[`${f}__input--border`]:
|
|
4227
|
+
[`${f}__input--border`]: he(a.hasBorder)
|
|
4207
4228
|
};
|
|
4208
4229
|
if (N[a.errorMarkClass] = !!A.value, N[a.warnMarkClass] = !!V.value, N[a.infoMarkClass] = !!B.value, typeof h.value == "function") {
|
|
4209
4230
|
const K = h.value(r);
|
|
@@ -4218,13 +4239,13 @@ function wu(e, t, l, n = !1) {
|
|
|
4218
4239
|
if (a.width)
|
|
4219
4240
|
a.width !== "auto" && (N.width = We(a.width));
|
|
4220
4241
|
else {
|
|
4221
|
-
const K = s && i ?
|
|
4242
|
+
const K = s && i ? On(i, !1) : null;
|
|
4222
4243
|
if (u.value && K) {
|
|
4223
4244
|
if (u.value.type === "grid") {
|
|
4224
|
-
const te =
|
|
4245
|
+
const te = Rn(K, u.value, a.span, a.offset);
|
|
4225
4246
|
Object.assign(N, te);
|
|
4226
4247
|
} else if (u.value.type === "flow") {
|
|
4227
|
-
const te =
|
|
4248
|
+
const te = Vn(K, u.value, a.span, a.offset, a.width);
|
|
4228
4249
|
Object.assign(N, te);
|
|
4229
4250
|
}
|
|
4230
4251
|
}
|
|
@@ -4238,7 +4259,7 @@ function wu(e, t, l, n = !1) {
|
|
|
4238
4259
|
}
|
|
4239
4260
|
return N;
|
|
4240
4261
|
}), c = R(null), d = S({
|
|
4241
|
-
get: () => c.value ??
|
|
4262
|
+
get: () => c.value ?? he(a.isRequired),
|
|
4242
4263
|
set: (N) => {
|
|
4243
4264
|
c.value = N;
|
|
4244
4265
|
}
|
|
@@ -4337,12 +4358,12 @@ function wu(e, t, l, n = !1) {
|
|
|
4337
4358
|
!p || !F.value || (p.unobserve(F.value), p = null);
|
|
4338
4359
|
};
|
|
4339
4360
|
fe(
|
|
4340
|
-
() =>
|
|
4361
|
+
() => he(a.appearListen),
|
|
4341
4362
|
(N) => {
|
|
4342
4363
|
N ? H() : U();
|
|
4343
4364
|
}
|
|
4344
4365
|
), Ee(() => {
|
|
4345
|
-
|
|
4366
|
+
he(a.appearListen) && H();
|
|
4346
4367
|
}), tt(U);
|
|
4347
4368
|
const le = () => {
|
|
4348
4369
|
if (!D())
|
|
@@ -4354,11 +4375,11 @@ function wu(e, t, l, n = !1) {
|
|
|
4354
4375
|
const ie = o.slots.fixedPreTip();
|
|
4355
4376
|
N.push(ie);
|
|
4356
4377
|
}
|
|
4357
|
-
const
|
|
4378
|
+
const de = {
|
|
4358
4379
|
class: z.value,
|
|
4359
4380
|
style: _.value
|
|
4360
4381
|
};
|
|
4361
|
-
return O("div",
|
|
4382
|
+
return O("div", de, N);
|
|
4362
4383
|
}, G = () => {
|
|
4363
4384
|
const N = [];
|
|
4364
4385
|
if (o.slots.prepend) {
|
|
@@ -4409,9 +4430,9 @@ function wu(e, t, l, n = !1) {
|
|
|
4409
4430
|
te && K.push(te);
|
|
4410
4431
|
const ae = G();
|
|
4411
4432
|
ae && K.push(ae);
|
|
4412
|
-
const
|
|
4433
|
+
const de = {
|
|
4413
4434
|
class: q.value
|
|
4414
|
-
}, ie = O("div",
|
|
4435
|
+
}, ie = O("div", de, K);
|
|
4415
4436
|
N.push(ie);
|
|
4416
4437
|
const Q = j();
|
|
4417
4438
|
Q && N.push(Q);
|
|
@@ -4451,20 +4472,20 @@ function Cu(e, t) {
|
|
|
4451
4472
|
},
|
|
4452
4473
|
// setup
|
|
4453
4474
|
setup(l, n) {
|
|
4454
|
-
const a = Ct(), o =
|
|
4455
|
-
|
|
4456
|
-
const r = S(() => o && a ?
|
|
4475
|
+
const a = Ct(), o = Dn();
|
|
4476
|
+
Fn(!1);
|
|
4477
|
+
const r = S(() => o && a ? An(a, !1).value : null), i = e, s = S(() => ({
|
|
4457
4478
|
[i]: !0,
|
|
4458
4479
|
[`${i}__gutter`]: r.value && r.value.type !== "flow",
|
|
4459
4480
|
[`${i}__stretch`]: l.span === "stretch"
|
|
4460
4481
|
})), u = S(() => {
|
|
4461
|
-
const f = {}, h = o && a ?
|
|
4482
|
+
const f = {}, h = o && a ? On(a, !1) : null;
|
|
4462
4483
|
if (r.value && h)
|
|
4463
4484
|
if (r.value.type === "grid") {
|
|
4464
|
-
const v =
|
|
4485
|
+
const v = Rn(h, r.value, l.span, l.offset);
|
|
4465
4486
|
Object.assign(f, v);
|
|
4466
4487
|
} else if (r.value.type === "flow") {
|
|
4467
|
-
const v =
|
|
4488
|
+
const v = Vn(h, r.value, l.span, l.offset, l.width);
|
|
4468
4489
|
Object.assign(f, v);
|
|
4469
4490
|
} else
|
|
4470
4491
|
return l.width && (f.width = We(l.width)), f;
|
|
@@ -4530,18 +4551,18 @@ function Iu(e, t) {
|
|
|
4530
4551
|
[a]: !0,
|
|
4531
4552
|
[`${a}__stretch`]: l.span === "stretch",
|
|
4532
4553
|
[`${a}__${l.align}`]: !0
|
|
4533
|
-
})), r = Ct(), i =
|
|
4534
|
-
|
|
4554
|
+
})), r = Ct(), i = Dn();
|
|
4555
|
+
Fn(!1);
|
|
4535
4556
|
const s = S(() => {
|
|
4536
4557
|
const u = {};
|
|
4537
4558
|
if (i && r) {
|
|
4538
|
-
const f =
|
|
4559
|
+
const f = An(r, !1), h = On(r, !1);
|
|
4539
4560
|
if (f.value && h)
|
|
4540
4561
|
if (f.value.type === "grid") {
|
|
4541
|
-
const v =
|
|
4562
|
+
const v = Rn(h, f.value, l.span, l.offset);
|
|
4542
4563
|
Object.assign(u, v);
|
|
4543
4564
|
} else if (f.value.type === "flow") {
|
|
4544
|
-
const v =
|
|
4565
|
+
const v = Vn(h, f.value, l.span, l.offset, l.width);
|
|
4545
4566
|
Object.assign(u, v);
|
|
4546
4567
|
} else
|
|
4547
4568
|
l.width && (u.width = We(l.width));
|
|
@@ -4677,7 +4698,7 @@ function Ou(e, t, l) {
|
|
|
4677
4698
|
}, 150));
|
|
4678
4699
|
}, T = () => {
|
|
4679
4700
|
P && (clearTimeout(P), _.value = !1, P = null);
|
|
4680
|
-
}, m = S(() => _.value || $.value), B = S(() => _.value ? y.value : E.value), J = S(() =>
|
|
4701
|
+
}, m = S(() => _.value || $.value), B = S(() => _.value ? y.value : E.value), J = S(() => In(n.unit) > 0), V = R();
|
|
4681
4702
|
return Re({
|
|
4682
4703
|
//使 input 获取焦点
|
|
4683
4704
|
focus: () => {
|
|
@@ -4976,27 +4997,27 @@ function zu(e, t, l) {
|
|
|
4976
4997
|
te = !1;
|
|
4977
4998
|
else
|
|
4978
4999
|
for (let ae = 0; ae < K.length; ae++) {
|
|
4979
|
-
const
|
|
4980
|
-
if (!To(n,
|
|
5000
|
+
const de = K[ae], ie = y.value[ae];
|
|
5001
|
+
if (!To(n, de, ie)) {
|
|
4981
5002
|
te = !1;
|
|
4982
5003
|
break;
|
|
4983
5004
|
}
|
|
4984
5005
|
}
|
|
4985
5006
|
if (!te) {
|
|
4986
5007
|
y.value = K;
|
|
4987
|
-
let ae = [],
|
|
5008
|
+
let ae = [], de = [], ie = [];
|
|
4988
5009
|
K.forEach((ge) => {
|
|
4989
5010
|
const Fe = on(n, ge), Ce = bt(n, ge);
|
|
4990
|
-
ae.push(Fe), ie.push(Ce), n.valueType === "text" ?
|
|
5011
|
+
ae.push(Fe), ie.push(Ce), n.valueType === "text" ? de.push(Ce) : n.valueType === "item" ? de.push(ge) : de.push(Fe);
|
|
4991
5012
|
});
|
|
4992
5013
|
let Q, oe, re;
|
|
4993
|
-
|
|
5014
|
+
he(n.multiple) ? (v.value = ae, Q = xe(de), oe = ie, re = xe(K)) : (v.value = ae[0] ?? "", Q = xe(de[0] ?? ""), oe = ie[0] ?? "", re = xe(K[0])), N && (u("update:modelValue", Q), u("change", Q, re)), u("update:text", oe);
|
|
4994
5015
|
}
|
|
4995
5016
|
}, d = R(null), D = R(null), E = S(() => D.value ?? d.value ?? []), $ = Ge(
|
|
4996
5017
|
S(() => n.appearLoad),
|
|
4997
5018
|
"appearLoad",
|
|
4998
5019
|
et.Near,
|
|
4999
|
-
(C) =>
|
|
5020
|
+
(C) => he(C)
|
|
5000
5021
|
), q = qu(), z = async (C, j) => {
|
|
5001
5022
|
if (C) {
|
|
5002
5023
|
const X = await q.load("select", C, j);
|
|
@@ -5022,7 +5043,7 @@ function zu(e, t, l) {
|
|
|
5022
5043
|
M || (M = !0, z(n.source, n.params));
|
|
5023
5044
|
};
|
|
5024
5045
|
fe([() => d.value, () => n.modelValue], ([C, j]) => {
|
|
5025
|
-
if (m() &&
|
|
5046
|
+
if (m() && he(n.multiple)) {
|
|
5026
5047
|
wt(j, v.value) || (v.value = j);
|
|
5027
5048
|
return;
|
|
5028
5049
|
}
|
|
@@ -5061,7 +5082,7 @@ function zu(e, t, l) {
|
|
|
5061
5082
|
const m = () => typeof n.remoteMethod == "function" || typeof n.filterMethod == "function", B = R(!1), J = e, V = S(() => ({
|
|
5062
5083
|
[J]: !0
|
|
5063
5084
|
})), w = (C) => {
|
|
5064
|
-
n.allowCreate || m() &&
|
|
5085
|
+
n.allowCreate || m() && he(n.multiple) ? (u("update:modelValue", C), u("change", C), u("update:text", C), v.value = C) : c(C, "value", E.value, !0);
|
|
5065
5086
|
};
|
|
5066
5087
|
let A = Se(n, "hintText"), L = R(!1);
|
|
5067
5088
|
const Y = (C) => {
|
|
@@ -5092,15 +5113,15 @@ function zu(e, t, l) {
|
|
|
5092
5113
|
return C.forEach((N, K) => {
|
|
5093
5114
|
const te = $o(n, N);
|
|
5094
5115
|
if (Array.isArray(te) && te.length > 0) {
|
|
5095
|
-
const ae = G(te, j),
|
|
5096
|
-
key: `${
|
|
5097
|
-
label:
|
|
5116
|
+
const ae = G(te, j), de = bt(n, N), Q = {
|
|
5117
|
+
key: `${de}_${K}`,
|
|
5118
|
+
label: de
|
|
5098
5119
|
};
|
|
5099
5120
|
X.push(O(Ha, Q, { default: () => ae }));
|
|
5100
5121
|
} else {
|
|
5101
|
-
const ae = on(n, N),
|
|
5122
|
+
const ae = on(n, N), de = bt(n, N), ie = Mu(n, N), oe = {
|
|
5102
5123
|
key: `${ae}_${K}`,
|
|
5103
|
-
label:
|
|
5124
|
+
label: de,
|
|
5104
5125
|
disabled: ie,
|
|
5105
5126
|
value: ae
|
|
5106
5127
|
};
|
|
@@ -5111,7 +5132,7 @@ function zu(e, t, l) {
|
|
|
5111
5132
|
class: { "fox-select-item__option-left": !0 }
|
|
5112
5133
|
}, [ae]), Ce = O("span", {
|
|
5113
5134
|
class: { "fox-select-item__option-right": !0 }
|
|
5114
|
-
}, [
|
|
5135
|
+
}, [de]), ct = O("div", { class: { "fox-select-item__option": !0 } }, [ge, Ce]);
|
|
5115
5136
|
X.push(O(Qt, oe, { default: () => ct }));
|
|
5116
5137
|
} else n.optionType === "value" ? X.push(O(Qt, oe, { default: () => [ae] })) : X.push(O(Qt, oe));
|
|
5117
5138
|
}
|
|
@@ -5162,14 +5183,14 @@ function zu(e, t, l) {
|
|
|
5162
5183
|
default: () => N
|
|
5163
5184
|
};
|
|
5164
5185
|
a.slots.default && (te.label = a.slots.default), a.slots.fixedTip && (te.fixedTip = a.slots.fixedTip);
|
|
5165
|
-
const
|
|
5186
|
+
const de = {
|
|
5166
5187
|
...Ye(n, zl),
|
|
5167
5188
|
hintText: p.value,
|
|
5168
5189
|
hintVisible: I.value,
|
|
5169
5190
|
onMouseover: x,
|
|
5170
5191
|
onMouseleave: F
|
|
5171
5192
|
};
|
|
5172
|
-
return n.prop && (
|
|
5193
|
+
return n.prop && (de.prop = `${n.prop}_item`), $.value && (de["appear-listen"] = !0, de.onAppear = _), O(l, de, te);
|
|
5173
5194
|
};
|
|
5174
5195
|
}
|
|
5175
5196
|
};
|
|
@@ -6141,7 +6162,7 @@ function cc(e, t, l) {
|
|
|
6141
6162
|
et.Near
|
|
6142
6163
|
);
|
|
6143
6164
|
let A = null;
|
|
6144
|
-
const L = R(
|
|
6165
|
+
const L = R(he(n.longTerm)), Y = (W) => {
|
|
6145
6166
|
if (L.value = W, u("update:longTerm", W), W) {
|
|
6146
6167
|
if (A = y.value, n.type === "daterange") {
|
|
6147
6168
|
const C = [];
|
|
@@ -6159,7 +6180,7 @@ function cc(e, t, l) {
|
|
|
6159
6180
|
le();
|
|
6160
6181
|
}, 100);
|
|
6161
6182
|
}
|
|
6162
|
-
}, Z =
|
|
6183
|
+
}, Z = he(n.isLongTerm);
|
|
6163
6184
|
if (Z) {
|
|
6164
6185
|
const W = () => {
|
|
6165
6186
|
if (L.value === !0) {
|
|
@@ -6631,14 +6652,14 @@ function Xl(e, t) {
|
|
|
6631
6652
|
message: ""
|
|
6632
6653
|
};
|
|
6633
6654
|
if (t.min !== void 0) {
|
|
6634
|
-
let n =
|
|
6655
|
+
let n = he(t.minInclude), a = Ol(e, t.min);
|
|
6635
6656
|
if (n && a == -1 || !n && (a == 0 || a == -1)) {
|
|
6636
6657
|
let o = "请输入不小于 {0} 的数值";
|
|
6637
6658
|
l.message = o.replace("{0}", t.min), l.minValid = !1;
|
|
6638
6659
|
}
|
|
6639
6660
|
}
|
|
6640
6661
|
if (t.max != null) {
|
|
6641
|
-
let n =
|
|
6662
|
+
let n = he(t.maxInclude), a = Ol(e, t.max);
|
|
6642
6663
|
(n && a == 1 || !n && (a == 0 || a == 1)) && (l.maxValid = !1);
|
|
6643
6664
|
}
|
|
6644
6665
|
return l;
|
|
@@ -6817,7 +6838,7 @@ function Nc(e, t, l) {
|
|
|
6817
6838
|
if (w = `${w}`, Oe(w)) {
|
|
6818
6839
|
v.value = "", h.value = "", A.forEach((L) => {
|
|
6819
6840
|
u(L, "");
|
|
6820
|
-
}),
|
|
6841
|
+
}), he(n.showTip) && M.value && (M.value = !1);
|
|
6821
6842
|
return;
|
|
6822
6843
|
}
|
|
6823
6844
|
if (w.length >= 2) {
|
|
@@ -6849,7 +6870,7 @@ function Nc(e, t, l) {
|
|
|
6849
6870
|
rt(v);
|
|
6850
6871
|
return;
|
|
6851
6872
|
}
|
|
6852
|
-
z.value = w,
|
|
6873
|
+
z.value = w, he(n.showTip) && (M.value = w.length > 0), v.value = w, h.value = Ul(w, n.rates, n.precision, !0), A.forEach((L) => {
|
|
6853
6874
|
u(L, h.value);
|
|
6854
6875
|
});
|
|
6855
6876
|
}, P = (w) => {
|
|
@@ -6857,14 +6878,14 @@ function Nc(e, t, l) {
|
|
|
6857
6878
|
}, b = (w) => {
|
|
6858
6879
|
_(w, ["update:modelValue", "change"]);
|
|
6859
6880
|
}, T = (w) => {
|
|
6860
|
-
if (f.value = !0,
|
|
6881
|
+
if (f.value = !0, he(n.showTip)) {
|
|
6861
6882
|
let A = v.value;
|
|
6862
6883
|
Oe(A) && (A = n.hintText), Oe(A) || (z.value = A, M.value = !0);
|
|
6863
6884
|
}
|
|
6864
6885
|
$.value = "", u("focus", h.value, w);
|
|
6865
6886
|
}, m = (w) => {
|
|
6866
6887
|
if (setTimeout(() => {
|
|
6867
|
-
f.value = !1,
|
|
6888
|
+
f.value = !1, he(n.showTip) && M.value === !0 && (M.value = !1);
|
|
6868
6889
|
}, 0), !Oe(v.value)) {
|
|
6869
6890
|
let A = Xl(v.value, n);
|
|
6870
6891
|
if (A.minValid === !1 || A.maxValid === !1) {
|
|
@@ -6875,7 +6896,7 @@ function Nc(e, t, l) {
|
|
|
6875
6896
|
u("update:modelValue", h.value, w), u("blur", h.value, w);
|
|
6876
6897
|
}, B = () => {
|
|
6877
6898
|
u("clear", "");
|
|
6878
|
-
}, J = S(() =>
|
|
6899
|
+
}, J = S(() => In(n.unit) > 0), V = R();
|
|
6879
6900
|
return Re({
|
|
6880
6901
|
//使 input 获取焦点
|
|
6881
6902
|
focus: () => {
|
|
@@ -7018,7 +7039,7 @@ function Fc(e, t, l) {
|
|
|
7018
7039
|
n.maxLength && B.length > Number(n.maxLength) && (B = B.slice(0, Number(n.maxLength))), u("blur", B, T);
|
|
7019
7040
|
}, _ = () => {
|
|
7020
7041
|
u("clear", "");
|
|
7021
|
-
}, P = S(() =>
|
|
7042
|
+
}, P = S(() => In(n.unit) > 0), b = R();
|
|
7022
7043
|
return Re({
|
|
7023
7044
|
//使 input 获取焦点
|
|
7024
7045
|
focus: () => {
|
|
@@ -7316,11 +7337,11 @@ function qc(e, t, l) {
|
|
|
7316
7337
|
const ae = le?.value.getCheckedNodes();
|
|
7317
7338
|
if (ae)
|
|
7318
7339
|
if (n.multiple) {
|
|
7319
|
-
const
|
|
7340
|
+
const de = [];
|
|
7320
7341
|
ae.forEach((ie) => {
|
|
7321
7342
|
const oe = (ie.pathNodes ?? []).map((re) => re.data);
|
|
7322
|
-
|
|
7323
|
-
}), u("update:pathNodes",
|
|
7343
|
+
de.push(oe);
|
|
7344
|
+
}), u("update:pathNodes", de);
|
|
7324
7345
|
} else {
|
|
7325
7346
|
const ie = (ae[0]?.pathNodes ?? []).map((Q) => Q.data);
|
|
7326
7347
|
u("update:pathNodes", ie);
|
|
@@ -7340,8 +7361,8 @@ function qc(e, t, l) {
|
|
|
7340
7361
|
if (B.value.checkStrictly !== !0 && N && !Array.isArray(N) && Array.isArray(N.children) && N.children.length > 0) {
|
|
7341
7362
|
const te = [];
|
|
7342
7363
|
X.forEach((ae) => {
|
|
7343
|
-
const
|
|
7344
|
-
te.push(
|
|
7364
|
+
const de = `${ft(n, ae)}`;
|
|
7365
|
+
te.push(de);
|
|
7345
7366
|
}), te.length > 0 && (T.value = te.join(n.separator));
|
|
7346
7367
|
} else
|
|
7347
7368
|
T.value = null;
|
|
@@ -7350,17 +7371,17 @@ function qc(e, t, l) {
|
|
|
7350
7371
|
K = !1;
|
|
7351
7372
|
else
|
|
7352
7373
|
for (let te = 0; te < X.length; te++) {
|
|
7353
|
-
const ae = X[te],
|
|
7374
|
+
const ae = X[te], de = y.value[te];
|
|
7354
7375
|
if (Array.isArray(ae)) {
|
|
7355
|
-
if (!Array.isArray(
|
|
7376
|
+
if (!Array.isArray(de) || ae.length !== de.length)
|
|
7356
7377
|
K = !1;
|
|
7357
7378
|
else
|
|
7358
7379
|
for (let ie = 0; ie < ae.length; ie++)
|
|
7359
|
-
if (!ul(n, ae[ie],
|
|
7380
|
+
if (!ul(n, ae[ie], de[ie])) {
|
|
7360
7381
|
K = !1;
|
|
7361
7382
|
break;
|
|
7362
7383
|
}
|
|
7363
|
-
} else ul(n, ae,
|
|
7384
|
+
} else ul(n, ae, de) || (K = !1);
|
|
7364
7385
|
if (!K)
|
|
7365
7386
|
break;
|
|
7366
7387
|
}
|
|
@@ -7376,14 +7397,14 @@ function qc(e, t, l) {
|
|
|
7376
7397
|
} else
|
|
7377
7398
|
te.push(Dt(n, ie)), n.valueType === "text" ? ae.push(ft(n, ie)) : n.valueType === "item" ? ae.push(ie) : ae.push(Dt(n, ie));
|
|
7378
7399
|
}), v.value = te;
|
|
7379
|
-
const
|
|
7380
|
-
j && (u("update:pathNodes", X), u("update:modelValue",
|
|
7400
|
+
const de = xe(ae);
|
|
7401
|
+
j && (u("update:pathNodes", X), u("update:modelValue", de), u("change", de));
|
|
7381
7402
|
}
|
|
7382
7403
|
}, d = R([]), D = Ge(
|
|
7383
7404
|
S(() => n.appearLoad),
|
|
7384
7405
|
"appearLoad",
|
|
7385
7406
|
et.Near,
|
|
7386
|
-
(G) =>
|
|
7407
|
+
(G) => he(G)
|
|
7387
7408
|
), E = Mc(), $ = async (G, W) => {
|
|
7388
7409
|
if (G) {
|
|
7389
7410
|
const C = await E.load("cascader", G, W);
|
|
@@ -8013,9 +8034,9 @@ const vf = /* @__PURE__ */ nt(cf, [["render", gf]]), { componentName: Hm, create
|
|
|
8013
8034
|
}, pf = mf({
|
|
8014
8035
|
// 注册组件
|
|
8015
8036
|
components: {
|
|
8016
|
-
FoxPopover:
|
|
8037
|
+
FoxPopover: En,
|
|
8017
8038
|
FoxCheckbox: Bt,
|
|
8018
|
-
FoxCheckboxGroup:
|
|
8039
|
+
FoxCheckboxGroup: Nn,
|
|
8019
8040
|
FoxButton: dl,
|
|
8020
8041
|
FoxIcon: Pt,
|
|
8021
8042
|
DragIcon: vf,
|
|
@@ -8794,7 +8815,7 @@ function jf(e, t, l) {
|
|
|
8794
8815
|
})), h = S(() => ({
|
|
8795
8816
|
[`${i}__pagination`]: !0,
|
|
8796
8817
|
[`${i}__pagination__${n.paginationAlign}`]: !0
|
|
8797
|
-
})), v =
|
|
8818
|
+
})), v = yn({}), y = S(() => ({ ...v.value, ...n.params ?? {}, ...n.baseParams ?? {} })), g = R(n.infiniteLoad === !0 ? 0 : n.pageIndex), c = R(n.pageSize), d = he(n.infiniteLoad);
|
|
8798
8819
|
d || (fe(
|
|
8799
8820
|
() => n.pageIndex,
|
|
8800
8821
|
(Q) => {
|
|
@@ -8808,7 +8829,7 @@ function jf(e, t, l) {
|
|
|
8808
8829
|
), fe([g, c], ([Q, oe], [re, ge]) => {
|
|
8809
8830
|
oe !== ge && (g.value = 1, Q = 1), T(n.data, Q, oe, y.value);
|
|
8810
8831
|
}));
|
|
8811
|
-
const D = () => Array.isArray(n.data) ? !0 :
|
|
8832
|
+
const D = () => Array.isArray(n.data) ? !0 : he(n.autoLoad);
|
|
8812
8833
|
D() && fe(
|
|
8813
8834
|
[() => n.data, y],
|
|
8814
8835
|
async ([Q, oe], [re, ge]) => {
|
|
@@ -8826,7 +8847,7 @@ function jf(e, t, l) {
|
|
|
8826
8847
|
S(() => n.appearLoad),
|
|
8827
8848
|
"appearLoad",
|
|
8828
8849
|
et.Near,
|
|
8829
|
-
(Q) =>
|
|
8850
|
+
(Q) => he(Q)
|
|
8830
8851
|
), T = async (Q, oe, re, ge, Fe) => {
|
|
8831
8852
|
P = !1;
|
|
8832
8853
|
try {
|
|
@@ -8891,9 +8912,9 @@ function jf(e, t, l) {
|
|
|
8891
8912
|
const Z = (Q, oe) => {
|
|
8892
8913
|
Y.value = Q, r("current-change", Q, oe);
|
|
8893
8914
|
}, ee = (Q, oe, re) => {
|
|
8894
|
-
r("row-click", Q, oe, re),
|
|
8915
|
+
r("row-click", Q, oe, re), he(n.rowClickSelectable) === !0 && ie?.value.toggleRowSelection(Q);
|
|
8895
8916
|
}, ne = [], k = (Q, oe) => {
|
|
8896
|
-
if (r("expand-change", Q, oe),
|
|
8917
|
+
if (r("expand-change", Q, oe), he(n.uniqueExpansion))
|
|
8897
8918
|
if (Array.isArray(oe) && oe.length == 0) {
|
|
8898
8919
|
const re = ne.length;
|
|
8899
8920
|
ne.splice(0, re);
|
|
@@ -8952,14 +8973,14 @@ function jf(e, t, l) {
|
|
|
8952
8973
|
return re;
|
|
8953
8974
|
}
|
|
8954
8975
|
return Q;
|
|
8955
|
-
}), K =
|
|
8976
|
+
}), K = yn(/* @__PURE__ */ new Map()), te = ({ column: Q, rowIndex: oe }) => {
|
|
8956
8977
|
const re = `${oe}_${Q.property}`;
|
|
8957
8978
|
return K.value.get(re) ?? "";
|
|
8958
8979
|
}, ae = (Q) => typeof Q == "function" ? (oe) => {
|
|
8959
8980
|
const re = [];
|
|
8960
8981
|
let ge = te(oe);
|
|
8961
8982
|
return ge && re.push(ge), ge = Q(oe), ge && re.push(ge), re.length === 0 ? "" : re.join(" ");
|
|
8962
|
-
} : te,
|
|
8983
|
+
} : te, de = (Q, oe, re) => {
|
|
8963
8984
|
const ge = `${Q}_${oe}`;
|
|
8964
8985
|
re ? K.value.set(ge, re) : K.value.delete(ge), rt(K);
|
|
8965
8986
|
}, ie = R();
|
|
@@ -9057,7 +9078,7 @@ function jf(e, t, l) {
|
|
|
9057
9078
|
// 移除列属性配置
|
|
9058
9079
|
removeColumnSetting: W,
|
|
9059
9080
|
// 设置cell class name
|
|
9060
|
-
setCellClassName:
|
|
9081
|
+
setCellClassName: de
|
|
9061
9082
|
}), () => {
|
|
9062
9083
|
const oe = {
|
|
9063
9084
|
...ut(a.attrs),
|
|
@@ -9074,8 +9095,8 @@ function jf(e, t, l) {
|
|
|
9074
9095
|
if (q.value) {
|
|
9075
9096
|
const Yt = O(Ds, { class: `${i}__infinite-icon` });
|
|
9076
9097
|
lt.push(Yt);
|
|
9077
|
-
const
|
|
9078
|
-
lt.push(
|
|
9098
|
+
const Mn = O("span", { class: `${i}__infinite-text` }, [n.loadText]);
|
|
9099
|
+
lt.push(Mn);
|
|
9079
9100
|
} else {
|
|
9080
9101
|
const Yt = O("span", { class: `${i}__infinite-text` }, [n.loadMoreText]);
|
|
9081
9102
|
lt.push(Yt);
|
|
@@ -9083,8 +9104,8 @@ function jf(e, t, l) {
|
|
|
9083
9104
|
const Nt = {
|
|
9084
9105
|
ref: L,
|
|
9085
9106
|
class: `${i}__infinite`
|
|
9086
|
-
},
|
|
9087
|
-
re.append = () =>
|
|
9107
|
+
}, Ln = O("div", Nt, lt);
|
|
9108
|
+
re.append = () => Ln;
|
|
9088
9109
|
}
|
|
9089
9110
|
const ge = O(Ka, oe, re), Fe = [];
|
|
9090
9111
|
if (Fe.push(ge), !d) {
|
|
@@ -9110,12 +9131,12 @@ function jf(e, t, l) {
|
|
|
9110
9131
|
if (n.showSetting) {
|
|
9111
9132
|
const Nt = [];
|
|
9112
9133
|
lt && Nt.push(lt);
|
|
9113
|
-
const
|
|
9134
|
+
const Ln = O(Pt, { class: u.value }, { default: () => O(Fs) }), Yt = Qs(n, Kn), Mn = O(
|
|
9114
9135
|
Lo,
|
|
9115
9136
|
{ ...Yt, tableRef: { getColumnSetting: H, setColumnSetting: U, removeColumnSetting: W } },
|
|
9116
|
-
{ default: () =>
|
|
9137
|
+
{ default: () => Ln }
|
|
9117
9138
|
);
|
|
9118
|
-
Nt.push(
|
|
9139
|
+
Nt.push(Mn);
|
|
9119
9140
|
const Zo = O("div", { class: f.value }, Nt);
|
|
9120
9141
|
Fe.push(Zo);
|
|
9121
9142
|
} else lt && Fe.push(lt);
|
|
@@ -9341,7 +9362,7 @@ function td(e, t, l) {
|
|
|
9341
9362
|
S(() => n.appearLoad),
|
|
9342
9363
|
"appearLoad",
|
|
9343
9364
|
et.Near,
|
|
9344
|
-
(b) =>
|
|
9365
|
+
(b) => he(b)
|
|
9345
9366
|
), c = Zf(), d = async (b, T) => {
|
|
9346
9367
|
if (b) {
|
|
9347
9368
|
const m = await c.load("radio", b, T);
|
|
@@ -9385,7 +9406,7 @@ function td(e, t, l) {
|
|
|
9385
9406
|
key: Y,
|
|
9386
9407
|
value: V,
|
|
9387
9408
|
size: n.size,
|
|
9388
|
-
border:
|
|
9409
|
+
border: he(n.border)
|
|
9389
9410
|
};
|
|
9390
9411
|
A && (Z.disabled = A), n.itemType === "button" ? m.push(O(_a, Z, { default: () => [w] })) : typeof T == "function" ? m.push(O(Jn, Z, { default: () => T(B) })) : m.push(O(Jn, Z, { default: () => [w] }));
|
|
9391
9412
|
}), m;
|
|
@@ -9664,7 +9685,7 @@ function dd(e, t, l) {
|
|
|
9664
9685
|
S(() => n.appearLoad),
|
|
9665
9686
|
"appearLoad",
|
|
9666
9687
|
et.Near,
|
|
9667
|
-
(b) =>
|
|
9688
|
+
(b) => he(b)
|
|
9668
9689
|
), c = id(), d = async (b, T) => {
|
|
9669
9690
|
if (b) {
|
|
9670
9691
|
const m = await c.load("checkbox", b, T);
|
|
@@ -9709,7 +9730,7 @@ function dd(e, t, l) {
|
|
|
9709
9730
|
class: n.itemClass,
|
|
9710
9731
|
value: V,
|
|
9711
9732
|
size: n.size,
|
|
9712
|
-
border:
|
|
9733
|
+
border: he(n.border)
|
|
9713
9734
|
};
|
|
9714
9735
|
A && (Z.disabled = A), n.itemType === "button" ? m.push(O(Va, Z, { default: () => [w] })) : typeof T == "function" ? m.push(O(Bt, Z, { default: () => T(B) })) : m.push(O(Bt, Z, { default: () => [w] }));
|
|
9715
9736
|
}), m;
|
|
@@ -9736,7 +9757,7 @@ function dd(e, t, l) {
|
|
|
9736
9757
|
onChange: z
|
|
9737
9758
|
}, m = [], B = {};
|
|
9738
9759
|
a.slots.options ? B.default = a.slots.options : B.default = () => P(y.value, a.slots.text);
|
|
9739
|
-
const J = O(
|
|
9760
|
+
const J = O(Nn, T, B);
|
|
9740
9761
|
m.push(J);
|
|
9741
9762
|
const V = {
|
|
9742
9763
|
default: () => m
|
|
@@ -10087,9 +10108,9 @@ const Ld = /* @__PURE__ */ nt(Ad, [["render", Pd]]), { componentName: Gm, create
|
|
|
10087
10108
|
}, qd = Md({
|
|
10088
10109
|
// 注册组件
|
|
10089
10110
|
components: {
|
|
10090
|
-
FoxPopover:
|
|
10111
|
+
FoxPopover: En,
|
|
10091
10112
|
FoxCheckbox: Bt,
|
|
10092
|
-
FoxCheckboxGroup:
|
|
10113
|
+
FoxCheckboxGroup: Nn,
|
|
10093
10114
|
FoxButton: dl,
|
|
10094
10115
|
FoxIcon: Pt,
|
|
10095
10116
|
DragIcon: Ld,
|
|
@@ -10720,7 +10741,7 @@ const Ud = /* @__PURE__ */ nt(qd, [["render", Gd]]), Xd = ["aria-labelledby"], Z
|
|
|
10720
10741
|
}
|
|
10721
10742
|
}, ua = (e, t) => t[e.textKey], Zt = (e, t) => t[e.valueKey], mh = (e, t) => t[e.visibleKey], ca = (e, t) => t[e.disabledKey], yh = (e, t) => {
|
|
10722
10743
|
const l = t[e.doitKey];
|
|
10723
|
-
return
|
|
10744
|
+
return he(l);
|
|
10724
10745
|
}, ph = (e, t) => {
|
|
10725
10746
|
const l = t[e.numKey];
|
|
10726
10747
|
return l == null ? null : Le(t[l]);
|
|
@@ -10978,7 +10999,7 @@ function Ch(e, t, l = !1) {
|
|
|
10978
10999
|
emits: ["update:modelValue", "change"],
|
|
10979
11000
|
// setup
|
|
10980
11001
|
setup(n, { emit: a, slots: o }) {
|
|
10981
|
-
const r =
|
|
11002
|
+
const r = yn([]), i = {
|
|
10982
11003
|
// current value
|
|
10983
11004
|
current: R(n.modelValue ?? ""),
|
|
10984
11005
|
// 方向
|
|
@@ -11089,7 +11110,7 @@ function Fh(e, t, l) {
|
|
|
11089
11110
|
const i = S(() => {
|
|
11090
11111
|
const u = {};
|
|
11091
11112
|
return r.direction.value === "vertical" && r.tabHeight.value > 0 ? u.height = `${r.tabHeight.value}px` : r.tabWidth.value > 0 && (u.width = `${r.tabWidth.value}px`), u;
|
|
11092
|
-
}), s = S(() => n.loaded != null ?
|
|
11113
|
+
}), s = S(() => n.loaded != null ? he(n.loaded) : r.isLoaded(n.paneKey));
|
|
11093
11114
|
return () => {
|
|
11094
11115
|
let u = [];
|
|
11095
11116
|
if (s.value)
|
|
@@ -11643,7 +11664,7 @@ const ma = "fox-overflow-hidden", ya = () => Wt ? document.body : {
|
|
|
11643
11664
|
}
|
|
11644
11665
|
});
|
|
11645
11666
|
function ng(e, t, l, n, a, o) {
|
|
11646
|
-
return se(), Ie(
|
|
11667
|
+
return se(), Ie(Cn, { name: "overlay-fade" }, {
|
|
11647
11668
|
default: pe(() => [
|
|
11648
11669
|
Vt(ce("view", {
|
|
11649
11670
|
class: $e(e.classes),
|
|
@@ -11820,7 +11841,7 @@ function ig(e, t, l, n, a, o) {
|
|
|
11820
11841
|
"overlay-style": e.overlayStyle,
|
|
11821
11842
|
onClick: e.onClickOverlay
|
|
11822
11843
|
}, e.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : be("", !0),
|
|
11823
|
-
ye(
|
|
11844
|
+
ye(Cn, {
|
|
11824
11845
|
name: e.transitionName,
|
|
11825
11846
|
onAfterEnter: e.onOpened,
|
|
11826
11847
|
onAfterLeave: e.onClosed
|
|
@@ -11994,7 +12015,7 @@ const ug = /* @__PURE__ */ nt(sg, [["render", ig]]), { create: cg } = ue("toast"
|
|
|
11994
12015
|
class: "fox-toast-title"
|
|
11995
12016
|
}, hg = ["innerHTML"];
|
|
11996
12017
|
function gg(e, t, l, n, a, o) {
|
|
11997
|
-
return se(), Ie(
|
|
12018
|
+
return se(), Ie(Cn, {
|
|
11998
12019
|
name: "toast-fade",
|
|
11999
12020
|
onAfterLeave: e.onAfterLeave
|
|
12000
12021
|
}, {
|
|
@@ -12018,7 +12039,7 @@ function gg(e, t, l, n, a, o) {
|
|
|
12018
12039
|
key: 0,
|
|
12019
12040
|
class: $e(e.toastIconWrapperClass)
|
|
12020
12041
|
}, [
|
|
12021
|
-
(se(), Ie(
|
|
12042
|
+
(se(), Ie(mn(e.renderIcon())))
|
|
12022
12043
|
], 2)) : be("", !0),
|
|
12023
12044
|
e.title ? (se(), ve("div", dg, Ne(e.title), 1)) : be("", !0),
|
|
12024
12045
|
ce("view", {
|
|
@@ -12857,9 +12878,9 @@ function Hg(e, t, l, n = !1) {
|
|
|
12857
12878
|
$ && ($.removeEventListener("mouseover", c), $.removeEventListener("mouseleave", d));
|
|
12858
12879
|
};
|
|
12859
12880
|
return Ee(() => {
|
|
12860
|
-
!
|
|
12881
|
+
!he(a.showOverflowTooltip) || !l || D();
|
|
12861
12882
|
}), gt(() => {
|
|
12862
|
-
!
|
|
12883
|
+
!he(a.showOverflowTooltip) || !l || E();
|
|
12863
12884
|
}), () => {
|
|
12864
12885
|
const $ = {
|
|
12865
12886
|
onClick: f,
|
|
@@ -12868,12 +12889,12 @@ function Hg(e, t, l, n = !1) {
|
|
|
12868
12889
|
ref: r
|
|
12869
12890
|
};
|
|
12870
12891
|
let q = null;
|
|
12871
|
-
if (
|
|
12892
|
+
if (he(a.numberFormat) && typeof o.slots.default == "function") {
|
|
12872
12893
|
const P = o.slots.default();
|
|
12873
12894
|
if (Array.isArray(P) && P.length === 1) {
|
|
12874
12895
|
const b = P[0].type.toString();
|
|
12875
12896
|
if (b === "Symbol(Text)" || b === "Symbol(v-txt)") {
|
|
12876
|
-
const T = Le(a.digits), m = Le(a.decimalLength), B =
|
|
12897
|
+
const T = Le(a.digits), m = Le(a.decimalLength), B = he(a.autoPadding);
|
|
12877
12898
|
let J = `${P[0].children}`, V = J.split("").reverse().join("");
|
|
12878
12899
|
V = ml(V, m, B, T, a.separator), J = V.split("").reverse().join(""), a.highlightFilter !== void 0 && (q = u(J, $)), q || ($.innerHTML = J, q = O(a.tag, $));
|
|
12879
12900
|
}
|
|
@@ -12970,7 +12991,7 @@ const { componentName: jg, create: Kg, scope: Wg } = ue("text"), Yg = Kg(Hg(jg,
|
|
|
12970
12991
|
icon: {
|
|
12971
12992
|
type: [Object],
|
|
12972
12993
|
requried: !1,
|
|
12973
|
-
default:
|
|
12994
|
+
default: kn
|
|
12974
12995
|
}
|
|
12975
12996
|
};
|
|
12976
12997
|
function Ug(e, t, l) {
|
|
@@ -13013,7 +13034,7 @@ function Ug(e, t, l) {
|
|
|
13013
13034
|
}
|
|
13014
13035
|
};
|
|
13015
13036
|
}
|
|
13016
|
-
const { componentName: Xg, create: Zg, scope: Jg } = ue("more-button"), Qg = (e, t) => (e = e ??
|
|
13037
|
+
const { componentName: Xg, create: Zg, scope: Jg } = ue("more-button"), Qg = (e, t) => (e = e ?? kn, O(Pt, t, { default: () => [O(e)] })), ev = Zg(Ug(Xg, Jg, Qg));
|
|
13017
13038
|
function tv(e) {
|
|
13018
13039
|
return e === window;
|
|
13019
13040
|
}
|
|
@@ -13041,7 +13062,7 @@ const nv = (e) => {
|
|
|
13041
13062
|
}, { componentName: lv, create: av, scope: ey } = ue("tour"), ov = av({
|
|
13042
13063
|
components: {
|
|
13043
13064
|
Close: to,
|
|
13044
|
-
ElPopover:
|
|
13065
|
+
ElPopover: En
|
|
13045
13066
|
},
|
|
13046
13067
|
// 属性
|
|
13047
13068
|
props: {
|
|
@@ -13368,8 +13389,8 @@ const Sa = (e) => {
|
|
|
13368
13389
|
}, bv = {
|
|
13369
13390
|
cancelable: !0,
|
|
13370
13391
|
bubbles: !1
|
|
13371
|
-
}, Ta = "foxFocusAfterTrapped", Ca = "foxFocusAfterReleased", xv = Symbol("foxFocusTrap"), El = R(),
|
|
13372
|
-
let
|
|
13392
|
+
}, Ta = "foxFocusAfterTrapped", Ca = "foxFocusAfterReleased", xv = Symbol("foxFocusTrap"), El = R(), Pn = R(0), kl = R(0);
|
|
13393
|
+
let hn = 0;
|
|
13373
13394
|
const Xo = (e) => {
|
|
13374
13395
|
const t = [], l = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
13375
13396
|
acceptNode: (n) => {
|
|
@@ -13423,19 +13444,19 @@ const Tv = () => {
|
|
|
13423
13444
|
const l = document.activeElement;
|
|
13424
13445
|
for (const n of e)
|
|
13425
13446
|
if (yt(n, t), document.activeElement !== l) return;
|
|
13426
|
-
}, ka = Tv(), Nv = () =>
|
|
13427
|
-
El.value = "pointer",
|
|
13447
|
+
}, ka = Tv(), Nv = () => Pn.value > kl.value, gn = () => {
|
|
13448
|
+
El.value = "pointer", Pn.value = window.performance.now();
|
|
13428
13449
|
}, Ia = () => {
|
|
13429
|
-
El.value = "keyboard",
|
|
13450
|
+
El.value = "keyboard", Pn.value = window.performance.now();
|
|
13430
13451
|
}, Ev = () => (Ee(() => {
|
|
13431
|
-
|
|
13452
|
+
hn === 0 && (document.addEventListener("mousedown", gn), document.addEventListener("touchstart", gn), document.addEventListener("keydown", Ia)), hn++;
|
|
13432
13453
|
}), gt(() => {
|
|
13433
|
-
|
|
13454
|
+
hn--, hn <= 0 && (document.removeEventListener("mousedown", gn), document.removeEventListener("touchstart", gn), document.removeEventListener("keydown", Ia));
|
|
13434
13455
|
}), {
|
|
13435
13456
|
focusReason: El,
|
|
13436
|
-
lastUserFocusTimestamp:
|
|
13457
|
+
lastUserFocusTimestamp: Pn,
|
|
13437
13458
|
lastAutomatedFocusTimestamp: kl
|
|
13438
|
-
}),
|
|
13459
|
+
}), vn = (e) => new CustomEvent(pv, {
|
|
13439
13460
|
...bv,
|
|
13440
13461
|
detail: e
|
|
13441
13462
|
}), { componentName: ty, create: kv, scope: ny } = ue("focus-trap"), Iv = {
|
|
@@ -13475,7 +13496,7 @@ const Tv = () => {
|
|
|
13475
13496
|
let a, o;
|
|
13476
13497
|
const { focusReason: r } = Ev();
|
|
13477
13498
|
yv((c) => {
|
|
13478
|
-
|
|
13499
|
+
he(e.trapped) && !i.paused && l("release-requested", c);
|
|
13479
13500
|
});
|
|
13480
13501
|
const i = {
|
|
13481
13502
|
paused: !1,
|
|
@@ -13486,24 +13507,24 @@ const Tv = () => {
|
|
|
13486
13507
|
this.paused = !1;
|
|
13487
13508
|
}
|
|
13488
13509
|
}, s = (c) => {
|
|
13489
|
-
if (!e.loop && !
|
|
13510
|
+
if (!e.loop && !he(e.trapped) || i.paused) return;
|
|
13490
13511
|
const { key: d, altKey: D, ctrlKey: E, metaKey: $, currentTarget: q, shiftKey: z } = c, { loop: M } = e, _ = d === "Tab" && !D && !E && !$, P = document.activeElement;
|
|
13491
13512
|
if (_ && P) {
|
|
13492
13513
|
const b = q, [T, m] = Sv(b);
|
|
13493
13514
|
if (T && m) {
|
|
13494
13515
|
if (!z && P === m) {
|
|
13495
|
-
const J =
|
|
13516
|
+
const J = vn({
|
|
13496
13517
|
focusReason: r.value
|
|
13497
13518
|
});
|
|
13498
13519
|
l("focusout-prevented", J), J.defaultPrevented || (c.preventDefault(), M && yt(T, !0));
|
|
13499
13520
|
} else if (z && [T, b].includes(P)) {
|
|
13500
|
-
const J =
|
|
13521
|
+
const J = vn({
|
|
13501
13522
|
focusReason: r.value
|
|
13502
13523
|
});
|
|
13503
13524
|
l("focusout-prevented", J), J.defaultPrevented || (c.preventDefault(), M && yt(m, !0));
|
|
13504
13525
|
}
|
|
13505
13526
|
} else if (P === b) {
|
|
13506
|
-
const J =
|
|
13527
|
+
const J = vn({
|
|
13507
13528
|
focusReason: r.value
|
|
13508
13529
|
});
|
|
13509
13530
|
l("focusout-prevented", J), J.defaultPrevented || c.preventDefault();
|
|
@@ -13528,15 +13549,15 @@ const Tv = () => {
|
|
|
13528
13549
|
const d = pt(n);
|
|
13529
13550
|
if (!d) return;
|
|
13530
13551
|
const D = c.target, E = c.relatedTarget, $ = D && d.contains(D);
|
|
13531
|
-
|
|
13552
|
+
he(e.trapped) || E && d.contains(E) || (a = E), $ && l("focusin", c), !i.paused && he(e.trapped) && ($ ? o = D : yt(o, !0));
|
|
13532
13553
|
}, v = (c) => {
|
|
13533
13554
|
const d = pt(n);
|
|
13534
13555
|
if (!(i.paused || !d))
|
|
13535
|
-
if (!e.escape &&
|
|
13556
|
+
if (!e.escape && he(e.trapped)) {
|
|
13536
13557
|
const D = c.relatedTarget;
|
|
13537
13558
|
!ro(D) && !d.contains(D) && setTimeout(() => {
|
|
13538
|
-
if (!i.paused &&
|
|
13539
|
-
const E =
|
|
13559
|
+
if (!i.paused && he(e.trapped)) {
|
|
13560
|
+
const E = vn({
|
|
13540
13561
|
focusReason: r.value
|
|
13541
13562
|
});
|
|
13542
13563
|
l("focusout-prevented", E), E.defaultPrevented || yt(o, !0);
|
|
@@ -13576,14 +13597,14 @@ const Tv = () => {
|
|
|
13576
13597
|
}
|
|
13577
13598
|
}
|
|
13578
13599
|
return Ee(() => {
|
|
13579
|
-
|
|
13600
|
+
he(e.trapped) && y(), fe(
|
|
13580
13601
|
() => e.trapped,
|
|
13581
13602
|
(c) => {
|
|
13582
|
-
|
|
13603
|
+
he(c) ? y() : g();
|
|
13583
13604
|
}
|
|
13584
13605
|
);
|
|
13585
13606
|
}), gt(() => {
|
|
13586
|
-
|
|
13607
|
+
he(e.trapped) && g();
|
|
13587
13608
|
}), () => typeof t.default == "function" ? t.default({ "handle-keydown": s }) : null;
|
|
13588
13609
|
}
|
|
13589
13610
|
}), { componentName: Fv, create: Av, scope: ly } = ue("floating-window"), Ov = Symbol.for("InnerPageScopeKey"), Vv = Symbol.for("PageWrapperKey"), Rv = {
|
|
@@ -13753,13 +13774,13 @@ const Tv = () => {
|
|
|
13753
13774
|
}), h = S(() => {
|
|
13754
13775
|
const N = {};
|
|
13755
13776
|
return Et(r.value) ? N.left = "auto" : N.left = je(r.value), Et(i.value) ? N.top = "auto" : N.top = je(i.value), Et(s.value) ? N.right = "auto" : N.right = je(s.value), Et(u.value) ? N.bottom = "auto" : N.bottom = je(u.value), Et(e.zIndex) || (N["z-index"] = je(e.zIndex)), Et(M.value) || (N.height = M.value), Et(_.value) || (N.width = _.value), N;
|
|
13756
|
-
}), v = S(() => e.closeIcon ?? to), y = S(() => e.collapseIcon ??
|
|
13777
|
+
}), v = S(() => e.closeIcon ?? to), y = S(() => e.collapseIcon ?? kn), g = S(() => e.collapseText ?? ""), c = S(() => e.collapsePosition === "left" ? e.expandIcon ?? Os : e.expandIcon ?? Ja), d = S(() => e.expandText ?? e.title ?? "展开"), D = S(() => ({
|
|
13757
13778
|
[`${l}__collapse-text`]: !0
|
|
13758
13779
|
})), E = S(() => ({
|
|
13759
13780
|
[`${l}__collapse-icon`]: !0,
|
|
13760
13781
|
"is-expand": !P.value,
|
|
13761
13782
|
"is-collapse": P.value
|
|
13762
|
-
})), $ = R(), q = R(null), z = R(null), M = S(() => je(e.height) || ""), _ = S(() => je(e.width) || ""), P = R(
|
|
13783
|
+
})), $ = R(), q = R(null), z = R(null), M = S(() => je(e.height) || ""), _ = S(() => je(e.width) || ""), P = R(he(e.collapse)), b = (N, K = !0) => {
|
|
13763
13784
|
P.value !== N && (P.value = N, N ? x() : F(), t("update:collapse", N), N && typeof B.onHide == "function" ? B.onHide() : !N && typeof B.onShow == "function" && B.onShow());
|
|
13764
13785
|
};
|
|
13765
13786
|
fe(
|
|
@@ -13887,7 +13908,7 @@ function zv(e, t, l, n, a, o) {
|
|
|
13887
13908
|
to: e.teleport,
|
|
13888
13909
|
disabled: e.teleportDisabled
|
|
13889
13910
|
}, [
|
|
13890
|
-
ye(
|
|
13911
|
+
ye(Cn, { name: "fox-floating-window-fade" }, {
|
|
13891
13912
|
default: pe(() => [
|
|
13892
13913
|
Vt(ce("div", {
|
|
13893
13914
|
ref: "dialogRef",
|
|
@@ -13919,7 +13940,7 @@ function zv(e, t, l, n, a, o) {
|
|
|
13919
13940
|
class: $e(e.collapseIconClasses)
|
|
13920
13941
|
}, {
|
|
13921
13942
|
default: pe(() => [
|
|
13922
|
-
(se(), Ie(
|
|
13943
|
+
(se(), Ie(mn(e.collapseIcon)))
|
|
13923
13944
|
]),
|
|
13924
13945
|
_: 1
|
|
13925
13946
|
}, 8, ["class"])
|
|
@@ -13930,7 +13951,7 @@ function zv(e, t, l, n, a, o) {
|
|
|
13930
13951
|
onClick: e.onClose
|
|
13931
13952
|
}, {
|
|
13932
13953
|
default: pe(() => [
|
|
13933
|
-
(se(), Ie(
|
|
13954
|
+
(se(), Ie(mn(e.closeIcon)))
|
|
13934
13955
|
]),
|
|
13935
13956
|
_: 1
|
|
13936
13957
|
}, 8, ["onClick"])) : be("", !0)
|
|
@@ -13966,7 +13987,7 @@ function zv(e, t, l, n, a, o) {
|
|
|
13966
13987
|
}, [
|
|
13967
13988
|
ye(r, { class: "fox-floating-window__fixednav__icon" }, {
|
|
13968
13989
|
default: pe(() => [
|
|
13969
|
-
(se(), Ie(
|
|
13990
|
+
(se(), Ie(mn(e.expandIcon)))
|
|
13970
13991
|
]),
|
|
13971
13992
|
_: 1
|
|
13972
13993
|
}),
|
|
@@ -14347,7 +14368,7 @@ export {
|
|
|
14347
14368
|
Ol as compareTo,
|
|
14348
14369
|
bl as createBroadcast,
|
|
14349
14370
|
xl as createValidateSchema,
|
|
14350
|
-
|
|
14371
|
+
xn as debounce,
|
|
14351
14372
|
Cm as debounceRef,
|
|
14352
14373
|
Js as decimalLength,
|
|
14353
14374
|
iy as default,
|
|
@@ -14368,8 +14389,8 @@ export {
|
|
|
14368
14389
|
ni as getGlobalValidateResetEvents,
|
|
14369
14390
|
al as getPageContentAreaHeight,
|
|
14370
14391
|
ol as getPageContentAreaWidth,
|
|
14371
|
-
|
|
14372
|
-
|
|
14392
|
+
Sn as getPageFooterAreaHeight,
|
|
14393
|
+
wn as getPageHeaderAreaHeight,
|
|
14373
14394
|
nn as getRootDomain,
|
|
14374
14395
|
Hs as hasSymbol,
|
|
14375
14396
|
Qs as includeProps,
|
|
@@ -14418,7 +14439,7 @@ export {
|
|
|
14418
14439
|
$m as setGlobalValidateResetEvents,
|
|
14419
14440
|
xm as setGlobalValidator,
|
|
14420
14441
|
ai as throttle,
|
|
14421
|
-
|
|
14442
|
+
he as toBoolean,
|
|
14422
14443
|
Le as toNumber,
|
|
14423
14444
|
dt as toPadding,
|
|
14424
14445
|
we as toPx,
|
|
@@ -14439,5 +14460,5 @@ export {
|
|
|
14439
14460
|
nv as useRect,
|
|
14440
14461
|
Tl as useSize,
|
|
14441
14462
|
Jm as useTouch,
|
|
14442
|
-
|
|
14463
|
+
In as valueLength
|
|
14443
14464
|
};
|