Skip to content

Commit

Permalink
docs(textarea): update default value (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Dec 20, 2023
1 parent de3c6c0 commit 15ec577
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/textarea/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ label | String / Slot | - | \- | N
maxcharacter | Number | - | \- | N
maxlength | Number | - | \- | N
placeholder | String | undefined | \- | N
value | String | - | \- | N
default-value | String | undefined | uncontrolled property | N
value | String | null | \- | N
default-value | String | '' | uncontrolled property | N

### Textarea Events

Expand Down
4 changes: 2 additions & 2 deletions src/textarea/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ maxlength | Number | -1 | 用户最多可以输入的字符个数。默认为 -1
indicator | Boolean | false | 显示文本计数器,如 0/140。当 `maxlength < 0 && maxcharacter < 0` 成立时, indicator无效 | N
placeholder | String | undefined | 占位符 | N
placeholderStyle | String | '' | 指定 placeholder 的样式,目前仅支持 color ,font-size和font-weight | N
value | String | - | 文本框值 | N
default-value | String | undefined | 文本框值。非受控属性 | N
value | String | null | 文本框值 | N
default-value | String | '' | 文本框值。非受控属性 | N
fixed | Boolean | false | 如果 textarea 是在一个 `position:fixed` 的区域,需要显示指定属性 fixed 为 true | N
bordered | Boolean | false | 是否显示外边框 | N
cursor | Number | -1 | 指定 focus 时的光标位置 | N
Expand Down
2 changes: 1 addition & 1 deletion src/textarea/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export interface TdTextareaProps {
};
/**
* 文本框值
* @default ''
* @default null
*/
value?: {
type: StringConstructor;
Expand Down

0 comments on commit 15ec577

Please sign in to comment.