简介:不使用el-form仅仅单独给el-input设置表单校验 <template><div><el-inputv-model="inputValue":class="{ 'is-invalid': isInputInvalid }"placeholder="请输入内容"@blur="validateInput"></el-input><span v-if="isInputInvalid" class="error-message">{{ inputErrorMessage }}</span><el-button ...
最终的组件布局如下 <el-form ref="formRef":model="ruleForm"label-width="120px"class="demo-dynamic":rules="rules"><el-table:data="ruleForm.tableData"borderstyle="width: 100%;margin: 0 auto;"@cell-click="editRow"><el-table-columnlabel="序号"align="center"width="100"><template#default...