Introduction
vue wrapper of lightgallery.js
Start
-
Install
$ npm install lightgallery-vue@latest
-
Usage
Step 1. Add lightgallery-vue component
;components:lightGalleryStep 2. Use in template
with multi add id prop
Step 3. Config for lightGallery
{returnimages:src: '1.jpg'thumb:'2.jpg'subHtml:'caption'src: '1.html'thumb:'2.jpg'subHtml:''iframe:true}
Attributes
Method
this$refslightGallery;
Event
Plugins
lightgallery supports your custom plugins for more content viewing plugins
;;;;;
Demo
$ git clone git@github.com:zengde/vue-lightgallery.git
$ cd vue-lightgallery
$ npm install
$ npm run dev
please visit http://localhost:8080/