fix: `Select` `selectedKeys` type validation error [#597]

pull/601/head
tangjinzhou 2019-03-18 10:35:13 +08:00
parent 5c7a79fff7
commit bd298802e6
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export const menuProps = {
theme: PropTypes.oneOf(['light', 'dark']).def('light'),
mode: MenuMode.def('vertical'),
selectable: PropTypes.bool,
selectedKeys: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
selectedKeys: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
defaultSelectedKeys: PropTypes.array,
openKeys: PropTypes.array,
defaultOpenKeys: PropTypes.array,