mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-21 13:34:13 +00:00
8a28eb1790
This reverts merge request !5
42 lines
1.1 KiB
Vue
42 lines
1.1 KiB
Vue
<template>
|
|
<div class="modal fade modalContainer" :class="this.effect" :data-type="this.type">
|
|
<div class="modal-dialog" v-bind:class="{'modal-lg': this.large}" >
|
|
<div class="modal-content-wrapper">
|
|
<div class="modal-content">
|
|
<div class="modal-body">
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
props: {
|
|
'type': {
|
|
type: String,
|
|
required: true
|
|
},
|
|
'large': {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
'effect': {
|
|
type: String,
|
|
default: "stick-up"
|
|
}
|
|
},
|
|
mounted() {
|
|
Event.$on('closeModal', () => {
|
|
this.closeModal();
|
|
});
|
|
},
|
|
methods: {
|
|
closeModal() {
|
|
$(this.$el).find('.modal').modal('hide');
|
|
}
|
|
}
|
|
}
|
|
</script>
|