nex_design_system/templates/page-spec.md

61 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# UI Page Specification
## 1. 页面基本信息
- 页面名称:
- 所属模块:
- 页面类型:Dashboard / List / Detail / Form / Settings / Workspace / Other
- 使用的项目 Shell / Layout:
- 主要用户:
- 核心任务:
- 对应项目规范章节:
## 2. 信息结构
- 页面上下文/标题:
- 主要操作:
- 次要操作:
- 页面主要区域及顺序:
## 3. 组件复用
- 已有项目组件:
- 第三方原生组件:
- 新增/扩展组件及理由:
- 对应组件契约或项目规范:
## 4. 交互规格
| 交互 | 触发方式 | 状态变化 | 成功反馈 | 失败处理 | 键盘替代 |
|---|---|---|---|---|---|
| | | | | | |
## 5. 页面状态
- Loading:
- Empty:
- Error:
- Forbidden:
- Disabled:
- Success:
## 6. 响应式行为
- 宽屏:
- 中等视口:
- 窄屏:
- 使用项目现有断点:
## 7. 主题与可访问性
- 支持主题:
- Keyboard / Focus:
- 可访问名称和状态文本:
- 长文本/溢出:
- 拖拽替代方式(如适用):
- Reduced Motion:
## 8. 验收标准
- [ ] 使用项目既有 Shell 和页面模式,或记录例外
- [ ] 优先复用已有组件
- [ ] 使用项目 Token/主题权威来源
- [ ] 交互和异步状态完整
- [ ] 支持主题检查完成(如项目支持多主题)
- [ ] 响应式检查完成
- [ ] 键盘与焦点检查完成
- [ ] 项目实际可执行的质量检查已运行
- [ ] 未经授权的业务交互变化为零