@squirrel-cloud/ui-vue 0.4.23 → 0.4.25
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/squirrel-cloud-ui-vue.js +63 -63
- package/dist/squirrel-cloud-ui-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/typings/TableColItem.d.ts +2 -2
- package/license +220 -220
- package/package.json +1 -1
|
@@ -195,7 +195,7 @@ function Yt() {
|
|
|
195
195
|
const r = [], c = { children: [] };
|
|
196
196
|
let a = c;
|
|
197
197
|
return s.forEach((l) => {
|
|
198
|
-
var B,
|
|
198
|
+
var B, A, P, O, V, K, H, ee, J, k, _;
|
|
199
199
|
const { type: i, children: p, content: g, attrs: h, tag: f, hidden: w } = l;
|
|
200
200
|
switch (i) {
|
|
201
201
|
case "heading_open":
|
|
@@ -230,7 +230,7 @@ function Yt() {
|
|
|
230
230
|
children: [],
|
|
231
231
|
attrs: { class: "sq-article-table" }
|
|
232
232
|
};
|
|
233
|
-
(
|
|
233
|
+
(A = a.children) == null || A.push(y), r.push(a), a = y;
|
|
234
234
|
}
|
|
235
235
|
(P = a.children) == null || P.push(v), r.push(a), a = v;
|
|
236
236
|
break;
|
|
@@ -1066,7 +1066,7 @@ const ms = ["disabled", "form", "type"], hs = "sq-button", X = /* @__PURE__ */ z
|
|
|
1066
1066
|
if (f.value) return !1;
|
|
1067
1067
|
c.value = !1, await w(e.beforeClose) && (a.value = !1);
|
|
1068
1068
|
}
|
|
1069
|
-
async function
|
|
1069
|
+
async function A() {
|
|
1070
1070
|
c.value = !0, await w(e.onOk) && (a.value = !1);
|
|
1071
1071
|
}
|
|
1072
1072
|
return (P, O) => (m(), C(u(rt), {
|
|
@@ -1112,7 +1112,7 @@ const ms = ["disabled", "form", "type"], hs = "sq-button", X = /* @__PURE__ */ z
|
|
|
1112
1112
|
]),
|
|
1113
1113
|
_: 1
|
|
1114
1114
|
}, 16),
|
|
1115
|
-
S(u(X), pe(g.value, { onClick:
|
|
1115
|
+
S(u(X), pe(g.value, { onClick: A }), {
|
|
1116
1116
|
default: I(() => [
|
|
1117
1117
|
Se(j(e.okText), 1)
|
|
1118
1118
|
]),
|
|
@@ -1511,7 +1511,7 @@ const ms = ["disabled", "form", "type"], hs = "sq-button", X = /* @__PURE__ */ z
|
|
|
1511
1511
|
}), B = b(
|
|
1512
1512
|
() => c.value.length && !c.value.includes(`
|
|
1513
1513
|
`) && c.value !== " " && !t.disabled
|
|
1514
|
-
),
|
|
1514
|
+
), A = b(
|
|
1515
1515
|
() => a.value !== void 0 && !c.value.length && !t.disabled
|
|
1516
1516
|
), P = b(
|
|
1517
1517
|
() => typeof t.beforePreview == "function" ? t.beforePreview(f.value) : f.value
|
|
@@ -1528,7 +1528,7 @@ const ms = ["disabled", "form", "type"], hs = "sq-button", X = /* @__PURE__ */ z
|
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
1530
|
function V(y) {
|
|
1531
|
-
var Q, G,
|
|
1531
|
+
var Q, G, D;
|
|
1532
1532
|
const x = e.value[a.value], R = (x == null ? void 0 : x.replace(" ", "")) ?? "";
|
|
1533
1533
|
if (y.key === "Tab") {
|
|
1534
1534
|
y.preventDefault();
|
|
@@ -1545,7 +1545,7 @@ const ms = ["disabled", "form", "type"], hs = "sq-button", X = /* @__PURE__ */ z
|
|
|
1545
1545
|
(G = g.value) == null || G.setItalic();
|
|
1546
1546
|
return;
|
|
1547
1547
|
case "U":
|
|
1548
|
-
y.preventDefault(), (
|
|
1548
|
+
y.preventDefault(), (D = h.value) == null || D.setUnderline();
|
|
1549
1549
|
return;
|
|
1550
1550
|
}
|
|
1551
1551
|
if (y.key === "Enter") {
|
|
@@ -1590,7 +1590,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1590
1590
|
}
|
|
1591
1591
|
function ee(y) {
|
|
1592
1592
|
const x = y.selectionStart, Q = f.value.substring(0, x ?? 0).split(`
|
|
1593
|
-
`).length + 1, G = y.scrollTop,
|
|
1593
|
+
`).length + 1, G = y.scrollTop, D = window.getComputedStyle(y), F = parseFloat(D.lineHeight), q = parseFloat(D.height), W = parseFloat(D.paddingBlockStart) + F * Q;
|
|
1594
1594
|
q + G > W || requestAnimationFrame(() => {
|
|
1595
1595
|
y.scrollTo({ top: W - q });
|
|
1596
1596
|
});
|
|
@@ -1673,7 +1673,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1673
1673
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1674
1674
|
S(u($e), { direction: "vertical" }),
|
|
1675
1675
|
S(Ks, {
|
|
1676
|
-
disabled: !
|
|
1676
|
+
disabled: !A.value,
|
|
1677
1677
|
rows: e.value,
|
|
1678
1678
|
"selected-val": c.value,
|
|
1679
1679
|
"selected-row": a.value,
|
|
@@ -1681,7 +1681,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1681
1681
|
onUpdateText: v
|
|
1682
1682
|
}, null, 8, ["disabled", "rows", "selected-val", "selected-row", "select-info"]),
|
|
1683
1683
|
S(Zs, {
|
|
1684
|
-
disabled: !
|
|
1684
|
+
disabled: !A.value,
|
|
1685
1685
|
rows: e.value,
|
|
1686
1686
|
"selected-val": c.value,
|
|
1687
1687
|
"selected-row": a.value,
|
|
@@ -1848,8 +1848,8 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1848
1848
|
c.value = c.value.filter((F) => F !== k), H(k), a.value[k] = new AbortController(), await ze();
|
|
1849
1849
|
const Q = e.formData[k];
|
|
1850
1850
|
let G = !1;
|
|
1851
|
-
const
|
|
1852
|
-
return v.validateFunc ? G = await B(k, Q, v, _) :
|
|
1851
|
+
const D = v.validateType ?? "string";
|
|
1852
|
+
return v.validateFunc ? G = await B(k, Q, v, _) : D === "string" ? G = A(k, Q, v) : D === "boolean" ? G = P(k, Q, v) : D === "list" && (G = O(k, Q, v)), y && s("validate", k, G, _e(c.value)), a.value[k].signal.aborted || H(k), G;
|
|
1853
1853
|
}
|
|
1854
1854
|
function w(k) {
|
|
1855
1855
|
if (r.value[k]) return e.invalidStatus;
|
|
@@ -1862,7 +1862,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1862
1862
|
}
|
|
1863
1863
|
return R === !0 ? K(k) : R === !1 ? V(k, "字段验证失败") : R ? V(k, R) : K(k), R === !0 || typeof R == "string" && !R;
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function A(k, _, v) {
|
|
1866
1866
|
return v.required && !_ ? (V(k, v.requiredText ?? "字段必填"), !1) : v.pattern && _ && !v.pattern.test(_) ? (V(k, v.patternText ?? "字段验证失败"), !1) : (K(k), !0);
|
|
1867
1867
|
}
|
|
1868
1868
|
function P(k, _, v) {
|
|
@@ -1987,23 +1987,23 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
1987
1987
|
}), be(() => {
|
|
1988
1988
|
n.disconnect();
|
|
1989
1989
|
});
|
|
1990
|
-
function h(
|
|
1991
|
-
e.value = !0, t("load",
|
|
1990
|
+
function h(A) {
|
|
1991
|
+
e.value = !0, t("load", A);
|
|
1992
1992
|
}
|
|
1993
|
-
function f(
|
|
1993
|
+
function f(A) {
|
|
1994
1994
|
if (r.value !== s.fallback && s.fallback) {
|
|
1995
1995
|
r.value = s.fallback;
|
|
1996
1996
|
return;
|
|
1997
1997
|
}
|
|
1998
|
-
c.value = !0, e.value = !0, t("error",
|
|
1998
|
+
c.value = !0, e.value = !0, t("error", A);
|
|
1999
1999
|
}
|
|
2000
|
-
function w(
|
|
2001
|
-
|
|
2000
|
+
function w(A) {
|
|
2001
|
+
A[0].isIntersecting && (a.value = !0, n.disconnect());
|
|
2002
2002
|
}
|
|
2003
2003
|
function B() {
|
|
2004
2004
|
l.value = !0;
|
|
2005
2005
|
}
|
|
2006
|
-
return (
|
|
2006
|
+
return (A, P) => (m(), $("div", {
|
|
2007
2007
|
class: "sq-image",
|
|
2008
2008
|
style: Y(g.value),
|
|
2009
2009
|
ref_key: "imgRef",
|
|
@@ -2039,7 +2039,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2039
2039
|
S(u(st))
|
|
2040
2040
|
])) : M("", !0),
|
|
2041
2041
|
c.value ? (m(), $("div", pn, [
|
|
2042
|
-
N(
|
|
2042
|
+
N(A.$slots, "error", {}, () => [
|
|
2043
2043
|
P[1] || (P[1] = L("span", null, "图片加载失败", -1))
|
|
2044
2044
|
])
|
|
2045
2045
|
])) : M("", !0),
|
|
@@ -2087,7 +2087,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2087
2087
|
function B(q) {
|
|
2088
2088
|
q.deltaY < 0 ? _() : v();
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function A(q) {
|
|
2091
2091
|
t = !0, o.x = q.x, o.y = q.y;
|
|
2092
2092
|
}
|
|
2093
2093
|
function P() {
|
|
@@ -2148,7 +2148,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2148
2148
|
function G(q) {
|
|
2149
2149
|
l.value += q;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function D() {
|
|
2152
2152
|
h.value = !1;
|
|
2153
2153
|
}
|
|
2154
2154
|
function F(q) {
|
|
@@ -2175,14 +2175,14 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2175
2175
|
onClick: E[0] || (E[0] = he(() => {
|
|
2176
2176
|
}, ["stop"])),
|
|
2177
2177
|
onLoad: F,
|
|
2178
|
-
onMousedown: he(
|
|
2178
|
+
onMousedown: he(A, ["prevent"]),
|
|
2179
2179
|
onTouchstartPassive: V
|
|
2180
2180
|
}, null, 44, hn),
|
|
2181
2181
|
S(u(X), {
|
|
2182
2182
|
class: "sq-image-viewer-close",
|
|
2183
2183
|
round: "",
|
|
2184
2184
|
icon: u(Oe),
|
|
2185
|
-
onClick: he(
|
|
2185
|
+
onClick: he(D, ["stop"])
|
|
2186
2186
|
}, null, 8, ["icon"]),
|
|
2187
2187
|
e.srcList.length > 1 ? (m(), $(ne, { key: 0 }, [
|
|
2188
2188
|
S(u(X), {
|
|
@@ -2336,9 +2336,9 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2336
2336
|
marginBlockStart: `${l.value.y}px`
|
|
2337
2337
|
}));
|
|
2338
2338
|
ie(() => {
|
|
2339
|
-
document.addEventListener("mousemove",
|
|
2339
|
+
document.addEventListener("mousemove", A), document.addEventListener("mouseup", B);
|
|
2340
2340
|
}), be(() => {
|
|
2341
|
-
document.removeEventListener("mousemove",
|
|
2341
|
+
document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", B);
|
|
2342
2342
|
});
|
|
2343
2343
|
function h(_) {
|
|
2344
2344
|
l.value = { x: 0, y: 0 }, s = i.value.getBoundingClientRect();
|
|
@@ -2354,7 +2354,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2354
2354
|
function B() {
|
|
2355
2355
|
e = !1;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function A(_) {
|
|
2358
2358
|
if (!e) return;
|
|
2359
2359
|
const v = _.x - n.x, y = _.y - n.y;
|
|
2360
2360
|
n.x = _.x, n.y = _.y;
|
|
@@ -2401,10 +2401,10 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2401
2401
|
async function k(_ = "base64") {
|
|
2402
2402
|
if (!c.src) return;
|
|
2403
2403
|
const v = p.value.naturalWidth, y = p.value.naturalHeight, x = v / y, Q = v > y && x < c.aspectRatio || v < y && x > c.aspectRatio ? v / y : 1, G = a.value / t / Q;
|
|
2404
|
-
let
|
|
2404
|
+
let D = document.createElement("canvas");
|
|
2405
2405
|
const F = Math.min(v, y);
|
|
2406
|
-
|
|
2407
|
-
let q =
|
|
2406
|
+
D.width = F, D.height = F / c.aspectRatio;
|
|
2407
|
+
let q = D.getContext("2d");
|
|
2408
2408
|
const E = p.value.getBoundingClientRect(), W = (E.left - s.left) / a.value, te = (E.top - s.top) / a.value;
|
|
2409
2409
|
return q == null || q.drawImage(
|
|
2410
2410
|
p.value,
|
|
@@ -2413,11 +2413,11 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2413
2413
|
v * G,
|
|
2414
2414
|
y * G
|
|
2415
2415
|
), new Promise((ye) => {
|
|
2416
|
-
_ === "base64" ? ye(
|
|
2416
|
+
_ === "base64" ? ye(D.toDataURL("image/png")) : D == null || D.toBlob((pt) => {
|
|
2417
2417
|
ye(pt ?? void 0);
|
|
2418
2418
|
}, "image/png");
|
|
2419
2419
|
}).finally(() => {
|
|
2420
|
-
q = void 0,
|
|
2420
|
+
q = void 0, D = void 0;
|
|
2421
2421
|
});
|
|
2422
2422
|
}
|
|
2423
2423
|
return o({ cropImageAsync: k }), (_, v) => (m(), $("div", {
|
|
@@ -2480,9 +2480,9 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2480
2480
|
emits: /* @__PURE__ */ Z(["focus", "blur", "input", "change"], ["update:value"]),
|
|
2481
2481
|
setup(d, { expose: o, emit: n }) {
|
|
2482
2482
|
const t = Be(), s = n, e = d, { inputSize: r, inputRound: c, inputDisabled: a, inputReadonly: l, id: i } = ds(e), p = le(d, "value"), g = T(!1), h = T(!1), f = re(null), w = b(() => {
|
|
2483
|
-
const
|
|
2484
|
-
return F !== "md" &&
|
|
2485
|
-
}), B = b(() => u(h) ? tt : st),
|
|
2483
|
+
const D = [], F = u(r), q = u(c), E = u(J);
|
|
2484
|
+
return F !== "md" && D.push(`sq-input--${F}`), e.status && D.push(`is-${e.status}`), q && D.push("is-round"), E && D.push("is-disabled"), D;
|
|
2485
|
+
}), B = b(() => u(h) ? tt : st), A = b(() => u(h) ? "text" : e.type), P = b(() => t.prefix || e.prefixIcon), O = b(() => u(g) && u(p).length), V = b(
|
|
2486
2486
|
() => e.type === "password" && u(O)
|
|
2487
2487
|
), K = b(() => e.clearable && u(O)), H = b(() => e.loading ? Re : e.suffixIcon), ee = b(
|
|
2488
2488
|
() => u(V) || u(K) || u(H) || t.suffix
|
|
@@ -2490,11 +2490,11 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2490
2490
|
if (e.type === "textarea")
|
|
2491
2491
|
return u(J) || u(l) ? "none" : e.resize;
|
|
2492
2492
|
});
|
|
2493
|
-
function _(
|
|
2494
|
-
s("focus",
|
|
2493
|
+
function _(D) {
|
|
2494
|
+
s("focus", D), !u(l) && (g.value = !0);
|
|
2495
2495
|
}
|
|
2496
|
-
function v(
|
|
2497
|
-
s("blur",
|
|
2496
|
+
function v(D) {
|
|
2497
|
+
s("blur", D), !u(l) && (g.value = !1);
|
|
2498
2498
|
}
|
|
2499
2499
|
function y() {
|
|
2500
2500
|
setTimeout(Q);
|
|
@@ -2506,19 +2506,19 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2506
2506
|
h.value = !h.value;
|
|
2507
2507
|
}
|
|
2508
2508
|
function Q() {
|
|
2509
|
-
var
|
|
2510
|
-
(
|
|
2509
|
+
var D;
|
|
2510
|
+
(D = f.value) == null || D.focus();
|
|
2511
2511
|
}
|
|
2512
2512
|
function G() {
|
|
2513
|
-
var
|
|
2514
|
-
g.value = !1, (
|
|
2513
|
+
var D;
|
|
2514
|
+
g.value = !1, (D = f.value) == null || D.blur();
|
|
2515
2515
|
}
|
|
2516
|
-
return o({ focus: Q, blur: G }), (
|
|
2516
|
+
return o({ focus: Q, blur: G }), (D, F) => (m(), $("div", {
|
|
2517
2517
|
class: U(["sq-input", w.value]),
|
|
2518
2518
|
onMousedown: y
|
|
2519
2519
|
}, [
|
|
2520
2520
|
P.value ? (m(), $("span", _n, [
|
|
2521
|
-
N(
|
|
2521
|
+
N(D.$slots, "prefix", {}, () => [
|
|
2522
2522
|
(m(), C(ue(e.prefixIcon)))
|
|
2523
2523
|
])
|
|
2524
2524
|
])) : M("", !0),
|
|
@@ -2530,7 +2530,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2530
2530
|
disabled: J.value,
|
|
2531
2531
|
readonly: u(l),
|
|
2532
2532
|
placeholder: e.placeholder,
|
|
2533
|
-
type:
|
|
2533
|
+
type: A.value,
|
|
2534
2534
|
maxlength: e.maxlength,
|
|
2535
2535
|
minlength: e.minlength,
|
|
2536
2536
|
autocomplete: e.autocomplete,
|
|
@@ -2555,7 +2555,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2555
2555
|
disabled: J.value,
|
|
2556
2556
|
readonly: u(l),
|
|
2557
2557
|
placeholder: e.placeholder,
|
|
2558
|
-
type:
|
|
2558
|
+
type: A.value,
|
|
2559
2559
|
maxlength: e.maxlength,
|
|
2560
2560
|
minlength: e.minlength,
|
|
2561
2561
|
autocomplete: e.autocomplete,
|
|
@@ -2585,7 +2585,7 @@ ${W}${E}`, ee(y.target), v(e.value, ye, ye);
|
|
|
2585
2585
|
class: "sq-input-suffix-clear",
|
|
2586
2586
|
onMousedown: x
|
|
2587
2587
|
})) : M("", !0),
|
|
2588
|
-
N(
|
|
2588
|
+
N(D.$slots, "suffix", {}, () => [
|
|
2589
2589
|
H.value ? (m(), C(ue(H.value), { key: 0 })) : M("", !0)
|
|
2590
2590
|
])
|
|
2591
2591
|
], 512), [
|
|
@@ -3077,7 +3077,7 @@ const so = "sq-popover", no = /* @__PURE__ */ z({
|
|
|
3077
3077
|
O();
|
|
3078
3078
|
}, a.hideAfter));
|
|
3079
3079
|
}
|
|
3080
|
-
function
|
|
3080
|
+
function A(H) {
|
|
3081
3081
|
a.trigger === "click" && !a.disabled && !l.value && (H.stopPropagation(), P());
|
|
3082
3082
|
}
|
|
3083
3083
|
function P(H = !0) {
|
|
@@ -3114,7 +3114,7 @@ const so = "sq-popover", no = /* @__PURE__ */ z({
|
|
|
3114
3114
|
ref: g,
|
|
3115
3115
|
onMouseenter: w,
|
|
3116
3116
|
onMouseleave: B,
|
|
3117
|
-
onClick:
|
|
3117
|
+
onClick: A
|
|
3118
3118
|
}, {
|
|
3119
3119
|
default: I(() => [
|
|
3120
3120
|
N(H.$slots, "reference")
|
|
@@ -3254,8 +3254,8 @@ const so = "sq-popover", no = /* @__PURE__ */ z({
|
|
|
3254
3254
|
radioVariant: a,
|
|
3255
3255
|
groupContext: l
|
|
3256
3256
|
} = fs(t), i = T(), p = le(d, "checked"), g = b(() => {
|
|
3257
|
-
const f = [], w = u(s), B = u(e),
|
|
3258
|
-
return w !== "md" && f.push(`sq-selection--${w}`), h.value && f.push("is-checked"), B && f.push("is-disabled"),
|
|
3257
|
+
const f = [], w = u(s), B = u(e), A = u(a);
|
|
3258
|
+
return w !== "md" && f.push(`sq-selection--${w}`), h.value && f.push("is-checked"), B && f.push("is-disabled"), A && f.push(`is-${A}`), f;
|
|
3259
3259
|
}), h = b(() => l ? u(l).checked === t.value : p.value);
|
|
3260
3260
|
return ce(i, (f) => {
|
|
3261
3261
|
p.value = f === t.value;
|
|
@@ -3567,7 +3567,7 @@ const so = "sq-popover", no = /* @__PURE__ */ z({
|
|
|
3567
3567
|
}
|
|
3568
3568
|
}
|
|
3569
3569
|
function g(h, f) {
|
|
3570
|
-
return typeof f.formatter == "function" ? f.formatter(h) : typeof h[f.binding] > "u" ? "" : h[f.binding];
|
|
3570
|
+
return typeof f.formatter == "function" ? f.formatter(h, h[f.binding]) : typeof h[f.binding] > "u" ? "" : h[f.binding];
|
|
3571
3571
|
}
|
|
3572
3572
|
return (h, f) => (m(), $("div", {
|
|
3573
3573
|
class: U(["sq-table", r.value])
|
|
@@ -3597,17 +3597,17 @@ const so = "sq-popover", no = /* @__PURE__ */ z({
|
|
|
3597
3597
|
style: Y(c.value),
|
|
3598
3598
|
key: i(w, B)
|
|
3599
3599
|
}, [
|
|
3600
|
-
(m(!0), $(ne, null, de(t.cols, (
|
|
3601
|
-
class: U(["sq-table-cell",
|
|
3602
|
-
style: Y({ "justify-content": p(
|
|
3603
|
-
key: `${
|
|
3600
|
+
(m(!0), $(ne, null, de(t.cols, (A, P) => (m(), $("div", {
|
|
3601
|
+
class: U(["sq-table-cell", A.columnClass]),
|
|
3602
|
+
style: Y({ "justify-content": p(A.align) }),
|
|
3603
|
+
key: `${A.binding}-${i(w, P)}`
|
|
3604
3604
|
}, [
|
|
3605
|
-
typeof
|
|
3605
|
+
typeof A.cellRender == "function" ? (m(), C(u(Bo), {
|
|
3606
3606
|
key: 0,
|
|
3607
|
-
content:
|
|
3607
|
+
content: A.cellRender(w, w[A.binding])
|
|
3608
3608
|
}, null, 8, ["content"])) : (m(), $("span", {
|
|
3609
3609
|
key: 1,
|
|
3610
|
-
textContent: j(g(w,
|
|
3610
|
+
textContent: j(g(w, A))
|
|
3611
3611
|
}, null, 8, Ro))
|
|
3612
3612
|
], 6))), 128))
|
|
3613
3613
|
], 4))), 128))
|
|
@@ -3827,8 +3827,8 @@ const so = "sq-popover", no = /* @__PURE__ */ z({
|
|
|
3827
3827
|
function i(g) {
|
|
3828
3828
|
const h = g ?? new FileList(), f = [], w = s.max ? Math.min(h.length, s.max) : h.length;
|
|
3829
3829
|
for (let B = 0; B < w; B++) {
|
|
3830
|
-
const
|
|
3831
|
-
f.push(
|
|
3830
|
+
const A = h[B];
|
|
3831
|
+
f.push(A);
|
|
3832
3832
|
}
|
|
3833
3833
|
t("change", f);
|
|
3834
3834
|
}
|