Skip to content

Commit 943a345

Browse files
authored
docs: fix typos in Input (#4830)
close: #4826
1 parent a938bcb commit 943a345

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

components/input/index.en-US.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
2727
| prefix | The prefix icon for the Input. | string\|slot | | |
2828
| 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` | |
2929
| suffix | The suffix icon for the Input. | string\|slot | | |
30-
| 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` | |
30+
| 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` | |
3131
| value(v-model) | The input content value | string | | |
3232
| allowClear | allow to remove input content with clear icon | boolean | | |
3333

@@ -40,7 +40,7 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
4040

4141
> 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.
4242
43-
### Input.TextArea
43+
### TextArea
4444

4545
| Property | Description | Type | Default | Version |
4646
| --- | --- | --- | --- | --- | --- |
@@ -50,13 +50,13 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
5050
| allowClear | allow to remove input content with clear icon | boolean | | 1.5.0 |
5151
| showCount | Whether show text count | boolean | false | |
5252

53-
### Input.TextArea Events
53+
### TextArea Events
5454

5555
| Events Name | Description | Arguments |
5656
| ----------- | ------------------------------------------------------------------ | ----------- |
5757
| pressEnter | The callback function that is triggered when Enter key is pressed. | function(e) |
5858

59-
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).
59+
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).
6060

6161
#### Input.Search
6262

components/input/index.zh-CN.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg
2828
| prefix | 带有前缀图标的 input | string\|slot | | |
2929
| size | 控件大小。注:标准表单内的输入框大小限制为 `large`。可选 `large` `default` `small` | string | `default` | |
3030
| suffix | 带有后缀图标的 input | string\|slot | | |
31-
| type | 声明 input 类型,同原生 input 标签的 type 属性,见:[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#属性)(请直接使用 `Input.TextArea` 代替 `type="textarea"`)。 | string | `text` | |
31+
| type | 声明 input 类型,同原生 input 标签的 type 属性,见:[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#属性)(请直接使用 `<a-textarea />` 代替 `type="textarea"`)。 | string | `text` | |
3232
| value(v-model) | 输入框内容 | string | | |
3333
| allowClear | 可以点击清除图标删除内容 | boolean | | |
3434

@@ -41,7 +41,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg
4141

4242
> 如果 `Input``Form.Item` 内,并且 `Form.Item` 设置了 `id``options` 属性,则 `value` `defaultValue``id` 属性会被自动设置。
4343
44-
### Input.TextArea
44+
### TextArea
4545

4646
| 参数 | 说明 | 类型 | 默认值 | 版本 |
4747
| --- | --- | --- | --- | --- | --- |
@@ -51,13 +51,13 @@ cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg
5151
| allowClear | 可以点击清除图标删除内容 | boolean | | 1.5.0 |
5252
| showCount | 是否展示字数 | boolean | false | |
5353

54-
### Input.TextArea 事件
54+
### TextArea 事件
5555

5656
| 事件名称 | 说明 | 回调参数 |
5757
| ---------- | -------------- | ----------- |
5858
| pressEnter | 按下回车的回调 | function(e) |
5959

60-
`Input.TextArea` 的其他属性和浏览器自带的 [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) 一致。
60+
`Textarea` 的其他属性和浏览器自带的 [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) 一致。
6161

6262
#### Input.Search
6363

0 commit comments

Comments
 (0)