Skip to content

Commit 3698e30

Browse files
authored
docs: ✏️ 修复textarea组件的maxlength属性类型标注错误 (#502)
1 parent 2cc7d7f commit 3698e30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/component/textarea.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const value = ref<string>('')
129129
| placeholderStyle | 原生属性,指定 placeholder 的样式 | string | - | - | - |
130130
| placeholderClass | 原生属性,指定 placeholder 的样式类 | string | - | - | - |
131131
| disabled | 原生属性,禁用 | boolean | - | false | - |
132-
| maxlength | 原生属性,最大输入长度,设置为 -1 的时候不限制最大长度 | string | - | - | - |
132+
| maxlength | 原生属性,最大输入长度,设置为 -1 的时候不限制最大长度 | number | - | - | - |
133133
| auto-focus | 原生属性,自动聚焦,拉起键盘。 | boolean | - | false | - |
134134
| focus | 原生属性,获取焦点 | boolean | - | false | - |
135135
| auto-height | 原生属性,是否自动增高,设置 auto-height 时,style.height 不生效 | boolean | - | false | - |

src/uni_modules/wot-design-uni/components/wd-textarea/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const textareaProps = {
6060

6161
/**
6262
* * 最大输入长度,设置为-1表示不限制最大长度。
63-
* 类型:string
63+
* 类型:number
6464
* 默认值:-1
6565
*/
6666
maxlength: makeNumberProp(-1),

0 commit comments

Comments
 (0)