mirari
mirari
在toolbar这个属性里面定义按钮 https://github.com/fengyuanchen/viewerjs?tab=readme-ov-file#toolbar 也可以参考例子自定义 https://codepen.io/mirari/pen/GRMBrBv
没有复现 https://codepen.io/mirari/pen/GRLBzPj 例子里可以正常展现多个viewer 如果要定位问题,至少应该提供复现代码
需要显式安装viewerjs
这个渲染是符合预期的。 > 右侧定界符序列是一个定界符序列,且: > 前面不能是空白; > 当后面没有空白或标点符号时,前面不能是标点符号。 [https://juejin.cn/post/7064565848421171213](https://juejin.cn/post/7064565848421171213) 更推荐的做法是在两个星号的左右分别加一个空格,这样即使是被嵌套引用也可以正常渲染
今天也遇到了类似问题,尝试重启、删除lock文件、删除node_modules目录、修改磁盘访问权限、更换项目目录、更换yarn安装都不行 最后发现是rollup的bug。 没有使用unocss,但有使用tailwind。 将package.json中的vite强制升级到5.x以后解决了。 uniapp相关依赖会有警告,不影响运行,就忽略了 ``` ├─┬ @dcloudio/uni-automator 3.0.0-alpha-4000020240127001 │ └─┬ @dcloudio/uni-cli-shared 3.0.0-alpha-4000020240127001 │ └─┬ @vue/server-renderer 3.3.11 │ └── ✕ unmet peer [email protected]: found 3.3.12 └─┬ @dcloudio/vite-plugin-uni 3.0.0-alpha-4000020240127001 ├── ✕...
加插件读不到配置,启动swagger服务是空白的
Perhaps the example at the top of the document is exactly what you want. [custom toolbar](https://codepen.io/mirari/pen/GRMBrBv)
> > Perhaps the example at the top of the document is exactly what you want. > > [custom toolbar](https://codepen.io/mirari/pen/GRMBrBv) > > How to make it globally? Originally you could...
The defaultOptions usage doesn't work because there is no chance to get the viewer object at this point
Perhaps you can pass `toggleOnDblclick: false` in options to turn off the double-click callback. https://github.com/fengyuanchen/viewerjs/blob/main/README.md#toggleondblclick