File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed
Expand file tree Collapse file tree 4 files changed +11
-8
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" ,
4849 "@rc-component/trigger" : " ^3.0.0" ,
4950 "@rc-component/util" : " ^1.3.0" ,
50- "clsx" : " ^2.1.1" ,
51- "rc-overflow" : " ^1.3.1"
51+ "clsx" : " ^2.1.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-overflow' ;
3+ import Overflow from '@ rc-component/ 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,8 +50,10 @@ import { warnItemProp } from './utils/warnUtil';
5050// optimize for render
5151const EMPTY_LIST : string [ ] = [ ] ;
5252
53- export interface MenuProps
54- extends Omit < React . HTMLAttributes < HTMLUListElement > , 'onClick' | 'onSelect' | 'dir' > {
53+ export interface MenuProps extends Omit <
54+ React . HTMLAttributes < HTMLUListElement > ,
55+ 'onClick' | 'onSelect' | 'dir'
56+ > {
5557 prefixCls ?: string ;
5658 rootClassName ?: string ;
5759 classNames ?: Partial < Record < SemanticName , string > > ;
Original file line number Diff line number Diff line change 11import { clsx } from 'clsx' ;
2- import Overflow from 'rc-overflow' ;
2+ import Overflow from '@ rc-component/ 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,7 +16,8 @@ import type { MenuInfo, MenuItemType } from './interface';
1616import { warnItemProp } from './utils/warnUtil' ;
1717
1818export interface MenuItemProps
19- extends Omit < MenuItemType , 'label' | 'key' | 'ref' > ,
19+ extends
20+ Omit < MenuItemType , 'label' | 'key' | 'ref' > ,
2021 Omit <
2122 React . HTMLAttributes < HTMLLIElement > ,
2223 '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-overflow' ;
3+ import Overflow from '@ rc-component/ 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