File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ export default defineComponent({
94
94
keyPath : keysPath . value ,
95
95
eventKeyPath : [ ...parentEventKeys . value , eventKey ] ,
96
96
domEvent : e ,
97
+ item : {
98
+ ...props ,
99
+ ...attrs ,
100
+ } ,
97
101
} ;
98
102
} ;
99
103
Original file line number Diff line number Diff line change 1
1
import type { Key } from '../../_util/type' ;
2
+ import type { MenuItemProps } from './MenuItem' ;
2
3
3
4
export type MenuTheme = 'light' | 'dark' ;
4
5
@@ -24,6 +25,7 @@ export interface MenuInfo {
24
25
keyPath ?: Key [ ] ;
25
26
eventKeyPath : string [ ] ;
26
27
domEvent : MouseEvent | KeyboardEvent ;
28
+ item : MenuItemProps & { [ key : string ] : any } ;
27
29
}
28
30
29
31
export interface MenuTitleInfo {
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import addEventListener from '../vc-util/Dom/addEventListener';
7
7
import { getConfirmLocale } from './locale' ;
8
8
import CloseOutlined from '@ant-design/icons-vue/CloseOutlined' ;
9
9
import 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' ;
12
12
import LocaleReceiver from '../locale-provider/LocaleReceiver' ;
13
13
import { getComponent , getSlot } from '../_util/props-util' ;
14
14
import initDefaultProps from '../_util/props-util/initDefaultProps' ;
You can’t perform that action at this time.
0 commit comments