mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(components): blankLayout引入GlobalContent
This commit is contained in:
20
src/layouts/common/GlobalFooter/index.vue
Normal file
20
src/layouts/common/GlobalFooter/index.vue
Normal file
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<n-layout-footer class="bg-white dark:bg-dark">
|
||||
<div class="footer-height flex-center">Copyright ©2021 Soybean Admin</div>
|
||||
</n-layout-footer>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue';
|
||||
import { NLayoutFooter } from 'naive-ui';
|
||||
import { useThemeStore } from '@/store';
|
||||
|
||||
const theme = useThemeStore();
|
||||
|
||||
const footerHeight = computed(() => `${theme.footerStyle.height}px`);
|
||||
</script>
|
||||
<style scoped>
|
||||
.footer-height {
|
||||
height: v-bind(footerHeight);
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user