Chamilo is a learning management system focused on ease of use and accessibility
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.
chamilo-lms/assets/vue/components/basecomponents/BaseRating.vue

27 lines
378 B

<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>