Commit cbf3a9e1 authored by thomasyonug's avatar thomasyonug

减少嵌套

parent cadcd919
......@@ -73,13 +73,11 @@
select(item, menuIndex) {
if (item.__IS__FLAT__OPTIONS) {
this.activeValue = item.value;
} else {
if (menuIndex) {
} else if (menuIndex) {
this.activeValue.splice(menuIndex, this.activeValue.length - 1, item.value);
} else {
this.activeValue = [item.value];
}
}
this.$emit('pick', this.activeValue);
},
handleMenuLeave() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment