Skip to content

Commit a4400a4

Browse files
committed
docs: update types
1 parent 07914dd commit a4400a4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/components/textarea/defaultProps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const textareaDefaultProps: TdTextareaProps = {
88
allowInputOverMax: false,
99
autofocus: false,
1010
autosize: false,
11+
disabled: false,
1112
placeholder: undefined,
1213
readonly: false,
1314
};

packages/components/textarea/textarea.en-US.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or
1212
autofocus | Boolean | false | \- | N
1313
autosize | Boolean / Object | false | Typescript: `boolean \| { minRows?: number; maxRows?: number }` | N
1414
count | Boolean / Function | - | Character counter. It is enabled by default when `maxLength` or `maxCharacter` is set.。Typescript: `boolean \| ((ctx: { value: string; count: number; maxLength?: number; maxCharacter?: number }) => TNode)`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
15-
disabled | Boolean | undefined | \- | N
15+
disabled | Boolean | false | \- | N
1616
maxcharacter | Number | - | \- | N
1717
maxlength | Number | - | Typescript: `number` | N
1818
name | String | - | \- | N
1919
placeholder | String | undefined | \- | N
2020
readonly | Boolean | false | \- | N
2121
status | String | - | options: default/success/warning/error | N
2222
tips | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
23-
value | String / Number | - | Typescript: `TextareaValue` `type TextareaValue = string \| number`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
24-
defaultValue | String / Number | - | uncontrolled property。Typescript: `TextareaValue` `type TextareaValue = string \| number`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
23+
value | String | - | Typescript: `TextareaValue` `type TextareaValue = string`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
24+
defaultValue | String | - | uncontrolled property。Typescript: `TextareaValue` `type TextareaValue = string`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
2525
onBlur | Function | | Typescript: `(value: TextareaValue, context: { e: FocusEvent }) => void`<br/> | N
2626
onChange | Function | | Typescript: `(value: TextareaValue, context?: { e?: InputEvent }) => void`<br/> | N
2727
onFocus | Function | | Typescript: `(value: TextareaValue, context : { e: FocusEvent }) => void`<br/> | N

packages/components/textarea/textarea.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ placeholder | String | undefined | 占位符 | N
2020
readonly | Boolean | false | 只读状态 | N
2121
status | String | - | 文本框状态。可选项:default/success/warning/error | N
2222
tips | TNode | - | 输入框下方提示文本,会根据不同的 `status` 呈现不同的样式。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
23-
value | String / Number | - | 文本框值。TS 类型:`TextareaValue` `type TextareaValue = string`[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
24-
defaultValue | String / Number | - | 文本框值。非受控属性。TS 类型:`TextareaValue` `type TextareaValue = string`[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
23+
value | String | - | 文本框值。TS 类型:`TextareaValue` `type TextareaValue = string`[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
24+
defaultValue | String | - | 文本框值。非受控属性。TS 类型:`TextareaValue` `type TextareaValue = string`[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/textarea/type.ts) | N
2525
onBlur | Function | | TS 类型:`(value: TextareaValue, context: { e: FocusEvent }) => void`<br/>失去焦点时触发 | N
2626
onChange | Function | | TS 类型:`(value: TextareaValue, context?: { e?: InputEvent }) => void`<br/>输入内容变化时触发 | N
2727
onFocus | Function | | TS 类型:`(value: TextareaValue, context : { e: FocusEvent }) => void`<br/>获得焦点时触发 | N

0 commit comments

Comments
 (0)