search
HomeWeb Front-endJS TutorialThe 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!

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
如何使用Vue和Element-UI实现图片懒加载功能如何使用Vue和Element-UI实现图片懒加载功能Jul 22, 2023 pm 04:05 PM

如何使用Vue和Element-UI实现图片懒加载功能懒加载(Lazyloading)是一种通过延迟加载图片的技术,可以有效提升页面加载速度,节省带宽并改善用户体验。在Vue项目中,我们可以借助Element-UI和一些插件来实现图片懒加载功能。本文将介绍如何使用Vue和Element-UI来实现图片懒加载,并附上相应的代码示例。一、安装必要的依赖在开始之

Vue实现文件上传的完整指南(axios、element-ui)Vue实现文件上传的完整指南(axios、element-ui)Jun 09, 2023 pm 04:12 PM

Vue实现文件上传的完整指南(axios、element-ui)在现代Web应用程序中,文件上传已经成为一项基本的功能。无论是上传头像、图片、文档或者视频,我们都需要一个可靠的方法来将文件从用户的计算机上传到服务器中。本文将为您提供一份详细的指南,介绍如何使用Vue、axios和element-ui来实现文件上传。什么是axiosaxios是一个基于prom

如何使用Vue和Element-UI实现日历和日期选择功能如何使用Vue和Element-UI实现日历和日期选择功能Jul 22, 2023 pm 05:30 PM

如何使用Vue和Element-UI实现日历和日期选择功能简介:在前端开发中,日历和日期选择功能是非常常见的需求之一。Vue和Element-UI是一对非常强大的开发工具,结合它们可以轻松实现日历和日期选择功能。本文将介绍如何使用Vue和Element-UI来创建一个简单的日历和日期选择功能,并提供代码示例,帮助读者了解实现的具体步骤和方法。准备工作:在开始

vue3怎么使用element-plus的dialogvue3怎么使用element-plus的dialogMay 11, 2023 pm 09:13 PM

优点摆脱繁琐的visible的命名,以及反复的重复dom。想法将dialog封装成一个函数就能唤起的组件。如下:addDialog({title:"测试",//弹窗名component:TestVue,//组件width:"400px",//弹窗大小props:{//传给组件的参数id:0},callBack:(data:any)=>{//当弹窗任务结束后,调用父页面的回掉函数。(比如我新增完成了需要刷新列表页面)console.log("

如何使用Vue和Element-UI实现消息通知功能如何使用Vue和Element-UI实现消息通知功能Jul 21, 2023 pm 12:40 PM

如何使用Vue和Element-UI实现消息通知功能随着前端技术的不断发展,越来越多的网站和应用程序需要实现消息通知功能,以便及时向用户展示重要的信息。在Vue开发中,结合Element-UI框架可以快速实现这一功能。本文将详细介绍如何使用Vue和Element-UI来实现消息通知功能,并提供相关的代码示例。一、准备工作在使用Vue和Element-UI实现

如何使用Vue和Element-UI实现多级联动下拉框功能如何使用Vue和Element-UI实现多级联动下拉框功能Jul 20, 2023 pm 11:43 PM

如何使用Vue和Element-UI实现多级联动下拉框功能引言:在Web开发中,多级联动下拉框是一种常见的交互方式。通过选择一个下拉框的选项,可以动态改变后续下拉框的内容。本文将介绍如何使用Vue和Element-UI来实现这一功能,并提供代码示例。一、准备工作首先,我们需要确保已经安装好Vue和Element-UI。可以通过以下命令进行安装:npmins

如何使用Vue和Element-UI实现拖拽排序功能如何使用Vue和Element-UI实现拖拽排序功能Jul 22, 2023 pm 04:12 PM

如何使用Vue和Element-UI实现拖拽排序功能前言:在Web开发中,拖拽排序功能是一项常见且实用的功能。本文将介绍如何使用Vue和Element-UI来实现拖拽排序功能,通过代码示例演示实现过程。一、环境搭建安装Node.js在开始之前,需要安装Node.js。可以访问https://nodejs.org/下载并安装对应操作系统的版本。安装VueCL

如何使用Vue和Element-UI实现数据的筛选和搜索功能如何使用Vue和Element-UI实现数据的筛选和搜索功能Jul 21, 2023 pm 08:40 PM

如何使用Vue和Element-UI实现数据的筛选和搜索功能在现代Web开发中,数据的筛选和搜索功能是非常常见和重要的需求。Vue和Element-UI是目前非常流行的前端框架,它们提供了很多强大的工具和组件,可以帮助我们轻松实现数据的筛选和搜索功能。本文将介绍如何使用Vue和Element-UI来实现这些功能,并提供详细的代码示例。首先,我们需要准备一个用

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft