chore: prettier js codes

This commit is contained in:
陈嘉涵
2020-01-19 17:02:01 +08:00
parent 2adcfd8b8b
commit 1e864a445f
28 changed files with 333 additions and 174 deletions
+3 -2
View File
@@ -106,9 +106,10 @@ export default createComponent({
}
const { parent, currentName } = this;
const name = parent.accordion && currentName === parent.value ? '' : currentName;
const close = parent.accordion && currentName === parent.value;
const name = close ? '' : currentName;
this.parent.switch(name, !this.expanded);
parent.switch(name, !this.expanded);
},
onTransitionEnd() {