Skip to content

Commit

Permalink
feat: remove classes (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc authored Dec 15, 2023
1 parent 7d113bd commit 1e346a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const TextArea = React.forwardRef<TextAreaRef, TextAreaProps>(
onCompositionEnd,
suffix,
prefixCls = 'rc-textarea',
classes,
showCount,
count,
className,
Expand Down Expand Up @@ -214,7 +213,7 @@ const TextArea = React.forwardRef<TextAreaRef, TextAreaProps>(
suffix={suffixNode}
prefixCls={prefixCls}
classNames={{
affixWrapper: clsx(classes?.affixWrapper, {
affixWrapper: clsx(classNames?.affixWrapper, {
[`${prefixCls}-show-count`]: showCount,
[`${prefixCls}-textarea-allow-clear`]: allowClear,
}),
Expand Down
5 changes: 1 addition & 4 deletions src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ export type TextAreaProps = Omit<HTMLTextareaProps, 'onResize' | 'value'> & {
autoSize?: boolean | AutoSizeType;
onPressEnter?: React.KeyboardEventHandler<HTMLTextAreaElement>;
onResize?: (size: { width: number; height: number }) => void;
classes?: {
countWrapper?: string;
affixWrapper?: string;
};
classNames?: {
textarea?: string;
count?: string;
affixWrapper?: string;
};
styles?: {
textarea?: CSSProperties;
Expand Down

0 comments on commit 1e346a9

Please sign in to comment.