mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
37 lines
679 B
Vue
37 lines
679 B
Vue
<template>
|
|
<footer :class="ns.b()" :style="style">
|
|
<slot></slot>
|
|
</footer>
|
|
</template>
|
|
<script lang="ts">
|
|
import { computed, defineComponent } from 'vue'
|
|
import { useNamespace } from '@element-plus/hooks'
|
|
|
|
import type { CSSProperties } from 'vue'
|
|
|
|
export default defineComponent({
|
|
name: 'ElFooter',
|
|
props: {
|
|
height: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
},
|
|
setup(props) {
|
|
const ns = useNamespace('footer')
|
|
|
|
return {
|
|
style: computed(
|
|
() =>
|
|
(props.height
|
|
? {
|
|
'--el-footer-height': props.height,
|
|
}
|
|
: {}) as CSSProperties
|
|
),
|
|
ns,
|
|
}
|
|
},
|
|
})
|
|
</script>
|