Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
enableKeyboardNavigation : true,//是否打开键盘导航
toggleControlsOnReturn : false,//是否允许回车,显示/隐藏控制按钮
toggleControlsOnSlideClick : false,//是否允许鼠标点击图片,显示/隐藏控制按钮
startSlideshow : false,//是否自动开始播放图片轮播
onslide: function (index) {
that.showed(index);
},
onclosed: function () {
that.showed(-1);
}
},
main = custom ? that.$refs.links : that.$refs.innerLinks,
links = main.getElementsByTagName('a');
//console.log(e);
//console.log(link.tagName);
gallery(links, options);
},
openCarousel(){
this.$nextTick(()=> {
gallery(that.list, {
container: that.$refs.container,
carousel: true,
toggleControlsOnSlideClick : false,
onslide: function (index) {
that.showed(index);
}
});
});
},