mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +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>
|
<template>
|
||||||
<button class="button">
|
<button class="button">
|
||||||
<slot v-if="text === undefined" name="default">
|
<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>
|
</slot>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span v-if="icon !== undefined" class="icon">
|
<span v-if="icon !== undefined" class="icon">
|
||||||
|
|
Loading…
Reference in a new issue