Current collected state Current
Observed since 20 Oct, 22:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0x30/vue-navigation
## 安装
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.
| Package / target | Requirement | Relationship |
|---|---|---|
viteEnvironment{
"local_name": "vite",
"alias": false,
"peer_metadata": null
} | ^5.0.10 | development |
vue-tscEnvironment{
"local_name": "vue-tsc",
"alias": false,
"peer_metadata": null
} | ^1.8.26 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^4.9.5 | development |
vite-plugin-dtsEnvironment{
"local_name": "vite-plugin-dts",
"alias": false,
"peer_metadata": null
} | ^1.7.3 | development |
@vitejs/plugin-vue-jsxEnvironment{
"local_name": "@vitejs/plugin-vue-jsx",
"alias": false,
"peer_metadata": null
} | ^3.1.0 | development |
vueEnvironment{
"local_name": "vue",
"alias": false,
"peer_metadata": null
} | ^3 | peer |
Source distribution
{
"shasum": "dd93ce4853a9d8400f7a6d668db01cc77b63de12",
"tarball": "https://registry.npmjs.org/@0x30/vue-navigation/-/vue-navigation-1.3.7.tgz",
"fileCount": 5,
"integrity": "sha512-IQAOOxBi+PRFFimOVcEMXTO1hoL5QgXf1r44wcr8liPIp9QPaLcpSgx82cb2jM3fq/VMa86gBrx9c7rkNV0wLA==",
"signatures": [
{
"sig": "MEUCIQCiedo37h4tu9Wecbb82Ml/zGXcocZZK4m5klEsfVFuRgIgfX8uUE6zD+s0Lf9bg/gfMNMg58T4ciRGq/SaSlC5wE0=",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
],
"unpackedSize": 27975
}Observed since 20 Oct, 22:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:b980f47eeeab4248222280b7c43c4bd5ac46c450bcf9b04dd4c829dcca5dfd79