kitwon / vue-loading-skeleton

Vue skeleton component, automatically adapt your app.
MIT License
181 stars 12 forks source link

How to use on actual Image #8

Closed felix2056 closed 4 years ago

felix2056 commented 4 years ago

This doesn't work

<Skeleton height="200px" duration="3.3">
              <img class="img-fluid" :src="user.photo_url" :alt="user.name"  />

</Skeleton>
kitwon commented 4 years ago

🤔 Maybe you can try

<Skeleton height="200px" width="200px" duration="3.3" v-if="user.photo_url" />
<img class="img-fluid" :src="user.photo_url" :alt="user.name" v-else  />

If nothing help, can you provide a live demo?

felix2056 commented 4 years ago

Thanks it worked

kitwon commented 4 years ago

Fell free to open. 😀