chore: rename emit function

This commit is contained in:
三咲智子 2023-01-02 06:06:27 +08:00
parent 72e03f8109
commit b48a893614
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
5 changed files with 11 additions and 11 deletions

View file

@ -2,10 +2,10 @@
const props = defineProps<{
modelValue?: boolean
}>()
const emits = defineEmits<{
const emit = defineEmits<{
(event: 'update:modelValue', value: boolean): void
}>()
const visible = useVModel(props, 'modelValue', emits, { passive: true })
const visible = useVModel(props, 'modelValue', emit, { passive: true })
const colorMode = useColorMode()
function changeShow() {