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 lang="ts" setup>
import type { ResolvedCommand } from '@/composables/command'
const emits = defineEmits<{
const emit = defineEmits<{
(event: 'activate'): void
}>()
@ -21,7 +21,7 @@ const {
class="flex px-3 py-2 my-1 items-center rounded-lg hover:bg-active transition-all duration-65 ease-in-out cursor-pointer scroll-m-10"
:class="{ 'bg-active': active }"
:data-index="index"
@click="emits('activate')"
@click="emit('activate')"
>
<div v-if="cmd.icon" me-2 :class="cmd.icon" />