chore: add trailingComma
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user