2.2.3 • Published 7 years ago

telvin-vodal v2.2.3

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

Vodal Dependency Status NPM downloads

A vue modal with animations. Example

Installation

npm install telvin-vodal -S

Usage

<vodal :show="show" animation="rotate" @hide="show = false">
    <div>A vue modal with animations.</div>
</vodal>
import Vue from 'vue';
import Vodal from 'vodal';

Vue.component(Vodal.name, Vodal);

export default {
    name: 'app',
    
    data() {
        return {
            show: false
        }
    }
}
// include animation styles
@import "vodal/dist/all.min.css";

Props

PropertyTypeDefaultDescription
widthnumber400width of dialog
heightnumber240height of dialog
measurestringpxmeasure of width and height
showboolfalsewhether to show dialog
maskbooltruewhether to show mask
closeButtonbooltruewhether to show close button
animationstringzoomanimation type
durationnumber300animation duration
classNamestring/className for the container

Animation Types

  • zoom
  • fade
  • flip
  • door
  • rotate
  • slideUp
  • slideDown
  • slideLeft
  • slideRight

This source is just for personal custom usage. To find the orignal author: https://github.com/chenjiahan

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago