<span class="text-danger"
      *ngIf="valForm?.controls[fieldName]?.hasError(errorCode) && (valForm?.controls[fieldName]?.dirty || valForm?.controls[fieldName]?.touched)">
  <span *ngIf="errorMsg">{{errorMsg}}</span>
  <span *ngIf="errorMsg === undefined">
    <span *ngIf="errorCode === 'min'">此项最小值为【{{valForm.controls[fieldName].errors['min'].min}}】</span>
    <span *ngIf="errorCode === 'max'">此项最大值为【{{valForm.controls[fieldName].errors['max'].max}}】</span>
    <span *ngIf="errorCode === 'minLength'">此项需要最少【{{valForm.controls[fieldName].errors['minLength'].minLength}}】个字符</span>
    <span *ngIf="errorCode === 'maxLength'">此项最长允许【{{valForm.controls[fieldName].errors['maxLength'].minLength}}】个字符</span>

  </span>
</span>


