Skip to content

Commit

Permalink
fix: defineEmits caused warnings (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Feb 18, 2024
1 parent 81b28c2 commit 288632e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/client/internals/InfoDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const props = defineProps({
},
})
const emit = defineEmits<{ (name: 'modelValue', v: boolean): void }>()
const emit = defineEmits(['update:modelValue'])
const value = useVModel(props, 'modelValue', emit)
const hasInfo = computed(() => typeof configs.info === 'string')
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/internals/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const props = defineProps({
},
})
const emit = defineEmits<{ (name: 'modelValue', v: boolean): void }>()
const emit = defineEmits(['update:modelValue'])
const value = useVModel(props, 'modelValue', emit)
function onClick() {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/internals/SlidesOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import IconButton from './IconButton.vue'
const props = defineProps<{ modelValue: boolean }>()
const emit = defineEmits([])
const emit = defineEmits(['update:modelValue'])
const value = useVModel(props, 'modelValue', emit)
function close() {
Expand Down

0 comments on commit 288632e

Please sign in to comment.