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:
21
AI-Coding/openspec-lite/modules/vab-link.yaml
Normal file
21
AI-Coding/openspec-lite/modules/vab-link.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
# Module Spec:vab-link(智能链接)
|
||||
|
||||
module:
|
||||
id: vab-link
|
||||
name: VabLink(外链/内链统一)
|
||||
type: ui
|
||||
entrypoints:
|
||||
- library/components/VabLink/index.vue
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "根据 isExternal(to) 自动选择渲染 a 或 router-link"
|
||||
|
||||
dependency_closure:
|
||||
runtime:
|
||||
- "utils/validate:isExternal"
|
||||
- "vue-router:router-link"
|
||||
|
||||
acceptance:
|
||||
- "外链:target=_blank + rel=noopener"
|
||||
- "内链:透传 to 给 router-link"
|
||||
Reference in New Issue
Block a user