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:
28
AI-Coding/openspec-lite/modules/vab-avatar.yaml
Normal file
28
AI-Coding/openspec-lite/modules/vab-avatar.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
# Module Spec:vab-avatar(用户头像下拉)
|
||||
|
||||
module:
|
||||
id: vab-avatar
|
||||
name: VabAvatar(用户头像/用户名下拉)
|
||||
type: ui
|
||||
entrypoints:
|
||||
- library/components/VabAvatar/index.vue
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "右上角用户头像下拉:个人中心/外链/退出登录,并在退出后跳转到登录页(携带回跳参数)"
|
||||
|
||||
dependency_closure:
|
||||
runtime:
|
||||
- "store-user:avatar/username/logout()"
|
||||
- "vue-router:useRoute/useRouter"
|
||||
- "utils/routes:toLoginRoute(fullPath)"
|
||||
- "i18n:translate()"
|
||||
- "Element Plus:el-dropdown/el-dropdown-menu/el-dropdown-item/el-avatar"
|
||||
- "VabIcon"
|
||||
|
||||
acceptance:
|
||||
- "下拉可见时箭头激活态切换"
|
||||
- "点击退出登录会调用 userStore.logout() 并跳转 toLoginRoute(route.fullPath)"
|
||||
|
||||
pitfalls:
|
||||
- "依赖 userStore 提供 avatar/username;新项目需保证字段一致"
|
||||
Reference in New Issue
Block a user