Current collected state Current
Observed since 20 Oct, 22:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
## 安装
pnpm install @0x30/vue-navigation
component 方式
import { Navigator } from '@0x30/vue-navigation'
createApp(
<Navigator>
<Home />
</Navigator>
).mount('#app')
plugin 方式
import { navigation } from '@0x30/vue-navigation'
createApp(<Home />)
.use(navigation)
.mount('#app')
import { push, replace, to } from '@0x30/vue-navigation'
/**
* 推出 一个 div 到当前之上
*/
push(<div />)
/**
* replace 当前
*/
replace(<div />)
/**
* repace 与 push 的辅助方式
*/
to(true)(<div />)
返回
import { back, blackBoxBack, backToHome } from '@0x30/vue-navigation'
/**
* 返回方法
*/
back()
/**
* 黑箱返回
* 当页面前往 一个页面后 可以移除掉一些之前的页面
*
* a -> b -> c -> d
* blackBoxBack(2)
* a -> d
*/
blackBoxBack()
/**
* 回到rootView
*/
backToHome()
onWillAppear 页面即将出现,执行动画之前onDidAppear 页面已经出现,执行动画完成onWillDisappear 页面即将消失,执行动画之前onDidDisappear 页面已经消失,执行动画完成useTransitionEnter 进入动画配置useTransitionLeave 离开动画配置useLeaveBefore 页面返回之前的拦截方法useQuietPage 设置当前页面为安静的页面usePageMate 配置当前页面的 基础信息getCurrentPageMate 获取当前页面的 配置信息onPageChange 当前发生变化useProgressExitAnimated 配置渐进式动画router,只是一种管理组件的方式fixed,且大小与屏幕一致Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:de60679678954744772258bf3dd5a3567f8609c2c035aacf3197fa311218471e