element ui里dialog关闭后清除验证条件方法
更新时间:2018年02月26日 10:35:14 作者:bloxed
下面小编就为大家分享一篇element ui里dialog关闭后清除验证条件方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
关闭dialog触发事件
//vue <!--添加用户dialog begin--> <el-dialog title="编辑用户" :visible.sync="dialogFormVisible" custom-class="editDialog" :close-on-click-modal="false" :before-close = "cleanContent" :show-close = "false" size='tiny'> <el-form :model="ruleForm" :rules="rules" ref="ruleForm"> <el-form-item label="账户名" prop="account" label-width="100px" > <el-col :span="20"> <el-input v-model="ruleForm.account" ></el-input> </el-col> </el-form-item> </el-form> <div slot="footer" class="dialog-footer"> <el-button @click="cancledialog('ruleForm')">取 消</el-button> </div> </el-dialog> //js cancledialog(formRule){ this.$refs[formRule].resetFields(); }
以上这篇element ui里dialog关闭后清除验证条件方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
相关文章
Vue为何弃用Ajax,选择Axios?ajax与axios的区别?
ajax技术实现了局部数据的刷新,axios实现了对ajax的封装;axios有的ajax都有,ajax有的axios不一定有。总结一句话就是axios是ajax,ajax不止axios。2023-01-01vue3中vite的@路径别名与path中resolve实例详解
这篇文章主要给大家介绍了关于vue3中vite的@路径别名与path中resolve的相关资料,文中通过实例代码介绍的非常详细,对大家学习或者使用vue具有一定的参考学习价值,需要的朋友可以参考下2023-02-02
最新评论