Skip to content

Commit aa211fd

Browse files
czq297297zhiqiangchen
and
zhiqiangchen
authoredMar 6, 2025
docs(input): showCount type 文档 (#8041)
* fix(input): showCount type 文档 * fix(input): showCount type 文档 --------- Co-authored-by: zhiqiangchen <zhiqiang.chen@igg.com>
1 parent 61d39be commit aa211fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
2929
| id | The ID for input | string | | |
3030
| maxlength | max length | number | | 1.5.0 |
3131
| prefix | The prefix icon for the Input. | string\|slot | | |
32-
| showCount | Whether show text count | boolean | false | 3.0 |
32+
| showCount | Whether show text count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string | false | 3.0 |
3333
| status | Set validation status | 'error' \| 'warning' | - | 3.3.0 |
3434
| size | The size of the input box. Note: in the context of a form, the `middle` size is used. Available: `large` `middle` `small` | string | - | |
3535
| suffix | The suffix icon for the Input. | string\|slot | | |
@@ -52,7 +52,7 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca
5252
| allowClear | allow to remove input content with clear icon | boolean | | 1.5.0 | |
5353
| autosize | Height autosize feature, can be set to `true | false`or an object`{ minRows: 2, maxRows: 6 }` | boolean\|object | false | |
5454
| defaultValue | The initial input content | string | | | |
55-
| showCount | Whether show text count | boolean | false | | |
55+
| showCount | Whether show text count | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string | false | | |
5656
| value(v-model) | The input content value | string | | | |
5757

5858
### TextArea Events

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*sBqqTatJ-AkAAA
3030
| id | 输入框的 id | string | | |
3131
| maxlength | 最大长度 | number | | 1.5.0 |
3232
| prefix | 带有前缀图标的 input | string\|slot | | |
33-
| showCount | 是否展示字数 | boolean | false | 3.0 |
33+
| showCount | 是否展示字数 | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | 3.0 |
3434
| status | 设置校验状态 | 'error' \| 'warning' | - | 3.3.0 |
3535
| size | 控件大小。注:标准表单内的输入框大小限制为 `middle`。可选 `large` `middle` `small` | string | - | |
3636
| suffix | 带有后缀图标的 input | string\|slot | | |
@@ -53,7 +53,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*sBqqTatJ-AkAAA
5353
| allowClear | 可以点击清除图标删除内容 | boolean | | 1.5.0 | |
5454
| autosize | 自适应内容高度,可设置为 `true | false` 或对象:`{ minRows: 2, maxRows: 6 }` | boolean\|object | false | |
5555
| defaultValue | 输入框默认内容 | string | | | |
56-
| showCount | 是否展示字数 | boolean | false | | |
56+
_| showCount | 是否展示字数 | boolean \| { formatter: (info: { value: string, count: number, maxLength?: number }) => string } | false | | |_
5757
| value(v-model) | 输入框内容 | string | | | |
5858

5959
### TextArea 事件

0 commit comments

Comments
 (0)
Failed to load comments.