chore: use template wrapper for slot
This commit is contained in:
committed by
Andrew Bastin
parent
85285a5204
commit
40b9508361
@@ -8,9 +8,9 @@
|
|||||||
:class="large ? 'w-32 h-32' : 'w-16 h-16'"
|
:class="large ? 'w-32 h-32' : 'w-16 h-16'"
|
||||||
:alt="alt"
|
:alt="alt"
|
||||||
/>
|
/>
|
||||||
<div v-if="hasIcon">
|
<template v-if="hasIcon">
|
||||||
<slot name="icon"></slot>
|
<slot name="icon"></slot>
|
||||||
</div>
|
</template>
|
||||||
<span v-if="heading" class="font-semibold mt-2 text-center">
|
<span v-if="heading" class="font-semibold mt-2 text-center">
|
||||||
{{ heading }}
|
{{ heading }}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user