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,37 @@
# Module Specrouter路由与权限守卫
module:
id: router
name: 路由与页面组织
entrypoints:
- src/router/index.ts
- src/router/permissions.ts
public_api:
exports:
- constantRoutes
- asyncRoutes
- setupPermissions(router)
usage_examples:
- "新增页面:在 src/views/<module>/ 添加 Vue 文件,并在 asyncRoutes 中挂载到 Layout children"
dependency_closure:
runtime:
- "routervue-routerbeforeEach/afterEach"
- "store-usertoken/getUserInfo/resetAll/setVirtualRoles"
- "store-routessetRoutes(authentication)"
- "store-settingstheme.showProgressBar"
- "configauthentication/loginInterception/routesWhiteList/supportVisit"
- "utils/pageTitlegetPageTitle(to.meta.title)"
- "utils/routestoLoginRoute"
- "nprogressVabProgress含 nprogress.css"
acceptance:
- "路由可跳转"
- "刷新后路由仍可恢复"
pitfalls:
- "如涉及权限/菜单,需同步 metatitle/icon/...);同时注意 routesWhiteList/loginInterception/authentication 等开关影响守卫逻辑"
- "permissions.ts 直接写 document.title若新项目改为 useHead 等方式需统一"