chore(Slideover): fix types

This commit is contained in:
Benjamin Canac
2022-03-31 10:56:36 +02:00
parent 065d3691ac
commit 571e907acd

View File

@@ -37,17 +37,18 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed } from 'vue' import { computed } from 'vue'
import type { WritableComputedRef, PropType } from 'vue'
import { Dialog, DialogOverlay, TransitionChild, TransitionRoot } from '@headlessui/vue' import { Dialog, DialogOverlay, TransitionChild, TransitionRoot } from '@headlessui/vue'
const props = defineProps({ const props = defineProps({
modelValue: { modelValue: {
type: Boolean, type: Boolean as PropType<boolean>,
default: false default: false
} }
}) })
const emit = defineEmits(['update:modelValue']) const emit = defineEmits(['update:modelValue'])
const isOpen = computed({ const isOpen: WritableComputedRef<boolean> = computed({
get () { get () {
return props.modelValue return props.modelValue
}, },