Refactor data name
parent
a7e7493b21
commit
ba4121afae
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div ref="mask" :class="wrapperClass" v-if="isMaskVisible">
|
<div ref="mask" :class="wrapperClass" v-if="maskVisible">
|
||||||
<transition name="p-dialog" @before-enter="onBeforeEnter" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave" @appear="onAppear">
|
<transition name="p-dialog" @before-enter="onBeforeEnter" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave" @appear="onAppear">
|
||||||
<div ref="container" :class="containerClass" :style="containerStyle" v-if="visible" v-bind="$attrs" v-on="listeners" role="dialog" :aria-labelledby="ariaLabelledById" :aria-modal="modal">
|
<div ref="container" :class="containerClass" :style="containerStyle" v-if="visible" v-bind="$attrs" v-on="listeners" role="dialog" :aria-labelledby="ariaLabelledById" :aria-modal="modal">
|
||||||
<div class="p-dialog-titlebar" v-if="showHeader">
|
<div class="p-dialog-titlebar" v-if="showHeader">
|
||||||
|
@ -59,7 +59,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
dialogClasses: null,
|
dialogClasses: null,
|
||||||
dialogStyles: null,
|
dialogStyles: null,
|
||||||
isMaskVisible: this.visible
|
maskVisible: this.visible
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
documentKeydownListener: null,
|
documentKeydownListener: null,
|
||||||
|
@ -75,8 +75,8 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.visible && !this.isMaskVisible) {
|
if (this.visible && !this.maskVisible) {
|
||||||
this.isMaskVisible = true;
|
this.maskVisible = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
@ -104,7 +104,7 @@ export default {
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
onAfterLeave() {
|
onAfterLeave() {
|
||||||
this.isMaskVisible = false;
|
this.maskVisible = false;
|
||||||
this.disableModality();
|
this.disableModality();
|
||||||
},
|
},
|
||||||
onAppear() {
|
onAppear() {
|
||||||
|
|
Loading…
Reference in New Issue