We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
contextMenu
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.0-rc.9
macOS bigsur, Chrome: Version 88.0.4324.96 (Official Build) (x86_64), Vue: 3.0.0
https://github.com/vueComponent/ant-design-vue
tsx中使用如下代码右键菜单不生效
<Dropdown trigger={['contextMenu']} overlay={ <Menu> <Menu.Item key="1">撤回</Menu.Item> </Menu> } > <div style={{width: '300px', height: '200px', background: '#f5f5f5'}}> click here </div> </Dropdown>
contextMenu改为非驼峰: contextmenu会报错,无法使用,将浏览器提示错误的蒙层隐藏后发现右键菜单生效
<Dropdown trigger={['contextmenu']} overlay={ <Menu> <Menu.Item key="1">撤回</Menu.Item> </Menu> } > <div style={{width: '300px', height: '200px', background: '#f5f5f5'}}> click here </div> </Dropdown>
期望不要报错,支持contextMenu或者将类型改为contextmenu的提示
contextmenu
总结: 应该是类型定义的时候写错了,tsx中无法使用这个属性
使用tsx开发时准备使用右键菜单,发现无法使用
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sorry, something went wrong.
No branches or pull requests
Version
2.0.0-rc.9
Environment
macOS bigsur, Chrome: Version 88.0.4324.96 (Official Build) (x86_64), Vue: 3.0.0
Reproduction link
https://github.com/vueComponent/ant-design-vue
Steps to reproduce
tsx中使用如下代码右键菜单不生效
contextMenu改为非驼峰: contextmenu会报错,无法使用,将浏览器提示错误的蒙层隐藏后发现右键菜单生效
What is expected?
期望不要报错,支持
contextMenu
或者将类型改为contextmenu
的提示What is actually happening?
contextMenu
无效总结: 应该是类型定义的时候写错了,tsx中无法使用这个属性
使用tsx开发时准备使用右键菜单,发现无法使用
The text was updated successfully, but these errors were encountered: