el-form是Element UI提供的表单组件,它支持表单验证功能。 表单验证通过rules属性传入验证规则,并使用validate方法进行验证。2. Element UI的表单验证方法 Element UI提供了多种表单验证的方法,包括对整个表单进行验证和对单个表单项进行验证。验证规则可以通过rules属性传入,每条规则可以包含多个验证项,如required、message...
<template><el-form:model="formData"status-icon:rules="rules"label-width='200px'label-position="right"ref="formData1"><el-form-itemlabel="订单号:"v-if="editorShow"class="el-form-pad"><templateslot-scope="scope"><el-buttontype="text"@click="onEdit(scope.row, scope.$index)">{{formDa...
<el-form-itemlabel="随机区间"prop="randowMin"v-if="infoData.type !== 4 && infoData.isRandow === 1"><divclass="input_item"><divclass="input_item_value input_item_value2"><el-inputv-model="infoData.randowMin"placeholder="请输入内容"></el-input></div><span>-</span><divclass=...