@@ -20,6 +20,7 @@ import type {
2020 TabBarExtraContent ,
2121} from './interface' ;
2222import TabContext from './TabContext' ;
23+ import type { DropdownProps } from 'rc-dropdown/lib/Dropdown' ;
2324
2425/**
2526 * Should added antd:
@@ -51,6 +52,7 @@ export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
5152 tabBarStyle ?: React . CSSProperties ;
5253 tabPosition ?: TabPosition ;
5354 destroyInactiveTabPane ?: boolean ;
55+ moreTabsDropdownProps ?: Partial < DropdownProps > ;
5456
5557 onChange ?: ( activeKey : string ) => void ;
5658 onTabClick ?: ( activeKey : string , e : React . KeyboardEvent | React . MouseEvent ) => void ;
@@ -106,6 +108,7 @@ function Tabs(
106108 moreIcon,
107109 moreTransitionName,
108110 destroyInactiveTabPane,
111+ moreTabsDropdownProps,
109112 renderTabBar,
110113 onChange,
111114 onTabClick,
@@ -149,7 +152,7 @@ function Tabs(
149152 defaultValue : defaultActiveKey ,
150153 } ) ;
151154 const [ activeIndex , setActiveIndex ] = useState ( ( ) =>
152- tabs . findIndex ( tab => tab . key === mergedActiveKey ) ,
155+ tabs . findIndex ( tab => tab . key === mergedActiveKey ) ,
153156 ) ;
154157
155158 // Reset active key if not exist anymore
@@ -212,6 +215,7 @@ function Tabs(
212215 extra : tabBarExtraContent ,
213216 style : tabBarStyle ,
214217 panes : children ,
218+ moreTabsDropdownProps,
215219 } ;
216220
217221 if ( renderTabBar ) {
0 commit comments