mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-04 13:34:45 +00:00
[rating-bar] 'Merge the rating logic inside the mounted function in the data property'
This commit is contained in:
parent
8c146af9c8
commit
9b2f9c5683
1 changed files with 4 additions and 5 deletions
|
|
@ -46,11 +46,10 @@
|
|||
}
|
||||
},
|
||||
mixins: [theme],
|
||||
data: () => ({
|
||||
rating: NaN
|
||||
}),
|
||||
mounted: function() {
|
||||
this.rating = this.value;
|
||||
data() {
|
||||
return {
|
||||
rating: this.value
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
frontStarsStyle() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue