aside.mjs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot } from 'vue';
  2. import '../../../hooks/index.mjs';
  3. import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
  4. import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
  5. const __default__ = defineComponent({
  6. name: "ElAside"
  7. });
  8. const _sfc_main = /* @__PURE__ */ defineComponent({
  9. ...__default__,
  10. props: {
  11. width: {
  12. type: String,
  13. default: null
  14. }
  15. },
  16. setup(__props) {
  17. const props = __props;
  18. const ns = useNamespace("aside");
  19. const style = computed(() => props.width ? ns.cssVarBlock({ width: props.width }) : {});
  20. return (_ctx, _cache) => {
  21. return openBlock(), createElementBlock("aside", {
  22. class: normalizeClass(unref(ns).b()),
  23. style: normalizeStyle(unref(style))
  24. }, [
  25. renderSlot(_ctx.$slots, "default")
  26. ], 6);
  27. };
  28. }
  29. });
  30. var Aside = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);
  31. export { Aside as default };
  32. //# sourceMappingURL=aside.mjs.map