From c23ebf6381dc3daaac0f4934876cfe135bac2b66 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Fri, 15 Dec 2023 10:58:28 +0800 Subject: [PATCH] feat: remove classes --- src/TextArea.tsx | 3 +-- src/interface.ts | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/TextArea.tsx b/src/TextArea.tsx index 84250d9..918c84d 100644 --- a/src/TextArea.tsx +++ b/src/TextArea.tsx @@ -26,7 +26,6 @@ const TextArea = React.forwardRef( onCompositionEnd, suffix, prefixCls = 'rc-textarea', - classes, showCount, count, className, @@ -214,7 +213,7 @@ const TextArea = React.forwardRef( suffix={suffixNode} prefixCls={prefixCls} classNames={{ - affixWrapper: clsx(classes?.affixWrapper, { + affixWrapper: clsx(classNames?.affixWrapper, { [`${prefixCls}-show-count`]: showCount, [`${prefixCls}-textarea-allow-clear`]: allowClear, }), diff --git a/src/interface.ts b/src/interface.ts index 4d6dc42..55d592a 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -23,13 +23,10 @@ export type TextAreaProps = Omit & { autoSize?: boolean | AutoSizeType; onPressEnter?: React.KeyboardEventHandler; onResize?: (size: { width: number; height: number }) => void; - classes?: { - countWrapper?: string; - affixWrapper?: string; - }; classNames?: { textarea?: string; count?: string; + affixWrapper?: string; }; styles?: { textarea?: CSSProperties;