index.vue
924 Bytes
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
38
39
40
41
<template>
<el-dialog class="entryDialog" :visible.sync="outerVisible" :center="center" :width="width"
:close-on-click-modal="false" :close-on-press-escape="false" @close="close">
<template slot="title">
<slot name="title"></slot>
</template>
<slot name="content"></slot>
<span slot="footer" class="dialog-footer">
<slot name="footer"></slot>
</span>
</el-dialog>
</template>
<script>
export default {
props: {
outerVisible: {
type: Boolean,
default: false,
},
center: {
type: Boolean,
default: false
},
width: {
type: String,
default: '500px'
}
},
data() {
return {}
},
methods: {
close() {
this.$emit('close')
}
}
}
</script>
<style lang="scss" scoped></style>