mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-22 15:53:01 +00:00
BulmaButton: don't show undefined icon
This commit is contained in:
parent
15309e6710
commit
9e9481217d
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
<template>
|
||||
<button class="button">
|
||||
<slot v-if="text === undefined" name="default">
|
||||
<font-awesome-icon :icon="icon" :beat-fade="busy" />
|
||||
<font-awesome-icon
|
||||
v-if="icon !== undefined"
|
||||
:icon="icon"
|
||||
:beat-fade="busy"
|
||||
/>
|
||||
</slot>
|
||||
<template v-else>
|
||||
<span v-if="icon !== undefined" class="icon">
|
||||
|
|
Loading…
Reference in a new issue