capitialized sentences in list

pull/6839/head
shenlin192@gmail.com 8 years ago
parent f9f93c0c30
commit b0909774c0

@ -0,0 +1,185 @@
---
order: 2
title:
zh-CN: 表单
en-US: Form
---
作为获取用户输入的重要交互方式,表单也承担将问题和答案进行配对的角色。
A form is an important human machine interface to get a user's information. It's necessary to consider what questions should be asked according to the expected answers.
设计者进行表单设计时,应当注意这几点:
In the design of a form, it's recommended to:
1. 确保用户了解要提供什么信息,以及为什么要提供这些信息。
1. let the user knows exactly what information is required and why he is doing this.
为初级用户偶尔访问的用户提供白话作为『标签』为领域专家提供专业术语作为『标签』。当需要用户提供敏感信息时通过『输入提示』来说明系统为什么要这么做eg需要获取身份证号码、手机号码时。
Use daily expressions as `label`s for junior users or users who visit occasionally. Use professional terms as `label`s
For the primary user / occasional users to provide vernacular as a "label". for domain experts to provide professional terms as a "label". When the user needs to provide sensitive information, through the "input prompt" to explain why the system to do so, eg: need to obtain the identity card number, mobile phone number.
2. 让用户能在上下文中获取信息,帮助他完成输入。
2. So that users can get information in the context to help him complete the input.
使用『良好的默认值』、『结构化的格式』、『输入提示』、『输入提醒』等方式,避免让用户在空白中完成输入。
Use "good default", "structured format", "input prompt", "input reminder", etc., to avoid allowing users to complete the input in the blank.
3. 对错误敏感,并尽可能宽容。
通过不同的『校验』规则和形式进行反馈避免用户在点击提交后才刚刚开始『校验』让用户提前纠正错误依据『容错格式』允许用户以多种格式和语法输入eg用户在电话号码输入框中多输入了一个空格系统存储时可以主动删掉空格但是不需要告诉用户这是一个错误。
4. 不要提出不必要的问题。
---
## 内容
## Content
<img class="preview-img" align="right" alt="结构示例" src="https://os.alipayobjects.com/rmsportal/mLkQbODgVsdGUTe.png">
通常表单会有四个部分组成。
A form is usually consisted of 4 parts, which are
1. 标签
1. label
2. 输入框
2. input
3. 校验反馈
3. feedback
4. 动作
4. action
> 注:`*` 表明该项为必填项。
> Note: `*` indicates that the item is required.
## 交互
## Interactions
### 填空
<img class="preview-img" align="right" alt="填空示例" src="https://os.alipayobjects.com/rmsportal/SdzCTaevNMvJFBR.png">
在一种描述性的上下文中出现输入项,可以帮助用户理解当前的状况,以及需要提供什么数据。
### 组合输入框
<img class="preview-img" align="right" alt="组合输入框示例" src="https://os.alipayobjects.com/rmsportal/waStvhMnuoqqsCE.png">
当两个输入框关联性很强时,可以前后拼接,减少页面空间。
### 对齐方式
<img class="preview-img" align="right" alt="对齐方式示例" src="https://os.alipayobjects.com/rmsportal/cjHTEtXFxUSdHnE.png">
在页面设计表单时,按钮组必须和输入框左对齐。
### 禁用主按钮
当输入框非常少时(一般少于 3 个),如果用户没有在必填项中输入内容,可禁用『提交』等主按钮;当输入框非常多时(超过 5 项以上),不建议禁用主按钮。
<br>
<img class="preview-img" align="right" alt="未达字符标准时,主按钮禁用状态" src="https://os.alipayobjects.com/rmsportal/VabHKlbouFxSQXz.png">
<img class="preview-img" align="right" alt="达到字符标准时,主按钮可用状态" src="https://os.alipayobjects.com/rmsportal/usdFxJmWDawqUuq.png">
当输入框非常少时,用户一输入就会有反馈,因而主按钮的禁用规则非常清晰,容易被用户理解。
<br>
<img class="preview-img" align="right" alt="不禁用示例" src="https://os.alipayobjects.com/rmsportal/GwZhvOuXmwqUIUW.png">
当输入框非常多时(尤其是输入项中交叉了必填项和非必填项),整个反馈链路冗长又复杂,禁用规则难以被识别,容易引起困惑。
### 结构化的格式
<img class="preview-img" align="right" alt="结构化的格式示例" src="https://os.alipayobjects.com/rmsportal/SQgGfreRAqPZPsm.png">
用户对输入的内容很熟悉,且系统不希望接受任何偏离期望的格式。
### 输入提示 & 输入提醒
<img class="preview-img inline" align="right" alt="输入提示示例" description="在输入框激活后,输入提示一直出现至该输入框失去焦点。" src="https://os.alipayobjects.com/rmsportal/cTlmdEprGSzMZfs.png">
<img class="preview-img inline" align="right" alt="输入提醒示例" description="在输入框激活后,输入提醒不要马上消失,等用户完成第一个词输入后再消失。" src="https://os.alipayobjects.com/rmsportal/QPhvLWfMbLTvjRw.png">
输入提示:不希望在标签上放置太多文字进行解释,同时只有标签又会引起误解。
输入提醒:提醒用户该控件的目的或所需格式,由于在用户输入后提醒就会消失,所以适用在用户对内容比较熟悉时。
### 密码加强计
<img class="preview-img" align="right" alt="密码强度示例" src="https://os.alipayobjects.com/rmsportal/wKpOgeyyoOUeCrk.png">
提供关于密码强度和有效性的及时反馈,适用在注册页面时的密码输入框。
### 校验
<img class="preview-img inline" align="right" description="输入时的实时校验。" src="https://os.alipayobjects.com/rmsportal/urCdIJFuNYCenqH.png">
<img class="preview-img inline" align="right" description="输入框失去焦点后的校验。" src="https://os.alipayobjects.com/rmsportal/KkcSBkbTJirIxCw.png">
<img class="preview-img" align="right" description="点击『提交』后,系统将处理结果直接在页面上进行反馈(统计错误数量和标记错误内容)。" src="https://zos.alipayobjects.com/rmsportal/xTtVSREbASRMstTggVGD.png">
通过不同的『校验』规则和形式进行反馈,避免用户在点击提交后才刚刚开始『校验』,让用户提前纠正错误。
### 字数校验框
<img class="preview-img" align="right" alt="字数校验框示例" src="https://os.alipayobjects.com/rmsportal/JxzQIRfMCtMjuaH.png">
用于统计当前输入长度,以及是否超过系统阈值。
## 规格
### 间距
<img class="preview-img" align="right" alt="间隔示例" src="https://os.alipayobjects.com/rmsportal/dlTiHzZvCGRbMzL.png">
典型表单的间隔规范。
### 输入框宽度
<img class="preview-img good" align="right" alt="正确示例" src="https://os.alipayobjects.com/rmsportal/vypllNQZsEHRszB.png">
<img class="preview-img bad" align="right" alt="错误示例" src="https://os.alipayobjects.com/rmsportal/XSLwnrlLbKFjiNj.png">
当内容可预知,可以根据内容长短进行定义其落在多少个栅格上。
<br>
### 对齐方式
无论左对齐、右对齐还是顶部对齐,都有其优缺点和应用场景,所以正确的解决方案取决于具体目标和制约因素,诸如:希望用户加快或者降低填写速度(有时设计者希望用户深思熟虑每个输入)、屏幕显示的限制、本地化考虑等多种因素。
<br>
<img class="preview-img" align="right" alt="右对齐(推荐)" src="https://os.alipayobjects.com/rmsportal/UxGJfenYBKvkEEB.png">
右对齐(推荐)。
Align right (recommended)
- 优点:节约垂直空间。
- 缺点:降低可读性;标签长度和输入框弹性小。
- 场景:既要减少垂直空间,又要加快填写速度。
<br>
<img class="preview-img" align="right" alt="顶部对齐" src="https://os.alipayobjects.com/rmsportal/AsyyNKormNdEMLi.png">
顶部对齐。
- 优点:有最快的浏览和处理速度;标签长度弹性大。
- 缺点:非常占垂直空间。
- 场景:希望用户快速填写表单,完成任务。
<br>
<img class="preview-img" align="right" alt="左对齐" src="https://os.alipayobjects.com/rmsportal/eqUyDExbRlAQoas.png">
左对齐。
Align left
- 优点:文字开头按阅读视线对齐,方便阅读;节约垂直空间。
- 缺点:填写速度慢;标签长度和输入框弹性小。
- 场景:希望用户放慢速度,仔细思考表单中的每个输入框。

