个人用户管理开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-07-16 20:15:25 +08:00
parent 03a0f7fd29
commit d2311d0c5b
5 changed files with 311 additions and 2 deletions

View File

@@ -0,0 +1,50 @@
---
name: shz-admin-page-naming
description: Naming convention for new page directories in shz-admin. Use when creating a new page folder under src/pages/.
---
# shz-admin 页面目录命名规范
新建页面时,文件夹命名遵循:**首单词首字母大写,其余字母全部小写**。
## 规则
```
src/pages/{PageName}/
```
- 第一个单词的首字母 **大写**
- 其余所有字母(包括后续单词)**小写**
- 不允许多个大写字母(驼峰)
- 多个单词直接连写,不用分隔符
## 示例
```
✅ Talentcollect ❌ TalentCollect
✅ Mobileusers ❌ MobileUsers
✅ Management ❌ ManagementList
✅ Jobfair ❌ JobFair
✅ Livemgmt ❌ LiveMgmt
✅ Usermgmt ❌ UserMgmt
```
## 目录结构
新建页面时的标准文件结构:
```
src/pages/{PageName}/
└── List/
└── index.tsx
```
如果页面有弹窗子组件,放在同级的 `components/` 下:
```
src/pages/{PageName}/
├── List/
│ └── index.tsx
└── components/
└── SomeModal.tsx
```