forked from p96170835/amis
treeSelect验证数据兼容
This commit is contained in:
parent
3b14ad02fe
commit
d5c08edd8e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue