chore: add mising defineEmits

This commit is contained in:
Vladimir 2022-01-06 17:46:45 +03:00
parent 479387208a
commit acc7fecbb1
2 changed files with 8 additions and 1 deletions

View File

@ -27,6 +27,10 @@ const props = withDefaults(defineProps<{
direction: 'bottom',
})
defineEmits<{
(e: 'update:modelValue', value: boolean): void
}>()
const positionClass = computed(() => {
switch (props.direction) {
case 'bottom':

View File

@ -1,5 +1,8 @@
<script setup lang="ts">import { client } from '~/composables/client'
<script setup lang="ts">
import { client } from '~/composables/client'
const props = defineProps<{ id: string }>()
defineEmits<{ (e: 'close'): void }>()
const result = await client.rpc.getTransformResult(props.id)
const ext = computed(() => props.id?.split(/\./g).pop() || 'js')