|
1 | 1 | import type { AlignType, BuildInPlacements } from '@rc-component/trigger/lib/interface'; |
2 | | -import cls from 'classnames'; |
| 2 | +import { clsx } from 'clsx'; |
3 | 3 | import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect'; |
4 | 4 | import useControlledState from '@rc-component/util/lib/hooks/useControlledState'; |
5 | 5 | import isMobile from '@rc-component/util/lib/isMobile'; |
@@ -732,7 +732,7 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref) |
732 | 732 | if (showSuffixIcon) { |
733 | 733 | arrowNode = ( |
734 | 734 | <TransBtn |
735 | | - className={cls(`${prefixCls}-arrow`, classNames?.suffix, { |
| 735 | + className={clsx(`${prefixCls}-arrow`, classNames?.suffix, { |
736 | 736 | [`${prefixCls}-arrow-loading`]: loading, |
737 | 737 | })} |
738 | 738 | style={styles?.suffix} |
@@ -776,7 +776,7 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref) |
776 | 776 | const optionList = <OptionList ref={listRef} />; |
777 | 777 |
|
778 | 778 | // ============================= Select ============================= |
779 | | - const mergedClassName = cls(prefixCls, className, { |
| 779 | + const mergedClassName = clsx(prefixCls, className, { |
780 | 780 | [`${prefixCls}-focused`]: mockFocused, |
781 | 781 | [`${prefixCls}-multiple`]: multiple, |
782 | 782 | [`${prefixCls}-single`]: !multiple, |
|
0 commit comments