feat: 提交多个新UI组件模块spec和相关属性设定,包括卡片封装、渐变卡片、列式布局组件等,重写了readme.md,用于AI Coding
Some checks are pending
Call HTTPS API / build (push) Waiting to run
Some checks are pending
Call HTTPS API / build (push) Waiting to run
This commit is contained in:
31
AI-Coding/openspec-lite/modules/vab-notice.yaml
Normal file
31
AI-Coding/openspec-lite/modules/vab-notice.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
# Module Spec:vab-notice(消息中心)
|
||||
|
||||
module:
|
||||
id: vab-notice
|
||||
name: VabNotice(消息中心/通知)
|
||||
type: ui
|
||||
entrypoints:
|
||||
- library/components/VabNotice/index.vue
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "显示通知 badge,弹出 popover + tabs 展示通知/邮件"
|
||||
- "从 api/notice.getList 拉取数据并计算 badge"
|
||||
- "提供清空消息入口(仅清空前端列表与 badge,并提示)"
|
||||
|
||||
dependency_closure:
|
||||
runtime:
|
||||
- "store-settings:theme.showNotice"
|
||||
- "api/notice:getList"
|
||||
- "plugin-vab:$baseMessage(清空提示,通过 inject 获取)"
|
||||
- "i18n:translate"
|
||||
- "Element Plus:el-badge/el-popover/el-tabs/el-tab-pane/el-scrollbar/el-avatar/el-button"
|
||||
- "VabIcon"
|
||||
|
||||
acceptance:
|
||||
- "theme.showNotice=true 时显示通知入口与 badge"
|
||||
- "点击/切换 tab 会触发 fetchData 更新列表"
|
||||
|
||||
pitfalls:
|
||||
- "数据协议依赖 notice.getList 的返回结构(list/total)"
|
||||
- "清空仅影响前端状态,不等价于后端已读/删除"
|
||||
Reference in New Issue
Block a user