mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
init
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import MainView from './index.vue';
|
||||
|
||||
export { MainView };
|
||||
@@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<RouterView>
|
||||
<template #default="{ Component, route }">
|
||||
<transition name="zoom-fade" mode="out-in" appear>
|
||||
<keep-alive>
|
||||
<component :is="Component" :key="route.fullPath" />
|
||||
</keep-alive>
|
||||
</transition>
|
||||
</template>
|
||||
</RouterView>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { defineProps} from 'vue'
|
||||
const props = defineProps(['notNeedKey', 'animate'])
|
||||
</script>
|
||||
Reference in New Issue
Block a user