[rating-bar] add on change event

This commit is contained in:
Laercio Santana 2017-03-18 18:12:26 -03:00
parent b62eb825af
commit 6a33d47351

View file

@ -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