|
@@ -1,7 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<div id="e-dialog">
|
|
<div id="e-dialog">
|
|
- <el-dialog :title="dialog.title" :visible.sync="dialog.show" :width="width" :before-close="toClose" :close-on-click-modal="false" :append-to-body="true">
|
|
|
|
- <slot name="info"></slot>
|
|
|
|
|
|
+ <el-dialog :title="dialog.title" :visible.sync="dialog.show" :width="width" :before-close="toClose"
|
|
|
|
+ :close-on-click-modal="false" :append-to-body="true">
|
|
|
|
+ <slot>
|
|
|
|
+ <slot name="info"></slot>
|
|
|
|
+ </slot>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -11,14 +14,14 @@ import { mapState, createNamespacedHelpers } from 'vuex';
|
|
export default {
|
|
export default {
|
|
name: 'e-dialog',
|
|
name: 'e-dialog',
|
|
props: {
|
|
props: {
|
|
- dialog: { type: Object, default: () => {} },
|
|
|
|
|
|
+ dialog: { type: Object, default: () => { } },
|
|
width: { type: String, default: '50%' },
|
|
width: { type: String, default: '50%' },
|
|
},
|
|
},
|
|
components: {},
|
|
components: {},
|
|
data: function () {
|
|
data: function () {
|
|
return {};
|
|
return {};
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
|
|
+ created() { },
|
|
methods: {
|
|
methods: {
|
|
toClose() {
|
|
toClose() {
|
|
this.$emit('toClose');
|
|
this.$emit('toClose');
|
|
@@ -34,7 +37,7 @@ export default {
|
|
test: {
|
|
test: {
|
|
deep: true,
|
|
deep: true,
|
|
immediate: true,
|
|
immediate: true,
|
|
- handler(val) {},
|
|
|
|
|
|
+ handler(val) { },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|