优化列表选择逻辑
This commit is contained in:
parent
07800bdb83
commit
db04b0c285
@ -224,7 +224,9 @@ export default {
|
|||||||
this.selectdList.splice(index, 1)
|
this.selectdList.splice(index, 1)
|
||||||
event.currentTarget.classList.remove('active')
|
event.currentTarget.classList.remove('active')
|
||||||
}
|
}
|
||||||
} else if (this.selectdList.length) this.removeAllSelect()
|
} else if (this.selectdList.length) {
|
||||||
|
this.removeAllSelect()
|
||||||
|
} else return
|
||||||
this.$emit('input', [...this.selectdList])
|
this.$emit('input', [...this.selectdList])
|
||||||
},
|
},
|
||||||
removeAllSelect() {
|
removeAllSelect() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user