Skip to content

Commit

Permalink
fix: 处理self-loading-button触发表单提交行为
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony authored and levy9527 committed May 7, 2019
1 parent 33f5af7 commit 202406c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/self-loading-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<el-button v-bind="$attrs"
v-on="$listeners"
:loading="loading"
:type="type"
@click="handleClick">
<slot></slot>
</el-button>
Expand All @@ -11,6 +12,10 @@
export default {
name: 'ElLoadingButton',
props: {
/**
* 如果没有这个props,则通过attrs传`type`时,会导致el-button的`native-type`也被改变
*/
type: String,
/**
* 点击按钮绑定的函数
*/
Expand Down

0 comments on commit 202406c

Please sign in to comment.