import { animate, style, transition, trigger } from '@angular/animations'; import { ChangeDetectionStrategy, Component } from '@angular/core'; @Component({ selector: 'se-error', exportAs: 'seError', animations: [ trigger('errorAnt', [ transition('void => *', [ style({ opacity: 0, transform: 'translateY(-5px)', }), animate( '0.3s cubic-bezier(0.645, 0.045, 0.355, 1)', style({ opacity: 1, transform: 'translateY(0)', }), ), ]), transition('* => void', [ style({ opacity: 1, transform: 'translateY(0)', }), animate( '0.3s cubic-bezier(0.645, 0.045, 0.355, 1)', style({ opacity: 0, transform: 'translateY(-5px)', }), ), ]), ]), ], template: `
`, host: { '[class.ant-form-explain]': 'true', }, changeDetection: ChangeDetectionStrategy.OnPush, }) export class SEErrorComponent {}