0.0.5 • Published 6 years ago

view-img v0.0.5

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

view-img for vue.js

a component for mobile preview img with hammerjs. support move and zoom

demo

Usage

A.Globally

// in your app entry
import ViewImg from 'view-img'
Vue.use(ViewImg)

// then in your templete write
// <view-img :show="show" :img='img' @hide='hide'></view-img>

B.Single

// in your component
import {ViewImg} from 'img-view'
export default {
  components: {
    'view-img': ViewImg
  }
}

Properties

propertyrequiredtypedefaultdescription
showtrueBooleanfalseif the model display
imgtrueString''the image url will show

Events

namerequireddescription
hidetruethe event for click the model, you can hide the model with this event

References

hammer

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago