Skip to content

Commit a710e47

Browse files
aojunhao123zombieJ
andauthored
chore: update package dependencies (#788)
* chore: update package dependencies * chore: bump deps --------- Co-authored-by: 二货机器人 <[email protected]>
1 parent f65defc commit a710e47

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

docs/examples/animated.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import Tabs from '../../src';
3-
import type { CSSMotionProps } from 'rc-motion';
3+
import type { CSSMotionProps } from '@rc-component/motion';
44
import '../../assets/index.less';
55
import './animated.less';
66

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@
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",

src/TabNavList/OperationNode.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
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';
44
import KeyCode from 'rc-util/lib/KeyCode';
55
import * as React from 'react';
66
import { useEffect, useState } from 'react';

src/TabPanelList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import classNames from 'classnames';
2-
import CSSMotion from 'rc-motion';
2+
import CSSMotion from '@rc-component/motion';
33
import * as React from 'react';
44
import type { AnimatedConfig, TabPosition } from '../interface';
55
import TabContext from '../TabContext';

src/interface.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import type { CSSMotionProps } from 'rc-motion';
1+
import type { CSSMotionProps } from '@rc-component/motion';
2+
import { DropdownProps } from '@rc-component/dropdown/lib/Dropdown';
23
import type React from 'react';
34
import type { TabNavListProps } from './TabNavList';
45
import type { TabPaneProps } from './TabPanelList/TabPane';
5-
import { DropdownProps } from 'rc-dropdown/lib/Dropdown';
66

77
export type TriggerProps = {
88
trigger?: 'hover' | 'click';
9-
}
9+
};
1010
export type moreIcon = React.ReactNode;
1111
export type MoreProps = {
12-
icon?: moreIcon,
12+
icon?: moreIcon;
1313
} & Omit<DropdownProps, 'children'>;
1414

1515
export 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;

0 commit comments

Comments
 (0)