mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
21 lines
320 B
Vue
21 lines
320 B
Vue
|
<template>
|
||
|
<el-rate
|
||
|
v-model="value"
|
||
|
:texts="['oops', 'disappointed', 'normal', 'good', 'great']"
|
||
|
show-text
|
||
|
>
|
||
|
</el-rate>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { defineComponent, ref } from 'vue'
|
||
|
|
||
|
export default defineComponent({
|
||
|
setup() {
|
||
|
return {
|
||
|
value: ref(null),
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
</script>
|