@@ -1,6 +1,6 @@
<template>
<div>
- <el-dialog v-dialogDrag v-bind="$attrs" v-on="$listeners" @close="handleClose" :close-on-click-modal="false" class="centerDialog">
+ <el-dialog v-dialogDrag v-bind="$attrs" :title="title" v-on="$listeners" @close="handleClose" :close-on-click-modal="false" class="centerDialog">
<slot></slot>
<slot name="footer" class="dialog-footer"></slot>
</el-dialog>
@@ -13,7 +13,12 @@ export default {
data() {
return {};
},
-
+ props:{
+ title: {
+ type: String,
+ default: "提示"
+ }
+ },
mounted() {},
methods: {