Notdefind
Results
comments of
Notdefind
看了大佬的源码,自己改了一下。 将openPhotoSwipe方法暴露出来,在外部通过ref拿到组件对象调用。 this.$refs['preview'].openPhotoSwipe(1, document.querySelectorAll('.my-gallery')[1], true, true); 可以实现点击按钮打开预览图片
希望后期能实现预览图片自适应,和预览图片轮播不可循环滑动
官方示例在IOS设备上也出现了同样的问题 选择器item上有 text-size-adjust: 94%;样式 给body添加 text-size-adjust: 100% !important; 解决了这个问题
以后用vue首选element