vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
23 lines (22 loc) • 649 B
JavaScript
import { defineComponent as r, toRefs as n, createElementBlock as p, openBlock as s, mergeProps as l, unref as c, renderSlot as f } from "vue";
import { useSpace as d } from "./hook/useSpace.mjs";
const _ = /* @__PURE__ */ r({
name: "Space",
__name: "index",
props: {
direction: { default: "horizontal" },
align: { default: "start" },
gap: { default: 10 },
wrap: { type: Boolean },
fullWidth: { type: Boolean }
},
setup(e) {
const t = e, { spaceAttrs: o } = d(n(t));
return (a, i) => (s(), p("div", l({ class: "app-space" }, c(o)), [
f(a.$slots, "default")
], 16));
}
});
export {
_ as default
};