2.4.0 • Published 5 years ago

vodal v2.4.0

Weekly downloads
543
License
MIT
Repository
github
Last release
5 years ago

Vodal Dependency Status NPM downloads

A vue modal with animations. Example

Installation

npm i -S vodal

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/common.css";
@import "vodal/rotate.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
closeOnEscboolfalsewhether close dialog when esc pressed
closeOnClickMaskbooltruewhether close dialog when mask clicked
animationstringzoomanimation type
durationnumber300animation duration
classNamestring/className for the container
customStylesobject/custom dialog styles
customMaskStylesobject/custom mask styles

Event

NameDescription
hidetriggers when dialog will hide
clickMasktriggers when mask clicked

Animation Types

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

Other

React version

2.4.0

5 years ago

2.3.3

6 years ago

2.3.2

7 years ago

2.3.1

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago