# Module Spec：vab-nav（顶部导航条聚合）

module:
  id: vab-nav
  name: VabNav（顶部导航条）
  type: ui
  entrypoints:
    - library/components/VabNav/index.vue

public_api:
  concept:
    - "顶部导航聚合：左侧（Fold + Tabs/Breadcrumb），右侧（ErrorLog/Lock/Search/Notice/FullScreen/Language/Theme/Refresh/Avatar）"

dependency_closure:
  runtime:
    - "store-routes：tab/tabMenu/routes"
    - "vue-router：useRouter"
    - "utils/validate：isExternal"
    - "config：openFirstMenu"
    - "i18n：translate()"
    - "Element Plus：el-row/el-col/el-tabs/el-tab-pane"
    - "Components：VabFold/VabBreadcrumb/VabErrorLog/VabLock/VabSearch/VabNotice/VabFullScreen/VabLanguage/VabTheme/VabRefresh/VabAvatar"

acceptance:
  - "layout='comprehensive' 时显示顶部 tabs，否则显示面包屑（hidden-xs-only）"
  - "点击 tab：外链 window.open；否则（openFirstMenu=true）跳 redirect 或自身"

pitfalls:
  - "强依赖多组件与 routesStore 输出结构；抽取时必须把依赖组件闭包一起带走"
