# Module Spec：vab-error-log（错误日志展示入口）

module:
  id: vab-error-log
  name: VabErrorLog（错误日志展示）
  type: ui
  entrypoints:
    - library/components/VabErrorLog/index.vue

public_api:
  concept:
    - "展示 errorLogs 数量徽标，点击打开弹窗列表"
    - "提供清空日志入口（clearErrorLog）"

dependency_closure:
  runtime:
    - "store-errorlog：useErrorLogStore（errorLogs/clearErrorLog）"
    - "Element Plus：el-badge/el-dialog/el-table/el-tag/el-popover/el-button"
    - "VabIcon：全局组件（由 setup-vab 注册）"
  related_modules:
    - "plugin-errorlog：负责把运行时错误写入 store（否则列表为空）"

acceptance:
  - "errorLogs.length > 0 时显示徽标并可打开弹窗"
  - "点击 '暂不显示' 能清空 store"

pitfalls:
  - "仅负责展示；日志产生依赖 plugin/request 链路"
