UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.32 kB
{"version":3,"file":"footer.vue2.mjs","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"],"names":["_createElementBlock","_normalizeClass","_unref","_renderSlot"],"mappings":";;;;;;;;;;;;AAsBA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAId,IAAA,MAAM,EAAA,GAAK,aAAa,QAAQ,CAAA;AAEhC,IAAA,MAAM,KAAA,GAAQ,QAAA;AAAA,MACZ,MACG,KAAA,CAAM,MAAA,GACH,EAAA,CAAG,WAAA,CAAY,EAAE,MAAA,EAAQ,KAAA,CAAM,MAAA,EAAQ,CAAA,GACvC;AAAC,KACT;;0BAhCEA,kBAAA;AAAA,QAES,QAAA;AAAA,QAAA;AAAA,UAFA,OAAKC,cAAA,CAAEC,KAAA,CAAA,EAAA,CAAA,CAAG,GAAC,CAAA;AAAA,UAAK,KAAA,iBAAO,KAAA,CAAA,KAAK;AAAA;;UACnCC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;"}