feat: 提交多个新UI组件模块spec和相关属性设定,包括卡片封装、渐变卡片、列式布局组件等,重写了readme.md,用于AI Coding
Some checks are pending
Call HTTPS API / build (push) Waiting to run

This commit is contained in:
2025-12-27 15:42:57 +08:00
parent fc9c726de4
commit 55abf26cfa
78 changed files with 3024 additions and 103 deletions

View File

@@ -0,0 +1,31 @@
# Module Specvab-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-settingstheme.showNotice"
- "api/noticegetList"
- "plugin-vab$baseMessage清空提示通过 inject 获取)"
- "i18ntranslate"
- "Element Plusel-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"
- "清空仅影响前端状态,不等价于后端已读/删除"