优化列表选择逻辑

This commit is contained in:
lyswhut 2020-04-27 22:29:49 +08:00
parent 07800bdb83
commit db04b0c285

View File

@ -224,7 +224,9 @@ export default {
this.selectdList.splice(index, 1)
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])
},
removeAllSelect() {