<template>
<vue-lightbox :items="images" :cells="cells" :width="width" :height="height" />
</template>
<script>
import { VueLightbox } from "vue-lightbox2"
export default {
data: () => ({
images: [
"https://picsum.photos/id/237/200/300",
"https://picsum.photos/id/237/200/300",
"https://picsum.photos/id/237/200/300",
"https://picsum.photos/id/237/200/300",
"https://picsum.photos/id/237/200/300",
"https://picsum.photos/id/237/200/300",
"https://picsum.photos/id/237/200/300",
"https://picsum.photos/id/237/200/300"
], /// images
cells: 5, /// images show ( number value from 1 to 5 )
width: "100%", // width container
height: "200px" // height container
})
}
</script>
tachibana-shin/vue-lightbox2
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published