Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

imgs-preview

famoushappy11ISC1.0.1

a vue2.0 images-preview component

imgs-preview

readme

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 <template> <ImgsPreview v-if='showImgsView' @close='showImgsView = false' :imgs='imgs' :activeIndex='activeIndex'></ImgsPreview> </template>