UNPKG

hongluan-ui

Version:
32 lines (29 loc) 955 B
import { defineComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from 'vue'; import '../../../hooks/index.mjs'; import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs'; import { useNamespace } from '../../../hooks/use-namespace/index.mjs'; const _sfc_main = defineComponent({ name: "Aside", props: { width: { type: String } }, setup() { const { namespace } = useNamespace("aside"); return { namespace }; } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("aside", { class: normalizeClass([_ctx.namespace]), style: normalizeStyle([_ctx.width && "--layout-aside-width:" + _ctx.width]) }, [ renderSlot(_ctx.$slots, "default") ], 6); } var Aside = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { Aside as default }; //# sourceMappingURL=aside.mjs.map