# Module Spec：vab-refresh（刷新当前路由视图）

module:
  id: vab-refresh
  name: VabRefresh（刷新按钮）
  type: ui
  entrypoints:
    - library/components/VabRefresh/index.vue

public_api:
  concept:
    - "点击后通过事件总线发布 reload-router-view，刷新当前 router-view 缓存"

dependency_closure:
  runtime:
    - "store-settings：theme.showRefresh（是否显示按钮）"
    - "plugin-vab：$pub（发布事件）"
  related_modules:
    - "vab-router-view：订阅并处理 reload-router-view"

acceptance:
  - "theme.showRefresh=true 时显示图标，点击触发 $pub('reload-router-view')"

pitfalls:
  - "未安装 plugin-vab 或未接入 vab-router-view 时，点击不会产生效果"
