a306916069 / Vue Simple Photoswipe
A picture preview plugin based on Vue
Stars: ✭ 149
Programming Languages
javascript
184084 projects - #8 most used programming language
js
455 projects
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
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
Beautyhour
With this software, you can do all kinds of Personalised Customize and beautifying to your photos.
Stars: ✭ 132 (-11.41%)
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
Kontax Cam
Instant camera hybrid with multiple effects and filters written in Swift.
Stars: ✭ 69 (-53.69%)
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
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
simple-photoswipe
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
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].