viewerjs 按钮可见性设置

viewer.js插件(图片预览)  GitHub地址:https://github.com/fengyuanchen/viewerjs 。

如:不显示1:1,横向旋转,竖向旋转的按钮 

效果图:

Viewer.setDefaults({
  toolbar: {
    zoomIn: true,
    zoomOut: true,
    oneToOne: false,
    reset: true,
    prev: true,
    play: {
      show: true,
      size: 'large'
    },
    next: true,
    rotateLeft: true,
    rotateRight: true,
    flipHorizontal: false,
    flipVertical: false
  }
})

其它可参考:https://blog.csdn.net/guozhangqiang/article/details/82251893

你可能感兴趣的:(vue,js)