@ -7,8 +7,8 @@ title:
Layout is the prerequisite for a webpage. It's also the foundation of follow-up interactive and visual design. In order to guarantee consistency among similar products, Ant Design provides some common layout templates. Before choosing one of these templates, you need to have a clear mind about: Layout is the prerequisite for a webpage. It's also the foundation of follow-up interactive and visual design. In order to guarantee consistency among similar products, Ant Design provides some common layout templates. Before choosing one of these templates, you need to have a clear mind about:
- the main tasks that a user needs to accomplish and all necessary information for making such decisions. - The main tasks that a user needs to accomplish and all necessary information for making such decisions.
- the priorities and features of those tasks and information, so as to select a reasonable layout - The priorities and features of those tasks and information, so as to select a reasonable layout
--- ---
@ -25,8 +25,8 @@ Through a large number of practices, Ant Design summarized six commonly used lay
Home page is usually the first step for a user to understand a website or the products. Generally, home page consists of product drawings, brief product introductions, and user login interfaces. In the design, we recommend you to: Home page is usually the first step for a user to understand a website or the products. Generally, home page consists of product drawings, brief product introductions, and user login interfaces. In the design, we recommend you to:
- keep the copywriting clear and simply, which helps you better express the ideas. - Keep the copywriting clear and simply, which helps you better express the ideas.
- use intuitive pictures for a product, which helps to deepen a user's understanding and impression. - Use intuitive pictures for a product, which helps to deepen a user's understanding and impression.
### Dashboard ### Dashboard
@ -36,9 +36,9 @@ Home page is usually the first step for a user to understand a website or the pr
Dashboard collects a variety of information, such as digitals, graphics, copywriting, etc. Key information should be clearly represented and easily understood. Thus, displaying the complex information in a clear way is important in the design. For this propose, we recommend you to: Dashboard collects a variety of information, such as digitals, graphics, copywriting, etc. Key information should be clearly represented and easily understood. Thus, displaying the complex information in a clear way is important in the design. For this propose, we recommend you to:
- organize the page layout according to the importance of information, so as to highlight key points. - Organize the page layout according to the importance of information, so as to highlight key points.
- visualize the data, which allows users to understand key information as well as the overall situation in an intuitive way. - Visualize the data, which allows users to understand key information as well as the overall situation in an intuitive way.
- use color and grid layout logically, which helps to reduce a user's visual fatigue. - Use color and grid layout logically, which helps to reduce a user's visual fatigue.
### List page ### List page
@ -49,8 +49,8 @@ Dashboard collects a variety of information, such as digitals, graphics, copywri
List is a way to display information in parallel. A well designed list can be helpful for users to read basic information and perform corresponding operations quickly. Therefore, the "readability" and "operability" of a list are the keys to the design. For this propose, we recommend you to: List is a way to display information in parallel. A well designed list can be helpful for users to read basic information and perform corresponding operations quickly. Therefore, the "readability" and "operability" of a list are the keys to the design. For this propose, we recommend you to:
- identify the importance of information accordingly and show nothing but key information as well as the corresponding operations. - Identify the importance of information accordingly and show nothing but key information as well as the corresponding operations.
- fold secondary information or put it into the details page. It allows a user to access information in a progressive way when the content is too complex. - Fold secondary information or put it into the details page. It allows a user to access information in a progressive way when the content is too complex.
### Table page ### Table page
@ -60,9 +60,9 @@ List is a way to display information in parallel. A well designed list can be he
Table is a carrier for multi-dimensional information. It can make complex information to be read and understood easily. Its readability, convenience and operability play an essential role in the user experience. Therefore, we should pay attention to the following points in the design: Table is a carrier for multi-dimensional information. It can make complex information to be read and understood easily. Its readability, convenience and operability play an essential role in the user experience. Therefore, we should pay attention to the following points in the design:
- construct a clear table layout. It can be helpful for a user to receive and understand information. - Construct a clear table layout. It can be helpful for a user to receive and understand information.
- highlight key information through some visual adjustments. - Highlight key information through some visual adjustments.
- use the horizontal or vertical zebra strip smartly when there is a large multi-row table or there are multiple columns in each row. By doing so, information is more distinguishable and easier to be understood. - Use the horizontal or vertical zebra strip smartly when there is a large multi-row table or there are multiple columns in each row. By doing so, information is more distinguishable and easier to be understood.
### Details page ### Details page
@ -72,8 +72,8 @@ Table is a carrier for multi-dimensional information. It can make complex inform
Details page usually carries a large amount of basic information, extended information as well as status information. It's important to identify priorities of the information. A clear layout can be helpful for a user to get key information at a glance and make decisions efficiently. In the design, it's worth noting that: Details page usually carries a large amount of basic information, extended information as well as status information. It's important to identify priorities of the information. A clear layout can be helpful for a user to get key information at a glance and make decisions efficiently. In the design, it's worth noting that:
- layout format, text size and text spacing, are the key factors that affect a user's efficiency to access information. - Layout format, text size and text spacing, are the key factors that affect a user's efficiency to access information.
- text with graphic can be better understood than pure text. - Text with graphic can be better understood than pure text.
### Form page ### Form page
@ -83,10 +83,10 @@ Details page usually carries a large amount of basic information, extended infor
Form page is often used for tasks such as login, register, booking, comment, etc. Form page is indispensable when you need to record the user information. Therefore, a well designed form page can guide the user to complete the data recording workflow behind the form efficiently. We recommended you to: Form page is often used for tasks such as login, register, booking, comment, etc. Form page is indispensable when you need to record the user information. Therefore, a well designed form page can guide the user to complete the data recording workflow behind the form efficiently. We recommended you to:
- provide a clear user's view path, in consideration of how a user will browse the information; - Provide a clear user's view path, in consideration of how a user will browse the information;
- simplify the content of a form (try to avoid redundant inputs) - Simplify the content of a form (try to avoid redundant inputs)
- name the tags that can be easy to read and understand. Avoid confusions caused by ambiguous descriptions; - Name the tags that can be easy to read and understand. Avoid confusions caused by ambiguous descriptions;
- place eye-catching submit buttons on the end of a user's view path, which makes it more conducive for a user to complete all the operations. - Place eye-catching submit buttons on the end of a user's view path, which makes it more conducive for a user to complete all the operations.
--- ---

Loading…
Cancel
Save