element-ui关闭dialog触发的事件
<el-dialog title="标题" :visible.sync="bind" size="small" @close='closeDialog'></el-dialog>
在标签中加入@close='closeDialog'
methods中加入
//关闭弹框的事件 closeDialog(){ this.xxx = '';//清空数据 }
Be good all the time
<el-dialog title="标题" :visible.sync="bind" size="small" @close='closeDialog'></el-dialog>
在标签中加入@close='closeDialog'
methods中加入
//关闭弹框的事件 closeDialog(){ this.xxx = '';//清空数据 }