Home >Web Front-end >JS Tutorial >The verification condition implementation code is cleared after the dialog is closed in element-ui
This article mainly shares with you a method to clear the verification conditions after closing the dialog in element ui. It has a good reference value and I hope it will be helpful to everyone. Let’s follow the editor to take a look, I hope it can help everyone.
Close dialog trigger event
//vue <!--添加用户dialog begin--> <el-dialog> <el-form> <el-form-item> <el-col> <el-input></el-input> </el-col> </el-form-item> </el-form> <p> <el-button>取 消</el-button> </p> </el-dialog> //js cancledialog(formRule){ this.$refs[formRule].resetFields(); }
Related recommendations:
Easyui uses Dialog inline button layout
Detailed explanation of the use and shutdown of jQuery plug-in artDialog.js
jQuery UI tutorial on using dialog
The above is the detailed content of The verification condition implementation code is cleared after the dialog is closed in element-ui. For more information, please follow other related articles on the PHP Chinese website!