1
- import cls from 'classnames ' ;
1
+ import { clsx } from 'clsx ' ;
2
2
import * as React from 'react' ;
3
- import pickAttrs from 'rc-util/lib/pickAttrs' ;
3
+ import pickAttrs from '@ rc-component/ util/lib/pickAttrs' ;
4
4
import type { DefaultOptionType , SingleValueType } from '../Cascader' ;
5
5
import CascaderContext from '../context' ;
6
6
import { SEARCH_MARK } from '../hooks/useSearchOptions' ;
@@ -121,7 +121,7 @@ export default function Column<OptionType extends DefaultOptionType = DefaultOpt
121
121
// ============================ Render ============================
122
122
return (
123
123
< ul
124
- className = { cls ( menuPrefixCls , classNames ?. popup ?. list ) }
124
+ className = { clsx ( menuPrefixCls , classNames ?. popup ?. list ) }
125
125
style = { styles ?. popup ?. list }
126
126
ref = { menuRef }
127
127
role = "menu"
@@ -140,10 +140,7 @@ export default function Column<OptionType extends DefaultOptionType = DefaultOpt
140
140
fullPathKey,
141
141
disableCheckbox,
142
142
} ) => {
143
- const ariaProps = pickAttrs ( option , {
144
- aria : true ,
145
- data : true
146
- } ) ;
143
+ const ariaProps = pickAttrs ( option , { aria : true , data : true } ) ;
147
144
// >>>>> Open
148
145
const triggerOpenPath = ( ) => {
149
146
if ( isOptionDisabled ( disabled ) ) {
@@ -176,7 +173,7 @@ export default function Column<OptionType extends DefaultOptionType = DefaultOpt
176
173
< li
177
174
key = { fullPathKey }
178
175
{ ...ariaProps }
179
- className = { cls ( menuItemPrefixCls , classNames ?. popup ?. listItem , {
176
+ className = { clsx ( menuItemPrefixCls , classNames ?. popup ?. listItem , {
180
177
[ `${ menuItemPrefixCls } -expand` ] : ! isMergedLeaf ,
181
178
[ `${ menuItemPrefixCls } -active` ] :
182
179
activeValue === value || activeValue === fullPathKey ,
0 commit comments