more-icons.vue 446 B

1234567891011
  1. <template>
  2. <el-rate v-model="value" :icons="icons" :void-icon="ChatRound" :colors="['#409eff', '#67c23a', '#FF9900']" />
  3. </template>
  4. <script lang="ts" setup>
  5. import { ref } from 'vue'
  6. import { ChatDotRound, ChatLineRound, ChatRound } from '@element-plus/icons-vue'
  7. const value = ref()
  8. const icons = [ChatRound, ChatLineRound, ChatDotRound] // same as { 2: ChatRound, 4: { value: ChatLineRound, excluded: true }, 5: ChatDotRound }
  9. </script>