element-plus
Version:
A Component Library for Vue 3
1 lines • 833 B
Source Map (JSON)
{"version":3,"file":"footer.mjs","names":[],"sources":["../../../../../../packages/components/container/src/footer.vue"],"sourcesContent":["<template>\n <footer :class=\"ns.b()\" :style=\"style\">\n <slot />\n </footer>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { CSSProperties } from 'vue'\n\ninterface FooterProps {\n /**\n * @description height of the footer\n */\n height?: string | null\n}\n\ndefineOptions({\n name: 'ElFooter',\n})\nconst props = withDefaults(defineProps<FooterProps>(), {\n height: null,\n})\n\nconst ns = useNamespace('footer')\n\nconst style = computed(\n () =>\n (props.height\n ? ns.cssVarBlock({ height: props.height })\n : {}) as CSSProperties\n)\n</script>\n"],"mappings":""}