File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default () => (
23
23
) ,
24
24
} ,
25
25
{
26
- key : 'ToOriginNode ' ,
26
+ key : 'ToOriginNode1 ' ,
27
27
label : 'SubMenu' ,
28
28
render : ( _originNode , item ) => < p > item: extra: { JSON . stringify ( item ) } </ p > ,
29
29
} ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ interface ItemSharedProps {
6
6
ref ?: React . Ref < HTMLLIElement | null > ;
7
7
style ?: React . CSSProperties ;
8
8
className ?: string ;
9
- render ?: ( originalNode : React . ReactNode , item : ItemType ) => React . ReactNode ;
9
+ render ?: ( originalNode : React . ReactNode , item : NonNullable < ItemType > ) => React . ReactNode ;
10
10
}
11
11
12
12
export interface SubMenuType extends ItemSharedProps {
Original file line number Diff line number Diff line change @@ -257,7 +257,6 @@ describe('MenuItem', () => {
257
257
258
258
const link = container . querySelector ( 'a' ) ;
259
259
expect ( link ) . toHaveAttribute ( 'href' , 'https://ant.design' ) ;
260
-
261
260
expect ( container . querySelector ( '#upload' ) ) . toHaveTextContent ( 'extra' ) ;
262
261
} ) ;
263
262
} ) ;
You can’t perform that action at this time.
0 commit comments