Tag:Vue star rating

  • Detailed explanation of the example of star rating effect realized by Vue


    We separate the star rating into a star component and separate it from the parent component (the score value is passed in) <div> <Star :score=”poiInfo.wm_poi_score”></Star> </div> initial Star.vue <template> <div> <div> <span></span> </div> <span>{{ score }}</span> </div> </template> <script> export default { name: ‘Star’, props: { score: Number } } </script> First of all, we […]