fix: menu-item type definition #3661 (#3667)

pull/3787/head
zkwolf 2021-02-07 18:31:35 +08:00 committed by GitHub
parent b61cab7746
commit 553dff9f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -4,10 +4,15 @@ import { getOptionProps, getSlot } from '../_util/props-util';
import Tooltip, { TooltipProps } from '../tooltip';
import { SiderContextProps } from '../layout/Sider';
import { injectExtraPropsKey } from '../vc-menu/FunctionProvider';
import PropTypes from '../_util/vue-types';
export default defineComponent({
name: 'MenuItem',
inheritAttrs: false,
props: itemProps,
props: {
...itemProps,
onClick: PropTypes.func,
},
isMenuItem: true,
setup() {
return {