mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
[rating-bar] add on change event
This commit is contained in:
parent
b62eb825af
commit
6a33d47351
1 changed files with 1 additions and 0 deletions
|
|
@ -78,6 +78,7 @@
|
|||
var selected = this.getIconIndex(evt.target);
|
||||
|
||||
this.$emit('input', selected / this.numStars);
|
||||
this.$emit('change', selected / this.numStars);
|
||||
}
|
||||
},
|
||||
getIconIndex(iconSelected) {//icon is a dom element
|
||||
|
|
|
|||
Loading…
Reference in a new issue