Comments (7)
viewerjs没有专门适配移动端,默认应该是没法拖动图片的
如果是自己实现了类似的需求,可以尝试关闭双击还原的配置项toggleondblclick
还有就是如果使用了指令方式,可以尝试加入static修饰符避免dom改变触发重载
from v-viewer.
如果你指的是切换图片时的新图展示比例,这个默认就是初始值0.9
可以通过initialCoverage配置项修改
from v-viewer.
in ./node_modules/v-viewer/dist/index.mjs
Module parse failed: Unexpected token (16:10)
You may need an appropriate loader to handle this file type.
现在又报这个错,应该安装什么loader呀
from v-viewer.
需要提供环境信息,比如脚手架、v-viewer和vue的版本号
from v-viewer.
"v-viewer": "^3.0.13", "viewerjs": "^1.11.6", "vue": "^2.5.2", "webpack": "^3.6.0",
from v-viewer.
vue2需要安装legacy版本,不能使用3.x
pnpm i v-viewer@legacy
from v-viewer.
谢谢大佬,移动端也可用!
from v-viewer.
Related Issues (20)
- 源码路径绝对路径 HOT 1
- 插件无法使用,无法安装 HOT 1
- 请问点击图片后,大图是从中间中心位置飞入放大,可以从底部飞入吗? HOT 9
- vue2 v-viewer compile error HOT 3
- 通过标签引入的形式,出现组件失效,无法使用。 HOT 3
- url的权限 HOT 1
- 底部按钮只有5个无法增加 HOT 1
- 使用官网component组件形式的例子 提示组件没注册 HOT 4
- vue中 使用component 怎么监听图片移动以及缩放 HOT 6
- 使用组件引入如何在固定框之间放大缩小 HOT 4
- viewer-canvas示例
- 重新定义reset事件 HOT 2
- import 'viewerjs/dist/viewer.css' 提示找不到 HOT 2
- 我通知创建两个预览组件结果只展示一个 HOT 4
- 再固定框图片预览问题 HOT 1
- 自定义了prev跟next事件,我需要切换下一张照片异步添加水印,页面上的图片有水印,v-viewer预览图片的缩略图更新了,但是中间大图没有更新,并且导致按play按钮黑屏 HOT 8
- modal模式下怎么做到 pre和next监听(主要是键盘事件的自定义) HOT 1
- 缩略图与原图 HOT 2
- 请问一下,我想自定义两个切换按钮该怎么做啊 HOT 2
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.