SoFunction
Updated on 2025-04-05

Detailed explanation of the element ui dialog box el-dialog closing event

There is usually a requirement. After closing the pop-up box, you need to clear the data you fill in. At this time, you need to close the event.

<el-dialog title="title" :="bind" size="small" @close='closeDialog'>
</el-dialog>

Add @close='closeDialog' to the tag

Added to the motions

//Close the event of the pop-up boxcloseDialog(){
  = '';//Clear data},

The above detailed explanation of the el-dialog closing event of the element ui dialog box is all the content I share with you. I hope you can give you a reference and I hope you can support me more.