You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
378 B
27 lines
378 B
![]()
8 months ago
|
<script setup>
|
||
|
import Rating from "primevue/rating"
|
||
|
|
||
|
const model = defineModel({
|
||
|
type: Number,
|
||
|
})
|
||
|
|
||
|
defineProps({
|
||
|
stars: {
|
||
|
type: Number,
|
||
|
default: 5,
|
||
|
require: false,
|
||
|
},
|
||
|
})
|
||
|
|
||
|
const emit = defineEmits(["change"])
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<Rating
|
||
|
v-model="model"
|
||
|
:cancel="false"
|
||
|
:stars="stars"
|
||
|
@change="emit('change', $event, model)"
|
||
|
/>
|
||
|
</template>
|