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:
25
AI-Coding/openspec-lite/modules/vab-card.yaml
Normal file
25
AI-Coding/openspec-lite/modules/vab-card.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
# Module Spec:vab-card(卡片封装 + Skeleton)
|
||||
|
||||
module:
|
||||
id: vab-card
|
||||
name: VabCard(卡片封装)
|
||||
type: ui
|
||||
entrypoints:
|
||||
- library/components/VabCard/index.vue
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "对 el-card 的轻封装:header slot/prop + 可选 skeleton loading(默认 500ms 结束)"
|
||||
|
||||
dependency_closure:
|
||||
runtime:
|
||||
- "Element Plus:el-card/el-skeleton"
|
||||
- "vue-router:onBeforeRouteLeave(清理定时器)"
|
||||
- "SCSS:$base-transition"
|
||||
|
||||
acceptance:
|
||||
- "skeleton=true 时先显示 skeleton,再渲染默认 slot"
|
||||
- "路由离开时清理 timer"
|
||||
|
||||
pitfalls:
|
||||
- "skeletonRows 注释提示:显示数量可能比传入多 1(Element Plus 行为)"
|
||||
Reference in New Issue
Block a user