Loading...
Loading...
Compare original and translation side by side
prototype/prototype/prototype/prototype/prototype/Element | How it should appearns-living-specprototype/元素 | 应呈现的外观ns-living-spec| Constraint | Reason |
|---|---|
| Normative voice ("must" / "should") | Validation checklists need pass/fail, not narrative |
| Visual form only | Deep domain in product/spec docs; mix kills scanability |
| One file = one surface | Card and form answer different questions |
| Code as source of truth | Specs drift from components → decoration |
| Full states | Empty, overflow, disabled, warning, conditional visibility — where QA fails |
Behavior as | Ties interaction to visible change; no hooks/state story |
| 约束 | 原因 |
|---|---|
| 使用规范性语气(“必须”/“应当”) | 验证检查表需要明确的通过/失败标准,而非叙述性内容 |
| 仅关注视觉形式 | 产品/规范文档有各自的深度领域;混合内容会降低可读性 |
| 一个文件对应一个界面 | 卡片和表单解决的是不同问题 |
| 以代码为事实来源 | 规范与组件脱节会沦为装饰性内容 |
| 覆盖完整状态 | 空状态、溢出状态、禁用状态、警告状态、条件可见性——这些是QA常出错的地方 |
行为采用 | 将交互与可见变化关联;无需涉及钩子/状态逻辑 |
undefinedundefinedundefinedundefined| Type | Doc focus | Keep out |
|---|---|---|
| Canvas card | Zones, RO content, badges, handles, create buttons | Panel form fields; layout formulas |
| Panel form | Field order, toggles, empty states, modes | Shell chrome; canvas card chrome |
| Shell | Fixed chrome (width, header, scroll) | Per-selection form bodies |
| Technical layout | Grid, gaps, resize | Visual appearance (sibling normative doc) |
| 类型 | 文档重点 | 排除内容 |
|---|---|---|
| 画布卡片 | 区域、只读内容、徽章、手柄、创建按钮 | 面板表单字段;布局公式 |
| 面板表单 | 字段顺序、开关、空状态、模式 | 外壳界面元素;画布卡片界面元素 |
| 外壳 | 固定界面元素(宽度、页眉、滚动) | 选中项对应的表单主体 |
| 技术布局 | 网格、间距、调整大小 | 视觉外观(参考同类规范性文档) |
useStatevN/prototype/prototype/useStatevN/prototype/prototype/| Intent | Read first |
|---|---|
| Canvas card | examples/card-canvas.md |
| Panel form | examples/form-panel.md |
| Panel chrome only | examples/shell-panel.md |
| 用途 | 先阅读 |
|---|---|
| 画布卡片 | examples/card-canvas.md |
| 面板表单 | examples/form-panel.md |
| 仅面板界面元素 | examples/shell-panel.md |
ns-proto-creatorprototype/ns-living-specns-proto-creatorprototype/ns-living-spec