📝 Add doc about Input[allowClear]

This commit is contained in:
afc163 2018-12-28 18:30:32 +08:00 committed by 偏右
parent b0df3c1225
commit a86b760f85
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Keyboard and mouse can be used for providing or changing data.
| value | The input content value | string | |
| onChange | callback when user input | function(e) | |
| onPressEnter | The callback function that is triggered when Enter key is pressed. | function(e) | |
| allowClear | allow to remove input content with clear icon | boolean | |
> When `Input` is used in a `Form.Item` context, if the `Form.Item` has the `id` and `options` props defined
> then `value`, `defaultValue`, and `id` props of `Input` are automatically set.

View File

@ -30,6 +30,7 @@ title: Input
| value | 输入框内容 | string | |
| onChange | 输入框内容变化时的回调 | function(e) | |
| onPressEnter | 按下回车的回调 | function(e) | |
| allowClear | 可以点击清除图标删除内容 | boolean | |
> 如果 `Input``Form.Item` 内,并且 `Form.Item` 设置了 `id``options` 属性,则 `value` `defaultValue``id` 属性会被自动设置。