2019-06-24 00:29:14 +02:00
|
|
|
<template>
|
|
|
|
<div class="modal modal-otp" v-bind:class="{ 'is-active': isActive }">
|
2019-07-02 00:48:48 +02:00
|
|
|
<div class="modal-background" @click.stop="closeModal"></div>
|
2019-06-24 00:29:14 +02:00
|
|
|
<div class="modal-content">
|
2019-12-21 23:25:19 +01:00
|
|
|
<section class="section">
|
|
|
|
<div class="columns is-centered">
|
|
|
|
<div class="column is-three-quarters">
|
|
|
|
<div class="box has-text-centered has-background-black-ter ">
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2019-06-24 00:29:14 +02:00
|
|
|
</div>
|
2019-07-02 00:48:48 +02:00
|
|
|
<button class="modal-close is-large" aria-label="close" @click.stop="closeModal"></button>
|
2019-06-24 00:29:14 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'Modal',
|
|
|
|
props: {
|
|
|
|
value: Boolean,
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
isActive: {
|
|
|
|
get () {
|
|
|
|
return this.value
|
|
|
|
},
|
|
|
|
set (value) {
|
|
|
|
this.$emit('input', value)
|
|
|
|
}
|
|
|
|
}
|
2019-07-02 00:48:48 +02:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
closeModal: function(event) {
|
|
|
|
if (event) {
|
|
|
|
this.isActive = false
|
|
|
|
this.$parent.$emit('modalClose')
|
|
|
|
}
|
|
|
|
}
|
2019-06-24 00:29:14 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|