Giter Site home page Giter Site logo

vue-photoswipe's Introduction

PhotoSwipe-demo

PhotoSwipe demo built with vue

Install

npm install --save vue-photoswipe

Use

Demo

vue-photoswipe's People

Contributors

applecat avatar ymyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-photoswipe's Issues

Error with vue for prod

npm run build

ERROR in static/js/vendor.752039dd5729f04bd981.js from UglifyJs
Unexpected token: name ($vm) [./~/vue-photoswipe/src/index.js:3,0][static/js/vendor.752039dd5729f04bd981.js:25554,4]

Fiature request

Hi, I use your app in my project and it works well. Although there is two improvement I would suggest.

First, please do not hardcode the const thumbnail with one class, this will allow having multiple galleries on the page.

Second, is it possible to use <router-link> in the HTML slide? I've tried looks like not but maybe you'll find a way it is your component :) will be very appreciated.

pageYScroll兼容性

使用的时候发现在Safari 和 微信里面存在定位问题。 查看源码发现 pageYScroll 有兼容性问题,希望能更新...

bug:

image

fixed:

const pageYScroll = window.pageYOffset    // Safari

     || document.documentElement.scrollTop   //  普遍适用的标准浏览器 chrome  FF...

     || document.body.scrollTop  //  无doctype声明

     || 0

adding options

thanks for your plugin! finally a photoswipe vuejs plugin :)

how about adding options? so the gallery can be customized? like minimal/full version

cheers max

Events

Be great to have events. I realise PhotoSwipe has moved to v5, but this repo is still handy for those using v4.

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.