fix(ui): icons for tabs

This commit is contained in:
ArneBo 2025-01-25 16:35:40 +01:00
parent a55a0ac4e0
commit 819253a8d3
1 changed files with 1 additions and 1 deletions

View File

@ -27,11 +27,11 @@ watch(() => tabs.length, (to, from) => {
<Button
v-for="(tab, index) in tabs" :key="tab" :class="{ 'is-active': currentTab === tab }"
ghost
:icon="icons[index]"
@click="currentTab = tab"
@keydown.left="currentTab = tabs[(tabs.findIndex(t => t === currentTab) - 1 + tabs.length) % tabs.length]"
@keydown.right="currentTab = tabs[(tabs.findIndex(t => t === currentTab) + 1) % tabs.length]" class="tabs-item">
<div class="is-spacing">{{ tab }}</div>
<label v-if="icons[index]" class="is-icon">{{ icons[index] }}</label>
<label>{{ tab }}</label>
</Button>