Releases: DCzajkowski/vue-pure-lightbox
Releases · DCzajkowski/vue-pure-lightbox
Preview slot release
3.2.0 v3.2.0
Security update
3.1.1 Release 3.1.1
Added the open-at-index prop
- added the open-at-index prop (thanks @rangermeier)
Moved to a new build system.
Some breaking changes have been introduced. Please refer to the readme for any information.
Added new slots
Added new slots from #14 (thanks @keesvanlierop).
Added value prop and many more improvements
2.1.8 Bump version
Added support for the content slot
Usage of the new content slot with example youtube video:
<lightbox
thumbnail="http://via.placeholder.com/350x150"
:images="[
'http://placekitten.com/1080/910',
'http://placekitten.com/1080/920',
'https://www.youtube.com/embed/dQw4w9WgXcQ',
]"
>
<lightbox-default-loader slot="loader"></lightbox-default-loader>
<div slot="content" slot-scope="{ url }">
<iframe
v-if="url.includes('youtube') || url.includes('youtu.be')"
:src="url"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
style="width: 100%; height: 90vh;"
></iframe>
<img v-else :src="url">
</div>
</lightbox>
Fixed #6
Added loader
2.1.5 Bump version
Remove event listener when component is destroyed
2.1.4 Remove event listener when the component is destroyed