mirror of
https://github.com/koel/koel
synced 2024-12-30 14:33:06 +00:00
13 lines
300 B
Vue
13 lines
300 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>
|