footer.mjs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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: "ElFooter"
  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("footer");
  18. const style = computed(() => props.height ? ns.cssVarBlock({ height: props.height }) : {});
  19. return (_ctx, _cache) => {
  20. return openBlock(), createElementBlock("footer", {
  21. class: normalizeClass(unref(ns).b()),
  22. style: normalizeStyle(unref(style))
  23. }, [
  24. renderSlot(_ctx.$slots, "default")
  25. ], 6);
  26. };
  27. }
  28. });
  29. var Footer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "footer.vue"]]);
  30. export { Footer as default };
  31. //# sourceMappingURL=footer.mjs.map