All Projects → a306916069 → Vue Simple Photoswipe

a306916069 / Vue Simple Photoswipe

A picture preview plugin based on Vue

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Labels

Projects that are alternatives of or similar to Vue Simple Photoswipe

Automator
Various Automator and AppleScript workflow and scripts for simplifying life
Stars: ✭ 68 (-54.36%)
Mutual labels:  photo
Photostructure For Servers
PhotoStructure for Servers
Stars: ✭ 98 (-34.23%)
Mutual labels:  photo
Pictureselector
Picture Selector Library for Android or 图片选择器
Stars: ✭ 11,095 (+7346.31%)
Mutual labels:  photo
Photoviewslider
📷 A simple photo browser for Android applications.
Stars: ✭ 78 (-47.65%)
Mutual labels:  photo
Hxphotobrowser
📷 Photo browser that simulates progressive loading 可以模拟渐进式加载的图片浏览器
Stars: ✭ 91 (-38.93%)
Mutual labels:  photo
Vscam
Photography, Communication & Share - Minimalist picture sharing app.
Stars: ✭ 105 (-29.53%)
Mutual labels:  photo
Imageselector
图片选择器, 支持多图选择和图片预览
Stars: ✭ 62 (-58.39%)
Mutual labels:  photo
Beautyhour
With this software, you can do all kinds of Personalised Customize and beautifying to your photos.
Stars: ✭ 132 (-11.41%)
Mutual labels:  photo
React Photo Layout Editor
Photo layout editor for react
Stars: ✭ 96 (-35.57%)
Mutual labels:  photo
Mediaselector
Android图片选择器,仿微信相册图片选择器,支持自定义!
Stars: ✭ 115 (-22.82%)
Mutual labels:  photo
Videomoments
With this software, you can do all kinds of Personalised Customize and beautifying to your videos.
Stars: ✭ 85 (-42.95%)
Mutual labels:  photo
React Siema
ReactSiema Demo
Stars: ✭ 90 (-39.6%)
Mutual labels:  photo
Publishcommunity Master
仿微博,QQ空间,论坛 ,九宫格图文混排发表说说,动态,帖子
Stars: ✭ 107 (-28.19%)
Mutual labels:  photo
Kontax Cam
Instant camera hybrid with multiple effects and filters written in Swift.
Stars: ✭ 69 (-53.69%)
Mutual labels:  photo
Ucrop
Image Cropping Library for Android
Stars: ✭ 11,003 (+7284.56%)
Mutual labels:  photo
React Native Images Collage
Robust interactive image collage component for React Native
Stars: ✭ 68 (-54.36%)
Mutual labels:  photo
Feedfire
FeedFire is a project to help developers integrate with Google Firebase.
Stars: ✭ 100 (-32.89%)
Mutual labels:  photo
Hybridcamera
Video and photo camera for iOS
Stars: ✭ 145 (-2.68%)
Mutual labels:  photo
Stfalconimageviewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures
Stars: ✭ 1,734 (+1063.76%)
Mutual labels:  photo
Time
time是一个for typecho相册模板
Stars: ✭ 112 (-24.83%)
Mutual labels:  photo

simple-photoswipe

NPM version

A Vue Integrated PhotoSwipe Image Preview Plugin

Installation

npm install simple-photoswipe --save
//main.js
import simplePhotoswipe from 'simple-photoswipe'
Vue.use(simplePhotoswipe)

But you can also import the standalone component to add locally or for more complex installations.

// photoswipe.vue
import { simplePhotoswipe } from 'simple-photoswipe'
export default {
  components: {
    simplePhotoswipe
  }
}

Methods

<simple-photoswipe
  :slides="slides"
  :options="options"
  @close="close"
  @afterChange="afterChange"
  @beforeChange="beforeChange"
  @destroy="destroy"
  ref="simplePhotoswipe"
></simple-photoswipe>
...
<script>
  ...
    data() {
      return {
        slides:[
            {
              src: 'https://img.zcool.cn/community/[email protected]_1l_2o_100sh.jpg',
              msrc:'https://img.zcool.cn/community/[email protected]_1l_2o_100sh.jpg',
              w: 964,
              h: 1024
            },
            {
              src: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1541502380130&di=9126f8939434001d6536c9d32bacffcb&imgtype=0&src=http%3A%2F%2Ftvax4.sinaimg.cn%2Fcrop.0.0.996.996.1024%2F006HxkHbly8flgt44j5rij30ro0rpacl.jpg',
              msrc: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1541502380130&di=9126f8939434001d6536c9d32bacffcb&imgtype=0&src=http%3A%2F%2Ftvax4.sinaimg.cn%2Fcrop.0.0.996.996.1024%2F006HxkHbly8flgt44j5rij30ro0rpacl.jpg',
              w: 964,
              h: 1024
            }
        ],
      }
    },

    methods: {
      close(){
        console.log('close event')
      },
      afterChange(){
        console.log('afterChange event')
      },
      beforeChange(){
        console.log('beforeChange event')
      },
      destroy(){
        console.log('destroy event')
      }
    },
  ...
</script>

API document

photoswipe docs

Example App

I have created a simple Vue 2 webpack application as an example/playground https://github.com/a306916069/vue-simple-photoswipe.git

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].