+
@@ -65,6 +65,7 @@ export default {
}
},
mounted () {
+ this.dialogShow = this.show
if (typeof window !== 'undefined') {
if (window.VUX_CONFIG && window.VUX_CONFIG.$layout === 'VIEW_BOX') {
this.layout = 'VIEW_BOX'
@@ -73,13 +74,16 @@ export default {
},
watch: {
show (val) {
- this.$emit('update:show', val)
- this.$emit(val ? 'on-show' : 'on-hide')
- if (val) {
- this.addModalClassName()
- } else {
- this.removeModalClassName()
- }
+ setTimeout(() => {
+ this.dialogShow = val
+ this.$emit('update:show', val)
+ this.$emit(val ? 'on-show' : 'on-hide')
+ if (val) {
+ this.addModalClassName()
+ } else {
+ this.removeModalClassName()
+ }
+ }, 200)
}
},
methods: {
@@ -101,7 +105,8 @@ export default {
},
data () {
return {
- layout: ''
+ layout: '',
+ dialogShow: ''
}
}
}