Skip to content

Commit 3ff13ec

Browse files
fix(Textarea): 更新 allowInputOverMax 属性描述,明确超出 maxlengthmaxcharacter 的输入行为 (#704)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bf7f4fb commit 3ff13ec

File tree

24 files changed

+27
-27
lines changed

24 files changed

+27
-27
lines changed

db/TDesign.db

0 Bytes
Binary file not shown.

packages/products/tdesign-miniprogram/src/textarea/README.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name | type | default | description | required
99
style | Object | - | CSS(Cascading Style Sheets) | N
1010
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
1111
adjust-position | Boolean | true | \- | N
12-
allow-input-over-max | Boolean | false | `1.8.6` | N
12+
allow-input-over-max | Boolean | false | `1.8.6`。Allow input after exceeding `maxlength` or `maxcharacter` | N
1313
autofocus | Boolean | false | \- | N
1414
autosize | Boolean / Object | false | Typescript:`boolean \| { maxHeight?: number, minHeight?: number }` | N
1515
bordered | Boolean | false | \- | N

packages/products/tdesign-miniprogram/src/textarea/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
style | Object | - | 样式 | N
1010
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
1111
adjust-position | Boolean | true | 键盘弹起时,是否自动上推页面 | N
12-
allow-input-over-max | Boolean | false | `1.8.6`超出maxlength或maxcharacter之后是否还允许输入 | N
12+
allow-input-over-max | Boolean | false | `1.8.6`超出 `maxlength``maxcharacter` 之后是否还允许输入 | N
1313
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
1414
autosize | Boolean / Object | false | 是否自动增高,值为 true 时,style.height 不生效。支持传入对象,如 { maxHeight: 120, minHeight: 20 }。TS 类型:`boolean \| { maxHeight?: number, minHeight?: number }` | N
1515
bordered | Boolean | false | 是否显示外边框 | N

packages/products/tdesign-miniprogram/src/textarea/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props: TdTextareaProps = {
1111
type: Boolean,
1212
value: true,
1313
},
14-
/** 超出maxlength或maxcharacter之后是否还允许输入 */
14+
/** 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 */
1515
allowInputOverMax: {
1616
type: Boolean,
1717
value: false,

packages/products/tdesign-miniprogram/src/textarea/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface TdTextareaProps {
1414
value?: boolean;
1515
};
1616
/**
17-
* 超出maxlength或maxcharacter之后是否还允许输入
17+
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
1818
* @default false
1919
*/
2020
allowInputOverMax?: {

packages/products/tdesign-mobile-react/src/textarea/textarea.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name | type | default | description | required
88
-- | -- | -- | -- | --
99
className | String | - | className of component | N
1010
style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N
11-
allowInputOverMax | Boolean | false | \- | N
11+
allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or `maxcharacter` | N
1212
autofocus | Boolean | false | \- | N
1313
autosize | Boolean / Object | false | Typescript:`boolean \| { minRows?: number; maxRows?: number }` | N
1414
bordered | Boolean | false | \- | N

packages/products/tdesign-mobile-react/src/textarea/textarea.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-- | -- | -- | -- | --
99
className | String | - | 类名 | N
1010
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
11-
allowInputOverMax | Boolean | false | 超出maxlength或maxcharacter之后是否还允许输入 | N
11+
allowInputOverMax | Boolean | false | 超出 `maxlength``maxcharacter` 之后是否还允许输入 | N
1212
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
1313
autosize | Boolean / Object | false | 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度。TS 类型:`boolean \| { minRows?: number; maxRows?: number }` | N
1414
bordered | Boolean | false | 是否显示外边框 | N

packages/products/tdesign-mobile-react/src/textarea/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { FocusEvent, FormEvent, CompositionEvent } from 'react';
99

1010
export interface TdTextareaProps {
1111
/**
12-
* 超出maxlength或maxcharacter之后是否还允许输入
12+
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
1313
* @default false
1414
*/
1515
allowInputOverMax?: boolean;

packages/products/tdesign-mobile-vue/src/textarea/props.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { TdTextareaProps } from './type';
88
import { PropType } from 'vue';
99

1010
export default {
11-
/** 超出maxlength或maxcharacter之后是否还允许输入 */
11+
/** 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 */
1212
allowInputOverMax: Boolean,
1313
/** 自动聚焦,拉起键盘 */
1414
autofocus: Boolean,
1515
/** 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度 */
1616
autosize: {
1717
type: [Boolean, Object] as PropType<TdTextareaProps['autosize']>,
18-
default: false,
18+
default: false as TdTextareaProps['autosize'],
1919
},
2020
/** 是否显示外边框 */
2121
bordered: Boolean,
@@ -70,11 +70,11 @@ export default {
7070
/** 文本框值 */
7171
value: {
7272
type: [String, Number] as PropType<TdTextareaProps['value']>,
73-
default: undefined,
73+
default: undefined as TdTextareaProps['value'],
7474
},
7575
modelValue: {
7676
type: [String, Number] as PropType<TdTextareaProps['value']>,
77-
default: undefined,
77+
default: undefined as TdTextareaProps['value'],
7878
},
7979
/** 文本框值,非受控属性 */
8080
defaultValue: {

packages/products/tdesign-mobile-vue/src/textarea/textarea.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
name | type | default | description | required
88
-- | -- | -- | -- | --
9-
allowInputOverMax | Boolean | false | \- | N
9+
allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or `maxcharacter` | N
1010
autofocus | Boolean | false | \- | N
1111
autosize | Boolean / Object | false | Typescript:`boolean \| { minRows?: number; maxRows?: number }` | N
1212
bordered | Boolean | false | \- | N

0 commit comments

Comments
 (0)