Skip to content
New issue

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

Menu 组件的 selectedKeys 类型错误,不支持 array 类型 #597

Closed
1 task
xunmi1 opened this issue Mar 18, 2019 · 1 comment
Closed
1 task

Menu 组件的 selectedKeys 类型错误,不支持 array 类型 #597

xunmi1 opened this issue Mar 18, 2019 · 1 comment
Labels

Comments

@xunmi1
Copy link

xunmi1 commented Mar 18, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.6

Environment

vue 2.6.9; ant-design-vue: 1.3.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

在 1.3.6 版本 selectedKeys 设为数组时,控制台警告 selectedKeys 只能是 String 或 Number。在 1.3.5 版本则正常

What is expected?

selectedKeys 应该包含 array 类型,向下兼容

What is actually happening?

在 1.3.6 版本 selectedKeys 不支持数组类型,疑似是 dbc0b2e 提交造成,
https://github.com/vueComponent/ant-design-vue/blob/master/components/menu/index.jsx 的24行
selectedKeys: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants