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

@ -1,7 +1,7 @@
<script setup lang="ts">
import type { UserLogin } from '~/types'
const emits = defineEmits<{
const emit = defineEmits<{
(event: 'click'): void
}>()
@ -25,7 +25,7 @@ const switchUser = (user: UserLogin) => {
</script>
<template>
<div sm:min-w-80 max-w-100vw mxa py2 flex="~ col" @click="emits('click')">
<div sm:min-w-80 max-w-100vw mxa py2 flex="~ col" @click="emit('click')">
<template v-for="user of sorted" :key="user.id">
<button
flex rounded px4 py3 text-left