2017-03-09 18:31:47 +08:00
|
|
|
<template>
|
|
|
|
<div>
|
2018-06-25 21:11:42 +08:00
|
|
|
<Button type="primary" @click="modal1 = true">Display dialog box</Button>
|
|
|
|
<Modal
|
|
|
|
v-model="modal1"
|
|
|
|
title="Common Modal dialog box title"
|
|
|
|
@on-ok="ok"
|
|
|
|
@on-cancel="cancel">
|
|
|
|
<p>Content of dialog</p>
|
|
|
|
<p>Content of dialog</p>
|
|
|
|
<p>Content of dialog</p>
|
|
|
|
</Modal>
|
2017-03-09 18:31:47 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
2018-06-25 21:11:42 +08:00
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
modal1: false
|
|
|
|
}
|
|
|
|
},
|
2017-03-09 18:31:47 +08:00
|
|
|
methods: {
|
2018-06-25 21:11:42 +08:00
|
|
|
ok () {
|
|
|
|
this.$Message.info('Clicked ok');
|
|
|
|
},
|
|
|
|
cancel () {
|
|
|
|
this.$Message.info('Clicked cancel');
|
2017-03-09 18:31:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|