UPD: Mapping config and muted text

This commit is contained in:
Robert Kossessa
2024-02-12 16:26:05 +01:00
parent 692b5a9b2e
commit 41339a4100
4 changed files with 83 additions and 12 deletions

View File

@@ -6,7 +6,7 @@
:class="{'cursor-pointer hover:bg-zinc-800': showToggle}"
@click="toggle = !toggle">
<component :is="iconComponent" v-if="iconComponent" class="h-4 w-4 mr-2" />
<h2 class="text-sm py-4">{{ title }}</h2>
<h2 class="text-sm py-4">{{ title }}<slot name="title"/></h2>
<Switch
v-if="showToggle" :checked="toggle"
class="ml-auto" @click.stop="toggle=!toggle" />