Skip to content

Commit afeaa5d

Browse files
shaodahongzombieJ
authored andcommitted
fix: ts type (#293)
1 parent 5457b8d commit afeaa5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Menu.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import {
1818
} from './interface';
1919
import { getMotion } from './utils/legacyUtil';
2020

21-
export interface MenuProps {
21+
export interface MenuProps
22+
extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onSelect'> {
2223
defaultSelectedKeys?: string[];
2324
defaultActiveFirst?: boolean;
2425
selectedKeys?: string[];
@@ -38,9 +39,6 @@ export interface MenuProps {
3839
level?: number;
3940
selectable?: boolean;
4041
multiple?: boolean;
41-
children?: React.ReactNode;
42-
className?: string;
43-
style?: React.CSSProperties;
4442
activeKey?: string;
4543
prefixCls?: string;
4644
builtinPlacements?: BuiltinPlacements;

0 commit comments

Comments
 (0)