Skip to content

Commit

Permalink
fix: avoid referring to complex types in props (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Dec 17, 2022
1 parent e0c703c commit ff9f6c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/components/overlays/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</template>

<script setup lang="ts">
import type { PropType } from 'vue'
import type { PropType, Ref } from 'vue'
import { computed, toRef } from 'vue'
import { defu } from 'defu'
import type { VirtualElement } from '@popperjs/core'
Expand All @@ -23,7 +23,7 @@ const props = defineProps({
default: false
},
virtualElement: {
type: Object as PropType<VirtualElement>,
type: Object,
required: true
},
wrapperClass: {
Expand Down Expand Up @@ -63,7 +63,7 @@ const isOpen = computed({
}
})
const virtualElement = toRef(props, 'virtualElement')
const virtualElement = toRef(props, 'virtualElement') as Ref<VirtualElement>
const popperOptions = computed<PopperOptions>(() => defu({}, props.popperOptions, $ui.contextMenu.popperOptions))
Expand Down

1 comment on commit ff9f6c2

@vercel
Copy link

@vercel vercel bot commented on ff9f6c2 Dec 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
ui-git-dev-nuxtlabs.vercel.app
nuxthq-ui.vercel.app

Please sign in to comment.