Files
Web_Template_Vue3_Dev/AI-Coding/openspec-lite/modules/vab-app-main.yaml

28 lines
804 B
YAML
Raw Normal View History

# Module Specvab-app-main主内容区联动 routes store
module:
id: vab-app-main
name: VabAppMain主内容区
type: ui
entrypoints:
- library/components/VabAppMain/index.vue
public_api:
concept:
- "监听 route 变化,更新 routes store 的 tab/activeMenu"
- "渲染 vab-router-view + vab-footer"
dependency_closure:
runtime:
- "vue-routeruseRoute"
- "store-routestab/activeMenu"
- "utils/routeshandleActivePath"
- "组件依赖VabRouterView、VabFooter需同时可用/注册)"
acceptance:
- "路由变化时 activeMenu.data 更新为当前激活路径"
- "主内容区能渲染 router-view 与 footer"
pitfalls:
- "tab 使用 route.matched[0].name若路由层级/匹配为空需要在目标项目确认兼容"