vue-easy-lightbox
A pure JS lightbox component for Vue.js . You can drag / view / rotate pictures.
Installation
use script
tag
Grab the minified version under dist/vue-easy-lightbox.umd.min.js
. It will register components globally.
example:
With NPM
vue-easy-lightbox
can be loading all with the Vue.use() method as same as the other vue plugin.
Usage of Component
Options
Properties
name | type | default | description |
---|---|---|---|
visible | Boolean | required | 控制组件的显示 |
imgs | String/Array | required | 图片的url,传入数组则可以轮播显示 |
index | Number | 0 | 打开图片组时,展示的图片位置 |
Event
name | description |
---|---|
hide | When you click modal mask or close Btn, component will emit this event |