1
1
import type { BuildInPlacements } from '@rc-component/trigger/lib/interface' ;
2
- import type { BaseSelectProps , BaseSelectPropsWithoutPrivate , BaseSelectRef } from 'rc-select' ;
2
+ import type { BaseSelectProps , BaseSelectPropsWithoutPrivate , BaseSelectRef } from 'rc-select' ;
3
3
import { BaseSelect } from 'rc-select' ;
4
- import type { DisplayValueType , Placement } from 'rc-select/lib/BaseSelect' ;
4
+ import type { DisplayValueType , Placement } from 'rc-select/lib/BaseSelect' ;
5
5
import useId from 'rc-select/lib/hooks/useId' ;
6
6
import { conductCheck } from 'rc-tree/lib/utils/conductUtil' ;
7
7
import useMergedState from 'rc-util/lib/hooks/useMergedState' ;
@@ -14,9 +14,9 @@ import useRefFunc from './hooks/useRefFunc';
14
14
import useSearchConfig from './hooks/useSearchConfig' ;
15
15
import useSearchOptions from './hooks/useSearchOptions' ;
16
16
import OptionList from './OptionList' ;
17
- import { fillFieldNames , SHOW_CHILD , SHOW_PARENT , toPathKey , toPathKeys } from './utils/commonUtil' ;
18
- import { formatStrategyValues , toPathOptions } from './utils/treeUtil' ;
19
- import warningProps , { warningNullOptions } from './utils/warningPropsUtil' ;
17
+ import { fillFieldNames , SHOW_CHILD , SHOW_PARENT , toPathKey , toPathKeys } from './utils/commonUtil' ;
18
+ import { formatStrategyValues , toPathOptions } from './utils/treeUtil' ;
19
+ import warningProps , { warningNullOptions } from './utils/warningPropsUtil' ;
20
20
21
21
export interface ShowSearchType < OptionType extends BaseOptionType = DefaultOptionType > {
22
22
filter ?: ( inputValue : string , options : OptionType [ ] , fieldNames : FieldNames ) => boolean ;
@@ -102,8 +102,8 @@ export interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOp
102
102
103
103
// styles
104
104
styles ?: {
105
- dropdown ?: React . CSSProperties ;
106
- dropdownMenuColumn ?: React . CSSProperties ;
105
+ popup ?: React . CSSProperties ;
106
+ popupMenuColumn ?: React . CSSProperties ;
107
107
} ;
108
108
109
109
/** @deprecated Use `placement` instead */
@@ -458,7 +458,7 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re
458
458
expandTrigger,
459
459
expandIcon,
460
460
loadingIcon,
461
- dropdownMenuColumnStyle : styles ?. dropdownMenuColumn ?? dropdownMenuColumnStyle ,
461
+ dropdownMenuColumnStyle : styles ?. popupMenuColumn ?? dropdownMenuColumnStyle ,
462
462
} ) ,
463
463
[
464
464
mergedOptions ,
@@ -475,7 +475,7 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re
475
475
expandIcon ,
476
476
loadingIcon ,
477
477
dropdownMenuColumnStyle ,
478
- styles ?. dropdownMenuColumn ,
478
+ styles ?. popupMenuColumn ,
479
479
] ,
480
480
) ;
481
481
@@ -486,18 +486,18 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re
486
486
487
487
const mergedDropdownStyle : React . CSSProperties =
488
488
// Search to match width
489
- styles ?. dropdown ??
489
+ styles ?. popup ??
490
490
dropdownStyle ??
491
491
( mergedSearchValue && searchConfig . matchInputWidth ) ??
492
492
emptyOptions
493
493
? // Empty keep the width
494
494
{
495
- ...styles ?. dropdown ,
495
+ ...styles ?. popup ,
496
496
...dropdownStyle ,
497
497
}
498
498
: {
499
499
minWidth : 'auto' ,
500
- ...styles ?. dropdown ,
500
+ ...styles ?. popup ,
501
501
...dropdownStyle ,
502
502
} ;
503
503
0 commit comments