feat(design,tdesign-vue,next-adapter): textarea支持autosize

This commit is contained in:
roymondchen 2025-10-31 17:35:45 +08:00
parent 7b19a01849
commit acda22d5cb
2 changed files with 2 additions and 0 deletions

View File

@ -194,6 +194,7 @@ export interface InputProps {
rows?: number; rows?: number;
type?: string; type?: string;
size?: FieldSize; size?: FieldSize;
autosize?: boolean | { minRows: number; maxRows: number };
} }
export interface InputNumberProps { export interface InputNumberProps {

View File

@ -7,6 +7,7 @@
:disabled="disabled" :disabled="disabled"
:placeholder="placeholder" :placeholder="placeholder"
:rows="rows" :rows="rows"
:autosize="autosize"
@keypress="inputHandler" @keypress="inputHandler"
@change="changeHandler" @change="changeHandler"
@blur="blurHandler" @blur="blurHandler"