hongluan-ui
Version:
Hongluan Component Library for Vue 3
33 lines (30 loc) • 968 B
JavaScript
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: "Container",
props: {
height: {
type: String,
default: "auto"
}
},
setup() {
const { namespace } = useNamespace("container");
return {
namespace
};
}
});
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("div", {
class: normalizeClass([_ctx.namespace]),
style: normalizeStyle({ height: _ctx.height })
}, [
renderSlot(_ctx.$slots, "default")
], 6);
}
var Container = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export { Container as default };
//# sourceMappingURL=container.mjs.map