1.1.6 • Published 7 years ago

vue-lightbox v1.1.6

Weekly downloads
85
License
MIT
Repository
-
Last release
7 years ago

vue-lightbox

Simple lightbox component for vue

How to use it

Example on jsbin

# import 
import VueLightbox from 'vue-lightbox'
Vue.component("Lightbox",VueLightbox)

or

var VueLightbox = required('./vue-lightbox.js') 
or
<script type="text/javascript" src="./vue-lightbox.js"></script>
Vue.component("Lightbox",VueLightbox.VueLightbox)




# use
# some album pictures will be grouped
<lightbox src="http://pic1.jpg" caption="this is pic caption" album="albumA"></lightbox>
<lightbox src="http://pic2.jpg" caption="this is pic caption" album="albumA"></lightbox>
<lightbox src="http://pic3.jpg" caption="this is pic caption" album="albumB"></lightbox>

Options

proptyperequireddefaultdesc
srcStringyespicture url
albumStringno""group of pictures
captionStringno""some picture desc will display under the popup
show-indexBooleannotrueshow the picture number index
index-tmplStringno"${d} of ${total} images"picture number index tmpl,${d} will be replace by index,${total} will be album's picture count
click-overlay-hideBooleannotrueis click to close lightbox

Todo

  • add watch when props change

  • test for different browser

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago