/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { ElementRef, Renderer } from '@angular/core'; import { AfterViewInit } from '@angular/core'; import { AvatarText } from './avatar.text'; /** * Avatar头像 * 用来代表用户或事物,支持图片、图标或字符展示。 */ export declare class Avatar implements AfterViewInit { private _renderer; private _elementRef; /** 样式前缀 */ prefixCls: string; /** 指定头像的形状; Shape of avatar, options:`circle`, `square` */ shape: 'circle' | 'square'; /** 设置头像的大小; Size of avatar, options:`large`, `small`, `default` */ size: 'large' | 'small' | 'default'; /** 图片类头像的资源地址; Src of image avatar */ src: string; /** 设置头像的图标类型,参考 `Icon` 组件; Type of the Icon to be used in avatar */ icon: string; /** 用户CSS样式 */ class: string; text: AvatarText; constructor(_renderer: Renderer, _elementRef: ElementRef); ngAfterViewInit(): void; readonly classes: string; /** * The underlying host native element */ getHostElement(): HTMLElement; getScale(): number; getTextNodeStyle(): any; }