https://www.cnblogs.com/shenjp/p/9754171.html

如果图片路径是 接口的返回信息的话,将路径存储在数组中,在this.$nextTick中实例化Viewer:

this.$nextTick(()=>{
	const ViewerDom = document.getElementById('previewImg');
	const viewer = new Viewer(ViewerDom, {
	// 配置
	})
})

配置的回调函数:http://www.dowebok.com/demo/192/index3.html

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-12
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2021-05-04
  • 2022-01-07
  • 2022-02-07
相关资源
相似解决方案