Comments (5)
这个 css 不知行不行 https://unpkg.com/[email protected]/dist/viewer.css,建议文档更新一下,或者将 css 打包进去
from v-viewer.
包管理工具是什么?
手动npm i viewerjs之后应该就可以找到这个路径了,css不在v-viewer下而是在viewerjs下。
早期版本是打包了css的,但nuxt等工具解析import时会报错,因为有些场景往往还需要自定义css,所以索性没有强制引入,又分离开来让v-viewer只作为一个vue适配器。
from v-viewer.
包管理工具是什么? 手动npm i viewerjs之后应该就可以找到这个路径了,css不在v-viewer下而是在viewerjs下。 早期版本是打包了css的,但nuxt等工具解析import时会报错,因为有些场景往往还需要自定义css,所以索性没有强制引入,又分离开来让v-viewer只作为一个vue适配器。
使用 pnpm 管理。
嗯嗯,我这边将 viewer.css 下载后本地引入解决的。
这个图片预览插件很好用,也是别人推荐给我的,应该有不少人用这个,所以建议作者有时间可以更新一下使用文档
from v-viewer.
+1
from v-viewer.
使用 pnpm 管理。 嗯嗯,我这边将 viewer.css 下载后本地引入解决的。 这个图片预览插件很好用,也是别人推荐给我的,应该有不少人用这个,所以建议作者有时间可以更新一下使用文档
不需要手动下载到本地引入,只要pnpm i viewerjs显式执行一下就行,后续操作与文档一致
from v-viewer.
Related Issues (20)
- VUE2用npm安装的本地开发正常,发布线上提示Assignment to constant variable HOT 12
- Inline issue HOT 2
- 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
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.