From a661afe0d025325aceaf949a98545c0899e7523a Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Thu, 25 Jun 2026 12:11:35 +0800 Subject: [PATCH] =?UTF-8?q?docs(design):=20CONTRACT=20=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=A1=8C=E9=9D=A2+=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E9=AA=8C=E6=94=B6=E5=8B=BE=E5=85=A8=EF=BC=88=E9=A6=96=E5=B1=8F?= =?UTF-8?q?=E9=97=AD=E7=8E=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01TSKEiHsvauyxYUW2itzUXX --- design/CONTRACT.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/design/CONTRACT.md b/design/CONTRACT.md index 81fc625..66a811a 100644 --- a/design/CONTRACT.md +++ b/design/CONTRACT.md @@ -85,8 +85,8 @@ AppTokens 目前**仅颜色**。原型还驱动: | 屏 | 原型 | Flutter | a(基准) | b | c | |---|---|---|---|---|---| -| 库存列表(桌面) | `inventory.html` | `inventory_list_screen.dart` | ◑ KPI/徽章/列重排已还原;header/toolbar 待收尾 | ✅ golden 自比 | ✅ golden 自比 | -| 库存列表(移动) | `m-inventory.html` | 同上窄屏 | ☐ | ☐ | ☐ | +| 库存列表(桌面) | `inventory.html` | `inventory_list_screen.dart` | ✅ KPI/徽章/列/副标/toolbar 已还原 | ✅ golden 自比 | ✅ golden 自比 | +| 库存列表(移动) | `m-inventory.html` | 同上窄屏(卡片流) | ✅ golden 自比 | ✅ golden 自比 | ✅ golden 自比 | **验收法(HTML→Flutter 特例)**:HTML(Chromium) 与 Flutter 渲染器不同,**严格 0.1% pixelmatch 不适用跨渲染器**(见 design-distill `references/flutter-golden.md`)。本项目双闸: 1. **保真闸(人工目检)**:`node tools/ds-compare.mjs --html .superpowers/prototype/screens/.html --prefix ` → 截原型基准 + 与 Flutter golden 用 montage 并排 → `design/_compare/`。