|
|
@ -1,18 +1,18 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { computed, inject } from '#imports' |
|
|
|
import { computed, inject } from '#imports' |
|
|
|
import { ColumnInj } from '~/components' |
|
|
|
import { ColumnInj, IsFormInj } from "~/components"; |
|
|
|
import MdiStarIcon from '~icons/mdi/star' |
|
|
|
import MdiStarIcon from '~icons/mdi/star' |
|
|
|
import MdiStarOutlineIcon from '~icons/mdi/star-outline' |
|
|
|
import MdiStarOutlineIcon from '~icons/mdi/star-outline' |
|
|
|
|
|
|
|
|
|
|
|
interface Props { |
|
|
|
interface Props { |
|
|
|
modelValue: string | number |
|
|
|
modelValue: string | number |
|
|
|
readOnly: boolean |
|
|
|
readOnly?: boolean |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { modelValue: value, readOnly } = defineProps<Props>() |
|
|
|
const { modelValue: value, readOnly } = defineProps<Props>() |
|
|
|
const emit = defineEmits(['update:modelValue']) |
|
|
|
const emit = defineEmits(['update:modelValue']) |
|
|
|
const column = inject(ColumnInj) |
|
|
|
const column = inject(ColumnInj) |
|
|
|
const isForm = inject<boolean>('isForm') |
|
|
|
const isForm = inject(IsFormInj) |
|
|
|
|
|
|
|
|
|
|
|
const ratingMeta = computed(() => { |
|
|
|
const ratingMeta = computed(() => { |
|
|
|
return { |
|
|
|
return { |
|
|
|