abl-ui 0.2.37 → 0.2.38
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/lib/abl-ui.es.js +135 -131
- package/lib/abl-ui.umd.js +2 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/abl-ui.es.js
CHANGED
|
@@ -166,11 +166,11 @@ const En = { class: "abl-tabs" }, Vn = {
|
|
|
166
166
|
const n = t, o = Ye(), a = e, s = _({}), r = _(), i = _([]), l = _(), d = _(a.modelValue), b = _(!1), f = _(!1), h = _(!0);
|
|
167
167
|
i.value = (x = o.default()) == null ? void 0 : x.map(({ props: p }) => {
|
|
168
168
|
if (p) {
|
|
169
|
-
const { title: k, value: A, icon:
|
|
169
|
+
const { title: k, value: A, icon: S } = p;
|
|
170
170
|
return {
|
|
171
171
|
title: k,
|
|
172
172
|
value: A,
|
|
173
|
-
icon:
|
|
173
|
+
icon: S
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
}), Me("active", d);
|
|
@@ -200,50 +200,54 @@ const En = { class: "abl-tabs" }, Vn = {
|
|
|
200
200
|
k.scrollWidth > k.clientWidth ? b.value = !0 : b.value = !1, k.addEventListener("scroll", function(A) {
|
|
201
201
|
A.target.scrollLeft + A.target.offsetWidth >= A.target.scrollWidth - 1 && (h.value = !1, f.value = !0), A.target.scrollLeft == 0 && (h.value = !0, f.value = !1);
|
|
202
202
|
});
|
|
203
|
-
}), (p, k) =>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
203
|
+
}), (p, k) => {
|
|
204
|
+
var A;
|
|
205
|
+
return u(), v("div", En, [
|
|
206
|
+
c("div", Vn, [
|
|
207
|
+
F(c("i", {
|
|
208
|
+
class: B([f.value ? "" : "left-disable", "iconfont-abl icon-abl-youjiantou1"]),
|
|
209
|
+
onClick: w
|
|
210
|
+
}, null, 2), [
|
|
211
|
+
[G, b.value]
|
|
212
|
+
]),
|
|
213
|
+
c("header", Rn, [
|
|
214
|
+
(u(!0), v(j, null, ee(i.value, (S) => (u(), v("div", {
|
|
215
|
+
ref_for: !0,
|
|
216
|
+
ref_key: "tabs",
|
|
217
|
+
ref: r,
|
|
218
|
+
key: S.title,
|
|
219
|
+
class: B("header-btn"),
|
|
220
|
+
onClick: (C) => g(C, S.value)
|
|
221
|
+
}, [
|
|
222
|
+
c("i", {
|
|
223
|
+
class: B(["iconfont-abl tab-icon", S.icon])
|
|
224
|
+
}, null, 2),
|
|
225
|
+
Y(" " + T(S.title), 1)
|
|
226
|
+
], 8, In))), 128)),
|
|
227
|
+
(A = s.value) != null && A.width ? (u(), v("div", {
|
|
228
|
+
key: 0,
|
|
229
|
+
class: "bottom-line",
|
|
230
|
+
style: O(s.value)
|
|
231
|
+
}, null, 4)) : E("", !0)
|
|
232
|
+
]),
|
|
233
|
+
F(c("i", {
|
|
234
|
+
class: B([h.value ? "" : "right-disable", "iconfont-abl icon-abl-youjiantou"]),
|
|
235
|
+
onClick: m
|
|
236
|
+
}, null, 2), [
|
|
237
|
+
[G, b.value]
|
|
238
|
+
])
|
|
229
239
|
]),
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
ref: l,
|
|
240
|
-
class: "tab-content"
|
|
241
|
-
}, [
|
|
242
|
-
R(p.$slots, "default", {}, void 0, !0)
|
|
243
|
-
], 512)
|
|
244
|
-
]));
|
|
240
|
+
c("main", {
|
|
241
|
+
ref_key: "ref_main",
|
|
242
|
+
ref: l,
|
|
243
|
+
class: "tab-content"
|
|
244
|
+
}, [
|
|
245
|
+
R(p.$slots, "default", {}, void 0, !0)
|
|
246
|
+
], 512)
|
|
247
|
+
]);
|
|
248
|
+
};
|
|
245
249
|
}
|
|
246
|
-
}, Tn = /* @__PURE__ */ J(On, [["__scopeId", "data-v-
|
|
250
|
+
}, Tn = /* @__PURE__ */ J(On, [["__scopeId", "data-v-f3748101"]]), Nn = (e) => (he("data-v-9ebed9dd"), e = e(), pe(), e), Mn = /* @__PURE__ */ Nn(() => /* @__PURE__ */ c("span", { class: "abl-switch__core" }, null, -1)), Dn = [
|
|
247
251
|
Mn
|
|
248
252
|
], Pn = {
|
|
249
253
|
name: "AblSwitch"
|
|
@@ -1100,8 +1104,8 @@ const No = async (e, t, n) => {
|
|
|
1100
1104
|
} = i[w], {
|
|
1101
1105
|
x: k,
|
|
1102
1106
|
y: A,
|
|
1103
|
-
data:
|
|
1104
|
-
reset:
|
|
1107
|
+
data: S,
|
|
1108
|
+
reset: C
|
|
1105
1109
|
} = await p({
|
|
1106
1110
|
x: b,
|
|
1107
1111
|
y: f,
|
|
@@ -1120,13 +1124,13 @@ const No = async (e, t, n) => {
|
|
|
1120
1124
|
...g,
|
|
1121
1125
|
[x]: {
|
|
1122
1126
|
...g[x],
|
|
1123
|
-
...
|
|
1127
|
+
...S
|
|
1124
1128
|
}
|
|
1125
|
-
},
|
|
1129
|
+
}, C && m <= 50 && (m++, typeof C == "object" && (C.placement && (h = C.placement), C.rects && (d = C.rects === !0 ? await r.getElementRects({
|
|
1126
1130
|
reference: e,
|
|
1127
1131
|
floating: t,
|
|
1128
1132
|
strategy: a
|
|
1129
|
-
}) :
|
|
1133
|
+
}) : C.rects), {
|
|
1130
1134
|
x: b,
|
|
1131
1135
|
y: f
|
|
1132
1136
|
} = _t(d, h, l)), w = -1);
|
|
@@ -1164,23 +1168,23 @@ async function Dt(e, t) {
|
|
|
1164
1168
|
...r.floating,
|
|
1165
1169
|
x: o,
|
|
1166
1170
|
y: a
|
|
1167
|
-
} : r.reference, A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)),
|
|
1171
|
+
} : r.reference, A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(i.floating)), S = await (s.isElement == null ? void 0 : s.isElement(A)) ? await (s.getScale == null ? void 0 : s.getScale(A)) || {
|
|
1168
1172
|
x: 1,
|
|
1169
1173
|
y: 1
|
|
1170
1174
|
} : {
|
|
1171
1175
|
x: 1,
|
|
1172
1176
|
y: 1
|
|
1173
|
-
},
|
|
1177
|
+
}, C = Xe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1174
1178
|
elements: i,
|
|
1175
1179
|
rect: k,
|
|
1176
1180
|
offsetParent: A,
|
|
1177
1181
|
strategy: l
|
|
1178
1182
|
}) : k);
|
|
1179
1183
|
return {
|
|
1180
|
-
top: (p.top -
|
|
1181
|
-
bottom: (
|
|
1182
|
-
left: (p.left -
|
|
1183
|
-
right: (
|
|
1184
|
+
top: (p.top - C.top + m.top) / S.y,
|
|
1185
|
+
bottom: (C.bottom - p.bottom + m.bottom) / S.y,
|
|
1186
|
+
left: (p.left - C.left + m.left) / S.x,
|
|
1187
|
+
right: (C.right - p.right + m.right) / S.x
|
|
1184
1188
|
};
|
|
1185
1189
|
}
|
|
1186
1190
|
const Mo = (e) => ({
|
|
@@ -1204,10 +1208,10 @@ const Mo = (e) => ({
|
|
|
1204
1208
|
const f = Mt(b), h = {
|
|
1205
1209
|
x: n,
|
|
1206
1210
|
y: o
|
|
1207
|
-
}, g = pt(a), m = ht(g), w = await r.getDimensions(d), x = g === "y", p = x ? "top" : "left", k = x ? "bottom" : "right", A = x ? "clientHeight" : "clientWidth",
|
|
1211
|
+
}, g = pt(a), m = ht(g), w = await r.getDimensions(d), x = g === "y", p = x ? "top" : "left", k = x ? "bottom" : "right", A = x ? "clientHeight" : "clientWidth", S = s.reference[m] + s.reference[g] - h[g] - s.floating[m], C = h[g] - s.reference[g], y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(d));
|
|
1208
1212
|
let L = y ? y[A] : 0;
|
|
1209
1213
|
(!L || !await (r.isElement == null ? void 0 : r.isElement(y))) && (L = i.floating[A] || s.floating[m]);
|
|
1210
|
-
const M =
|
|
1214
|
+
const M = S / 2 - C / 2, q = L / 2 - w[m] / 2 - 1, z = Ve(f[p], q), V = Ve(f[k], q), I = z, W = L - w[m] - V, U = L / 2 - w[m] / 2 + M, X = lt(I, U, W), Z = !l.arrow && We(a) != null && U !== X && s.reference[m] / 2 - (U < I ? z : V) - w[m] / 2 < 0, Q = Z ? U < I ? U - I : U - W : 0;
|
|
1211
1215
|
return {
|
|
1212
1216
|
[g]: h[g] + Q,
|
|
1213
1217
|
data: {
|
|
@@ -1244,9 +1248,9 @@ const Mo = (e) => ({
|
|
|
1244
1248
|
} = He(e, t);
|
|
1245
1249
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
1246
1250
|
return {};
|
|
1247
|
-
const p = Ce(a), k = Ce(i) === i, A = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)),
|
|
1248
|
-
!h && m !== "none" &&
|
|
1249
|
-
const
|
|
1251
|
+
const p = Ce(a), k = Ce(i) === i, A = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), S = h || (k || !w ? [Ue(i)] : Ro(i));
|
|
1252
|
+
!h && m !== "none" && S.push(...Oo(i, w, m, A));
|
|
1253
|
+
const C = [i, ...S], y = await Dt(t, x), L = [];
|
|
1250
1254
|
let M = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
1251
1255
|
if (b && L.push(y[p]), f) {
|
|
1252
1256
|
const I = Vo(a, r, A);
|
|
@@ -1257,7 +1261,7 @@ const Mo = (e) => ({
|
|
|
1257
1261
|
overflows: L
|
|
1258
1262
|
}], !L.every((I) => I <= 0)) {
|
|
1259
1263
|
var q, z;
|
|
1260
|
-
const I = (((q = s.flip) == null ? void 0 : q.index) || 0) + 1, W =
|
|
1264
|
+
const I = (((q = s.flip) == null ? void 0 : q.index) || 0) + 1, W = C[I];
|
|
1261
1265
|
if (W)
|
|
1262
1266
|
return {
|
|
1263
1267
|
data: {
|
|
@@ -1533,8 +1537,8 @@ function Le(e, t, n, o) {
|
|
|
1533
1537
|
const h = se(s), g = o && ge(o) ? se(o) : o;
|
|
1534
1538
|
let m = h, w = m.frameElement;
|
|
1535
1539
|
for (; w && o && g !== m; ) {
|
|
1536
|
-
const x = ze(w), p = w.getBoundingClientRect(), k = de(w), A = p.left + (w.clientLeft + parseFloat(k.paddingLeft)) * x.x,
|
|
1537
|
-
l *= x.x, d *= x.y, b *= x.x, f *= x.y, l += A, d +=
|
|
1540
|
+
const x = ze(w), p = w.getBoundingClientRect(), k = de(w), A = p.left + (w.clientLeft + parseFloat(k.paddingLeft)) * x.x, S = p.top + (w.clientTop + parseFloat(k.paddingTop)) * x.y;
|
|
1541
|
+
l *= x.x, d *= x.y, b *= x.x, f *= x.y, l += A, d += S, m = se(w), w = m.frameElement;
|
|
1538
1542
|
}
|
|
1539
1543
|
}
|
|
1540
1544
|
return Xe({
|
|
@@ -1765,8 +1769,8 @@ function la(e, t) {
|
|
|
1765
1769
|
threshold: Se(0, Ve(1, l)) || 1
|
|
1766
1770
|
};
|
|
1767
1771
|
let A = !0;
|
|
1768
|
-
function C
|
|
1769
|
-
const y =
|
|
1772
|
+
function S(C) {
|
|
1773
|
+
const y = C[0].intersectionRatio;
|
|
1770
1774
|
if (y !== l) {
|
|
1771
1775
|
if (!A)
|
|
1772
1776
|
return r();
|
|
@@ -1777,13 +1781,13 @@ function la(e, t) {
|
|
|
1777
1781
|
A = !1;
|
|
1778
1782
|
}
|
|
1779
1783
|
try {
|
|
1780
|
-
n = new IntersectionObserver(
|
|
1784
|
+
n = new IntersectionObserver(S, {
|
|
1781
1785
|
...k,
|
|
1782
1786
|
// Handle <iframe>s
|
|
1783
1787
|
root: a.ownerDocument
|
|
1784
1788
|
});
|
|
1785
1789
|
} catch {
|
|
1786
|
-
n = new IntersectionObserver(
|
|
1790
|
+
n = new IntersectionObserver(S, k);
|
|
1787
1791
|
}
|
|
1788
1792
|
n.observe(e);
|
|
1789
1793
|
}
|
|
@@ -1956,7 +1960,7 @@ const ha = ["data-side"], Yt = {
|
|
|
1956
1960
|
y: x,
|
|
1957
1961
|
contentRef: p,
|
|
1958
1962
|
middlewareData: k
|
|
1959
|
-
} = ua({ middleware: a, placement: s, strategy: r }, h), A = N(() => s.value.split("-")[0]),
|
|
1963
|
+
} = ua({ middleware: a, placement: s, strategy: r }, h), A = N(() => s.value.split("-")[0]), S = N(() => ({ left: w.value + "px", top: x.value + "px" })), C = N(() => {
|
|
1960
1964
|
if (!n.showArrow)
|
|
1961
1965
|
return {};
|
|
1962
1966
|
const { arrow: y } = ne(k);
|
|
@@ -1978,7 +1982,7 @@ const ha = ["data-side"], Yt = {
|
|
|
1978
1982
|
ref_key: "contentRef",
|
|
1979
1983
|
ref: p,
|
|
1980
1984
|
class: B(["abl-popper", `is-${e.effect}`, e.popperClass]),
|
|
1981
|
-
style: O(
|
|
1985
|
+
style: O(S.value),
|
|
1982
1986
|
"data-side": A.value,
|
|
1983
1987
|
onMousedown: L[0] || (L[0] = H(() => {
|
|
1984
1988
|
}, ["stop"]))
|
|
@@ -1991,7 +1995,7 @@ const ha = ["data-side"], Yt = {
|
|
|
1991
1995
|
ref_key: "arrowRef",
|
|
1992
1996
|
ref: o,
|
|
1993
1997
|
class: "abl-popper__arrow",
|
|
1994
|
-
style: O(
|
|
1998
|
+
style: O(C.value)
|
|
1995
1999
|
}, null, 4)) : E("", !0)
|
|
1996
2000
|
], 46, ha)) : E("", !0)
|
|
1997
2001
|
]),
|
|
@@ -2680,9 +2684,9 @@ const Ka = /* @__PURE__ */ c("div", {
|
|
|
2680
2684
|
i.value + o.zoomRate > o.maxScale ? i.value = o.maxScale : i.value = m(i.value, o.zoomRate);
|
|
2681
2685
|
}, A = () => {
|
|
2682
2686
|
i.value - o.zoomRate < o.minScale ? i.value = o.minScale : i.value = m(i.value, -o.zoomRate);
|
|
2683
|
-
}, C = () => {
|
|
2684
|
-
h.value -= 90;
|
|
2685
2687
|
}, S = () => {
|
|
2688
|
+
h.value -= 90;
|
|
2689
|
+
}, C = () => {
|
|
2686
2690
|
h.value += 90;
|
|
2687
2691
|
}, y = () => {
|
|
2688
2692
|
h.value = 0, i.value = 1, b.value = 0, f.value = 0;
|
|
@@ -2781,11 +2785,11 @@ const Ka = /* @__PURE__ */ c("div", {
|
|
|
2781
2785
|
}, hs),
|
|
2782
2786
|
c("i", {
|
|
2783
2787
|
class: "abl-icon",
|
|
2784
|
-
onClick:
|
|
2788
|
+
onClick: S
|
|
2785
2789
|
}, vs),
|
|
2786
2790
|
c("i", {
|
|
2787
2791
|
class: "abl-icon",
|
|
2788
|
-
onClick:
|
|
2792
|
+
onClick: C
|
|
2789
2793
|
}, gs)
|
|
2790
2794
|
])
|
|
2791
2795
|
])
|
|
@@ -3884,9 +3888,9 @@ const Us = (e) => (he("data-v-b0efe321"), e = e(), pe(), e), Xs = ["onClick"], Y
|
|
|
3884
3888
|
},
|
|
3885
3889
|
emits: ["open", "close"],
|
|
3886
3890
|
setup(e, { emit: t }) {
|
|
3887
|
-
var
|
|
3891
|
+
var C;
|
|
3888
3892
|
const n = t, o = Ye(), a = typeof window < "u" && typeof document < "u", s = e, r = _([]);
|
|
3889
|
-
(
|
|
3893
|
+
(C = o.default()) == null || C.forEach((y) => {
|
|
3890
3894
|
const { props: L } = y;
|
|
3891
3895
|
if (L) {
|
|
3892
3896
|
const { title: M, disabled: q } = L;
|
|
@@ -3937,7 +3941,7 @@ const Us = (e) => (he("data-v-b0efe321"), e = e(), pe(), e), Xs = ["onClick"], Y
|
|
|
3937
3941
|
...De(s),
|
|
3938
3942
|
onClose: x,
|
|
3939
3943
|
current: f
|
|
3940
|
-
}),
|
|
3944
|
+
}), S = qs(() => {
|
|
3941
3945
|
h.value && x();
|
|
3942
3946
|
});
|
|
3943
3947
|
return Me(Zs, A), xe(() => {
|
|
@@ -3945,7 +3949,7 @@ const Us = (e) => (he("data-v-b0efe321"), e = e(), pe(), e), Xs = ["onClick"], Y
|
|
|
3945
3949
|
}), (y, L) => (u(), v("div", {
|
|
3946
3950
|
class: "abl-dropdown",
|
|
3947
3951
|
ref_key: "root",
|
|
3948
|
-
ref:
|
|
3952
|
+
ref: S
|
|
3949
3953
|
}, [
|
|
3950
3954
|
c("div", {
|
|
3951
3955
|
class: "abl-dropdown-menu",
|
|
@@ -4408,73 +4412,73 @@ const bt = (e) => (he("data-v-12e7e74b"), e = e(), pe(), e), Rl = { class: "abl-
|
|
|
4408
4412
|
function l() {
|
|
4409
4413
|
o.value = [...n.fileList], o.value.length > n.maxCount && o.value.splice(n.maxCount), n.disabled ? a.value = o.value.length : o.value.length < n.maxCount ? a.value = n.fileList.length + 1 : a.value = n.maxCount;
|
|
4410
4414
|
}
|
|
4411
|
-
const d = (
|
|
4412
|
-
const
|
|
4413
|
-
return
|
|
4414
|
-
}, b = (
|
|
4415
|
+
const d = (S) => {
|
|
4416
|
+
const C = /\.(jpg|jpeg|png|gif|webp)$/i, y = /^data:image/;
|
|
4417
|
+
return C.test(S) || y.test(S);
|
|
4418
|
+
}, b = (S, C) => {
|
|
4415
4419
|
var L;
|
|
4416
|
-
const y = (L =
|
|
4420
|
+
const y = (L = S.dataTransfer) == null ? void 0 : L.files;
|
|
4417
4421
|
if (y != null && y.length) {
|
|
4418
4422
|
const M = y.length;
|
|
4419
|
-
for (let q = 0; q < M &&
|
|
4420
|
-
m(y[q],
|
|
4421
|
-
r.value[
|
|
4423
|
+
for (let q = 0; q < M && C + q <= n.maxCount; q++)
|
|
4424
|
+
m(y[q], C + q);
|
|
4425
|
+
r.value[C].value = "";
|
|
4422
4426
|
}
|
|
4423
|
-
}, f = (
|
|
4424
|
-
r.value[
|
|
4425
|
-
}, h = (
|
|
4426
|
-
const y =
|
|
4427
|
+
}, f = (S) => {
|
|
4428
|
+
r.value[S].click();
|
|
4429
|
+
}, h = (S, C) => {
|
|
4430
|
+
const y = S.target.files;
|
|
4427
4431
|
if (y != null && y.length) {
|
|
4428
4432
|
const L = y.length;
|
|
4429
|
-
for (let M = 0; M < L &&
|
|
4430
|
-
m(y[M],
|
|
4431
|
-
r.value[
|
|
4433
|
+
for (let M = 0; M < L && C + M < n.maxCount; M++)
|
|
4434
|
+
m(y[M], C + M);
|
|
4435
|
+
r.value[C].value = "";
|
|
4432
4436
|
}
|
|
4433
|
-
}, g = t, m = function(
|
|
4434
|
-
n.beforeUpload(
|
|
4437
|
+
}, g = t, m = function(S, C) {
|
|
4438
|
+
n.beforeUpload(S) ? (n.maxCount > a.value && a.value++, n.uploadMode === "base64" && (s.value[C] = !0, w(S, C)), n.uploadMode === "custom" && (s.value[C] = !0, x(S, C))) : ve(() => {
|
|
4435
4439
|
A(n.errorInfo);
|
|
4436
4440
|
});
|
|
4437
|
-
}, w = (
|
|
4441
|
+
}, w = (S, C) => {
|
|
4438
4442
|
var y = new FileReader();
|
|
4439
|
-
y.readAsDataURL(
|
|
4443
|
+
y.readAsDataURL(S), y.onloadstart = function(L) {
|
|
4440
4444
|
console.log("开始读取 onloadstart:", L);
|
|
4441
4445
|
}, y.onabort = function(L) {
|
|
4442
4446
|
console.log("读取中止 onabort:", L);
|
|
4443
4447
|
}, y.onerror = function(L) {
|
|
4444
4448
|
console.log("读取错误 onerror:", L);
|
|
4445
4449
|
}, y.onprogress = function(L) {
|
|
4446
|
-
L.loaded === L.total && (s.value[
|
|
4450
|
+
L.loaded === L.total && (s.value[C] = !1);
|
|
4447
4451
|
}, y.onload = function(L) {
|
|
4448
4452
|
var M;
|
|
4449
4453
|
o.value.push({
|
|
4450
|
-
name:
|
|
4454
|
+
name: S.name,
|
|
4451
4455
|
url: (M = L.target) == null ? void 0 : M.result
|
|
4452
4456
|
}), g("update:fileList", o.value), g("change", o.value);
|
|
4453
4457
|
}, y.onloadend = function(L) {
|
|
4454
4458
|
console.log("读取结束 onloadend:", L);
|
|
4455
4459
|
};
|
|
4456
|
-
}, x = (
|
|
4457
|
-
n.customRequest(
|
|
4460
|
+
}, x = (S, C) => {
|
|
4461
|
+
n.customRequest(S).then((y) => {
|
|
4458
4462
|
o.value.push(y), g("update:fileList", o.value), g("change", o.value);
|
|
4459
4463
|
}).catch((y) => {
|
|
4460
4464
|
n.maxCount > 1 && (a.value = o.value.length + 1), A(y);
|
|
4461
4465
|
}).finally(() => {
|
|
4462
|
-
s.value[
|
|
4466
|
+
s.value[C] = !1;
|
|
4463
4467
|
});
|
|
4464
|
-
}, p = (
|
|
4465
|
-
if (d(
|
|
4466
|
-
const y = o.value.slice(0,
|
|
4467
|
-
i.value[
|
|
4468
|
+
}, p = (S, C) => {
|
|
4469
|
+
if (d(C)) {
|
|
4470
|
+
const y = o.value.slice(0, S).filter((L) => !d(L.url));
|
|
4471
|
+
i.value[S - y.length].onPreview();
|
|
4468
4472
|
} else
|
|
4469
|
-
window.open(
|
|
4470
|
-
}, k = (
|
|
4473
|
+
window.open(C);
|
|
4474
|
+
}, k = (S) => {
|
|
4471
4475
|
o.value.length < n.maxCount && a.value--;
|
|
4472
|
-
const
|
|
4473
|
-
g("remove",
|
|
4474
|
-
}, A = (
|
|
4475
|
-
ft({ type: "error", text:
|
|
4476
|
+
const C = o.value.splice(S, 1);
|
|
4477
|
+
g("remove", C), g("update:fileList", o.value), g("change", o.value);
|
|
4478
|
+
}, A = (S) => {
|
|
4479
|
+
ft({ type: "error", text: S, duration: 1e3, top: 100 });
|
|
4476
4480
|
};
|
|
4477
|
-
return (
|
|
4481
|
+
return (S, C) => (u(), v("div", Rl, [
|
|
4478
4482
|
(u(!0), v(j, null, ee(a.value, (y) => (u(), v("div", {
|
|
4479
4483
|
class: "abl-upload-item",
|
|
4480
4484
|
key: y
|
|
@@ -4482,9 +4486,9 @@ const bt = (e) => (he("data-v-12e7e74b"), e = e(), pe(), e), Rl = { class: "abl-
|
|
|
4482
4486
|
c("div", Il, [
|
|
4483
4487
|
F(c("div", {
|
|
4484
4488
|
class: B(["abl-upload-wrap", { "upload-disabled": e.disabled }]),
|
|
4485
|
-
onDragenter:
|
|
4489
|
+
onDragenter: C[1] || (C[1] = H(() => {
|
|
4486
4490
|
}, ["stop", "prevent"])),
|
|
4487
|
-
onDragover:
|
|
4491
|
+
onDragover: C[2] || (C[2] = H(() => {
|
|
4488
4492
|
}, ["stop", "prevent"])),
|
|
4489
4493
|
onDrop: H((L) => e.disabled ? () => !1 : b(L, y - 1), ["stop", "prevent"]),
|
|
4490
4494
|
onClick: (L) => e.disabled ? () => !1 : f(y - 1)
|
|
@@ -4494,7 +4498,7 @@ const bt = (e) => (he("data-v-12e7e74b"), e = e(), pe(), e), Rl = { class: "abl-
|
|
|
4494
4498
|
ref_key: "uploadInput",
|
|
4495
4499
|
ref: r,
|
|
4496
4500
|
type: "file",
|
|
4497
|
-
onClick:
|
|
4501
|
+
onClick: C[0] || (C[0] = H(() => {
|
|
4498
4502
|
}, ["stop"])),
|
|
4499
4503
|
accept: e.accept,
|
|
4500
4504
|
multiple: e.multiple,
|
|
@@ -4504,7 +4508,7 @@ const bt = (e) => (he("data-v-12e7e74b"), e = e(), pe(), e), Rl = { class: "abl-
|
|
|
4504
4508
|
c("div", null, [
|
|
4505
4509
|
Nl,
|
|
4506
4510
|
c("p", Ml, [
|
|
4507
|
-
R(
|
|
4511
|
+
R(S.$slots, "default", {}, () => [
|
|
4508
4512
|
Y(T(e.tip), 1)
|
|
4509
4513
|
], !0)
|
|
4510
4514
|
])
|
|
@@ -4639,7 +4643,7 @@ const Gl = { class: "abl-select-warpper-content" }, Jl = { class: "abl-select-in
|
|
|
4639
4643
|
}
|
|
4640
4644
|
}, A = (z) => {
|
|
4641
4645
|
n.disabled || (h.value = !0, z.stopPropagation(), l.value === "focus" ? l.value = "blur" : l.value = "focus");
|
|
4642
|
-
},
|
|
4646
|
+
}, S = (z, V) => {
|
|
4643
4647
|
var W;
|
|
4644
4648
|
if (n.disabled)
|
|
4645
4649
|
return;
|
|
@@ -4655,7 +4659,7 @@ const Gl = { class: "abl-select-warpper-content" }, Jl = { class: "abl-select-in
|
|
|
4655
4659
|
});
|
|
4656
4660
|
}
|
|
4657
4661
|
o("update:modelValue", I), o("changeSelect", ot(p)), d.value.close();
|
|
4658
|
-
},
|
|
4662
|
+
}, C = () => {
|
|
4659
4663
|
var z;
|
|
4660
4664
|
(z = i.value) == null || z.focus(), !g.value && l.value === "focus" && p.length > 0 && (p.pop(), o("changeSelect", ot(p)));
|
|
4661
4665
|
}, y = (z) => {
|
|
@@ -4703,7 +4707,7 @@ const Gl = { class: "abl-select-warpper-content" }, Jl = { class: "abl-select-in
|
|
|
4703
4707
|
f.list.length > 0 ? (u(!0), v(j, { key: 0 }, ee(f.list, (I) => (u(), v("div", {
|
|
4704
4708
|
class: B(["abl-select-options-item", p.some((W) => W.value === I.value) ? "abl-options-item-active" : ""]),
|
|
4705
4709
|
key: I.name + I.value,
|
|
4706
|
-
onClick: (W) =>
|
|
4710
|
+
onClick: (W) => S(I, W)
|
|
4707
4711
|
}, T(I.name), 11, si))), 128)) : (u(), v("div", li, " 暂无数据 "))
|
|
4708
4712
|
], 4)
|
|
4709
4713
|
]),
|
|
@@ -4712,7 +4716,7 @@ const Gl = { class: "abl-select-warpper-content" }, Jl = { class: "abl-select-in
|
|
|
4712
4716
|
onClick: A,
|
|
4713
4717
|
id: "select-input-warpper",
|
|
4714
4718
|
class: B(["abl-select-warpper", m.value ? "abl-select-warpper-disabled" : ""]),
|
|
4715
|
-
onKeydown: It(
|
|
4719
|
+
onKeydown: It(C, ["delete"])
|
|
4716
4720
|
}, [
|
|
4717
4721
|
c("div", Gl, [
|
|
4718
4722
|
c("div", Jl, [
|
|
@@ -4842,18 +4846,18 @@ const ci = { class: "abl-header" }, di = { class: "abl-title" }, ui = { class: "
|
|
|
4842
4846
|
t.bordered ? ve(() => {
|
|
4843
4847
|
i.value.forEach((x, p) => {
|
|
4844
4848
|
x.forEach((k) => {
|
|
4845
|
-
const A = Array.from(k.element.children),
|
|
4846
|
-
|
|
4847
|
-
const
|
|
4848
|
-
|
|
4849
|
+
const A = Array.from(k.element.children), S = A[0].cloneNode(!0);
|
|
4850
|
+
S.colSpan = 1, f(S, t.labelStyle), f(S, JSON.parse(k.element.dataset.labelStyle));
|
|
4851
|
+
const C = A[1].cloneNode(!0);
|
|
4852
|
+
C.colSpan = k.span * 2 - 1, f(C, t.contentStyle), f(C, JSON.parse(k.element.dataset.contentStyle)), r.value[p].appendChild(S), r.value[p].appendChild(C);
|
|
4849
4853
|
});
|
|
4850
4854
|
});
|
|
4851
4855
|
}) : ve(() => {
|
|
4852
4856
|
h.forEach((x, p) => {
|
|
4853
4857
|
const k = Array.from(x.children), A = k[0];
|
|
4854
4858
|
f(A, t.labelStyle), f(A, JSON.parse(x.dataset.labelStyle));
|
|
4855
|
-
const
|
|
4856
|
-
f(
|
|
4859
|
+
const S = k[1];
|
|
4860
|
+
f(S, t.contentStyle), f(S, JSON.parse(x.dataset.contentStyle)), s.value[p].appendChild(x);
|
|
4857
4861
|
});
|
|
4858
4862
|
});
|
|
4859
4863
|
}
|
|
@@ -5129,7 +5133,7 @@ const on = (e) => (he("data-v-349f6091"), e = e(), pe(), e), Ai = {
|
|
|
5129
5133
|
}, A = () => {
|
|
5130
5134
|
const { modelValue: $, min: P } = n;
|
|
5131
5135
|
return p($) ? `${($[0] - Number(P)) * 100 / f.value}%` : "0%";
|
|
5132
|
-
},
|
|
5136
|
+
}, S = N(() => n.vertical ? {
|
|
5133
5137
|
height: k(),
|
|
5134
5138
|
top: A(),
|
|
5135
5139
|
background: n.activeColor,
|
|
@@ -5139,7 +5143,7 @@ const on = (e) => (he("data-v-349f6091"), e = e(), pe(), e), Ai = {
|
|
|
5139
5143
|
left: A(),
|
|
5140
5144
|
background: n.activeColor,
|
|
5141
5145
|
transition: l.value ? "none" : void 0
|
|
5142
|
-
}),
|
|
5146
|
+
}), C = ($) => {
|
|
5143
5147
|
const P = "abl-range-mark", { modelValue: D, max: K, min: re } = n;
|
|
5144
5148
|
let ae = Number(re), ue = Number(K);
|
|
5145
5149
|
if (n.range) {
|
|
@@ -5223,7 +5227,7 @@ const on = (e) => (he("data-v-349f6091"), e = e(), pe(), e), Ai = {
|
|
|
5223
5227
|
b.value.length > 0 ? (u(), v("div", Bi, [
|
|
5224
5228
|
(u(!0), v(j, null, ee(b.value, (D) => (u(), v("span", {
|
|
5225
5229
|
key: D,
|
|
5226
|
-
class: B(
|
|
5230
|
+
class: B(C(D)),
|
|
5227
5231
|
style: O(y(D))
|
|
5228
5232
|
}, [
|
|
5229
5233
|
Y(T(D) + " ", 1),
|
|
@@ -5235,7 +5239,7 @@ const on = (e) => (he("data-v-349f6091"), e = e(), pe(), e), Ai = {
|
|
|
5235
5239
|
])) : E("", !0),
|
|
5236
5240
|
c("div", {
|
|
5237
5241
|
class: "abl-range-bar",
|
|
5238
|
-
style: O(
|
|
5242
|
+
style: O(S.value)
|
|
5239
5243
|
}, [
|
|
5240
5244
|
e.range ? (u(), v(j, { key: 0 }, ee([0, 1], (D) => c("div", {
|
|
5241
5245
|
key: D,
|