chore: rename emit function
This commit is contained in:
parent
72e03f8109
commit
b48a893614
5 changed files with 11 additions and 11 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue