@yoyoboot/l-52abp-ng
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.13.
29 lines (28 loc) • 1.29 kB
TypeScript
import { ChangeDetectorRef, Injector, OnChanges, SimpleChange, SimpleChanges } from '@angular/core';
import { FormControl } from '@angular/forms';
import { SampleComponentBaseDirective } from '../component-base';
import { IYoyoConfig, IErrorDef } from '../common';
import * as i0 from "@angular/core";
export declare class ValidationMessagesComponent extends SampleComponentBaseDirective implements OnChanges {
cdr: ChangeDetectorRef;
appConfig: IYoyoConfig;
private _formCtrlInited;
/** 表单控件 */
formCtrl: FormControl;
/** 自定义错误 */
customErrors: IErrorDef[];
/** 所有异常 */
errorSource: any;
/** 页面异常信息 */
viewErrors: string[];
constructor(injector: Injector, cdr: ChangeDetectorRef, appConfig: IYoyoConfig);
ngOnChanges(changes: {
[P in keyof this]?: SimpleChange;
} & SimpleChanges): void;
/** 更新所有定义的错误 */
private updateErrorSource;
/** 更新视图错误 */
private updateViewError;
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationMessagesComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationMessagesComponent, "validation-messages", never, { "formCtrl": "formCtrl"; "customErrors": "customErrors"; }, {}, never, never>;
}