vue-ya-semantic-modal
Yet another semantic-ui modal component for Vue2 without Jquery but with pure Vue transition
This component only provide a frame and transitions for modal. Configurations of an inner modal is on your own, and it should be almost identical with usual way of semantic-ui. If your are not sure of how configure it, follow official examples
Set Up
- Global set up
Vue
- Local set up for each component
Usage
- Basic usage
Show Modal Title Any content for your modal yes
- When you want modal without transition, use
:transition="false"
inverted
attribute will be applied dimmer container- A transition of dimmer container is always
fade
- Possible class words for a inner modal are
bounce browser drop fade flash flip fly jiggle scale slide swing tada
vertical horizontal left right up down
basic mini tiny small medium big large
props
clickAway
: Whentrue
, modal will be turned off with outer click. default istrue
escEscape
: Whentrue
, modal will be turned off withesc
key down. default istrue
leaveDelay
: Dealy time of transition of dimmer class after transition of a modal start while leaving. default is 300msmodalClass
: Additional classes for an inner modal. Values should be an object like binded classtransition
: Turn on and off transition effect. default is true`