Skip to content

Commit

Permalink
fix: defineEmits bad argument (#450) (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
LarchLiu committed Feb 14, 2022
1 parent 16f1979 commit aae017d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo/composable-vue/components/NumBox.vue
Expand Up @@ -2,7 +2,7 @@
import { useVModel } from '@vueuse/core'
const emit = defineEmits<{
(): any
(e: any): void
}>()
const props = defineProps<{
value: number
Expand Down
4 changes: 3 additions & 1 deletion packages/client/internals/MenuButton.vue
Expand Up @@ -2,7 +2,9 @@
import { onClickOutside, useVModel } from '@vueuse/core'
import { ref } from 'vue'
const emit = defineEmits<{}>()
const emit = defineEmits<{
(e: any): void
}>()
const props = defineProps({
modelValue: {
default: false,
Expand Down
4 changes: 3 additions & 1 deletion packages/client/internals/RecordingDialog.vue
Expand Up @@ -5,7 +5,9 @@ import { getFilename, recordCamera, recorder, recordingName } from '../logic/rec
import Modal from './Modal.vue'
import DevicesList from './DevicesList.vue'
const emit = defineEmits<{}>()
const emit = defineEmits<{
(e: any): void
}>()
const props = defineProps({
modelValue: {
default: false,
Expand Down
4 changes: 3 additions & 1 deletion packages/client/internals/SelectList.vue
Expand Up @@ -3,7 +3,9 @@ import { useVModel } from '@vueuse/core'
import type { PropType } from 'vue'
import type { SelectionItem } from './types'
const emit = defineEmits<{}>()
const emit = defineEmits<{
(e: any): void
}>()
const props = defineProps({
modelValue: {
type: [Object, String, Number] as PropType<any>,
Expand Down

0 comments on commit aae017d

Please sign in to comment.