imgs-preview

1.0.1 • Public • Published

#imgs-preview

a mobile images preview component for vue2.0

##script

<script> import ImgsPreview from 'imgs-preview' export default { data() { return { showImgsView: false, imgs: [image-src, image-src, imgae-src, ...], //a array of the image-src activeIndex: activeIndex //the clicked image-index in the all images } }, components: { ImgsPreview } } </script>

##template property imgs is a array of the image-src property activeIndex is the clicked image-index in the all images <ImgsPreview v-if='showImgsView' @close='showImgsView = false' :imgs='imgs' :activeIndex='activeIndex'>

Readme

Keywords

Package Sidebar

Install

npm i imgs-preview

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

128 kB

Total Files

8

Last publish

Collaborators

  • famoushappy