fix select PropTypes

pull/165/head
tangjinzhou 2018-04-16 18:39:00 +08:00
parent 69ecd05c58
commit bc2010dc49
1 changed files with 4 additions and 3 deletions

View File

@ -30,15 +30,16 @@ const AbstractSelectProps = {
showArrow: PropTypes.bool,
}
const Value = PropTypes.shape({
key: String,
key: PropTypes.string,
}).loose
const SelectValue = PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
PropTypes.arrayOf(PropTypes.oneOfType([
Value,
String,
PropTypes.string,
PropTypes.number,
])),
Value,
])