File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ export default defineComponent({
9494 keyPath : keysPath . value ,
9595 eventKeyPath : [ ...parentEventKeys . value , eventKey ] ,
9696 domEvent : e ,
97+ item : {
98+ ...props ,
99+ ...attrs ,
100+ } ,
97101 } ;
98102 } ;
99103
Original file line number Diff line number Diff line change 11import type { Key } from '../../_util/type' ;
2+ import type { MenuItemProps } from './MenuItem' ;
23
34export type MenuTheme = 'light' | 'dark' ;
45
@@ -24,6 +25,7 @@ export interface MenuInfo {
2425 keyPath ?: Key [ ] ;
2526 eventKeyPath : string [ ] ;
2627 domEvent : MouseEvent | KeyboardEvent ;
28+ item : MenuItemProps & { [ key : string ] : any } ;
2729}
2830
2931export interface MenuTitleInfo {
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import addEventListener from '../vc-util/Dom/addEventListener';
77import { getConfirmLocale } from './locale' ;
88import CloseOutlined from '@ant-design/icons-vue/CloseOutlined' ;
99import Button from '../button' ;
10- import type { ButtonProps as ButtonPropsType } from '../button/buttonTypes' ;
11- import buttonTypes , { ButtonType } from '../button/buttonTypes' ;
10+ import type { ButtonProps as ButtonPropsType , ButtonType } from '../button/buttonTypes' ;
11+ import buttonTypes from '../button/buttonTypes' ;
1212import LocaleReceiver from '../locale-provider/LocaleReceiver' ;
1313import { getComponent , getSlot } from '../_util/props-util' ;
1414import initDefaultProps from '../_util/props-util/initDefaultProps' ;
You can’t perform that action at this time.
0 commit comments