File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed
Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11import { clsx } from 'clsx' ;
22import type { CSSMotionProps } from '@rc-component/motion' ;
3- import Overflow from '@ rc-component/ overflow' ;
3+ import Overflow from 'rc-overflow' ;
44import useControlledState from '@rc-component/util/lib/hooks/useControlledState' ;
55import useId from '@rc-component/util/lib/hooks/useId' ;
66import isEqual from '@rc-component/util/lib/isEqual' ;
@@ -50,10 +50,8 @@ import { warnItemProp } from './utils/warnUtil';
5050// optimize for render
5151const 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 > > ;
Original file line number Diff line number Diff line change 11import { clsx } from 'clsx' ;
2- import Overflow from '@ rc-component/ overflow' ;
2+ import Overflow from 'rc-overflow' ;
33import KeyCode from '@rc-component/util/lib/KeyCode' ;
44import omit from '@rc-component/util/lib/omit' ;
55import { useComposeRef } from '@rc-component/util/lib/ref' ;
@@ -16,8 +16,7 @@ import type { MenuInfo, MenuItemType } from './interface';
1616import { warnItemProp } from './utils/warnUtil' ;
1717
1818export 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'
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import { clsx } from 'clsx' ;
3- import Overflow from '@ rc-component/ overflow' ;
3+ import Overflow from 'rc-overflow' ;
44import warning from '@rc-component/util/lib/warning' ;
55import SubMenuList from './SubMenuList' ;
66import { parseChildren } from '../utils/commonUtil' ;
You can’t perform that action at this time.
0 commit comments