UNPKG

vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

32 lines (31 loc) 848 B
import { defineComponent as i, computed as s, createVNode as p } from "vue"; import { useProps as f, useNameHelper as c } from "@vexip-ui/config"; import { layoutMainProps as d } from "./props.mjs"; import { useLayoutState as l } from "./helper.mjs"; const L = /* @__PURE__ */ i({ name: "LayoutMain", props: d, setup(n, { slots: a }) { const e = f("layoutMain", n, { tag: "main", fixed: !1 }), t = c("layout"), r = l(), m = s(() => [t.be("main"), e.fixed && t.bem("main", "fixed"), r.classes.main]); return () => { const u = e.tag || "main"; return p(u, { class: m.value }, { default: () => { var o; return [(o = a.default) == null ? void 0 : o.call(a)]; } }); }; } }); export { L as default }; //# sourceMappingURL=layout-main.mjs.map