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,27 @@
# Module Specaccess-controlACL + hasPermission + v-permissions
module:
id: access-control
name: 访问控制(角色/权限/指令)
type: core
entrypoints:
- src/store/modules/acl.ts
- src/utils/permission.ts
- library/plugins/directive.ts
public_api:
concept:
- "useAclStore 保存 admin/role/permission"
- "hasPermission(target) 统一判断路由/按钮权限"
- "v-permissions 指令在模板侧消费 hasPermission"
dependency_closure:
runtime:
- "Pinia store 初始化src/store/index.ts"
acceptance:
- "acl 中 admin=true 时 hasPermission 永远为 true"
- "指令 v-permissions 可用且不报错(具体隐藏/移除行为以实现为准)"
pitfalls:
- "权限数据来源通常由 user.getUserInfo() 写入 acl抽取时需明确数据流"