还是要保留multiple判断
This commit is contained in:
parent
583e23a43c
commit
31e4380d96
1 changed files with 3 additions and 2 deletions
|
@ -408,10 +408,11 @@
|
|||
};
|
||||
},
|
||||
getInitialValue(){
|
||||
const {value} = this;
|
||||
const {multiple, value} = this;
|
||||
let initialValue = Array.isArray(value) ? value : [value];
|
||||
if (!multiple && (typeof initialValue[0] === 'undefined' || (String(initialValue[0]).trim() === '' && !Number.isFinite(initialValue[0])))) initialValue = [];
|
||||
return initialValue.filter((item) => {
|
||||
return Boolean(item) || item === 0;
|
||||
return Boolean(item) || item === 0
|
||||
});
|
||||
},
|
||||
processOption(option, values, isFocused){
|
||||
|
|
Loading…
Add table
Reference in a new issue