0.0.2 • Published 6 years ago

vue2-preview-modal v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Vue2PreviewModal

Vue2PreviewModal Component for Vue 2.x

Install

    npm install vue2-preview-modal --save

Usage

1. Import the component

import Vue2PreviewModal from 'vue2-preview-modal';

2. Use it globally

Vue.use(Vue2PreviewModal);

3. Use in your app or template:

methods: {
    handler() {
        this.$preview.show('http://image-url|http://youtube');
    }
}

Example

See index.html for example use

Contributing

Contributions are welcome

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build