fix: 修改闭合组件不规范的问题

This commit is contained in:
MTrun
2022-03-14 16:07:35 +08:00
parent 3747771078
commit 3a9f68384f
77 changed files with 395 additions and 332 deletions
-3
View File
@@ -1,3 +0,0 @@
import Footer from './index.vue'
export { Footer }
+3
View File
@@ -0,0 +1,3 @@
import GoFooter from './index.vue'
export { GoFooter }
+3
View File
@@ -0,0 +1,3 @@
import GoHeader from './index.vue'
export { GoHeader }
@@ -12,9 +12,9 @@
<div>
<n-space>
<slot name="ri-left"> </slot>
<LangSelect />
<ThemeSelect />
<ThemeColorSelect />
<lang-select></lang-select>
<Theme-select></Theme-select>
<theme-color-select></theme-color-select>
<slot name="ri-right"> </slot>
</n-space>
</div>
-3
View File
@@ -1,3 +0,0 @@
import Header from './index.vue'
export { Header }
+4 -4
View File
@@ -1,5 +1,5 @@
<template>
<Header>
<GoHeader>
<template #left>
<slot name="left"></slot>
</template>
@@ -10,12 +10,12 @@
<slot name="ri-left"></slot>
</template>
<template #ri-right>
<UserInfo />
<uer-info></uer-info>
<slot name="ri-right"></slot>
</template>
</Header>
</GoHeader>
</template>
<script setup lang="ts">
import { Header } from '@/layout/components/Header'
import { GoHeader } from '@/layout/components/GoHeader'
import { UserInfo } from '@/components/UserInfo'
</script>
+2 -2
View File
@@ -5,9 +5,9 @@
v-if="route.noKeepAlive"
:is="Component"
:key="route.fullPath"
/>
></component>
<keep-alive v-else>
<component :is="Component" :key="route.fullPath" />
<component :is="Component" :key="route.fullPath"></component>
</keep-alive>
</template>
</router-view>
@@ -6,9 +6,9 @@
v-if="route.noKeepAlive"
:is="Component"
:key="route.fullPath"
/>
></component>
<keep-alive v-else>
<component :is="Component" :key="route.fullPath" />
<component :is="Component" :key="route.fullPath"></component>
</keep-alive>
</transition>
</router-view>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<MainView />
<MainView></MainView>
</template>
<script lang="ts" setup>
+1 -1
View File
@@ -1,3 +1,3 @@
<template>
<router-view />
<router-view></router-view>
</template>