import Bootstrap.css
<link href="/path/to/bootstrap.css"></link>Simple options:
<!--text content-->
<modal title="Modal Title" v-modal="show" @ok="ok" @cancel="cancel">
Modal Content
</modal>
<!--custom content-->
<modal v-modal="show" @ok="ok" @cancel="cancel">
<div>Modal Body</div>
<div slot="header">Modal Header</div>
<div slot="footer">Modal Footer</div>
</modal>props: {
value: {
type: Boolean,
'default': false,
},
title: {
type: String,
'default': ''
},
small: {
type: Boolean,
'default': false
},
large: {
type: Boolean,
'default': false
},
closeByBackdrop: {
type: Boolean,
'default': true
},
showCloseButton: {
type: Boolean,
'default': true,
},
showCancelButton: {
type: Boolean,
'default': true,
},
okText: {
type: String,
'default': 'OK'
},
cancelText: {
type: String,
'default': 'Cancel'
},
okClass: {
type: String,
'default': 'btn btn-success'
},
cancelClass: {
type: String,
'default': 'btn btn-danger'
},
closeWhenOk: {
type: Boolean,
'default': false
},
showHeader: {
type: Boolean,
'default': true,
},
showFooter: {
type: Boolean,
'default': true,
},
}shownOn finishing the entrance animationhiddenOn finishing exit animationokOn ok button presscancelOn cancel button press
MIT