登录社区云,与社区用户共同成长
邀请您加入社区
vue动态实现form表单的必填项校验代码<el-form-item label="对方物料" prop="receiptMaterialId" :rules="form.receiptPaymentType === '01'||form.receiptPaymentType === '05' ? [{required: false}]:rules.receiptMaterialId">
vue动态实现form表单的必填项校验
<el-form-item label="对方物料" prop="receiptMaterialId" :rules="form.receiptPaymentType === '01'||form.receiptPaymentType === '05' ? [{required: false}]:rules.receiptMaterialId"> rules: { receiptMaterialId: [ {required: true, message: '对方物料不能为空', trigger: 'blur'} ] }
前往低代码交流专区
更多推荐
vue 表单验证
1、6位小写字母和数字必须包含两个字母rules: [{ required: true, message: "XXX不能为空", trigger: "blur" },{ max: 6, message: "最大长度为6位字符", trigger: "blur" },{pattern: /^(?=(?:[^a-z]*[a-z]){2})[a-z0-9]{6,6}$/, //不连续的两位字母// /^
echarts堆叠柱状图
Vue里echarts根据页面大小动态调整/自适应
扫一扫分享内容
所有评论(0)