mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
12 lines
301 B
Vue
12 lines
301 B
Vue
<template>
|
|
<button @click.prevent.stop="toggleSidebar">
|
|
<Icon :icon="faBars" />
|
|
</button>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
|
import { eventBus } from '@/utils'
|
|
|
|
const toggleSidebar = () => eventBus.emit('TOGGLE_SIDEBAR')
|
|
</script>
|