vue-picture
vue 仿百度百科全屏图片浏览组件
使用组件
安装npm包
npm install vue-picture --save
引用vue-picture插件
import vue-picture from 'vue-picture'
在组件中使用
<vue-picture :imgSource="[]"></vue-picture> 数据格式imgSource: [ { src: '/static/img/...', select: true, }, ... { src: '/static/img/...', select: false, },] 默认数组中第一组数据选中
For detailed explanation on how things work, checkout the guide and docs for vue-loader.