From a86b760f855925a32cbd1d787df5292342906354 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 28 Dec 2018 18:30:32 +0800 Subject: [PATCH] :memo: Add doc about Input[allowClear] --- components/input/index.en-US.md | 1 + components/input/index.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/components/input/index.en-US.md b/components/input/index.en-US.md index af47299952..18d5afa5d7 100644 --- a/components/input/index.en-US.md +++ b/components/input/index.en-US.md @@ -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. diff --git a/components/input/index.zh-CN.md b/components/input/index.zh-CN.md index ce91d41585..baa9ed3019 100644 --- a/components/input/index.zh-CN.md +++ b/components/input/index.zh-CN.md @@ -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` 属性会被自动设置。