[rating-bar] 'Merge the rating logic inside the mounted function in the data property'

This commit is contained in:
Laercio Santana 2017-03-21 21:47:41 -03:00
parent 8c146af9c8
commit 9b2f9c5683

View file

@ -46,11 +46,10 @@
}
},
mixins: [theme],
data: () => ({
rating: NaN
}),
mounted: function() {
this.rating = this.value;
data() {
return {
rating: this.value
};
},
computed: {
frontStarsStyle() {