File tree Expand file tree Collapse file tree 5 files changed +12
-13
lines changed
Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import Tabs from '../../src' ;
3- import type { CSSMotionProps } from 'rc-motion' ;
3+ import type { CSSMotionProps } from '@ rc-component/ motion' ;
44import '../../assets/index.less' ;
55import './animated.less' ;
66
Original file line number Diff line number Diff line change 4141 "@rc-component/util" : " ^1.2.0" ,
4242 "@rc-component/motion" : " ^1.1.3" ,
4343 "classnames" : " 2.x" ,
44- "rc-dropdown" : " ~4.2.0" ,
45- "rc-menu" : " ~9.16.0" ,
46- "rc-motion" : " ^2.6.2"
44+ "@rc-component/dropdown" : " ~1.0.0" ,
45+ "@rc-component/menu" : " ~1.0.0"
4746 },
4847 "devDependencies" : {
4948 "@rc-component/father-plugin" : " ^2.0.0" ,
5049 "@rc-component/np" : " ^1.0.3" ,
51- "@rc-component/trigger" : " ^2 .0.0" ,
50+ "@rc-component/trigger" : " ^3 .0.0" ,
5251 "@testing-library/jest-dom" : " ^6.1.4" ,
5352 "@testing-library/react" : " ^16.0.1" ,
5453 "@testing-library/user-event" : " ^14.5.2" ,
Original file line number Diff line number Diff line change 11import classNames from 'classnames' ;
2- import Dropdown from 'rc-dropdown' ;
3- import Menu , { MenuItem } from 'rc-menu' ;
2+ import Dropdown from '@ rc-component/ dropdown' ;
3+ import Menu , { MenuItem } from '@ rc-component/ menu' ;
44import KeyCode from 'rc-util/lib/KeyCode' ;
55import * as React from 'react' ;
66import { useEffect , useState } from 'react' ;
Original file line number Diff line number Diff line change 11import classNames from 'classnames' ;
2- import CSSMotion from 'rc-motion' ;
2+ import CSSMotion from '@ rc-component/ motion' ;
33import * as React from 'react' ;
44import type { AnimatedConfig , TabPosition } from '../interface' ;
55import TabContext from '../TabContext' ;
Original file line number Diff line number Diff line change 1- import type { CSSMotionProps } from 'rc-motion' ;
1+ import type { CSSMotionProps } from '@rc-component/motion' ;
2+ import { DropdownProps } from '@rc-component/dropdown/lib/Dropdown' ;
23import type React from 'react' ;
34import type { TabNavListProps } from './TabNavList' ;
45import type { TabPaneProps } from './TabPanelList/TabPane' ;
5- import { DropdownProps } from 'rc-dropdown/lib/Dropdown' ;
66
77export type TriggerProps = {
88 trigger ?: 'hover' | 'click' ;
9- }
9+ } ;
1010export type moreIcon = React . ReactNode ;
1111export type MoreProps = {
12- icon ?: moreIcon ,
12+ icon ?: moreIcon ;
1313} & Omit < DropdownProps , 'children' > ;
1414
1515export type SizeInfo = [ width : number , height : number ] ;
@@ -45,7 +45,7 @@ type RenderTabBarProps = {
4545 mobile : boolean ;
4646 editable : EditableConfig ;
4747 locale : TabsLocale ;
48- more : MoreProps ,
48+ more : MoreProps ;
4949 tabBarGutter : number ;
5050 onTabClick : ( key : string , e : React . MouseEvent | React . KeyboardEvent ) => void ;
5151 onTabScroll : OnTabScroll ;
You can’t perform that action at this time.
0 commit comments