Skip to content

Commit aa32249

Browse files
committed
Revert "chore: drop rc-overflow"
This reverts commit 458b36f.
1 parent 458b36f commit aa32249

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
},
4646
"dependencies": {
4747
"@rc-component/motion": "^1.1.4",
48-
"@rc-component/overflow": "^1.0.0",
4948
"@rc-component/trigger": "^3.0.0",
5049
"@rc-component/util": "^1.3.0",
51-
"clsx": "^2.1.1"
50+
"clsx": "^2.1.1",
51+
"rc-overflow": "^1.3.1"
5252
},
5353
"devDependencies": {
5454
"@rc-component/father-plugin": "^2.0.2",

src/Menu.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { clsx } from 'clsx';
22
import type { CSSMotionProps } from '@rc-component/motion';
3-
import Overflow from '@rc-component/overflow';
3+
import Overflow from 'rc-overflow';
44
import useControlledState from '@rc-component/util/lib/hooks/useControlledState';
55
import useId from '@rc-component/util/lib/hooks/useId';
66
import isEqual from '@rc-component/util/lib/isEqual';
@@ -50,10 +50,8 @@ import { warnItemProp } from './utils/warnUtil';
5050
// optimize for render
5151
const EMPTY_LIST: string[] = [];
5252

53-
export interface MenuProps extends Omit<
54-
React.HTMLAttributes<HTMLUListElement>,
55-
'onClick' | 'onSelect' | 'dir'
56-
> {
53+
export interface MenuProps
54+
extends Omit<React.HTMLAttributes<HTMLUListElement>, 'onClick' | 'onSelect' | 'dir'> {
5755
prefixCls?: string;
5856
rootClassName?: string;
5957
classNames?: Partial<Record<SemanticName, string>>;

src/MenuItem.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { clsx } from 'clsx';
2-
import Overflow from '@rc-component/overflow';
2+
import Overflow from 'rc-overflow';
33
import KeyCode from '@rc-component/util/lib/KeyCode';
44
import omit from '@rc-component/util/lib/omit';
55
import { useComposeRef } from '@rc-component/util/lib/ref';
@@ -16,8 +16,7 @@ import type { MenuInfo, MenuItemType } from './interface';
1616
import { warnItemProp } from './utils/warnUtil';
1717

1818
export interface MenuItemProps
19-
extends
20-
Omit<MenuItemType, 'label' | 'key' | 'ref'>,
19+
extends Omit<MenuItemType, 'label' | 'key' | 'ref'>,
2120
Omit<
2221
React.HTMLAttributes<HTMLLIElement>,
2322
'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onSelect'

src/SubMenu/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { clsx } from 'clsx';
3-
import Overflow from '@rc-component/overflow';
3+
import Overflow from 'rc-overflow';
44
import warning from '@rc-component/util/lib/warning';
55
import SubMenuList from './SubMenuList';
66
import { parseChildren } from '../utils/commonUtil';

0 commit comments

Comments
 (0)