@fox-js/foxui-pc 4.0.1-84 → 4.0.1-85
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 +3 -3
- package/dist/index.esm.js +890 -874
- package/dist/index.umd.js +3 -3
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as ke, provide as Oe, onUnmounted as Ze, getCurrentInstance as Le, effectScope as da, watchEffect as ha, nextTick as yt, customRef as ga, reactive as sn, isReactive as ut, watch as ie, toRaw as me, computed as b, toRef as $t, ref as D, defineComponent as al, onMounted as _e, onBeforeUnmount as jt, openBlock as Z, createElementBlock as ne, normalizeClass as ye, normalizeStyle as Te, renderSlot as xe, unref as at, createBlock as Se, resolveDynamicComponent as pt, createCommentVNode as se, toDisplayString as ve, shallowRef as An, markRaw as ma, triggerRef as et, h as W, createElementVNode as ue, onBeforeMount as pa, resolveComponent as Ce, Transition as Kn, withCtx as he, withDirectives as en, vShow as tn, createVNode as de, render as tr, createTextVNode as Tt, mergeProps as va, Fragment as qt, renderList as Jt, toRefs as ya, Teleport as ol } from "vue";
|
|
2
2
|
import ht from "@fox-js/validator";
|
|
3
|
-
import { ElAffix as ba, ElAlert as xa, ElAutocomplete as nr, ElAutoResizer as wa, ElAvatar as Sa, ElBacktop as $a, ElBadge as Ta, ElBreadcrumb as Ea, ElBreadcrumbItem as Ca, ElButton as lr, ElButtonGroup as Na, ElCalendar as Aa, ElCard as Ia, ElCarousel as Va, ElCarouselItem as Pa, ElCascader as rr, ElCascaderPanel as Ra, ElCheckTag as Da, ElCheckbox as Mt, ElCheckboxButton as ar, ElCheckboxGroup as zn, ElCol as
|
|
4
|
-
import { ElAffix as Ag, ElAlert as Ig, ElAside as Vg, ElAutoResizer as Pg, ElAutocomplete as Rg, ElAvatar as Dg, ElBacktop as
|
|
3
|
+
import { ElAffix as ba, ElAlert as xa, ElAutocomplete as nr, ElAutoResizer as wa, ElAvatar as Sa, ElBacktop as $a, ElBadge as Ta, ElBreadcrumb as Ea, ElBreadcrumbItem as Ca, ElButton as lr, ElButtonGroup as Na, ElCalendar as Aa, ElCard as Ia, ElCarousel as Va, ElCarouselItem as Pa, ElCascader as rr, ElCascaderPanel as Ra, ElCheckTag as Da, ElCheckbox as Mt, ElCheckboxButton as ar, ElCheckboxGroup as zn, ElCol as Fa, ElCollapse as ka, ElCollapseItem as Oa, ElCollapseTransition as qa, ElColorPicker as La, ElConfigProvider as Ma, ElContainer as _a, ElAside as Ba, ElFooter as Ha, ElHeader as ja, ElMain as Ka, ElDatePicker as or, ElDescriptions as za, ElDescriptionsItem as Wa, ElDialog as sr, ElDivider as Ya, ElDrawer as Ga, ElDropdown as Ua, ElDropdownItem as Xa, ElDropdownMenu as Za, ElEmpty as Ja, ElForm as Qa, ElFormItem as eo, ElIcon as Pt, ElImage as to, ElImageViewer as no, ElInput as Wn, ElInputNumber as ir, ElLink as lo, ElMenu as ro, ElSubMenu as ao, ElMenuItem as oo, ElMenuItemGroup as so, ElPageHeader as io, ElPagination as ur, ElPopconfirm as uo, ElPopover as Yn, ElPopper as co, ElProgress as fo, ElRadio as In, ElRadioButton as cr, ElRadioGroup as fr, ElRate as dr, ElResult as ho, ElRow as go, ElScrollbar as mo, ElSelect as hr, ElOption as Ot, ElOptionGroup as gr, ElSelectV2 as po, ElSkeleton as vo, ElSkeletonItem as yo, ElSlider as bo, ElSpace as xo, ElSteps as wo, ElStep as So, ElSwitch as mr, ElTable as pr, ElTableColumn as Gn, ElTableV2 as $o, ElTabs as To, ElTabPane as Eo, ElTag as Co, ElTimePicker as vr, ElTimeSelect as yr, ElTimeline as No, ElTimelineItem as Ao, ElTooltip as br, ElTransfer as Io, ElTree as Vo, ElTreeSelect as xr, ElTreeV2 as Po, ElUpload as Ro, ElInfiniteScroll as Do, ElLoading as Fo, ElMessage as ko, ElMessageBox as Oo, ElNotification as qo, ElPopoverDirective as Lo } from "element-plus";
|
|
4
|
+
import { ElAffix as Ag, ElAlert as Ig, ElAside as Vg, ElAutoResizer as Pg, ElAutocomplete as Rg, ElAvatar as Dg, ElBacktop as Fg, ElBadge as kg, ElBreadcrumb as Og, ElBreadcrumbItem as qg, ElButton as Lg, ElButtonGroup as Mg, ElCalendar as _g, ElCard as Bg, ElCarousel as Hg, ElCarouselItem as jg, ElCascader as Kg, ElCascaderPanel as zg, ElCheckTag as Wg, ElCheckbox as Yg, ElCheckboxButton as Gg, ElCheckboxGroup as Ug, ElCol as Xg, ElCollapse as Zg, ElCollapseItem as Jg, ElCollapseTransition as Qg, ElColorPicker as em, ElConfigProvider as tm, ElContainer as nm, ElDatePicker as lm, ElDescriptions as rm, ElDescriptionsItem as am, ElDialog as om, ElDivider as sm, ElDrawer as im, ElDropdown as um, ElDropdownItem as cm, ElDropdownMenu as fm, ElEmpty as dm, ElFooter as hm, ElForm as gm, ElFormItem as mm, ElHeader as pm, ElIcon as vm, ElImage as ym, ElImageViewer as bm, ElInput as xm, ElInputNumber as wm, ElLink as Sm, ElMain as $m, ElMenu as Tm, ElMenuItem as Em, ElMenuItemGroup as Cm, ElOption as Nm, ElOptionGroup as Am, ElPageHeader as Im, ElPagination as Vm, ElPopconfirm as Pm, ElPopover as Rm, ElPopper as Dm, ElProgress as Fm, ElRadio as km, ElRadioButton as Om, ElRadioGroup as qm, ElRate as Lm, ElResult as Mm, ElRow as _m, ElScrollbar as Bm, ElSelect as Hm, ElSelectV2 as jm, ElSkeleton as Km, ElSkeletonItem as zm, ElSlider as Wm, ElSpace as Ym, ElStep as Gm, ElSteps as Um, ElSubMenu as Xm, ElSwitch as Zm, ElTabPane as Jm, ElTable as Qm, ElTableColumn as ep, ElTableV2 as tp, ElTabs as np, ElTag as lp, ElTimePicker as rp, ElTimeSelect as ap, ElTimeline as op, ElTimelineItem as sp, ElTooltip as ip, ElTransfer as up, ElTree as cp, ElTreeSelect as fp, ElTreeV2 as dp, ElUpload as hp } from "element-plus";
|
|
5
5
|
import { ArrowLeft as wr, ArrowUp as un, Download as Mo, RefreshLeft as _o, Setting as Bo, Close as Sr, ArrowRight as Ho } from "@element-plus/icons-vue";
|
|
6
|
-
import { useFoxI18n as
|
|
6
|
+
import { useFoxI18n as Je } from "@fox-js/i18n";
|
|
7
7
|
/*!
|
|
8
|
-
* @fox-js/foxui-desktop v4.0.0 Wed
|
|
8
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Nov 01 2023 08:39:20 GMT+0800 (中国标准时间)
|
|
9
9
|
*/
|
|
10
10
|
const zt = window, jo = typeof window < "u";
|
|
11
11
|
function Ko() {
|
|
@@ -440,7 +440,7 @@ const es = {
|
|
|
440
440
|
"[object RegExp]": "regExp",
|
|
441
441
|
"[object Object]": "object"
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function Fn(e) {
|
|
444
444
|
let l = Object.prototype.toString.call(e);
|
|
445
445
|
return e == null ? String(e) : es[l] || "object";
|
|
446
446
|
}
|
|
@@ -451,7 +451,7 @@ function ns(e) {
|
|
|
451
451
|
return !e || e.offsetParent === null;
|
|
452
452
|
}
|
|
453
453
|
function ls(e) {
|
|
454
|
-
let t = !!e && "length" in e && e.length, l =
|
|
454
|
+
let t = !!e && "length" in e && e.length, l = Fn(e);
|
|
455
455
|
return l === "function" || ts(e) ? !1 : l === "array" || t === 0 || typeof t == "number" && t > 0 && t - 1 in e;
|
|
456
456
|
}
|
|
457
457
|
function rs(e, t) {
|
|
@@ -469,7 +469,7 @@ function bt(e, t) {
|
|
|
469
469
|
return !0;
|
|
470
470
|
if (e === void 0 || t === void 0)
|
|
471
471
|
return !1;
|
|
472
|
-
let l =
|
|
472
|
+
let l = Fn(e), n = Fn(t);
|
|
473
473
|
if (l !== n)
|
|
474
474
|
return !1;
|
|
475
475
|
if (l === "object") {
|
|
@@ -533,13 +533,13 @@ function Dh(e, t = !0, l = !0) {
|
|
|
533
533
|
const n = t ? /[^-0-9.]/g : /[^-0-9]/g;
|
|
534
534
|
return e.replace(n, "");
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Fh(e, t) {
|
|
537
537
|
return typeof e == "object" || Array.isArray(e) ? t.findIndex((l) => {
|
|
538
538
|
if (bt(e, l))
|
|
539
539
|
return !0;
|
|
540
540
|
}) : t.indexOf(e);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function kh(e, t) {
|
|
543
543
|
if (typeof e == "object" || Array.isArray(e)) {
|
|
544
544
|
let l = t.reverse().findIndex((n) => {
|
|
545
545
|
if (bt(e, n))
|
|
@@ -692,16 +692,16 @@ function qh(e, t, l) {
|
|
|
692
692
|
const n = l;
|
|
693
693
|
if (n[Ne])
|
|
694
694
|
return n[Ne];
|
|
695
|
-
const r =
|
|
695
|
+
const r = ke(Ne, null), a = new Cr(r, l, e);
|
|
696
696
|
if (t && typeof t == "object")
|
|
697
697
|
for (const o in t)
|
|
698
698
|
a.on(o, t[o]);
|
|
699
|
-
return n[Ne] = a, Oe(Ne, a),
|
|
699
|
+
return n[Ne] = a, Oe(Ne, a), Ze(() => {
|
|
700
700
|
a.destroy(), n[Ne] = void 0;
|
|
701
701
|
}), a;
|
|
702
702
|
}
|
|
703
703
|
function Wt(e = null) {
|
|
704
|
-
return e || (e = Le()?.proxy ?? null), e ? e[Ne] ??
|
|
704
|
+
return e || (e = Le()?.proxy ?? null), e ? e[Ne] ?? ke(Ne, null) : ke(Ne, null);
|
|
705
705
|
}
|
|
706
706
|
const gt = (e) => e.default ?? e;
|
|
707
707
|
class cs {
|
|
@@ -777,7 +777,7 @@ function ds() {
|
|
|
777
777
|
function jh(e) {
|
|
778
778
|
gt(ht).messages(e);
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function Ft(...e) {
|
|
781
781
|
const t = [];
|
|
782
782
|
return e.forEach((l) => {
|
|
783
783
|
l.forEach((n) => {
|
|
@@ -839,7 +839,7 @@ class hs {
|
|
|
839
839
|
let t = this.proxy.$attrs;
|
|
840
840
|
t && (this.scope = da(), this.scope.run(() => {
|
|
841
841
|
ha(() => {
|
|
842
|
-
const l = Yt(
|
|
842
|
+
const l = Yt(Ft(this.attrRules, this.rules)), n = [];
|
|
843
843
|
for (let a in t) {
|
|
844
844
|
let o = t[a];
|
|
845
845
|
if (this.hasValidator(a, !0)) {
|
|
@@ -861,7 +861,7 @@ class hs {
|
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
this.attrRules = Yt(n);
|
|
864
|
-
const r =
|
|
864
|
+
const r = Ft(this.attrRules, this.rules);
|
|
865
865
|
yt(() => {
|
|
866
866
|
this.decorate(r, l);
|
|
867
867
|
});
|
|
@@ -958,9 +958,9 @@ class hs {
|
|
|
958
958
|
* @param rule
|
|
959
959
|
*/
|
|
960
960
|
setRule(t) {
|
|
961
|
-
const l =
|
|
961
|
+
const l = Ft(this.attrRules, this.rules);
|
|
962
962
|
t === null ? this.rules = [] : Array.isArray(t) ? this.rules = Yt(t) : this.rules = Yt([t]);
|
|
963
|
-
const n =
|
|
963
|
+
const n = Ft(this.attrRules, this.rules);
|
|
964
964
|
yt(() => {
|
|
965
965
|
this.decorate(n, l);
|
|
966
966
|
});
|
|
@@ -979,7 +979,7 @@ class hs {
|
|
|
979
979
|
*/
|
|
980
980
|
validate() {
|
|
981
981
|
if (this.descriptor.validate ?? !0) {
|
|
982
|
-
let l =
|
|
982
|
+
let l = Ft(this.attrRules, this.rules);
|
|
983
983
|
const n = this.descriptor.fieldName ?? "value";
|
|
984
984
|
if (l.length > 0) {
|
|
985
985
|
const r = {
|
|
@@ -1126,7 +1126,7 @@ function Vr(e, t, l, n = 0, r = !0) {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
setTimeout(s, a);
|
|
1128
1128
|
}
|
|
1129
|
-
const ze = Symbol("DomainKey"),
|
|
1129
|
+
const ze = Symbol("DomainKey"), kt = Symbol("DataItemsKey");
|
|
1130
1130
|
class el {
|
|
1131
1131
|
/**
|
|
1132
1132
|
* 父亲domain
|
|
@@ -1278,12 +1278,12 @@ function Lt() {
|
|
|
1278
1278
|
return ps;
|
|
1279
1279
|
}
|
|
1280
1280
|
function ct(e = null) {
|
|
1281
|
-
return e || (e = Le()?.proxy ?? null), e ? e[ze] ??
|
|
1281
|
+
return e || (e = Le()?.proxy ?? null), e ? e[ze] ?? ke(ze, null) : ke(ze, null);
|
|
1282
1282
|
}
|
|
1283
1283
|
const wn = Symbol("OriginalDateKey");
|
|
1284
1284
|
function Pr(e, t, l = [], n) {
|
|
1285
1285
|
const r = Le(), a = r?.proxy;
|
|
1286
|
-
let o =
|
|
1286
|
+
let o = ke(ze, null);
|
|
1287
1287
|
o === null && (o = Lt());
|
|
1288
1288
|
const s = e || t.prop || t.name, i = new el(s);
|
|
1289
1289
|
i.parent = o;
|
|
@@ -1293,7 +1293,7 @@ function Pr(e, t, l = [], n) {
|
|
|
1293
1293
|
const m = {};
|
|
1294
1294
|
Nt(!0, m, me(d)), a[wn] = m;
|
|
1295
1295
|
};
|
|
1296
|
-
ut(t) || typeof t == "function" ?
|
|
1296
|
+
ut(t) || typeof t == "function" ? ie(
|
|
1297
1297
|
t,
|
|
1298
1298
|
(d) => {
|
|
1299
1299
|
i.merge(d, l);
|
|
@@ -1302,10 +1302,10 @@ function Pr(e, t, l = [], n) {
|
|
|
1302
1302
|
) : i.merge(t, l), t.modelValue && p(t.modelValue), a[ze] = i, Oe(ze, i);
|
|
1303
1303
|
let S = null, h = null;
|
|
1304
1304
|
if (r !== null) {
|
|
1305
|
-
const d =
|
|
1305
|
+
const d = ke(Ne, null);
|
|
1306
1306
|
S = Jn(a, d, s, n), i.broadcast = S, a[Ne] = S, Oe(Ne, S), a.broadcast = (g, w, ...T) => Reflect.apply(S.emit, S, [g, w, ...T]);
|
|
1307
|
-
const m =
|
|
1308
|
-
h = Qn(a, m, { componentName: "" }), i.validateSchema = h, a[ot] = h, Oe(ot, h), a[
|
|
1307
|
+
const m = ke(ot, null);
|
|
1308
|
+
h = Qn(a, m, { componentName: "" }), i.validateSchema = h, a[ot] = h, Oe(ot, h), a[kt] = /* @__PURE__ */ new Map(), a.validate = (g = !0) => {
|
|
1309
1309
|
const w = [];
|
|
1310
1310
|
let T = null;
|
|
1311
1311
|
const P = { deep: !1 };
|
|
@@ -1363,7 +1363,7 @@ function Pr(e, t, l = [], n) {
|
|
|
1363
1363
|
S,
|
|
1364
1364
|
h
|
|
1365
1365
|
);
|
|
1366
|
-
a[
|
|
1366
|
+
a[kt].set(E, R);
|
|
1367
1367
|
const N = g[E];
|
|
1368
1368
|
N && R.validateSchema.setRule(N);
|
|
1369
1369
|
});
|
|
@@ -1425,22 +1425,22 @@ function Pr(e, t, l = [], n) {
|
|
|
1425
1425
|
!w || w === s ? c(g) : S?.emitToChildren({ name: w }, "setModelValue", g);
|
|
1426
1426
|
}, a.getModelValue = () => u();
|
|
1427
1427
|
}
|
|
1428
|
-
return
|
|
1429
|
-
i.destroy(), a[ze] = void 0, a[
|
|
1428
|
+
return Ze(() => {
|
|
1429
|
+
i.destroy(), a[ze] = void 0, a[kt] && (a[kt].clear(), a[kt] = void 0), S !== null && (S.destroy(), a[Ne] = void 0), h !== null && (h.destroy(), a[ot] = void 0);
|
|
1430
1430
|
}), i;
|
|
1431
1431
|
}
|
|
1432
1432
|
function vs(e, t, l = []) {
|
|
1433
1433
|
const r = Le()?.proxy;
|
|
1434
|
-
let a =
|
|
1434
|
+
let a = ke(ze, null);
|
|
1435
1435
|
a === null && (a = Lt());
|
|
1436
1436
|
const o = e || t.prop || t.name, s = new el(o);
|
|
1437
|
-
return s.parent = a, ut(t) || typeof t == "function" ?
|
|
1437
|
+
return s.parent = a, ut(t) || typeof t == "function" ? ie(
|
|
1438
1438
|
t,
|
|
1439
1439
|
(i) => {
|
|
1440
1440
|
s.merge(i, l);
|
|
1441
1441
|
},
|
|
1442
1442
|
{ immediate: !0 }
|
|
1443
|
-
) : s.merge(t, l), r[ze] = s, Oe(ze, s),
|
|
1443
|
+
) : s.merge(t, l), r[ze] = s, Oe(ze, s), Ze(() => {
|
|
1444
1444
|
s.destroy(), r[ze] = void 0;
|
|
1445
1445
|
}), s;
|
|
1446
1446
|
}
|
|
@@ -1454,9 +1454,9 @@ function ys(e, t, l) {
|
|
|
1454
1454
|
}));
|
|
1455
1455
|
}
|
|
1456
1456
|
function Ve(e, t, l) {
|
|
1457
|
-
const r = Le()?.proxy, a = t ?? "", o =
|
|
1457
|
+
const r = Le()?.proxy, a = t ?? "", o = ke(Ne, null), s = Jn(r, o, a, l);
|
|
1458
1458
|
r[Ne] = s, Oe(Ne, s), r.broadcast = (h, d, ...m) => Reflect.apply(s.emit, s, [h, d, ...m]);
|
|
1459
|
-
const i =
|
|
1459
|
+
const i = ke(ot, null);
|
|
1460
1460
|
e.fieldName = e.fieldName ?? a;
|
|
1461
1461
|
const c = Qn(r, i, e);
|
|
1462
1462
|
r[ot] = c, Oe(ot, c), ys(r, c, a), r.validate = (h = null) => {
|
|
@@ -1564,7 +1564,7 @@ function Ve(e, t, l) {
|
|
|
1564
1564
|
u.on(h, (d) => {
|
|
1565
1565
|
f("reset");
|
|
1566
1566
|
});
|
|
1567
|
-
}),
|
|
1567
|
+
}), Ze(() => {
|
|
1568
1568
|
s.destroy(), r[Ne] = void 0, c.destroy(), r[ot] = void 0, u.destroy(), r[pl] = void 0;
|
|
1569
1569
|
}), {
|
|
1570
1570
|
broadcast: s,
|
|
@@ -1737,7 +1737,7 @@ function xs(e, t = {}) {
|
|
|
1737
1737
|
const o = e.get("rootWidth") ?? -1, s = e.get("rootHeight") ?? -1, i = e.get("headerBarHeight") ?? 0, c = e.get("footerBarHeight") ?? 0;
|
|
1738
1738
|
vl(n, a, t, !0, o, s, i, c);
|
|
1739
1739
|
const u = sn(n), f = e.getForParent(it);
|
|
1740
|
-
f && (n.height =
|
|
1740
|
+
f && (n.height = kn(e, f), n.width = On(e, f), ie(
|
|
1741
1741
|
[
|
|
1742
1742
|
() => f.height,
|
|
1743
1743
|
() => f.width,
|
|
@@ -1746,11 +1746,11 @@ function xs(e, t = {}) {
|
|
|
1746
1746
|
() => f.footerMounted
|
|
1747
1747
|
],
|
|
1748
1748
|
() => {
|
|
1749
|
-
u.height =
|
|
1749
|
+
u.height = kn(e, f), u.width = On(e, f);
|
|
1750
1750
|
}
|
|
1751
1751
|
));
|
|
1752
1752
|
const p = !f;
|
|
1753
|
-
return
|
|
1753
|
+
return ie(
|
|
1754
1754
|
[
|
|
1755
1755
|
() => t.height,
|
|
1756
1756
|
() => e.get("pageLayout"),
|
|
@@ -1797,7 +1797,7 @@ function an(e, t) {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
return 0;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function kn(e, t) {
|
|
1801
1801
|
if (t = t ?? e.get(it), t) {
|
|
1802
1802
|
if (t.contentInnerHeight)
|
|
1803
1803
|
return t.contentInnerHeight;
|
|
@@ -1816,13 +1816,13 @@ function Wh(e, t) {
|
|
|
1816
1816
|
function Yh(e) {
|
|
1817
1817
|
return !!e.getForParent(it);
|
|
1818
1818
|
}
|
|
1819
|
-
var
|
|
1819
|
+
var Ue = /* @__PURE__ */ ((e) => (e[e.Parent = 0] = "Parent", e[e.Near = 1] = "Near", e))(Ue || {});
|
|
1820
1820
|
function Sn(e, t) {
|
|
1821
1821
|
return e == null ? !1 : typeof t == "function" ? t(e) : !0;
|
|
1822
1822
|
}
|
|
1823
1823
|
function je(e, t, l = 1, n) {
|
|
1824
1824
|
const r = ct();
|
|
1825
|
-
return r == null ? e : l === 0 ?
|
|
1825
|
+
return r == null ? e : l === 0 ? b(() => {
|
|
1826
1826
|
const a = r.getAll(t);
|
|
1827
1827
|
for (let s = a.length - 1; s >= 0; s--) {
|
|
1828
1828
|
const i = a[s];
|
|
@@ -1831,7 +1831,7 @@ function je(e, t, l = 1, n) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
const o = e.value;
|
|
1833
1833
|
return Sn(o, n) ? o : null;
|
|
1834
|
-
}) :
|
|
1834
|
+
}) : b(() => {
|
|
1835
1835
|
const a = e.value;
|
|
1836
1836
|
return Sn(a, n) ? a : r?.get(t);
|
|
1837
1837
|
});
|
|
@@ -1851,7 +1851,7 @@ function pe(e, t = "modelValue", l) {
|
|
|
1851
1851
|
let r = n.value;
|
|
1852
1852
|
typeof l == "function" && (r = l(n.value));
|
|
1853
1853
|
const a = D(r);
|
|
1854
|
-
return
|
|
1854
|
+
return ie(n, (o) => {
|
|
1855
1855
|
if (typeof l == "function") {
|
|
1856
1856
|
const s = l(o);
|
|
1857
1857
|
s !== a.value && (a.value = s);
|
|
@@ -1871,7 +1871,7 @@ function Dr(e, t, l) {
|
|
|
1871
1871
|
} else
|
|
1872
1872
|
Rr.set(e, t);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function Ge(e, t, l) {
|
|
1875
1875
|
!l && qn && (l = qn(e) ?? void 0);
|
|
1876
1876
|
let n = null;
|
|
1877
1877
|
if (l) {
|
|
@@ -2002,7 +2002,7 @@ class Cs {
|
|
|
2002
2002
|
* @param scope
|
|
2003
2003
|
*/
|
|
2004
2004
|
getAPI(t, l, n) {
|
|
2005
|
-
return
|
|
2005
|
+
return Ge(t, l, n);
|
|
2006
2006
|
}
|
|
2007
2007
|
/**
|
|
2008
2008
|
* 批量增加api
|
|
@@ -2048,8 +2048,8 @@ const Ns = [
|
|
|
2048
2048
|
Mt,
|
|
2049
2049
|
ar,
|
|
2050
2050
|
zn,
|
|
2051
|
-
ka,
|
|
2052
2051
|
Fa,
|
|
2052
|
+
ka,
|
|
2053
2053
|
Oa,
|
|
2054
2054
|
qa,
|
|
2055
2055
|
La,
|
|
@@ -2123,8 +2123,8 @@ const Ns = [
|
|
|
2123
2123
|
Ro
|
|
2124
2124
|
], As = [
|
|
2125
2125
|
Do,
|
|
2126
|
-
ko,
|
|
2127
2126
|
Fo,
|
|
2127
|
+
ko,
|
|
2128
2128
|
Oo,
|
|
2129
2129
|
qo,
|
|
2130
2130
|
Lo
|
|
@@ -2329,7 +2329,7 @@ const Ee = {
|
|
|
2329
2329
|
required: !1,
|
|
2330
2330
|
default: !1
|
|
2331
2331
|
}
|
|
2332
|
-
},
|
|
2332
|
+
}, Fr = {
|
|
2333
2333
|
// 列数
|
|
2334
2334
|
column: {
|
|
2335
2335
|
type: [String, Number],
|
|
@@ -2355,7 +2355,7 @@ const Ee = {
|
|
|
2355
2355
|
type: [String, Number],
|
|
2356
2356
|
required: !1
|
|
2357
2357
|
}
|
|
2358
|
-
},
|
|
2358
|
+
}, kr = {
|
|
2359
2359
|
// 名称
|
|
2360
2360
|
name: {
|
|
2361
2361
|
type: String,
|
|
@@ -2491,7 +2491,7 @@ const Ee = {
|
|
|
2491
2491
|
default: !0
|
|
2492
2492
|
}
|
|
2493
2493
|
}, Or = [];
|
|
2494
|
-
for (const e in
|
|
2494
|
+
for (const e in kr)
|
|
2495
2495
|
Or.push(e);
|
|
2496
2496
|
function Re(e, t = null) {
|
|
2497
2497
|
if (t || (t = Le()), t && t.proxy) {
|
|
@@ -2507,7 +2507,7 @@ const Vs = Symbol.for("InnerPageScopeKey"), Ps = (e, t) => ({
|
|
|
2507
2507
|
// item属性(domain属性)
|
|
2508
2508
|
...Ee,
|
|
2509
2509
|
// group属性(domain属性)
|
|
2510
|
-
...
|
|
2510
|
+
...Fr,
|
|
2511
2511
|
// 名称
|
|
2512
2512
|
name: {
|
|
2513
2513
|
type: String,
|
|
@@ -2580,21 +2580,21 @@ const Vs = Symbol.for("InnerPageScopeKey"), Ps = (e, t) => ({
|
|
|
2580
2580
|
if (r) {
|
|
2581
2581
|
const c = xs(r, l);
|
|
2582
2582
|
Re({
|
|
2583
|
-
getPageContentHeight: () =>
|
|
2583
|
+
getPageContentHeight: () => kn(r, c),
|
|
2584
2584
|
getPageContentWidth: () => On(r, c),
|
|
2585
2585
|
getPageHeaderHeight: () => rn(r, c),
|
|
2586
2586
|
getPageFooterHeight: () => an(r, c)
|
|
2587
2587
|
});
|
|
2588
|
-
const u =
|
|
2588
|
+
const u = ke(Vs, !1);
|
|
2589
2589
|
c && u && (c.contentHeight = "100%");
|
|
2590
2590
|
}
|
|
2591
|
-
const a =
|
|
2591
|
+
const a = b(() => ({
|
|
2592
2592
|
[e]: !0
|
|
2593
|
-
})), o =
|
|
2593
|
+
})), o = b(() => ({})), s = Le(), i = (c, u = !1) => {
|
|
2594
2594
|
const f = s?.proxy;
|
|
2595
2595
|
f && typeof f.setNameValidateRules == "function" && f.setNameValidateRules(c, !0, u);
|
|
2596
2596
|
};
|
|
2597
|
-
return
|
|
2597
|
+
return ie(
|
|
2598
2598
|
[() => l.rules, () => l.pureDataRules],
|
|
2599
2599
|
([c, u], [f, p]) => {
|
|
2600
2600
|
if (c && f) {
|
|
@@ -2626,8 +2626,8 @@ const Vs = Symbol.for("InnerPageScopeKey"), Ps = (e, t) => ({
|
|
|
2626
2626
|
styles: o
|
|
2627
2627
|
};
|
|
2628
2628
|
}
|
|
2629
|
-
}), { componentName: Rs, create: Ds, scope: Gh } = ae("page"),
|
|
2630
|
-
function
|
|
2629
|
+
}), { componentName: Rs, create: Ds, scope: Gh } = ae("page"), Fs = Ds(Ps(Rs));
|
|
2630
|
+
function ks(e, t, l, n, r, a) {
|
|
2631
2631
|
return Z(), ne("div", {
|
|
2632
2632
|
class: ye(e.classes),
|
|
2633
2633
|
style: Te(e.styles),
|
|
@@ -2641,7 +2641,7 @@ const We = (e, t) => {
|
|
|
2641
2641
|
for (const [n, r] of t)
|
|
2642
2642
|
l[n] = r;
|
|
2643
2643
|
return l;
|
|
2644
|
-
}, Os = /* @__PURE__ */ We(
|
|
2644
|
+
}, Os = /* @__PURE__ */ We(Fs, [["render", ks]]);
|
|
2645
2645
|
function qr(e) {
|
|
2646
2646
|
const t = at(e);
|
|
2647
2647
|
return {
|
|
@@ -2746,7 +2746,7 @@ const qs = (e, t, l, n = !1) => ({
|
|
|
2746
2746
|
setup(r, a) {
|
|
2747
2747
|
const o = ct(), s = o ? tl(o) : null;
|
|
2748
2748
|
s && (s.headerMounted = !0);
|
|
2749
|
-
const i =
|
|
2749
|
+
const i = b(() => {
|
|
2750
2750
|
const x = e;
|
|
2751
2751
|
return {
|
|
2752
2752
|
[x]: !0,
|
|
@@ -2754,7 +2754,7 @@ const qs = (e, t, l, n = !1) => ({
|
|
|
2754
2754
|
[`${x}--fixed`]: r.fixed,
|
|
2755
2755
|
[`${x}--safe-area-inset-top`]: r.safeAreaInsetTop
|
|
2756
2756
|
};
|
|
2757
|
-
}), c = r.height !== null && r.height !== void 0 ? be(r.height) : null, u =
|
|
2757
|
+
}), c = r.height !== null && r.height !== void 0 ? be(r.height) : null, u = b(() => {
|
|
2758
2758
|
const x = {
|
|
2759
2759
|
safeAreaTop: null,
|
|
2760
2760
|
height: null,
|
|
@@ -2787,20 +2787,20 @@ const qs = (e, t, l, n = !1) => ({
|
|
|
2787
2787
|
s && (Vr(p, 50, 5, 50, !0), window.ResizeObserver && (S = new window.ResizeObserver(() => {
|
|
2788
2788
|
p();
|
|
2789
2789
|
}), S.observe(f.value)));
|
|
2790
|
-
}),
|
|
2790
|
+
}), Ze(() => {
|
|
2791
2791
|
s && (s.headerMounted = !1, S && (S.disconnect(), S = null));
|
|
2792
2792
|
});
|
|
2793
|
-
const h =
|
|
2793
|
+
const h = b(() => {
|
|
2794
2794
|
const x = {};
|
|
2795
2795
|
return u.value.height !== null && u.value.height !== void 0 && (x.height = `${u.value.height}px`), u.value.top !== null && u.value.top !== void 0 && (x.paddingTop = `${u.value.top}px`), u.value.left !== null && u.value.left !== void 0 && (x.paddingLeft = `${u.value.left}px`), u.value.right !== null && u.value.right !== void 0 && (x.paddingRight = `${u.value.right}px`), u.value.bottom !== null && u.value.bottom !== void 0 && (x.paddingBottom = `${u.value.bottom}px`), x;
|
|
2796
|
-
}), d =
|
|
2796
|
+
}), d = b(() => {
|
|
2797
2797
|
const x = {};
|
|
2798
2798
|
return u.value.safeAreaTop !== null && u.value.safeAreaTop !== void 0 && (x.top = `${u.value.safeAreaTop}px`), x;
|
|
2799
|
-
}), m =
|
|
2799
|
+
}), m = b(() => {
|
|
2800
2800
|
const x = {};
|
|
2801
2801
|
return u.value.safeAreaTop !== null && u.value.safeAreaTop !== void 0 && (x.top = `${u.value.safeAreaTop}px`), x;
|
|
2802
|
-
}), g =
|
|
2803
|
-
function
|
|
2802
|
+
}), g = b(() => !!r.leftShow), w = b(() => !(u.value.height !== null && u.value.height !== void 0 && u.value.height <= 0)), T = b(() => r.titleShow ? r.title || r.titleIcon || a.slots.titleIcon || a.slots.default : !1), P = b(() => r.rightShow ? r.rightText || r.rightIcon || a.slots.rightIcon || a.slots.right : !1), A = b(() => r.leftIcon), E = b(() => A.value || a.slots.leftIcon), C = b(() => r.titleIcon), R = b(() => r.titleIcon || a.slots.titleIcon), N = b(() => r.rightIcon), F = b(() => r.rightIcon || a.slots.rightIcon);
|
|
2803
|
+
function j() {
|
|
2804
2804
|
a.emit("back");
|
|
2805
2805
|
}
|
|
2806
2806
|
function Y() {
|
|
@@ -2827,8 +2827,8 @@ const qs = (e, t, l, n = !1) => ({
|
|
|
2827
2827
|
mTitleIcon: C,
|
|
2828
2828
|
hasTitleIcon: R,
|
|
2829
2829
|
mRightIcon: N,
|
|
2830
|
-
hasRightIcon:
|
|
2831
|
-
handleLeft:
|
|
2830
|
+
hasRightIcon: F,
|
|
2831
|
+
handleLeft: j,
|
|
2832
2832
|
handleCenter: Y,
|
|
2833
2833
|
handleRight: v,
|
|
2834
2834
|
handleRightText: $
|
|
@@ -2950,7 +2950,7 @@ function Ws(e, t, l = !1) {
|
|
|
2950
2950
|
},
|
|
2951
2951
|
// setup
|
|
2952
2952
|
setup(n, r) {
|
|
2953
|
-
const a = ct(), o = a ? tl(a) : null, s =
|
|
2953
|
+
const a = ct(), o = a ? tl(a) : null, s = b(() => {
|
|
2954
2954
|
const h = e;
|
|
2955
2955
|
return {
|
|
2956
2956
|
[h]: !0,
|
|
@@ -2959,7 +2959,7 @@ function Ws(e, t, l = !1) {
|
|
|
2959
2959
|
[`${h}--fixed`]: n.fixed,
|
|
2960
2960
|
[`${h}--safe-area-inset-bottom`]: n.safeAreaInsetBottom
|
|
2961
2961
|
};
|
|
2962
|
-
}), i = n.height !== null && n.height !== void 0 ? be(n.height) : null, c =
|
|
2962
|
+
}), i = n.height !== null && n.height !== void 0 ? be(n.height) : null, c = b(() => {
|
|
2963
2963
|
const h = {
|
|
2964
2964
|
safeAreaBottom: null,
|
|
2965
2965
|
height: null,
|
|
@@ -2992,10 +2992,10 @@ function Ws(e, t, l = !1) {
|
|
|
2992
2992
|
o && (Vr(f, 50, 5, 50, !0), window.ResizeObserver && (p = new window.ResizeObserver(() => {
|
|
2993
2993
|
f();
|
|
2994
2994
|
}), p.observe(u.value)));
|
|
2995
|
-
}),
|
|
2995
|
+
}), Ze(() => {
|
|
2996
2996
|
o && (o.footerMounted = !1, p && (p.disconnect(), p = null));
|
|
2997
2997
|
});
|
|
2998
|
-
const S =
|
|
2998
|
+
const S = b(() => {
|
|
2999
2999
|
const h = {};
|
|
3000
3000
|
return c.value.height !== null && c.value.height !== void 0 && (h.height = Ie(c.value.height)), c.value.top !== null && c.value.top !== void 0 && (h.paddingTop = Ie(c.value.top)), c.value.left !== null && c.value.left !== void 0 && (h.paddingLeft = Ie(c.value.left)), c.value.right !== null && c.value.right !== void 0 && (h.paddingRight = Ie(c.value.right)), c.value.bottom !== null && c.value.bottom !== void 0 && (h.paddingBottom = Ie(c.value.bottom)), h;
|
|
3001
3001
|
});
|
|
@@ -3030,9 +3030,9 @@ function Js(e, t) {
|
|
|
3030
3030
|
},
|
|
3031
3031
|
// setup
|
|
3032
3032
|
setup(l) {
|
|
3033
|
-
const n = ct(), r =
|
|
3033
|
+
const n = ct(), r = b(() => ({
|
|
3034
3034
|
[e]: !0
|
|
3035
|
-
})), a = n ? tl(n) : null, o =
|
|
3035
|
+
})), a = n ? tl(n) : null, o = b(() => {
|
|
3036
3036
|
const c = {};
|
|
3037
3037
|
if (n && a) {
|
|
3038
3038
|
if (l.padding) {
|
|
@@ -3064,7 +3064,7 @@ function Js(e, t) {
|
|
|
3064
3064
|
};
|
|
3065
3065
|
return _e(() => {
|
|
3066
3066
|
i();
|
|
3067
|
-
}), n && a &&
|
|
3067
|
+
}), n && a && ie([() => rn(n), () => an(n)], ([]) => {
|
|
3068
3068
|
i();
|
|
3069
3069
|
}), {
|
|
3070
3070
|
contentRef: s,
|
|
@@ -3086,7 +3086,7 @@ function ni(e, t, l, n, r, a) {
|
|
|
3086
3086
|
}
|
|
3087
3087
|
const li = /* @__PURE__ */ We(ti, [["render", ni]]), At = "GroupStateKey", Mr = Symbol.for("GroupScopeKey");
|
|
3088
3088
|
function fn() {
|
|
3089
|
-
return
|
|
3089
|
+
return ke(Mr, !1);
|
|
3090
3090
|
}
|
|
3091
3091
|
function dn(e = !0) {
|
|
3092
3092
|
Oe(Mr, e);
|
|
@@ -3206,7 +3206,7 @@ function oi(e) {
|
|
|
3206
3206
|
Oe(_r, e);
|
|
3207
3207
|
}
|
|
3208
3208
|
function si() {
|
|
3209
|
-
return
|
|
3209
|
+
return ke(_r, null);
|
|
3210
3210
|
}
|
|
3211
3211
|
function Ln(e) {
|
|
3212
3212
|
let t = 0;
|
|
@@ -3236,9 +3236,9 @@ const ci = {
|
|
|
3236
3236
|
// item属性(domain范围)
|
|
3237
3237
|
...Ee,
|
|
3238
3238
|
// group属性(domain范围)
|
|
3239
|
-
...
|
|
3239
|
+
...Fr,
|
|
3240
3240
|
// group属性
|
|
3241
|
-
...
|
|
3241
|
+
...kr
|
|
3242
3242
|
};
|
|
3243
3243
|
function fi(e, t, l) {
|
|
3244
3244
|
return {
|
|
@@ -3250,54 +3250,54 @@ function fi(e, t, l) {
|
|
|
3250
3250
|
setup(n, r) {
|
|
3251
3251
|
const a = Pr(n.name, n, Or), o = ai(a, { type: n.type }), s = fn();
|
|
3252
3252
|
dn(!0);
|
|
3253
|
-
const i = n.rollingDisplay ? si() : null, c = D(null), u =
|
|
3253
|
+
const i = n.rollingDisplay ? si() : null, c = D(null), u = b(() => n.rollingDisplay ? i && !i.disabled : !1), f = b(() => s && a ? hn(a, !0).value : null), p = Le(), S = (B, V = !1) => {
|
|
3254
3254
|
const q = p?.proxy;
|
|
3255
|
-
q && typeof q.setNameValidateRules == "function" && q.setNameValidateRules(
|
|
3255
|
+
q && typeof q.setNameValidateRules == "function" && q.setNameValidateRules(B, !0, V);
|
|
3256
3256
|
};
|
|
3257
|
-
|
|
3257
|
+
ie(
|
|
3258
3258
|
[() => n.rules, () => n.pureDataRules],
|
|
3259
|
-
([
|
|
3260
|
-
if (
|
|
3261
|
-
const L = me(q),
|
|
3259
|
+
([B, V], [q, I]) => {
|
|
3260
|
+
if (B && q) {
|
|
3261
|
+
const L = me(q), z = me(B), J = z ? Reflect.ownKeys(z) : [];
|
|
3262
3262
|
(L ? Reflect.ownKeys(L) : []).forEach((re) => {
|
|
3263
|
-
J.includes(re) || (
|
|
3264
|
-
}), S(
|
|
3263
|
+
J.includes(re) || (z[re] = []);
|
|
3264
|
+
}), S(z);
|
|
3265
3265
|
}
|
|
3266
3266
|
if (V && I) {
|
|
3267
|
-
const L = me(I),
|
|
3267
|
+
const L = me(I), z = me(V), J = z ? Reflect.ownKeys(z) : [];
|
|
3268
3268
|
(L ? Reflect.ownKeys(L) : []).forEach((re) => {
|
|
3269
|
-
J.includes(re) || (
|
|
3270
|
-
}), S(
|
|
3269
|
+
J.includes(re) || (z[re] = []);
|
|
3270
|
+
}), S(z, !0);
|
|
3271
3271
|
}
|
|
3272
3272
|
},
|
|
3273
3273
|
{ deep: !0 }
|
|
3274
3274
|
);
|
|
3275
|
-
const h = e, d =
|
|
3276
|
-
const
|
|
3277
|
-
|
|
3275
|
+
const h = e, d = b(() => {
|
|
3276
|
+
const B = {};
|
|
3277
|
+
B.height = H.value;
|
|
3278
3278
|
const V = s ? gn(a, !0) : null;
|
|
3279
3279
|
if (f.value && V) {
|
|
3280
3280
|
if (f.value.type === "grid") {
|
|
3281
3281
|
const q = pn(V, f.value, n.span, n.offset);
|
|
3282
|
-
Object.assign(
|
|
3282
|
+
Object.assign(B, q);
|
|
3283
3283
|
} else if (f.value.type === "flow") {
|
|
3284
3284
|
const q = mn(V, f.value, n.span, n.offset, n.width);
|
|
3285
|
-
Object.assign(
|
|
3285
|
+
Object.assign(B, q);
|
|
3286
3286
|
}
|
|
3287
3287
|
} else if (n.width) {
|
|
3288
3288
|
const q = Ie(n.width);
|
|
3289
|
-
|
|
3289
|
+
B.width = q;
|
|
3290
3290
|
}
|
|
3291
|
-
return
|
|
3292
|
-
}), m =
|
|
3293
|
-
const
|
|
3294
|
-
return
|
|
3295
|
-
[`${h}--${
|
|
3296
|
-
[`${h}--${
|
|
3297
|
-
[`${h}--${
|
|
3291
|
+
return B;
|
|
3292
|
+
}), m = b(() => {
|
|
3293
|
+
const B = o.layout.value.type;
|
|
3294
|
+
return B === "grid" || B === "flow" ? {
|
|
3295
|
+
[`${h}--${B}`]: !0,
|
|
3296
|
+
[`${h}--${B}-justify-${n.justify}`]: !0,
|
|
3297
|
+
[`${h}--${B}-align-${n.align}`]: !0,
|
|
3298
3298
|
[`${h}--gutter`]: !0
|
|
3299
|
-
} : { [`${h}--${
|
|
3300
|
-
}), g =
|
|
3299
|
+
} : { [`${h}--${B}`]: !0, [`${h}--gutter`]: !0 };
|
|
3300
|
+
}), g = b(() => {
|
|
3301
3301
|
if (o.layout.value.type === "grid") {
|
|
3302
3302
|
let V = "";
|
|
3303
3303
|
if (n.columnWidth)
|
|
@@ -3315,13 +3315,13 @@ function fi(e, t, l) {
|
|
|
3315
3315
|
"grid-template-columns": V
|
|
3316
3316
|
};
|
|
3317
3317
|
}
|
|
3318
|
-
}), w = $t(n, "title"), T = $t(n, "gutter"), P = $t(n, "column"), A =
|
|
3319
|
-
E.push(
|
|
3318
|
+
}), w = $t(n, "title"), T = $t(n, "gutter"), P = $t(n, "column"), A = b(() => s || u.value ? !0 : le(n.isWrap)), E = [], C = (B) => {
|
|
3319
|
+
E.push(B);
|
|
3320
3320
|
}, R = () => {
|
|
3321
|
-
let
|
|
3322
|
-
E.splice(0,
|
|
3323
|
-
}, N = D(-1),
|
|
3324
|
-
const V = Lr(
|
|
3321
|
+
let B = E.length;
|
|
3322
|
+
E.splice(0, B);
|
|
3323
|
+
}, N = D(-1), F = (B) => {
|
|
3324
|
+
const V = Lr(B).width;
|
|
3325
3325
|
V > 0 && V !== N.value && (N.value = V);
|
|
3326
3326
|
};
|
|
3327
3327
|
$n(
|
|
@@ -3333,55 +3333,55 @@ function fi(e, t, l) {
|
|
|
3333
3333
|
n.minItemWidth,
|
|
3334
3334
|
n.maxItemWidth,
|
|
3335
3335
|
n.type
|
|
3336
|
-
), n.autoLayout &&
|
|
3337
|
-
o.order.index = 0, $n(a,
|
|
3336
|
+
), n.autoLayout && ie([N, P, T], ([B, V, q]) => {
|
|
3337
|
+
o.order.index = 0, $n(a, B, V, q, !1, n.minItemWidth, n.maxItemWidth, n.type);
|
|
3338
3338
|
});
|
|
3339
|
-
const
|
|
3339
|
+
const j = b(() => k.value ? n.expandText ?? "" : n.collapseText ?? ""), Y = b(() => ({
|
|
3340
3340
|
[`${e}__header-collapse-text`]: !0
|
|
3341
|
-
})), v =
|
|
3341
|
+
})), v = b(() => ({
|
|
3342
3342
|
[`${e}__header-collapse-icon`]: !0,
|
|
3343
|
-
"is-expand": !
|
|
3344
|
-
"is-collapse":
|
|
3345
|
-
})), $ = D(), x = D(), H =
|
|
3346
|
-
let
|
|
3347
|
-
const G = (
|
|
3343
|
+
"is-expand": !k.value,
|
|
3344
|
+
"is-collapse": k.value
|
|
3345
|
+
})), $ = D(), x = D(), H = b(() => _.value || Ie(n.height) || ""), k = D(!1), _ = D(""), y = D(!1);
|
|
3346
|
+
let M = -1;
|
|
3347
|
+
const G = (B, V = !0) => {
|
|
3348
3348
|
const q = $.value;
|
|
3349
|
-
if (q &&
|
|
3350
|
-
if (
|
|
3349
|
+
if (q && k.value !== B) {
|
|
3350
|
+
if (M = M === -1 ? ii(q) : M, y.value = !0, V)
|
|
3351
3351
|
if (q.style["will-change"] = "height", q.ontransitionend = function() {
|
|
3352
|
-
q.ontransitionend = null, this.style["will-change"] = "auto",
|
|
3353
|
-
},
|
|
3352
|
+
q.ontransitionend = null, this.style["will-change"] = "auto", B || (_.value = "", y.value = !1);
|
|
3353
|
+
}, B) {
|
|
3354
3354
|
let I = 0;
|
|
3355
|
-
n.collapseHeight ? I = n.collapseHeight : x.value && x.value.classList.contains(`${e}__header`) && (I = x.value.offsetHeight),
|
|
3356
|
-
|
|
3355
|
+
n.collapseHeight ? I = n.collapseHeight : x.value && x.value.classList.contains(`${e}__header`) && (I = x.value.offsetHeight), _.value = `${M}px`, yt(() => {
|
|
3356
|
+
_.value = `${I}px`;
|
|
3357
3357
|
});
|
|
3358
3358
|
} else
|
|
3359
|
-
|
|
3360
|
-
else if (
|
|
3359
|
+
_.value = `${M}px`;
|
|
3360
|
+
else if (B) {
|
|
3361
3361
|
let I = 0;
|
|
3362
|
-
n.collapseHeight ? I = n.collapseHeight : x.value && x.value.classList.contains(`${e}__header`) && (I = x.value.offsetHeight),
|
|
3362
|
+
n.collapseHeight ? I = n.collapseHeight : x.value && x.value.classList.contains(`${e}__header`) && (I = x.value.offsetHeight), _.value = `${I}px`;
|
|
3363
3363
|
} else
|
|
3364
|
-
|
|
3365
|
-
|
|
3364
|
+
y.value = !1, _.value = `${M}px`;
|
|
3365
|
+
k.value = B, r.emit("update:collapse", B);
|
|
3366
3366
|
}
|
|
3367
3367
|
};
|
|
3368
|
-
|
|
3368
|
+
ie(
|
|
3369
3369
|
() => n.collapse,
|
|
3370
|
-
(
|
|
3371
|
-
G(
|
|
3370
|
+
(B) => {
|
|
3371
|
+
G(B);
|
|
3372
3372
|
}
|
|
3373
3373
|
);
|
|
3374
3374
|
const U = () => {
|
|
3375
3375
|
ee();
|
|
3376
|
-
}, ee = (
|
|
3377
|
-
|
|
3376
|
+
}, ee = (B) => {
|
|
3377
|
+
B = B ?? !k.value, G(B);
|
|
3378
3378
|
};
|
|
3379
3379
|
Re({
|
|
3380
3380
|
// 设置是否收缩或展开
|
|
3381
3381
|
toggleCollapse: ee,
|
|
3382
3382
|
// 重新布局
|
|
3383
3383
|
doLayout: () => {
|
|
3384
|
-
E[0] && (
|
|
3384
|
+
E[0] && (F(E[0]), $n(
|
|
3385
3385
|
a,
|
|
3386
3386
|
N.value,
|
|
3387
3387
|
P.value,
|
|
@@ -3394,7 +3394,7 @@ function fi(e, t, l) {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
});
|
|
3396
3396
|
let ce = null, ge = !0;
|
|
3397
|
-
const O = (
|
|
3397
|
+
const O = (B) => {
|
|
3398
3398
|
if (n.rules) {
|
|
3399
3399
|
const V = me(n.rules);
|
|
3400
3400
|
S(V);
|
|
@@ -3403,42 +3403,42 @@ function fi(e, t, l) {
|
|
|
3403
3403
|
const V = me(n.pureDataRules);
|
|
3404
3404
|
S(V, !0);
|
|
3405
3405
|
}
|
|
3406
|
-
if (Kt && (
|
|
3406
|
+
if (Kt && (B && G(le(n.collapse), !1), n.autoLayout && Array.isArray(E) && E.length > 0)) {
|
|
3407
3407
|
const V = E[0];
|
|
3408
|
-
|
|
3409
|
-
|
|
3408
|
+
F(V), window.ResizeObserver && (ce = new window.ResizeObserver(() => {
|
|
3409
|
+
F(V);
|
|
3410
3410
|
}), ce.observe(V));
|
|
3411
3411
|
}
|
|
3412
3412
|
}, Q = () => {
|
|
3413
3413
|
ce?.disconnect(), ce = null;
|
|
3414
|
-
},
|
|
3415
|
-
|
|
3416
|
-
if (
|
|
3417
|
-
let
|
|
3414
|
+
}, K = !u.value || i?.acquire();
|
|
3415
|
+
K && (c.value = u.value ? !0 : null), _e(() => {
|
|
3416
|
+
if (K && (O(ge), ge = !1), u.value && i) {
|
|
3417
|
+
let B = null, V = i.initialHeight;
|
|
3418
3418
|
i.observe($.value, (q) => {
|
|
3419
3419
|
if (q !== c.value)
|
|
3420
3420
|
if (q)
|
|
3421
|
-
c.value = !0,
|
|
3422
|
-
|
|
3421
|
+
c.value = !0, k.value || (_.value = ""), B = setTimeout(() => {
|
|
3422
|
+
B = null, c.value !== !1 && (O(ge), ge = !1);
|
|
3423
3423
|
}, 100);
|
|
3424
3424
|
else {
|
|
3425
|
-
if (
|
|
3425
|
+
if (B !== null && clearTimeout(B), c.value = !1, !k.value)
|
|
3426
3426
|
if (ge)
|
|
3427
|
-
|
|
3427
|
+
_.value = i.initialHeight;
|
|
3428
3428
|
else {
|
|
3429
3429
|
let I = Ln($.value);
|
|
3430
|
-
I <= 0 ?
|
|
3430
|
+
I <= 0 ? _.value = V : (_.value = `${I}px`, V = _.value);
|
|
3431
3431
|
}
|
|
3432
3432
|
ge || Q();
|
|
3433
3433
|
}
|
|
3434
3434
|
});
|
|
3435
3435
|
}
|
|
3436
|
-
}),
|
|
3436
|
+
}), Ze(() => {
|
|
3437
3437
|
ce?.disconnect(), i && i.unobserve($.value);
|
|
3438
3438
|
});
|
|
3439
|
-
const X = (
|
|
3439
|
+
const X = (B, V, q, I) => {
|
|
3440
3440
|
const L = { ...m.value };
|
|
3441
|
-
return V === 0 && (L[`${h}__first`] = !0), q >= I - 1 && (L[`${h}__last`] = !0), W("div", { ref: C, key: `${V}`, class: L, style: g.value },
|
|
3441
|
+
return V === 0 && (L[`${h}__first`] = !0), q >= I - 1 && (L[`${h}__last`] = !0), W("div", { ref: C, key: `${V}`, class: L, style: g.value }, B);
|
|
3442
3442
|
};
|
|
3443
3443
|
return () => {
|
|
3444
3444
|
if (u.value && c.value !== !0) {
|
|
@@ -3448,22 +3448,22 @@ function fi(e, t, l) {
|
|
|
3448
3448
|
{
|
|
3449
3449
|
ref: $,
|
|
3450
3450
|
prop: n.name,
|
|
3451
|
-
class: { [`${h}`]: !0, "is-collapse":
|
|
3451
|
+
class: { [`${h}`]: !0, "is-collapse": y.value },
|
|
3452
3452
|
style: d.value
|
|
3453
3453
|
},
|
|
3454
3454
|
[]
|
|
3455
3455
|
);
|
|
3456
3456
|
}
|
|
3457
3457
|
o.order.index = 0;
|
|
3458
|
-
const
|
|
3458
|
+
const B = [];
|
|
3459
3459
|
let V = 0;
|
|
3460
3460
|
if (r.slots.header) {
|
|
3461
3461
|
const L = {
|
|
3462
3462
|
key: `${V++}`,
|
|
3463
3463
|
ref: x,
|
|
3464
3464
|
class: { [`${h}__header`]: !0, [`${h}__first`]: !0 }
|
|
3465
|
-
},
|
|
3466
|
-
|
|
3465
|
+
}, z = W("div", L, [r.slots.header()]);
|
|
3466
|
+
B.push(z);
|
|
3467
3467
|
} else {
|
|
3468
3468
|
const L = [];
|
|
3469
3469
|
if (w.value) {
|
|
@@ -3477,50 +3477,50 @@ function fi(e, t, l) {
|
|
|
3477
3477
|
const fe = W("div", J);
|
|
3478
3478
|
L.push(fe);
|
|
3479
3479
|
}
|
|
3480
|
-
const
|
|
3481
|
-
L.push(
|
|
3480
|
+
const z = W("div", { class: { [`${h}__header-title`]: !0 } }, [w.value]);
|
|
3481
|
+
L.push(z);
|
|
3482
3482
|
}
|
|
3483
3483
|
if (r.slots.toolbar && L.push(r.slots.toolbar()), n.showCollapse) {
|
|
3484
|
-
const
|
|
3485
|
-
if (
|
|
3484
|
+
const z = [];
|
|
3485
|
+
if (j.value) {
|
|
3486
3486
|
const re = {
|
|
3487
3487
|
class: Y.value
|
|
3488
|
-
}, Ke = W("span", re, [
|
|
3489
|
-
|
|
3488
|
+
}, Ke = W("span", re, [j.value]);
|
|
3489
|
+
z.push(Ke);
|
|
3490
3490
|
}
|
|
3491
3491
|
const J = {
|
|
3492
3492
|
class: v.value
|
|
3493
3493
|
}, fe = l(n.collapseIcon, J);
|
|
3494
|
-
if (fe &&
|
|
3494
|
+
if (fe && z.push(fe), z.length > 0) {
|
|
3495
3495
|
const re = W(
|
|
3496
3496
|
"div",
|
|
3497
3497
|
{ class: { [`${h}__header-collapse`]: !0 }, onClick: U },
|
|
3498
|
-
|
|
3498
|
+
z
|
|
3499
3499
|
);
|
|
3500
3500
|
L.push(re);
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
3503
|
if (L.length > 0) {
|
|
3504
|
-
const
|
|
3504
|
+
const z = {
|
|
3505
3505
|
key: `${V++}`,
|
|
3506
3506
|
ref: x,
|
|
3507
3507
|
class: { [`${h}__header`]: !0, [`${h}__first`]: !0 }
|
|
3508
|
-
}, J = W("div",
|
|
3509
|
-
|
|
3508
|
+
}, J = W("div", z, L);
|
|
3509
|
+
B.push(J);
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
3512
|
R();
|
|
3513
3513
|
const q = r.slots.default ? r.slots.default() : [], I = o.layout.value.type;
|
|
3514
3514
|
if (I === "grid") {
|
|
3515
3515
|
const L = X(q, V++, 0, q.length);
|
|
3516
|
-
|
|
3516
|
+
B.push(L);
|
|
3517
3517
|
} else if (I === "flow") {
|
|
3518
3518
|
const L = X(q, V++, 0, q.length);
|
|
3519
|
-
|
|
3519
|
+
B.push(L);
|
|
3520
3520
|
} else
|
|
3521
3521
|
for (let L = 0; L < q.length; L++) {
|
|
3522
|
-
const
|
|
3523
|
-
|
|
3522
|
+
const z = q[L], J = X([z], V++, L, q.length);
|
|
3523
|
+
B.push(J);
|
|
3524
3524
|
}
|
|
3525
3525
|
if (A.value) {
|
|
3526
3526
|
const L = n.tag || "div";
|
|
@@ -3529,13 +3529,13 @@ function fi(e, t, l) {
|
|
|
3529
3529
|
{
|
|
3530
3530
|
ref: $,
|
|
3531
3531
|
prop: n.name,
|
|
3532
|
-
class: { [`${h}`]: !0, "is-collapse":
|
|
3532
|
+
class: { [`${h}`]: !0, "is-collapse": y.value },
|
|
3533
3533
|
style: d.value
|
|
3534
3534
|
},
|
|
3535
|
-
[
|
|
3535
|
+
[B]
|
|
3536
3536
|
);
|
|
3537
3537
|
} else
|
|
3538
|
-
return
|
|
3538
|
+
return B;
|
|
3539
3539
|
};
|
|
3540
3540
|
}
|
|
3541
3541
|
};
|
|
@@ -3721,15 +3721,15 @@ const bl = new Si(), Hr = {
|
|
|
3721
3721
|
},
|
|
3722
3722
|
// setup
|
|
3723
3723
|
setup(e) {
|
|
3724
|
-
const t =
|
|
3724
|
+
const t = b(() => ({
|
|
3725
3725
|
[$i]: !0
|
|
3726
|
-
})), l =
|
|
3726
|
+
})), l = b(() => e.needSymbol ? e.symbol : ""), n = b(() => cn(e.price) == 0 ? "" : Xn(e.price, e.decimalLength, !0, qe(e.digits), e.separator)), r = b(() => {
|
|
3727
3727
|
let o = n.value;
|
|
3728
3728
|
if (o.length == 0)
|
|
3729
3729
|
return "";
|
|
3730
3730
|
let s = o.indexOf(".");
|
|
3731
3731
|
return o.substring(0, s);
|
|
3732
|
-
}), a =
|
|
3732
|
+
}), a = b(() => {
|
|
3733
3733
|
let o = n.value;
|
|
3734
3734
|
if (o.length == 0)
|
|
3735
3735
|
return "";
|
|
@@ -3753,14 +3753,14 @@ function Ai(e, t, l, n, r, a) {
|
|
|
3753
3753
|
class: ye(["fox-price--symbol", `fox-price--symbol-${e.size}`]),
|
|
3754
3754
|
innerHTML: e.showSymbol
|
|
3755
3755
|
}, null, 10, Ci)) : se("", !0),
|
|
3756
|
-
|
|
3756
|
+
ue("view", {
|
|
3757
3757
|
class: ye(`fox-price--${e.size}`)
|
|
3758
3758
|
}, ve(e.intText), 3),
|
|
3759
3759
|
e.decimalText.length != 0 ? (Z(), ne("view", {
|
|
3760
3760
|
key: 1,
|
|
3761
3761
|
class: ye(`fox-price--decimal-${e.size}`)
|
|
3762
3762
|
}, ".", 2)) : se("", !0),
|
|
3763
|
-
|
|
3763
|
+
ue("view", {
|
|
3764
3764
|
class: ye(`fox-price--decimal-${e.size}`)
|
|
3765
3765
|
}, ve(e.decimalText), 3),
|
|
3766
3766
|
e.needSymbol && e.position == "after" ? (Z(), ne("view", {
|
|
@@ -3819,45 +3819,45 @@ const jr = /* @__PURE__ */ We(Ei, [["render", Ai]]), { componentName: Gt, create
|
|
|
3819
3819
|
}), s = D({
|
|
3820
3820
|
x: 0,
|
|
3821
3821
|
y: 0
|
|
3822
|
-
}), i = D(0), c = D(0), u = D(e.placement), f =
|
|
3822
|
+
}), i = D(0), c = D(0), u = D(e.placement), f = b(() => ({
|
|
3823
3823
|
[Gt]: !0
|
|
3824
|
-
})), p = D(null), S = (R, N,
|
|
3824
|
+
})), p = D(null), S = (R, N, F = 10) => {
|
|
3825
3825
|
if (!Kt || N === !1 || !R)
|
|
3826
3826
|
return;
|
|
3827
3827
|
a.value = !0;
|
|
3828
|
-
const
|
|
3829
|
-
i.value =
|
|
3828
|
+
const j = Br(e.reference);
|
|
3829
|
+
i.value = j.width, c.value = j.height, setTimeout(() => {
|
|
3830
3830
|
if (!p.value || !e.reference || e.reference.offsetParent === null)
|
|
3831
3831
|
return;
|
|
3832
3832
|
const Y = bi(e.reference), v = document.documentElement.clientWidth || document.body.clientWidth, $ = p.value.offsetWidth, x = p.value.offsetHeight;
|
|
3833
3833
|
Y.y - x >= 0 ? (u.value = "top", o.value.y = Y.y - x - 10 - 4, s.value.y = x) : (u.value = "bottom", o.value.y = Y.y + c.value + 10, s.value.y = -10);
|
|
3834
3834
|
const H = Y.x + $ - v;
|
|
3835
3835
|
H < 0 ? (o.value.x = Y.x, s.value.x = 20) : (o.value.x = Y.x - H, s.value.x = H + 20), a.value = !1;
|
|
3836
|
-
},
|
|
3836
|
+
}, F);
|
|
3837
3837
|
}, h = ln(() => {
|
|
3838
3838
|
S(e.message, e.visible);
|
|
3839
|
-
}, 10), d =
|
|
3839
|
+
}, 10), d = b(() => e.visible && m.value), m = D(!0), g = ln((R) => {
|
|
3840
3840
|
const N = R[0];
|
|
3841
3841
|
N && (m.value = N.isIntersecting);
|
|
3842
3842
|
}, 10), w = new IntersectionObserver(g);
|
|
3843
|
-
|
|
3843
|
+
ie([() => e.message, () => e.visible], ([R, N]) => {
|
|
3844
3844
|
S(R, N);
|
|
3845
3845
|
}), _e(() => {
|
|
3846
3846
|
S(e.message, e.visible), bl.watch(e.reference, h), w.observe(e.reference);
|
|
3847
3847
|
}), pa(() => {
|
|
3848
3848
|
bl.unwatch(e.reference, h), w.unobserve(e.reference), w.disconnect();
|
|
3849
3849
|
});
|
|
3850
|
-
const T =
|
|
3850
|
+
const T = b(() => {
|
|
3851
3851
|
const R = {
|
|
3852
3852
|
"min-width": Ie(i.value)
|
|
3853
3853
|
};
|
|
3854
3854
|
return a.value ? R.visibility = "hidden" : R.transform = `translate(${o.value.x}px, ${o.value.y}px)`, R;
|
|
3855
|
-
}), P =
|
|
3855
|
+
}), P = b(() => ({
|
|
3856
3856
|
[`${Gt}__content`]: !0
|
|
3857
|
-
})), A =
|
|
3857
|
+
})), A = b(() => ({})), E = b(() => ({
|
|
3858
3858
|
[`${Gt}__arrow`]: !0,
|
|
3859
3859
|
[`${Gt}__arrow-${e.placement}`]: !0
|
|
3860
|
-
})), C =
|
|
3860
|
+
})), C = b(() => ({ top: `${s.value.y}px`, left: `${s.value.x}px` }));
|
|
3861
3861
|
return {
|
|
3862
3862
|
show: d,
|
|
3863
3863
|
tipRef: p,
|
|
@@ -3877,12 +3877,12 @@ function Ri(e, t, l, n, r, a) {
|
|
|
3877
3877
|
const o = Ce("Price");
|
|
3878
3878
|
return Z(), Se(Kn, { name: "hint-text-fade" }, {
|
|
3879
3879
|
default: he(() => [
|
|
3880
|
-
en(
|
|
3880
|
+
en(ue("div", {
|
|
3881
3881
|
ref: "tipRef",
|
|
3882
3882
|
class: ye(e.classes),
|
|
3883
3883
|
style: Te(e.styles)
|
|
3884
3884
|
}, [
|
|
3885
|
-
|
|
3885
|
+
ue("div", {
|
|
3886
3886
|
class: ye(e.textClasses),
|
|
3887
3887
|
style: Te(e.textStyles)
|
|
3888
3888
|
}, [
|
|
@@ -3892,7 +3892,7 @@ function Ri(e, t, l, n, r, a) {
|
|
|
3892
3892
|
position: "before"
|
|
3893
3893
|
}, null, 8, ["price"])) : (Z(), ne("span", Pi, ve(e.message), 1))
|
|
3894
3894
|
], 6),
|
|
3895
|
-
|
|
3895
|
+
ue("div", {
|
|
3896
3896
|
class: ye(e.arrowClasses),
|
|
3897
3897
|
style: Te(e.arrowStyles)
|
|
3898
3898
|
}, null, 6)
|
|
@@ -3925,7 +3925,7 @@ class Di {
|
|
|
3925
3925
|
return this.seed < 0 && (this.seed = 0), t;
|
|
3926
3926
|
}
|
|
3927
3927
|
}
|
|
3928
|
-
const Mn = {},
|
|
3928
|
+
const Mn = {}, Fi = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
3929
3929
|
if (e) {
|
|
3930
3930
|
const t = document.getElementById(e);
|
|
3931
3931
|
Et.delete(e), t && t.parentNode?.removeChild(t);
|
|
@@ -3936,7 +3936,7 @@ const Mn = {}, ki = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
3936
3936
|
}
|
|
3937
3937
|
Et.clear();
|
|
3938
3938
|
}
|
|
3939
|
-
},
|
|
3939
|
+
}, ki = (e) => {
|
|
3940
3940
|
const t = document.getElementById(e.id);
|
|
3941
3941
|
if (t) {
|
|
3942
3942
|
const l = Et.get(e.id);
|
|
@@ -3949,9 +3949,9 @@ const Mn = {}, ki = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
3949
3949
|
let t;
|
|
3950
3950
|
if (e.id) {
|
|
3951
3951
|
if (t = e.id, Et.has(t))
|
|
3952
|
-
return
|
|
3952
|
+
return ki(e);
|
|
3953
3953
|
} else
|
|
3954
|
-
t = `hinttext_${
|
|
3954
|
+
t = `hinttext_${Fi.get()}`;
|
|
3955
3955
|
e = { ...Mn, ...e }, e.id = t, Et.set(t, e);
|
|
3956
3956
|
const l = document.createElement("div");
|
|
3957
3957
|
l.id = e.id;
|
|
@@ -4013,14 +4013,14 @@ const Mn = {}, ki = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4013
4013
|
);
|
|
4014
4014
|
const n = ct(), r = fn();
|
|
4015
4015
|
dn(!1);
|
|
4016
|
-
const a =
|
|
4016
|
+
const a = b(() => r && n ? hn(n, !1).value : null), o = xl, s = D(null), i = b(() => {
|
|
4017
4017
|
const O = {
|
|
4018
4018
|
[o]: !0,
|
|
4019
4019
|
[`${o}__gutter`]: a.value && a.value.type !== "flow",
|
|
4020
4020
|
[`${o}__stretch`]: e.span === "stretch",
|
|
4021
4021
|
[`${o}__input--border`]: e.hasBorder
|
|
4022
4022
|
};
|
|
4023
|
-
if (O[e.errorMarkClass] = !!
|
|
4023
|
+
if (O[e.errorMarkClass] = !!j.value, O[e.warnMarkClass] = !!N.value, O[e.infoMarkClass] = !!C.value, typeof s.value == "function") {
|
|
4024
4024
|
const Q = s.value(l);
|
|
4025
4025
|
O[Q] = !0;
|
|
4026
4026
|
} else if (typeof s.value == "string") {
|
|
@@ -4028,40 +4028,40 @@ const Mn = {}, ki = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4028
4028
|
O[Q] = !0;
|
|
4029
4029
|
}
|
|
4030
4030
|
return O;
|
|
4031
|
-
}), c =
|
|
4031
|
+
}), c = b(() => {
|
|
4032
4032
|
const O = {}, Q = r && n ? gn(n, !1) : null;
|
|
4033
4033
|
if (a.value && Q)
|
|
4034
4034
|
if (a.value.type === "grid") {
|
|
4035
|
-
const
|
|
4036
|
-
Object.assign(O,
|
|
4035
|
+
const K = pn(Q, a.value, e.span, e.offset);
|
|
4036
|
+
Object.assign(O, K);
|
|
4037
4037
|
} else if (a.value.type === "flow") {
|
|
4038
|
-
const
|
|
4039
|
-
Object.assign(O,
|
|
4038
|
+
const K = mn(Q, a.value, e.span, e.offset, e.width);
|
|
4039
|
+
Object.assign(O, K);
|
|
4040
4040
|
} else
|
|
4041
4041
|
return e.width && (O.width = Ie(e.width)), O;
|
|
4042
4042
|
else
|
|
4043
4043
|
e.width && (O.width = Ie(e.width));
|
|
4044
4044
|
return O;
|
|
4045
|
-
}), u = D(null), f =
|
|
4045
|
+
}), u = D(null), f = b({
|
|
4046
4046
|
get: () => u.value ?? le(e.isRequired),
|
|
4047
4047
|
set: (O) => {
|
|
4048
4048
|
u.value = O;
|
|
4049
4049
|
}
|
|
4050
|
-
}), p =
|
|
4050
|
+
}), p = b(() => typeof e.label == "string" && e.label.length > 0 || typeof t.slots.label == "function"), S = je($t(e, "labelPosition"), "labelPosition", Ue.Near), h = b(() => S && S.value === "top" ? "top" : S && S.value === "right" ? "right" : "left"), d = b(() => ({
|
|
4051
4051
|
[`${o}__main`]: !0,
|
|
4052
4052
|
[`${o}__main--${h.value}`]: !0
|
|
4053
|
-
})), m =
|
|
4053
|
+
})), m = b(() => ({
|
|
4054
4054
|
label: !0,
|
|
4055
4055
|
[`label--${h.value}`]: !0
|
|
4056
|
-
})), g = je($t(e, "labelWidth"), "labelWidth",
|
|
4056
|
+
})), g = je($t(e, "labelWidth"), "labelWidth", Ue.Near), w = b(() => g && g.value ? {
|
|
4057
4057
|
width: Ie(g.value)
|
|
4058
|
-
} : {}), T =
|
|
4058
|
+
} : {}), T = b(() => ({
|
|
4059
4059
|
"label--string": !0,
|
|
4060
4060
|
"label--required": f.value
|
|
4061
|
-
})), P =
|
|
4061
|
+
})), P = b(() => ({
|
|
4062
4062
|
content: !0,
|
|
4063
4063
|
[e.contentClass]: !0
|
|
4064
|
-
})), A =
|
|
4064
|
+
})), A = b(() => ({
|
|
4065
4065
|
...e.contentStyle
|
|
4066
4066
|
})), E = sn({
|
|
4067
4067
|
errorTip: "",
|
|
@@ -4105,32 +4105,32 @@ const Mn = {}, ki = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4105
4105
|
s.value = O;
|
|
4106
4106
|
}
|
|
4107
4107
|
});
|
|
4108
|
-
const C =
|
|
4108
|
+
const C = b(() => e.infoTip || E.infoTip), R = b(() => e.infoIcon || E.infoIcon), N = b(() => e.warnTip || E.warnTip), F = b(() => e.warnIcon || E.warnIcon), j = b(() => e.errorTip || E.errorTip), Y = b(() => e.errorIcon || E.errorIcon), v = b(() => j.value ? "error" : N.value ? "warn" : C.value ? "info" : ""), $ = b(() => v.value.length > 0), x = b(() => v.value === "error" ? j.value : v.value === "warn" ? N.value : v.value === "info" ? C.value : ""), H = b(() => v.value === "error" ? Y.value : v.value === "warn" ? F.value : v.value === "info" ? R.value : null), k = b(() => {
|
|
4109
4109
|
let O = {
|
|
4110
4110
|
[`${o}__tip`]: !0,
|
|
4111
4111
|
[`${o}__tip--${v.value}`]: !0
|
|
4112
4112
|
};
|
|
4113
4113
|
return v.value === "error" && e.errorClass ? O[`${e.errorClass}`] = !0 : v.value === "warn" && e.warnClass ? O[`${e.warnClass}`] = !0 : v.value === "info" && e.infoClass && (O[`${e.infoClass}`] = !0), O;
|
|
4114
|
-
}),
|
|
4114
|
+
}), _ = b(() => {
|
|
4115
4115
|
let O = {};
|
|
4116
4116
|
return S && S.value === "top" || !p.value ? O["padding-left"] = "0px" : g && g.value && (O["padding-left"] = Ie(g.value)), O;
|
|
4117
|
-
}),
|
|
4117
|
+
}), y = () => W(H.value, { width: 12, height: 12 }), M = b(() => t.slots.fixedTip), G = b(() => ({
|
|
4118
4118
|
[`${o}__fixed-tip`]: !0
|
|
4119
4119
|
})), U = D();
|
|
4120
4120
|
let ee = "";
|
|
4121
|
-
|
|
4121
|
+
ie(
|
|
4122
4122
|
[() => e.hintVisible, () => e.hintText, () => e.hintType, () => e.hintProps],
|
|
4123
|
-
([O, Q,
|
|
4124
|
-
U.value && (O && !$e(Q) ? ee ? Qt.show(U.value, Q, { ...X, id: ee, type:
|
|
4123
|
+
([O, Q, K, X]) => {
|
|
4124
|
+
U.value && (O && !$e(Q) ? ee ? Qt.show(U.value, Q, { ...X, id: ee, type: K }, !0) : ee = Qt.show(U.value, Q, { ...X, type: K }, !0) : Qt.hide(ee));
|
|
4125
4125
|
}
|
|
4126
4126
|
);
|
|
4127
4127
|
let te = null;
|
|
4128
4128
|
const ce = () => {
|
|
4129
4129
|
te || !U.value || (te = new IntersectionObserver((O) => {
|
|
4130
4130
|
let Q = !1;
|
|
4131
|
-
for (let
|
|
4132
|
-
if (
|
|
4133
|
-
Q = !0, Q && t.emit("appear",
|
|
4131
|
+
for (let K of O)
|
|
4132
|
+
if (K.intersectionRatio > 0) {
|
|
4133
|
+
Q = !0, Q && t.emit("appear", K);
|
|
4134
4134
|
break;
|
|
4135
4135
|
}
|
|
4136
4136
|
Q || t.emit("disappear");
|
|
@@ -4138,14 +4138,14 @@ const Mn = {}, ki = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4138
4138
|
}, ge = () => {
|
|
4139
4139
|
!te || !U.value || (te.unobserve(U.value), te = null);
|
|
4140
4140
|
};
|
|
4141
|
-
return
|
|
4141
|
+
return ie(
|
|
4142
4142
|
() => le(e.appearListen),
|
|
4143
4143
|
(O) => {
|
|
4144
4144
|
O ? ce() : ge();
|
|
4145
4145
|
}
|
|
4146
4146
|
), _e(() => {
|
|
4147
4147
|
le(e.appearListen) && ce();
|
|
4148
|
-
}),
|
|
4148
|
+
}), Ze(ge), {
|
|
4149
4149
|
classes: i,
|
|
4150
4150
|
styles: c,
|
|
4151
4151
|
mainClasses: d,
|
|
@@ -4159,10 +4159,10 @@ const Mn = {}, ki = new Di(), Et = /* @__PURE__ */ new Map(), _n = (e) => {
|
|
|
4159
4159
|
hasTip: $,
|
|
4160
4160
|
mTip: x,
|
|
4161
4161
|
mIcon: H,
|
|
4162
|
-
renderIcon:
|
|
4163
|
-
tipClasses:
|
|
4164
|
-
tipStyles:
|
|
4165
|
-
hasFixedTip:
|
|
4162
|
+
renderIcon: y,
|
|
4163
|
+
tipClasses: k,
|
|
4164
|
+
tipStyles: _,
|
|
4165
|
+
hasFixedTip: M,
|
|
4166
4166
|
fixedTipClasses: G
|
|
4167
4167
|
};
|
|
4168
4168
|
}
|
|
@@ -4176,7 +4176,7 @@ function ji(e, t, l, n, r, a) {
|
|
|
4176
4176
|
style: Te(e.styles),
|
|
4177
4177
|
prop: e.prop
|
|
4178
4178
|
}, [
|
|
4179
|
-
|
|
4179
|
+
ue("div", {
|
|
4180
4180
|
class: ye(e.mainClasses)
|
|
4181
4181
|
}, [
|
|
4182
4182
|
e.hasLabel ? (Z(), ne("div", {
|
|
@@ -4184,7 +4184,7 @@ function ji(e, t, l, n, r, a) {
|
|
|
4184
4184
|
class: ye(e.labelClasses),
|
|
4185
4185
|
style: Te(e.labelStyles)
|
|
4186
4186
|
}, [
|
|
4187
|
-
|
|
4187
|
+
ue("div", {
|
|
4188
4188
|
class: ye(e.labelStringClasses)
|
|
4189
4189
|
}, [
|
|
4190
4190
|
xe(e.$slots, "label", {}, () => [
|
|
@@ -4192,7 +4192,7 @@ function ji(e, t, l, n, r, a) {
|
|
|
4192
4192
|
])
|
|
4193
4193
|
], 2)
|
|
4194
4194
|
], 6)) : se("", !0),
|
|
4195
|
-
|
|
4195
|
+
ue("div", {
|
|
4196
4196
|
ref: "contentRef",
|
|
4197
4197
|
class: ye(e.contentClasses),
|
|
4198
4198
|
style: Te(e.contentStyles)
|
|
@@ -4218,7 +4218,7 @@ function ji(e, t, l, n, r, a) {
|
|
|
4218
4218
|
e.mIcon ? (Z(), ne("div", Bi, [
|
|
4219
4219
|
(Z(), Se(pt(e.renderIcon())))
|
|
4220
4220
|
])) : se("", !0),
|
|
4221
|
-
|
|
4221
|
+
ue("div", Hi, ve(e.mTip), 1)
|
|
4222
4222
|
], 6)) : se("", !0)
|
|
4223
4223
|
]),
|
|
4224
4224
|
_: 1
|
|
@@ -4252,11 +4252,11 @@ function Ki(e, t) {
|
|
|
4252
4252
|
setup(l, n) {
|
|
4253
4253
|
const r = ct(), a = fn();
|
|
4254
4254
|
dn(!1);
|
|
4255
|
-
const o =
|
|
4255
|
+
const o = b(() => a && r ? hn(r, !1).value : null), s = e, i = b(() => ({
|
|
4256
4256
|
[s]: !0,
|
|
4257
4257
|
[`${s}__gutter`]: o.value && o.value.type !== "flow",
|
|
4258
4258
|
[`${s}__stretch`]: l.span === "stretch"
|
|
4259
|
-
})), c =
|
|
4259
|
+
})), c = b(() => {
|
|
4260
4260
|
const u = {}, f = a && r ? gn(r, !1) : null;
|
|
4261
4261
|
if (o.value && f)
|
|
4262
4262
|
if (o.value.type === "grid") {
|
|
@@ -4326,13 +4326,13 @@ function Gi(e, t) {
|
|
|
4326
4326
|
},
|
|
4327
4327
|
// setup
|
|
4328
4328
|
setup(l, n) {
|
|
4329
|
-
const r = e, a =
|
|
4329
|
+
const r = e, a = b(() => ({
|
|
4330
4330
|
[r]: !0,
|
|
4331
4331
|
[`${r}__stretch`]: l.span === "stretch",
|
|
4332
4332
|
[`${r}__${l.align}`]: !0
|
|
4333
4333
|
})), o = ct(), s = fn();
|
|
4334
4334
|
dn(!1);
|
|
4335
|
-
const i =
|
|
4335
|
+
const i = b(() => {
|
|
4336
4336
|
const c = {};
|
|
4337
4337
|
if (s && o) {
|
|
4338
4338
|
const u = hn(o, !1), f = gn(o, !1);
|
|
@@ -4429,7 +4429,7 @@ function Ji(e, t, l) {
|
|
|
4429
4429
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input"],
|
|
4430
4430
|
// setup
|
|
4431
4431
|
setup(n, r) {
|
|
4432
|
-
const a = He(
|
|
4432
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
4433
4433
|
{
|
|
4434
4434
|
componentName: e,
|
|
4435
4435
|
// 判断是否需要进行校验
|
|
@@ -4438,7 +4438,7 @@ function Ji(e, t, l) {
|
|
|
4438
4438
|
}
|
|
4439
4439
|
},
|
|
4440
4440
|
n.prop ?? r.attrs.name
|
|
4441
|
-
), { toLocaleRefs: i } =
|
|
4441
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = e, S = b(() => ({
|
|
4442
4442
|
[p]: !0,
|
|
4443
4443
|
[`${p}__disabled`]: a.value,
|
|
4444
4444
|
[`${p}__readonly`]: o.value
|
|
@@ -4467,7 +4467,7 @@ function Ji(e, t, l) {
|
|
|
4467
4467
|
}, 150));
|
|
4468
4468
|
}, R = () => {
|
|
4469
4469
|
E && (clearTimeout(E), A.value = !1, E = null);
|
|
4470
|
-
}, N =
|
|
4470
|
+
}, N = b(() => A.value || g.value), F = b(() => A.value ? f.value : m.value), j = b(() => cn(n.unit) > 0), Y = D();
|
|
4471
4471
|
return Re({
|
|
4472
4472
|
//使 input 获取焦点
|
|
4473
4473
|
focus: () => {
|
|
@@ -4501,20 +4501,20 @@ function Ji(e, t, l) {
|
|
|
4501
4501
|
onMouseover: C,
|
|
4502
4502
|
onMouseleave: R
|
|
4503
4503
|
}, x = {};
|
|
4504
|
-
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix :
|
|
4505
|
-
const H = [],
|
|
4506
|
-
H.push(
|
|
4507
|
-
const
|
|
4504
|
+
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix : j.value && (x.suffix = () => [n.unit]);
|
|
4505
|
+
const H = [], k = W(Wn, $, x);
|
|
4506
|
+
H.push(k);
|
|
4507
|
+
const _ = {
|
|
4508
4508
|
default: () => H
|
|
4509
4509
|
};
|
|
4510
|
-
r.slots.default && (
|
|
4511
|
-
const
|
|
4510
|
+
r.slots.default && (_.label = r.slots.default), r.slots.default && (_.fixedTip = r.slots.fixedTip);
|
|
4511
|
+
const M = {
|
|
4512
4512
|
...Me(n, wl),
|
|
4513
|
-
hintText:
|
|
4513
|
+
hintText: F.value,
|
|
4514
4514
|
hintVisible: N.value,
|
|
4515
4515
|
prop: `${n.prop}_item`
|
|
4516
4516
|
};
|
|
4517
|
-
return W(l,
|
|
4517
|
+
return W(l, M, _);
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
@@ -4554,7 +4554,7 @@ let ru = class {
|
|
|
4554
4554
|
return l;
|
|
4555
4555
|
if (typeof l == "function")
|
|
4556
4556
|
return await l(n);
|
|
4557
|
-
const r =
|
|
4557
|
+
const r = Ge(this.proxy, t);
|
|
4558
4558
|
return r === null ? (console.error(`${t} component not found api function`), []) : (xt(n) && ut(n) && (n = me(n)), await r(l, n));
|
|
4559
4559
|
}
|
|
4560
4560
|
};
|
|
@@ -4731,7 +4731,7 @@ function su(e, t, l) {
|
|
|
4731
4731
|
],
|
|
4732
4732
|
// setup
|
|
4733
4733
|
setup(n, r) {
|
|
4734
|
-
const a = He(
|
|
4734
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
4735
4735
|
{
|
|
4736
4736
|
componentName: e,
|
|
4737
4737
|
validateCheckEvents: ["blur", "update:modelValue", "selected"],
|
|
@@ -4741,8 +4741,8 @@ function su(e, t, l) {
|
|
|
4741
4741
|
}
|
|
4742
4742
|
},
|
|
4743
4743
|
n.prop ?? r.attrs.name
|
|
4744
|
-
), { toLocaleRefs: i } =
|
|
4745
|
-
const q = Wr(n,
|
|
4744
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(null), f = D([]), p = b(() => f.value ? f.value.map((X) => st(n, X)).join(" ") : ""), S = (K, X, B, V = !0) => {
|
|
4745
|
+
const q = Wr(n, K, X, B);
|
|
4746
4746
|
if (q === null) {
|
|
4747
4747
|
if (f.value === null || f.value.length === 0)
|
|
4748
4748
|
return;
|
|
@@ -4754,44 +4754,44 @@ function su(e, t, l) {
|
|
|
4754
4754
|
I = !1;
|
|
4755
4755
|
else
|
|
4756
4756
|
for (let L = 0; L < q.length; L++) {
|
|
4757
|
-
const
|
|
4758
|
-
if (!zr(n,
|
|
4757
|
+
const z = q[L], J = f.value[L];
|
|
4758
|
+
if (!zr(n, z, J)) {
|
|
4759
4759
|
I = !1;
|
|
4760
4760
|
break;
|
|
4761
4761
|
}
|
|
4762
4762
|
}
|
|
4763
4763
|
if (!I) {
|
|
4764
4764
|
f.value = q;
|
|
4765
|
-
let L = [],
|
|
4765
|
+
let L = [], z = [], J = [];
|
|
4766
4766
|
q.forEach((wt) => {
|
|
4767
|
-
const
|
|
4768
|
-
L.push(
|
|
4767
|
+
const Qe = Bt(n, wt), Rt = st(n, wt);
|
|
4768
|
+
L.push(Qe), J.push(Rt), n.valueType === "text" ? z.push(Rt) : n.valueType === "item" ? z.push(wt) : z.push(Qe);
|
|
4769
4769
|
});
|
|
4770
4770
|
let fe, re, Ke;
|
|
4771
|
-
n.multiple ? (u.value = L, fe = me(
|
|
4771
|
+
n.multiple ? (u.value = L, fe = me(z), re = J, Ke = me(q)) : (u.value = L[0] ?? "", fe = me(z[0] ?? ""), re = J[0] ?? "", Ke = me(q[0])), V && (s("update:modelValue", fe), s("change", fe, Ke)), s("update:text", re);
|
|
4772
4772
|
}
|
|
4773
|
-
}, h = D(null), d = D(null), m =
|
|
4774
|
-
|
|
4773
|
+
}, h = D(null), d = D(null), m = b(() => d.value ?? h.value ?? []), g = je(
|
|
4774
|
+
b(() => n.lazyLoad),
|
|
4775
4775
|
"lazyLoad",
|
|
4776
|
-
|
|
4777
|
-
(
|
|
4778
|
-
), w = au(), T = async (
|
|
4779
|
-
if (
|
|
4780
|
-
const
|
|
4781
|
-
if (
|
|
4782
|
-
if (typeof
|
|
4783
|
-
let I =
|
|
4776
|
+
Ue.Near,
|
|
4777
|
+
(K) => le(K)
|
|
4778
|
+
), w = au(), T = async (K, X) => {
|
|
4779
|
+
if (K) {
|
|
4780
|
+
const B = await w.load("select", K, X);
|
|
4781
|
+
if (B.length > 0)
|
|
4782
|
+
if (typeof B[0] == "string") {
|
|
4783
|
+
let I = B.map((L) => ou(L));
|
|
4784
4784
|
h.value = I;
|
|
4785
4785
|
} else
|
|
4786
|
-
h.value =
|
|
4786
|
+
h.value = B;
|
|
4787
4787
|
else
|
|
4788
4788
|
h.value = null;
|
|
4789
4789
|
}
|
|
4790
4790
|
};
|
|
4791
|
-
|
|
4791
|
+
ie(
|
|
4792
4792
|
[() => n.source, () => n.params],
|
|
4793
|
-
([
|
|
4794
|
-
d.value = null, T(
|
|
4793
|
+
([K, X]) => {
|
|
4794
|
+
d.value = null, T(K, X);
|
|
4795
4795
|
},
|
|
4796
4796
|
{ immediate: !g.value }
|
|
4797
4797
|
);
|
|
@@ -4799,18 +4799,18 @@ function su(e, t, l) {
|
|
|
4799
4799
|
const A = () => {
|
|
4800
4800
|
P || (P = !0, T(n.source, n.params));
|
|
4801
4801
|
};
|
|
4802
|
-
|
|
4803
|
-
S(X, n.valueType,
|
|
4802
|
+
ie([() => m.value, () => n.modelValue], ([K, X]) => {
|
|
4803
|
+
S(X, n.valueType, K, !1);
|
|
4804
4804
|
});
|
|
4805
4805
|
let E = null, C = D(!1);
|
|
4806
|
-
typeof n.remoteMethod == "function" && (E = async (
|
|
4807
|
-
if (
|
|
4806
|
+
typeof n.remoteMethod == "function" && (E = async (K) => {
|
|
4807
|
+
if (K == null) {
|
|
4808
4808
|
d.value = null;
|
|
4809
4809
|
return;
|
|
4810
4810
|
}
|
|
4811
4811
|
C.value = !0;
|
|
4812
4812
|
try {
|
|
4813
|
-
const X = await n.remoteMethod(
|
|
4813
|
+
const X = await n.remoteMethod(K);
|
|
4814
4814
|
X && (d.value = X);
|
|
4815
4815
|
} catch (X) {
|
|
4816
4816
|
d.value = null, console.error(X);
|
|
@@ -4818,79 +4818,79 @@ function su(e, t, l) {
|
|
|
4818
4818
|
C.value = !1;
|
|
4819
4819
|
});
|
|
4820
4820
|
let R = null;
|
|
4821
|
-
typeof n.filterMethod == "function" && (R = async (
|
|
4822
|
-
if (
|
|
4821
|
+
typeof n.filterMethod == "function" && (R = async (K) => {
|
|
4822
|
+
if (K == null) {
|
|
4823
4823
|
d.value = null;
|
|
4824
4824
|
return;
|
|
4825
4825
|
}
|
|
4826
4826
|
C.value = !0;
|
|
4827
4827
|
try {
|
|
4828
|
-
const X = await n.filterMethod(
|
|
4828
|
+
const X = await n.filterMethod(K, h.value);
|
|
4829
4829
|
X && (d.value = X);
|
|
4830
4830
|
} catch (X) {
|
|
4831
4831
|
d.value = null, console.error(X);
|
|
4832
4832
|
}
|
|
4833
4833
|
C.value = !1;
|
|
4834
4834
|
});
|
|
4835
|
-
const N = D(!1),
|
|
4836
|
-
[
|
|
4837
|
-
})), Y = (
|
|
4838
|
-
n.allowCreate ? (s("update:modelValue",
|
|
4835
|
+
const N = D(!1), F = e, j = b(() => ({
|
|
4836
|
+
[F]: !0
|
|
4837
|
+
})), Y = (K) => {
|
|
4838
|
+
n.allowCreate ? (s("update:modelValue", K), s("change", K), s("update:text", K), u.value = K) : S(K, "value", m.value, !0);
|
|
4839
4839
|
};
|
|
4840
4840
|
let v = pe(n, "hintText"), $ = D(!1);
|
|
4841
|
-
const x = (
|
|
4842
|
-
let
|
|
4843
|
-
N.value = !0, $e(v.value) || ($.value = !0), s("focus",
|
|
4844
|
-
}, H = (
|
|
4841
|
+
const x = (K) => {
|
|
4842
|
+
let B = K.target.value;
|
|
4843
|
+
N.value = !0, $e(v.value) || ($.value = !0), s("focus", B, K);
|
|
4844
|
+
}, H = (K) => {
|
|
4845
4845
|
setTimeout(() => {
|
|
4846
4846
|
$.value && ($.value = !1), N.value = !1;
|
|
4847
4847
|
}, 0);
|
|
4848
|
-
let
|
|
4849
|
-
n.maxLength &&
|
|
4850
|
-
},
|
|
4848
|
+
let B = K.target.value;
|
|
4849
|
+
n.maxLength && B.length > Number(n.maxLength) && (B = B.slice(0, Number(n.maxLength))), te.value || s("blur", B, K);
|
|
4850
|
+
}, k = () => {
|
|
4851
4851
|
s("clear", "");
|
|
4852
|
-
},
|
|
4853
|
-
let
|
|
4854
|
-
const
|
|
4855
|
-
n.showTooltip &&
|
|
4856
|
-
|
|
4852
|
+
}, _ = D(!1);
|
|
4853
|
+
let y = null;
|
|
4854
|
+
const M = () => {
|
|
4855
|
+
n.showTooltip && _.value === !1 && (y && clearTimeout(y), y = setTimeout(() => {
|
|
4856
|
+
_.value = !0;
|
|
4857
4857
|
}, 150));
|
|
4858
4858
|
}, G = () => {
|
|
4859
|
-
|
|
4860
|
-
}, U =
|
|
4861
|
-
te.value =
|
|
4862
|
-
}, ge = (
|
|
4863
|
-
s("remove-tag",
|
|
4864
|
-
}, O = (
|
|
4865
|
-
const
|
|
4866
|
-
return
|
|
4859
|
+
y && (clearTimeout(y), _.value = !1, y = null);
|
|
4860
|
+
}, U = b(() => _.value || $.value), ee = b(() => _.value ? p.value : v.value), te = D(!1), ce = (K) => {
|
|
4861
|
+
te.value = K, s("visible-change", K), K || s("selected");
|
|
4862
|
+
}, ge = (K) => {
|
|
4863
|
+
s("remove-tag", K);
|
|
4864
|
+
}, O = (K, X) => {
|
|
4865
|
+
const B = [];
|
|
4866
|
+
return K.forEach((V, q) => {
|
|
4867
4867
|
const I = Kr(n, V);
|
|
4868
4868
|
if (Array.isArray(I) && I.length > 0) {
|
|
4869
|
-
const L = O(I, X),
|
|
4870
|
-
key: `${
|
|
4871
|
-
label:
|
|
4869
|
+
const L = O(I, X), z = st(n, V), fe = {
|
|
4870
|
+
key: `${z}_${q}`,
|
|
4871
|
+
label: z
|
|
4872
4872
|
};
|
|
4873
|
-
|
|
4873
|
+
B.push(W(gr, fe, { default: () => L }));
|
|
4874
4874
|
} else {
|
|
4875
|
-
const L = Bt(n, V),
|
|
4875
|
+
const L = Bt(n, V), z = st(n, V), J = lu(n, V), re = {
|
|
4876
4876
|
key: `${L}_${q}`,
|
|
4877
|
-
label:
|
|
4877
|
+
label: z,
|
|
4878
4878
|
disabled: J,
|
|
4879
4879
|
value: L
|
|
4880
4880
|
};
|
|
4881
4881
|
if (typeof X == "function")
|
|
4882
|
-
|
|
4882
|
+
B.push(W(Ot, re, { default: () => X(V) }));
|
|
4883
4883
|
else if (n.optionType === "item") {
|
|
4884
4884
|
const wt = W("span", {
|
|
4885
4885
|
class: { "fox-select-item__option-left": !0 }
|
|
4886
4886
|
}, [L]), Rt = W("span", {
|
|
4887
4887
|
class: { "fox-select-item__option-right": !0 }
|
|
4888
|
-
}, [
|
|
4889
|
-
|
|
4888
|
+
}, [z]), ft = W("div", { class: { "fox-select-item__option": !0 } }, [wt, Rt]);
|
|
4889
|
+
B.push(W(Ot, re, { default: () => ft }));
|
|
4890
4890
|
} else
|
|
4891
|
-
n.optionType === "value" ?
|
|
4891
|
+
n.optionType === "value" ? B.push(W(Ot, re, { default: () => [L] })) : B.push(W(Ot, re));
|
|
4892
4892
|
}
|
|
4893
|
-
}),
|
|
4893
|
+
}), B;
|
|
4894
4894
|
}, Q = D();
|
|
4895
4895
|
return Re({
|
|
4896
4896
|
//使 input 获取焦点
|
|
@@ -4905,7 +4905,7 @@ function su(e, t, l) {
|
|
|
4905
4905
|
const X = {
|
|
4906
4906
|
...r.attrs,
|
|
4907
4907
|
ref: Q,
|
|
4908
|
-
class:
|
|
4908
|
+
class: j.value,
|
|
4909
4909
|
clearable: n.clearable,
|
|
4910
4910
|
multiple: n.multiple,
|
|
4911
4911
|
placeholder: c.placeholder.value,
|
|
@@ -4913,7 +4913,7 @@ function su(e, t, l) {
|
|
|
4913
4913
|
modelValue: u.value,
|
|
4914
4914
|
"value-key": n.valueKey,
|
|
4915
4915
|
"allow-create": n.allowCreate,
|
|
4916
|
-
onClear:
|
|
4916
|
+
onClear: k,
|
|
4917
4917
|
onChange: Y,
|
|
4918
4918
|
onFocus: x,
|
|
4919
4919
|
onBlur: H,
|
|
@@ -4921,23 +4921,23 @@ function su(e, t, l) {
|
|
|
4921
4921
|
onRemoveTag: ge
|
|
4922
4922
|
};
|
|
4923
4923
|
typeof E == "function" && (X["remote-method"] = E, X.loading = C.value), typeof R == "function" && (X["filter-method"] = R, X.loading = C.value);
|
|
4924
|
-
const
|
|
4925
|
-
r.slots.prefix && (
|
|
4926
|
-
const V = [], q = W(hr, X,
|
|
4924
|
+
const B = {};
|
|
4925
|
+
r.slots.prefix && (B.prefix = r.slots.prefix), r.slots.empty && (B.empty = r.slots.empty), r.slots.options ? B.default = r.slots.options : B.default = () => O(m.value, r.slots.option);
|
|
4926
|
+
const V = [], q = W(hr, X, B);
|
|
4927
4927
|
V.push(q);
|
|
4928
4928
|
const I = {
|
|
4929
4929
|
default: () => V
|
|
4930
4930
|
};
|
|
4931
4931
|
r.slots.default && (I.label = r.slots.default), r.slots.fixedTip && (I.fixedTip = r.slots.fixedTip);
|
|
4932
|
-
const
|
|
4932
|
+
const z = {
|
|
4933
4933
|
...Me(n, Sl),
|
|
4934
4934
|
hintText: ee.value,
|
|
4935
4935
|
hintVisible: U.value,
|
|
4936
4936
|
prop: `${n.prop ?? r.attrs.name}_item`,
|
|
4937
|
-
onMouseover:
|
|
4937
|
+
onMouseover: M,
|
|
4938
4938
|
onMouseleave: G
|
|
4939
4939
|
};
|
|
4940
|
-
return g.value && (
|
|
4940
|
+
return g.value && (z["appear-listen"] = !0, z.onAppear = A), W(l, z, I);
|
|
4941
4941
|
};
|
|
4942
4942
|
}
|
|
4943
4943
|
};
|
|
@@ -4956,13 +4956,13 @@ var Yr = { exports: {} };
|
|
|
4956
4956
|
var H = String(v);
|
|
4957
4957
|
return !H || H.length >= $ ? v : "" + Array($ + 1 - H.length).join(x) + v;
|
|
4958
4958
|
}, P = { s: T, z: function(v) {
|
|
4959
|
-
var $ = -v.utcOffset(), x = Math.abs($), H = Math.floor(x / 60),
|
|
4960
|
-
return ($ <= 0 ? "+" : "-") + T(H, 2, "0") + ":" + T(
|
|
4959
|
+
var $ = -v.utcOffset(), x = Math.abs($), H = Math.floor(x / 60), k = x % 60;
|
|
4960
|
+
return ($ <= 0 ? "+" : "-") + T(H, 2, "0") + ":" + T(k, 2, "0");
|
|
4961
4961
|
}, m: function v($, x) {
|
|
4962
4962
|
if ($.date() < x.date())
|
|
4963
4963
|
return -v(x, $);
|
|
4964
|
-
var H = 12 * (x.year() - $.year()) + (x.month() - $.month()),
|
|
4965
|
-
return +(-(H + (x -
|
|
4964
|
+
var H = 12 * (x.year() - $.year()) + (x.month() - $.month()), k = $.clone().add(H, f), _ = x - k < 0, y = $.clone().add(H + (_ ? -1 : 1), f);
|
|
4965
|
+
return +(-(H + (x - k) / (_ ? k - y : y - k)) || 0);
|
|
4966
4966
|
}, a: function(v) {
|
|
4967
4967
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
4968
4968
|
}, p: function(v) {
|
|
@@ -4972,89 +4972,89 @@ var Yr = { exports: {} };
|
|
|
4972
4972
|
} }, A = "en", E = {};
|
|
4973
4973
|
E[A] = w;
|
|
4974
4974
|
var C = function(v) {
|
|
4975
|
-
return v instanceof
|
|
4975
|
+
return v instanceof j;
|
|
4976
4976
|
}, R = function v($, x, H) {
|
|
4977
|
-
var
|
|
4977
|
+
var k;
|
|
4978
4978
|
if (!$)
|
|
4979
4979
|
return A;
|
|
4980
4980
|
if (typeof $ == "string") {
|
|
4981
|
-
var
|
|
4982
|
-
E[
|
|
4983
|
-
var
|
|
4984
|
-
if (!
|
|
4985
|
-
return v(
|
|
4981
|
+
var _ = $.toLowerCase();
|
|
4982
|
+
E[_] && (k = _), x && (E[_] = x, k = _);
|
|
4983
|
+
var y = $.split("-");
|
|
4984
|
+
if (!k && y.length > 1)
|
|
4985
|
+
return v(y[0]);
|
|
4986
4986
|
} else {
|
|
4987
|
-
var
|
|
4988
|
-
E[
|
|
4987
|
+
var M = $.name;
|
|
4988
|
+
E[M] = $, k = M;
|
|
4989
4989
|
}
|
|
4990
|
-
return !H &&
|
|
4990
|
+
return !H && k && (A = k), k || !H && A;
|
|
4991
4991
|
}, N = function(v, $) {
|
|
4992
4992
|
if (C(v))
|
|
4993
4993
|
return v.clone();
|
|
4994
4994
|
var x = typeof $ == "object" ? $ : {};
|
|
4995
|
-
return x.date = v, x.args = arguments, new
|
|
4996
|
-
},
|
|
4997
|
-
|
|
4995
|
+
return x.date = v, x.args = arguments, new j(x);
|
|
4996
|
+
}, F = P;
|
|
4997
|
+
F.l = R, F.i = C, F.w = function(v, $) {
|
|
4998
4998
|
return N(v, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
|
4999
4999
|
};
|
|
5000
|
-
var
|
|
5000
|
+
var j = function() {
|
|
5001
5001
|
function v(x) {
|
|
5002
5002
|
this.$L = R(x.locale, null, !0), this.parse(x);
|
|
5003
5003
|
}
|
|
5004
5004
|
var $ = v.prototype;
|
|
5005
5005
|
return $.parse = function(x) {
|
|
5006
5006
|
this.$d = function(H) {
|
|
5007
|
-
var
|
|
5008
|
-
if (
|
|
5007
|
+
var k = H.date, _ = H.utc;
|
|
5008
|
+
if (k === null)
|
|
5009
5009
|
return /* @__PURE__ */ new Date(NaN);
|
|
5010
|
-
if (
|
|
5010
|
+
if (F.u(k))
|
|
5011
5011
|
return /* @__PURE__ */ new Date();
|
|
5012
|
-
if (
|
|
5013
|
-
return new Date(
|
|
5014
|
-
if (typeof
|
|
5015
|
-
var
|
|
5016
|
-
if (
|
|
5017
|
-
var
|
|
5018
|
-
return
|
|
5012
|
+
if (k instanceof Date)
|
|
5013
|
+
return new Date(k);
|
|
5014
|
+
if (typeof k == "string" && !/Z$/i.test(k)) {
|
|
5015
|
+
var y = k.match(m);
|
|
5016
|
+
if (y) {
|
|
5017
|
+
var M = y[2] - 1 || 0, G = (y[7] || "0").substring(0, 3);
|
|
5018
|
+
return _ ? new Date(Date.UTC(y[1], M, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, G)) : new Date(y[1], M, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, G);
|
|
5019
5019
|
}
|
|
5020
5020
|
}
|
|
5021
|
-
return new Date(
|
|
5021
|
+
return new Date(k);
|
|
5022
5022
|
}(x), this.$x = x.x || {}, this.init();
|
|
5023
5023
|
}, $.init = function() {
|
|
5024
5024
|
var x = this.$d;
|
|
5025
5025
|
this.$y = x.getFullYear(), this.$M = x.getMonth(), this.$D = x.getDate(), this.$W = x.getDay(), this.$H = x.getHours(), this.$m = x.getMinutes(), this.$s = x.getSeconds(), this.$ms = x.getMilliseconds();
|
|
5026
5026
|
}, $.$utils = function() {
|
|
5027
|
-
return
|
|
5027
|
+
return F;
|
|
5028
5028
|
}, $.isValid = function() {
|
|
5029
5029
|
return this.$d.toString() !== d;
|
|
5030
5030
|
}, $.isSame = function(x, H) {
|
|
5031
|
-
var
|
|
5032
|
-
return this.startOf(H) <=
|
|
5031
|
+
var k = N(x);
|
|
5032
|
+
return this.startOf(H) <= k && k <= this.endOf(H);
|
|
5033
5033
|
}, $.isAfter = function(x, H) {
|
|
5034
5034
|
return N(x) < this.startOf(H);
|
|
5035
5035
|
}, $.isBefore = function(x, H) {
|
|
5036
5036
|
return this.endOf(H) < N(x);
|
|
5037
|
-
}, $.$g = function(x, H,
|
|
5038
|
-
return
|
|
5037
|
+
}, $.$g = function(x, H, k) {
|
|
5038
|
+
return F.u(x) ? this[H] : this.set(k, x);
|
|
5039
5039
|
}, $.unix = function() {
|
|
5040
5040
|
return Math.floor(this.valueOf() / 1e3);
|
|
5041
5041
|
}, $.valueOf = function() {
|
|
5042
5042
|
return this.$d.getTime();
|
|
5043
5043
|
}, $.startOf = function(x, H) {
|
|
5044
|
-
var
|
|
5045
|
-
var X =
|
|
5046
|
-
return
|
|
5047
|
-
}, G = function(Q,
|
|
5048
|
-
return
|
|
5044
|
+
var k = this, _ = !!F.u(H) || H, y = F.p(x), M = function(Q, K) {
|
|
5045
|
+
var X = F.w(k.$u ? Date.UTC(k.$y, K, Q) : new Date(k.$y, K, Q), k);
|
|
5046
|
+
return _ ? X : X.endOf(c);
|
|
5047
|
+
}, G = function(Q, K) {
|
|
5048
|
+
return F.w(k.toDate()[Q].apply(k.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(K)), k);
|
|
5049
5049
|
}, U = this.$W, ee = this.$M, te = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
5050
|
-
switch (
|
|
5050
|
+
switch (y) {
|
|
5051
5051
|
case S:
|
|
5052
|
-
return
|
|
5052
|
+
return _ ? M(1, 0) : M(31, 11);
|
|
5053
5053
|
case f:
|
|
5054
|
-
return
|
|
5054
|
+
return _ ? M(1, ee) : M(0, ee + 1);
|
|
5055
5055
|
case u:
|
|
5056
5056
|
var ge = this.$locale().weekStart || 0, O = (U < ge ? U + 7 : U) - ge;
|
|
5057
|
-
return
|
|
5057
|
+
return M(_ ? te - O : te + (6 - O), ee);
|
|
5058
5058
|
case c:
|
|
5059
5059
|
case h:
|
|
5060
5060
|
return G(ce + "Hours", 0);
|
|
@@ -5070,56 +5070,56 @@ var Yr = { exports: {} };
|
|
|
5070
5070
|
}, $.endOf = function(x) {
|
|
5071
5071
|
return this.startOf(x, !1);
|
|
5072
5072
|
}, $.$set = function(x, H) {
|
|
5073
|
-
var
|
|
5074
|
-
if (
|
|
5073
|
+
var k, _ = F.p(x), y = "set" + (this.$u ? "UTC" : ""), M = (k = {}, k[c] = y + "Date", k[h] = y + "Date", k[f] = y + "Month", k[S] = y + "FullYear", k[i] = y + "Hours", k[s] = y + "Minutes", k[o] = y + "Seconds", k[a] = y + "Milliseconds", k)[_], G = _ === c ? this.$D + (H - this.$W) : H;
|
|
5074
|
+
if (_ === f || _ === S) {
|
|
5075
5075
|
var U = this.clone().set(h, 1);
|
|
5076
|
-
U.$d[
|
|
5076
|
+
U.$d[M](G), U.init(), this.$d = U.set(h, Math.min(this.$D, U.daysInMonth())).$d;
|
|
5077
5077
|
} else
|
|
5078
|
-
|
|
5078
|
+
M && this.$d[M](G);
|
|
5079
5079
|
return this.init(), this;
|
|
5080
5080
|
}, $.set = function(x, H) {
|
|
5081
5081
|
return this.clone().$set(x, H);
|
|
5082
5082
|
}, $.get = function(x) {
|
|
5083
|
-
return this[
|
|
5083
|
+
return this[F.p(x)]();
|
|
5084
5084
|
}, $.add = function(x, H) {
|
|
5085
|
-
var
|
|
5085
|
+
var k, _ = this;
|
|
5086
5086
|
x = Number(x);
|
|
5087
|
-
var
|
|
5088
|
-
var te = N(
|
|
5089
|
-
return
|
|
5087
|
+
var y = F.p(H), M = function(ee) {
|
|
5088
|
+
var te = N(_);
|
|
5089
|
+
return F.w(te.date(te.date() + Math.round(ee * x)), _);
|
|
5090
5090
|
};
|
|
5091
|
-
if (
|
|
5091
|
+
if (y === f)
|
|
5092
5092
|
return this.set(f, this.$M + x);
|
|
5093
|
-
if (
|
|
5093
|
+
if (y === S)
|
|
5094
5094
|
return this.set(S, this.$y + x);
|
|
5095
|
-
if (
|
|
5096
|
-
return
|
|
5097
|
-
if (
|
|
5098
|
-
return
|
|
5099
|
-
var G = (
|
|
5100
|
-
return
|
|
5095
|
+
if (y === c)
|
|
5096
|
+
return M(1);
|
|
5097
|
+
if (y === u)
|
|
5098
|
+
return M(7);
|
|
5099
|
+
var G = (k = {}, k[s] = n, k[i] = r, k[o] = l, k)[y] || 1, U = this.$d.getTime() + x * G;
|
|
5100
|
+
return F.w(U, this);
|
|
5101
5101
|
}, $.subtract = function(x, H) {
|
|
5102
5102
|
return this.add(-1 * x, H);
|
|
5103
5103
|
}, $.format = function(x) {
|
|
5104
|
-
var H = this,
|
|
5104
|
+
var H = this, k = this.$locale();
|
|
5105
5105
|
if (!this.isValid())
|
|
5106
|
-
return
|
|
5107
|
-
var
|
|
5108
|
-
return
|
|
5109
|
-
}, ge = function(
|
|
5110
|
-
return
|
|
5111
|
-
}, O =
|
|
5112
|
-
var V =
|
|
5113
|
-
return
|
|
5114
|
-
}, Q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: U + 1, MM:
|
|
5115
|
-
return
|
|
5116
|
-
return X || Q[
|
|
5106
|
+
return k.invalidDate || d;
|
|
5107
|
+
var _ = x || "YYYY-MM-DDTHH:mm:ssZ", y = F.z(this), M = this.$H, G = this.$m, U = this.$M, ee = k.weekdays, te = k.months, ce = function(K, X, B, V) {
|
|
5108
|
+
return K && (K[X] || K(H, _)) || B[X].slice(0, V);
|
|
5109
|
+
}, ge = function(K) {
|
|
5110
|
+
return F.s(M % 12 || 12, K, "0");
|
|
5111
|
+
}, O = k.meridiem || function(K, X, B) {
|
|
5112
|
+
var V = K < 12 ? "AM" : "PM";
|
|
5113
|
+
return B ? V.toLowerCase() : V;
|
|
5114
|
+
}, Q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: U + 1, MM: F.s(U + 1, 2, "0"), MMM: ce(k.monthsShort, U, te, 3), MMMM: ce(te, U), D: this.$D, DD: F.s(this.$D, 2, "0"), d: String(this.$W), dd: ce(k.weekdaysMin, this.$W, ee, 2), ddd: ce(k.weekdaysShort, this.$W, ee, 3), dddd: ee[this.$W], H: String(M), HH: F.s(M, 2, "0"), h: ge(1), hh: ge(2), a: O(M, G, !0), A: O(M, G, !1), m: String(G), mm: F.s(G, 2, "0"), s: String(this.$s), ss: F.s(this.$s, 2, "0"), SSS: F.s(this.$ms, 3, "0"), Z: y };
|
|
5115
|
+
return _.replace(g, function(K, X) {
|
|
5116
|
+
return X || Q[K] || y.replace(":", "");
|
|
5117
5117
|
});
|
|
5118
5118
|
}, $.utcOffset = function() {
|
|
5119
5119
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5120
|
-
}, $.diff = function(x, H,
|
|
5121
|
-
var
|
|
5122
|
-
return ee = (
|
|
5120
|
+
}, $.diff = function(x, H, k) {
|
|
5121
|
+
var _, y = F.p(H), M = N(x), G = (M.utcOffset() - this.utcOffset()) * n, U = this - M, ee = F.m(this, M);
|
|
5122
|
+
return ee = (_ = {}, _[S] = ee / 12, _[f] = ee, _[p] = ee / 3, _[u] = (U - G) / 6048e5, _[c] = (U - G) / 864e5, _[i] = U / r, _[s] = U / n, _[o] = U / l, _)[y] || U, k ? ee : F.a(ee);
|
|
5123
5123
|
}, $.daysInMonth = function() {
|
|
5124
5124
|
return this.endOf(f).$D;
|
|
5125
5125
|
}, $.$locale = function() {
|
|
@@ -5127,10 +5127,10 @@ var Yr = { exports: {} };
|
|
|
5127
5127
|
}, $.locale = function(x, H) {
|
|
5128
5128
|
if (!x)
|
|
5129
5129
|
return this.$L;
|
|
5130
|
-
var
|
|
5131
|
-
return
|
|
5130
|
+
var k = this.clone(), _ = R(x, H, !0);
|
|
5131
|
+
return _ && (k.$L = _), k;
|
|
5132
5132
|
}, $.clone = function() {
|
|
5133
|
-
return
|
|
5133
|
+
return F.w(this.$d, this);
|
|
5134
5134
|
}, $.toDate = function() {
|
|
5135
5135
|
return new Date(this.valueOf());
|
|
5136
5136
|
}, $.toJSON = function() {
|
|
@@ -5140,20 +5140,20 @@ var Yr = { exports: {} };
|
|
|
5140
5140
|
}, $.toString = function() {
|
|
5141
5141
|
return this.$d.toUTCString();
|
|
5142
5142
|
}, v;
|
|
5143
|
-
}(), Y =
|
|
5143
|
+
}(), Y = j.prototype;
|
|
5144
5144
|
return N.prototype = Y, [["$ms", a], ["$s", o], ["$m", s], ["$H", i], ["$W", c], ["$M", f], ["$y", S], ["$D", h]].forEach(function(v) {
|
|
5145
5145
|
Y[v[1]] = function($) {
|
|
5146
5146
|
return this.$g($, v[0], v[1]);
|
|
5147
5147
|
};
|
|
5148
5148
|
}), N.extend = function(v, $) {
|
|
5149
|
-
return v.$i || (v($,
|
|
5149
|
+
return v.$i || (v($, j, N), v.$i = !0), N;
|
|
5150
5150
|
}, N.locale = R, N.isDayjs = C, N.unix = function(v) {
|
|
5151
5151
|
return N(1e3 * v);
|
|
5152
5152
|
}, N.en = E[A], N.Ls = E, N.p = {}, N;
|
|
5153
5153
|
});
|
|
5154
5154
|
})(Yr);
|
|
5155
5155
|
var du = Yr.exports;
|
|
5156
|
-
const
|
|
5156
|
+
const Xe = /* @__PURE__ */ lt(du);
|
|
5157
5157
|
var Gr = { exports: {} };
|
|
5158
5158
|
(function(e, t) {
|
|
5159
5159
|
(function(l, n) {
|
|
@@ -5219,9 +5219,9 @@ var Gr = { exports: {} };
|
|
|
5219
5219
|
function h(d) {
|
|
5220
5220
|
var m, g;
|
|
5221
5221
|
m = d, g = s && s.formats;
|
|
5222
|
-
for (var w = (d = m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N,
|
|
5223
|
-
var Y =
|
|
5224
|
-
return
|
|
5222
|
+
for (var w = (d = m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, F, j) {
|
|
5223
|
+
var Y = j && j.toUpperCase();
|
|
5224
|
+
return F || g[j] || l[j] || g[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, $, x) {
|
|
5225
5225
|
return $ || x.slice(1);
|
|
5226
5226
|
});
|
|
5227
5227
|
})).match(n), T = w.length, P = 0; P < T; P += 1) {
|
|
@@ -5229,22 +5229,22 @@ var Gr = { exports: {} };
|
|
|
5229
5229
|
w[P] = R ? { regex: C, parser: R } : A.replace(/^\[|\]$/g, "");
|
|
5230
5230
|
}
|
|
5231
5231
|
return function(N) {
|
|
5232
|
-
for (var
|
|
5233
|
-
var v = w[
|
|
5232
|
+
for (var F = {}, j = 0, Y = 0; j < T; j += 1) {
|
|
5233
|
+
var v = w[j];
|
|
5234
5234
|
if (typeof v == "string")
|
|
5235
5235
|
Y += v.length;
|
|
5236
5236
|
else {
|
|
5237
|
-
var $ = v.regex, x = v.parser, H = N.slice(Y),
|
|
5238
|
-
x.call(
|
|
5237
|
+
var $ = v.regex, x = v.parser, H = N.slice(Y), k = $.exec(H)[0];
|
|
5238
|
+
x.call(F, k), N = N.replace(k, "");
|
|
5239
5239
|
}
|
|
5240
5240
|
}
|
|
5241
|
-
return function(
|
|
5242
|
-
var
|
|
5243
|
-
if (
|
|
5244
|
-
var
|
|
5245
|
-
|
|
5241
|
+
return function(_) {
|
|
5242
|
+
var y = _.afternoon;
|
|
5243
|
+
if (y !== void 0) {
|
|
5244
|
+
var M = _.hours;
|
|
5245
|
+
y ? M < 12 && (_.hours += 12) : M === 12 && (_.hours = 0), delete _.afternoon;
|
|
5246
5246
|
}
|
|
5247
|
-
}(
|
|
5247
|
+
}(F), F;
|
|
5248
5248
|
};
|
|
5249
5249
|
}
|
|
5250
5250
|
return function(d, m, g) {
|
|
@@ -5255,19 +5255,19 @@ var Gr = { exports: {} };
|
|
|
5255
5255
|
this.$u = E;
|
|
5256
5256
|
var R = C[1];
|
|
5257
5257
|
if (typeof R == "string") {
|
|
5258
|
-
var N = C[2] === !0,
|
|
5259
|
-
|
|
5258
|
+
var N = C[2] === !0, F = C[3] === !0, j = N || F, Y = C[2];
|
|
5259
|
+
F && (Y = C[2]), s = this.$locale(), !N && Y && (s = g.Ls[Y]), this.$d = function(H, k, _) {
|
|
5260
5260
|
try {
|
|
5261
|
-
if (["x", "X"].indexOf(
|
|
5262
|
-
return new Date((
|
|
5263
|
-
var
|
|
5264
|
-
|
|
5261
|
+
if (["x", "X"].indexOf(k) > -1)
|
|
5262
|
+
return new Date((k === "X" ? 1e3 : 1) * H);
|
|
5263
|
+
var y = h(k)(H), M = y.year, G = y.month, U = y.day, ee = y.hours, te = y.minutes, ce = y.seconds, ge = y.milliseconds, O = y.zone, Q = /* @__PURE__ */ new Date(), K = U || (M || G ? 1 : Q.getDate()), X = M || Q.getFullYear(), B = 0;
|
|
5264
|
+
M && !G || (B = G > 0 ? G - 1 : Q.getMonth());
|
|
5265
5265
|
var V = ee || 0, q = te || 0, I = ce || 0, L = ge || 0;
|
|
5266
|
-
return O ? new Date(Date.UTC(X,
|
|
5266
|
+
return O ? new Date(Date.UTC(X, B, K, V, q, I, L + 60 * O.offset * 1e3)) : _ ? new Date(Date.UTC(X, B, K, V, q, I, L)) : new Date(X, B, K, V, q, I, L);
|
|
5267
5267
|
} catch {
|
|
5268
5268
|
return /* @__PURE__ */ new Date("");
|
|
5269
5269
|
}
|
|
5270
|
-
}(A, R, E), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L),
|
|
5270
|
+
}(A, R, E), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), j && A != this.format(R) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
5271
5271
|
} else if (R instanceof Array)
|
|
5272
5272
|
for (var v = R.length, $ = 1; $ <= v; $ += 1) {
|
|
5273
5273
|
C[1] = R[$ - 1];
|
|
@@ -5504,15 +5504,15 @@ var ta = { exports: {} };
|
|
|
5504
5504
|
})(ta);
|
|
5505
5505
|
var Nu = ta.exports;
|
|
5506
5506
|
const Au = /* @__PURE__ */ lt(Nu);
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
const
|
|
5507
|
+
Xe.extend(yu);
|
|
5508
|
+
Xe.extend(pu);
|
|
5509
|
+
Xe.extend(gu);
|
|
5510
|
+
Xe.extend(xu);
|
|
5511
|
+
Xe.extend(Su);
|
|
5512
|
+
Xe.extend(Tu);
|
|
5513
|
+
Xe.extend(Cu);
|
|
5514
|
+
Xe.extend(Au);
|
|
5515
|
+
const Ye = {
|
|
5516
5516
|
/**
|
|
5517
5517
|
* 格式化
|
|
5518
5518
|
* @param date
|
|
@@ -5520,7 +5520,7 @@ const Qe = {
|
|
|
5520
5520
|
* @returns
|
|
5521
5521
|
*/
|
|
5522
5522
|
format(e, t) {
|
|
5523
|
-
return
|
|
5523
|
+
return Xe(e).format(t);
|
|
5524
5524
|
},
|
|
5525
5525
|
/**
|
|
5526
5526
|
* 解析
|
|
@@ -5528,7 +5528,7 @@ const Qe = {
|
|
|
5528
5528
|
* @param template
|
|
5529
5529
|
*/
|
|
5530
5530
|
parser(e, t) {
|
|
5531
|
-
return
|
|
5531
|
+
return Xe(e, t).toDate();
|
|
5532
5532
|
},
|
|
5533
5533
|
/**
|
|
5534
5534
|
* 是否为闫年
|
|
@@ -5658,7 +5658,7 @@ const Qe = {
|
|
|
5658
5658
|
*/
|
|
5659
5659
|
formatResultDate: function(e) {
|
|
5660
5660
|
let t = [...e.split("-")];
|
|
5661
|
-
return t[2] =
|
|
5661
|
+
return t[2] = Ye.getNumTwoBit(Number(t[2])), t[3] = `${t[0]}-${t[1]}-${t[2]}`, t[4] = Ye.getWhatDay(+t[0], +t[1], +t[2]), t;
|
|
5662
5662
|
},
|
|
5663
5663
|
/**
|
|
5664
5664
|
* 判断日期是否在范围内
|
|
@@ -5757,7 +5757,7 @@ function Iu(e, t, l) {
|
|
|
5757
5757
|
],
|
|
5758
5758
|
// setup
|
|
5759
5759
|
setup(n, r) {
|
|
5760
|
-
const a = He(
|
|
5760
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
5761
5761
|
{
|
|
5762
5762
|
componentName: e,
|
|
5763
5763
|
// 判断是否需要进行校验
|
|
@@ -5766,104 +5766,120 @@ function Iu(e, t, l) {
|
|
|
5766
5766
|
}
|
|
5767
5767
|
},
|
|
5768
5768
|
n.prop ?? r.attrs.name
|
|
5769
|
-
), { toLocaleRefs: i } =
|
|
5769
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = b(() => (f.value, v.value && Array.isArray(f.value) && f.value.length == 2 ? f.value[0] : f.value)), S = b(() => v.value ? "longTermKey" : "normalKey"), h = (_) => {
|
|
5770
5770
|
if (v.value && n.type === "daterange") {
|
|
5771
|
-
const
|
|
5772
|
-
|
|
5771
|
+
const y = [...f.value];
|
|
5772
|
+
y[0] = _, f.value = y;
|
|
5773
5773
|
} else
|
|
5774
|
-
f.value =
|
|
5774
|
+
f.value = _;
|
|
5775
5775
|
s("update:modelValue", f.value), s("change", f.value);
|
|
5776
|
-
}, d =
|
|
5776
|
+
}, d = b(() => v.value && n.type === "daterange" ? "date" : n.type), m = e, g = b(() => ({
|
|
5777
5777
|
[`${m}__input`]: !0
|
|
5778
5778
|
}));
|
|
5779
5779
|
let w = pe(n, "hintText"), T = D(!1);
|
|
5780
|
-
const P = (
|
|
5781
|
-
let
|
|
5782
|
-
u.value = !0, $e(w.value) || (T.value = !0), s("focus",
|
|
5783
|
-
}, A = (
|
|
5780
|
+
const P = (_) => {
|
|
5781
|
+
let M = _.target.value;
|
|
5782
|
+
u.value = !0, $e(w.value) || (T.value = !0), s("focus", M, _);
|
|
5783
|
+
}, A = (_) => {
|
|
5784
5784
|
setTimeout(() => {
|
|
5785
5785
|
T.value && (T.value = !1), u.value = !1;
|
|
5786
5786
|
}, 0);
|
|
5787
|
-
let
|
|
5788
|
-
n.maxLength &&
|
|
5787
|
+
let M = _.target.value;
|
|
5788
|
+
n.maxLength && M.length > Number(n.maxLength) && (M = M.slice(0, Number(n.maxLength))), s("blur", M, _);
|
|
5789
5789
|
}, E = () => {
|
|
5790
5790
|
s("clear", "");
|
|
5791
|
-
}, C = (
|
|
5792
|
-
s("calendar-change",
|
|
5793
|
-
}, R = (
|
|
5794
|
-
s("panel-change",
|
|
5795
|
-
}, N = (
|
|
5796
|
-
s("visible-change",
|
|
5797
|
-
},
|
|
5798
|
-
|
|
5791
|
+
}, C = (_) => {
|
|
5792
|
+
s("calendar-change", _);
|
|
5793
|
+
}, R = (_, y, M) => {
|
|
5794
|
+
s("panel-change", _, y, M);
|
|
5795
|
+
}, N = (_) => {
|
|
5796
|
+
s("visible-change", _);
|
|
5797
|
+
}, F = je(
|
|
5798
|
+
b(() => n.longTermValue),
|
|
5799
5799
|
"longTermText",
|
|
5800
|
-
|
|
5801
|
-
),
|
|
5802
|
-
|
|
5800
|
+
Ue.Near
|
|
5801
|
+
), j = je(
|
|
5802
|
+
b(() => n.longTermValue),
|
|
5803
5803
|
"longTermValue",
|
|
5804
|
-
|
|
5804
|
+
Ue.Near
|
|
5805
5805
|
);
|
|
5806
5806
|
let Y = null;
|
|
5807
|
-
const v = D(le(n.longTerm)), $ = (
|
|
5808
|
-
if (v.value =
|
|
5807
|
+
const v = D(le(n.longTerm)), $ = (_) => {
|
|
5808
|
+
if (v.value = _, s("update:longTerm", _), _) {
|
|
5809
5809
|
if (Y = f.value, n.type === "daterange") {
|
|
5810
|
-
const
|
|
5811
|
-
Array.isArray(
|
|
5810
|
+
const y = [];
|
|
5811
|
+
Array.isArray(j.value) ? (y[0] = f.value[0] ?? j.value[0], y[1] = j.value[1] ?? j.value[0]) : (y[0] = f.value[0] ?? j.value, y[1] = v.value), y[0] || (y[0] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), y[1] || (y[1] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), f.value = y;
|
|
5812
5812
|
} else
|
|
5813
|
-
Array.isArray(
|
|
5813
|
+
Array.isArray(j.value) ? f.value = j.value[1] ?? j.value[0] : f.value = j.value, f.value || (f.value = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date());
|
|
5814
5814
|
s("update:modelValue", f.value);
|
|
5815
5815
|
} else {
|
|
5816
5816
|
if (n.type === "daterange") {
|
|
5817
|
-
const
|
|
5818
|
-
|
|
5817
|
+
const y = [];
|
|
5818
|
+
y[0] = Array.isArray(f.value) ? f.value[0] : f.value, Array.isArray(Y) ? y[1] = Y[1] : y[1] = Y, y[0] || (y[0] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), y[1] || (y[1] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), f.value = y;
|
|
5819
5819
|
} else
|
|
5820
5820
|
f.value = Y;
|
|
5821
5821
|
s("update:modelValue", f.value);
|
|
5822
5822
|
}
|
|
5823
5823
|
}, x = le(n.isLongTerm);
|
|
5824
5824
|
if (x) {
|
|
5825
|
-
const
|
|
5825
|
+
const _ = () => {
|
|
5826
5826
|
if (v.value === !0) {
|
|
5827
5827
|
if (Y = f.value, n.type === "daterange") {
|
|
5828
|
-
const
|
|
5829
|
-
Array.isArray(
|
|
5828
|
+
const y = [f.value[0]];
|
|
5829
|
+
Array.isArray(j.value) ? y[1] = j.value[1] ?? j.value[0] : y[1] = v.value, y[0] || (y[0] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), y[1] || (y[1] = n.valueFormat ? Ye.format(/* @__PURE__ */ new Date(), n.valueFormat) : /* @__PURE__ */ new Date()), f.value = y;
|
|
5830
5830
|
} else
|
|
5831
|
-
f.value =
|
|
5831
|
+
f.value = j.value;
|
|
5832
5832
|
s("update:modelValue", f.value);
|
|
5833
5833
|
} else
|
|
5834
|
-
bt(
|
|
5834
|
+
bt(j.value, f.value) && (v.value = !0);
|
|
5835
5835
|
};
|
|
5836
|
-
|
|
5837
|
-
v.value !==
|
|
5838
|
-
})
|
|
5836
|
+
_(), ie([() => n.longTerm], ([y]) => {
|
|
5837
|
+
v.value !== y && _();
|
|
5838
|
+
}), ie(
|
|
5839
|
+
[() => f.value],
|
|
5840
|
+
([y]) => {
|
|
5841
|
+
if (v.value !== !0 && n.type === "daterange" && Array.isArray(y))
|
|
5842
|
+
try {
|
|
5843
|
+
let M = y[1];
|
|
5844
|
+
if (!M)
|
|
5845
|
+
return;
|
|
5846
|
+
typeof M != "string" && n.valueFormat && (M = Ye.format(M, n.valueFormat));
|
|
5847
|
+
let G = Array.isArray(j.value) ? j.value[1] : j.value;
|
|
5848
|
+
M === G && (v.value = !0);
|
|
5849
|
+
} catch (M) {
|
|
5850
|
+
console.error(M);
|
|
5851
|
+
}
|
|
5852
|
+
},
|
|
5853
|
+
{ immediate: !0 }
|
|
5854
|
+
);
|
|
5839
5855
|
}
|
|
5840
|
-
const H =
|
|
5856
|
+
const H = b(() => ({
|
|
5841
5857
|
"fox-date-item__long": !0,
|
|
5842
5858
|
"is-active": u.value
|
|
5843
|
-
})),
|
|
5859
|
+
})), k = D();
|
|
5844
5860
|
return Re({
|
|
5845
5861
|
//使 input 获取焦点
|
|
5846
5862
|
focus: () => {
|
|
5847
|
-
|
|
5863
|
+
k?.value.focus();
|
|
5848
5864
|
},
|
|
5849
5865
|
// 使 input 失去焦点
|
|
5850
5866
|
blur: () => {
|
|
5851
|
-
|
|
5867
|
+
k?.value.blur();
|
|
5852
5868
|
},
|
|
5853
5869
|
// 打开日期选择器弹窗
|
|
5854
5870
|
handleOpen: () => {
|
|
5855
|
-
|
|
5871
|
+
k?.value.handleOpen();
|
|
5856
5872
|
},
|
|
5857
5873
|
// 关闭日期选择器弹窗
|
|
5858
5874
|
handleClose: () => {
|
|
5859
|
-
|
|
5875
|
+
k?.value.handleClose();
|
|
5860
5876
|
}
|
|
5861
5877
|
}), () => {
|
|
5862
|
-
const
|
|
5878
|
+
const y = {
|
|
5863
5879
|
...r.attrs,
|
|
5864
5880
|
key: S.value,
|
|
5865
5881
|
type: d.value,
|
|
5866
|
-
ref:
|
|
5882
|
+
ref: k,
|
|
5867
5883
|
class: g.value,
|
|
5868
5884
|
placeholder: c.placeholder.value,
|
|
5869
5885
|
disabled: a.value,
|
|
@@ -5877,26 +5893,26 @@ function Iu(e, t, l) {
|
|
|
5877
5893
|
onCalendarChange: C,
|
|
5878
5894
|
onPanelChange: R,
|
|
5879
5895
|
onVisibleChange: N
|
|
5880
|
-
},
|
|
5881
|
-
r.slots["range-separator"] && (
|
|
5882
|
-
const G = [], U = W(or,
|
|
5896
|
+
}, M = {};
|
|
5897
|
+
r.slots["range-separator"] && (M["range-separator"] = r.slots["range-separator"]), r.slots.cell && (M.default = r.slots.cell);
|
|
5898
|
+
const G = [], U = W(or, y, M);
|
|
5883
5899
|
G.push(U);
|
|
5884
5900
|
const ee = {
|
|
5885
5901
|
default: () => G
|
|
5886
5902
|
};
|
|
5887
5903
|
if (r.slots.default && (ee.label = r.slots.default), r.slots.fixedTip && (ee.fixedTip = r.slots.fixedTip), x) {
|
|
5888
5904
|
if (v.value) {
|
|
5889
|
-
const X = W("span", { class: ["fox-date-item__long-splitor"] }, ["-"]),
|
|
5905
|
+
const X = W("span", { class: ["fox-date-item__long-splitor"] }, ["-"]), B = W("div", { class: ["fox-date-item__long-text"] }, [F.value]), V = {
|
|
5890
5906
|
class: H.value
|
|
5891
|
-
}, q = W("div", V, { default: () => [X,
|
|
5907
|
+
}, q = W("div", V, { default: () => [X, B] });
|
|
5892
5908
|
G.push(q);
|
|
5893
5909
|
}
|
|
5894
5910
|
const O = {
|
|
5895
|
-
label:
|
|
5911
|
+
label: F.value,
|
|
5896
5912
|
disabled: o.value || a.value,
|
|
5897
5913
|
modelValue: v.value,
|
|
5898
5914
|
"onUpdate:modelValue": $
|
|
5899
|
-
}, Q = W(Mt, O),
|
|
5915
|
+
}, Q = W(Mt, O), K = W(
|
|
5900
5916
|
"div",
|
|
5901
5917
|
{
|
|
5902
5918
|
class: {
|
|
@@ -5905,7 +5921,7 @@ function Iu(e, t, l) {
|
|
|
5905
5921
|
},
|
|
5906
5922
|
[Q]
|
|
5907
5923
|
);
|
|
5908
|
-
ee.append = () =>
|
|
5924
|
+
ee.append = () => K;
|
|
5909
5925
|
}
|
|
5910
5926
|
const ce = {
|
|
5911
5927
|
...Me(n, $l, Tl),
|
|
@@ -5939,7 +5955,7 @@ const { componentName: Vu, create: Pu, scope: Ru } = ae("date-item"), Du = Pu(Iu
|
|
|
5939
5955
|
required: !1
|
|
5940
5956
|
}
|
|
5941
5957
|
};
|
|
5942
|
-
function
|
|
5958
|
+
function Fu(e, t, l) {
|
|
5943
5959
|
return {
|
|
5944
5960
|
// 属性
|
|
5945
5961
|
props: {
|
|
@@ -5954,7 +5970,7 @@ function ku(e, t, l) {
|
|
|
5954
5970
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "visible-change"],
|
|
5955
5971
|
// setup
|
|
5956
5972
|
setup(n, r) {
|
|
5957
|
-
const a = He(
|
|
5973
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
5958
5974
|
{
|
|
5959
5975
|
componentName: e,
|
|
5960
5976
|
// 判断是否需要进行校验
|
|
@@ -5963,7 +5979,7 @@ function ku(e, t, l) {
|
|
|
5963
5979
|
}
|
|
5964
5980
|
},
|
|
5965
5981
|
n.prop ?? r.attrs.name
|
|
5966
|
-
), { toLocaleRefs: i } =
|
|
5982
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = e, S = b(() => ({
|
|
5967
5983
|
[p]: !0
|
|
5968
5984
|
})), h = (E) => {
|
|
5969
5985
|
f.value = E, s("update:modelValue", E), s("change", E);
|
|
@@ -6014,24 +6030,24 @@ function ku(e, t, l) {
|
|
|
6014
6030
|
onFocus: g,
|
|
6015
6031
|
onBlur: w,
|
|
6016
6032
|
onVisibleChange: P
|
|
6017
|
-
}, R = {}, N = [],
|
|
6018
|
-
N.push(
|
|
6019
|
-
const
|
|
6033
|
+
}, R = {}, N = [], F = W(vr, C, R);
|
|
6034
|
+
N.push(F);
|
|
6035
|
+
const j = {
|
|
6020
6036
|
default: () => N
|
|
6021
6037
|
};
|
|
6022
|
-
r.slots.default && (
|
|
6038
|
+
r.slots.default && (j.label = r.slots.default), r.slots.fixedTip && (j.fixedTip = r.slots.fixedTip);
|
|
6023
6039
|
const v = {
|
|
6024
6040
|
...Me(n, El),
|
|
6025
6041
|
hintText: d.value,
|
|
6026
6042
|
hintVisible: m.value,
|
|
6027
6043
|
prop: `${n.prop}_item`
|
|
6028
6044
|
};
|
|
6029
|
-
return W(l, v,
|
|
6045
|
+
return W(l, v, j);
|
|
6030
6046
|
};
|
|
6031
6047
|
}
|
|
6032
6048
|
};
|
|
6033
6049
|
}
|
|
6034
|
-
const { componentName:
|
|
6050
|
+
const { componentName: ku, create: Ou, scope: qu } = ae("time-item"), Lu = Ou(Fu(ku, qu, De)), Cl = {
|
|
6035
6051
|
// model value
|
|
6036
6052
|
modelValue: {
|
|
6037
6053
|
type: [Date, Number, String, Array],
|
|
@@ -6063,7 +6079,7 @@ function Mu(e, t, l) {
|
|
|
6063
6079
|
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
6064
6080
|
// setup
|
|
6065
6081
|
setup(n, r) {
|
|
6066
|
-
const a = He(
|
|
6082
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
6067
6083
|
{
|
|
6068
6084
|
componentName: e,
|
|
6069
6085
|
// 判断是否需要进行校验
|
|
@@ -6072,7 +6088,7 @@ function Mu(e, t, l) {
|
|
|
6072
6088
|
}
|
|
6073
6089
|
},
|
|
6074
6090
|
n.prop ?? r.attrs.name
|
|
6075
|
-
), { toLocaleRefs: i } =
|
|
6091
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = e, S = b(() => ({
|
|
6076
6092
|
[p]: !0
|
|
6077
6093
|
})), h = (A) => {
|
|
6078
6094
|
f.value = A, s("update:modelValue", A), s("change", A);
|
|
@@ -6122,17 +6138,17 @@ function Mu(e, t, l) {
|
|
|
6122
6138
|
onBlur: w
|
|
6123
6139
|
}, C = {}, R = [], N = W(yr, E, C);
|
|
6124
6140
|
R.push(N);
|
|
6125
|
-
const
|
|
6141
|
+
const F = {
|
|
6126
6142
|
default: () => R
|
|
6127
6143
|
};
|
|
6128
|
-
r.slots.default && (
|
|
6144
|
+
r.slots.default && (F.label = r.slots.default), r.slots.fixedTip && (F.fixedTip = r.slots.fixedTip);
|
|
6129
6145
|
const Y = {
|
|
6130
6146
|
...Me(n, Cl),
|
|
6131
6147
|
hintText: d.value,
|
|
6132
6148
|
hintVisible: m.value,
|
|
6133
6149
|
prop: `${n.prop}_item`
|
|
6134
6150
|
};
|
|
6135
|
-
return W(l, Y,
|
|
6151
|
+
return W(l, Y, F);
|
|
6136
6152
|
};
|
|
6137
6153
|
}
|
|
6138
6154
|
};
|
|
@@ -6320,7 +6336,7 @@ function zu(e, t, l) {
|
|
|
6320
6336
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input"],
|
|
6321
6337
|
// setup
|
|
6322
6338
|
setup(n, r) {
|
|
6323
|
-
const a = He(
|
|
6339
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
6324
6340
|
{
|
|
6325
6341
|
componentName: e,
|
|
6326
6342
|
// 判断是否需要进行校验
|
|
@@ -6330,7 +6346,7 @@ function zu(e, t, l) {
|
|
|
6330
6346
|
},
|
|
6331
6347
|
n.prop ?? r.attrs.name
|
|
6332
6348
|
), i = D(!1), c = pe(n, "modelValue"), u = D("");
|
|
6333
|
-
|
|
6349
|
+
ie(
|
|
6334
6350
|
[() => c.value, () => n.rates, () => n.precision],
|
|
6335
6351
|
([v, $, x]) => {
|
|
6336
6352
|
if ($e(v)) {
|
|
@@ -6342,26 +6358,26 @@ function zu(e, t, l) {
|
|
|
6342
6358
|
},
|
|
6343
6359
|
{ immediate: !0 }
|
|
6344
6360
|
);
|
|
6345
|
-
const f =
|
|
6361
|
+
const f = b(() => {
|
|
6346
6362
|
let v = "";
|
|
6347
6363
|
return i.value && (v = u.value), v;
|
|
6348
|
-
}), { t: p } =
|
|
6364
|
+
}), { t: p } = Je(t), S = b(() => {
|
|
6349
6365
|
let v = n.placeholder ?? "";
|
|
6350
6366
|
return !i.value && !$e(u.value) ? v = Ku(u.value, n.decimalLength, n.autoPadding, n.digits, n.separator) : v = p(["placeholder", v]), v;
|
|
6351
|
-
}), h = e, d =
|
|
6367
|
+
}), h = e, d = b(() => ({
|
|
6352
6368
|
[h]: !0,
|
|
6353
6369
|
[`${h}__disabled`]: a.value,
|
|
6354
6370
|
[`${h}__placeholder`]: u.value.length > 0
|
|
6355
6371
|
})), m = je(
|
|
6356
|
-
|
|
6372
|
+
b(() => n.textAlign),
|
|
6357
6373
|
"textAlign"
|
|
6358
6374
|
);
|
|
6359
|
-
|
|
6375
|
+
b(() => i.value ? {
|
|
6360
6376
|
textAlign: "left"
|
|
6361
6377
|
} : {
|
|
6362
6378
|
textAlign: m.value ?? "right"
|
|
6363
6379
|
});
|
|
6364
|
-
const g = D(""), w =
|
|
6380
|
+
const g = D(""), w = b(() => {
|
|
6365
6381
|
let v = g.value;
|
|
6366
6382
|
return $e(v) && (v = n.errorTip ?? ""), v;
|
|
6367
6383
|
}), T = D(""), P = D(!1), A = (v, $) => {
|
|
@@ -6424,9 +6440,9 @@ function zu(e, t, l) {
|
|
|
6424
6440
|
}
|
|
6425
6441
|
}
|
|
6426
6442
|
s("update:modelValue", c.value, v), s("blur", c.value, v);
|
|
6427
|
-
},
|
|
6443
|
+
}, F = () => {
|
|
6428
6444
|
s("clear", "");
|
|
6429
|
-
},
|
|
6445
|
+
}, j = b(() => cn(n.unit) > 0), Y = D();
|
|
6430
6446
|
return Re({
|
|
6431
6447
|
//使 input 获取焦点
|
|
6432
6448
|
focus: () => {
|
|
@@ -6454,20 +6470,20 @@ function zu(e, t, l) {
|
|
|
6454
6470
|
modelValue: f.value,
|
|
6455
6471
|
"adjust-position": n.adjustPosition,
|
|
6456
6472
|
"always-system": n.alwaysSystem,
|
|
6457
|
-
onClear:
|
|
6473
|
+
onClear: F,
|
|
6458
6474
|
onInput: E,
|
|
6459
6475
|
onChange: C,
|
|
6460
6476
|
onFocus: R,
|
|
6461
6477
|
onBlur: N
|
|
6462
6478
|
}, x = {};
|
|
6463
|
-
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix :
|
|
6464
|
-
const H = [],
|
|
6465
|
-
H.push(
|
|
6466
|
-
const
|
|
6479
|
+
r.slots.prepend && (x.prepend = r.slots.prepend), r.slots.append && (x.append = r.slots.append), r.slots.prefix && (x.prefix = r.slots.prefix), r.slots.suffix ? x.suffix = r.slots.suffix : j.value && (x.suffix = () => [n.unit]);
|
|
6480
|
+
const H = [], k = W(Wn, $, x);
|
|
6481
|
+
H.push(k);
|
|
6482
|
+
const _ = {
|
|
6467
6483
|
default: () => H
|
|
6468
6484
|
};
|
|
6469
|
-
r.slots.default && (
|
|
6470
|
-
const
|
|
6485
|
+
r.slots.default && (_.label = r.slots.default), r.slots.fixedTip && (_.fixedTip = r.slots.fixedTip);
|
|
6486
|
+
const M = {
|
|
6471
6487
|
...Me(n, Pl),
|
|
6472
6488
|
errorTip: w.value,
|
|
6473
6489
|
hintText: T.value,
|
|
@@ -6475,7 +6491,7 @@ function zu(e, t, l) {
|
|
|
6475
6491
|
hintType: "number",
|
|
6476
6492
|
prop: `${n.prop}_item`
|
|
6477
6493
|
};
|
|
6478
|
-
return W(l,
|
|
6494
|
+
return W(l, M, _);
|
|
6479
6495
|
};
|
|
6480
6496
|
}
|
|
6481
6497
|
};
|
|
@@ -6527,7 +6543,7 @@ function Xu(e, t, l) {
|
|
|
6527
6543
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input"],
|
|
6528
6544
|
// setup
|
|
6529
6545
|
setup(n, r) {
|
|
6530
|
-
const a = He(
|
|
6546
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
6531
6547
|
{
|
|
6532
6548
|
componentName: e,
|
|
6533
6549
|
// 判断是否需要进行校验
|
|
@@ -6536,10 +6552,10 @@ function Xu(e, t, l) {
|
|
|
6536
6552
|
}
|
|
6537
6553
|
},
|
|
6538
6554
|
n.prop ?? r.attrs.name
|
|
6539
|
-
), { toLocaleRefs: i } =
|
|
6555
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = e, S = b(() => ({
|
|
6540
6556
|
[p]: !0,
|
|
6541
6557
|
[`${p}__append`]: E.value
|
|
6542
|
-
})), h =
|
|
6558
|
+
})), h = b(() => ({
|
|
6543
6559
|
[`${p}__unit`]: !0
|
|
6544
6560
|
})), d = (R) => {
|
|
6545
6561
|
f.value = R, s("update:modelValue", R), s("input", R);
|
|
@@ -6548,17 +6564,17 @@ function Xu(e, t, l) {
|
|
|
6548
6564
|
};
|
|
6549
6565
|
let g = pe(n, "hintText"), w = D(!1);
|
|
6550
6566
|
const T = (R) => {
|
|
6551
|
-
let
|
|
6552
|
-
u.value = !0, $e(g.value) || (w.value = !0), s("focus",
|
|
6567
|
+
let F = R.target.value;
|
|
6568
|
+
u.value = !0, $e(g.value) || (w.value = !0), s("focus", F, R);
|
|
6553
6569
|
}, P = (R) => {
|
|
6554
6570
|
setTimeout(() => {
|
|
6555
6571
|
w.value && (w.value = !1), u.value = !1;
|
|
6556
6572
|
}, 0);
|
|
6557
|
-
let
|
|
6558
|
-
n.maxLength &&
|
|
6573
|
+
let F = R.target.value;
|
|
6574
|
+
n.maxLength && F.length > Number(n.maxLength) && (F = F.slice(0, Number(n.maxLength))), s("blur", F, R);
|
|
6559
6575
|
}, A = () => {
|
|
6560
6576
|
s("clear", "");
|
|
6561
|
-
}, E =
|
|
6577
|
+
}, E = b(() => cn(n.unit) > 0), C = D();
|
|
6562
6578
|
return Re({
|
|
6563
6579
|
//使 input 获取焦点
|
|
6564
6580
|
focus: () => {
|
|
@@ -6585,10 +6601,10 @@ function Xu(e, t, l) {
|
|
|
6585
6601
|
onInput: d,
|
|
6586
6602
|
onFocus: T,
|
|
6587
6603
|
onBlur: P
|
|
6588
|
-
},
|
|
6589
|
-
|
|
6604
|
+
}, F = {}, j = [], Y = W(ir, N, F);
|
|
6605
|
+
j.push(Y);
|
|
6590
6606
|
const v = {
|
|
6591
|
-
default: () =>
|
|
6607
|
+
default: () => j
|
|
6592
6608
|
};
|
|
6593
6609
|
r.slots.default && (v.label = r.slots.default), r.slots.fixedTip && (v.fixedTip = r.slots.fixedTip);
|
|
6594
6610
|
const x = {
|
|
@@ -6600,10 +6616,10 @@ function Xu(e, t, l) {
|
|
|
6600
6616
|
if (r.slots.append)
|
|
6601
6617
|
v.append = r.slots.append;
|
|
6602
6618
|
else if (E.value) {
|
|
6603
|
-
const
|
|
6619
|
+
const k = {
|
|
6604
6620
|
class: h.value
|
|
6605
|
-
},
|
|
6606
|
-
v.append = () =>
|
|
6621
|
+
}, _ = W("div", k, [n.unit]);
|
|
6622
|
+
v.append = () => _;
|
|
6607
6623
|
}
|
|
6608
6624
|
return W(l, x, v);
|
|
6609
6625
|
};
|
|
@@ -6644,7 +6660,7 @@ let nc = class {
|
|
|
6644
6660
|
return l;
|
|
6645
6661
|
if (typeof l == "function")
|
|
6646
6662
|
return await l(n, r);
|
|
6647
|
-
const a =
|
|
6663
|
+
const a = Ge(this.proxy, t);
|
|
6648
6664
|
return a === null ? (console.error(`${t} component not found api function`), []) : (xt(n) && ut(n) && (n = me(n)), await a(l, n, r));
|
|
6649
6665
|
}
|
|
6650
6666
|
};
|
|
@@ -6809,7 +6825,7 @@ function ac(e, t, l) {
|
|
|
6809
6825
|
],
|
|
6810
6826
|
// setup
|
|
6811
6827
|
setup(n, r) {
|
|
6812
|
-
const a = He(
|
|
6828
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
6813
6829
|
{
|
|
6814
6830
|
componentName: e,
|
|
6815
6831
|
validateCheckEvents: ["blur", "update:modelValue", "selected"],
|
|
@@ -6819,7 +6835,7 @@ function ac(e, t, l) {
|
|
|
6819
6835
|
}
|
|
6820
6836
|
},
|
|
6821
6837
|
n.prop ?? r.attrs.name
|
|
6822
|
-
), { toLocaleRefs: i } =
|
|
6838
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(null), f = D([]), p = b(() => f.value ? f.value.map((Q) => vt(n, Q)).join(" ") : ""), S = (O, Q, K, X = !0) => {
|
|
6823
6839
|
if (n.props && n.props.lazy === !0 || n.lazy === !0) {
|
|
6824
6840
|
if (u.value === O)
|
|
6825
6841
|
return;
|
|
@@ -6830,36 +6846,36 @@ function ac(e, t, l) {
|
|
|
6830
6846
|
if (I)
|
|
6831
6847
|
if (n.multiple) {
|
|
6832
6848
|
const L = [];
|
|
6833
|
-
I.forEach((
|
|
6834
|
-
const fe = (
|
|
6849
|
+
I.forEach((z) => {
|
|
6850
|
+
const fe = (z.pathNodes ?? []).map((re) => re.data);
|
|
6835
6851
|
L.push(fe);
|
|
6836
6852
|
}), s("update:pathNodes", L);
|
|
6837
6853
|
} else {
|
|
6838
|
-
const
|
|
6839
|
-
s("update:pathNodes",
|
|
6854
|
+
const z = (I[0]?.pathNodes ?? []).map((J) => J.data);
|
|
6855
|
+
s("update:pathNodes", z);
|
|
6840
6856
|
}
|
|
6841
6857
|
s("update:modelValue", q), s("change", q);
|
|
6842
6858
|
}
|
|
6843
6859
|
}
|
|
6844
|
-
const
|
|
6845
|
-
if (
|
|
6860
|
+
const B = na(n, O, Q, K);
|
|
6861
|
+
if (B === null) {
|
|
6846
6862
|
if (f.value.length === 0 || f.value === null)
|
|
6847
6863
|
return;
|
|
6848
6864
|
f.value = [], u.value = null, X && (s("update:pathNodes", []), s("update:modelValue", null), s("change", null));
|
|
6849
6865
|
return;
|
|
6850
6866
|
}
|
|
6851
6867
|
let V = !0;
|
|
6852
|
-
if (
|
|
6868
|
+
if (B.length !== f.value.length)
|
|
6853
6869
|
V = !1;
|
|
6854
6870
|
else
|
|
6855
|
-
for (let q = 0; q <
|
|
6856
|
-
const I =
|
|
6871
|
+
for (let q = 0; q < B.length; q++) {
|
|
6872
|
+
const I = B[q], L = f.value[q];
|
|
6857
6873
|
if (Array.isArray(I)) {
|
|
6858
6874
|
if (!Array.isArray(L) || I.length !== L.length)
|
|
6859
6875
|
V = !1;
|
|
6860
6876
|
else
|
|
6861
|
-
for (let
|
|
6862
|
-
if (!Bn(n, I[
|
|
6877
|
+
for (let z = 0; z < I.length; z++)
|
|
6878
|
+
if (!Bn(n, I[z], L[z])) {
|
|
6863
6879
|
V = !1;
|
|
6864
6880
|
break;
|
|
6865
6881
|
}
|
|
@@ -6869,37 +6885,37 @@ function ac(e, t, l) {
|
|
|
6869
6885
|
break;
|
|
6870
6886
|
}
|
|
6871
6887
|
if (!V) {
|
|
6872
|
-
f.value =
|
|
6888
|
+
f.value = B;
|
|
6873
6889
|
let q = [], I = [];
|
|
6874
|
-
|
|
6875
|
-
if (Array.isArray(
|
|
6890
|
+
B.forEach((z) => {
|
|
6891
|
+
if (Array.isArray(z)) {
|
|
6876
6892
|
let J = [], fe = [];
|
|
6877
|
-
for (let re of
|
|
6893
|
+
for (let re of z)
|
|
6878
6894
|
J.push(mt(n, re)), n.valueType === "text" ? fe.push(vt(n, re)) : n.valueType === "item" ? fe.push(re) : fe.push(mt(n, re));
|
|
6879
6895
|
q.push(J), I.push(fe);
|
|
6880
6896
|
} else
|
|
6881
|
-
q.push(mt(n,
|
|
6897
|
+
q.push(mt(n, z)), n.valueType === "text" ? I.push(vt(n, z)) : n.valueType === "item" ? I.push(z) : I.push(mt(n, z));
|
|
6882
6898
|
}), u.value = q;
|
|
6883
6899
|
const L = me(I);
|
|
6884
|
-
X && (s("update:pathNodes",
|
|
6900
|
+
X && (s("update:pathNodes", B), s("update:modelValue", L), s("change", L));
|
|
6885
6901
|
}
|
|
6886
6902
|
}, h = D([]), d = je(
|
|
6887
|
-
|
|
6903
|
+
b(() => n.lazyLoad),
|
|
6888
6904
|
"lazyLoad",
|
|
6889
|
-
|
|
6905
|
+
Ue.Near,
|
|
6890
6906
|
(O) => le(O)
|
|
6891
6907
|
), m = lc(), g = async (O, Q) => {
|
|
6892
6908
|
if (O) {
|
|
6893
|
-
const
|
|
6894
|
-
if (
|
|
6895
|
-
if (typeof
|
|
6896
|
-
let V =
|
|
6909
|
+
const K = await m.load("cascader", O, Q);
|
|
6910
|
+
if (K.length > 0)
|
|
6911
|
+
if (typeof K[0] == "string") {
|
|
6912
|
+
let V = K.map((q) => rc(q));
|
|
6897
6913
|
h.value = V;
|
|
6898
6914
|
} else
|
|
6899
|
-
h.value =
|
|
6915
|
+
h.value = K;
|
|
6900
6916
|
}
|
|
6901
6917
|
};
|
|
6902
|
-
|
|
6918
|
+
ie(
|
|
6903
6919
|
[() => n.source, () => n.params],
|
|
6904
6920
|
async ([O, Q]) => {
|
|
6905
6921
|
g(O, Q);
|
|
@@ -6910,7 +6926,7 @@ function ac(e, t, l) {
|
|
|
6910
6926
|
const T = () => {
|
|
6911
6927
|
w || (w = !0, g(n.source, n.params));
|
|
6912
6928
|
};
|
|
6913
|
-
|
|
6929
|
+
ie([() => h.value, () => n.modelValue], ([O, Q]) => {
|
|
6914
6930
|
S(Q, n.valueType, O, !1);
|
|
6915
6931
|
}), n.lazy && S(n.modelValue, "value", [], !1);
|
|
6916
6932
|
let P = null, A = D(!1);
|
|
@@ -6926,42 +6942,42 @@ function ac(e, t, l) {
|
|
|
6926
6942
|
A.value = !1;
|
|
6927
6943
|
}
|
|
6928
6944
|
});
|
|
6929
|
-
const E = D(!1), C = e, R =
|
|
6945
|
+
const E = D(!1), C = e, R = b(() => ({
|
|
6930
6946
|
[C]: !0
|
|
6931
|
-
})), N =
|
|
6947
|
+
})), N = b(() => {
|
|
6932
6948
|
let O = {
|
|
6933
6949
|
label: n.textKey,
|
|
6934
6950
|
value: n.valueKey,
|
|
6935
6951
|
children: n.childrenKey
|
|
6936
6952
|
};
|
|
6937
|
-
return n.multiple === !0 && (O.multiple = !0), n.props && Object.assign(O, n.props), n.lazy && (O.lazy = !0, O.lazyLoad = async (Q,
|
|
6953
|
+
return n.multiple === !0 && (O.multiple = !0), n.props && Object.assign(O, n.props), n.lazy && (O.lazy = !0, O.lazyLoad = async (Q, K) => {
|
|
6938
6954
|
const X = await m.load("cascader", n.source, Q, !0);
|
|
6939
|
-
|
|
6955
|
+
K(X);
|
|
6940
6956
|
}), O;
|
|
6941
|
-
}),
|
|
6957
|
+
}), F = (O) => {
|
|
6942
6958
|
n.allowCreate ? (s("update:modelValue", O), s("change", O), u.value = O) : S(O, "value", h.value, !0);
|
|
6943
6959
|
};
|
|
6944
|
-
let
|
|
6960
|
+
let j = pe(n, "hintText"), Y = D(!1);
|
|
6945
6961
|
const v = (O) => {
|
|
6946
|
-
let
|
|
6947
|
-
E.value = !0, $e(
|
|
6962
|
+
let K = O.target.value;
|
|
6963
|
+
E.value = !0, $e(j.value) || (Y.value = !0), s("focus", K, O);
|
|
6948
6964
|
}, $ = (O) => {
|
|
6949
6965
|
setTimeout(() => {
|
|
6950
6966
|
Y.value && (Y.value = !1), E.value = !1;
|
|
6951
6967
|
}, 0);
|
|
6952
|
-
let
|
|
6953
|
-
n.maxLength &&
|
|
6968
|
+
let K = O.target.value;
|
|
6969
|
+
n.maxLength && K.length > Number(n.maxLength) && (K = K.slice(0, Number(n.maxLength))), U.value || s("blur", K, O);
|
|
6954
6970
|
}, x = () => {
|
|
6955
6971
|
s("clear", "");
|
|
6956
6972
|
}, H = D(!1);
|
|
6957
|
-
let
|
|
6958
|
-
const
|
|
6959
|
-
n.showTooltip && H.value === !1 && (
|
|
6973
|
+
let k = null;
|
|
6974
|
+
const _ = () => {
|
|
6975
|
+
n.showTooltip && H.value === !1 && (k && clearTimeout(k), k = setTimeout(() => {
|
|
6960
6976
|
H.value = !0;
|
|
6961
6977
|
}, 150));
|
|
6962
|
-
},
|
|
6963
|
-
|
|
6964
|
-
},
|
|
6978
|
+
}, y = () => {
|
|
6979
|
+
k && (clearTimeout(k), H.value = !1, k = null);
|
|
6980
|
+
}, M = b(() => H.value || Y.value), G = b(() => H.value ? p.value : j.value), U = D(!1), ee = (O) => {
|
|
6965
6981
|
U.value = O, s("visible-change", O), O || s("selected");
|
|
6966
6982
|
}, te = (O) => {
|
|
6967
6983
|
s("remove-tag", O);
|
|
@@ -6991,7 +7007,7 @@ function ac(e, t, l) {
|
|
|
6991
7007
|
options: h.value,
|
|
6992
7008
|
modelValue: u.value,
|
|
6993
7009
|
onClear: x,
|
|
6994
|
-
onChange:
|
|
7010
|
+
onChange: F,
|
|
6995
7011
|
onFocus: v,
|
|
6996
7012
|
onBlur: $,
|
|
6997
7013
|
onVisibleChange: ee,
|
|
@@ -6999,10 +7015,10 @@ function ac(e, t, l) {
|
|
|
6999
7015
|
expandChange: ce
|
|
7000
7016
|
};
|
|
7001
7017
|
typeof P == "function" && (Q["remote-method"] = P, Q.loading = A.value);
|
|
7002
|
-
const
|
|
7003
|
-
r.slots.option && (
|
|
7004
|
-
const X = [],
|
|
7005
|
-
X.push(
|
|
7018
|
+
const K = {};
|
|
7019
|
+
r.slots.option && (K.default = r.slots.option), r.slots.empty && (K.empty = r.slots.empty);
|
|
7020
|
+
const X = [], B = W(rr, Q, K);
|
|
7021
|
+
X.push(B);
|
|
7006
7022
|
const V = {
|
|
7007
7023
|
default: () => X
|
|
7008
7024
|
};
|
|
@@ -7010,17 +7026,17 @@ function ac(e, t, l) {
|
|
|
7010
7026
|
const I = {
|
|
7011
7027
|
...Me(n, Dl),
|
|
7012
7028
|
hintText: G.value,
|
|
7013
|
-
hintVisible:
|
|
7029
|
+
hintVisible: M.value,
|
|
7014
7030
|
prop: `${n.prop ?? r.attrs.name}_item`,
|
|
7015
|
-
onMouseover:
|
|
7016
|
-
onMouseleave:
|
|
7031
|
+
onMouseover: _,
|
|
7032
|
+
onMouseleave: y
|
|
7017
7033
|
};
|
|
7018
7034
|
return d.value && !n.lazy && (I["appear-listen"] = !0, I.onAppear = T), W(l, I, V);
|
|
7019
7035
|
};
|
|
7020
7036
|
}
|
|
7021
7037
|
};
|
|
7022
7038
|
}
|
|
7023
|
-
const { componentName: oc, create: sc, scope: ic } = ae("cascader-item"), uc = sc(ac(oc, ic, De)),
|
|
7039
|
+
const { componentName: oc, create: sc, scope: ic } = ae("cascader-item"), uc = sc(ac(oc, ic, De)), Fl = {
|
|
7024
7040
|
// model value
|
|
7025
7041
|
modelValue: {
|
|
7026
7042
|
type: [String, Object],
|
|
@@ -7051,13 +7067,13 @@ function cc(e, t, l) {
|
|
|
7051
7067
|
// item属性
|
|
7052
7068
|
...Pe,
|
|
7053
7069
|
// input属性
|
|
7054
|
-
...
|
|
7070
|
+
...Fl
|
|
7055
7071
|
},
|
|
7056
7072
|
// 事件
|
|
7057
7073
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input", "select"],
|
|
7058
7074
|
// setup
|
|
7059
7075
|
setup(n, r) {
|
|
7060
|
-
const a = He(
|
|
7076
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
7061
7077
|
{
|
|
7062
7078
|
componentName: e,
|
|
7063
7079
|
// 判断是否需要进行校验
|
|
@@ -7066,7 +7082,7 @@ function cc(e, t, l) {
|
|
|
7066
7082
|
}
|
|
7067
7083
|
},
|
|
7068
7084
|
n.prop ?? r.attrs.name
|
|
7069
|
-
), { toLocaleRefs: i } =
|
|
7085
|
+
), { toLocaleRefs: i } = Je(t), c = i(n, ["placeholder"]), u = D(!1), f = pe(n, "modelValue"), p = e, S = b(() => ({
|
|
7070
7086
|
[p]: !0
|
|
7071
7087
|
})), h = (C) => {
|
|
7072
7088
|
f.value = C, s("update:modelValue", C), s("input", C);
|
|
@@ -7119,14 +7135,14 @@ function cc(e, t, l) {
|
|
|
7119
7135
|
onSelect: m
|
|
7120
7136
|
}, N = {};
|
|
7121
7137
|
r.slots.prepend && (N.prepend = r.slots.prepend), r.slots.append && (N.append = r.slots.append), r.slots.prefix && (N.prefix = r.slots.prefix), r.slots.suffix && (N.suffix = r.slots.suffix), r.slots.option && (N.default = r.slots.option);
|
|
7122
|
-
const
|
|
7123
|
-
|
|
7138
|
+
const F = [], j = W(nr, R, N);
|
|
7139
|
+
F.push(j);
|
|
7124
7140
|
const Y = {
|
|
7125
|
-
default: () =>
|
|
7141
|
+
default: () => F
|
|
7126
7142
|
};
|
|
7127
7143
|
r.slots.default && (Y.label = r.slots.default), r.slots.fixedTip && (Y.fixedTip = r.slots.fixedTip);
|
|
7128
7144
|
const $ = {
|
|
7129
|
-
...Me(n,
|
|
7145
|
+
...Me(n, Fl),
|
|
7130
7146
|
hintText: g.value,
|
|
7131
7147
|
hintVisible: w.value,
|
|
7132
7148
|
prop: `${n.prop}_item`
|
|
@@ -7192,7 +7208,7 @@ let pc = class {
|
|
|
7192
7208
|
return l;
|
|
7193
7209
|
if (typeof l == "function")
|
|
7194
7210
|
return await l(n);
|
|
7195
|
-
const r =
|
|
7211
|
+
const r = Ge(this.proxy, t);
|
|
7196
7212
|
return r === null ? (console.error(`${t} component not found api function`), []) : (xt(n) && ut(n) && (n = me(n)), await r(l, n));
|
|
7197
7213
|
}
|
|
7198
7214
|
};
|
|
@@ -7289,14 +7305,14 @@ function yc(e, t) {
|
|
|
7289
7305
|
// setup
|
|
7290
7306
|
setup(l, { attrs: n, slots: r }) {
|
|
7291
7307
|
const a = vc(), o = D([]);
|
|
7292
|
-
|
|
7308
|
+
ie(
|
|
7293
7309
|
[() => l.source, () => l.params],
|
|
7294
7310
|
async ([c, u]) => {
|
|
7295
7311
|
o.value = await a.load(l.sourceType, c, u);
|
|
7296
7312
|
},
|
|
7297
7313
|
{ immediate: !0 }
|
|
7298
7314
|
);
|
|
7299
|
-
const s =
|
|
7315
|
+
const s = b(() => {
|
|
7300
7316
|
if (!Array.isArray(o.value) || o.value.length === 0)
|
|
7301
7317
|
return "";
|
|
7302
7318
|
let c = mc(l.modelValue, o.value, l.textKey, l.valueKey, l.childrenKey);
|
|
@@ -7354,7 +7370,7 @@ function wc(e, t) {
|
|
|
7354
7370
|
};
|
|
7355
7371
|
}
|
|
7356
7372
|
const { componentName: rg, create: Sc, scope: ag } = ae("table-mapping-column"), $c = Sc(wc()), Tc = Symbol.for("TableStateKey");
|
|
7357
|
-
function
|
|
7373
|
+
function kl(e, t) {
|
|
7358
7374
|
let l = t.split("."), n = e;
|
|
7359
7375
|
for (let r = 0; r < l.length; r++) {
|
|
7360
7376
|
let a = l[r], o = 0, s = a.indexOf("["), i = s == -1 ? -1 : a.indexOf("]", s);
|
|
@@ -7381,11 +7397,11 @@ function Ec(e, t) {
|
|
|
7381
7397
|
props: {},
|
|
7382
7398
|
// setup
|
|
7383
7399
|
setup(l, { attrs: n }) {
|
|
7384
|
-
const r =
|
|
7400
|
+
const r = ke(Tc, {});
|
|
7385
7401
|
return () => {
|
|
7386
7402
|
const a = r.currentRow ? r.currentRow.value : null, o = {
|
|
7387
7403
|
default: (s) => {
|
|
7388
|
-
const i =
|
|
7404
|
+
const i = kl(s.row, s.column.property), c = a ? kl(a, s.column.property) : null, u = i === c, p = W("span", {
|
|
7389
7405
|
class: {
|
|
7390
7406
|
"el-radio__input": !0,
|
|
7391
7407
|
"is-checked": u
|
|
@@ -7411,7 +7427,7 @@ const { componentName: og, create: Cc, scope: sg } = ae("table-radio-column"), N
|
|
|
7411
7427
|
version: "1.1",
|
|
7412
7428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7413
7429
|
"p-id": "721"
|
|
7414
|
-
}, Vc = /* @__PURE__ */
|
|
7430
|
+
}, Vc = /* @__PURE__ */ ue("path", {
|
|
7415
7431
|
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",
|
|
7416
7432
|
"p-id": "722"
|
|
7417
7433
|
}, null, -1), Pc = [
|
|
@@ -7420,7 +7436,7 @@ const { componentName: og, create: Cc, scope: sg } = ae("table-radio-column"), N
|
|
|
7420
7436
|
function Rc(e, t) {
|
|
7421
7437
|
return Z(), ne("svg", Ic, Pc);
|
|
7422
7438
|
}
|
|
7423
|
-
const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create:
|
|
7439
|
+
const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create: Fc, scope: ug } = ae("table-setting"), kc = {
|
|
7424
7440
|
// table ref
|
|
7425
7441
|
tableRef: {
|
|
7426
7442
|
type: Object
|
|
@@ -7484,7 +7500,7 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7484
7500
|
required: !1,
|
|
7485
7501
|
default: "不固定"
|
|
7486
7502
|
}
|
|
7487
|
-
}, Oc =
|
|
7503
|
+
}, Oc = Fc({
|
|
7488
7504
|
// 注册组件
|
|
7489
7505
|
components: {
|
|
7490
7506
|
FoxPopover: Yn,
|
|
@@ -7498,49 +7514,49 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7498
7514
|
},
|
|
7499
7515
|
// 属性
|
|
7500
7516
|
props: {
|
|
7501
|
-
...
|
|
7517
|
+
...kc
|
|
7502
7518
|
},
|
|
7503
7519
|
emits: ["update:modelValue", "change", "close"],
|
|
7504
7520
|
// setup
|
|
7505
7521
|
setup(e, { emit: t, attrs: l }) {
|
|
7506
7522
|
let n = [];
|
|
7507
|
-
const r = D([]), a =
|
|
7508
|
-
const
|
|
7509
|
-
r.value =
|
|
7510
|
-
}, S = (
|
|
7511
|
-
if (
|
|
7523
|
+
const r = D([]), a = b(() => r.value.filter((y) => y.label === "" || y.type ? !1 : y.fixed === "" || y.fixed === !0 || y.fixed === "left")), o = b(() => r.value.filter((y) => y.label === "" || y.type ? !1 : y.fixed === "right")), s = b(() => r.value.filter((y) => !(y.label === "" || y.type || y.fixed !== void 0))), i = b(() => (a.value.length > 0 || o.value.length > 0) && s.value.length > 0), c = b(() => a.value.length > 0), u = b(() => o.value.length > 0), f = (y) => y.length > 1, p = (y) => {
|
|
7524
|
+
const M = [];
|
|
7525
|
+
r.value = y.map((U, ee) => (!(U.label === "" || U.type) && U.visible !== !1 && M.push(U.prop), { ...U, sortIndex: ee })), s.value.length + a.value.length + o.value.length === M.length ? w.value = !0 : M.length > 0 && (T.value = !0), E.value = M;
|
|
7526
|
+
}, S = (y) => y ? y.type ? y.type : y.label ? y.prop : "" : "", h = (y, M) => {
|
|
7527
|
+
if (y.length !== M.length)
|
|
7512
7528
|
return !1;
|
|
7513
|
-
const G =
|
|
7514
|
-
for (let U of
|
|
7529
|
+
const G = y.map((U) => S(U));
|
|
7530
|
+
for (let U of M) {
|
|
7515
7531
|
const ee = S(U);
|
|
7516
7532
|
if (G.indexOf(ee) === -1)
|
|
7517
7533
|
return !1;
|
|
7518
7534
|
}
|
|
7519
7535
|
return !0;
|
|
7520
|
-
}, d = (
|
|
7521
|
-
if (!
|
|
7522
|
-
const
|
|
7523
|
-
n = G.map((U, ee) => ({ ...U, sortIndex: ee })),
|
|
7536
|
+
}, d = (y) => {
|
|
7537
|
+
if (!y) {
|
|
7538
|
+
const M = e.tableRef.getColumnSetting(), G = M.srcColumnPropertyList;
|
|
7539
|
+
n = G.map((U, ee) => ({ ...U, sortIndex: ee })), y = M.columnPropertyList, y && y.length > 0 && h(G, y) || (y = G);
|
|
7524
7540
|
}
|
|
7525
|
-
p(
|
|
7541
|
+
p(y);
|
|
7526
7542
|
}, m = () => {
|
|
7527
7543
|
e.tableRef.setColumnSetting(r.value);
|
|
7528
|
-
}, g =
|
|
7529
|
-
const
|
|
7544
|
+
}, g = b(() => ({ "max-width": `${e.popoverWidth - 125}px` })), w = D(!1), T = D(!1), P = (y) => {
|
|
7545
|
+
const M = [];
|
|
7530
7546
|
r.value.forEach((U) => {
|
|
7531
|
-
|
|
7532
|
-
}), w.value = !1, T.value = !1, s.value.length + a.value.length + o.value.length ===
|
|
7547
|
+
y && !(U.label === "" || U.type) && M.push(U.prop), U.visible = y;
|
|
7548
|
+
}), w.value = !1, T.value = !1, s.value.length + a.value.length + o.value.length === M.length ? w.value = !0 : M.length > 0 && (T.value = !0), E.value = M, m();
|
|
7533
7549
|
}, A = () => {
|
|
7534
7550
|
d(n), m();
|
|
7535
|
-
}, E = D([]), C = (
|
|
7551
|
+
}, E = D([]), C = (y) => {
|
|
7536
7552
|
r.value.forEach((G) => {
|
|
7537
7553
|
if (G.label === "" || G.type)
|
|
7538
7554
|
return;
|
|
7539
|
-
const U =
|
|
7555
|
+
const U = y.indexOf(G.prop) !== -1;
|
|
7540
7556
|
G.visible = U;
|
|
7541
7557
|
}), w.value = !1, T.value = !1;
|
|
7542
|
-
const
|
|
7543
|
-
|
|
7558
|
+
const M = s.value.length + a.value.length + o.value.length;
|
|
7559
|
+
y.length === M ? w.value = !0 : y.length > 0 && (T.value = !0), m();
|
|
7544
7560
|
}, R = () => {
|
|
7545
7561
|
d();
|
|
7546
7562
|
};
|
|
@@ -7553,7 +7569,7 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7553
7569
|
currentRow: null,
|
|
7554
7570
|
index: null,
|
|
7555
7571
|
roleType: null
|
|
7556
|
-
},
|
|
7572
|
+
}, F = (y) => y ? y.dataset && y.dataset.role === "row" ? y : y.tagName.toLowerCase() !== "body" ? (y = y.parentElement, F(y)) : null : null;
|
|
7557
7573
|
return {
|
|
7558
7574
|
attrs: l,
|
|
7559
7575
|
leftFixedColumns: a,
|
|
@@ -7570,33 +7586,33 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7570
7586
|
checkedValue: E,
|
|
7571
7587
|
handleCheckChange: C,
|
|
7572
7588
|
onShow: R,
|
|
7573
|
-
onDragStart: (
|
|
7574
|
-
const
|
|
7575
|
-
|
|
7589
|
+
onDragStart: (y) => {
|
|
7590
|
+
const M = y.currentTarget;
|
|
7591
|
+
M && M.dataset && (N.roleType = M.dataset.roleType, N.index = M.dataset.index);
|
|
7576
7592
|
},
|
|
7577
|
-
onDragEnd: (
|
|
7593
|
+
onDragEnd: (y) => {
|
|
7578
7594
|
N.currentRow && (N.currentRow.classList.remove("is-dragover"), N.currentRow = null), N.index = null, N.roleType = null;
|
|
7579
7595
|
},
|
|
7580
|
-
onDragOver: (
|
|
7581
|
-
const
|
|
7582
|
-
|
|
7583
|
-
const G =
|
|
7596
|
+
onDragOver: (y) => {
|
|
7597
|
+
const M = y.currentTarget;
|
|
7598
|
+
y.relatedTarget;
|
|
7599
|
+
const G = F(M);
|
|
7584
7600
|
if (!G)
|
|
7585
7601
|
return;
|
|
7586
7602
|
const U = G.dataset && G.dataset.roleType;
|
|
7587
|
-
N.roleType === U && (
|
|
7603
|
+
N.roleType === U && (y.preventDefault(), N.currentRow && N.currentRow !== G && N.currentRow.classList.remove("is-dragover"), G.classList.add("is-dragover"), N.currentRow = G);
|
|
7588
7604
|
},
|
|
7589
|
-
onDragLeave: (
|
|
7590
|
-
|
|
7605
|
+
onDragLeave: (y) => {
|
|
7606
|
+
y.preventDefault(), N.currentRow && (N.currentRow.classList.remove("is-dragover"), N.currentRow = null);
|
|
7591
7607
|
},
|
|
7592
|
-
onDrop: (
|
|
7593
|
-
const
|
|
7608
|
+
onDrop: (y) => {
|
|
7609
|
+
const M = y.currentTarget, G = F(M);
|
|
7594
7610
|
if (!G)
|
|
7595
7611
|
return;
|
|
7596
7612
|
const U = G.dataset && G.dataset.roleType;
|
|
7597
7613
|
if (N.roleType !== U)
|
|
7598
7614
|
return;
|
|
7599
|
-
|
|
7615
|
+
y.preventDefault();
|
|
7600
7616
|
const ee = Number(N.index), te = Number(G.dataset.index);
|
|
7601
7617
|
if (ee !== te) {
|
|
7602
7618
|
if (ee < te) {
|
|
@@ -7609,17 +7625,17 @@ const Dc = /* @__PURE__ */ We(Ac, [["render", Rc]]), { componentName: ig, create
|
|
|
7609
7625
|
p(r.value), m();
|
|
7610
7626
|
}
|
|
7611
7627
|
},
|
|
7612
|
-
toLeftFixed: (
|
|
7613
|
-
const
|
|
7614
|
-
|
|
7628
|
+
toLeftFixed: (y) => {
|
|
7629
|
+
const M = r.value[y];
|
|
7630
|
+
M.fixed = "left", m();
|
|
7615
7631
|
},
|
|
7616
|
-
toRightFixed: (
|
|
7617
|
-
const
|
|
7618
|
-
|
|
7632
|
+
toRightFixed: (y) => {
|
|
7633
|
+
const M = r.value[y];
|
|
7634
|
+
M.fixed = "right", m();
|
|
7619
7635
|
},
|
|
7620
|
-
toUnFixed: (
|
|
7621
|
-
const
|
|
7622
|
-
|
|
7636
|
+
toUnFixed: (y) => {
|
|
7637
|
+
const M = r.value[y];
|
|
7638
|
+
M.fixed = void 0, m();
|
|
7623
7639
|
},
|
|
7624
7640
|
checkboxLabelStyle: g
|
|
7625
7641
|
};
|
|
@@ -7662,8 +7678,8 @@ function Jc(e, t, l, n, r, a) {
|
|
|
7662
7678
|
xe(e.$slots, "default")
|
|
7663
7679
|
]),
|
|
7664
7680
|
default: he(() => [
|
|
7665
|
-
|
|
7666
|
-
|
|
7681
|
+
ue("div", qc, [
|
|
7682
|
+
ue("div", Lc, [
|
|
7667
7683
|
de(o, {
|
|
7668
7684
|
modelValue: e.isCheckAll,
|
|
7669
7685
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.isCheckAll = m),
|
|
@@ -7686,7 +7702,7 @@ function Jc(e, t, l, n, r, a) {
|
|
|
7686
7702
|
_: 1
|
|
7687
7703
|
}, 8, ["onClick"])
|
|
7688
7704
|
]),
|
|
7689
|
-
|
|
7705
|
+
ue("div", Mc, [
|
|
7690
7706
|
de(h, {
|
|
7691
7707
|
modelValue: e.checkedValue,
|
|
7692
7708
|
"onUpdate:modelValue": t[16] || (t[16] = (m) => e.checkedValue = m),
|
|
@@ -7717,14 +7733,14 @@ function Jc(e, t, l, n, r, a) {
|
|
|
7717
7733
|
label: m.prop
|
|
7718
7734
|
}, {
|
|
7719
7735
|
default: he(() => [
|
|
7720
|
-
|
|
7736
|
+
ue("span", {
|
|
7721
7737
|
class: "checkbox-item__label",
|
|
7722
7738
|
style: Te(e.checkboxLabelStyle)
|
|
7723
7739
|
}, ve(m.label), 5)
|
|
7724
7740
|
]),
|
|
7725
7741
|
_: 2
|
|
7726
7742
|
}, 1032, ["label"]),
|
|
7727
|
-
|
|
7743
|
+
ue("div", jc, [
|
|
7728
7744
|
de(f, {
|
|
7729
7745
|
content: e.unFixedText,
|
|
7730
7746
|
placement: "top"
|
|
@@ -7784,14 +7800,14 @@ function Jc(e, t, l, n, r, a) {
|
|
|
7784
7800
|
label: m.prop
|
|
7785
7801
|
}, {
|
|
7786
7802
|
default: he(() => [
|
|
7787
|
-
|
|
7803
|
+
ue("span", {
|
|
7788
7804
|
class: "checkbox-item__label",
|
|
7789
7805
|
style: Te(e.checkboxLabelStyle)
|
|
7790
7806
|
}, ve(m.label), 5)
|
|
7791
7807
|
]),
|
|
7792
7808
|
_: 2
|
|
7793
7809
|
}, 1032, ["label"]),
|
|
7794
|
-
|
|
7810
|
+
ue("div", Yc, [
|
|
7795
7811
|
de(f, {
|
|
7796
7812
|
content: e.fixedLeftText,
|
|
7797
7813
|
placement: "top"
|
|
@@ -7852,14 +7868,14 @@ function Jc(e, t, l, n, r, a) {
|
|
|
7852
7868
|
label: m.prop
|
|
7853
7869
|
}, {
|
|
7854
7870
|
default: he(() => [
|
|
7855
|
-
|
|
7871
|
+
ue("span", {
|
|
7856
7872
|
class: "checkbox-item__label",
|
|
7857
7873
|
style: Te(e.checkboxLabelStyle)
|
|
7858
7874
|
}, ve(m.label), 5)
|
|
7859
7875
|
]),
|
|
7860
7876
|
_: 2
|
|
7861
7877
|
}, 1032, ["label"]),
|
|
7862
|
-
|
|
7878
|
+
ue("div", Zc, [
|
|
7863
7879
|
de(f, {
|
|
7864
7880
|
content: e.unFixedText,
|
|
7865
7881
|
placement: "top"
|
|
@@ -7935,7 +7951,7 @@ let Qc = class {
|
|
|
7935
7951
|
}
|
|
7936
7952
|
if (typeof l == "function")
|
|
7937
7953
|
return await Reflect.apply(l, null, [n, r, a, o, s]);
|
|
7938
|
-
const i =
|
|
7954
|
+
const i = Ge(this.proxy, t);
|
|
7939
7955
|
return i === null ? (console.error(`${t} component not found api function`), {
|
|
7940
7956
|
totalSize: 0,
|
|
7941
7957
|
page: []
|
|
@@ -7964,7 +7980,7 @@ class tf {
|
|
|
7964
7980
|
*/
|
|
7965
7981
|
async load(t) {
|
|
7966
7982
|
let l = null;
|
|
7967
|
-
const n =
|
|
7983
|
+
const n = Ge(this.proxy, "tableSetting");
|
|
7968
7984
|
return typeof n == "function" && (l = await Reflect.apply(n, null, ["load", t])), l;
|
|
7969
7985
|
}
|
|
7970
7986
|
/**
|
|
@@ -7973,7 +7989,7 @@ class tf {
|
|
|
7973
7989
|
* @param settings
|
|
7974
7990
|
*/
|
|
7975
7991
|
save(t, l) {
|
|
7976
|
-
const n =
|
|
7992
|
+
const n = Ge(this.proxy, "tableSetting");
|
|
7977
7993
|
typeof n == "function" && Reflect.apply(n, null, ["save", t, l]);
|
|
7978
7994
|
}
|
|
7979
7995
|
/**
|
|
@@ -7981,7 +7997,7 @@ class tf {
|
|
|
7981
7997
|
* @param id
|
|
7982
7998
|
*/
|
|
7983
7999
|
remove(t) {
|
|
7984
|
-
const l =
|
|
8000
|
+
const l = Ge(this.proxy, "tableSetting");
|
|
7985
8001
|
typeof l == "function" && Reflect.apply(l, null, ["remove", t]);
|
|
7986
8002
|
}
|
|
7987
8003
|
}
|
|
@@ -8207,7 +8223,7 @@ function af(e, t, l) {
|
|
|
8207
8223
|
],
|
|
8208
8224
|
// setup
|
|
8209
8225
|
setup(n, r) {
|
|
8210
|
-
const { locale: a } =
|
|
8226
|
+
const { locale: a } = Je(t), { emitEvent: o } = Ve(
|
|
8211
8227
|
{
|
|
8212
8228
|
componentName: e,
|
|
8213
8229
|
// 获取value
|
|
@@ -8218,18 +8234,18 @@ function af(e, t, l) {
|
|
|
8218
8234
|
}
|
|
8219
8235
|
},
|
|
8220
8236
|
n.prop ?? r.attrs.name
|
|
8221
|
-
), s = e, i =
|
|
8237
|
+
), s = e, i = b(() => ({
|
|
8222
8238
|
[s]: !0
|
|
8223
|
-
})), c =
|
|
8239
|
+
})), c = b(() => ({
|
|
8224
8240
|
[`${s}__setting`]: !0
|
|
8225
|
-
})), u =
|
|
8241
|
+
})), u = b(() => ({
|
|
8226
8242
|
[`${s}__footer`]: !0,
|
|
8227
8243
|
[`${s}__footer__${n.footerAlign}`]: !0
|
|
8228
|
-
})), f =
|
|
8244
|
+
})), f = b(() => ({
|
|
8229
8245
|
[`${s}__pagination`]: !0,
|
|
8230
8246
|
[`${s}__pagination__${n.paginationAlign}`]: !0
|
|
8231
8247
|
})), p = D(n.pageIndex);
|
|
8232
|
-
|
|
8248
|
+
ie(
|
|
8233
8249
|
() => n.pageIndex,
|
|
8234
8250
|
(I) => {
|
|
8235
8251
|
p.value = I;
|
|
@@ -8238,7 +8254,7 @@ function af(e, t, l) {
|
|
|
8238
8254
|
const S = (I) => {
|
|
8239
8255
|
p.value = I, o("page-index-change", I);
|
|
8240
8256
|
}, h = D(n.pageSize);
|
|
8241
|
-
|
|
8257
|
+
ie(
|
|
8242
8258
|
() => n.pageSize,
|
|
8243
8259
|
(I) => {
|
|
8244
8260
|
h.value = I;
|
|
@@ -8246,16 +8262,16 @@ function af(e, t, l) {
|
|
|
8246
8262
|
);
|
|
8247
8263
|
const d = (I) => {
|
|
8248
8264
|
h.value = I, o("page-size-change", I);
|
|
8249
|
-
}, m = An({}), g =
|
|
8265
|
+
}, m = An({}), g = b(() => ({ ...m.value, ...n.params ?? {}, ...n.baseParams ?? {} })), w = D(0), T = D(), P = ef();
|
|
8250
8266
|
let A = !0;
|
|
8251
8267
|
const E = () => Array.isArray(n.data) || typeof n.data == "function" ? !0 : le(n.autoLoad), C = je(
|
|
8252
|
-
|
|
8268
|
+
b(() => n.lazyLoad),
|
|
8253
8269
|
"lazyLoad",
|
|
8254
|
-
|
|
8270
|
+
Ue.Near,
|
|
8255
8271
|
(I) => le(I)
|
|
8256
|
-
), R = async (I, L,
|
|
8272
|
+
), R = async (I, L, z, J) => {
|
|
8257
8273
|
try {
|
|
8258
|
-
const fe = await P.load("table", I, L,
|
|
8274
|
+
const fe = await P.load("table", I, L, z, J, A, a.value);
|
|
8259
8275
|
w.value = fe.totalSize, T.value = fe.page;
|
|
8260
8276
|
} catch (fe) {
|
|
8261
8277
|
console.error("[FoxUI] Load Table Data Fail", fe), w.value = 0, T.value = [];
|
|
@@ -8264,25 +8280,25 @@ function af(e, t, l) {
|
|
|
8264
8280
|
o("loaded-data");
|
|
8265
8281
|
}, 250);
|
|
8266
8282
|
};
|
|
8267
|
-
|
|
8283
|
+
ie([p, h], ([I, L], [z, J]) => {
|
|
8268
8284
|
L !== J && (p.value = 1, I = 1), R(n.data, I, L, g.value);
|
|
8269
|
-
}),
|
|
8285
|
+
}), ie(
|
|
8270
8286
|
[() => n.data, g],
|
|
8271
|
-
([I, L], [
|
|
8272
|
-
E() && (I !==
|
|
8287
|
+
([I, L], [z, J]) => {
|
|
8288
|
+
E() && (I !== z && (A = !0), !(!Array.isArray(I) && bt(I, z) && bt(L, J)) && R(I, p.value, h.value, L));
|
|
8273
8289
|
},
|
|
8274
8290
|
{ deep: !0 }
|
|
8275
8291
|
);
|
|
8276
|
-
const N = (I = {}, L = !1) => new Promise((
|
|
8292
|
+
const N = (I = {}, L = !1) => new Promise((z) => {
|
|
8277
8293
|
m.value = me(I ?? {}), et(m), L || (p.value = n.pageIndex ?? 1), yt(async () => {
|
|
8278
|
-
await R(n.data, p.value, h.value, g.value),
|
|
8294
|
+
await R(n.data, p.value, h.value, g.value), z();
|
|
8279
8295
|
});
|
|
8280
|
-
}),
|
|
8296
|
+
}), F = () => {
|
|
8281
8297
|
w.value = 0, T.value = [];
|
|
8282
8298
|
};
|
|
8283
|
-
let
|
|
8299
|
+
let j = !1;
|
|
8284
8300
|
const Y = () => {
|
|
8285
|
-
|
|
8301
|
+
j || (j = !0, N());
|
|
8286
8302
|
};
|
|
8287
8303
|
E() && !C.value && N();
|
|
8288
8304
|
const v = D(null);
|
|
@@ -8291,76 +8307,76 @@ function af(e, t, l) {
|
|
|
8291
8307
|
});
|
|
8292
8308
|
const $ = (I, L) => {
|
|
8293
8309
|
v.value = I, o("current-change", I, L);
|
|
8294
|
-
}, x = (I, L,
|
|
8295
|
-
o("row-click", I, L,
|
|
8296
|
-
}, H = [],
|
|
8310
|
+
}, x = (I, L, z) => {
|
|
8311
|
+
o("row-click", I, L, z), le(n.rowClickSelectable) === !0 && q?.value.toggleRowSelection(I);
|
|
8312
|
+
}, H = [], k = (I, L) => {
|
|
8297
8313
|
if (o("expand-change", I, L), le(n.uniqueExpansion))
|
|
8298
8314
|
if (Array.isArray(L) && L.length == 0) {
|
|
8299
|
-
const
|
|
8300
|
-
H.splice(0,
|
|
8315
|
+
const z = H.length;
|
|
8316
|
+
H.splice(0, z);
|
|
8301
8317
|
} else {
|
|
8302
8318
|
H.forEach((J) => {
|
|
8303
8319
|
J !== I && q?.value.toggleRowExpansion(J, !1);
|
|
8304
8320
|
});
|
|
8305
|
-
const
|
|
8306
|
-
H.splice(0,
|
|
8321
|
+
const z = H.length;
|
|
8322
|
+
H.splice(0, z, I);
|
|
8307
8323
|
}
|
|
8308
|
-
},
|
|
8324
|
+
}, _ = r.attrs.id ?? n.prop ?? r.attrs.name, y = nf(), M = D([]);
|
|
8309
8325
|
let G = [];
|
|
8310
8326
|
const U = () => ({
|
|
8311
8327
|
srcColumnPropertyList: G.map((L) => ({ ...L })),
|
|
8312
|
-
columnPropertyList:
|
|
8328
|
+
columnPropertyList: M.value
|
|
8313
8329
|
}), ee = (I) => {
|
|
8314
|
-
|
|
8330
|
+
M.value = [...I], ce();
|
|
8315
8331
|
}, te = async () => {
|
|
8316
|
-
const I = await
|
|
8317
|
-
I && (
|
|
8332
|
+
const I = await y.load(_);
|
|
8333
|
+
I && (M.value = I);
|
|
8318
8334
|
}, ce = () => {
|
|
8319
|
-
|
|
8335
|
+
y.save(_, M.value);
|
|
8320
8336
|
}, ge = () => {
|
|
8321
|
-
|
|
8337
|
+
y.remove(_);
|
|
8322
8338
|
};
|
|
8323
8339
|
te();
|
|
8324
|
-
const O = (I) => I ? I.type ? I.type : I.label ? I.prop : "" : "", Q =
|
|
8340
|
+
const O = (I) => I ? I.type ? I.type : I.label ? I.prop : "" : "", Q = b(() => {
|
|
8325
8341
|
if (typeof r.slots.default == "function") {
|
|
8326
8342
|
const I = r.slots.default(), L = /* @__PURE__ */ new Map();
|
|
8327
|
-
if (G = [], I.forEach((
|
|
8328
|
-
const J =
|
|
8343
|
+
if (G = [], I.forEach((z) => {
|
|
8344
|
+
const J = z;
|
|
8329
8345
|
if (!J.props)
|
|
8330
8346
|
return;
|
|
8331
8347
|
const fe = O(J.props);
|
|
8332
|
-
L.set(fe,
|
|
8348
|
+
L.set(fe, z);
|
|
8333
8349
|
const re = {
|
|
8334
8350
|
label: "",
|
|
8335
8351
|
prop: ""
|
|
8336
8352
|
};
|
|
8337
8353
|
Object.assign(re, J.props), G.push(re);
|
|
8338
|
-
}),
|
|
8339
|
-
const
|
|
8340
|
-
for (let J of
|
|
8354
|
+
}), M.value.length === G.length) {
|
|
8355
|
+
const z = [];
|
|
8356
|
+
for (let J of M.value) {
|
|
8341
8357
|
const fe = O(J), re = L.get(fe);
|
|
8342
8358
|
if (!re)
|
|
8343
8359
|
return I;
|
|
8344
8360
|
if (J.visible === !1)
|
|
8345
8361
|
continue;
|
|
8346
8362
|
const Ke = re;
|
|
8347
|
-
Ke.props.fixed = J.fixed,
|
|
8363
|
+
Ke.props.fixed = J.fixed, z.push(Ke);
|
|
8348
8364
|
}
|
|
8349
|
-
return
|
|
8365
|
+
return z;
|
|
8350
8366
|
}
|
|
8351
8367
|
return I;
|
|
8352
8368
|
}
|
|
8353
8369
|
return [];
|
|
8354
|
-
}),
|
|
8355
|
-
const
|
|
8356
|
-
return
|
|
8357
|
-
},
|
|
8358
|
-
const
|
|
8370
|
+
}), K = An(/* @__PURE__ */ new Map()), X = ({ column: I, rowIndex: L }) => {
|
|
8371
|
+
const z = `${L}_${I.property}`;
|
|
8372
|
+
return K.value.get(z) ?? "";
|
|
8373
|
+
}, B = (I) => typeof I == "function" ? (L) => {
|
|
8374
|
+
const z = [];
|
|
8359
8375
|
let J = X(L);
|
|
8360
|
-
return J &&
|
|
8361
|
-
} : X, V = (I, L,
|
|
8376
|
+
return J && z.push(J), J = I(L), J && z.push(J), z.length === 0 ? "" : z.join(" ");
|
|
8377
|
+
} : X, V = (I, L, z) => {
|
|
8362
8378
|
const J = `${I}_${L}`;
|
|
8363
|
-
|
|
8379
|
+
z ? K.value.set(J, z) : K.value.delete(J), et(K);
|
|
8364
8380
|
}, q = D();
|
|
8365
8381
|
return Re({
|
|
8366
8382
|
// 清空selection
|
|
@@ -8374,8 +8390,8 @@ function af(e, t, l) {
|
|
|
8374
8390
|
toggleRowSelectionByProp: (I, L) => {
|
|
8375
8391
|
if (!T.value)
|
|
8376
8392
|
return;
|
|
8377
|
-
const
|
|
8378
|
-
|
|
8393
|
+
const z = Tn(T.value, I);
|
|
8394
|
+
z.length !== 0 && z.forEach((J) => {
|
|
8379
8395
|
q?.value.toggleRowSelection(J, L);
|
|
8380
8396
|
});
|
|
8381
8397
|
},
|
|
@@ -8391,8 +8407,8 @@ function af(e, t, l) {
|
|
|
8391
8407
|
toggleRowExpansionByProp: (I, L) => {
|
|
8392
8408
|
if (!T.value)
|
|
8393
8409
|
return;
|
|
8394
|
-
const
|
|
8395
|
-
|
|
8410
|
+
const z = Tn(T.value, I);
|
|
8411
|
+
z.length !== 0 && z.forEach((J) => {
|
|
8396
8412
|
q?.value.toggleRowExpansion(J, L);
|
|
8397
8413
|
});
|
|
8398
8414
|
},
|
|
@@ -8432,7 +8448,7 @@ function af(e, t, l) {
|
|
|
8432
8448
|
// 加载数据
|
|
8433
8449
|
loadData: N,
|
|
8434
8450
|
// 清空数据
|
|
8435
|
-
clearData:
|
|
8451
|
+
clearData: F,
|
|
8436
8452
|
// 获取数据
|
|
8437
8453
|
getData() {
|
|
8438
8454
|
return T.value;
|
|
@@ -8462,14 +8478,14 @@ function af(e, t, l) {
|
|
|
8462
8478
|
...r.attrs,
|
|
8463
8479
|
onCurrentChange: $,
|
|
8464
8480
|
onRowClick: x,
|
|
8465
|
-
onExpandChange:
|
|
8481
|
+
onExpandChange: k,
|
|
8466
8482
|
data: T.value,
|
|
8467
8483
|
ref: q,
|
|
8468
8484
|
class: i.value,
|
|
8469
|
-
"cell-class-name":
|
|
8470
|
-
},
|
|
8471
|
-
r.slots.default && (
|
|
8472
|
-
const J = [], fe = W(pr, L,
|
|
8485
|
+
"cell-class-name": B(n.cellClassName)
|
|
8486
|
+
}, z = {};
|
|
8487
|
+
r.slots.default && (z.default = () => Q.value), r.slots.append && (z.append = r.slots.append), r.slots.empty && (z.empty = r.slots.empty);
|
|
8488
|
+
const J = [], fe = W(pr, L, z);
|
|
8473
8489
|
J.push(fe);
|
|
8474
8490
|
let re = null;
|
|
8475
8491
|
if (typeof r.slots.pagination == "function")
|
|
@@ -8504,8 +8520,8 @@ function af(e, t, l) {
|
|
|
8504
8520
|
re && J.push(re);
|
|
8505
8521
|
const Ke = {
|
|
8506
8522
|
default: () => J
|
|
8507
|
-
},
|
|
8508
|
-
return
|
|
8523
|
+
}, Qe = { ...Me(n, Ol, ql, En), prop: `${n.prop}_item` };
|
|
8524
|
+
return Qe.contentClass = `${s}__wrap`, Qe.errorMarkClass = "is-table-error", C.value && E() && (Qe["appear-listen"] = !0, Qe.onAppear = Y), W(l, Qe, Ke);
|
|
8509
8525
|
};
|
|
8510
8526
|
}
|
|
8511
8527
|
};
|
|
@@ -8542,7 +8558,7 @@ let df = class {
|
|
|
8542
8558
|
return l;
|
|
8543
8559
|
if (typeof l == "function")
|
|
8544
8560
|
return await l(n);
|
|
8545
|
-
const r =
|
|
8561
|
+
const r = Ge(this.proxy, t);
|
|
8546
8562
|
return r === null ? (console.error(`${t} component not found api function`), []) : (xt(n) && ut(n) && (n = me(n)), await r(l, n));
|
|
8547
8563
|
}
|
|
8548
8564
|
};
|
|
@@ -8687,7 +8703,7 @@ function vf(e, t, l) {
|
|
|
8687
8703
|
emits: ["change", "update:modelValue"],
|
|
8688
8704
|
// setup
|
|
8689
8705
|
setup(n, r) {
|
|
8690
|
-
const a = He(
|
|
8706
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
8691
8707
|
{
|
|
8692
8708
|
componentName: e,
|
|
8693
8709
|
// 判断是否需要进行校验
|
|
@@ -8696,25 +8712,25 @@ function vf(e, t, l) {
|
|
|
8696
8712
|
}
|
|
8697
8713
|
},
|
|
8698
8714
|
n.prop ?? r.attrs.name
|
|
8699
|
-
), i = D(null), c = D(null), u = (C, R, N,
|
|
8700
|
-
const
|
|
8701
|
-
if (
|
|
8715
|
+
), i = D(null), c = D(null), u = (C, R, N, F = !0) => {
|
|
8716
|
+
const j = gf(n, C, R, N);
|
|
8717
|
+
if (j === null) {
|
|
8702
8718
|
if (c.value === null)
|
|
8703
8719
|
return;
|
|
8704
|
-
c.value = null, i.value = null,
|
|
8720
|
+
c.value = null, i.value = null, F && (s("update:modelValue", null), s("change", null));
|
|
8705
8721
|
return;
|
|
8706
8722
|
}
|
|
8707
|
-
if (!aa(n,
|
|
8723
|
+
if (!aa(n, j, c.value)) {
|
|
8708
8724
|
i.value = C;
|
|
8709
|
-
const v = me(
|
|
8725
|
+
const v = me(j);
|
|
8710
8726
|
c.value = v;
|
|
8711
8727
|
let $ = null;
|
|
8712
|
-
n.valueType === "text" ? $ = It(n, v) : n.valueType === "item" ? $ = v : $ = Ht(n, v),
|
|
8728
|
+
n.valueType === "text" ? $ = It(n, v) : n.valueType === "item" ? $ = v : $ = Ht(n, v), F && (s("update:modelValue", $), s("change", $));
|
|
8713
8729
|
}
|
|
8714
8730
|
}, f = D([]), p = je(
|
|
8715
|
-
|
|
8731
|
+
b(() => n.lazyLoad),
|
|
8716
8732
|
"lazyLoad",
|
|
8717
|
-
|
|
8733
|
+
Ue.Near,
|
|
8718
8734
|
(C) => le(C)
|
|
8719
8735
|
), S = hf(), h = async (C, R) => {
|
|
8720
8736
|
if (C) {
|
|
@@ -8727,7 +8743,7 @@ function vf(e, t, l) {
|
|
|
8727
8743
|
f.value = N;
|
|
8728
8744
|
}
|
|
8729
8745
|
};
|
|
8730
|
-
|
|
8746
|
+
ie(
|
|
8731
8747
|
[() => n.source, () => n.params],
|
|
8732
8748
|
async ([C, R]) => {
|
|
8733
8749
|
h(C, R);
|
|
@@ -8738,10 +8754,10 @@ function vf(e, t, l) {
|
|
|
8738
8754
|
const m = () => {
|
|
8739
8755
|
d || (d = !0, h(n.source, n.params));
|
|
8740
8756
|
};
|
|
8741
|
-
|
|
8757
|
+
ie([() => f.value, () => n.modelValue], ([C, R]) => {
|
|
8742
8758
|
u(R, n.valueType, C, !1);
|
|
8743
8759
|
});
|
|
8744
|
-
const g = e, w =
|
|
8760
|
+
const g = e, w = b(() => ({
|
|
8745
8761
|
[g]: !0,
|
|
8746
8762
|
[`is-${n.direction}`]: !0
|
|
8747
8763
|
})), T = (C) => {
|
|
@@ -8750,11 +8766,11 @@ function vf(e, t, l) {
|
|
|
8750
8766
|
let P = pe(n, "hintText"), A = pe(n, "hintVisible");
|
|
8751
8767
|
const E = (C, R) => {
|
|
8752
8768
|
const N = [];
|
|
8753
|
-
return C.forEach((
|
|
8754
|
-
const Y = Ht(n,
|
|
8755
|
-
let $ = ff(n,
|
|
8769
|
+
return C.forEach((F, j) => {
|
|
8770
|
+
const Y = Ht(n, F), v = It(n, F);
|
|
8771
|
+
let $ = ff(n, F);
|
|
8756
8772
|
a.value === !0 && ($ = a.value), o.value === !0 && ($ = o.value);
|
|
8757
|
-
const x = pf(n,
|
|
8773
|
+
const x = pf(n, F, j) ?? {}, H = `${Y}_${j}`, k = {
|
|
8758
8774
|
...x,
|
|
8759
8775
|
key: H,
|
|
8760
8776
|
label: Y,
|
|
@@ -8762,7 +8778,7 @@ function vf(e, t, l) {
|
|
|
8762
8778
|
size: n.size,
|
|
8763
8779
|
border: le(n.border)
|
|
8764
8780
|
};
|
|
8765
|
-
n.itemType === "button" ? N.push(W(cr,
|
|
8781
|
+
n.itemType === "button" ? N.push(W(cr, k, { default: () => [v] })) : typeof R == "function" ? N.push(W(In, k, { default: () => R(F) })) : N.push(W(In, k, { default: () => [v] }));
|
|
8766
8782
|
}), N;
|
|
8767
8783
|
};
|
|
8768
8784
|
return () => {
|
|
@@ -8774,10 +8790,10 @@ function vf(e, t, l) {
|
|
|
8774
8790
|
"text-color": n.textColor,
|
|
8775
8791
|
fill: n.fill,
|
|
8776
8792
|
onChange: T
|
|
8777
|
-
}, N = [],
|
|
8778
|
-
r.slots.options ?
|
|
8779
|
-
const
|
|
8780
|
-
N.push(
|
|
8793
|
+
}, N = [], F = {};
|
|
8794
|
+
r.slots.options ? F.default = r.slots.options : F.default = () => E(f.value, r.slots.text);
|
|
8795
|
+
const j = W(fr, R, F);
|
|
8796
|
+
N.push(j);
|
|
8781
8797
|
const Y = {
|
|
8782
8798
|
default: () => N
|
|
8783
8799
|
};
|
|
@@ -8825,7 +8841,7 @@ class $f {
|
|
|
8825
8841
|
return l;
|
|
8826
8842
|
if (typeof l == "function")
|
|
8827
8843
|
return await l(n);
|
|
8828
|
-
const r =
|
|
8844
|
+
const r = Ge(this.proxy, t);
|
|
8829
8845
|
return r === null ? (console.error(`${t} component not found api function`), []) : (xt(n) && ut(n) && (n = me(n)), await r(l, n));
|
|
8830
8846
|
}
|
|
8831
8847
|
}
|
|
@@ -8982,7 +8998,7 @@ function Af(e, t, l) {
|
|
|
8982
8998
|
emits: ["change", "update:modelValue"],
|
|
8983
8999
|
// setup
|
|
8984
9000
|
setup(n, r) {
|
|
8985
|
-
const a = He(
|
|
9001
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
8986
9002
|
{
|
|
8987
9003
|
componentName: e,
|
|
8988
9004
|
// 判断是否需要进行校验
|
|
@@ -8991,38 +9007,38 @@ function Af(e, t, l) {
|
|
|
8991
9007
|
}
|
|
8992
9008
|
},
|
|
8993
9009
|
n.prop ?? r.attrs.name
|
|
8994
|
-
), i = D([]), c = D([]), u = (C, R, N,
|
|
8995
|
-
const
|
|
8996
|
-
if (
|
|
9010
|
+
), i = D([]), c = D([]), u = (C, R, N, F = !0) => {
|
|
9011
|
+
const j = Ef(n, C, R, N);
|
|
9012
|
+
if (j === null) {
|
|
8997
9013
|
if (c.value === null || c.value.length === 0)
|
|
8998
9014
|
return;
|
|
8999
|
-
i.value = [], c.value = [],
|
|
9015
|
+
i.value = [], c.value = [], F && (s("update:modelValue", []), s("change", []));
|
|
9000
9016
|
return;
|
|
9001
9017
|
}
|
|
9002
9018
|
let Y = !0;
|
|
9003
|
-
if (
|
|
9019
|
+
if (j.length !== c.value.length)
|
|
9004
9020
|
Y = !1;
|
|
9005
9021
|
else
|
|
9006
|
-
for (let v = 0; v <
|
|
9007
|
-
const $ =
|
|
9022
|
+
for (let v = 0; v < j.length; v++) {
|
|
9023
|
+
const $ = j[v], x = c.value[v];
|
|
9008
9024
|
if (!oa(n, $, x)) {
|
|
9009
9025
|
Y = !1;
|
|
9010
9026
|
break;
|
|
9011
9027
|
}
|
|
9012
9028
|
}
|
|
9013
9029
|
if (!Y) {
|
|
9014
|
-
c.value =
|
|
9030
|
+
c.value = j;
|
|
9015
9031
|
let v = [], $ = [];
|
|
9016
|
-
|
|
9032
|
+
j.forEach((H) => {
|
|
9017
9033
|
v.push(Ct(n, H)), n.valueType === "text" ? $.push(Vt(n, H)) : n.valueType === "item" ? $.push(H) : $.push(Ct(n, H));
|
|
9018
9034
|
}), i.value = v;
|
|
9019
9035
|
const x = me($);
|
|
9020
|
-
|
|
9036
|
+
F && (s("update:modelValue", x), s("change", x));
|
|
9021
9037
|
}
|
|
9022
9038
|
}, f = D([]), p = je(
|
|
9023
|
-
|
|
9039
|
+
b(() => n.lazyLoad),
|
|
9024
9040
|
"lazyLoad",
|
|
9025
|
-
|
|
9041
|
+
Ue.Near,
|
|
9026
9042
|
(C) => le(C)
|
|
9027
9043
|
), S = Tf(), h = async (C, R) => {
|
|
9028
9044
|
if (C) {
|
|
@@ -9035,7 +9051,7 @@ function Af(e, t, l) {
|
|
|
9035
9051
|
f.value = N;
|
|
9036
9052
|
}
|
|
9037
9053
|
};
|
|
9038
|
-
|
|
9054
|
+
ie(
|
|
9039
9055
|
[() => n.source, () => n.params],
|
|
9040
9056
|
async ([C, R]) => {
|
|
9041
9057
|
h(C, R);
|
|
@@ -9046,10 +9062,10 @@ function Af(e, t, l) {
|
|
|
9046
9062
|
const m = () => {
|
|
9047
9063
|
d || (d = !0, h(n.source, n.params));
|
|
9048
9064
|
};
|
|
9049
|
-
|
|
9065
|
+
ie([() => f.value, () => n.modelValue], ([C, R]) => {
|
|
9050
9066
|
u(R, n.valueType, C, !1);
|
|
9051
9067
|
});
|
|
9052
|
-
const g = e, w =
|
|
9068
|
+
const g = e, w = b(() => ({
|
|
9053
9069
|
[g]: !0,
|
|
9054
9070
|
[`is-${n.direction}`]: !0
|
|
9055
9071
|
})), T = (C) => {
|
|
@@ -9058,11 +9074,11 @@ function Af(e, t, l) {
|
|
|
9058
9074
|
let P = pe(n, "hintText"), A = pe(n, "hintVisible");
|
|
9059
9075
|
const E = (C, R) => {
|
|
9060
9076
|
const N = [];
|
|
9061
|
-
return C.forEach((
|
|
9062
|
-
const Y = Ct(n,
|
|
9063
|
-
let $ = Sf(n,
|
|
9077
|
+
return C.forEach((F, j) => {
|
|
9078
|
+
const Y = Ct(n, F), v = Vt(n, F);
|
|
9079
|
+
let $ = Sf(n, F);
|
|
9064
9080
|
a.value === !0 && ($ = a.value), o.value === !0 && ($ = o.value);
|
|
9065
|
-
const x = Nf(n,
|
|
9081
|
+
const x = Nf(n, F, j) ?? {}, H = `${Y}_${j}`, k = {
|
|
9066
9082
|
...x,
|
|
9067
9083
|
key: H,
|
|
9068
9084
|
class: n.itemClass,
|
|
@@ -9071,7 +9087,7 @@ function Af(e, t, l) {
|
|
|
9071
9087
|
size: n.size,
|
|
9072
9088
|
border: le(n.border)
|
|
9073
9089
|
};
|
|
9074
|
-
n.itemType === "button" ? N.push(W(ar,
|
|
9090
|
+
n.itemType === "button" ? N.push(W(ar, k, { default: () => [v] })) : typeof R == "function" ? N.push(W(Mt, k, { default: () => R(F) })) : N.push(W(Mt, k, { default: () => [v] }));
|
|
9075
9091
|
}), N;
|
|
9076
9092
|
};
|
|
9077
9093
|
return () => {
|
|
@@ -9085,10 +9101,10 @@ function Af(e, t, l) {
|
|
|
9085
9101
|
max: qe(n.max),
|
|
9086
9102
|
min: qe(n.min),
|
|
9087
9103
|
onChange: T
|
|
9088
|
-
}, N = [],
|
|
9089
|
-
r.slots.options ?
|
|
9090
|
-
const
|
|
9091
|
-
N.push(
|
|
9104
|
+
}, N = [], F = {};
|
|
9105
|
+
r.slots.options ? F.default = r.slots.options : F.default = () => E(f.value, r.slots.text);
|
|
9106
|
+
const j = W(zn, R, F);
|
|
9107
|
+
N.push(j);
|
|
9092
9108
|
const Y = {
|
|
9093
9109
|
default: () => N
|
|
9094
9110
|
};
|
|
@@ -9126,7 +9142,7 @@ function Df(e, t, l) {
|
|
|
9126
9142
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input"],
|
|
9127
9143
|
// setup
|
|
9128
9144
|
setup(n, r) {
|
|
9129
|
-
const a = He(
|
|
9145
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
9130
9146
|
{
|
|
9131
9147
|
componentName: e,
|
|
9132
9148
|
// 判断是否需要进行校验
|
|
@@ -9135,7 +9151,7 @@ function Df(e, t, l) {
|
|
|
9135
9151
|
}
|
|
9136
9152
|
},
|
|
9137
9153
|
n.prop ?? r.attrs.name
|
|
9138
|
-
), i = pe(n, "modelValue", (d) => qe(d)), c = e, u =
|
|
9154
|
+
), i = pe(n, "modelValue", (d) => qe(d)), c = e, u = b(() => ({
|
|
9139
9155
|
[c]: !0
|
|
9140
9156
|
})), f = (d) => {
|
|
9141
9157
|
s("update:modelValue", d), s("change", d);
|
|
@@ -9167,7 +9183,7 @@ function Df(e, t, l) {
|
|
|
9167
9183
|
}
|
|
9168
9184
|
};
|
|
9169
9185
|
}
|
|
9170
|
-
const { componentName:
|
|
9186
|
+
const { componentName: Ff, create: kf, scope: Of } = ae("rate-item"), qf = kf(Df(Ff, Of, De)), Bl = {
|
|
9171
9187
|
// model value
|
|
9172
9188
|
modelValue: {
|
|
9173
9189
|
type: [Boolean, String, Number],
|
|
@@ -9189,7 +9205,7 @@ function Lf(e, t, l) {
|
|
|
9189
9205
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input"],
|
|
9190
9206
|
// setup
|
|
9191
9207
|
setup(n, r) {
|
|
9192
|
-
const a = He(
|
|
9208
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), { emitEvent: s } = Ve(
|
|
9193
9209
|
{
|
|
9194
9210
|
componentName: e,
|
|
9195
9211
|
// 判断是否需要进行校验
|
|
@@ -9198,7 +9214,7 @@ function Lf(e, t, l) {
|
|
|
9198
9214
|
}
|
|
9199
9215
|
},
|
|
9200
9216
|
n.prop ?? r.attrs.name
|
|
9201
|
-
), i = pe(n, "modelValue"), c = e, u =
|
|
9217
|
+
), i = pe(n, "modelValue"), c = e, u = b(() => ({
|
|
9202
9218
|
[c]: !0
|
|
9203
9219
|
})), f = (d) => {
|
|
9204
9220
|
s("update:modelValue", d), s("change", d);
|
|
@@ -9253,7 +9269,7 @@ function jf(e, t, l) {
|
|
|
9253
9269
|
emits: ["change", "update:modelValue", "blur", "focus", "clear", "input"],
|
|
9254
9270
|
// setup
|
|
9255
9271
|
setup(n, r) {
|
|
9256
|
-
const a = He(
|
|
9272
|
+
const a = He(b(() => n.disabled)), o = Be(b(() => n.readonly)), s = D(!1), { emitEvent: i } = Ve(
|
|
9257
9273
|
{
|
|
9258
9274
|
componentName: e,
|
|
9259
9275
|
// 判断是否需要进行校验
|
|
@@ -9262,7 +9278,7 @@ function jf(e, t, l) {
|
|
|
9262
9278
|
}
|
|
9263
9279
|
},
|
|
9264
9280
|
n.prop ?? r.attrs.name
|
|
9265
|
-
), c = pe(n, "modelValue"), u = e, f =
|
|
9281
|
+
), c = pe(n, "modelValue"), u = e, f = b(() => ({
|
|
9266
9282
|
[u]: !0
|
|
9267
9283
|
})), p = (A) => {
|
|
9268
9284
|
i("update:modelValue", A), i("change", A);
|
|
@@ -9307,17 +9323,17 @@ function jf(e, t, l) {
|
|
|
9307
9323
|
r.slots.option && (C.default = r.slots.option);
|
|
9308
9324
|
const R = [], N = W(xr, E, C);
|
|
9309
9325
|
R.push(N);
|
|
9310
|
-
const
|
|
9326
|
+
const F = {
|
|
9311
9327
|
default: () => R
|
|
9312
9328
|
};
|
|
9313
|
-
r.slots.default && (
|
|
9329
|
+
r.slots.default && (F.label = r.slots.default), r.slots.fixedTip && (F.fixedTip = r.slots.fixedTip);
|
|
9314
9330
|
const Y = {
|
|
9315
9331
|
...Me(n, Hl),
|
|
9316
9332
|
hintText: S.value,
|
|
9317
9333
|
hintVisible: h.value,
|
|
9318
9334
|
prop: `${n.prop}_item`
|
|
9319
9335
|
};
|
|
9320
|
-
return W(l, Y,
|
|
9336
|
+
return W(l, Y, F);
|
|
9321
9337
|
};
|
|
9322
9338
|
}
|
|
9323
9339
|
};
|
|
@@ -9413,25 +9429,25 @@ function Qf(e, t) {
|
|
|
9413
9429
|
},
|
|
9414
9430
|
// setup
|
|
9415
9431
|
setup(l, { slots: n }) {
|
|
9416
|
-
const r = e, a =
|
|
9432
|
+
const r = e, a = b(() => ({
|
|
9417
9433
|
[r]: !0
|
|
9418
|
-
})), o =
|
|
9434
|
+
})), o = b(() => l.icon ? {
|
|
9419
9435
|
[`${r}__icon`]: !0,
|
|
9420
9436
|
[`${r}__icon-${l.type}`]: !0
|
|
9421
9437
|
} : {
|
|
9422
9438
|
[`${r}__mark`]: !0,
|
|
9423
9439
|
[`${r}__mark-${l.type}`]: !0
|
|
9424
|
-
}), s =
|
|
9440
|
+
}), s = b(() => l.color ? l.icon ? {
|
|
9425
9441
|
color: l.color
|
|
9426
9442
|
} : {
|
|
9427
9443
|
background: l.color
|
|
9428
|
-
} : null), i =
|
|
9444
|
+
} : null), i = b(() => {
|
|
9429
9445
|
const u = {
|
|
9430
9446
|
[`${r}__text`]: !0,
|
|
9431
9447
|
[`${r}__text-${l.type}`]: !0
|
|
9432
9448
|
};
|
|
9433
9449
|
return l.textPosition === "left" ? u["is-left"] = !0 : u["is-right"] = !0, u;
|
|
9434
|
-
}), c =
|
|
9450
|
+
}), c = b(() => l.color ? {
|
|
9435
9451
|
color: l.color
|
|
9436
9452
|
} : null);
|
|
9437
9453
|
return () => {
|
|
@@ -9549,7 +9565,7 @@ function ad(e, t) {
|
|
|
9549
9565
|
},
|
|
9550
9566
|
// setup
|
|
9551
9567
|
setup(l, n) {
|
|
9552
|
-
const r = D(!0), a = D(null), o =
|
|
9568
|
+
const r = D(!0), a = D(null), o = b(() => {
|
|
9553
9569
|
const u = {
|
|
9554
9570
|
[`${e}`]: !0,
|
|
9555
9571
|
"is-truncated": l.truncated
|
|
@@ -9573,7 +9589,7 @@ function ad(e, t) {
|
|
|
9573
9589
|
s(u), u && window.ResizeObserver && (i = new window.ResizeObserver(() => {
|
|
9574
9590
|
s(u);
|
|
9575
9591
|
}), i.observe(u));
|
|
9576
|
-
}),
|
|
9592
|
+
}), Ze(() => {
|
|
9577
9593
|
i?.disconnect();
|
|
9578
9594
|
});
|
|
9579
9595
|
const c = (u, f) => {
|
|
@@ -9676,14 +9692,14 @@ function cd(e, t, l) {
|
|
|
9676
9692
|
emits: ["click", "update:modelValue"],
|
|
9677
9693
|
// setup
|
|
9678
9694
|
setup(n, { emit: r }) {
|
|
9679
|
-
const a =
|
|
9695
|
+
const a = b(() => {
|
|
9680
9696
|
const f = {
|
|
9681
9697
|
[`${e}`]: !0
|
|
9682
9698
|
};
|
|
9683
9699
|
return n.disabled ? f[`${e}__disabled`] = !0 : f[`${e}__${n.type}`] = !0, f;
|
|
9684
|
-
}), o = pe(n, "modelValue"), s =
|
|
9700
|
+
}), o = pe(n, "modelValue"), s = b(() => o.value ? n.expandText ?? "" : n.collapseText ?? ""), i = b(() => ({
|
|
9685
9701
|
[`${e}__text`]: !0
|
|
9686
|
-
})), c =
|
|
9702
|
+
})), c = b(() => ({
|
|
9687
9703
|
[`${e}__icon`]: !0,
|
|
9688
9704
|
"is-expand": !o.value,
|
|
9689
9705
|
"is-collapse": o.value
|
|
@@ -9792,7 +9808,7 @@ const { componentName: fd, create: dd, scope: hd } = ae("more-button"), gd = (e,
|
|
|
9792
9808
|
showTour: e.modelValue,
|
|
9793
9809
|
showPopup: !1,
|
|
9794
9810
|
active: 0
|
|
9795
|
-
}), r = D({}), a =
|
|
9811
|
+
}), r = D({}), a = b(() => `${l}`), o = b(() => {
|
|
9796
9812
|
const { offset: h, maskWidth: d, maskHeight: m } = e, { width: g, height: w, left: T, top: P } = r.value, A = e.steps[n.active].offset ?? h, E = [T + g / 2, P + w / 2], C = Number(d || g), R = Number(m || w);
|
|
9797
9813
|
return {
|
|
9798
9814
|
width: `${C + +A.left + A.right}px`,
|
|
@@ -9823,7 +9839,7 @@ const { componentName: fd, create: dd, scope: hd } = ae("more-button"), gd = (e,
|
|
|
9823
9839
|
};
|
|
9824
9840
|
return _e(() => {
|
|
9825
9841
|
S(e.modelValue, e.current);
|
|
9826
|
-
}),
|
|
9842
|
+
}), ie(
|
|
9827
9843
|
() => e.modelValue,
|
|
9828
9844
|
(h) => {
|
|
9829
9845
|
S(h);
|
|
@@ -9854,7 +9870,7 @@ function Nd(e, t, l, n, r, a) {
|
|
|
9854
9870
|
return Z(), ne("div", {
|
|
9855
9871
|
class: ye(e.classes)
|
|
9856
9872
|
}, [
|
|
9857
|
-
en(
|
|
9873
|
+
en(ue("div", {
|
|
9858
9874
|
class: "fox-tour__masked",
|
|
9859
9875
|
onClick: t[0] || (t[0] = (...c) => e.handleClickMask && e.handleClickMask(...c))
|
|
9860
9876
|
}, null, 512), [
|
|
@@ -9883,16 +9899,16 @@ function Nd(e, t, l, n, r, a) {
|
|
|
9883
9899
|
xe(e.$slots, "default", {}, () => [
|
|
9884
9900
|
e.type == "step" ? (Z(), ne("div", bd, [
|
|
9885
9901
|
e.showTitleBar ? (Z(), ne("div", xd, [
|
|
9886
|
-
|
|
9902
|
+
ue("div", {
|
|
9887
9903
|
onClick: t[1] || (t[1] = (...f) => e.close && e.close(...f))
|
|
9888
9904
|
}, [
|
|
9889
9905
|
de(o, { class: "fox-tour__content-top-close" })
|
|
9890
9906
|
])
|
|
9891
9907
|
])) : se("", !0),
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9908
|
+
ue("div", wd, ve(c.content), 1),
|
|
9909
|
+
ue("div", Sd, [
|
|
9910
|
+
ue("div", $d, ve(e.active + 1) + "/" + ve(e.steps.length), 1),
|
|
9911
|
+
ue("div", Td, [
|
|
9896
9912
|
xe(e.$slots, "prev-step", {}, () => [
|
|
9897
9913
|
e.active != 0 && e.showPrevStep ? (Z(), Se(s, {
|
|
9898
9914
|
key: 0,
|
|
@@ -9936,7 +9952,7 @@ function Nd(e, t, l, n, r, a) {
|
|
|
9936
9952
|
])
|
|
9937
9953
|
])) : se("", !0),
|
|
9938
9954
|
e.type == "tile" ? (Z(), ne("div", Ed, [
|
|
9939
|
-
|
|
9955
|
+
ue("div", Cd, ve(c.content), 1)
|
|
9940
9956
|
])) : se("", !0)
|
|
9941
9957
|
])
|
|
9942
9958
|
]),
|
|
@@ -9945,7 +9961,7 @@ function Nd(e, t, l, n, r, a) {
|
|
|
9945
9961
|
]))), 128))
|
|
9946
9962
|
], 2);
|
|
9947
9963
|
}
|
|
9948
|
-
const Ad = /* @__PURE__ */ We(yd, [["render", Nd]]),
|
|
9964
|
+
const Ad = /* @__PURE__ */ We(yd, [["render", Nd]]), Fe = (e) => typeof e == "number" ? `${e}px` : /^d+(\.?d+)$/.test(e) ? `${e}px` : e, dt = (e) => e == null, jl = 10;
|
|
9949
9965
|
function Id(e, t) {
|
|
9950
9966
|
return e > t && e > jl ? "horizontal" : t > e && t > jl ? "vertical" : "";
|
|
9951
9967
|
}
|
|
@@ -9998,7 +10014,7 @@ function Rd(e) {
|
|
|
9998
10014
|
function Dd(e, t) {
|
|
9999
10015
|
(typeof e.cancelable != "boolean" || e.cancelable) && e.preventDefault(), t && Rd(e);
|
|
10000
10016
|
}
|
|
10001
|
-
class
|
|
10017
|
+
class Fd {
|
|
10002
10018
|
/**
|
|
10003
10019
|
* 开始move hook函数
|
|
10004
10020
|
*/
|
|
@@ -10065,7 +10081,7 @@ class kd {
|
|
|
10065
10081
|
}
|
|
10066
10082
|
}
|
|
10067
10083
|
function Kl(e, t) {
|
|
10068
|
-
return new
|
|
10084
|
+
return new Fd(e, t);
|
|
10069
10085
|
}
|
|
10070
10086
|
var zl;
|
|
10071
10087
|
const jn = typeof window < "u";
|
|
@@ -10074,7 +10090,7 @@ let St = [];
|
|
|
10074
10090
|
const Wl = (e) => {
|
|
10075
10091
|
const t = e;
|
|
10076
10092
|
t.key === "Escape" && St.forEach((l) => l(t));
|
|
10077
|
-
},
|
|
10093
|
+
}, kd = (e) => {
|
|
10078
10094
|
_e(() => {
|
|
10079
10095
|
St.length === 0 && document.addEventListener("keydown", Wl), jn && St.push(e);
|
|
10080
10096
|
}), jt(() => {
|
|
@@ -10193,7 +10209,7 @@ const Hd = () => {
|
|
|
10193
10209
|
const n = D();
|
|
10194
10210
|
let r, a;
|
|
10195
10211
|
const { focusReason: o } = zd();
|
|
10196
|
-
|
|
10212
|
+
kd((d) => {
|
|
10197
10213
|
le(e.trapped) && !s.paused && l("release-requested", d);
|
|
10198
10214
|
});
|
|
10199
10215
|
const s = {
|
|
@@ -10209,18 +10225,18 @@ const Hd = () => {
|
|
|
10209
10225
|
return;
|
|
10210
10226
|
const { key: m, altKey: g, ctrlKey: w, metaKey: T, currentTarget: P, shiftKey: A } = d, { loop: E } = e, C = m === "Tab" && !g && !w && !T, R = document.activeElement;
|
|
10211
10227
|
if (C && R) {
|
|
10212
|
-
const N = P, [
|
|
10213
|
-
if (
|
|
10214
|
-
if (!A && R ===
|
|
10228
|
+
const N = P, [F, j] = _d(N);
|
|
10229
|
+
if (F && j) {
|
|
10230
|
+
if (!A && R === j) {
|
|
10215
10231
|
const v = Zt({
|
|
10216
10232
|
focusReason: o.value
|
|
10217
10233
|
});
|
|
10218
|
-
l("focusout-prevented", v), v.defaultPrevented || (d.preventDefault(), E && rt(
|
|
10219
|
-
} else if (A && [
|
|
10234
|
+
l("focusout-prevented", v), v.defaultPrevented || (d.preventDefault(), E && rt(F, !0));
|
|
10235
|
+
} else if (A && [F, N].includes(R)) {
|
|
10220
10236
|
const v = Zt({
|
|
10221
10237
|
focusReason: o.value
|
|
10222
10238
|
});
|
|
10223
|
-
l("focusout-prevented", v), v.defaultPrevented || (d.preventDefault(), E && rt(
|
|
10239
|
+
l("focusout-prevented", v), v.defaultPrevented || (d.preventDefault(), E && rt(j, !0));
|
|
10224
10240
|
}
|
|
10225
10241
|
} else if (R === N) {
|
|
10226
10242
|
const v = Zt({
|
|
@@ -10233,13 +10249,13 @@ const Hd = () => {
|
|
|
10233
10249
|
Oe(Ld, {
|
|
10234
10250
|
focusTrapRef: n,
|
|
10235
10251
|
onKeydown: i
|
|
10236
|
-
}),
|
|
10252
|
+
}), ie(
|
|
10237
10253
|
() => e.focusTrapEl,
|
|
10238
10254
|
(d) => {
|
|
10239
10255
|
d && (n.value = d);
|
|
10240
10256
|
},
|
|
10241
10257
|
{ immediate: !0 }
|
|
10242
|
-
),
|
|
10258
|
+
), ie([n], ([d], [m]) => {
|
|
10243
10259
|
d && (d.addEventListener("keydown", i), d.addEventListener("focusin", f), d.addEventListener("focusout", p)), m && (m.removeEventListener("keydown", i), m.removeEventListener("focusin", f), m.removeEventListener("focusout", p));
|
|
10244
10260
|
});
|
|
10245
10261
|
const c = (d) => {
|
|
@@ -10297,7 +10313,7 @@ const Hd = () => {
|
|
|
10297
10313
|
}
|
|
10298
10314
|
}
|
|
10299
10315
|
return _e(() => {
|
|
10300
|
-
le(e.trapped) && S(),
|
|
10316
|
+
le(e.trapped) && S(), ie(
|
|
10301
10317
|
() => e.trapped,
|
|
10302
10318
|
(d) => {
|
|
10303
10319
|
le(d) ? S() : h();
|
|
@@ -10450,68 +10466,68 @@ const Hd = () => {
|
|
|
10450
10466
|
emits: ["update:modelValue", "update:collapse"],
|
|
10451
10467
|
// steup hook
|
|
10452
10468
|
setup(e, { emit: t }) {
|
|
10453
|
-
const l = Ud, n = D(e.modelValue), r =
|
|
10454
|
-
|
|
10469
|
+
const l = Ud, n = D(e.modelValue), r = b(() => !e.teleport);
|
|
10470
|
+
ie(
|
|
10455
10471
|
() => e.modelValue,
|
|
10456
10472
|
(V) => {
|
|
10457
10473
|
n.value = V;
|
|
10458
10474
|
}
|
|
10459
10475
|
);
|
|
10460
|
-
const a =
|
|
10476
|
+
const a = b(() => n.value === !1 ? !1 : !C.value), o = D(e.left), s = D(e.top), i = D(e.right), c = D(e.bottom), u = b(() => {
|
|
10461
10477
|
const V = ["fox-floating-window"];
|
|
10462
10478
|
return e.customClass && V.push(e.customClass), V;
|
|
10463
|
-
}), f =
|
|
10479
|
+
}), f = b(() => {
|
|
10464
10480
|
const V = {};
|
|
10465
|
-
return dt(o.value) ? V.left = "auto" : V.left =
|
|
10466
|
-
}), p =
|
|
10481
|
+
return dt(o.value) ? V.left = "auto" : V.left = Fe(o.value), dt(s.value) ? V.top = "auto" : V.top = Fe(s.value), dt(i.value) ? V.right = "auto" : V.right = Fe(i.value), dt(c.value) ? V.bottom = "auto" : V.bottom = Fe(c.value), dt(e.zIndex) || (V["z-index"] = Fe(e.zIndex)), dt(A.value) || (V.height = A.value), dt(E.value) || (V.width = E.value), V;
|
|
10482
|
+
}), p = b(() => e.closeIcon ?? Sr), S = b(() => e.collapseIcon ?? un), h = b(() => e.collapseText ?? ""), d = b(() => e.collapsePosition === "left" ? e.expandIcon ?? Ho : e.expandIcon ?? wr), m = b(() => e.expandText ?? e.title ?? "展开"), g = b(() => ({
|
|
10467
10483
|
[`${l}__collapse-text`]: !0
|
|
10468
|
-
})), w =
|
|
10484
|
+
})), w = b(() => ({
|
|
10469
10485
|
[`${l}__collapse-icon`]: !0,
|
|
10470
10486
|
"is-expand": !C.value,
|
|
10471
10487
|
"is-collapse": C.value
|
|
10472
|
-
})), T = D(), P = D(), A =
|
|
10488
|
+
})), T = D(), P = D(), A = b(() => Fe(e.height) || ""), E = b(() => Fe(e.width) || ""), C = D(le(e.collapse)), R = (V, q = !0) => {
|
|
10473
10489
|
C.value !== V && (C.value = V, V ? G() : U(), t("update:collapse", V));
|
|
10474
10490
|
};
|
|
10475
|
-
|
|
10491
|
+
ie(
|
|
10476
10492
|
() => e.collapse,
|
|
10477
10493
|
(V) => {
|
|
10478
10494
|
R(V);
|
|
10479
10495
|
}
|
|
10480
10496
|
);
|
|
10481
10497
|
const N = () => {
|
|
10482
|
-
|
|
10483
|
-
},
|
|
10498
|
+
F();
|
|
10499
|
+
}, F = (V) => {
|
|
10484
10500
|
V = V ?? !C.value, R(V);
|
|
10485
10501
|
};
|
|
10486
10502
|
Oe(Zd, !0);
|
|
10487
|
-
const
|
|
10503
|
+
const j = {
|
|
10488
10504
|
setCollapse: R,
|
|
10489
10505
|
setFixedNavVisible: (V) => {
|
|
10490
|
-
|
|
10506
|
+
_.value = V;
|
|
10491
10507
|
}
|
|
10492
10508
|
};
|
|
10493
|
-
Oe(Jd,
|
|
10509
|
+
Oe(Jd, j);
|
|
10494
10510
|
const Y = () => {
|
|
10495
|
-
typeof
|
|
10511
|
+
typeof j.beforeClose == "function" ? j.beforeClose(() => {
|
|
10496
10512
|
n.value = !1;
|
|
10497
10513
|
}) : n.value = !1;
|
|
10498
|
-
}, v = D(null), $ =
|
|
10514
|
+
}, v = D(null), $ = b(() => !e.fixedNavTeleport), x = b(() => {
|
|
10499
10515
|
const V = ["fox-floating-window__fixednav"];
|
|
10500
10516
|
return e.expandClass && V.push(e.expandClass), e.collapsePosition === "left" ? V.push("is-left") : e.collapsePosition === "right" && V.push("is-right"), V;
|
|
10501
|
-
}), H = D(""),
|
|
10517
|
+
}), H = D(""), k = b(() => {
|
|
10502
10518
|
const V = {};
|
|
10503
10519
|
return H.value ? V.top = H.value : e.collapseTop && (V.top = e.collapseTop), V;
|
|
10504
|
-
}),
|
|
10505
|
-
let
|
|
10506
|
-
const
|
|
10507
|
-
typeof
|
|
10520
|
+
}), _ = D(C.value);
|
|
10521
|
+
let y = null;
|
|
10522
|
+
const M = () => {
|
|
10523
|
+
typeof y == "function" && (y(), y = null);
|
|
10508
10524
|
}, G = () => {
|
|
10509
|
-
v.value && v.value.classList.add("slide-in"),
|
|
10525
|
+
v.value && v.value.classList.add("slide-in"), _.value = !0, y = () => {
|
|
10510
10526
|
v.value && v.value.classList.remove("slide-in");
|
|
10511
10527
|
};
|
|
10512
10528
|
}, U = () => {
|
|
10513
|
-
v.value && v.value.classList.add("slide-out"),
|
|
10514
|
-
v.value && v.value.classList.remove("slide-out"),
|
|
10529
|
+
v.value && v.value.classList.add("slide-out"), y = () => {
|
|
10530
|
+
v.value && v.value.classList.remove("slide-out"), _.value = !1;
|
|
10515
10531
|
};
|
|
10516
10532
|
}, ee = () => {
|
|
10517
10533
|
o.value = null, s.value = null, i.value = null, c.value = null;
|
|
@@ -10535,8 +10551,8 @@ const Hd = () => {
|
|
|
10535
10551
|
if (!T.value)
|
|
10536
10552
|
return;
|
|
10537
10553
|
const q = T.value;
|
|
10538
|
-
ee(), e.origin === "left-top" ? (o.value = te.x + V.x, s.value = te.y + V.y, q.style.left =
|
|
10539
|
-
}), Q = { x: 0, y: 0 },
|
|
10554
|
+
ee(), e.origin === "left-top" ? (o.value = te.x + V.x, s.value = te.y + V.y, q.style.left = Fe(o.value), q.style.top = Fe(s.value)) : e.origin === "left-bottom" ? (o.value = te.x + V.x, c.value = te.y - V.y, q.style.left = Fe(o.value), q.style.bottom = Fe(c.value)) : e.origin === "right-bottom" ? (i.value = te.x - V.x, c.value = te.y - V.y, q.style.right = Fe(i.value), q.style.bottom = Fe(c.value)) : (i.value = te.x - V.x, s.value = te.y + V.y, q.style.right = Fe(i.value), q.style.top = Fe(s.value));
|
|
10555
|
+
}), Q = { x: 0, y: 0 }, B = Kl((V) => {
|
|
10540
10556
|
v.value && (Q.x = v.value.offsetLeft, Q.y = v.value.offsetTop);
|
|
10541
10557
|
}, (V) => {
|
|
10542
10558
|
if (!v.value)
|
|
@@ -10545,9 +10561,9 @@ const Hd = () => {
|
|
|
10545
10561
|
H.value = `${q}px`;
|
|
10546
10562
|
});
|
|
10547
10563
|
return _e(() => {
|
|
10548
|
-
e.draggable && P.value && T.value && O.open(P.value), e.collapse === !0 && R(e.collapse, !1), v.value &&
|
|
10564
|
+
e.draggable && P.value && T.value && O.open(P.value), e.collapse === !0 && R(e.collapse, !1), v.value && B.open(v.value);
|
|
10549
10565
|
}), jt(() => {
|
|
10550
|
-
e.draggable && P.value && O.close(), v.value &&
|
|
10566
|
+
e.draggable && P.value && O.close(), v.value && B.close();
|
|
10551
10567
|
}), {
|
|
10552
10568
|
classes: u,
|
|
10553
10569
|
styles: f,
|
|
@@ -10563,11 +10579,11 @@ const Hd = () => {
|
|
|
10563
10579
|
collapseIconClasses: w,
|
|
10564
10580
|
expandIcon: d,
|
|
10565
10581
|
expandText: m,
|
|
10566
|
-
isShowFixedNav:
|
|
10582
|
+
isShowFixedNav: _,
|
|
10567
10583
|
fixedNavRef: v,
|
|
10568
10584
|
fixedNavClasses: x,
|
|
10569
|
-
fixedNavStyles:
|
|
10570
|
-
onAnimationEnd:
|
|
10585
|
+
fixedNavStyles: k,
|
|
10586
|
+
onAnimationEnd: M,
|
|
10571
10587
|
teleportDisabled: r,
|
|
10572
10588
|
fixedNavTeleportDisabled: $
|
|
10573
10589
|
};
|
|
@@ -10585,7 +10601,7 @@ function oh(e, t, l, n, r, a) {
|
|
|
10585
10601
|
}, [
|
|
10586
10602
|
de(Kn, { name: "fox-floating-window-fade" }, {
|
|
10587
10603
|
default: he(() => [
|
|
10588
|
-
en(
|
|
10604
|
+
en(ue("div", {
|
|
10589
10605
|
ref: "dialogRef",
|
|
10590
10606
|
class: ye(e.classes),
|
|
10591
10607
|
style: Te(e.styles),
|
|
@@ -10599,16 +10615,16 @@ function oh(e, t, l, n, r, a) {
|
|
|
10599
10615
|
"focus-start-el": "container"
|
|
10600
10616
|
}, {
|
|
10601
10617
|
default: he(() => [
|
|
10602
|
-
|
|
10618
|
+
ue("div", th, [
|
|
10603
10619
|
xe(e.$slots, "header", {}, () => [
|
|
10604
|
-
|
|
10605
|
-
|
|
10620
|
+
ue("span", nh, ve(e.title), 1),
|
|
10621
|
+
ue("div", lh, [
|
|
10606
10622
|
e.showCollapse ? (Z(), ne("div", {
|
|
10607
10623
|
key: 0,
|
|
10608
10624
|
class: "fox-floating-window__collapse",
|
|
10609
10625
|
onClick: t[0] || (t[0] = (...i) => e.onClickToggle && e.onClickToggle(...i))
|
|
10610
10626
|
}, [
|
|
10611
|
-
|
|
10627
|
+
ue("span", {
|
|
10612
10628
|
class: ye(e.collapseTextClasses)
|
|
10613
10629
|
}, ve(e.collapseText), 3),
|
|
10614
10630
|
de(o, {
|
|
@@ -10633,7 +10649,7 @@ function oh(e, t, l, n, r, a) {
|
|
|
10633
10649
|
])
|
|
10634
10650
|
])
|
|
10635
10651
|
], 512),
|
|
10636
|
-
|
|
10652
|
+
ue("div", rh, [
|
|
10637
10653
|
xe(e.$slots, "default")
|
|
10638
10654
|
])
|
|
10639
10655
|
]),
|
|
@@ -10650,13 +10666,13 @@ function oh(e, t, l, n, r, a) {
|
|
|
10650
10666
|
to: e.fixedNavTeleport,
|
|
10651
10667
|
disabled: e.fixedNavTeleportDisabled
|
|
10652
10668
|
}, [
|
|
10653
|
-
en(
|
|
10669
|
+
en(ue("div", {
|
|
10654
10670
|
ref: "fixedNavRef",
|
|
10655
10671
|
class: ye(e.fixedNavClasses),
|
|
10656
10672
|
style: Te(e.fixedNavStyles),
|
|
10657
10673
|
onAnimationend: t[2] || (t[2] = (...i) => e.onAnimationEnd && e.onAnimationEnd(...i))
|
|
10658
10674
|
}, [
|
|
10659
|
-
|
|
10675
|
+
ue("div", {
|
|
10660
10676
|
class: "fox-floating-window__fixednav__inner",
|
|
10661
10677
|
onClick: t[1] || (t[1] = (...i) => e.onClickToggle && e.onClickToggle(...i))
|
|
10662
10678
|
}, [
|
|
@@ -10666,7 +10682,7 @@ function oh(e, t, l, n, r, a) {
|
|
|
10666
10682
|
]),
|
|
10667
10683
|
_: 1
|
|
10668
10684
|
}),
|
|
10669
|
-
|
|
10685
|
+
ue("div", ah, ve(e.expandText), 1)
|
|
10670
10686
|
])
|
|
10671
10687
|
], 38), [
|
|
10672
10688
|
[tn, e.isShowFixedNav]
|
|
@@ -10809,7 +10825,7 @@ function dh(e, t) {
|
|
|
10809
10825
|
r.set(m, d), u?.observe(m);
|
|
10810
10826
|
}), a.clear();
|
|
10811
10827
|
};
|
|
10812
|
-
|
|
10828
|
+
ie(
|
|
10813
10829
|
[() => l.root, () => l.disabled],
|
|
10814
10830
|
([p, S]) => {
|
|
10815
10831
|
if (S || !p || u)
|
|
@@ -10818,7 +10834,7 @@ function dh(e, t) {
|
|
|
10818
10834
|
typeof p == "string" ? h = document.querySelector(p) : h = p, h && f(h, l.rootMargin, l.threshold);
|
|
10819
10835
|
},
|
|
10820
10836
|
{ immediate: !0 }
|
|
10821
|
-
),
|
|
10837
|
+
), Ze(() => {
|
|
10822
10838
|
u && (u.disconnect(), u = null);
|
|
10823
10839
|
});
|
|
10824
10840
|
}
|
|
@@ -10866,9 +10882,9 @@ export {
|
|
|
10866
10882
|
uc as CascaderItem,
|
|
10867
10883
|
Rf as CheckboxItem,
|
|
10868
10884
|
li as Content,
|
|
10869
|
-
|
|
10885
|
+
kt as DataItemsKey,
|
|
10870
10886
|
Du as DateItem,
|
|
10871
|
-
|
|
10887
|
+
Ye as DateUtils,
|
|
10872
10888
|
Jf as DialogItem,
|
|
10873
10889
|
el as Domain,
|
|
10874
10890
|
ze as DomainKey,
|
|
@@ -10881,8 +10897,8 @@ export {
|
|
|
10881
10897
|
Pg as FoxAutoResizer,
|
|
10882
10898
|
Rg as FoxAutocomplete,
|
|
10883
10899
|
Dg as FoxAvatar,
|
|
10884
|
-
|
|
10885
|
-
|
|
10900
|
+
Fg as FoxBacktop,
|
|
10901
|
+
kg as FoxBadge,
|
|
10886
10902
|
Og as FoxBreadcrumb,
|
|
10887
10903
|
qg as FoxBreadcrumbItem,
|
|
10888
10904
|
Lg as FoxButton,
|
|
@@ -10935,8 +10951,8 @@ export {
|
|
|
10935
10951
|
Pm as FoxPopconfirm,
|
|
10936
10952
|
Rm as FoxPopover,
|
|
10937
10953
|
Dm as FoxPopper,
|
|
10938
|
-
|
|
10939
|
-
|
|
10954
|
+
Fm as FoxProgress,
|
|
10955
|
+
km as FoxRadio,
|
|
10940
10956
|
Om as FoxRadioButton,
|
|
10941
10957
|
qm as FoxRadioGroup,
|
|
10942
10958
|
Lm as FoxRate,
|
|
@@ -10981,7 +10997,7 @@ export {
|
|
|
10981
10997
|
md as MoreButton,
|
|
10982
10998
|
Os as Page,
|
|
10983
10999
|
jr as Price,
|
|
10984
|
-
|
|
11000
|
+
Ue as PriorityPolicy,
|
|
10985
11001
|
wf as RadioItem,
|
|
10986
11002
|
qf as RateItem,
|
|
10987
11003
|
gh as RollingProvider,
|
|
@@ -11025,14 +11041,14 @@ export {
|
|
|
11025
11041
|
Oh as floatData,
|
|
11026
11042
|
fs as getGlobalValidateCheckEvents,
|
|
11027
11043
|
ds as getGlobalValidateResetEvents,
|
|
11028
|
-
|
|
11044
|
+
kn as getPageContentAreaHeight,
|
|
11029
11045
|
On as getPageContentAreaWidth,
|
|
11030
11046
|
an as getPageFooterAreaHeight,
|
|
11031
11047
|
rn as getPageHeaderAreaHeight,
|
|
11032
11048
|
Lt as getRootDomain,
|
|
11033
11049
|
Jo as hasSymbol,
|
|
11034
11050
|
us as includeProps,
|
|
11035
|
-
|
|
11051
|
+
Fh as indexOf,
|
|
11036
11052
|
ys as installRules,
|
|
11037
11053
|
ss as integerLength,
|
|
11038
11054
|
Th as isArray,
|
|
@@ -11057,7 +11073,7 @@ export {
|
|
|
11057
11073
|
Yh as isSubPage,
|
|
11058
11074
|
Ah as isSymbol,
|
|
11059
11075
|
ts as isWindow,
|
|
11060
|
-
|
|
11076
|
+
kh as lastIndexOf,
|
|
11061
11077
|
Rh as makeArray,
|
|
11062
11078
|
rs as merge,
|
|
11063
11079
|
Yo as multiply,
|
|
@@ -11083,7 +11099,7 @@ export {
|
|
|
11083
11099
|
Zn as toTypeString,
|
|
11084
11100
|
pe as toValue,
|
|
11085
11101
|
Vr as tryTimes,
|
|
11086
|
-
|
|
11102
|
+
Fn as typeOf,
|
|
11087
11103
|
Uo as unNumberFormat,
|
|
11088
11104
|
vl as updatePageState,
|
|
11089
11105
|
Wt as useBroadcast,
|