From 1e346a9445b9f6e0c45086b4f25175b253a1a1ef Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Fri, 15 Dec 2023 11:13:50 +0800 Subject: [PATCH 1/2] feat: remove classes (#53) --- 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; From d2949c363205f9843ca48bbee7b2f30bd7a0b2e9 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Fri, 15 Dec 2023 11:17:16 +0800 Subject: [PATCH 2/2] v1.6.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 96c71b5..e4ed1cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-textarea", - "version": "1.6.0", + "version": "1.6.1", "description": "Pretty Textarea react component used in used in ant.design", "keywords": [ "react",