Giter Site home page Giter Site logo

Comments (5)

dizuncainiao avatar dizuncainiao commented on August 16, 2024

这个 css 不知行不行 https://unpkg.com/[email protected]/dist/viewer.css,建议文档更新一下,或者将 css 打包进去

image

from v-viewer.

mirari avatar mirari commented on August 16, 2024

包管理工具是什么?
手动npm i viewerjs之后应该就可以找到这个路径了,css不在v-viewer下而是在viewerjs下。
早期版本是打包了css的,但nuxt等工具解析import时会报错,因为有些场景往往还需要自定义css,所以索性没有强制引入,又分离开来让v-viewer只作为一个vue适配器。

from v-viewer.

dizuncainiao avatar dizuncainiao commented on August 16, 2024

包管理工具是什么? 手动npm i viewerjs之后应该就可以找到这个路径了,css不在v-viewer下而是在viewerjs下。 早期版本是打包了css的,但nuxt等工具解析import时会报错,因为有些场景往往还需要自定义css,所以索性没有强制引入,又分离开来让v-viewer只作为一个vue适配器。

使用 pnpm 管理。
嗯嗯,我这边将 viewer.css 下载后本地引入解决的。
这个图片预览插件很好用,也是别人推荐给我的,应该有不少人用这个,所以建议作者有时间可以更新一下使用文档

from v-viewer.

1014156094 avatar 1014156094 commented on August 16, 2024

+1

from v-viewer.

mirari avatar mirari commented on August 16, 2024

使用 pnpm 管理。 嗯嗯,我这边将 viewer.css 下载后本地引入解决的。 这个图片预览插件很好用,也是别人推荐给我的,应该有不少人用这个,所以建议作者有时间可以更新一下使用文档

不需要手动下载到本地引入,只要pnpm i viewerjs显式执行一下就行,后续操作与文档一致

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.