<template>
  <div id="rate" style="width: 100%;">
    <el-rate v-model='spcpFormData[fieldId]'
             style="height:36px;line-height:2.3"
             :colors="colors"
             :max="maxVal"></el-rate>
  </div>
</template>
<script>
import proto from '../spcp-proto.vue';
export default {
    name: "spcp-rate",
    extends: proto,
    props:{
      colors: {type: Array, default: () => {return ['#F7BA2A', '#F7BA2A', '#F7BA2A']}},
      maxVal: {type: Number, default: 5},
    },
    data(){
        return {

        }
    },
    created() {
    },
}
</script>
<style scoped>

</style>
