From 38ccff26d6f8b29466bcbebad5bae3a163003b9e Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Mon, 17 Aug 2026 11:10:24 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=AE=B0=E5=BD=95=E6=9C=A8=E7=AE=B1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=8D=86=E6=89=8E=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-08-17-box-type-lash-default-design.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/superpowers/specs/2026-08-17-box-type-lash-default-design.md diff --git a/docs/superpowers/specs/2026-08-17-box-type-lash-default-design.md b/docs/superpowers/specs/2026-08-17-box-type-lash-default-design.md new file mode 100644 index 00000000..11380477 --- /dev/null +++ b/docs/superpowers/specs/2026-08-17-box-type-lash-default-design.md @@ -0,0 +1,18 @@ +# 木箱类型捆扎选项默认值设计 + +## 目标 + +在新增木箱类型时,将“是否一次捆扎”和“是否二次捆扎”默认选中为“是”,对应布尔值 `true`。 + +## 设计 + +- 在木箱类型表单 schema 中,为 `needLashOne` 和 `needLashTwo` 增加顶层 `defaultValue: true`。 +- 新增弹窗使用 schema 默认值,因此两个选项初始为 `true`。 +- 编辑弹窗加载详情后通过 `setValues` 回填原数据,覆盖 schema 默认值,不改变已有记录。 +- 不增加后端默认值或空值兜底,避免改变非前端调用方的现有语义。 + +## 验证 + +- 静态检查两个字段均配置 `defaultValue: true`。 +- 检查编辑回填逻辑仍使用接口返回数据覆盖表单值。 +- 按项目约定,未获得测试授权时不新增或运行测试。