在
<el-form-item label="原因" prop="reson" :rules="条件 == 值 ? [{required: true, message: '原因不能为空', trigger: 'blur'}] : [{required: false}]"> <div v-if="条件"> </div> <el-input type="textarea" :autosize="{ minRows: 3}" v-model="form.brReson" :placeholder="disabled?'':'请输入原因'" /> </el-form-item>
标签:vue,自定义,对于,elementui,校验,表单 From: https://www.cnblogs.com/wwwcf1982603555/p/16649200.html