<template>
	<view class="cu-rate flex">
		<text @click="$emit('change',index+1)" v-for="(item,index) in 5" :class="{'cuIcon-favor lg text-gray' : index >= value ,'cuIcon-favorfill lg text-red' :index<value }"></text>
	</view>
</template>

<script>
	export default {
	  props:{
		  value:{type:String/Number,default:0}
	  }
	}
</script>

<style>
</style>