fix: กำหนด type ของ defineEmits
This commit is contained in:
parent
9613047b49
commit
c196961c69
1 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,11 @@ defineProps<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const open = defineModel('open', { type: Boolean, default: false });
|
const open = defineModel('open', { type: Boolean, default: false });
|
||||||
|
|
||||||
|
defineEmits<{
|
||||||
|
(e: 'triggerEdit', data?: Branch): void;
|
||||||
|
(e: 'triggerDelete', data?: Branch): void;
|
||||||
|
}>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue