From 9a5bee4dce4649a5908602db5d3ae59d8b8c73c4 Mon Sep 17 00:00:00 2001 From: XuZhiqiang Date: Wed, 13 May 2026 15:20:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(@vben/web-antdv-next):=20adapter=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E7=BB=84=E4=BB=B6=E5=90=8D=E7=A7=B0TextArea=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=A4=A7=E5=B0=8F=E5=86=99=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antdv-next/src/adapter/component/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/web-antdv-next/src/adapter/component/index.ts b/apps/web-antdv-next/src/adapter/component/index.ts index 3565f964f..be390f885 100644 --- a/apps/web-antdv-next/src/adapter/component/index.ts +++ b/apps/web-antdv-next/src/adapter/component/index.ts @@ -123,7 +123,7 @@ const Rate = RateComponent; const Select = SelectComponent; const Space = SpaceComponent; const Switch = SwitchComponent; -const Textarea = TextareaComponent; +const TextArea = TextareaComponent; const TimePicker = TimePickerComponent; const TimeRangePicker = TimeRangePickerComponent; const TreeSelect = TreeSelectComponent; @@ -624,7 +624,8 @@ export type ComponentType = | 'Select' | 'Space' | 'Switch' - | 'Textarea' + | 'TextArea' + | 'TextArea' | 'TimePicker' | 'TimeRangePicker' | 'TreeSelect' @@ -658,7 +659,7 @@ export interface ComponentPropsMap { Select: SelectProps; Space: SpaceProps; Switch: SwitchProps; - Textarea: TextAreaProps; + TextArea: TextAreaProps; TimePicker: TimePickerProps; TreeSelect: TreeSelectProps; Upload: AdapterUploadProps; @@ -721,7 +722,7 @@ async function initComponentAdapter() { Select: withDefaultPlaceholder(Select, 'select'), Space, Switch, - Textarea: withDefaultPlaceholder(Textarea, 'input'), + TextArea: withDefaultPlaceholder(TextArea, 'input'), RichTextarea, TimePicker, TimeRangePicker,