@fox-js/foxui 4.0.1-61 → 4.0.1-62
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 +62 -110
- package/dist/index.umd.js +2 -2
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/package.json +1 -1
- package/dist/style.esm.js +0 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import Pt from "@fox-js/validator";
|
|
|
3
3
|
import { Left as Zn, RectUp as Aa, CircleClose as gt, Close as Dt, ArrowRight as Cn, MoreH as ni, Loading as Vt, Checklist as $a, Date as Ta, CheckNormal as ol, CheckChecked as oi, Checked as ll, CheckDisabled as li, Loading1 as ai, StarFillN as si, Search2 as ii, Minus as ri, Plus as ui, Uploader as ci, Right as al, Image as di, ImageError as fi, ArrowUp2 as Na, ArrowDown2 as xa, Check as Da, JoySmile as hi, Tips as Va, Photograph as mi, Failure as Ia, Del as qa, Link as pi, Top as gi, Success as yi, Service as vi, Notice as bi, DownArrow as Pa, TriangleUp as Si, TriangleDown as wi, Location as ki, Location2 as Ci, Edit as Ai, Fabulous as $i, Comment as Ti, MoreX as Ni } from "@fox-js/icons-vue";
|
|
4
4
|
import { useFoxI18n as Te } from "@fox-js/i18n";
|
|
5
5
|
/*!
|
|
6
|
-
* @fox-js/foxui-base v4.0.0
|
|
6
|
+
* @fox-js/foxui-base v4.0.0 Tue Jul 16 2024 13:55:19 GMT+0800 (中国标准时间)
|
|
7
7
|
*/
|
|
8
8
|
const Nn = window, xi = typeof window < "u";
|
|
9
9
|
function Di() {
|
|
@@ -375,8 +375,7 @@ function jt(...e) {
|
|
|
375
375
|
if (o === !0 && r && typeof r == "object") {
|
|
376
376
|
let d;
|
|
377
377
|
Array.isArray(r) ? d = i && Array.isArray(i) ? i : [] : d = i && typeof i == "object" ? i : {}, t[s] = jt(o, d, r);
|
|
378
|
-
} else
|
|
379
|
-
r !== void 0 && (t[s] = r);
|
|
378
|
+
} else r !== void 0 && (t[s] = r);
|
|
380
379
|
}
|
|
381
380
|
}
|
|
382
381
|
return t;
|
|
@@ -1707,6 +1706,8 @@ function $n() {
|
|
|
1707
1706
|
}
|
|
1708
1707
|
const Re = (e) => e ? `${xe(e)}px` : "";
|
|
1709
1708
|
function xe(e, t = -1) {
|
|
1709
|
+
if (e == null)
|
|
1710
|
+
return 0;
|
|
1710
1711
|
if (typeof e == "number")
|
|
1711
1712
|
return e > 0 && e < 1 && t > 0 ? e * t : e;
|
|
1712
1713
|
if (e = e.trim().toLocaleLowerCase(), e.length === 0)
|
|
@@ -1884,8 +1885,7 @@ function rt(e, t = "modelValue", l = null, n) {
|
|
|
1884
1885
|
if (typeof l == "function") {
|
|
1885
1886
|
const r = l(i);
|
|
1886
1887
|
r !== s.value && (s.value = r, n && n("setValue", r));
|
|
1887
|
-
} else
|
|
1888
|
-
i !== s.value && (s.value = i, n && n("setValue", i));
|
|
1888
|
+
} else i !== s.value && (s.value = i, n && n("setValue", i));
|
|
1889
1889
|
}), s;
|
|
1890
1890
|
}
|
|
1891
1891
|
const za = /* @__PURE__ */ new Map(), zn = /* @__PURE__ */ new Map();
|
|
@@ -5086,8 +5086,7 @@ const { componentName: qu, create: Pu, scope: Eu } = ae("money-item"), Bu = Pu(I
|
|
|
5086
5086
|
e.disabled || e.readonly || t("focus", m);
|
|
5087
5087
|
},
|
|
5088
5088
|
blur: (m) => {
|
|
5089
|
-
if (e.disabled || e.readonly)
|
|
5090
|
-
return;
|
|
5089
|
+
if (e.disabled || e.readonly) return;
|
|
5091
5090
|
let g = m.target.value;
|
|
5092
5091
|
r(g, m), t("blur", { value: g, event: m });
|
|
5093
5092
|
}
|
|
@@ -7716,8 +7715,7 @@ var ps = { exports: {} };
|
|
|
7716
7715
|
var I = -R.utcOffset(), q = Math.abs(I), j = Math.floor(q / 60), M = q % 60;
|
|
7717
7716
|
return (I <= 0 ? "+" : "-") + p(j, 2, "0") + ":" + p(M, 2, "0");
|
|
7718
7717
|
}, m: function R(I, q) {
|
|
7719
|
-
if (I.date() < q.date())
|
|
7720
|
-
return -R(q, I);
|
|
7718
|
+
if (I.date() < q.date()) return -R(q, I);
|
|
7721
7719
|
var j = 12 * (q.year() - I.year()) + (q.month() - I.month()), M = I.clone().add(j, u), _ = q - M < 0, Q = I.clone().add(j + (_ ? -1 : 1), u);
|
|
7722
7720
|
return +(-(j + (q - M) / (_ ? M - Q : Q - M)) || 0);
|
|
7723
7721
|
}, a: function(R) {
|
|
@@ -7732,22 +7730,19 @@ var ps = { exports: {} };
|
|
|
7732
7730
|
return R instanceof D;
|
|
7733
7731
|
}, N = function R(I, q, j) {
|
|
7734
7732
|
var M;
|
|
7735
|
-
if (!I)
|
|
7736
|
-
return T;
|
|
7733
|
+
if (!I) return T;
|
|
7737
7734
|
if (typeof I == "string") {
|
|
7738
7735
|
var _ = I.toLowerCase();
|
|
7739
7736
|
A[_] && (M = _), q && (A[_] = q, M = _);
|
|
7740
7737
|
var Q = I.split("-");
|
|
7741
|
-
if (!M && Q.length > 1)
|
|
7742
|
-
return R(Q[0]);
|
|
7738
|
+
if (!M && Q.length > 1) return R(Q[0]);
|
|
7743
7739
|
} else {
|
|
7744
7740
|
var se = I.name;
|
|
7745
7741
|
A[se] = I, M = se;
|
|
7746
7742
|
}
|
|
7747
7743
|
return !j && M && (T = M), M || !j && T;
|
|
7748
7744
|
}, x = function(R, I) {
|
|
7749
|
-
if ($(R))
|
|
7750
|
-
return R.clone();
|
|
7745
|
+
if ($(R)) return R.clone();
|
|
7751
7746
|
var q = typeof I == "object" ? I : {};
|
|
7752
7747
|
return q.date = R, q.args = arguments, new D(q);
|
|
7753
7748
|
}, V = k;
|
|
@@ -7762,12 +7757,9 @@ var ps = { exports: {} };
|
|
|
7762
7757
|
return I.parse = function(q) {
|
|
7763
7758
|
this.$d = function(j) {
|
|
7764
7759
|
var M = j.date, _ = j.utc;
|
|
7765
|
-
if (M === null)
|
|
7766
|
-
|
|
7767
|
-
if (
|
|
7768
|
-
return /* @__PURE__ */ new Date();
|
|
7769
|
-
if (M instanceof Date)
|
|
7770
|
-
return new Date(M);
|
|
7760
|
+
if (M === null) return /* @__PURE__ */ new Date(NaN);
|
|
7761
|
+
if (V.u(M)) return /* @__PURE__ */ new Date();
|
|
7762
|
+
if (M instanceof Date) return new Date(M);
|
|
7771
7763
|
if (typeof M == "string" && !/Z$/i.test(M)) {
|
|
7772
7764
|
var Q = M.match(v);
|
|
7773
7765
|
if (Q) {
|
|
@@ -7831,8 +7823,7 @@ var ps = { exports: {} };
|
|
|
7831
7823
|
if (_ === u || _ === S) {
|
|
7832
7824
|
var ee = this.clone().set(g, 1);
|
|
7833
7825
|
ee.$d[se](ie), ee.init(), this.$d = ee.set(g, Math.min(this.$D, ee.daysInMonth())).$d;
|
|
7834
|
-
} else
|
|
7835
|
-
se && this.$d[se](ie);
|
|
7826
|
+
} else se && this.$d[se](ie);
|
|
7836
7827
|
return this.init(), this;
|
|
7837
7828
|
}, I.set = function(q, j) {
|
|
7838
7829
|
return this.clone().$set(q, j);
|
|
@@ -7845,22 +7836,17 @@ var ps = { exports: {} };
|
|
|
7845
7836
|
var z = x(_);
|
|
7846
7837
|
return V.w(z.date(z.date() + Math.round(L * q)), _);
|
|
7847
7838
|
};
|
|
7848
|
-
if (Q === u)
|
|
7849
|
-
|
|
7850
|
-
if (Q ===
|
|
7851
|
-
|
|
7852
|
-
if (Q === d)
|
|
7853
|
-
return se(1);
|
|
7854
|
-
if (Q === h)
|
|
7855
|
-
return se(7);
|
|
7839
|
+
if (Q === u) return this.set(u, this.$M + q);
|
|
7840
|
+
if (Q === S) return this.set(S, this.$y + q);
|
|
7841
|
+
if (Q === d) return se(1);
|
|
7842
|
+
if (Q === h) return se(7);
|
|
7856
7843
|
var ie = (M = {}, M[i] = n, M[r] = o, M[s] = l, M)[Q] || 1, ee = this.$d.getTime() + q * ie;
|
|
7857
7844
|
return V.w(ee, this);
|
|
7858
7845
|
}, I.subtract = function(q, j) {
|
|
7859
7846
|
return this.add(-1 * q, j);
|
|
7860
7847
|
}, I.format = function(q) {
|
|
7861
7848
|
var j = this, M = this.$locale();
|
|
7862
|
-
if (!this.isValid())
|
|
7863
|
-
return M.invalidDate || y;
|
|
7849
|
+
if (!this.isValid()) return M.invalidDate || y;
|
|
7864
7850
|
var _ = q || "YYYY-MM-DDTHH:mm:ssZ", Q = V.z(this), se = this.$H, ie = this.$m, ee = this.$M, L = M.weekdays, z = M.months, O = function(ne, re, pe, X) {
|
|
7865
7851
|
return ne && (ne[re] || ne(j, _)) || pe[re].slice(0, X);
|
|
7866
7852
|
}, U = function(ne) {
|
|
@@ -7882,8 +7868,7 @@ var ps = { exports: {} };
|
|
|
7882
7868
|
}, I.$locale = function() {
|
|
7883
7869
|
return A[this.$L];
|
|
7884
7870
|
}, I.locale = function(q, j) {
|
|
7885
|
-
if (!q)
|
|
7886
|
-
return this.$L;
|
|
7871
|
+
if (!q) return this.$L;
|
|
7887
7872
|
var M = this.clone(), _ = N(q, j, !0);
|
|
7888
7873
|
return _ && (M.$L = _), M;
|
|
7889
7874
|
}, I.clone = function() {
|
|
@@ -7924,8 +7909,7 @@ var gs = { exports: {} };
|
|
|
7924
7909
|
};
|
|
7925
7910
|
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(y) {
|
|
7926
7911
|
(this.zone || (this.zone = {})).offset = function(v) {
|
|
7927
|
-
if (!v || v === "Z")
|
|
7928
|
-
return 0;
|
|
7912
|
+
if (!v || v === "Z") return 0;
|
|
7929
7913
|
var c = v.match(/([+-]|\d\d)/g), f = 60 * c[1] + (+c[2] || 0);
|
|
7930
7914
|
return f === 0 ? 0 : c[0] === "+" ? -f : f;
|
|
7931
7915
|
}(y);
|
|
@@ -7935,13 +7919,11 @@ var gs = { exports: {} };
|
|
|
7935
7919
|
}, m = function(y, v) {
|
|
7936
7920
|
var c, f = i.meridiem;
|
|
7937
7921
|
if (f) {
|
|
7938
|
-
for (var p = 1; p <= 24; p += 1)
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
} else
|
|
7944
|
-
c = y === (v ? "pm" : "PM");
|
|
7922
|
+
for (var p = 1; p <= 24; p += 1) if (y.indexOf(f(p, 0, v)) > -1) {
|
|
7923
|
+
c = p > 12;
|
|
7924
|
+
break;
|
|
7925
|
+
}
|
|
7926
|
+
} else c = y === (v ? "pm" : "PM");
|
|
7945
7927
|
return c;
|
|
7946
7928
|
}, S = { A: [s, function(y) {
|
|
7947
7929
|
this.afternoon = m(y, !1);
|
|
@@ -7955,20 +7937,16 @@ var gs = { exports: {} };
|
|
|
7955
7937
|
this.milliseconds = +y;
|
|
7956
7938
|
}], s: [a, d("seconds")], ss: [a, d("seconds")], m: [a, d("minutes")], mm: [a, d("minutes")], H: [a, d("hours")], h: [a, d("hours")], HH: [a, d("hours")], hh: [a, d("hours")], D: [a, d("day")], DD: [o, d("day")], Do: [s, function(y) {
|
|
7957
7939
|
var v = i.ordinal, c = y.match(/\d+/);
|
|
7958
|
-
if (this.day = c[0], v)
|
|
7959
|
-
for (var f = 1; f <= 31; f += 1)
|
|
7960
|
-
v(f).replace(/\[|\]/g, "") === y && (this.day = f);
|
|
7940
|
+
if (this.day = c[0], v) for (var f = 1; f <= 31; f += 1) v(f).replace(/\[|\]/g, "") === y && (this.day = f);
|
|
7961
7941
|
}], M: [a, d("month")], MM: [o, d("month")], MMM: [s, function(y) {
|
|
7962
7942
|
var v = u("months"), c = (u("monthsShort") || v.map(function(f) {
|
|
7963
7943
|
return f.slice(0, 3);
|
|
7964
7944
|
})).indexOf(y) + 1;
|
|
7965
|
-
if (c < 1)
|
|
7966
|
-
throw new Error();
|
|
7945
|
+
if (c < 1) throw new Error();
|
|
7967
7946
|
this.month = c % 12 || c;
|
|
7968
7947
|
}], MMMM: [s, function(y) {
|
|
7969
7948
|
var v = u("months").indexOf(y) + 1;
|
|
7970
|
-
if (v < 1)
|
|
7971
|
-
throw new Error();
|
|
7949
|
+
if (v < 1) throw new Error();
|
|
7972
7950
|
this.month = v % 12 || v;
|
|
7973
7951
|
}], Y: [/[+-]?\d+/, d("year")], YY: [o, function(y) {
|
|
7974
7952
|
this.year = r(y);
|
|
@@ -7988,8 +7966,7 @@ var gs = { exports: {} };
|
|
|
7988
7966
|
return function(x) {
|
|
7989
7967
|
for (var V = {}, D = 0, B = 0; D < p; D += 1) {
|
|
7990
7968
|
var R = f[D];
|
|
7991
|
-
if (typeof R == "string")
|
|
7992
|
-
B += R.length;
|
|
7969
|
+
if (typeof R == "string") B += R.length;
|
|
7993
7970
|
else {
|
|
7994
7971
|
var I = R.regex, q = R.parser, j = x.slice(B), M = I.exec(j)[0];
|
|
7995
7972
|
q.call(V, M), x = x.replace(M, "");
|
|
@@ -8015,8 +7992,7 @@ var gs = { exports: {} };
|
|
|
8015
7992
|
var x = $[2] === !0, V = $[3] === !0, D = x || V, B = $[2];
|
|
8016
7993
|
V && (B = $[2]), i = this.$locale(), !x && B && (i = c.Ls[B]), this.$d = function(j, M, _) {
|
|
8017
7994
|
try {
|
|
8018
|
-
if (["x", "X"].indexOf(M) > -1)
|
|
8019
|
-
return new Date((M === "X" ? 1e3 : 1) * j);
|
|
7995
|
+
if (["x", "X"].indexOf(M) > -1) return new Date((M === "X" ? 1e3 : 1) * j);
|
|
8020
7996
|
var Q = g(M)(j), se = Q.year, ie = Q.month, ee = Q.day, L = Q.hours, z = Q.minutes, O = Q.seconds, U = Q.milliseconds, F = Q.zone, Y = /* @__PURE__ */ new Date(), ne = ee || (se || ie ? 1 : Y.getDate()), re = se || Y.getFullYear(), pe = 0;
|
|
8021
7997
|
se && !ie || (pe = ie > 0 ? ie - 1 : Y.getMonth());
|
|
8022
7998
|
var X = L || 0, J = z || 0, oe = O || 0, W = U || 0;
|
|
@@ -8025,18 +8001,16 @@ var gs = { exports: {} };
|
|
|
8025
8001
|
return /* @__PURE__ */ new Date("");
|
|
8026
8002
|
}
|
|
8027
8003
|
}(T, N, A), this.init(), B && B !== !0 && (this.$L = this.locale(B).$L), D && T != this.format(N) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
|
|
8028
|
-
} else if (N instanceof Array)
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
break;
|
|
8035
|
-
}
|
|
8036
|
-
I === R && (this.$d = /* @__PURE__ */ new Date(""));
|
|
8004
|
+
} else if (N instanceof Array) for (var R = N.length, I = 1; I <= R; I += 1) {
|
|
8005
|
+
$[1] = N[I - 1];
|
|
8006
|
+
var q = c.apply(this, $);
|
|
8007
|
+
if (q.isValid()) {
|
|
8008
|
+
this.$d = q.$d, this.$L = q.$L, this.init();
|
|
8009
|
+
break;
|
|
8037
8010
|
}
|
|
8038
|
-
|
|
8039
|
-
|
|
8011
|
+
I === R && (this.$d = /* @__PURE__ */ new Date(""));
|
|
8012
|
+
}
|
|
8013
|
+
else p.call(this, k);
|
|
8040
8014
|
};
|
|
8041
8015
|
};
|
|
8042
8016
|
});
|
|
@@ -8055,8 +8029,7 @@ var ys = { exports: {} };
|
|
|
8055
8029
|
return "[" + i + (r[(d - 20) % 10] || r[d] || r[0]) + "]";
|
|
8056
8030
|
}, a.format = function(i) {
|
|
8057
8031
|
var r = this, d = this.$locale();
|
|
8058
|
-
if (!this.isValid())
|
|
8059
|
-
return s.bind(this)(i);
|
|
8032
|
+
if (!this.isValid()) return s.bind(this)(i);
|
|
8060
8033
|
var h = this.$utils(), u = (i || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(m) {
|
|
8061
8034
|
switch (m) {
|
|
8062
8035
|
case "Q":
|
|
@@ -8109,8 +8082,7 @@ var vs = { exports: {} };
|
|
|
8109
8082
|
var v = u.name ? u : u.$locale(), c = s(v[m]), f = s(v[S]), p = c || f.map(function(T) {
|
|
8110
8083
|
return T.slice(0, g);
|
|
8111
8084
|
});
|
|
8112
|
-
if (!y)
|
|
8113
|
-
return p;
|
|
8085
|
+
if (!y) return p;
|
|
8114
8086
|
var k = v.weekStart;
|
|
8115
8087
|
return p.map(function(T, A) {
|
|
8116
8088
|
return p[(A + (k || 0)) % 7];
|
|
@@ -8185,13 +8157,11 @@ var bs = { exports: {} };
|
|
|
8185
8157
|
return function(o, a, s) {
|
|
8186
8158
|
var i = a.prototype;
|
|
8187
8159
|
i.week = function(r) {
|
|
8188
|
-
if (r === void 0 && (r = null), r !== null)
|
|
8189
|
-
return this.add(7 * (r - this.week()), "day");
|
|
8160
|
+
if (r === void 0 && (r = null), r !== null) return this.add(7 * (r - this.week()), "day");
|
|
8190
8161
|
var d = this.$locale().yearStart || 1;
|
|
8191
8162
|
if (this.month() === 11 && this.date() > 25) {
|
|
8192
8163
|
var h = s(this).startOf(n).add(1, n).date(d), u = s(this).endOf(l);
|
|
8193
|
-
if (h.isBefore(u))
|
|
8194
|
-
return 1;
|
|
8164
|
+
if (h.isBefore(u)) return 1;
|
|
8195
8165
|
}
|
|
8196
8166
|
var m = s(this).startOf(n).date(d).startOf(l).subtract(1, "millisecond"), S = this.diff(m, l, !0);
|
|
8197
8167
|
return S < 0 ? s(this).startOf("week").week() : Math.ceil(S);
|
|
@@ -10909,8 +10879,7 @@ const { componentName: lh, create: ah, scope: sh } = ae("checkbox-item"), ih = a
|
|
|
10909
10879
|
}));
|
|
10910
10880
|
let a = "";
|
|
10911
10881
|
const s = (i) => {
|
|
10912
|
-
if (e.disabled || e.loading)
|
|
10913
|
-
return;
|
|
10882
|
+
if (e.disabled || e.loading) return;
|
|
10914
10883
|
a = "click";
|
|
10915
10884
|
const r = l.value ? e.inactiveValue : e.activeValue;
|
|
10916
10885
|
t("update:modelValue", r), t("change", r, i);
|
|
@@ -11240,8 +11209,7 @@ const { componentName: bh, create: Sh, scope: wh } = ae("link-item"), kh = Sh(vh
|
|
|
11240
11209
|
})), a = (S) => {
|
|
11241
11210
|
t("update:modelValue", S), t("change", S);
|
|
11242
11211
|
}, s = (S, g) => {
|
|
11243
|
-
if (e.disabled || e.readonly)
|
|
11244
|
-
return;
|
|
11212
|
+
if (e.disabled || e.readonly) return;
|
|
11245
11213
|
let y = 0;
|
|
11246
11214
|
g === 1 && e.modelValue === g || (y = g, e.allowHalf && S == 2 && (y -= 0.5)), a(y);
|
|
11247
11215
|
}, i = (S, g, y) => {
|
|
@@ -12685,8 +12653,7 @@ const { componentName: um, create: cm, scope: dm } = ae("actionsheet-item"), fm
|
|
|
12685
12653
|
}, h = (S) => {
|
|
12686
12654
|
e.disabled || e.readonly || t("focus", S);
|
|
12687
12655
|
}, u = (S) => {
|
|
12688
|
-
if (e.disabled || e.readonly)
|
|
12689
|
-
return;
|
|
12656
|
+
if (e.disabled || e.readonly) return;
|
|
12690
12657
|
let y = S.target.valueAsNumber;
|
|
12691
12658
|
y < Number(e.min) ? y = Number(e.min) : y > Number(e.max) && (y = Number(e.max)), a(y, S), t("blur", S);
|
|
12692
12659
|
}, m = (S) => {
|
|
@@ -15020,8 +14987,7 @@ const Pg = /* @__PURE__ */ he(Ig, [["render", qg]]), { create: Eg } = ae("sticky
|
|
|
15020
14987
|
zIndex: Number(e.zIndex)
|
|
15021
14988
|
} : {}), r = () => {
|
|
15022
14989
|
const d = e.container;
|
|
15023
|
-
if (!l.value && !d)
|
|
15024
|
-
return;
|
|
14990
|
+
if (!l.value && !d) return;
|
|
15025
14991
|
const h = st(l), u = n.value, m = st(u), S = st(d);
|
|
15026
14992
|
o.height = h.height;
|
|
15027
14993
|
const g = () => {
|
|
@@ -15255,8 +15221,7 @@ const { create: Gg, componentName: ya } = ae("grid-item"), Zg = Gg({
|
|
|
15255
15221
|
emits: ["click"],
|
|
15256
15222
|
setup(e, { emit: t }) {
|
|
15257
15223
|
const l = Qg(Ls);
|
|
15258
|
-
if (!l.parent)
|
|
15259
|
-
return {};
|
|
15224
|
+
if (!l.parent) return {};
|
|
15260
15225
|
const n = l.index, o = l.parent.props, a = w(() => ({
|
|
15261
15226
|
[ya]: !0
|
|
15262
15227
|
})), s = w(() => {
|
|
@@ -16274,8 +16239,7 @@ const jo = /* @__PURE__ */ he(ov, [["render", cv]]), { componentName: bN, create
|
|
|
16274
16239
|
}), d = (m, S) => {
|
|
16275
16240
|
m > r.value || m < 1 || (m != o.value && t("update:modelValue", m), S && t("change", m));
|
|
16276
16241
|
}, h = (m, S, g = !1) => ({ number: m, text: S, active: g }), u = w(() => {
|
|
16277
|
-
if (a.value == "simple")
|
|
16278
|
-
return;
|
|
16242
|
+
if (a.value == "simple") return;
|
|
16279
16243
|
let m = [];
|
|
16280
16244
|
const S = r.value, g = +s.value;
|
|
16281
16245
|
let y = 1, v = S;
|
|
@@ -16574,8 +16538,7 @@ const { create: Cv } = ae("tabs"), Av = Cv({
|
|
|
16574
16538
|
color: e.type == "smile" ? e.color : "",
|
|
16575
16539
|
background: e.type == "line" ? e.color : ""
|
|
16576
16540
|
})), N = w(() => {
|
|
16577
|
-
if (!e.titleGutter)
|
|
16578
|
-
return {};
|
|
16541
|
+
if (!e.titleGutter) return {};
|
|
16579
16542
|
const V = Re(e.titleGutter);
|
|
16580
16543
|
return e.direction === "vertical" ? { marginTop: V, marginBottom: V } : { marginLeft: V, marginRight: V };
|
|
16581
16544
|
}), x = w(() => l.fixedTitle);
|
|
@@ -19837,8 +19800,7 @@ const { componentName: X1, create: Q1 } = ae("list"), ba = document.documentElem
|
|
|
19837
19800
|
c = Array.from(c).filter(($) => $.nodeType === 1);
|
|
19838
19801
|
const f = c[0];
|
|
19839
19802
|
c.forEach(($, N) => {
|
|
19840
|
-
if (!$)
|
|
19841
|
-
return;
|
|
19803
|
+
if (!$) return;
|
|
19842
19804
|
const x = st($), { height: V } = x, B = a.cachePositions[N + a.start].height - V;
|
|
19843
19805
|
B && (a.cachePositions[N + a.start].bottom -= B, a.cachePositions[N + a.start].height = V, a.cachePositions[N + a.start].dValue = B);
|
|
19844
19806
|
});
|
|
@@ -20909,8 +20871,7 @@ const cw = /* @__PURE__ */ he(_S, [["render", uw]]), { create: dw, componentName
|
|
|
20909
20871
|
const { active: _ } = o;
|
|
20910
20872
|
return M ? e.loop ? At(_ + M, -1, m.value) : At(_ + M, 0, m.value - 1) : _;
|
|
20911
20873
|
}, T = ({ pace: M = 0, offset: _ = 0, isEmit: Q = !1 }) => {
|
|
20912
|
-
if (m.value <= 1)
|
|
20913
|
-
return;
|
|
20874
|
+
if (m.value <= 1) return;
|
|
20914
20875
|
const { active: se } = o, ie = k(M), ee = p(ie, _);
|
|
20915
20876
|
if (e.loop) {
|
|
20916
20877
|
if (o.children[0] && ee !== y.value) {
|
|
@@ -20962,8 +20923,7 @@ const cw = /* @__PURE__ */ he(_S, [["render", uw]]), { create: dw, componentName
|
|
|
20962
20923
|
offset: h.value
|
|
20963
20924
|
}));
|
|
20964
20925
|
}, j = (M) => {
|
|
20965
|
-
if (!e.touchable || !o.moving)
|
|
20966
|
-
return;
|
|
20926
|
+
if (!e.touchable || !o.moving) return;
|
|
20967
20927
|
const _ = h.value / (Date.now() - o.touchTime);
|
|
20968
20928
|
if ((Math.abs(_) > 0.3 || Math.abs(h.value) > +(S.value / 2).toFixed(2)) && u.value) {
|
|
20969
20929
|
let se = 0;
|
|
@@ -20972,8 +20932,7 @@ const cw = /* @__PURE__ */ he(_S, [["render", uw]]), { create: dw, componentName
|
|
|
20972
20932
|
pace: se,
|
|
20973
20933
|
isEmit: !0
|
|
20974
20934
|
});
|
|
20975
|
-
} else
|
|
20976
|
-
h.value && T({ pace: 0 });
|
|
20935
|
+
} else h.value && T({ pace: 0 });
|
|
20977
20936
|
o.moving = !1, c(), B();
|
|
20978
20937
|
};
|
|
20979
20938
|
return Ve("parent", {
|
|
@@ -21792,8 +21751,7 @@ function Bw(e, t, l, n, o, a) {
|
|
|
21792
21751
|
]);
|
|
21793
21752
|
}
|
|
21794
21753
|
const Mw = /* @__PURE__ */ he(qw, [["render", Bw]]), Ow = (e) => {
|
|
21795
|
-
if (!e)
|
|
21796
|
-
return Date.now();
|
|
21754
|
+
if (!e) return Date.now();
|
|
21797
21755
|
let t = Number(e), l = t > 0 ? +t : t.toString().replace(/\-/g, "/");
|
|
21798
21756
|
return new Date(l).getTime();
|
|
21799
21757
|
}, { componentName: Lw, create: Rw } = ae("countdown"), Fw = Rw({
|
|
@@ -21977,8 +21935,7 @@ const Hw = /* @__PURE__ */ he(Fw, [["render", zw]]), { create: Uw } = ae("badge"
|
|
|
21977
21935
|
zIndex: e.zIndex,
|
|
21978
21936
|
background: e.color
|
|
21979
21937
|
})), n = w(() => {
|
|
21980
|
-
if (e.dot)
|
|
21981
|
-
return;
|
|
21938
|
+
if (e.dot) return;
|
|
21982
21939
|
const o = e.value, a = e.max;
|
|
21983
21940
|
return typeof o == "number" && typeof a == "number" && a < o ? `${a}+` : o;
|
|
21984
21941
|
});
|
|
@@ -22143,8 +22100,7 @@ const _o = /* @__PURE__ */ he(Jw, [["render", _w]]), { create: ek } = ae("popove
|
|
|
22143
22100
|
return p && (f[`border${d(A)}Color`] = p), e.arrowOffset != 0 && (["bottom", "top"].includes(A) && ($ || (f.left = `calc(50% + ${k}px)`), $ == "start" && (f.left = `${N + k}px`), $ == "end" && (f.right = `${N - k}px`)), ["left", "right"].includes(A) && ($ || (f.top = `calc(50% - ${k}px)`), $ == "start" && (f.top = `${N - k}px`), $ == "end" && (f.bottom = `${N + k}px`))), f;
|
|
22144
22101
|
}), d = (f) => (f = f.toLowerCase(), f = f.replace(/\b\w+\b/g, (p) => p.substring(0, 1).toUpperCase() + p.substring(1)), f), h = w(() => {
|
|
22145
22102
|
let f = {};
|
|
22146
|
-
if (!a.value || !s.value)
|
|
22147
|
-
return {};
|
|
22103
|
+
if (!a.value || !s.value) return {};
|
|
22148
22104
|
const p = s.value.width, k = s.value.height, { width: T, height: A, left: $, top: N } = a.value, { location: x, offset: V } = e, D = x.split("-")[0], B = x.split("-")[1];
|
|
22149
22105
|
let R = 0, I = 0;
|
|
22150
22106
|
if (rl(V) && V.length == 2 && (R += Number(V[1]), I += Number(V[0])), T) {
|
|
@@ -22777,8 +22733,7 @@ const Qk = /* @__PURE__ */ he(Lk, [["render", Xk]]), { componentName: Gk, create
|
|
|
22777
22733
|
r();
|
|
22778
22734
|
});
|
|
22779
22735
|
const r = () => {
|
|
22780
|
-
if (!l.value)
|
|
22781
|
-
return;
|
|
22736
|
+
if (!l.value) return;
|
|
22782
22737
|
const y = window.getComputedStyle(l.value);
|
|
22783
22738
|
n = document.createElement("div"), Array.prototype.slice.apply(y).forEach((f) => {
|
|
22784
22739
|
n.style.setProperty(f, y.getPropertyValue(f));
|
|
@@ -22815,8 +22770,7 @@ const Qk = /* @__PURE__ */ he(Lk, [["render", Xk]]), { componentName: Gk, create
|
|
|
22815
22770
|
const p = Math.floor((y[0] + y[1]) / 2), k = Math.ceil((v[0] + v[1]) / 2);
|
|
22816
22771
|
return n.innerText = e.content.slice(0, p) + e.symbol + c + e.symbol + e.content.slice(k, f), n.offsetHeight <= o ? u([p, y[1]], [v[0], k]) : u([y[0], p], [k, v[1]]);
|
|
22817
22772
|
}, m = (y) => {
|
|
22818
|
-
if (!y)
|
|
22819
|
-
return 0;
|
|
22773
|
+
if (!y) return 0;
|
|
22820
22774
|
const v = y.match(/^\d*(\.\d*)?/);
|
|
22821
22775
|
return v ? Number(v[0]) : 0;
|
|
22822
22776
|
}, S = (y) => {
|
|
@@ -23435,10 +23389,8 @@ const qC = /* @__PURE__ */ he(kC, [["render", IC]]), { componentName: $N, create
|
|
|
23435
23389
|
return e.town;
|
|
23436
23390
|
}
|
|
23437
23391
|
}), S = (q) => {
|
|
23438
|
-
if (!Array.isArray(q))
|
|
23439
|
-
|
|
23440
|
-
if (!q.length)
|
|
23441
|
-
return [];
|
|
23392
|
+
if (!Array.isArray(q)) throw new TypeError("params muse be array.");
|
|
23393
|
+
if (!q.length) return [];
|
|
23442
23394
|
q.forEach((M) => {
|
|
23443
23395
|
if (!M.title) {
|
|
23444
23396
|
console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");
|