Comments (5)
https://codepen.io/mirari/pen/PowNyEY
在线例子仍然可以运行,需要检查下v-viewer以及vue的版本号,还有是否正常导入css
from v-viewer.
在线例子是不是使用的vue3版本的v-viewer?本地使用的vue2的1.6.4版本,css已经修改为本地导入viewerjs的min.css文件,还是不可以正常使用
from v-viewer.
在线例子vue2和3都有,上面那个地址是vue2的,对应的是v-viewer的1.6.4版本。
https://codesandbox.io/s/v-viewer-component-dps1f
沙箱版本也能正常运行,对照看下吧
from v-viewer.
问题已找到,重新安装v-viewer 1.6.4版本之后依赖的viewerjs版本从1.5.0更改为了1.11.3,所以组件调用方式失效,可以将1.6.4的依赖viewerjs版本锁定在1.5.0,沙箱环境可能是有lock文件锁定了依赖版本,但是重新拉取的话因为使用了viewerjs:^1.5.0
所以会拉取到新版本
from v-viewer.
在线例子用的viewerjs也是1.11.3,但是没有这个问题啊
from v-viewer.
Related Issues (20)
- viewerjs/dist/viewer.css中的background-color写法有问题? HOT 1
- 点击旋转后一直转个不停 HOT 1
- 你好,请问可以加个新功能吗:在查看图片时显示当前索引以及图片总数。如:1/12 HOT 5
- 请问可以设置为第一次点击的时候选中,第二次再放大吗? HOT 1
- 大图片加载后会reset viewer HOT 1
- viewer.exit()和viewer.hide()不生效 HOT 2
- viewer.exit(),viewer.hide()不生效 HOT 2
- 使用的是this.$viewerApi方法,我希望点击modal或者关闭按钮关闭viewer时,阻止点击事件冒泡,要怎么做? HOT 4
- Enable photo download in the viewer toolbar HOT 5
- Image Deletion Event Emission or Customizable Event HOT 1
- The problem of accidentally triggering a double-click event when swiping quickly HOT 1
- Should add viewerjs to peerDependencies HOT 1
- 如何全屏的时候不自动切换图片 HOT 2
- 版本v1.7.3对旧的1.x.x版本出现了兼容问题 HOT 4
- 源码路径绝对路径 HOT 1
- 手机端图片移动问题 HOT 7
- 插件无法使用,无法安装 HOT 1
- 请问点击图片后,大图是从中间中心位置飞入放大,可以从底部飞入吗? HOT 9
- vue2 v-viewer compile error HOT 3
- 通过标签引入的形式,出现组件失效,无法使用。 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v-viewer.