vue-flexible-modal
a flexible modal component by vue.js
Installation
First, install vue-flexible-modal
from npm:
$ npm install vue-flexible-modal
Then import it:
;
Usage
Please view the detail code in example folder
Click Show Modal Name:
API
Option | Description | Value | Default |
---|---|---|---|
title | Modal Title | String | 'Modal' |
okText | ok button text | String | 'ok' |
cancelText | cancel button text | String | 'cancel' |
visible | control the modal show or hide(primary key) | Boolean | 'false' |
transition | modal show or hide with your custom animation/transition | String | 'bounce' |
verify | if need verify form data when click ok button | Boolean | 'false' |
bgClick | the switch for hiding modal by clicking background | Boolean | 'true' |
onlyBody | hide the modal head and foot,only show body content | Boolean | 'false' |
bgStyle | custom set background style | Object | {} |
contentStyle | custom set content style | Object | {} |
bodyStyle | custom set body style | Object | {} |
modalId | modalId | String | '' |
topGap | custom set body top style | Number | 0 |
Usage Example
simple
Slot Area,write your code in here Name:
Use api params to configure a MessageBox
Welcome to use vue-flexible-modal ok