element-ui表单只验证单个字段 - 弹框关闭时清空表单项-表格跨分页多选,1. 表单只验证单个字段this.$refs['form'].validateField('mobile',valid=>{if(valid){//发送验证码}})2. 弹框关闭时清空表单项<el-dialog@close="onClose"><el-formref=...
<el-form ref="form"> </el-form> </el-dialog>//弹窗关闭时重置表单onClose() {this.$refs['form'].resetFields() } 3. 表格跨分页多选 <el-table row-key="id"> <el-table-column type="selection"reserve-selection></el-table-column> </el-table>...
<el-form ref="form"> </el-form> </el-dialog>//弹窗关闭时重置表单onClose() {this.$refs['form'].resetFields() } 3. 表格跨分页多选 <el-table row-key="id"> <el-table-column type="selection"reserve-selection></el-table-column> </el-table>...