treeSelect验证数据兼容

This commit is contained in:
catchonme 2019-08-23 09:17:10 +08:00
parent 3b14ad02fe
commit d5c08edd8e
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ export default class TreeSelectControl extends React.Component<TreeSelectProps,
delimiter
} = this.props;
let curValue = Array.isArray(value) ? value : (value ? value : '').split(delimiter || ',');
let curValue = Array.isArray(value) ? value : (value ? String(value) : '').split(delimiter || ',');
if (minLength && curValue.length < minLength) {
return `已选择数量低于设定的最小个数${minLength},请选择更多的选项。`;
} else if (maxLength && curValue.length > maxLength) {