1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| <template>
| <el-dialog
| :title="title"
| :visible.sync="centerDialogVisible"
| width="30%"
| :modal="false"
| center>
| <slot></slot>
| </el-dialog>
| </template>
| <script>
| // import '@/assets/css/map/map-popup.scss'
|
| export default {
| name: 'Dialog',
| props: {
| title: {
| type: String,
| default: '标题'
| }
| },
| data () {
| return {
| centerDialogVisible: false
| }
| },
| methods: {
| show () {
| this.centerDialogVisible = true
| }
| }
| }
|
| </script>
| <style lang="less">
|
| </style>
|
|