update Button style

This commit is contained in:
梁灏 2019-09-12 15:21:37 +08:00
parent aaa7e9927c
commit df6bf15242
4 changed files with 122 additions and 60 deletions

View file

@ -61,12 +61,10 @@
default: false
}
},
data () {
return {
showSlot: true
};
},
computed: {
showSlot () {
return !!this.$slots.default;
},
classes () {
return [
`${prefixCls}`,
@ -109,9 +107,6 @@
this.handleCheckClick(event, openInNewWindow);
}
},
mounted () {
this.showSlot = this.$slots.default !== undefined;
}
};
</script>