A vue scale box component, for browsing large image and content, support interaction by both mouse and touch.
npm install vue-scale-boxjavascript
npm install vue-scale-box
// or install from github reponsitory
npm install https://github.com/ferrinweb/vue-scale-box.git
// or use yarn / 推荐使用 yarn
yarn add vue-scale-box
// or install from github reponsitory
yarn add https://github.com/ferrinweb/vue-scale-box.git
`
$3
`javascript
// global import / 全局引入
import scaleBox from 'vue-scale-box'
Vue.use(scaleBox)
// import on demand in your vue component file. / 按需引入
import scaleBox from 'vue-scale-box'
export default {
components: {
scaleBox
},
...
}
`
$3
> You can ckeckout this repository and try this demo.
> 你可以直接检出 vue-scale-box 源码到本地,查看示例。
`html
``