NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
> [success] # router-view 1. 可以将路由映射组件展示出来的一个**容器**,因此对应的你可以把它放在任何地方,以适应你的布局 >[success] # router-view的v-slot * router-view也提供给我们一个插槽,可以用于 和 组件来包裹你的路由组件 * * `Component`:要渲染的组件 * * `route`:解析出的标准化路由对象 ~~~ <router-view v-slot="{ Component, route }"> <transition :name="route.meta.transition || 'fade'" mode="out-in"> <keep-alive> <component :is="Component" :key="route.meta.usePathKey ? route.path : undefined" /> </keep-alive> </transition> </router-view> ~~~