maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
40 lines (39 loc) • 1.08 kB
JavaScript
import { inject as c, defineComponent as s, openBlock as l, createElementBlock as d, normalizeClass as u, unref as a, renderSlot as i } from "vue";
import './assets/MazTableRow.CtZjgh-L.css';function p(o, t) {
const e = c(o, t);
if (!e)
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${o.toString()}`);
return e;
}
const b = "maz-table", m = (o, t) => {
const e = o.__vccOpts || o;
for (const [n, r] of t)
e[n] = r;
return e;
}, v = /* @__PURE__ */ s({
__name: "MazTableRow",
props: {
noHoverable: { type: Boolean }
},
setup(o) {
const { hoverable: t, backgroundEven: e, backgroundOdd: n } = p(b);
return (r, _) => (l(), d(
"tr",
{
class: u(["m-table-row m-reset-css", {
"--hoverable": a(t) && !r.noHoverable,
"--background-odd": a(n),
"--background-even": a(e)
}])
},
[
i(r.$slots, "default", {}, void 0, !0)
],
2
/* CLASS */
));
}
}), g = /* @__PURE__ */ m(v, [["__scopeId", "data-v-c9f9a9c5"]]);
export {
g as default
};