ant-design/docs/spec/direct.zh-CN.md
Tao Zhou 2e9354c3b3
docs: fix minor errors and improve readability (#45514)
* docs: replace an abbreviation with a better word in direct.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: improve readability in lightweight.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: replace unnecessary abbreviations with translations in invitation.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: fix a typo, remove an extra space and replace an unnecessary abbreviation in transition.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: improve readability in visualization-page.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: fix a typo and improve readability in detail-page.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: improve readability in research-form.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: improve readability in research-list.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: fix a typo in research-result.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: fix a wrong img tag in research-navigation.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: improve readability in research-empty.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: fix punctuation inconsistency and improve readability in visual.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: fix typos and improve readability in motion.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

* docs: fix punctuation errors and improve readability in illustration.zh-CN.md

Signed-off-by: Tao Zhou <taozhou@umich.edu>

---------

Signed-off-by: Tao Zhou <taozhou@umich.edu>
2023-10-25 09:30:25 +08:00

2.9 KiB

group type order title
设计模式 原则 5 直截了当

正如 Alan Cooper 所言:「需要在哪里输出,就要允许在哪里输入」。这就是直接操作的原理。例如:不要为了编辑内容而打开另一个页面,应该直接在上下文中实现编辑。


页内编辑

单击编辑示例

单字段行内编辑

当「易读性」远比「易编辑性」重要时,可以使用「单击编辑」。


文字链/图标编辑示例

当「易读性」为主,同时又要突出操作行的「易编辑性」时,可使用「文字链/图标编辑」。


多字段行内编辑示例

多字段行内编辑

注:在「多字段行内编辑」的情况下,显示的内容和编辑时所需的字段会存在比较大的差异,所以更需要「巧用过渡」原则中的「解释刚刚发生了什么」来消除这种视觉影响。



利用拖放

拖放列表示例

拖放列表

只能限制在一个维度(上/下或者左/右)进行拖放。


拖放图片/文件示例

拖放图片/文件