Results 189 comments of mirari

信息不足无法判断,建议先检查vue大版本是否一致

https://codesandbox.io/s/vue3-viewer-wfw2zk 可参考示例对照代码

如果是说`Cannot set properties of undefined (setting '$viewerApi')`这个错误,一般是版本不一致时出现的,比如vue3安装了vue2的v-viewer

Thanks, I had thought I was using it the wrong way and have now tried adding the style. Looking forward to your example.

@zernonia Thank you for your reply. In my case, as the `ui-thing` does, the `UiSplitterPanel` is parent component of the `SplitterPanel`. It obviously can't forward methods from internal components. So...

监听事件?api模式下只能在options里定义回调 组件和指令都可以在元素上直接监听这两个事件 --- 我看错了,没有这两个原生事件,只能监听view事件,看index的变化

是否引入了css文件 如果在当前组件里只引入了js脚本,那需要在app入口处引入css ``` import 'viewerjs/dist/viewer.css' import { api as viewerApi } from "v-viewer" ```

目前信息不足,可以把传递给api的参数打印出来,放到在线例子里写死,看看能不能复现。

如果能正常展示,那应该不是viewer的问题 可以尝试换成其他图片URL,或者从本地项目里抽出一个最小复现环境

I need this, looking forward to progress