必填项不带星号
form 标签中有 :rules = “rules”
表单项中有 prop
校验规则:{validator: validateCreditCode, trigger: ‘blur’}
把 required: true 去掉即可
拓展:(样式覆盖)
/deep/ .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before { | |
content: ' '; | |
width: 0px; | |
margin-right: 0px; | |
} |