only show loading icon if there is an image to load
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
<div
|
<div
|
||||||
class="sm-carousel-slide"
|
class="sm-carousel-slide"
|
||||||
:style="{ backgroundImage: `url('${imageUrl}')` }">
|
:style="{ backgroundImage: `url('${imageUrl}')` }">
|
||||||
<div v-if="imageUrl.length == 0" class="sm-carousel-slide-loading">
|
<div
|
||||||
|
v-if="image.length > 0 && imageUrl.length == 0"
|
||||||
|
class="sm-carousel-slide-loading">
|
||||||
<SMLoadingIcon />
|
<SMLoadingIcon />
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="sm-carousel-slide-body">
|
<div v-else class="sm-carousel-slide-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user