11import 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' ;
33import { BaseSelect } from 'rc-select' ;
4- import type { DisplayValueType , Placement } from 'rc-select/lib/BaseSelect' ;
4+ import type { DisplayValueType , Placement } from 'rc-select/lib/BaseSelect' ;
55import useId from 'rc-select/lib/hooks/useId' ;
66import { conductCheck } from 'rc-tree/lib/utils/conductUtil' ;
77import useMergedState from 'rc-util/lib/hooks/useMergedState' ;
@@ -14,9 +14,9 @@ import useRefFunc from './hooks/useRefFunc';
1414import useSearchConfig from './hooks/useSearchConfig' ;
1515import useSearchOptions from './hooks/useSearchOptions' ;
1616import 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' ;
2020
2121export interface ShowSearchType < OptionType extends BaseOptionType = DefaultOptionType > {
2222 filter ?: ( inputValue : string , options : OptionType [ ] , fieldNames : FieldNames ) => boolean ;
@@ -102,8 +102,8 @@ export interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOp
102102
103103 // styles
104104 styles ?: {
105- dropdown ?: React . CSSProperties ;
106- dropdownMenuColumn ?: React . CSSProperties ;
105+ popup ?: React . CSSProperties ;
106+ popupMenuColumn ?: React . CSSProperties ;
107107 } ;
108108
109109 /** @deprecated Use `placement` instead */
@@ -458,7 +458,7 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re
458458 expandTrigger,
459459 expandIcon,
460460 loadingIcon,
461- dropdownMenuColumnStyle : styles ?. dropdownMenuColumn ?? dropdownMenuColumnStyle ,
461+ dropdownMenuColumnStyle : styles ?. popupMenuColumn ?? dropdownMenuColumnStyle ,
462462 } ) ,
463463 [
464464 mergedOptions ,
@@ -475,7 +475,7 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re
475475 expandIcon ,
476476 loadingIcon ,
477477 dropdownMenuColumnStyle ,
478- styles ?. dropdownMenuColumn ,
478+ styles ?. popupMenuColumn ,
479479 ] ,
480480 ) ;
481481
@@ -486,18 +486,18 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re
486486
487487 const mergedDropdownStyle : React . CSSProperties =
488488 // Search to match width
489- styles ?. dropdown ??
489+ styles ?. popup ??
490490 dropdownStyle ??
491491 ( mergedSearchValue && searchConfig . matchInputWidth ) ??
492492 emptyOptions
493493 ? // Empty keep the width
494494 {
495- ...styles ?. dropdown ,
495+ ...styles ?. popup ,
496496 ...dropdownStyle ,
497497 }
498498 : {
499499 minWidth : 'auto' ,
500- ...styles ?. dropdown ,
500+ ...styles ?. popup ,
501501 ...dropdownStyle ,
502502 } ;
503503
0 commit comments