fix button click & change to bem style

This commit is contained in:
niunai
2017-02-22 19:26:14 +08:00
parent bdc74d2298
commit 30a5feae21
7 changed files with 76 additions and 31 deletions

View File

@@ -42,6 +42,12 @@ export default {
}
},
methods: {
handleClick() {
this.$emit('click');
}
},
render(h) {
let { type, nativeType, size, disabled, loading, block } = this;
let Tag = this.tag;
@@ -60,6 +66,7 @@ export default {
'is-block': block
}
]}
onClick={this.handleClick}
>
{
loading ? <i class="z-icon-loading"></i> : null