# Module Spec：vab-breadcrumb（面包屑）

module:
  id: vab-breadcrumb
  name: VabBreadcrumb（面包屑）
  type: ui
  entrypoints:
    - library/components/VabBreadcrumb/index.vue

public_api:
  concept:
    - "根据 routesStore.getRoutes + 当前 route.path 生成面包屑，并支持 meta.icon/meta.isCustomSvg"

dependency_closure:
  runtime:
    - "store-routes：getRoutes"
    - "vue-router：useRoute"
    - "utils/routes：handleMatched(routes, path)"
    - "i18n：translate()"
    - "Element Plus：el-breadcrumb/el-breadcrumb-item"
    - "VabIcon"

acceptance:
  - "meta.breadcrumbHidden=true 的路由不出现在面包屑"
  - "每个 crumb 的跳转目标使用 item.redirect（若存在）"

pitfalls:
  - "依赖后端路由结构与 meta 字段（title/icon/isCustomSvg）"
