diff --git a/src/_common b/src/_common
index bfabef424..23f2fcb5e 160000
--- a/src/_common
+++ b/src/_common
@@ -1 +1 @@
-Subproject commit bfabef4242d7d8a6e2f9931901c0353be8b786fe
+Subproject commit 23f2fcb5e5110cf9cf8a8628d84d80def379d60c
diff --git a/src/form/__test__/__snapshots__/demo.test.jsx.snap b/src/form/__test__/__snapshots__/demo.test.jsx.snap
index cb15101dc..d95ab6410 100644
--- a/src/form/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/form/__test__/__snapshots__/demo.test.jsx.snap
@@ -1362,7 +1362,7 @@ exports[`Form > Form horizontalVue demo works fine 1`] = `
>
@@ -3113,7 +3113,7 @@ exports[`Form > Form mobileVue demo works fine 1`] = `
>
@@ -4718,7 +4718,7 @@ exports[`Form > Form verticalVue demo works fine 1`] = `
>
diff --git a/src/textarea/__test__/__snapshots__/demo.test.jsx.snap b/src/textarea/__test__/__snapshots__/demo.test.jsx.snap
index d43f9b6d8..fc91298e8 100644
--- a/src/textarea/__test__/__snapshots__/demo.test.jsx.snap
+++ b/src/textarea/__test__/__snapshots__/demo.test.jsx.snap
@@ -62,7 +62,7 @@ exports[`Textarea > Textarea cardVue demo works fine 1`] = `
>
@@ -98,7 +98,7 @@ exports[`Textarea > Textarea cardVue demo works fine 1`] = `
>
@@ -135,7 +135,7 @@ exports[`Textarea > Textarea customVue demo works fine 1`] = `
>
@@ -239,7 +239,7 @@ exports[`Textarea > Textarea maxlengthVue demo works fine 1`] = `
>
@@ -414,7 +414,7 @@ exports[`Textarea > Textarea mobileVue demo works fine 1`] = `
>
@@ -549,7 +549,7 @@ exports[`Textarea > Textarea mobileVue demo works fine 1`] = `
>
@@ -585,7 +585,7 @@ exports[`Textarea > Textarea mobileVue demo works fine 1`] = `
>
@@ -642,7 +642,7 @@ exports[`Textarea > Textarea mobileVue demo works fine 1`] = `
>
diff --git a/src/textarea/props.ts b/src/textarea/props.ts
index a99046044..96e537fbc 100644
--- a/src/textarea/props.ts
+++ b/src/textarea/props.ts
@@ -42,9 +42,10 @@ export default {
maxcharacter: {
type: Number,
},
- /** 用户最多可以输入的字符个数 */
+ /** 用户最多可以输入的字符个数。默认为 -1,不限制输入长度 */
maxlength: {
type: Number,
+ default: -1,
},
/** 名称,HTML 元素原生属性 */
name: {
diff --git a/src/textarea/textarea.vue b/src/textarea/textarea.vue
index cdcbb70a4..fe5402366 100644
--- a/src/textarea/textarea.vue
+++ b/src/textarea/textarea.vue
@@ -10,7 +10,7 @@
:class="textareaClassNames"
:style="textareaStyle"
:name="name"
- :maxlength="-1"
+ :maxlength="maxlength"
:disabled="disabled"
:placeholder="placeholder"
@focus="handleFocus"
diff --git a/src/textarea/type.ts b/src/textarea/type.ts
index 5c6baf087..dbe896da0 100644
--- a/src/textarea/type.ts
+++ b/src/textarea/type.ts
@@ -51,7 +51,8 @@ export interface TdTextareaProps {
*/
maxcharacter?: number;
/**
- * 用户最多可以输入的字符个数
+ * 用户最多可以输入的字符个数。默认为 -1,不限制输入长度
+ * @default -1
*/
maxlength?: number;
/**