Home  >  Article  >  Web Front-end  >  Regarding the dialog box el-dialog closing event in element ui (detailed tutorial)

Regarding the dialog box el-dialog closing event in element ui (detailed tutorial)

亚连
亚连Original
2018-06-04 15:08:488326browse

Below I will share with you a detailed explanation of the element ui dialog box el-dialog closing event. It has a good reference value and I hope it will be helpful to everyone.

Usually there is a demand. After closing the pop-up box, the filled-in data needs to be cleared. At this time, the event needs to be closed.

<el-dialog title="标题" :visible.sync="bind" size="small" @close=&#39;closeDialog&#39;>
</el-dialog>

Add @close='closeDialog'

# to the tag.

##Mothods Add

//关闭弹框的事件
closeDialog(){
 this.xxx = &#39;&#39;;//清空数据
},

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

js experience sharing JavaScript anti-debugging skills

Using node.js to package webpack

How to use external module in webpack

The above is the detailed content of Regarding the dialog box el-dialog closing event in element ui (detailed tutorial). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn