mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
23 lines
329 B
Vue
23 lines
329 B
Vue
|
<template>
|
||
|
<el-rate
|
||
|
v-model="value"
|
||
|
disabled
|
||
|
show-score
|
||
|
text-color="#ff9900"
|
||
|
score-template="{value} points"
|
||
|
>
|
||
|
</el-rate>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent, ref } from 'vue'
|
||
|
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
return {
|
||
|
value: ref(3.7),
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
</script>
|