Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name | type | default | description | required
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
adjust-position | Boolean | true | \- | N
allow-input-over-max | Boolean | false | `1.8.6` | N
allow-input-over-max | Boolean | false | `1.8.6`。Allow input after exceeding `maxlength` or `maxcharacter` | N
autofocus | Boolean | false | \- | N
autosize | Boolean / Object | false | Typescript:`boolean \| { maxHeight?: number, minHeight?: number }` | N
bordered | Boolean | false | \- | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
style | Object | - | 样式 | N
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
adjust-position | Boolean | true | 键盘弹起时,是否自动上推页面 | N
allow-input-over-max | Boolean | false | `1.8.6`。超出maxlength或maxcharacter之后是否还允许输入 | N
allow-input-over-max | Boolean | false | `1.8.6`。超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 | N
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
autosize | Boolean / Object | false | 是否自动增高,值为 true 时,style.height 不生效。支持传入对象,如 { maxHeight: 120, minHeight: 20 }。TS 类型:`boolean \| { maxHeight?: number, minHeight?: number }` | N
bordered | Boolean | false | 是否显示外边框 | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const props: TdTextareaProps = {
type: Boolean,
value: true,
},
/** 超出maxlength或maxcharacter之后是否还允许输入 */
/** 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 */
allowInputOverMax: {
type: Boolean,
value: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface TdTextareaProps {
value?: boolean;
};
/**
* 超出maxlength或maxcharacter之后是否还允许输入
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
* @default false
*/
allowInputOverMax?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
className | String | - | className of component | N
style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N
allowInputOverMax | Boolean | false | \- | N
allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or `maxcharacter` | N
autofocus | Boolean | false | \- | N
autosize | Boolean / Object | false | Typescript:`boolean \| { minRows?: number; maxRows?: number }` | N
bordered | Boolean | false | \- | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- | -- | -- | -- | --
className | String | - | 类名 | N
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
allowInputOverMax | Boolean | false | 超出maxlength或maxcharacter之后是否还允许输入 | N
allowInputOverMax | Boolean | false | 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 | N
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
autosize | Boolean / Object | false | 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度。TS 类型:`boolean \| { minRows?: number; maxRows?: number }` | N
bordered | Boolean | false | 是否显示外边框 | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { FocusEvent, FormEvent, CompositionEvent } from 'react';

export interface TdTextareaProps {
/**
* 超出maxlength或maxcharacter之后是否还允许输入
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
* @default false
*/
allowInputOverMax?: boolean;
Expand Down
8 changes: 4 additions & 4 deletions packages/products/tdesign-mobile-vue/src/textarea/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import { TdTextareaProps } from './type';
import { PropType } from 'vue';

export default {
/** 超出maxlength或maxcharacter之后是否还允许输入 */
/** 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 */
allowInputOverMax: Boolean,
/** 自动聚焦,拉起键盘 */
autofocus: Boolean,
/** 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度 */
autosize: {
type: [Boolean, Object] as PropType<TdTextareaProps['autosize']>,
default: false,
default: false as TdTextareaProps['autosize'],
},
/** 是否显示外边框 */
bordered: Boolean,
Expand Down Expand Up @@ -70,11 +70,11 @@ export default {
/** 文本框值 */
value: {
type: [String, Number] as PropType<TdTextareaProps['value']>,
default: undefined,
default: undefined as TdTextareaProps['value'],
},
modelValue: {
type: [String, Number] as PropType<TdTextareaProps['value']>,
default: undefined,
default: undefined as TdTextareaProps['value'],
},
/** 文本框值,非受控属性 */
defaultValue: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

name | type | default | description | required
-- | -- | -- | -- | --
allowInputOverMax | Boolean | false | \- | N
allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or `maxcharacter` | N
autofocus | Boolean | false | \- | N
autosize | Boolean / Object | false | Typescript:`boolean \| { minRows?: number; maxRows?: number }` | N
bordered | Boolean | false | \- | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
allowInputOverMax | Boolean | false | 超出maxlength或maxcharacter之后是否还允许输入 | N
allowInputOverMax | Boolean | false | 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 | N
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
autosize | Boolean / Object | false | 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度。TS 类型:`boolean \| { minRows?: number; maxRows?: number }` | N
bordered | Boolean | false | 是否显示外边框 | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TNode } from '../common';

export interface TdTextareaProps {
/**
* 超出maxlength或maxcharacter之后是否还允许输入
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
* @default false
*/
allowInputOverMax?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
className | String | - | className of component | N
style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N
allowInputOverMax | Boolean | false | \- | N
allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or `maxcharacter` | N
autofocus | Boolean | false | \- | N
autosize | Boolean / Object | false | Typescript:`boolean \| { minRows?: number; maxRows?: number }` | N
disabled | Boolean | undefined | \- | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- | -- | -- | -- | --
className | String | - | 类名 | N
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
allowInputOverMax | Boolean | false | 超出maxlength或maxcharacter之后是否还允许输入 | N
allowInputOverMax | Boolean | false | 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 | N
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
autosize | Boolean / Object | false | 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度。TS 类型:`boolean \| { minRows?: number; maxRows?: number }` | N
disabled | Boolean | undefined | 是否禁用文本框 | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { KeyboardEvent, FocusEvent, FormEvent } from 'react';

export interface TdTextareaProps {
/**
* 超出maxlength或maxcharacter之后是否还允许输入
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
* @default false
*/
allowInputOverMax?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TdTextareaProps } from './type';
import { PropType } from 'vue';

export default {
/** 超出maxlength或maxcharacter之后是否还允许输入 */
/** 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 */
allowInputOverMax: Boolean,
/** 自动聚焦,拉起键盘 */
autofocus: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

name | type | default | description | required
-- | -- | -- | -- | --
allowInputOverMax | Boolean | false | \- | N
allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or `maxcharacter` | N
autofocus | Boolean | false | \- | N
autosize | Boolean / Object | false | Typescript:`boolean \| { minRows?: number; maxRows?: number }` | N
disabled | Boolean | undefined | \- | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
allowInputOverMax | Boolean | false | 超出maxlength或maxcharacter之后是否还允许输入 | N
allowInputOverMax | Boolean | false | 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 | N
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
autosize | Boolean / Object | false | 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度。TS 类型:`boolean \| { minRows?: number; maxRows?: number }` | N
disabled | Boolean | undefined | 是否禁用文本框 | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TNode } from '../common';

export interface TdTextareaProps {
/**
* 超出maxlength或maxcharacter之后是否还允许输入
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
* @default false
*/
allowInputOverMax?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue/src/textarea/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TdTextareaProps } from './type';
import { PropType } from 'vue';

export default {
/** 超出maxlength或maxcharacter之后是否还允许输入 */
/** 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 */
allowInputOverMax: Boolean,
/** 自动聚焦,拉起键盘 */
autofocus: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

name | type | default | description | required
-- | -- | -- | -- | --
allowInputOverMax | Boolean | false | \- | N
allowInputOverMax | Boolean | false | Allow input after exceeding `maxlength` or `maxcharacter` | N
autofocus | Boolean | false | \- | N
autosize | Boolean / Object | false | Typescript:`boolean \| { minRows?: number; maxRows?: number }` | N
disabled | Boolean | undefined | \- | N
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue/src/textarea/textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
allowInputOverMax | Boolean | false | 超出maxlength或maxcharacter之后是否还允许输入 | N
allowInputOverMax | Boolean | false | 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入 | N
autofocus | Boolean | false | 自动聚焦,拉起键盘 | N
autosize | Boolean / Object | false | 高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度。TS 类型:`boolean \| { minRows?: number; maxRows?: number }` | N
disabled | Boolean | undefined | 是否禁用文本框 | N
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue/src/textarea/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TNode } from '../common';

export interface TdTextareaProps {
/**
* 超出maxlength或maxcharacter之后是否还允许输入
* 超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入
* @default false
*/
allowInputOverMax?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -128212,8 +128212,8 @@
],
"field_default_value": "false",
"field_enum": "",
"field_desc_zh": "超出maxlength或maxcharacter之后是否还允许输入",
"field_desc_en": null,
"field_desc_zh": "超出 `maxlength` 或 `maxcharacter` 之后是否还允许输入",
"field_desc_en": "Allow input after exceeding `maxlength` or `maxcharacter`",
"field_required": 0,
"event_input": "",
"create_time": "2022-06-02 02:16:33",
Expand Down