refactor: 将 layout 组件移动到 layout 目录下

This commit is contained in:
xingyu4j
2022-12-07 10:14:29 +08:00
parent 88603ab8fe
commit 2b6fcc138c
42 changed files with 18 additions and 18 deletions

View File

@@ -0,0 +1,3 @@
import Footer from './src/Footer.vue'
export { Footer }

View File

@@ -0,0 +1,22 @@
<script setup lang="ts">
import { useAppStore } from '@/store/modules/app'
import { computed } from 'vue'
import { useDesign } from '@/hooks/web/useDesign'
const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('footer')
const appStore = useAppStore()
const title = computed(() => appStore.getTitle)
</script>
<template>
<div
:class="prefixCls"
class="text-center text-[var(--el-text-color-placeholder)] bg-[var(--app-contnet-bg-color)] h-[var(--app-footer-height)] leading-[var(--app-footer-height)] dark:bg-[var(--el-bg-color)]"
>
<p style="font-size: 14px">Copyright ©2022-{{ title }}</p>
</div>
</template>