1.0.4 • Published 6 years ago

vue2-image-preview v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

vue-image-preview

An image preview component based on Vue

Demo

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Usage

// import as ES6 module
import VueImagePreview from 'vue-image-preview'

// require as Node module
var VueImagePreview = require('vue-image-preview')

// then, install the plugin
Vue.use(VueImagePreview)

// load as JS file
<script src="unpack.js/"></script>

Props

nametypedefaultdescription
visibleBooleantruevisibility of the image preview dialog
imgSrcArray-a list of image URLs
currentIndexNumber0the current index for the list of images

License

MIT

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago