vc-dialog

Install

npm install vc-dialog --save
//global varibale vcdialog
<script src='../dist/vc-dialog.js'></script>

Usage

props

okText

custom the ok dialog text.

cancelText

custom the cancel dialog text.

visiable

control the visiable of dialog.

onOk | optional

the callback for onOk.

onCancel | optional

the callback of onCancel

example

import Vue from 'vue'
import {
vcdialog
} from '../dist/vc-dialog.js'
new Vue({
el: '#app',
data () {
return {
isShow: true,
okText: 'ok',
cancelText: 'cancel'
}
},
components: {
vcdialog
},
methods: {
onOk () {
},
onCancel () {
}
},
ready () {
}
})
<vc-dialog
:visible='isShow'
:okText='okText'
:cancelText='cancelText'
:onOk='onOk'
:onCancel='onCancel'>
<div class="your-html">
</div>
</vc-dialog>