#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'>