Package Exports
- @abc3971139/imgpre
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@abc3971139/imgpre) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue 图片预览插件
安装
npm i @abc3971139/imgpre -S
main.js 里引入
import imgPre from "@abc3971139/imgpre";
import "@abc3971139/imgpre/dist/imgPre.css"; 挂载 Vue 原型链
Vue.prototype.$imgPre = imgPre;页面中使用
this.$imgPre(options);options说明
{
imgList: Array, // 展示的图片数组
index: Number // 当前展示图片的下标
}