mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
📝 Add doc about Input[allowClear]
This commit is contained in:
parent
b0df3c1225
commit
a86b760f85
@ -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.
|
||||
|
@ -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` 属性会被自动设置。
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user