From 7dfc5e3337561e9b033de7e3d51e00aa2892e7df Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Tue, 19 Nov 2024 18:42:39 +0800 Subject: [PATCH] type(TextArea): combine TextAreaRef and TextAreaProps imports (#51695) --- components/input/TextArea.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/input/TextArea.tsx b/components/input/TextArea.tsx index 3851515082..ef49363f39 100644 --- a/components/input/TextArea.tsx +++ b/components/input/TextArea.tsx @@ -1,10 +1,8 @@ import * as React from 'react'; import { forwardRef } from 'react'; import classNames from 'classnames'; -import type { TextAreaRef as RcTextAreaRef } from 'rc-textarea'; +import type { TextAreaRef as RcTextAreaRef, TextAreaProps as RcTextAreaProps } from 'rc-textarea'; import RcTextArea from 'rc-textarea'; -import type { TextAreaProps as RcTextAreaProps } from 'rc-textarea/lib/interface'; - import getAllowClear from '../_util/getAllowClear'; import type { InputStatus } from '../_util/statusUtils'; import { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';