首页 > 编程 > JavaScript > 正文

element ui里dialog关闭后清除验证条件方法

2019-11-19 14:18:04
字体:
来源:转载
供稿:网友

关闭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>//jscancledialog(formRule){   this.$refs[formRule].resetFields(); }

以上这篇element ui里dialog关闭后清除验证条件方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持武林网。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表