From acda22d5cb4905ae5d1f4bd70efb38ee5820baeb Mon Sep 17 00:00:00 2001 From: roymondchen Date: Fri, 31 Oct 2025 17:35:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(design,tdesign-vue,next-adapter):=20textar?= =?UTF-8?q?ea=E6=94=AF=E6=8C=81autosize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design/src/types.ts | 1 + packages/tdesign-vue-next-adapter/src/Input.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/design/src/types.ts b/packages/design/src/types.ts index e18a0ae0..bba4e84d 100644 --- a/packages/design/src/types.ts +++ b/packages/design/src/types.ts @@ -194,6 +194,7 @@ export interface InputProps { rows?: number; type?: string; size?: FieldSize; + autosize?: boolean | { minRows: number; maxRows: number }; } export interface InputNumberProps { diff --git a/packages/tdesign-vue-next-adapter/src/Input.vue b/packages/tdesign-vue-next-adapter/src/Input.vue index f76ee520..ddb65461 100644 --- a/packages/tdesign-vue-next-adapter/src/Input.vue +++ b/packages/tdesign-vue-next-adapter/src/Input.vue @@ -7,6 +7,7 @@ :disabled="disabled" :placeholder="placeholder" :rows="rows" + :autosize="autosize" @keypress="inputHandler" @change="changeHandler" @blur="blurHandler"