|
|
@ -36,17 +36,15 @@ const localState = computed({ |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="text-sm" :class="{ 'nc-cell-hover-show': localState === 0 || !localState }"> |
|
|
|
<a-rate v-model:value="localState" :count="ratingMeta.max" :style="`color: ${ratingMeta.color}`"> |
|
|
|
<a-rate v-model:value="localState" :count="ratingMeta.max" :style="`color: ${ratingMeta.color}`"> |
|
|
|
<template #character> |
|
|
|
<template #character> |
|
|
|
<MdiStarIcon v-if="ratingMeta.icon.full === 'mdi-star'" class="text-sm" /> |
|
|
|
<MdiStarIcon v-if="ratingMeta.icon.full === 'mdi-star'" /> |
|
|
|
<MdiHeartIcon v-if="ratingMeta.icon.full === 'mdi-heart'" class="text-sm" /> |
|
|
|
<MdiHeartIcon v-if="ratingMeta.icon.full === 'mdi-heart'" /> |
|
|
|
<MdiMoonFullIcon v-if="ratingMeta.icon.full === 'mdi-moon-full'" class="text-sm" /> |
|
|
|
<MdiMoonFullIcon v-if="ratingMeta.icon.full === 'mdi-moon-full'" /> |
|
|
|
<MdiThumbUpIcon v-if="ratingMeta.icon.full === 'mdi-thumb-up'" class="text-sm" /> |
|
|
|
<MdiThumbUpIcon v-if="ratingMeta.icon.full === 'mdi-thumb-up'" /> |
|
|
|
<MdiFlagIcon v-if="ratingMeta.icon.full === 'mdi-flag'" class="text-sm" /> |
|
|
|
<MdiFlagIcon v-if="ratingMeta.icon.full === 'mdi-flag'" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-rate> |
|
|
|
</a-rate> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped></style> |
|
|
|
<style scoped></style> |
|
|
|