<el-dialog
:visible.sync="open"
title="我是题目"
:destory-on-close="true"
:close-on-click-modal="false"
:show-close="true"
:before-close="closeEdit"
append-to-body
width="60%"
>
//放内容
</el-dialog>
解释:show-close-- 是否显示右上角关闭按钮,默认为true,所以可以不写。
before-close --
关闭前的回调,会暂停 Dialog 的关闭 | function(done),done 用于关闭 Dialog |
:close-on-click-modal="false" ,点击空白处是否关闭窗口,默认为true,一般要写。
fullscreen : 全局
:destory-on-close="true" :原义为:关闭时销毁 Dialog 中的元素,默认false
append-to-body :Dialog 自身是否插入至 body 元素上。嵌套的 Dialog 必须指定该属性并赋值为 true 慎用