chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+6 -6
View File
@@ -14,7 +14,7 @@ export default createComponent({
text: String,
color: String,
loading: Boolean,
disabled: Boolean
disabled: Boolean,
},
computed: {
@@ -26,14 +26,14 @@ export default createComponent({
isLast() {
const next = this.parent && this.parent.children[this.index + 1];
return !next || next.$options.name !== this.$options.name;
}
},
},
methods: {
onClick(event) {
this.$emit('click', event);
route(this.$router, this);
}
},
},
render() {
@@ -42,9 +42,9 @@ export default createComponent({
class={bem([
{
first: this.isFirst,
last: this.isLast
last: this.isLast,
},
this.type
this.type,
])}
square
size="large"
@@ -57,5 +57,5 @@ export default createComponent({
{this.slots() || this.text}
</Button>
);
}
},
});