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:
24
AI-Coding/openspec-lite/modules/plugin-directive.yaml
Normal file
24
AI-Coding/openspec-lite/modules/plugin-directive.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
# Module Spec:plugin-directive(自定义指令:v-permissions)
|
||||
|
||||
module:
|
||||
id: plugin-directive
|
||||
name: 自定义指令(v-permissions 权限控制)
|
||||
type: plugin
|
||||
entrypoints:
|
||||
- library/plugins/directive.ts
|
||||
|
||||
public_api:
|
||||
concept:
|
||||
- "注册 v-permissions 指令,用于按权限隐藏/禁用 UI"
|
||||
|
||||
dependency_closure:
|
||||
runtime:
|
||||
- "权限判断:src/utils/permission(hasPermission)"
|
||||
- "路由/用户权限数据:通常来自 store/user 或 routes 权限模块(视实现而定)"
|
||||
|
||||
acceptance:
|
||||
- "模板中存在 v-permissions 使用时不报错"
|
||||
- "无权限时能按设计移除/隐藏元素(以 hasPermission 实现为准)"
|
||||
|
||||
pitfalls:
|
||||
- "指令依赖 hasPermission 的语义;抽取到目标项目需同步其实现与权限数据来源"
|
||||
Reference in New Issue
Block a user