mirror of
https://github.com/vitest-dev/vitest.git
synced 2026-02-01 17:36:51 +00:00
chore: add mising defineEmits
This commit is contained in:
parent
479387208a
commit
acc7fecbb1
@ -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':
|
||||
|
||||
@ -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')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user