view-img
0.0.5 • Public • Published view-img for vue.js
a component for mobile preview img with hammerjs. support move and zoom
demo
Usage
A.Globally
import ViewImg from 'view-img'
Vue.use(ViewImg)
B.Single
import {ViewImg} from 'img-view'
export default {
components: {
'view-img': ViewImg
}
}
Properties
property |
required |
type |
default |
description |
show |
true |
Boolean |
false |
if the model display |
img |
true |
String |
'' |
the image url will show |
Events
name |
required |
description |
hide |
true |
the event for click the model, you can hide the model with this event |
References
hammer
Package Sidebar
Install
Weekly Downloads