fix(popselect): isSelected method return value type

This commit is contained in:
07akioni 2019-12-26 13:20:13 +08:00
parent 1d31920981
commit af74150215

View File

@ -53,7 +53,7 @@ export default {
if (!option) return false
const value = option.value
if (this.multiple) {
if (Array.isArray(this.value)) return ~this.value.findIndex(v => v === value)
if (Array.isArray(this.value)) return !!~this.value.findIndex(v => v === value)
} else {
return this.value === value
}