Browse Source

docs: fix typos in `Input` (#4830)

close: #4826
pull/4839/head^2
根号三 3 years ago committed by GitHub
parent
commit
943a345a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      components/input/index.en-US.md
  2. 8
      components/input/index.zh-CN.md

8
components/input/index.en-US.md

@ -27,7 +27,7 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
| prefix | The prefix icon for the Input. | string\|slot | | |
| size | The size of the input box. Note: in the context of a form, the `large` size is used. Available: `large` `default` `small` | string | `default` | |
| suffix | The suffix icon for the Input. | string\|slot | | |
| type | The type of input, see: [MDN](https://developer.mozilla.org/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types)(use `Input.TextArea` instead of `type="textarea"`) | string | `text` | |
| type | The type of input, see: [MDN](https://developer.mozilla.org/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types)(use `<a-textarea />` instead of `type="textarea"`) | string | `text` | |
| value(v-model) | The input content value | string | | |
| allowClear | allow to remove input content with clear icon | boolean | | |
@ -40,7 +40,7 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
> 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.
### Input.TextArea
### TextArea
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- | --- |
@ -50,13 +50,13 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
| allowClear | allow to remove input content with clear icon | boolean | | 1.5.0 |
| showCount | Whether show text count | boolean | false | |
### Input.TextArea Events
### TextArea Events
| Events Name | Description | Arguments |
| ----------- | ------------------------------------------------------------------ | ----------- |
| pressEnter | The callback function that is triggered when Enter key is pressed. | function(e) |
The rest of the props of `Input.TextArea` are the same as the original [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea).
The rest of the props of `TextArea` are the same as the original [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea).
#### Input.Search

8
components/input/index.zh-CN.md

@ -28,7 +28,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg
| prefix | 带有前缀图标的 input | string\|slot | | |
| size | 控件大小。注:标准表单内的输入框大小限制为 `large`。可选 `large` `default` `small` | string | `default` | |
| suffix | 带有后缀图标的 input | string\|slot | | |
| type | 声明 input 类型,同原生 input 标签的 type 属性,见:[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#属性)(请直接使用 `Input.TextArea` 代替 `type="textarea"`)。 | string | `text` | |
| type | 声明 input 类型,同原生 input 标签的 type 属性,见:[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#属性)(请直接使用 `<a-textarea />` 代替 `type="textarea"`)。 | string | `text` | |
| value(v-model) | 输入框内容 | string | | |
| allowClear | 可以点击清除图标删除内容 | boolean | | |
@ -41,7 +41,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg
> 如果 `Input``Form.Item` 内,并且 `Form.Item` 设置了 `id``options` 属性,则 `value` `defaultValue``id` 属性会被自动设置。
### Input.TextArea
### TextArea
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- | --- |
@ -51,13 +51,13 @@ cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg
| allowClear | 可以点击清除图标删除内容 | boolean | | 1.5.0 |
| showCount | 是否展示字数 | boolean | false | |
### Input.TextArea 事件
### TextArea 事件
| 事件名称 | 说明 | 回调参数 |
| ---------- | -------------- | ----------- |
| pressEnter | 按下回车的回调 | function(e) |
`Input.TextArea` 的其他属性和浏览器自带的 [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) 一致。
`Textarea` 的其他属性和浏览器自带的 [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) 一致。
#### Input.Search

Loading…
Cancel
Save