tomtaw-image
v0.0.19
Published
## Project setup ``` npm install ```
Readme
my-vue-project
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildLints and fixes files
npm run lintCustomize configuration
See Configuration Reference. 将依赖包里的assets里的静态js在index.html上引用
npm i tomtaw-image main.js中引入 import tomtawImage from 'tomtaw-image'; import 'tomtaw-image/lib/tomtaw-image.css'; Vue.use(tomtawImage);
调用 <ElImageViewer ref="elImageViewer" :url-list="LookSrcArr"//传入的图片list @success="ElImageViewerSuccess"//点击保存的回调返回编辑后的base64 @imgVisibleFn="imgVisibleFn"//返回现在是否处于编辑状态,true是编辑状态 :initialIndex="currentIndex"//当前处于第几张图片,默认0 @setIndex="setIndex"//在组件里点击上一张或者下一张 :canEdit='true'//是否可以编辑(有无编辑按钮)
