gykj-image-core
v1.1.5
Published
A Vue.js project
Downloads
23
Readme
gykj-image-core
gykj-image-core组件相较于element-ui的图片查看组件,略有不同,主要特点在于在有多个图片时,点击某一张图片,可以从当前下标开始方法放大左右查看图片。 备注:只用于放大使用
Build Setup
# install dependencies
npm install gykj-image-core
<gykj-image-core @closeimage="toClose" :imagedialog-visible="flag" :map-pictureUrl="url" :dialog-img="urllist"></gykj-image-core>
<el-button @click="todos" type="danger">按钮</el-button>
data(){
return {
falg:false,
url:'', //当前图片参数
urllist:[], // 图片列表
}
}
methods:{
toClose() {
let _this = this;
_this.flag = false;
},
todos(){
let _this = this;
_this.flag = true
},
}