docs: UI/UX 设计规格二轮修订 — 填充表单分组表、修正 any→unknown
Some checks failed
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled

This commit is contained in:
iven
2026-04-28 01:34:16 +08:00
parent 1404cc8f1a
commit ca32be59be

View File

@@ -298,7 +298,7 @@ interface DrawerFormProps {
title: string; // 抽屉标题
open: boolean;
onClose: () => void;
onSubmit: (values: Record<string, any>) => Promise<void>;
onSubmit: (values: Record<string, unknown>) => Promise<void>;
initialValues?: Record<string, any>;
loading?: boolean;
width?: number | string; // 默认 640
@@ -330,6 +330,15 @@ interface FilterBarProps {
### 3.5 表单分组规范
中等/复杂表单必须分组,每组有标题:
| 表单 | 分组 1 | 分组 2 | 分组 3 | 分组 4 |
|------|--------|--------|--------|--------|
| 患者 | 基本信息(姓名/性别/出生日期/血型) | 联系方式(手机/身份证/地址) | 医疗信息(过敏史/备注) | 紧急联系人(姓名/电话/关系) |
| 预约 | 患者信息(患者/类型/日期) | 医生信息(医生/时段/排班状态) | — | — |
| 随访 | 基本信息(患者/计划日期/类型) | 填写内容(执行人/结果/备注) | — | — |
| 积分商品 | 基本信息(名称/类型/积分/库存) | 展示(图片/描述/上架状态) | — | — |
### 3.6 表单交互规范
- 所有表单字段编辑时必须完整回填(当前患者编辑缺失 allergy_history/notes