| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/bitnami/htdocs/app/node_modules/vuetify-dialog/src/components/ |
Upload File : |
<template>
<v-dialog
ref="vdialog"
eager
content-class="vuedl-layout"
v-model="isActive"
:fullscreen="fullscreen"
:max-width="getWidth"
:persistent="persistent || loading"
:scrollable="scrollable"
:transition="transition"
:hide-overlay="hideOverlay"
:retain-focus="false"
@keydown.esc="dismiss"
>
<div class="v-dialog-wrapper">
<div
v-if="showClose && !persistent && !loading"
class="vuedl-layout__closeBtn"
@click.stop="close"
>
×
</div>
<dialog-child
ref="dialog"
v-bind="$options.propsData"
/>
</div>
</v-dialog>
</template>
<script>
import { VDialog } from 'vuetify/lib'
export default {
components: {
VDialog
},
props: {
fullscreen: Boolean,
scrollable: Boolean,
hideOverlay: Boolean,
transition: {
type: [String, Boolean],
default: 'dialog-transition'
},
showClose: {
type: Boolean,
default: () => true
}
},
methods: {
_destroy () {
// Allow to draw transition, cause vuetify doesn't have onClose method
setTimeout(() => {
this.$destroy()
}, 1000)
// this.$refs.vdialog.$refs.dialog.addEventListener('transitionend', this.onTransitionEnd)
}
// onTransitionEnd (event) {
// if (['opacity', 'z-index'].indexOf(event.propertyName) >= 0) {
// this.$refs.vdialog.$refs.dialog.removeEventListener('transitionend', this.onTransitionEnd)
// this.$destroy()
// }
// }
}
}
</script>
<style>
.vuedl-layout {
position: relative;
}
.vuedl-layout__closeBtn {
position: absolute;
top: 16px;
width: 16px;
height: 16px;
font-family: -webkit-pictograph;
font-size: 30px;
opacity: 0.5;
z-index: 1000;
cursor: pointer;
line-height: 0.5;
}
.v-application--is-ltr .vuedl-layout__closeBtn {
right: 14px;
}
.v-application--is-rtl .vuedl-layout__closeBtn {
left: 14px;
}
.vuedl-layout__closeBtn:hover {
opacity: 1;
}
</style>