Skip to content

Commit 288632e

Browse files
authored
fix: defineEmits caused warnings (#1306)
1 parent 81b28c2 commit 288632e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/client/internals/InfoDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const props = defineProps({
1010
},
1111
})
1212
13-
const emit = defineEmits<{ (name: 'modelValue', v: boolean): void }>()
13+
const emit = defineEmits(['update:modelValue'])
1414
const value = useVModel(props, 'modelValue', emit)
1515
const hasInfo = computed(() => typeof configs.info === 'string')
1616
</script>

packages/client/internals/Modal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const props = defineProps({
1010
},
1111
})
1212
13-
const emit = defineEmits<{ (name: 'modelValue', v: boolean): void }>()
13+
const emit = defineEmits(['update:modelValue'])
1414
const value = useVModel(props, 'modelValue', emit)
1515
1616
function onClick() {

packages/client/internals/SlidesOverview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import IconButton from './IconButton.vue'
1414
1515
const props = defineProps<{ modelValue: boolean }>()
1616
17-
const emit = defineEmits([])
17+
const emit = defineEmits(['update:modelValue'])
1818
const value = useVModel(props, 'modelValue', emit)
1919
2020
function close() {

0 commit comments

Comments
 (0)