From d0391dba3708d3f32bcd94e1881d1b598a0d9ef0 Mon Sep 17 00:00:00 2001 From: zhangshuaibao <15731629597@163.com> Date: 星期四, 15 四月 2021 17:21:10 +0800 Subject: [PATCH] 修改图表问题 --- src/views/popup/Dialog.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/popup/Dialog.vue b/src/views/popup/Dialog.vue index af997fd..516e523 100644 --- a/src/views/popup/Dialog.vue +++ b/src/views/popup/Dialog.vue @@ -1,15 +1,15 @@ <template> - <el-dialog + <el-dialog v-dialogDrag :title="title" :visible.sync="centerDialogVisible" - width="30%" :modal="false" + :close-on-click-modal="false" + @close='closeDialog' center> <slot></slot> </el-dialog> </template> <script> -// import '@/assets/css/map/map-popup.scss' export default { name: 'Dialog', @@ -27,6 +27,9 @@ methods: { show () { this.centerDialogVisible = true + }, + closeDialog () { + this.$emit('closeDialog') } } } -- Gitblit v1.8.0