mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
2e9354c3b3
* 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>
65 lines
2.9 KiB
Markdown
65 lines
2.9 KiB
Markdown
---
|
||
group: 设计模式
|
||
type: 原则
|
||
order: 7
|
||
title: 简化交互
|
||
---
|
||
|
||
根据费茨法则(Fitts's Law),用户鼠标移动距离越短、对象相对目标越大,用户越容易操作。通过运用上下文工具(即:放在内容中的操作工具),使内容和操作融合,从而简化交互。
|
||
|
||
> **费茨法则** :到达目标的时间是到达目标的距离与目标大小的函数,具体:<img src="https://os.alipayobjects.com/rmsportal/wAcbQmeqTWDqsnu.png" width="150" />其中:1. D 为设备当前位置和目标位置的距离;2. W 为目标的大小。距离越长,所用时间越长;目标越大,所用时间越短。
|
||
|
||
---
|
||
|
||
## 实时可见工具
|
||
|
||
<ImagePreview>
|
||
<img class="preview-img" alt="实时可见工具示例 --摘自知乎" description="状态一:在文案中出现一个相对明显的点击区域;<br>状态二:鼠标悬停时,鼠标「指针」变为「手型」,底色发生变化,邀请用户点击。<br>状态三:鼠标点击后,和未点击前有明显的区分。" src="https://gw.alipayobjects.com/zos/rmsportal/ofpeZpgdrqXcRpTlVXTp.png">
|
||
</ImagePreview>
|
||
如果某个操作非常重要,就应该把它放在界面中,并实时可见。
|
||
|
||
<br>
|
||
|
||
---
|
||
|
||
## 悬停即现工具
|
||
|
||
<ImagePreview>
|
||
<img class="preview-img" alt="悬停即现工具示例" description="鼠标悬停时,出现操作项。" src="https://gw.alipayobjects.com/zos/rmsportal/XzKWrNfqIMNnIrwWNJYg.png">
|
||
</ImagePreview>
|
||
如果某个操作不那么重要,或者使用「实时可见工具」过于啰嗦会影响用户阅读时,可以在悬停在该对象上时展示操作项。
|
||
|
||
<br>
|
||
|
||
---
|
||
|
||
## 开关显示工具
|
||
|
||
<ImagePreview>
|
||
<img class="preview-img" alt="开关显示工具示例" description="用户点击「修改」后,Table 中「文本」变成「输入框」,开启编辑功能。" src="https://gw.alipayobjects.com/zos/rmsportal/iLilpTYKqogBNlwpmVGw.png">
|
||
</ImagePreview>
|
||
|
||
如果某些操作只需要在特定模式时显示,可以通过开关来实现。
|
||
|
||
<br>
|
||
|
||
---
|
||
|
||
## 可视区域 ≠ 可点击区域
|
||
|
||
<ImagePreview>
|
||
<img class="preview-img" alt="文字链热区示例" description="当悬浮在 ID 所在的文字链单元格时,鼠标「指针」随即变为「手型」,单击即可跳转。" src="https://gw.alipayobjects.com/zos/rmsportal/lhOpWlaOzwsuHGxqHgPg.png">
|
||
</ImagePreview>
|
||
|
||
在使用 Table 时,文字链的点击范围受到文字长短影响,可以设置整个单元格为热区,以便用户触发。
|
||
|
||
<br>
|
||
|
||
<ImagePreview>
|
||
<img class="preview-img" alt="按钮热区示例" description="鼠标移入按钮附近,即可激活 Hover 状态。" src="https://gw.alipayobjects.com/zos/rmsportal/BlUnqNCHsgUnhnRjMTnX.png">
|
||
</ImagePreview>
|
||
|
||
当需要增强按钮的响应性时,可以通过增加用户点击热区的范围,而不是增大按钮形状,来增强响应性,又不降低美感。
|
||
|
||
> 注:在移动端尤其适用。
|