Files

32 lines
1.2 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Module Specvab-router-view路由视图壳keep-alive + 过渡 + reload 事件)
module:
id: vab-router-view
name: VabRouterViewrouter-view + keep-alive + reload
type: ui
entrypoints:
- library/components/VabRouterView/index.vue
public_api:
concept:
- "统一承载页面 router-view提供 keep-alive include 列表与过渡动画"
- "监听事件总线reload-router-view用于刷新当前视图缓存"
dependency_closure:
runtime:
- "vue-routeruseRoute / <router-view>"
- "plugin-vab$sub/$unsub事件订阅"
- "store-settingstheme.showProgressBar / theme.showPageTransition"
- "store-tabsvisitedRoutes生成 keepAliveNameList"
- "utils/routeshandleActivePath生成 routerKey"
- "configkeepAliveMaxNum"
- "nprogress显示刷新进度条"
acceptance:
- "路由切换时 keep-alive include 列表随 visitedRoutes 更新"
- "$sub('reload-router-view') 触发后当前视图能被重新渲染routerKey 变更)"
pitfalls:
- "存在 get-code 事件并依赖组件的 __source 字段;不同构建/插件下可能不存在"
- "未安装 plugin-vab 时 $sub/$unsub 不存在reload/get-code 事件不会工作"