subweb/src/components/common/dialog/DialogLayOut.vue

34 lines
599 B
Vue
Raw Normal View History

2022-07-01 14:32:25 +08:00
<template>
2022-09-13 00:00:34 +08:00
<el-dialog v-model="isShow" top="30vh" width="40%">
2022-07-01 14:32:25 +08:00
<span>
<p style="text-align: center">{{ message }}</p>
</span>
</el-dialog>
</template>
<script>
import { ElDialog } from 'element-plus';
import 'element-plus/theme-chalk/index.css';
export default {
name: 'DialogLayOut',
components: {
ElDialog,
},
2022-09-13 00:00:34 +08:00
data() {
return {
isShow: false,
message: '',
};
},
created() {
this.emitter.on('DialogLayOut', (DialogLayOut) => {
this.isShow = true;
this.message = DialogLayOut;
});
2022-07-01 14:32:25 +08:00
},
};
</script>
<style scoped></style>