mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
17 lines
462 B
Vue
17 lines
462 B
Vue
<template>
|
|
<el-rate
|
|
v-model="value"
|
|
:icons="icons"
|
|
:void-icon="ChatRound"
|
|
:colors="['#409eff', '#67c23a', '#FF9900']"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
import { ChatDotRound, ChatLineRound, ChatRound } from '@element-plus/icons-vue'
|
|
|
|
const value = ref()
|
|
const icons = [ChatRound, ChatLineRound, ChatDotRound] // same as { 2: ChatRound, 4: { value: ChatLineRound, excluded: true }, 5: ChatDotRound }
|
|
</script>
|