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,28 @@
# Task Template: 新增页面 + 路由(轻量版)
# 目标:约束 AI 在本仓库(或迁移后的新仓库)新增页面时的输出与验收。
task:
id: add-page
intent: "新增一个页面,并把路由挂载到 Layout如需要同步 meta 供菜单/面包屑使用)"
inputs:
required:
- module # 例如 goods / userManagement
- page_name # 例如 list / detail
- route_path # 例如 /goods/list
- route_name # 例如 GoodsList
outputs:
files_to_change:
- "src/views/<module>/<page>.vue"
- "src/router/index.ts"
rules:
- "页面文件必须位于 src/views/<module>/ 下"
- "路由必须挂载到 asyncRoutes 的 Layout children除非明确说明是 constantRoutes"
- "如需要菜单展示,必须填写 meta.title如需要图标必须填写 meta.icon"
acceptance:
- "访问 route_path 能渲染页面"
- "刷新后仍可访问(路由可恢复)"
- "若配置 meta菜单/面包屑能展示正确标题"