@fox-js/foxui-pc 4.0.1-104 → 4.0.1-105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +229 -231
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ElAffix as _g, ElAlert as Lg, ElAside as Mg, ElAutoResizer as Bg, ElAut
|
|
|
5
5
|
import { ArrowLeft as Ca, ArrowUp as fn, Download as Ea, RefreshLeft as Na, Setting as zo, Close as Ia, ArrowRight as Ko } from "@element-plus/icons-vue";
|
|
6
6
|
import { useFoxI18n as tt } from "@fox-js/i18n";
|
|
7
7
|
/*!
|
|
8
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
8
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Feb 29 2024 00:08:19 GMT+0800 (中国标准时间)
|
|
9
9
|
*/
|
|
10
10
|
const Yt = window, Wo = typeof window < "u";
|
|
11
11
|
function Yo() {
|
|
@@ -1911,9 +1911,7 @@ function Ns(e = 0, t = 0) {
|
|
|
1911
1911
|
rootHeight: -1,
|
|
1912
1912
|
pageLayout: {
|
|
1913
1913
|
width: "100%",
|
|
1914
|
-
height: "100%"
|
|
1915
|
-
headerHeight: 44,
|
|
1916
|
-
footerHeight: 44
|
|
1914
|
+
height: "100%"
|
|
1917
1915
|
}
|
|
1918
1916
|
};
|
|
1919
1917
|
}
|
|
@@ -2760,7 +2758,7 @@ const Ls = (e, t, l, n = !1) => ({
|
|
|
2760
2758
|
[`${i}__inner`]: !0,
|
|
2761
2759
|
[`${i}__inner--${a.align}`]: !0
|
|
2762
2760
|
})), f = a.height !== null && a.height !== void 0 ? xe(a.height) : null, g = w(() => {
|
|
2763
|
-
const
|
|
2761
|
+
const $ = {
|
|
2764
2762
|
safeAreaTop: null,
|
|
2765
2763
|
height: null,
|
|
2766
2764
|
left: null,
|
|
@@ -2770,18 +2768,18 @@ const Ls = (e, t, l, n = !1) => ({
|
|
|
2770
2768
|
};
|
|
2771
2769
|
if (o && s) {
|
|
2772
2770
|
const C = ot(a.padding ?? s.headerPadding);
|
|
2773
|
-
return Object.assign(
|
|
2771
|
+
return Object.assign($, C), f && (s.headerHeight = f), s.headerHeight > 0 && ($.height = s.headerHeight), $.safeAreaTop = s.safeAreaTop === -1 ? 0 : s.safeAreaTop, $.safeAreaTop > 0 && ($.top = $.safeAreaTop + (C.top ?? 0), $.height && $.height > 0 && ($.height = $.height + $.safeAreaTop)), $;
|
|
2774
2772
|
}
|
|
2775
|
-
if (f && (
|
|
2773
|
+
if (f && ($.height = f), a.padding) {
|
|
2776
2774
|
const C = ot(a.padding);
|
|
2777
|
-
Object.assign(
|
|
2775
|
+
Object.assign($, C);
|
|
2778
2776
|
}
|
|
2779
|
-
return
|
|
2777
|
+
return $;
|
|
2780
2778
|
}), E = q(null), d = () => {
|
|
2781
2779
|
if (s && E.value && !el(E.value)) {
|
|
2782
2780
|
if (!n) {
|
|
2783
|
-
const
|
|
2784
|
-
s.headerAllHeight =
|
|
2781
|
+
const $ = ja(E.value);
|
|
2782
|
+
s.headerAllHeight = $.height;
|
|
2785
2783
|
}
|
|
2786
2784
|
return s.headerMounted = !0, !0;
|
|
2787
2785
|
}
|
|
@@ -2796,8 +2794,8 @@ const Ls = (e, t, l, n = !1) => ({
|
|
|
2796
2794
|
s && (s.headerMounted = !1, h && (h.disconnect(), h = null));
|
|
2797
2795
|
});
|
|
2798
2796
|
const v = w(() => {
|
|
2799
|
-
const
|
|
2800
|
-
return g.value.height !== null && g.value.height !== void 0 && (
|
|
2797
|
+
const $ = {};
|
|
2798
|
+
return g.value.height !== null && g.value.height !== void 0 && ($.height = `${g.value.height}px`), g.value.top !== null && g.value.top !== void 0 && ($.paddingTop = `${g.value.top}px`), g.value.left !== null && g.value.left !== void 0 && ($.paddingLeft = `${g.value.left}px`), g.value.right !== null && g.value.right !== void 0 && ($.paddingRight = `${g.value.right}px`), g.value.bottom !== null && g.value.bottom !== void 0 && ($.paddingBottom = `${g.value.bottom}px`), $;
|
|
2801
2799
|
}), p = w(() => !(g.value.height !== null && g.value.height !== void 0 && g.value.height <= 0));
|
|
2802
2800
|
function x() {
|
|
2803
2801
|
r.emit("back");
|
|
@@ -2814,75 +2812,75 @@ const Ls = (e, t, l, n = !1) => ({
|
|
|
2814
2812
|
const D = () => {
|
|
2815
2813
|
if (!a.leftShow)
|
|
2816
2814
|
return null;
|
|
2817
|
-
const
|
|
2815
|
+
const $ = [];
|
|
2818
2816
|
if (r.slots.left)
|
|
2819
|
-
|
|
2817
|
+
$.push(r.slots.left());
|
|
2820
2818
|
else {
|
|
2821
2819
|
if (r.slots.leftIcon) {
|
|
2822
2820
|
const C = L("view", { class: "left-icon", onClick: x }, [r.slots.leftIcon()]);
|
|
2823
|
-
|
|
2821
|
+
$.push(C);
|
|
2824
2822
|
} else if (a.leftIcon) {
|
|
2825
2823
|
const C = L("view", { class: "left-icon", onClick: x }, [L(a.leftIcon)]);
|
|
2826
|
-
|
|
2824
|
+
$.push(C);
|
|
2827
2825
|
}
|
|
2828
2826
|
if (a.leftText) {
|
|
2829
2827
|
const C = L("view", { class: "left-text", onClick: x }, [a.leftText]);
|
|
2830
|
-
|
|
2828
|
+
$.push(C);
|
|
2831
2829
|
}
|
|
2832
2830
|
}
|
|
2833
|
-
return
|
|
2831
|
+
return $.length === 0 ? null : L("view", { class: "fox-header-bar__left" }, $);
|
|
2834
2832
|
}, A = () => {
|
|
2835
2833
|
if (!a.rightShow)
|
|
2836
2834
|
return null;
|
|
2837
|
-
const
|
|
2835
|
+
const $ = [];
|
|
2838
2836
|
if (r.slots.right)
|
|
2839
|
-
|
|
2837
|
+
$.push(r.slots.right());
|
|
2840
2838
|
else {
|
|
2841
2839
|
if (a.rightText) {
|
|
2842
2840
|
const C = L("view", { class: "right-text", onClick: N }, [a.rightText]);
|
|
2843
|
-
|
|
2841
|
+
$.push(C);
|
|
2844
2842
|
}
|
|
2845
2843
|
if (r.slots.rightIcon) {
|
|
2846
2844
|
const C = L("view", { class: "right-icon", onClick: R }, [r.slots.rightIcon()]);
|
|
2847
|
-
|
|
2845
|
+
$.push(C);
|
|
2848
2846
|
} else if (a.rightIcon) {
|
|
2849
2847
|
const C = L("view", { class: "right-icon", onClick: R }, [L(a.rightIcon)]);
|
|
2850
|
-
|
|
2848
|
+
$.push(C);
|
|
2851
2849
|
}
|
|
2852
2850
|
}
|
|
2853
|
-
return
|
|
2851
|
+
return $.length === 0 ? null : L("view", { class: "fox-header-bar__right" }, $);
|
|
2854
2852
|
}, M = () => {
|
|
2855
2853
|
if (!a.titleShow)
|
|
2856
2854
|
return null;
|
|
2857
|
-
const
|
|
2855
|
+
const $ = [], C = r.slots.default ? r.slots.default() : null;
|
|
2858
2856
|
if (C)
|
|
2859
|
-
|
|
2857
|
+
$.push(C);
|
|
2860
2858
|
else {
|
|
2861
2859
|
if (a.title) {
|
|
2862
2860
|
const V = L("view", { class: "title-text" }, [a.title]);
|
|
2863
|
-
|
|
2861
|
+
$.push(V);
|
|
2864
2862
|
}
|
|
2865
2863
|
if (r.slots.titleIcon) {
|
|
2866
2864
|
const V = L("view", { class: "title-icon", onClick: I }, [
|
|
2867
2865
|
r.slots.titleIcon()
|
|
2868
2866
|
]);
|
|
2869
|
-
|
|
2867
|
+
$.push(V);
|
|
2870
2868
|
} else if (a.titleIcon) {
|
|
2871
2869
|
const V = L("view", { class: "title-icon", onClick: I }, [L(a.titleIcon)]);
|
|
2872
|
-
|
|
2870
|
+
$.push(V);
|
|
2873
2871
|
}
|
|
2874
2872
|
}
|
|
2875
|
-
return
|
|
2873
|
+
return $.length === 0 ? null : L("view", { class: "fox-header-bar__title" }, $);
|
|
2876
2874
|
}, F = () => {
|
|
2877
|
-
const
|
|
2878
|
-
return C &&
|
|
2875
|
+
const $ = [], C = r.slots.bottom ? r.slots.bottom() : null;
|
|
2876
|
+
return C && $.push(C), $.length === 0 ? null : L("view", { class: "fox-header-bar__bottom" }, $);
|
|
2879
2877
|
};
|
|
2880
2878
|
return () => {
|
|
2881
2879
|
if (!p.value)
|
|
2882
2880
|
return null;
|
|
2883
|
-
const
|
|
2881
|
+
const $ = [];
|
|
2884
2882
|
if (r.slots.all)
|
|
2885
|
-
|
|
2883
|
+
$.push(r.slots.all());
|
|
2886
2884
|
else {
|
|
2887
2885
|
const V = [], S = D();
|
|
2888
2886
|
S && V.push(S);
|
|
@@ -2891,19 +2889,19 @@ const Ls = (e, t, l, n = !1) => ({
|
|
|
2891
2889
|
const y = A();
|
|
2892
2890
|
if (y && V.push(y), V.length > 0) {
|
|
2893
2891
|
const k = L("view", { class: u.value }, V);
|
|
2894
|
-
|
|
2892
|
+
$.push(k);
|
|
2895
2893
|
}
|
|
2896
2894
|
const H = F();
|
|
2897
|
-
H &&
|
|
2895
|
+
H && $.push(H);
|
|
2898
2896
|
}
|
|
2899
|
-
if (
|
|
2897
|
+
if ($.length === 0)
|
|
2900
2898
|
return null;
|
|
2901
2899
|
const C = {
|
|
2902
2900
|
class: c.value,
|
|
2903
2901
|
style: v.value,
|
|
2904
2902
|
ref: E
|
|
2905
2903
|
};
|
|
2906
|
-
return L("view", C,
|
|
2904
|
+
return L("view", C, $);
|
|
2907
2905
|
};
|
|
2908
2906
|
}
|
|
2909
2907
|
}), { componentName: Ms, create: Bs, scope: Hs } = ie("header-bar"), js = Bs(Ls(Ms, Hs, Ca));
|
|
@@ -2968,7 +2966,7 @@ function zs(e, t, l = !1) {
|
|
|
2968
2966
|
};
|
|
2969
2967
|
if (r && o) {
|
|
2970
2968
|
const h = ot(n.padding ?? o.footerPadding);
|
|
2971
|
-
return Object.assign(d, h), i && (o.footerHeight = i), o.footerHeight > 0 && (d.height = o.footerHeight), d.safeAreaBottom = o.safeAreaBottom === -1 ? 0 : o.safeAreaBottom, d.safeAreaBottom > 0 && (d.
|
|
2969
|
+
return Object.assign(d, h), i && (o.footerHeight = i), o.footerHeight > 0 && (d.height = o.footerHeight), d.safeAreaBottom = o.safeAreaBottom === -1 ? 0 : o.safeAreaBottom, d.safeAreaBottom > 0 && (d.bottom = d.safeAreaBottom + (h.bottom ?? 0), d.height && d.height > 0 && (d.height = d.height + d.safeAreaBottom)), d;
|
|
2972
2970
|
}
|
|
2973
2971
|
if (i && (d.height = i), n.padding) {
|
|
2974
2972
|
const h = ot(n.padding);
|
|
@@ -3311,7 +3309,7 @@ function si(e, t, l) {
|
|
|
3311
3309
|
}, M = () => {
|
|
3312
3310
|
let j = D.length;
|
|
3313
3311
|
D.splice(0, j);
|
|
3314
|
-
}, F = q(-1),
|
|
3312
|
+
}, F = q(-1), $ = (j) => {
|
|
3315
3313
|
const Y = za(j).width;
|
|
3316
3314
|
Y > 0 && Y !== F.value && (F.value = Y);
|
|
3317
3315
|
};
|
|
@@ -3333,14 +3331,14 @@ function si(e, t, l) {
|
|
|
3333
3331
|
[`${e}__header-collapse-icon`]: !0,
|
|
3334
3332
|
"is-expand": !k.value,
|
|
3335
3333
|
"is-collapse": k.value
|
|
3336
|
-
})), m = q(), y = q(), H = w(() => K.value || Re(n.height) || ""), k = q(!1), K = q(""),
|
|
3334
|
+
})), m = q(), y = q(), H = w(() => K.value || Re(n.height) || ""), k = q(!1), K = q(""), T = q(!1);
|
|
3337
3335
|
let P = -1;
|
|
3338
3336
|
const B = (j, Y = !0) => {
|
|
3339
3337
|
const b = m.value;
|
|
3340
3338
|
if (b && k.value !== j) {
|
|
3341
|
-
if (P = P === -1 ? ai(b) : P,
|
|
3339
|
+
if (P = P === -1 ? ai(b) : P, T.value = !0, Y)
|
|
3342
3340
|
if (b.style["will-change"] = "height", b.ontransitionend = function() {
|
|
3343
|
-
b.ontransitionend = null, this.style["will-change"] = "auto", j || (K.value = "",
|
|
3341
|
+
b.ontransitionend = null, this.style["will-change"] = "auto", j || (K.value = "", T.value = !1);
|
|
3344
3342
|
}, j) {
|
|
3345
3343
|
let O = 0;
|
|
3346
3344
|
n.collapseHeight ? O = n.collapseHeight : y.value && y.value.classList.contains(`${e}__header`) && (O = y.value.offsetHeight), K.value = `${P}px`, St(() => {
|
|
@@ -3352,7 +3350,7 @@ function si(e, t, l) {
|
|
|
3352
3350
|
let O = 0;
|
|
3353
3351
|
n.collapseHeight ? O = n.collapseHeight : y.value && y.value.classList.contains(`${e}__header`) && (O = y.value.offsetHeight), K.value = `${O}px`;
|
|
3354
3352
|
} else
|
|
3355
|
-
|
|
3353
|
+
T.value = !1, K.value = `${P}px`;
|
|
3356
3354
|
k.value = j, a.emit("update:collapse", j);
|
|
3357
3355
|
}
|
|
3358
3356
|
};
|
|
@@ -3372,7 +3370,7 @@ function si(e, t, l) {
|
|
|
3372
3370
|
toggleCollapse: Q,
|
|
3373
3371
|
// 重新布局
|
|
3374
3372
|
doLayout: () => {
|
|
3375
|
-
D[0] && (
|
|
3373
|
+
D[0] && ($(D[0]), En(
|
|
3376
3374
|
r,
|
|
3377
3375
|
F.value,
|
|
3378
3376
|
R.value,
|
|
@@ -3396,8 +3394,8 @@ function si(e, t, l) {
|
|
|
3396
3394
|
}
|
|
3397
3395
|
if (Kt && (j && B(re(n.collapse), !1), n.autoLayout && Array.isArray(D) && D.length > 0)) {
|
|
3398
3396
|
const Y = D[0];
|
|
3399
|
-
|
|
3400
|
-
|
|
3397
|
+
$(Y), window.ResizeObserver && (J = new window.ResizeObserver(() => {
|
|
3398
|
+
$(Y);
|
|
3401
3399
|
}), J.observe(Y));
|
|
3402
3400
|
}
|
|
3403
3401
|
}, Z = () => {
|
|
@@ -3455,7 +3453,7 @@ function si(e, t, l) {
|
|
|
3455
3453
|
{
|
|
3456
3454
|
ref: m,
|
|
3457
3455
|
prop: n.name,
|
|
3458
|
-
class: { [`${d}`]: !0, "is-collapse":
|
|
3456
|
+
class: { [`${d}`]: !0, "is-collapse": T.value },
|
|
3459
3457
|
style: h.value
|
|
3460
3458
|
},
|
|
3461
3459
|
[]
|
|
@@ -3524,7 +3522,7 @@ function si(e, t, l) {
|
|
|
3524
3522
|
{
|
|
3525
3523
|
ref: m,
|
|
3526
3524
|
prop: n.name,
|
|
3527
|
-
class: { [`${d}`]: !0, "is-collapse":
|
|
3525
|
+
class: { [`${d}`]: !0, "is-collapse": T.value },
|
|
3528
3526
|
style: h.value
|
|
3529
3527
|
},
|
|
3530
3528
|
[j]
|
|
@@ -3853,9 +3851,9 @@ const Ga = /* @__PURE__ */ Ue(xi, [["render", $i]]), { componentName: Nn, create
|
|
|
3853
3851
|
x: 0,
|
|
3854
3852
|
y: 0
|
|
3855
3853
|
}), a = q(0), r = q(0), o = q(e.placement), s = q(!1), i = q(null), c = (C, V, S, m, y, H) => {
|
|
3856
|
-
const k = document.documentElement.clientWidth || document.body.clientWidth, K = document.documentElement.clientHeight || document.body.clientHeight,
|
|
3854
|
+
const k = document.documentElement.clientWidth || document.body.clientWidth, K = document.documentElement.clientHeight || document.body.clientHeight, T = C.split("-");
|
|
3857
3855
|
let P = [];
|
|
3858
|
-
|
|
3856
|
+
T[0] === "top" ? P = ["top", "bottom", "right", "left"] : T[0] === "bottom" ? P = ["bottom", "top", "right", "left"] : T[0] === "left" ? P = ["left", "top", "bottom", "right"] : T[0] === "right" && (P = ["right", "top", "bottom", "left"]);
|
|
3859
3857
|
const B = {
|
|
3860
3858
|
top: null,
|
|
3861
3859
|
right: null,
|
|
@@ -3864,12 +3862,12 @@ const Ga = /* @__PURE__ */ Ue(xi, [["render", $i]]), { componentName: Nn, create
|
|
|
3864
3862
|
}, U = [];
|
|
3865
3863
|
for (let Q = 0; Q < P.length; Q++) {
|
|
3866
3864
|
const le = P[Q];
|
|
3867
|
-
if (U[0] = le,
|
|
3865
|
+
if (U[0] = le, T[1] && (U[1] = T[1]), le === "top") {
|
|
3868
3866
|
const J = V.y - H - e.arrowSize - e.offset;
|
|
3869
3867
|
if (J >= 0) {
|
|
3870
3868
|
B.top = J;
|
|
3871
3869
|
let ee = 0;
|
|
3872
|
-
|
|
3870
|
+
T[1] === "start" ? ee = V.x : T[1] === "end" ? ee = V.x + S - y : ee = V.x + S / 2 - y / 2;
|
|
3873
3871
|
const de = k - ee - y;
|
|
3874
3872
|
de < 0 ? (ee += de, f.value = -de) : f.value = 0, B.left = ee < 0 ? 0 : ee;
|
|
3875
3873
|
break;
|
|
@@ -3879,7 +3877,7 @@ const Ga = /* @__PURE__ */ Ue(xi, [["render", $i]]), { componentName: Nn, create
|
|
|
3879
3877
|
if (J + H <= K) {
|
|
3880
3878
|
B.top = J;
|
|
3881
3879
|
let ee = 0;
|
|
3882
|
-
|
|
3880
|
+
T[1] === "start" ? ee = V.x : T[1] === "end" ? ee = V.x + S - y : ee = V.x + S / 2 - y / 2;
|
|
3883
3881
|
const de = k - ee - y;
|
|
3884
3882
|
de < 0 ? (ee += de, f.value = -de) : f.value = 0, B.left = ee < 0 ? 0 : ee;
|
|
3885
3883
|
break;
|
|
@@ -3889,7 +3887,7 @@ const Ga = /* @__PURE__ */ Ue(xi, [["render", $i]]), { componentName: Nn, create
|
|
|
3889
3887
|
if (J >= 0) {
|
|
3890
3888
|
B.left = J;
|
|
3891
3889
|
let ee = 0;
|
|
3892
|
-
|
|
3890
|
+
T[1] === "start" ? ee = V.y : T[1] === "end" ? ee = V.y + m - H : ee = V.y + m / 2 - H / 2, B.top = ee < 0 ? 0 : ee;
|
|
3893
3891
|
break;
|
|
3894
3892
|
}
|
|
3895
3893
|
} else if (le === "right") {
|
|
@@ -3897,7 +3895,7 @@ const Ga = /* @__PURE__ */ Ue(xi, [["render", $i]]), { componentName: Nn, create
|
|
|
3897
3895
|
if (J + y <= k) {
|
|
3898
3896
|
B.left = J;
|
|
3899
3897
|
let ee = 0;
|
|
3900
|
-
|
|
3898
|
+
T[1] === "start" ? ee = V.y : T[1] === "end" ? ee = V.y + m - H : ee = V.y + m / 2 - H / 2, B.top = ee < 0 ? 0 : ee;
|
|
3901
3899
|
break;
|
|
3902
3900
|
}
|
|
3903
3901
|
}
|
|
@@ -4138,7 +4136,7 @@ const jn = {}, Ii = new Ni(), Nt = /* @__PURE__ */ new Map(), sn = (e) => {
|
|
|
4138
4136
|
[`${o}__stretch`]: e.span === "stretch",
|
|
4139
4137
|
[`${o}__input--border`]: e.hasBorder
|
|
4140
4138
|
};
|
|
4141
|
-
if (_[e.errorMarkClass] = !!V.value, _[e.warnMarkClass] =
|
|
4139
|
+
if (_[e.errorMarkClass] = !!V.value, _[e.warnMarkClass] = !!$.value, _[e.infoMarkClass] = !!M.value, typeof s.value == "function") {
|
|
4142
4140
|
const W = s.value(l);
|
|
4143
4141
|
_[W] = !0;
|
|
4144
4142
|
} else if (typeof s.value == "string") {
|
|
@@ -4234,13 +4232,13 @@ const jn = {}, Ii = new Ni(), Nt = /* @__PURE__ */ new Map(), sn = (e) => {
|
|
|
4234
4232
|
c.value = _;
|
|
4235
4233
|
}
|
|
4236
4234
|
});
|
|
4237
|
-
const M = w(() => e.infoTip || A.infoTip), F = w(() => e.infoIcon || A.infoIcon),
|
|
4235
|
+
const M = w(() => e.infoTip || A.infoTip), F = w(() => e.infoIcon || A.infoIcon), $ = w(() => e.warnTip || A.warnTip), C = w(() => e.warnIcon || A.warnIcon), V = w(() => e.errorTip || A.errorTip), S = w(() => e.errorIcon || A.errorIcon), m = w(() => V.value ? "error" : $.value ? "warn" : M.value ? "info" : ""), y = w(() => m.value.length > 0), H = w(() => m.value === "error" ? V.value : m.value === "warn" ? $.value : m.value === "info" ? M.value : ""), k = w(() => m.value === "error" ? S.value : m.value === "warn" ? C.value : m.value === "info" ? F.value : null), K = w(() => {
|
|
4238
4236
|
let _ = {
|
|
4239
4237
|
[`${o}__tip`]: !0,
|
|
4240
4238
|
[`${o}__tip--${m.value}`]: !0
|
|
4241
4239
|
};
|
|
4242
4240
|
return m.value === "error" && e.errorClass ? _[`${e.errorClass}`] = !0 : m.value === "warn" && e.warnClass ? _[`${e.warnClass}`] = !0 : m.value === "info" && e.infoClass && (_[`${e.infoClass}`] = !0), _;
|
|
4243
|
-
}),
|
|
4241
|
+
}), T = w(() => {
|
|
4244
4242
|
let _ = {};
|
|
4245
4243
|
return d && d.value === "top" || !E.value ? _["padding-left"] = "0px" : x && x.value && (_["padding-left"] = Re(x.value)), _;
|
|
4246
4244
|
}), P = () => {
|
|
@@ -4297,7 +4295,7 @@ const jn = {}, Ii = new Ni(), Nt = /* @__PURE__ */ new Map(), sn = (e) => {
|
|
|
4297
4295
|
renderIcon: P,
|
|
4298
4296
|
renderTip: B,
|
|
4299
4297
|
tipClasses: K,
|
|
4300
|
-
tipStyles:
|
|
4298
|
+
tipStyles: T,
|
|
4301
4299
|
hasFixedTip: U,
|
|
4302
4300
|
fixedTipClasses: Q
|
|
4303
4301
|
};
|
|
@@ -4605,7 +4603,7 @@ function zi(e, t, l) {
|
|
|
4605
4603
|
}, 150));
|
|
4606
4604
|
}, M = () => {
|
|
4607
4605
|
D && (clearTimeout(D), N.value = !1, D = null);
|
|
4608
|
-
}, F = w(() => N.value || p.value),
|
|
4606
|
+
}, F = w(() => N.value || p.value), $ = w(() => N.value ? f.value : v.value), C = w(() => dn(n.unit) > 0), V = q();
|
|
4609
4607
|
return Fe({
|
|
4610
4608
|
//使 input 获取焦点
|
|
4611
4609
|
focus: () => {
|
|
@@ -4648,7 +4646,7 @@ function zi(e, t, l) {
|
|
|
4648
4646
|
a.slots.default && (K.label = a.slots.default), a.slots.default && (K.fixedTip = a.slots.fixedTip);
|
|
4649
4647
|
const P = {
|
|
4650
4648
|
...Be(n, Tl),
|
|
4651
|
-
hintText:
|
|
4649
|
+
hintText: $.value,
|
|
4652
4650
|
hintVisible: F.value,
|
|
4653
4651
|
prop: `${n.prop}_item`
|
|
4654
4652
|
};
|
|
@@ -4974,7 +4972,7 @@ function Qi(e, t, l) {
|
|
|
4974
4972
|
}
|
|
4975
4973
|
A.value = !1;
|
|
4976
4974
|
});
|
|
4977
|
-
const F = () => typeof n.remoteMethod == "function" || typeof n.filterMethod == "function",
|
|
4975
|
+
const F = () => typeof n.remoteMethod == "function" || typeof n.filterMethod == "function", $ = q(!1), C = e, V = w(() => ({
|
|
4978
4976
|
[C]: !0
|
|
4979
4977
|
})), S = (W) => {
|
|
4980
4978
|
n.allowCreate || F() && re(n.multiple) ? (s("update:modelValue", W), s("change", W), s("update:text", W), u.value = W) : E(W, "value", v.value, !0);
|
|
@@ -4982,24 +4980,24 @@ function Qi(e, t, l) {
|
|
|
4982
4980
|
let m = pe(n, "hintText"), y = q(!1);
|
|
4983
4981
|
const H = (W) => {
|
|
4984
4982
|
let j = W.target.value;
|
|
4985
|
-
|
|
4983
|
+
$.value = !0, $e(m.value) || (y.value = !0), s("focus", j, W);
|
|
4986
4984
|
}, k = (W) => {
|
|
4987
4985
|
setTimeout(() => {
|
|
4988
|
-
y.value && (y.value = !1),
|
|
4986
|
+
y.value && (y.value = !1), $.value = !1;
|
|
4989
4987
|
}, 0);
|
|
4990
4988
|
let j = W.target.value;
|
|
4991
4989
|
n.maxLength && j.length > Number(n.maxLength) && (j = j.slice(0, Number(n.maxLength))), J.value || s("blur", j, W);
|
|
4992
4990
|
}, K = () => {
|
|
4993
4991
|
s("clear", "");
|
|
4994
|
-
},
|
|
4992
|
+
}, T = q(!1);
|
|
4995
4993
|
let P = null;
|
|
4996
4994
|
const B = () => {
|
|
4997
|
-
n.showTooltip &&
|
|
4998
|
-
|
|
4995
|
+
n.showTooltip && T.value === !1 && (P && clearTimeout(P), P = setTimeout(() => {
|
|
4996
|
+
T.value = !0;
|
|
4999
4997
|
}, 150));
|
|
5000
4998
|
}, U = () => {
|
|
5001
|
-
P && (clearTimeout(P),
|
|
5002
|
-
}, Q = w(() =>
|
|
4999
|
+
P && (clearTimeout(P), T.value = !1, P = null);
|
|
5000
|
+
}, Q = w(() => T.value || y.value), le = w(() => T.value ? g.value : m.value), J = q(!1), ee = (W) => {
|
|
5003
5001
|
J.value = W, s("visible-change", W), W || s("selected");
|
|
5004
5002
|
}, de = (W) => {
|
|
5005
5003
|
s("remove-tag", W);
|
|
@@ -5103,8 +5101,8 @@ var Ja = { exports: {} };
|
|
|
5103
5101
|
}, m: function S(m, y) {
|
|
5104
5102
|
if (m.date() < y.date())
|
|
5105
5103
|
return -S(y, m);
|
|
5106
|
-
var H = 12 * (y.year() - m.year()) + (y.month() - m.month()), k = m.clone().add(H, f), K = y - k < 0,
|
|
5107
|
-
return +(-(H + (y - k) / (K ? k -
|
|
5104
|
+
var H = 12 * (y.year() - m.year()) + (y.month() - m.month()), k = m.clone().add(H, f), K = y - k < 0, T = m.clone().add(H + (K ? -1 : 1), f);
|
|
5105
|
+
return +(-(H + (y - k) / (K ? k - T : T - k)) || 0);
|
|
5108
5106
|
}, a: function(S) {
|
|
5109
5107
|
return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
|
|
5110
5108
|
}, p: function(S) {
|
|
@@ -5122,9 +5120,9 @@ var Ja = { exports: {} };
|
|
|
5122
5120
|
if (typeof m == "string") {
|
|
5123
5121
|
var K = m.toLowerCase();
|
|
5124
5122
|
D[K] && (k = K), y && (D[K] = y, k = K);
|
|
5125
|
-
var
|
|
5126
|
-
if (!k &&
|
|
5127
|
-
return S(
|
|
5123
|
+
var T = m.split("-");
|
|
5124
|
+
if (!k && T.length > 1)
|
|
5125
|
+
return S(T[0]);
|
|
5128
5126
|
} else {
|
|
5129
5127
|
var P = m.name;
|
|
5130
5128
|
D[P] = m, k = P;
|
|
@@ -5135,8 +5133,8 @@ var Ja = { exports: {} };
|
|
|
5135
5133
|
return S.clone();
|
|
5136
5134
|
var y = typeof m == "object" ? m : {};
|
|
5137
5135
|
return y.date = S, y.args = arguments, new C(y);
|
|
5138
|
-
},
|
|
5139
|
-
|
|
5136
|
+
}, $ = R;
|
|
5137
|
+
$.l = M, $.i = A, $.w = function(S, m) {
|
|
5140
5138
|
return F(S, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
5141
5139
|
};
|
|
5142
5140
|
var C = function() {
|
|
@@ -5149,15 +5147,15 @@ var Ja = { exports: {} };
|
|
|
5149
5147
|
var k = H.date, K = H.utc;
|
|
5150
5148
|
if (k === null)
|
|
5151
5149
|
return /* @__PURE__ */ new Date(NaN);
|
|
5152
|
-
if (
|
|
5150
|
+
if ($.u(k))
|
|
5153
5151
|
return /* @__PURE__ */ new Date();
|
|
5154
5152
|
if (k instanceof Date)
|
|
5155
5153
|
return new Date(k);
|
|
5156
5154
|
if (typeof k == "string" && !/Z$/i.test(k)) {
|
|
5157
|
-
var
|
|
5158
|
-
if (
|
|
5159
|
-
var P =
|
|
5160
|
-
return K ? new Date(Date.UTC(
|
|
5155
|
+
var T = k.match(v);
|
|
5156
|
+
if (T) {
|
|
5157
|
+
var P = T[2] - 1 || 0, B = (T[7] || "0").substring(0, 3);
|
|
5158
|
+
return K ? new Date(Date.UTC(T[1], P, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, B)) : new Date(T[1], P, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, B);
|
|
5161
5159
|
}
|
|
5162
5160
|
}
|
|
5163
5161
|
return new Date(k);
|
|
@@ -5166,7 +5164,7 @@ var Ja = { exports: {} };
|
|
|
5166
5164
|
var y = this.$d;
|
|
5167
5165
|
this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
|
|
5168
5166
|
}, m.$utils = function() {
|
|
5169
|
-
return
|
|
5167
|
+
return $;
|
|
5170
5168
|
}, m.isValid = function() {
|
|
5171
5169
|
return this.$d.toString() !== h;
|
|
5172
5170
|
}, m.isSame = function(y, H) {
|
|
@@ -5177,19 +5175,19 @@ var Ja = { exports: {} };
|
|
|
5177
5175
|
}, m.isBefore = function(y, H) {
|
|
5178
5176
|
return this.endOf(H) < F(y);
|
|
5179
5177
|
}, m.$g = function(y, H, k) {
|
|
5180
|
-
return
|
|
5178
|
+
return $.u(y) ? this[H] : this.set(k, y);
|
|
5181
5179
|
}, m.unix = function() {
|
|
5182
5180
|
return Math.floor(this.valueOf() / 1e3);
|
|
5183
5181
|
}, m.valueOf = function() {
|
|
5184
5182
|
return this.$d.getTime();
|
|
5185
5183
|
}, m.startOf = function(y, H) {
|
|
5186
|
-
var k = this, K =
|
|
5187
|
-
var W =
|
|
5184
|
+
var k = this, K = !!$.u(H) || H, T = $.p(y), P = function(Z, _) {
|
|
5185
|
+
var W = $.w(k.$u ? Date.UTC(k.$y, _, Z) : new Date(k.$y, _, Z), k);
|
|
5188
5186
|
return K ? W : W.endOf(c);
|
|
5189
5187
|
}, B = function(Z, _) {
|
|
5190
|
-
return
|
|
5188
|
+
return $.w(k.toDate()[Z].apply(k.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_)), k);
|
|
5191
5189
|
}, U = this.$W, Q = this.$M, le = this.$D, J = "set" + (this.$u ? "UTC" : "");
|
|
5192
|
-
switch (
|
|
5190
|
+
switch (T) {
|
|
5193
5191
|
case E:
|
|
5194
5192
|
return K ? P(1, 0) : P(31, 11);
|
|
5195
5193
|
case f:
|
|
@@ -5212,7 +5210,7 @@ var Ja = { exports: {} };
|
|
|
5212
5210
|
}, m.endOf = function(y) {
|
|
5213
5211
|
return this.startOf(y, !1);
|
|
5214
5212
|
}, m.$set = function(y, H) {
|
|
5215
|
-
var k, K =
|
|
5213
|
+
var k, K = $.p(y), T = "set" + (this.$u ? "UTC" : ""), P = (k = {}, k[c] = T + "Date", k[d] = T + "Date", k[f] = T + "Month", k[E] = T + "FullYear", k[i] = T + "Hours", k[s] = T + "Minutes", k[o] = T + "Seconds", k[r] = T + "Milliseconds", k)[K], B = K === c ? this.$D + (H - this.$W) : H;
|
|
5216
5214
|
if (K === f || K === E) {
|
|
5217
5215
|
var U = this.clone().set(d, 1);
|
|
5218
5216
|
U.$d[P](B), U.init(), this.$d = U.set(d, Math.min(this.$D, U.daysInMonth())).$d;
|
|
@@ -5222,46 +5220,46 @@ var Ja = { exports: {} };
|
|
|
5222
5220
|
}, m.set = function(y, H) {
|
|
5223
5221
|
return this.clone().$set(y, H);
|
|
5224
5222
|
}, m.get = function(y) {
|
|
5225
|
-
return this[
|
|
5223
|
+
return this[$.p(y)]();
|
|
5226
5224
|
}, m.add = function(y, H) {
|
|
5227
5225
|
var k, K = this;
|
|
5228
5226
|
y = Number(y);
|
|
5229
|
-
var
|
|
5227
|
+
var T = $.p(H), P = function(Q) {
|
|
5230
5228
|
var le = F(K);
|
|
5231
|
-
return
|
|
5229
|
+
return $.w(le.date(le.date() + Math.round(Q * y)), K);
|
|
5232
5230
|
};
|
|
5233
|
-
if (
|
|
5231
|
+
if (T === f)
|
|
5234
5232
|
return this.set(f, this.$M + y);
|
|
5235
|
-
if (
|
|
5233
|
+
if (T === E)
|
|
5236
5234
|
return this.set(E, this.$y + y);
|
|
5237
|
-
if (
|
|
5235
|
+
if (T === c)
|
|
5238
5236
|
return P(1);
|
|
5239
|
-
if (
|
|
5237
|
+
if (T === u)
|
|
5240
5238
|
return P(7);
|
|
5241
|
-
var B = (k = {}, k[s] = n, k[i] = a, k[o] = l, k)[
|
|
5242
|
-
return
|
|
5239
|
+
var B = (k = {}, k[s] = n, k[i] = a, k[o] = l, k)[T] || 1, U = this.$d.getTime() + y * B;
|
|
5240
|
+
return $.w(U, this);
|
|
5243
5241
|
}, m.subtract = function(y, H) {
|
|
5244
5242
|
return this.add(-1 * y, H);
|
|
5245
5243
|
}, m.format = function(y) {
|
|
5246
5244
|
var H = this, k = this.$locale();
|
|
5247
5245
|
if (!this.isValid())
|
|
5248
5246
|
return k.invalidDate || h;
|
|
5249
|
-
var K = y || "YYYY-MM-DDTHH:mm:ssZ",
|
|
5247
|
+
var K = y || "YYYY-MM-DDTHH:mm:ssZ", T = $.z(this), P = this.$H, B = this.$m, U = this.$M, Q = k.weekdays, le = k.months, J = function(_, W, X, j) {
|
|
5250
5248
|
return _ && (_[W] || _(H, K)) || X[W].slice(0, j);
|
|
5251
5249
|
}, ee = function(_) {
|
|
5252
|
-
return
|
|
5250
|
+
return $.s(P % 12 || 12, _, "0");
|
|
5253
5251
|
}, de = k.meridiem || function(_, W, X) {
|
|
5254
5252
|
var j = _ < 12 ? "AM" : "PM";
|
|
5255
5253
|
return X ? j.toLowerCase() : j;
|
|
5256
|
-
}, Z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: U + 1, MM:
|
|
5254
|
+
}, Z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: U + 1, MM: $.s(U + 1, 2, "0"), MMM: J(k.monthsShort, U, le, 3), MMMM: J(le, U), D: this.$D, DD: $.s(this.$D, 2, "0"), d: String(this.$W), dd: J(k.weekdaysMin, this.$W, Q, 2), ddd: J(k.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(P), HH: $.s(P, 2, "0"), h: ee(1), hh: ee(2), a: de(P, B, !0), A: de(P, B, !1), m: String(B), mm: $.s(B, 2, "0"), s: String(this.$s), ss: $.s(this.$s, 2, "0"), SSS: $.s(this.$ms, 3, "0"), Z: T };
|
|
5257
5255
|
return K.replace(p, function(_, W) {
|
|
5258
|
-
return W || Z[_] ||
|
|
5256
|
+
return W || Z[_] || T.replace(":", "");
|
|
5259
5257
|
});
|
|
5260
5258
|
}, m.utcOffset = function() {
|
|
5261
5259
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5262
5260
|
}, m.diff = function(y, H, k) {
|
|
5263
|
-
var K,
|
|
5264
|
-
return Q = (K = {}, K[E] = Q / 12, K[f] = Q, K[g] = Q / 3, K[u] = (U - B) / 6048e5, K[c] = (U - B) / 864e5, K[i] = U / a, K[s] = U / n, K[o] = U / l, K)[
|
|
5261
|
+
var K, T = $.p(H), P = F(y), B = (P.utcOffset() - this.utcOffset()) * n, U = this - P, Q = $.m(this, P);
|
|
5262
|
+
return Q = (K = {}, K[E] = Q / 12, K[f] = Q, K[g] = Q / 3, K[u] = (U - B) / 6048e5, K[c] = (U - B) / 864e5, K[i] = U / a, K[s] = U / n, K[o] = U / l, K)[T] || U, k ? Q : $.a(Q);
|
|
5265
5263
|
}, m.daysInMonth = function() {
|
|
5266
5264
|
return this.endOf(f).$D;
|
|
5267
5265
|
}, m.$locale = function() {
|
|
@@ -5272,7 +5270,7 @@ var Ja = { exports: {} };
|
|
|
5272
5270
|
var k = this.clone(), K = M(y, H, !0);
|
|
5273
5271
|
return K && (k.$L = K), k;
|
|
5274
5272
|
}, m.clone = function() {
|
|
5275
|
-
return
|
|
5273
|
+
return $.w(this.$d, this);
|
|
5276
5274
|
}, m.toDate = function() {
|
|
5277
5275
|
return new Date(this.valueOf());
|
|
5278
5276
|
}, m.toJSON = function() {
|
|
@@ -5361,9 +5359,9 @@ var Qa = { exports: {} };
|
|
|
5361
5359
|
function d(h) {
|
|
5362
5360
|
var v, p;
|
|
5363
5361
|
v = h, p = s && s.formats;
|
|
5364
|
-
for (var x = (h = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(F,
|
|
5362
|
+
for (var x = (h = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(F, $, C) {
|
|
5365
5363
|
var V = C && C.toUpperCase();
|
|
5366
|
-
return
|
|
5364
|
+
return $ || p[C] || l[C] || p[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(S, m, y) {
|
|
5367
5365
|
return m || y.slice(1);
|
|
5368
5366
|
});
|
|
5369
5367
|
})).match(n), I = x.length, R = 0; R < I; R += 1) {
|
|
@@ -5371,22 +5369,22 @@ var Qa = { exports: {} };
|
|
|
5371
5369
|
x[R] = M ? { regex: A, parser: M } : N.replace(/^\[|\]$/g, "");
|
|
5372
5370
|
}
|
|
5373
5371
|
return function(F) {
|
|
5374
|
-
for (var
|
|
5372
|
+
for (var $ = {}, C = 0, V = 0; C < I; C += 1) {
|
|
5375
5373
|
var S = x[C];
|
|
5376
5374
|
if (typeof S == "string")
|
|
5377
5375
|
V += S.length;
|
|
5378
5376
|
else {
|
|
5379
5377
|
var m = S.regex, y = S.parser, H = F.slice(V), k = m.exec(H)[0];
|
|
5380
|
-
y.call(
|
|
5378
|
+
y.call($, k), F = F.replace(k, "");
|
|
5381
5379
|
}
|
|
5382
5380
|
}
|
|
5383
5381
|
return function(K) {
|
|
5384
|
-
var
|
|
5385
|
-
if (
|
|
5382
|
+
var T = K.afternoon;
|
|
5383
|
+
if (T !== void 0) {
|
|
5386
5384
|
var P = K.hours;
|
|
5387
|
-
|
|
5385
|
+
T ? P < 12 && (K.hours += 12) : P === 12 && (K.hours = 0), delete K.afternoon;
|
|
5388
5386
|
}
|
|
5389
|
-
}(
|
|
5387
|
+
}($), $;
|
|
5390
5388
|
};
|
|
5391
5389
|
}
|
|
5392
5390
|
return function(h, v, p) {
|
|
@@ -5397,12 +5395,12 @@ var Qa = { exports: {} };
|
|
|
5397
5395
|
this.$u = D;
|
|
5398
5396
|
var M = A[1];
|
|
5399
5397
|
if (typeof M == "string") {
|
|
5400
|
-
var F = A[2] === !0,
|
|
5401
|
-
|
|
5398
|
+
var F = A[2] === !0, $ = A[3] === !0, C = F || $, V = A[2];
|
|
5399
|
+
$ && (V = A[2]), s = this.$locale(), !F && V && (s = p.Ls[V]), this.$d = function(H, k, K) {
|
|
5402
5400
|
try {
|
|
5403
5401
|
if (["x", "X"].indexOf(k) > -1)
|
|
5404
5402
|
return new Date((k === "X" ? 1e3 : 1) * H);
|
|
5405
|
-
var
|
|
5403
|
+
var T = d(k)(H), P = T.year, B = T.month, U = T.day, Q = T.hours, le = T.minutes, J = T.seconds, ee = T.milliseconds, de = T.zone, Z = /* @__PURE__ */ new Date(), _ = U || (P || B ? 1 : Z.getDate()), W = P || Z.getFullYear(), X = 0;
|
|
5406
5404
|
P && !B || (X = B > 0 ? B - 1 : Z.getMonth());
|
|
5407
5405
|
var j = Q || 0, Y = le || 0, b = J || 0, O = ee || 0;
|
|
5408
5406
|
return de ? new Date(Date.UTC(W, X, _, j, Y, b, O + 60 * de.offset * 1e3)) : K ? new Date(Date.UTC(W, X, _, j, Y, b, O)) : new Date(W, X, _, j, Y, b, O);
|
|
@@ -5950,7 +5948,7 @@ function wu(e, t, l) {
|
|
|
5950
5948
|
s("panel-change", P, B, U);
|
|
5951
5949
|
}, F = (P) => {
|
|
5952
5950
|
s("visible-change", P);
|
|
5953
|
-
},
|
|
5951
|
+
}, $ = He(
|
|
5954
5952
|
w(() => n.longTermText),
|
|
5955
5953
|
"longTermText",
|
|
5956
5954
|
We.Near
|
|
@@ -6022,30 +6020,30 @@ function wu(e, t, l) {
|
|
|
6022
6020
|
const K = w(() => ({
|
|
6023
6021
|
"fox-date-item__long": !0,
|
|
6024
6022
|
"is-active": u.value
|
|
6025
|
-
})),
|
|
6023
|
+
})), T = q();
|
|
6026
6024
|
return Fe({
|
|
6027
6025
|
//使 input 获取焦点
|
|
6028
6026
|
focus: () => {
|
|
6029
|
-
|
|
6027
|
+
T?.value.focus();
|
|
6030
6028
|
},
|
|
6031
6029
|
// 使 input 失去焦点
|
|
6032
6030
|
blur: () => {
|
|
6033
|
-
|
|
6031
|
+
T?.value.blur();
|
|
6034
6032
|
},
|
|
6035
6033
|
// 打开日期选择器弹窗
|
|
6036
6034
|
handleOpen: () => {
|
|
6037
|
-
|
|
6035
|
+
T?.value.handleOpen();
|
|
6038
6036
|
},
|
|
6039
6037
|
// 关闭日期选择器弹窗
|
|
6040
6038
|
handleClose: () => {
|
|
6041
|
-
|
|
6039
|
+
T?.value.handleClose();
|
|
6042
6040
|
}
|
|
6043
6041
|
}), () => {
|
|
6044
6042
|
const B = {
|
|
6045
6043
|
...a.attrs,
|
|
6046
6044
|
key: E.value,
|
|
6047
6045
|
type: h.value,
|
|
6048
|
-
ref:
|
|
6046
|
+
ref: T,
|
|
6049
6047
|
class: p.value,
|
|
6050
6048
|
placeholder: c.placeholder.value,
|
|
6051
6049
|
disabled: r.value,
|
|
@@ -6070,7 +6068,7 @@ function wu(e, t, l) {
|
|
|
6070
6068
|
if (y.value) {
|
|
6071
6069
|
const _ = L("span", { class: ["fox-date-item__long-splitor"] }, ["-"]), W = L("input", {
|
|
6072
6070
|
class: ["fox-date-item__long-text"],
|
|
6073
|
-
value:
|
|
6071
|
+
value: $.value,
|
|
6074
6072
|
readonly: !0
|
|
6075
6073
|
}), X = {
|
|
6076
6074
|
class: K.value
|
|
@@ -6079,7 +6077,7 @@ function wu(e, t, l) {
|
|
|
6079
6077
|
}
|
|
6080
6078
|
if (!o.value && !r.value) {
|
|
6081
6079
|
const _ = {
|
|
6082
|
-
label: C.value ||
|
|
6080
|
+
label: C.value || $.value,
|
|
6083
6081
|
disabled: o.value || r.value,
|
|
6084
6082
|
modelValue: y.value,
|
|
6085
6083
|
"onUpdate:modelValue": H
|
|
@@ -6202,8 +6200,8 @@ function Eu(e, t, l) {
|
|
|
6202
6200
|
onFocus: p,
|
|
6203
6201
|
onBlur: x,
|
|
6204
6202
|
onVisibleChange: R
|
|
6205
|
-
}, M = {}, F = [],
|
|
6206
|
-
F.push(
|
|
6203
|
+
}, M = {}, F = [], $ = L(wa, A, M);
|
|
6204
|
+
F.push($);
|
|
6207
6205
|
const C = {
|
|
6208
6206
|
default: () => F
|
|
6209
6207
|
};
|
|
@@ -6310,17 +6308,17 @@ function Fu(e, t, l) {
|
|
|
6310
6308
|
onBlur: x
|
|
6311
6309
|
}, A = {}, M = [], F = L(Sa, D, A);
|
|
6312
6310
|
M.push(F);
|
|
6313
|
-
const
|
|
6311
|
+
const $ = {
|
|
6314
6312
|
default: () => M
|
|
6315
6313
|
};
|
|
6316
|
-
a.slots.default && (
|
|
6314
|
+
a.slots.default && ($.label = a.slots.default), a.slots.fixedTip && ($.fixedTip = a.slots.fixedTip);
|
|
6317
6315
|
const V = {
|
|
6318
6316
|
...Be(n, kl),
|
|
6319
6317
|
hintText: h.value,
|
|
6320
6318
|
hintVisible: v.value,
|
|
6321
6319
|
prop: `${n.prop}_item`
|
|
6322
6320
|
};
|
|
6323
|
-
return L(l, V,
|
|
6321
|
+
return L(l, V, $);
|
|
6324
6322
|
};
|
|
6325
6323
|
}
|
|
6326
6324
|
};
|
|
@@ -6612,7 +6610,7 @@ function qu(e, t, l) {
|
|
|
6612
6610
|
}
|
|
6613
6611
|
}
|
|
6614
6612
|
s("update:modelValue", c.value, S), s("blur", c.value, S);
|
|
6615
|
-
},
|
|
6613
|
+
}, $ = () => {
|
|
6616
6614
|
s("clear", "");
|
|
6617
6615
|
}, C = w(() => dn(n.unit) > 0), V = q();
|
|
6618
6616
|
return Fe({
|
|
@@ -6642,7 +6640,7 @@ function qu(e, t, l) {
|
|
|
6642
6640
|
modelValue: f.value,
|
|
6643
6641
|
"adjust-position": n.adjustPosition,
|
|
6644
6642
|
"always-system": n.alwaysSystem,
|
|
6645
|
-
onClear:
|
|
6643
|
+
onClear: $,
|
|
6646
6644
|
onInput: D,
|
|
6647
6645
|
onChange: A,
|
|
6648
6646
|
onFocus: M,
|
|
@@ -6736,14 +6734,14 @@ function Hu(e, t, l) {
|
|
|
6736
6734
|
};
|
|
6737
6735
|
let p = pe(n, "hintText"), x = q(!1);
|
|
6738
6736
|
const I = (M) => {
|
|
6739
|
-
let
|
|
6740
|
-
u.value = !0, $e(p.value) || (x.value = !0), s("focus",
|
|
6737
|
+
let $ = M.target.value;
|
|
6738
|
+
u.value = !0, $e(p.value) || (x.value = !0), s("focus", $, M);
|
|
6741
6739
|
}, R = (M) => {
|
|
6742
6740
|
setTimeout(() => {
|
|
6743
6741
|
x.value && (x.value = !1), u.value = !1;
|
|
6744
6742
|
}, 0);
|
|
6745
|
-
let
|
|
6746
|
-
n.maxLength &&
|
|
6743
|
+
let $ = M.target.value;
|
|
6744
|
+
n.maxLength && $.length > Number(n.maxLength) && ($ = $.slice(0, Number(n.maxLength))), s("blur", $, M);
|
|
6747
6745
|
}, N = () => {
|
|
6748
6746
|
s("clear", "");
|
|
6749
6747
|
}, D = w(() => dn(n.unit) > 0), A = q();
|
|
@@ -6773,7 +6771,7 @@ function Hu(e, t, l) {
|
|
|
6773
6771
|
onInput: h,
|
|
6774
6772
|
onFocus: I,
|
|
6775
6773
|
onBlur: R
|
|
6776
|
-
},
|
|
6774
|
+
}, $ = {}, C = [], V = L(da, F, $);
|
|
6777
6775
|
C.push(V);
|
|
6778
6776
|
const S = {
|
|
6779
6777
|
default: () => C
|
|
@@ -7043,7 +7041,7 @@ function Zu(e, t, l) {
|
|
|
7043
7041
|
return;
|
|
7044
7042
|
}
|
|
7045
7043
|
const Y = j[j.length - 1];
|
|
7046
|
-
if (
|
|
7044
|
+
if ($.value.checkStrictly !== !0 && !Array.isArray(Y) && Array.isArray(Y.children) && Y.children.length > 0) {
|
|
7047
7045
|
const O = [];
|
|
7048
7046
|
j.forEach((z) => {
|
|
7049
7047
|
const G = `${at(n, z)}`;
|
|
@@ -7131,7 +7129,7 @@ function Zu(e, t, l) {
|
|
|
7131
7129
|
});
|
|
7132
7130
|
const D = q(!1), A = e, M = w(() => ({
|
|
7133
7131
|
[A]: !0
|
|
7134
|
-
})), F = q(null),
|
|
7132
|
+
})), F = q(null), $ = w(() => {
|
|
7135
7133
|
let Z = {
|
|
7136
7134
|
label: n.textKey,
|
|
7137
7135
|
value: n.valueKey,
|
|
@@ -7166,7 +7164,7 @@ function Zu(e, t, l) {
|
|
|
7166
7164
|
s("clear", "");
|
|
7167
7165
|
}, k = q(!1);
|
|
7168
7166
|
let K = null;
|
|
7169
|
-
const
|
|
7167
|
+
const T = () => {
|
|
7170
7168
|
n.showTooltip && k.value === !1 && (K && clearTimeout(K), K = setTimeout(() => {
|
|
7171
7169
|
k.value = !0;
|
|
7172
7170
|
}, 150));
|
|
@@ -7195,7 +7193,7 @@ function Zu(e, t, l) {
|
|
|
7195
7193
|
...a.attrs,
|
|
7196
7194
|
ref: de,
|
|
7197
7195
|
class: M.value,
|
|
7198
|
-
props:
|
|
7196
|
+
props: $.value,
|
|
7199
7197
|
clearable: n.clearable,
|
|
7200
7198
|
placeholder: F.value || c.placeholder.value,
|
|
7201
7199
|
disabled: r.value || o.value,
|
|
@@ -7224,7 +7222,7 @@ function Zu(e, t, l) {
|
|
|
7224
7222
|
hintText: U.value,
|
|
7225
7223
|
hintVisible: B.value,
|
|
7226
7224
|
prop: `${n.prop ?? a.attrs.name}_item`,
|
|
7227
|
-
onMouseover:
|
|
7225
|
+
onMouseover: T,
|
|
7228
7226
|
onMouseleave: P
|
|
7229
7227
|
};
|
|
7230
7228
|
return h.value && !n.lazy && (O["appear-listen"] = !0, O.onAppear = I), L(l, O, Y);
|
|
@@ -7331,10 +7329,10 @@ function nc(e, t, l) {
|
|
|
7331
7329
|
onSelect: v
|
|
7332
7330
|
}, F = {};
|
|
7333
7331
|
a.slots.prepend && (F.prepend = a.slots.prepend), a.slots.append && (F.append = a.slots.append), a.slots.prefix && (F.prefix = a.slots.prefix), a.slots.suffix && (F.suffix = a.slots.suffix), a.slots.option && (F.default = a.slots.option);
|
|
7334
|
-
const
|
|
7335
|
-
|
|
7332
|
+
const $ = [], C = L(sa, M, F);
|
|
7333
|
+
$.push(C);
|
|
7336
7334
|
const V = {
|
|
7337
|
-
default: () =>
|
|
7335
|
+
default: () => $
|
|
7338
7336
|
};
|
|
7339
7337
|
a.slots.default && (V.label = a.slots.default), a.slots.fixedTip && (V.fixedTip = a.slots.fixedTip);
|
|
7340
7338
|
const m = {
|
|
@@ -7715,43 +7713,43 @@ const Cc = /* @__PURE__ */ Ue(xc, [["render", Tc]]), { componentName: vg, create
|
|
|
7715
7713
|
// setup
|
|
7716
7714
|
setup(e, { emit: t, attrs: l }) {
|
|
7717
7715
|
let n = [];
|
|
7718
|
-
const a = q([]), r = w(() => a.value.filter((
|
|
7716
|
+
const a = q([]), r = w(() => a.value.filter((T) => T.label === "" || T.type ? !1 : T.fixed === "" || T.fixed === !0 || T.fixed === "left")), o = w(() => a.value.filter((T) => T.label === "" || T.type ? !1 : T.fixed === "right")), s = w(() => a.value.filter((T) => !(T.label === "" || T.type || T.fixed !== void 0))), i = w(() => (r.value.length > 0 || o.value.length > 0) && s.value.length > 0), c = w(() => r.value.length > 0), u = w(() => o.value.length > 0), f = (T) => T.length > 1, g = (T) => {
|
|
7719
7717
|
const P = [];
|
|
7720
|
-
a.value =
|
|
7721
|
-
}, E = (
|
|
7722
|
-
if (
|
|
7718
|
+
a.value = T.map((U, Q) => (!(U.label === "" || U.type) && U.visible !== !1 && P.push(U.prop), { ...U, sortIndex: Q })), s.value.length + r.value.length + o.value.length === P.length ? x.value = !0 : P.length > 0 && (I.value = !0), D.value = P;
|
|
7719
|
+
}, E = (T) => T ? T.type ? T.type : T.label ? T.prop : "" : "", d = (T, P) => {
|
|
7720
|
+
if (T.length !== P.length)
|
|
7723
7721
|
return !1;
|
|
7724
|
-
const B =
|
|
7722
|
+
const B = T.map((U) => E(U));
|
|
7725
7723
|
for (let U of P) {
|
|
7726
7724
|
const Q = E(U);
|
|
7727
7725
|
if (B.indexOf(Q) === -1)
|
|
7728
7726
|
return !1;
|
|
7729
7727
|
}
|
|
7730
7728
|
return !0;
|
|
7731
|
-
}, h = (
|
|
7732
|
-
if (
|
|
7729
|
+
}, h = (T) => {
|
|
7730
|
+
if (!T) {
|
|
7733
7731
|
const P = e.tableRef.getColumnSetting(), B = P.srcColumnPropertyList;
|
|
7734
|
-
n = B.map((U, Q) => ({ ...U, sortIndex: Q })),
|
|
7732
|
+
n = B.map((U, Q) => ({ ...U, sortIndex: Q })), T = P.columnPropertyList, T && T.length > 0 && d(B, T) || (T = B);
|
|
7735
7733
|
}
|
|
7736
|
-
g(
|
|
7734
|
+
g(T);
|
|
7737
7735
|
}, v = () => {
|
|
7738
7736
|
e.tableRef.setColumnSetting(a.value);
|
|
7739
|
-
}, p = w(() => ({ "max-width": `${e.popoverWidth - 125}px` })), x = q(!1), I = q(!1), R = (
|
|
7737
|
+
}, p = w(() => ({ "max-width": `${e.popoverWidth - 125}px` })), x = q(!1), I = q(!1), R = (T) => {
|
|
7740
7738
|
const P = [];
|
|
7741
7739
|
a.value.forEach((U) => {
|
|
7742
|
-
|
|
7740
|
+
T && !(U.label === "" || U.type) && P.push(U.prop), U.visible = T;
|
|
7743
7741
|
}), x.value = !1, I.value = !1, s.value.length + r.value.length + o.value.length === P.length ? x.value = !0 : P.length > 0 && (I.value = !0), D.value = P, v();
|
|
7744
7742
|
}, N = () => {
|
|
7745
7743
|
h(n), v();
|
|
7746
|
-
}, D = q([]), A = (
|
|
7744
|
+
}, D = q([]), A = (T) => {
|
|
7747
7745
|
a.value.forEach((B) => {
|
|
7748
7746
|
if (B.label === "" || B.type)
|
|
7749
7747
|
return;
|
|
7750
|
-
const U =
|
|
7748
|
+
const U = T.indexOf(B.prop) !== -1;
|
|
7751
7749
|
B.visible = U;
|
|
7752
7750
|
}), x.value = !1, I.value = !1;
|
|
7753
7751
|
const P = s.value.length + r.value.length + o.value.length;
|
|
7754
|
-
|
|
7752
|
+
T.length === P ? x.value = !0 : T.length > 0 && (I.value = !0), v();
|
|
7755
7753
|
}, M = () => {
|
|
7756
7754
|
h();
|
|
7757
7755
|
};
|
|
@@ -7764,7 +7762,7 @@ const Cc = /* @__PURE__ */ Ue(xc, [["render", Tc]]), { componentName: vg, create
|
|
|
7764
7762
|
currentRow: null,
|
|
7765
7763
|
index: null,
|
|
7766
7764
|
roleType: null
|
|
7767
|
-
},
|
|
7765
|
+
}, $ = (T) => T ? T.dataset && T.dataset.role === "row" ? T : T.tagName.toLowerCase() !== "body" ? (T = T.parentElement, $(T)) : null : null;
|
|
7768
7766
|
return {
|
|
7769
7767
|
attrs: l,
|
|
7770
7768
|
leftFixedColumns: r,
|
|
@@ -7781,33 +7779,33 @@ const Cc = /* @__PURE__ */ Ue(xc, [["render", Tc]]), { componentName: vg, create
|
|
|
7781
7779
|
checkedValue: D,
|
|
7782
7780
|
handleCheckChange: A,
|
|
7783
7781
|
onShow: M,
|
|
7784
|
-
onDragStart: (
|
|
7785
|
-
const P =
|
|
7782
|
+
onDragStart: (T) => {
|
|
7783
|
+
const P = T.currentTarget;
|
|
7786
7784
|
P && P.dataset && (F.roleType = P.dataset.roleType, F.index = P.dataset.index);
|
|
7787
7785
|
},
|
|
7788
|
-
onDragEnd: (
|
|
7786
|
+
onDragEnd: (T) => {
|
|
7789
7787
|
F.currentRow && (F.currentRow.classList.remove("is-dragover"), F.currentRow = null), F.index = null, F.roleType = null;
|
|
7790
7788
|
},
|
|
7791
|
-
onDragOver: (
|
|
7792
|
-
const P =
|
|
7793
|
-
|
|
7794
|
-
const B =
|
|
7789
|
+
onDragOver: (T) => {
|
|
7790
|
+
const P = T.currentTarget;
|
|
7791
|
+
T.relatedTarget;
|
|
7792
|
+
const B = $(P);
|
|
7795
7793
|
if (!B)
|
|
7796
7794
|
return;
|
|
7797
7795
|
const U = B.dataset && B.dataset.roleType;
|
|
7798
|
-
F.roleType === U && (
|
|
7796
|
+
F.roleType === U && (T.preventDefault(), F.currentRow && F.currentRow !== B && F.currentRow.classList.remove("is-dragover"), B.classList.add("is-dragover"), F.currentRow = B);
|
|
7799
7797
|
},
|
|
7800
|
-
onDragLeave: (
|
|
7801
|
-
|
|
7798
|
+
onDragLeave: (T) => {
|
|
7799
|
+
T.preventDefault(), F.currentRow && (F.currentRow.classList.remove("is-dragover"), F.currentRow = null);
|
|
7802
7800
|
},
|
|
7803
|
-
onDrop: (
|
|
7804
|
-
const P =
|
|
7801
|
+
onDrop: (T) => {
|
|
7802
|
+
const P = T.currentTarget, B = $(P);
|
|
7805
7803
|
if (!B)
|
|
7806
7804
|
return;
|
|
7807
7805
|
const U = B.dataset && B.dataset.roleType;
|
|
7808
7806
|
if (F.roleType !== U)
|
|
7809
7807
|
return;
|
|
7810
|
-
|
|
7808
|
+
T.preventDefault();
|
|
7811
7809
|
const Q = Number(F.index), le = Number(B.dataset.index);
|
|
7812
7810
|
if (Q !== le) {
|
|
7813
7811
|
if (Q < le) {
|
|
@@ -7820,16 +7818,16 @@ const Cc = /* @__PURE__ */ Ue(xc, [["render", Tc]]), { componentName: vg, create
|
|
|
7820
7818
|
g(a.value), v();
|
|
7821
7819
|
}
|
|
7822
7820
|
},
|
|
7823
|
-
toLeftFixed: (
|
|
7824
|
-
const P = a.value[
|
|
7821
|
+
toLeftFixed: (T) => {
|
|
7822
|
+
const P = a.value[T];
|
|
7825
7823
|
P.fixed = "left", v();
|
|
7826
7824
|
},
|
|
7827
|
-
toRightFixed: (
|
|
7828
|
-
const P = a.value[
|
|
7825
|
+
toRightFixed: (T) => {
|
|
7826
|
+
const P = a.value[T];
|
|
7829
7827
|
P.fixed = "right", v();
|
|
7830
7828
|
},
|
|
7831
|
-
toUnFixed: (
|
|
7832
|
-
const P = a.value[
|
|
7829
|
+
toUnFixed: (T) => {
|
|
7830
|
+
const P = a.value[T];
|
|
7833
7831
|
P.fixed = void 0, v();
|
|
7834
7832
|
},
|
|
7835
7833
|
checkboxLabelStyle: p
|
|
@@ -8488,7 +8486,7 @@ function Xc(e, t, l) {
|
|
|
8488
8486
|
v.value = ve(b ?? {}), lt(v), O || (g.value = n.pageIndex ?? 1), St(async () => {
|
|
8489
8487
|
await M(n.data, g.value, d.value, p.value), z();
|
|
8490
8488
|
});
|
|
8491
|
-
}),
|
|
8489
|
+
}), $ = () => {
|
|
8492
8490
|
x.value = 0, I.value = [];
|
|
8493
8491
|
};
|
|
8494
8492
|
let C = !1;
|
|
@@ -8516,7 +8514,7 @@ function Xc(e, t, l) {
|
|
|
8516
8514
|
const z = H.length;
|
|
8517
8515
|
H.splice(0, z, b);
|
|
8518
8516
|
}
|
|
8519
|
-
}, K = a.attrs.id ?? n.prop ?? a.attrs.name,
|
|
8517
|
+
}, K = a.attrs.id ?? n.prop ?? a.attrs.name, T = cr(), P = q([]);
|
|
8520
8518
|
let B = [];
|
|
8521
8519
|
const U = () => ({
|
|
8522
8520
|
srcColumnPropertyList: B.map((O) => ({ ...O })),
|
|
@@ -8524,12 +8522,12 @@ function Xc(e, t, l) {
|
|
|
8524
8522
|
}), Q = (b) => {
|
|
8525
8523
|
P.value = [...b], J();
|
|
8526
8524
|
}, le = async () => {
|
|
8527
|
-
const b = await
|
|
8525
|
+
const b = await T.load(K);
|
|
8528
8526
|
b && (P.value = b);
|
|
8529
8527
|
}, J = () => {
|
|
8530
|
-
|
|
8528
|
+
T.save(K, P.value);
|
|
8531
8529
|
}, ee = () => {
|
|
8532
|
-
|
|
8530
|
+
T.remove(K);
|
|
8533
8531
|
};
|
|
8534
8532
|
le();
|
|
8535
8533
|
const de = (b) => b ? b.type ? b.type : b.label ? b.prop : "" : "", Z = w(() => {
|
|
@@ -8643,7 +8641,7 @@ function Xc(e, t, l) {
|
|
|
8643
8641
|
// 加载数据
|
|
8644
8642
|
loadData: F,
|
|
8645
8643
|
// 清空数据
|
|
8646
|
-
clearData:
|
|
8644
|
+
clearData: $,
|
|
8647
8645
|
// 获取数据
|
|
8648
8646
|
getData() {
|
|
8649
8647
|
return I.value;
|
|
@@ -8911,12 +8909,12 @@ function sf(e, t, l) {
|
|
|
8911
8909
|
}
|
|
8912
8910
|
},
|
|
8913
8911
|
n.prop ?? a.attrs.name
|
|
8914
|
-
), i = q(null), c = q(null), u = (A, M, F,
|
|
8912
|
+
), i = q(null), c = q(null), u = (A, M, F, $ = !0) => {
|
|
8915
8913
|
const C = af(n, A, M, F);
|
|
8916
8914
|
if (C === null) {
|
|
8917
8915
|
if (c.value === null)
|
|
8918
8916
|
return;
|
|
8919
|
-
c.value = null, i.value = null,
|
|
8917
|
+
c.value = null, i.value = null, $ && (s("update:modelValue", null), s("change", null));
|
|
8920
8918
|
return;
|
|
8921
8919
|
}
|
|
8922
8920
|
if (!fr(n, C, c.value)) {
|
|
@@ -8924,7 +8922,7 @@ function sf(e, t, l) {
|
|
|
8924
8922
|
const S = ve(C);
|
|
8925
8923
|
c.value = S;
|
|
8926
8924
|
let m = null;
|
|
8927
|
-
n.valueType === "text" ? m = Dt(n, S) : n.valueType === "item" ? m = S : m = jt(n, S),
|
|
8925
|
+
n.valueType === "text" ? m = Dt(n, S) : n.valueType === "item" ? m = S : m = jt(n, S), $ && (s("update:modelValue", m), s("change", m));
|
|
8928
8926
|
}
|
|
8929
8927
|
}, f = q([]), g = He(
|
|
8930
8928
|
w(() => n.lazyLoad),
|
|
@@ -8965,18 +8963,18 @@ function sf(e, t, l) {
|
|
|
8965
8963
|
let R = pe(n, "hintText"), N = pe(n, "hintVisible");
|
|
8966
8964
|
const D = (A, M) => {
|
|
8967
8965
|
const F = [];
|
|
8968
|
-
return A.forEach((
|
|
8969
|
-
const V = jt(n,
|
|
8970
|
-
let m = tf(n,
|
|
8966
|
+
return A.forEach(($, C) => {
|
|
8967
|
+
const V = jt(n, $), S = Dt(n, $);
|
|
8968
|
+
let m = tf(n, $);
|
|
8971
8969
|
r.value === !0 && (m = r.value), o.value === !0 && (m = o.value);
|
|
8972
|
-
const y = of(n,
|
|
8970
|
+
const y = of(n, $, C) ?? {}, H = `${V}_${C}`, k = {
|
|
8973
8971
|
...y,
|
|
8974
8972
|
key: H,
|
|
8975
8973
|
label: V,
|
|
8976
8974
|
size: n.size,
|
|
8977
8975
|
border: re(n.border)
|
|
8978
8976
|
};
|
|
8979
|
-
m && (k.disabled = m), n.itemType === "button" ? F.push(L(ga, k, { default: () => [S] })) : typeof M == "function" ? F.push(L(Pn, k, { default: () => M(
|
|
8977
|
+
m && (k.disabled = m), n.itemType === "button" ? F.push(L(ga, k, { default: () => [S] })) : typeof M == "function" ? F.push(L(Pn, k, { default: () => M($) })) : F.push(L(Pn, k, { default: () => [S] }));
|
|
8980
8978
|
}), F;
|
|
8981
8979
|
};
|
|
8982
8980
|
return () => {
|
|
@@ -8988,9 +8986,9 @@ function sf(e, t, l) {
|
|
|
8988
8986
|
"text-color": n.textColor,
|
|
8989
8987
|
fill: n.fill,
|
|
8990
8988
|
onChange: I
|
|
8991
|
-
}, F = [],
|
|
8992
|
-
a.slots.options ?
|
|
8993
|
-
const C = L(ma, M,
|
|
8989
|
+
}, F = [], $ = {};
|
|
8990
|
+
a.slots.options ? $.default = a.slots.options : $.default = () => D(f.value, a.slots.text);
|
|
8991
|
+
const C = L(ma, M, $);
|
|
8994
8992
|
F.push(C);
|
|
8995
8993
|
const V = {
|
|
8996
8994
|
default: () => F
|
|
@@ -9209,12 +9207,12 @@ function bf(e, t, l) {
|
|
|
9209
9207
|
}
|
|
9210
9208
|
},
|
|
9211
9209
|
n.prop ?? a.attrs.name
|
|
9212
|
-
), i = q([]), c = q([]), u = (A, M, F,
|
|
9210
|
+
), i = q([]), c = q([]), u = (A, M, F, $ = !0) => {
|
|
9213
9211
|
const C = vf(n, A, M, F);
|
|
9214
9212
|
if (C === null) {
|
|
9215
9213
|
if (c.value === null || c.value.length === 0)
|
|
9216
9214
|
return;
|
|
9217
|
-
i.value = [], c.value = [],
|
|
9215
|
+
i.value = [], c.value = [], $ && (s("update:modelValue", []), s("change", []));
|
|
9218
9216
|
return;
|
|
9219
9217
|
}
|
|
9220
9218
|
let V = !0;
|
|
@@ -9235,7 +9233,7 @@ function bf(e, t, l) {
|
|
|
9235
9233
|
S.push(It(n, H)), n.valueType === "text" ? m.push(Pt(n, H)) : n.valueType === "item" ? m.push(H) : m.push(It(n, H));
|
|
9236
9234
|
}), i.value = S;
|
|
9237
9235
|
const y = ve(m);
|
|
9238
|
-
|
|
9236
|
+
$ && (s("update:modelValue", y), s("change", y));
|
|
9239
9237
|
}
|
|
9240
9238
|
}, f = q([]), g = He(
|
|
9241
9239
|
w(() => n.lazyLoad),
|
|
@@ -9276,11 +9274,11 @@ function bf(e, t, l) {
|
|
|
9276
9274
|
let R = pe(n, "hintText"), N = pe(n, "hintVisible");
|
|
9277
9275
|
const D = (A, M) => {
|
|
9278
9276
|
const F = [];
|
|
9279
|
-
return A.forEach((
|
|
9280
|
-
const V = It(n,
|
|
9281
|
-
let m = hf(n,
|
|
9277
|
+
return A.forEach(($, C) => {
|
|
9278
|
+
const V = It(n, $), S = Pt(n, $);
|
|
9279
|
+
let m = hf(n, $);
|
|
9282
9280
|
r.value === !0 && (m = r.value), o.value === !0 && (m = o.value);
|
|
9283
|
-
const y = yf(n,
|
|
9281
|
+
const y = yf(n, $, C) ?? {}, H = `${V}_${C}`, k = {
|
|
9284
9282
|
...y,
|
|
9285
9283
|
key: H,
|
|
9286
9284
|
class: n.itemClass,
|
|
@@ -9288,7 +9286,7 @@ function bf(e, t, l) {
|
|
|
9288
9286
|
size: n.size,
|
|
9289
9287
|
border: re(n.border)
|
|
9290
9288
|
};
|
|
9291
|
-
m && (k.disabled = m), n.itemType === "button" ? F.push(L(ua, k, { default: () => [S] })) : typeof M == "function" ? F.push(L(kt, k, { default: () => M(
|
|
9289
|
+
m && (k.disabled = m), n.itemType === "button" ? F.push(L(ua, k, { default: () => [S] })) : typeof M == "function" ? F.push(L(kt, k, { default: () => M($) })) : F.push(L(kt, k, { default: () => [S] }));
|
|
9292
9290
|
}), F;
|
|
9293
9291
|
};
|
|
9294
9292
|
return () => {
|
|
@@ -9302,9 +9300,9 @@ function bf(e, t, l) {
|
|
|
9302
9300
|
max: _e(n.max),
|
|
9303
9301
|
min: _e(n.min),
|
|
9304
9302
|
onChange: I
|
|
9305
|
-
}, F = [],
|
|
9306
|
-
a.slots.options ?
|
|
9307
|
-
const C = L(un, M,
|
|
9303
|
+
}, F = [], $ = {};
|
|
9304
|
+
a.slots.options ? $.default = a.slots.options : $.default = () => D(f.value, a.slots.text);
|
|
9305
|
+
const C = L(un, M, $);
|
|
9308
9306
|
F.push(C);
|
|
9309
9307
|
const V = {
|
|
9310
9308
|
default: () => F
|
|
@@ -9532,17 +9530,17 @@ function Vf(e, t, l) {
|
|
|
9532
9530
|
a.slots.option && (A.default = a.slots.option);
|
|
9533
9531
|
const M = [], F = L(Ta, D, A);
|
|
9534
9532
|
M.push(F);
|
|
9535
|
-
const
|
|
9533
|
+
const $ = {
|
|
9536
9534
|
default: () => M
|
|
9537
9535
|
};
|
|
9538
|
-
a.slots.default && (
|
|
9536
|
+
a.slots.default && ($.label = a.slots.default), a.slots.fixedTip && ($.fixedTip = a.slots.fixedTip);
|
|
9539
9537
|
const V = {
|
|
9540
9538
|
...Be(n, Kl),
|
|
9541
9539
|
hintText: E.value,
|
|
9542
9540
|
hintVisible: d.value,
|
|
9543
9541
|
prop: `${n.prop}_item`
|
|
9544
9542
|
};
|
|
9545
|
-
return L(l, V,
|
|
9543
|
+
return L(l, V, $);
|
|
9546
9544
|
};
|
|
9547
9545
|
}
|
|
9548
9546
|
};
|
|
@@ -9637,11 +9635,11 @@ const zf = /* @__PURE__ */ Ue(Lf, [["render", jf]]), { componentName: xg, create
|
|
|
9637
9635
|
const y = document.querySelectorAll(`.fox-group[prop="${m}"] > div > .fox-item[prop]`), H = [];
|
|
9638
9636
|
return y.forEach((k) => {
|
|
9639
9637
|
const K = k.querySelector(".label--string");
|
|
9640
|
-
let
|
|
9641
|
-
K && (
|
|
9638
|
+
let T = "";
|
|
9639
|
+
K && (T = K.textContent ?? "");
|
|
9642
9640
|
const P = k.getAttribute("prop") ?? "", U = window.getComputedStyle(k, null).getPropertyValue("display");
|
|
9643
9641
|
H.push({
|
|
9644
|
-
label:
|
|
9642
|
+
label: T,
|
|
9645
9643
|
prop: P,
|
|
9646
9644
|
sortIndex: 0,
|
|
9647
9645
|
visible: U !== "none"
|
|
@@ -9695,7 +9693,7 @@ const zf = /* @__PURE__ */ Ue(Lf, [["render", jf]]), { componentName: xg, create
|
|
|
9695
9693
|
m.relatedTarget;
|
|
9696
9694
|
const H = D(y);
|
|
9697
9695
|
H && (m.preventDefault(), N.currentRow && N.currentRow !== H && N.currentRow.classList.remove("is-dragover"), H.classList.add("is-dragover"), N.currentRow = H);
|
|
9698
|
-
},
|
|
9696
|
+
}, $ = (m) => {
|
|
9699
9697
|
m.preventDefault(), N.currentRow && (N.currentRow.classList.remove("is-dragover"), N.currentRow = null);
|
|
9700
9698
|
}, C = (m) => {
|
|
9701
9699
|
const y = m.currentTarget, H = D(y);
|
|
@@ -9705,11 +9703,11 @@ const zf = /* @__PURE__ */ Ue(Lf, [["render", jf]]), { componentName: xg, create
|
|
|
9705
9703
|
const k = Number(N.index), K = Number(H.dataset.index);
|
|
9706
9704
|
if (k !== K) {
|
|
9707
9705
|
if (k < K) {
|
|
9708
|
-
const
|
|
9709
|
-
r.value.splice(k, 1), r.value.splice(K, 0,
|
|
9706
|
+
const T = r.value[k];
|
|
9707
|
+
r.value.splice(k, 1), r.value.splice(K, 0, T);
|
|
9710
9708
|
} else {
|
|
9711
|
-
const
|
|
9712
|
-
r.value.splice(k, 1), r.value.splice(K + 1, 0,
|
|
9709
|
+
const T = r.value[k];
|
|
9710
|
+
r.value.splice(k, 1), r.value.splice(K + 1, 0, T);
|
|
9713
9711
|
}
|
|
9714
9712
|
i(), g();
|
|
9715
9713
|
}
|
|
@@ -9739,7 +9737,7 @@ const zf = /* @__PURE__ */ Ue(Lf, [["render", jf]]), { componentName: xg, create
|
|
|
9739
9737
|
onDragStart: A,
|
|
9740
9738
|
onDragEnd: M,
|
|
9741
9739
|
onDragOver: F,
|
|
9742
|
-
onDragLeave:
|
|
9740
|
+
onDragLeave: $,
|
|
9743
9741
|
onDrop: C,
|
|
9744
9742
|
checkboxLabelStyle: E,
|
|
9745
9743
|
toTop: V,
|
|
@@ -10844,14 +10842,14 @@ const Xd = () => {
|
|
|
10844
10842
|
return;
|
|
10845
10843
|
const { key: v, altKey: p, ctrlKey: x, metaKey: I, currentTarget: R, shiftKey: N } = h, { loop: D } = e, A = v === "Tab" && !p && !x && !I, M = document.activeElement;
|
|
10846
10844
|
if (A && M) {
|
|
10847
|
-
const F = R, [
|
|
10848
|
-
if (
|
|
10845
|
+
const F = R, [$, C] = Gd(F);
|
|
10846
|
+
if ($ && C) {
|
|
10849
10847
|
if (!N && M === C) {
|
|
10850
10848
|
const S = Jt({
|
|
10851
10849
|
focusReason: o.value
|
|
10852
10850
|
});
|
|
10853
|
-
l("focusout-prevented", S), S.defaultPrevented || (h.preventDefault(), D && ut(
|
|
10854
|
-
} else if (N && [
|
|
10851
|
+
l("focusout-prevented", S), S.defaultPrevented || (h.preventDefault(), D && ut($, !0));
|
|
10852
|
+
} else if (N && [$, F].includes(M)) {
|
|
10855
10853
|
const S = Jt({
|
|
10856
10854
|
focusReason: o.value
|
|
10857
10855
|
});
|
|
@@ -11119,7 +11117,7 @@ const Xd = () => {
|
|
|
11119
11117
|
F(b);
|
|
11120
11118
|
}
|
|
11121
11119
|
);
|
|
11122
|
-
const
|
|
11120
|
+
const $ = () => {
|
|
11123
11121
|
C();
|
|
11124
11122
|
}, C = (b) => {
|
|
11125
11123
|
b = b ?? !M.value, F(b);
|
|
@@ -11128,7 +11126,7 @@ const Xd = () => {
|
|
|
11128
11126
|
const V = {
|
|
11129
11127
|
setCollapse: F,
|
|
11130
11128
|
setFixedNavVisible: (b) => {
|
|
11131
|
-
|
|
11129
|
+
T.value = b;
|
|
11132
11130
|
}
|
|
11133
11131
|
};
|
|
11134
11132
|
qe(oh, V);
|
|
@@ -11142,17 +11140,17 @@ const Xd = () => {
|
|
|
11142
11140
|
}), k = q(""), K = w(() => {
|
|
11143
11141
|
const b = {};
|
|
11144
11142
|
return k.value ? b.top = k.value : e.collapseTop && (b.top = e.collapseTop), b;
|
|
11145
|
-
}),
|
|
11143
|
+
}), T = q(M.value);
|
|
11146
11144
|
let P = null;
|
|
11147
11145
|
const B = () => {
|
|
11148
11146
|
typeof P == "function" && (P(), P = null);
|
|
11149
11147
|
}, U = () => {
|
|
11150
|
-
m.value && m.value.classList.add("slide-in"),
|
|
11148
|
+
m.value && m.value.classList.add("slide-in"), T.value = !0, P = () => {
|
|
11151
11149
|
m.value && m.value.classList.remove("slide-in");
|
|
11152
11150
|
};
|
|
11153
11151
|
}, Q = () => {
|
|
11154
11152
|
m.value && m.value.classList.add("slide-out"), P = () => {
|
|
11155
|
-
m.value && m.value.classList.remove("slide-out"),
|
|
11153
|
+
m.value && m.value.classList.remove("slide-out"), T.value = !1;
|
|
11156
11154
|
};
|
|
11157
11155
|
}, le = () => {
|
|
11158
11156
|
o.value = null, s.value = null, i.value = null, c.value = null;
|
|
@@ -11206,14 +11204,14 @@ const Xd = () => {
|
|
|
11206
11204
|
onClose: S,
|
|
11207
11205
|
dialogRef: I,
|
|
11208
11206
|
headerRef: R,
|
|
11209
|
-
onClickToggle:
|
|
11207
|
+
onClickToggle: $,
|
|
11210
11208
|
collapseIcon: E,
|
|
11211
11209
|
collapseText: d,
|
|
11212
11210
|
collapseTextClasses: p,
|
|
11213
11211
|
collapseIconClasses: x,
|
|
11214
11212
|
expandIcon: h,
|
|
11215
11213
|
expandText: v,
|
|
11216
|
-
isShowFixedNav:
|
|
11214
|
+
isShowFixedNav: T,
|
|
11217
11215
|
fixedNavRef: m,
|
|
11218
11216
|
fixedNavClasses: H,
|
|
11219
11217
|
fixedNavStyles: K,
|