Giter Site home page Giter Site logo

Comments (7)

mirari avatar mirari commented on July 18, 2024

viewerjs没有专门适配移动端,默认应该是没法拖动图片的
如果是自己实现了类似的需求,可以尝试关闭双击还原的配置项toggleondblclick
还有就是如果使用了指令方式,可以尝试加入static修饰符避免dom改变触发重载

from v-viewer.

mirari avatar mirari commented on July 18, 2024

如果你指的是切换图片时的新图展示比例,这个默认就是初始值0.9
可以通过initialCoverage配置项修改

from v-viewer.

happyyummy avatar happyyummy commented on July 18, 2024

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.

mirari avatar mirari commented on July 18, 2024

需要提供环境信息,比如脚手架、v-viewer和vue的版本号

from v-viewer.

happyyummy avatar happyyummy commented on July 18, 2024

"v-viewer": "^3.0.13", "viewerjs": "^1.11.6", "vue": "^2.5.2", "webpack": "^3.6.0",

from v-viewer.

mirari avatar mirari commented on July 18, 2024

vue2需要安装legacy版本,不能使用3.x
pnpm i v-viewer@legacy

from v-viewer.

happyyummy avatar happyyummy commented on July 18, 2024

谢谢大佬,移动端也可用!

from v-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.