方法2: 如果你使用的是Webpack工程,参考以下方法:webpack alias docs // wepback.config.jsmodule.exports = {//...resolve: {alias: {'vue-easy-lightbox$':'vue-easy-lightbox/dist/external-css/vue-easy-lightbox.common.min.js', }
main 4Branches40Tags Code README MIT license vue-easy-lightbox A Vue.js 3.0 image lightbox component with Zoom / Drag / Rotate / Switch . English |中文文档|Homepage Vue-easy-lightbox@1.xonly supports Vue.js 3, if you need Vue.js 2 version please checkhere. ...
1. Import and register the VueEasyLightbox component. import VueEasyLightbox from 'vue-easy-lightbox'; const app = Vue.createApp({ }) app.use(VueEasyLightbox) app.mount('#app') 2. Add the VueEasyLightbox component to the app. <template> Single Lightbox. Gallery Lightbox <!-- all pro...
[0.10.2] (14 Feb 2020) Add keyboard left or right event handler for switching images. Add mobile device gesture to zoom or move image. Add image description. [0.9.2] Fix drag animation slow. [0.9.1] Fix peerDependencies lock. [0.9.0] ...
4 changes: 2 additions & 2 deletions 4 package.json Original file line numberDiff line numberDiff line change @@ -5,8 +5,8 @@ "private": false, "author": "Zichao Xiong <onycat@live.cn>", "license": "MIT", "main": "dist/vue-easy-lightbox.es5.common.min.js", "module": "...