Results 103 comments of mirari

从数量上说,这些dom元素与表格行数一样多,如果认为这个数量算多,那表格内的tr也一样很多,td更多,无非一个在外一个在内,一眼看不到。 从渲染逻辑说,这些dom元素在viewer不打开时都是display:none状态,只占据极微小的一点内存,不参与页面重绘重排,且列表翻页或销毁时就会被从内存中释放。 如果一定要优化,就是我说的改为api调用模式,关闭viewer立刻释放。

双击放大那是浏览器自己的图片查看模式了吧

Customization is not supported currently, you may have to fork or make a feature request on [viewer.js](https://github.com/fengyuanchen/viewerjs)

是不是用了指令形式,内部除了图片还有input? 指令形式默认开启了内部元素变化监听,任何变化都会引起viewer重置。 改用组件形式传递图片数组来避免不必要的重置。 指令形式也可以用static来标记避免自动重置。

在options中传入container参数 https://github.com/fengyuanchen/viewerjs#container

以前这个项目不是为移动端设计的,移动端多少都会有点问题。 这个问题可能得提交到viewer.js的[issue](https://github.com/fengyuanchen/viewerjs/issues)。

在原版DEMO里测试一下 [https://fengyuanchen.github.io/viewerjs/](https://fengyuanchen.github.io/viewerjs/) 如果有问题需要提供复现环境描述到[原项目issue](https://github.com/fengyuanchen/viewerjs/issues)

功能性的需求得去[viewer.js](https://github.com/fengyuanchen/viewerjs)提,v-viewer只是一个vue的壳

I am unable to reproduce the problem and need to provide details of the runtime environment. If you have a similar problem with your application at [viewer.js](https://fengyuanchen.github.io/viewerjs/), it may be...

在options里写回调,或者在viewer对象上监听 https://github.com/fengyuanchen/viewerjs#move https://github.com/fengyuanchen/viewerjs#move-1