mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
Merge branch 'master' of https://github.com/baidu/amis
This commit is contained in:
commit
c954e00cd7
@ -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
Block a user