mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-17 03:31:07 +00:00
Improve click function
This commit is contained in:
parent
bea0da29f5
commit
e413c6b9f7
1 changed files with 3 additions and 4 deletions
|
|
@ -11,9 +11,6 @@
|
|||
let isDisabled = Boolean(this.disabled);
|
||||
let hasLink = Boolean(this.href);
|
||||
let tag = 'button';
|
||||
let emitClick = () => {
|
||||
this.$emit('click');
|
||||
};
|
||||
let options = {
|
||||
staticClass: 'md-button',
|
||||
attrs: {
|
||||
|
|
@ -26,7 +23,9 @@
|
|||
expression: 'disabled'
|
||||
}],
|
||||
on: {
|
||||
click: emitClick
|
||||
click: () => {
|
||||
this.$emit('click');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue