fix(ui): Only render <span> in Button if not icon only

This commit is contained in:
upsiflu 2025-01-17 10:44:33 +02:00
parent 75d52faedc
commit 5d503d0361
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ onMounted(() => {
@click="click"
>
<i v-if="icon && !icon.startsWith('right ')" :class="['bi', icon]" />
<span>
<span v-if="!isIconOnly">
<slot />
</span>
<i v-if="icon && icon.startsWith('right ')" :class="['bi', icon.replace('right ', '')]" />