@macroui/macroui-vue 2.12.7 → 2.12.8
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.es.js +25 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2431,8 +2431,18 @@ const ao = (a, r) => {
|
|
|
2431
2431
|
emits: Us,
|
|
2432
2432
|
setup(a, { expose: r, emit: t }) {
|
|
2433
2433
|
const e = a, l = t, i = k(), o = b(() => !(e.label === void 0 || e.label === null || typeof e.label == "boolean" || e.label === "")), f = b(() => Array.isArray(e.modelValue) ? e.modelValue.includes(e.label) : e.modelValue === e.trueLabel), v = b(() => {
|
|
2434
|
-
const s = []
|
|
2435
|
-
|
|
2434
|
+
const s = [], p = {
|
|
2435
|
+
large: "checkbox-lg",
|
|
2436
|
+
default: "checkbox-md",
|
|
2437
|
+
small: "checkbox-sm"
|
|
2438
|
+
}, h = {
|
|
2439
|
+
xs: "checkbox-xs",
|
|
2440
|
+
sm: "checkbox-sm",
|
|
2441
|
+
md: "checkbox-md",
|
|
2442
|
+
lg: "checkbox-lg",
|
|
2443
|
+
xl: "checkbox-xl"
|
|
2444
|
+
}, m = p[e.size] || h[e.size] || "checkbox-md";
|
|
2445
|
+
return s.push(m), e.indeterminate && s.push("indeterminate"), s.join(" ");
|
|
2436
2446
|
}), d = (s) => {
|
|
2437
2447
|
if (e.disabled) return;
|
|
2438
2448
|
const p = s.target;
|
|
@@ -2476,7 +2486,7 @@ const ao = (a, r) => {
|
|
|
2476
2486
|
])) : I("", !0)
|
|
2477
2487
|
]));
|
|
2478
2488
|
}
|
|
2479
|
-
}), Js = /* @__PURE__ */ me(Gs, [["__scopeId", "data-v-
|
|
2489
|
+
}), Js = /* @__PURE__ */ me(Gs, [["__scopeId", "data-v-fa05a53a"]]), Zs = ce(Js), Qs = fe({
|
|
2480
2490
|
modelValue: {
|
|
2481
2491
|
type: [Boolean, String, Number, Array],
|
|
2482
2492
|
default: !1
|
|
@@ -8063,7 +8073,16 @@ const ml = Symbol("table"), Qc = ["aria-rowcount", "aria-colcount"], ep = { clas
|
|
|
8063
8073
|
large: "lg",
|
|
8064
8074
|
default: "md",
|
|
8065
8075
|
small: "sm"
|
|
8066
|
-
})[e.size] || e.size || "md"), P = b(() =>
|
|
8076
|
+
})[e.size] || e.size || "md"), P = b(() => {
|
|
8077
|
+
const g = x.value;
|
|
8078
|
+
return {
|
|
8079
|
+
xl: "checkbox-sm",
|
|
8080
|
+
lg: "checkbox-sm",
|
|
8081
|
+
md: "checkbox-sm",
|
|
8082
|
+
sm: "checkbox-xs",
|
|
8083
|
+
xs: "checkbox-xs"
|
|
8084
|
+
}[g] || "checkbox-sm";
|
|
8085
|
+
}), $ = k({}), D = (g) => {
|
|
8067
8086
|
const T = (N.value || []).filter((V) => V.editable && V.required);
|
|
8068
8087
|
let J = !0;
|
|
8069
8088
|
for (const V of T) {
|
|
@@ -8929,7 +8948,7 @@ ${V}`, H = new Blob([ne], { type: "text/csv;charset=utf-8;" }), Se = document.cr
|
|
|
8929
8948
|
class: "btn btn-ghost btn-sm",
|
|
8930
8949
|
onClick: T[0] || (T[0] = (V) => W.value = !W.value)
|
|
8931
8950
|
}, [...T[12] || (T[12] = [
|
|
8932
|
-
en('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-
|
|
8951
|
+
en('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-894ae3c5><line x1="8" y1="6" x2="21" y2="6" data-v-894ae3c5></line><line x1="8" y1="12" x2="21" y2="12" data-v-894ae3c5></line><line x1="8" y1="18" x2="21" y2="18" data-v-894ae3c5></line><line x1="3" y1="6" x2="3.01" y2="6" data-v-894ae3c5></line><line x1="3" y1="12" x2="3.01" y2="12" data-v-894ae3c5></line><line x1="3" y1="18" x2="3.01" y2="18" data-v-894ae3c5></line></svg> 列设置 ', 2)
|
|
8933
8952
|
])]),
|
|
8934
8953
|
W.value ? (n(), u("div", ip, [
|
|
8935
8954
|
T[13] || (T[13] = c("div", { class: "text-sm font-semibold mb-2" }, "显示列", -1)),
|
|
@@ -9461,7 +9480,7 @@ ${V}`, H = new Blob([ne], { type: "text/csv;charset=utf-8;" }), Se = document.cr
|
|
|
9461
9480
|
], 46, Qc);
|
|
9462
9481
|
};
|
|
9463
9482
|
}
|
|
9464
|
-
}), Jp = /* @__PURE__ */ me(Gp, [["__scopeId", "data-v-
|
|
9483
|
+
}), Jp = /* @__PURE__ */ me(Gp, [["__scopeId", "data-v-894ae3c5"]]), Zp = /* @__PURE__ */ ue({
|
|
9465
9484
|
name: "ElTableColumn",
|
|
9466
9485
|
inheritAttrs: !1,
|
|
9467
9486
|
__name: "table-column",
|