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 1
1
import React from 'react' ;
2
2
import Tabs from '../../src' ;
3
- import type { CSSMotionProps } from 'rc-motion' ;
3
+ import type { CSSMotionProps } from '@ rc-component/ motion' ;
4
4
import '../../assets/index.less' ;
5
5
import './animated.less' ;
6
6
Original file line number Diff line number Diff line change 41
41
"@rc-component/util" : " ^1.2.0" ,
42
42
"@rc-component/motion" : " ^1.1.3" ,
43
43
"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"
47
46
},
48
47
"devDependencies" : {
49
48
"@rc-component/father-plugin" : " ^2.0.0" ,
50
49
"@rc-component/np" : " ^1.0.3" ,
51
- "@rc-component/trigger" : " ^2 .0.0" ,
50
+ "@rc-component/trigger" : " ^3 .0.0" ,
52
51
"@testing-library/jest-dom" : " ^6.1.4" ,
53
52
"@testing-library/react" : " ^16.0.1" ,
54
53
"@testing-library/user-event" : " ^14.5.2" ,
Original file line number Diff line number Diff line change 1
1
import 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' ;
4
4
import KeyCode from 'rc-util/lib/KeyCode' ;
5
5
import * as React from 'react' ;
6
6
import { useEffect , useState } from 'react' ;
Original file line number Diff line number Diff line change 1
1
import classNames from 'classnames' ;
2
- import CSSMotion from 'rc-motion' ;
2
+ import CSSMotion from '@ rc-component/ motion' ;
3
3
import * as React from 'react' ;
4
4
import type { AnimatedConfig , TabPosition } from '../interface' ;
5
5
import 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' ;
2
3
import type React from 'react' ;
3
4
import type { TabNavListProps } from './TabNavList' ;
4
5
import type { TabPaneProps } from './TabPanelList/TabPane' ;
5
- import { DropdownProps } from 'rc-dropdown/lib/Dropdown' ;
6
6
7
7
export type TriggerProps = {
8
8
trigger ?: 'hover' | 'click' ;
9
- }
9
+ } ;
10
10
export type moreIcon = React . ReactNode ;
11
11
export type MoreProps = {
12
- icon ?: moreIcon ,
12
+ icon ?: moreIcon ;
13
13
} & Omit < DropdownProps , 'children' > ;
14
14
15
15
export type SizeInfo = [ width : number , height : number ] ;
@@ -45,7 +45,7 @@ type RenderTabBarProps = {
45
45
mobile : boolean ;
46
46
editable : EditableConfig ;
47
47
locale : TabsLocale ;
48
- more : MoreProps ,
48
+ more : MoreProps ;
49
49
tabBarGutter : number ;
50
50
onTabClick : ( key : string , e : React . MouseEvent | React . KeyboardEvent ) => void ;
51
51
onTabScroll : OnTabScroll ;
You can’t perform that action at this time.
0 commit comments