header.mjs 1.1 KB

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