Giter Site home page Giter Site logo

Comments (5)

mirari avatar mirari commented on July 17, 2024

https://codepen.io/mirari/pen/PowNyEY
在线例子仍然可以运行,需要检查下v-viewer以及vue的版本号,还有是否正常导入css

from v-viewer.

Ym-haohan avatar Ym-haohan commented on July 17, 2024

在线例子是不是使用的vue3版本的v-viewer?本地使用的vue2的1.6.4版本,css已经修改为本地导入viewerjs的min.css文件,还是不可以正常使用

from v-viewer.

mirari avatar mirari commented on July 17, 2024

在线例子vue2和3都有,上面那个地址是vue2的,对应的是v-viewer的1.6.4版本。

https://codesandbox.io/s/v-viewer-component-dps1f
沙箱版本也能正常运行,对照看下吧

from v-viewer.

Ym-haohan avatar Ym-haohan commented on July 17, 2024

问题已找到,重新安装v-viewer 1.6.4版本之后依赖的viewerjs版本从1.5.0更改为了1.11.3,所以组件调用方式失效,可以将1.6.4的依赖viewerjs版本锁定在1.5.0,沙箱环境可能是有lock文件锁定了依赖版本,但是重新拉取的话因为使用了viewerjs:^1.5.0
image
所以会拉取到新版本

from v-viewer.

mirari avatar mirari commented on July 17, 2024

在线例子用的viewerjs也是1.11.3,但是没有这个问题啊

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.