@scalar/api-client
Version:
the open source API testing client
27 lines (26 loc) • 812 B
JavaScript
import { defineComponent as t, createBlock as o, openBlock as a, resolveDynamicComponent as n, mergeProps as s, unref as l, withCtx as p, renderSlot as d } from "vue";
import { useBindCx as m } from "@scalar/components";
const f = /* @__PURE__ */ t({
inheritAttrs: !1,
__name: "DataTableCell",
props: {
is: { default: "td" }
},
setup(b) {
const { cx: e } = m();
return (r, i) => (a(), o(n(r.is), s(
l(e)(
"box-content max-h-8 min-h-8 min-w-8 border-l-0 border-t border-b-0 border-r flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative"
),
{ class: "group-[.alert]:bg-b-alert group-[.error]:bg-b-danger" }
), {
default: p(() => [
d(r.$slots, "default")
]),
_: 3
}, 16));
}
});
export {
f as default
};