mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
fix(popselect): isSelected method return value type
This commit is contained in:
parent
1d31920981
commit
af74150215
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user