avatar.component.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { ElementRef, EventEmitter, OnChanges } from '@angular/core';
  6. import { NzConfigKey } from 'ng-zorro-antd/core/config';
  7. import { NzShapeSCType, NzSizeLDSType } from 'ng-zorro-antd/core/types';
  8. import * as i0 from "@angular/core";
  9. export declare class NzAvatarComponent implements OnChanges {
  10. readonly _nzModuleName: NzConfigKey;
  11. nzShape: NzShapeSCType;
  12. nzSize: NzSizeLDSType | number;
  13. nzGap: number;
  14. nzText?: string;
  15. nzSrc?: string;
  16. nzSrcSet?: string;
  17. nzAlt?: string;
  18. nzIcon?: string;
  19. readonly nzError: EventEmitter<Event>;
  20. hasText: boolean;
  21. hasSrc: boolean;
  22. hasIcon: boolean;
  23. customSize: string | null;
  24. textEl?: ElementRef<HTMLSpanElement>;
  25. private el;
  26. private cdr;
  27. constructor();
  28. imgError(event: Event): void;
  29. ngOnChanges(): void;
  30. private calcStringSize;
  31. private setSizeStyle;
  32. static ɵfac: i0.ɵɵFactoryDeclaration<NzAvatarComponent, never>;
  33. static ɵcmp: i0.ɵɵComponentDeclaration<NzAvatarComponent, "nz-avatar", ["nzAvatar"], { "nzShape": { "alias": "nzShape"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; "nzGap": { "alias": "nzGap"; "required": false; }; "nzText": { "alias": "nzText"; "required": false; }; "nzSrc": { "alias": "nzSrc"; "required": false; }; "nzSrcSet": { "alias": "nzSrcSet"; "required": false; }; "nzAlt": { "alias": "nzAlt"; "required": false; }; "nzIcon": { "alias": "nzIcon"; "required": false; }; }, { "nzError": "nzError"; }, never, ["*"], true, never>;
  34. static ngAcceptInputType_nzGap: unknown;
  35. }