src/views/popup/Dialog.vue
@@ -1,15 +1,16 @@ <template> <el-dialog v-dialogDrag :title="title" :visible.sync="centerDialogVisible" width="30%" :modal="false" :close-on-click-modal="true" @close='closeDialog' center> <slot></slot> </el-dialog> </template> <script> // import '@/assets/css/map/map-popup.scss' export default { name: 'Dialog', @@ -27,6 +28,9 @@ methods: { show () { this.centerDialogVisible = true }, closeDialog () { this.$emit('closeDialog') } } }