element/types/avatar.d.ts
luckyCao 6f9ce3accb Avatar: Add avatar component (#16144)
* add avatar component

* 1. add test 2. add types 3. refine doc 4. add img attr

* add props in types and doc

* refine how image fit its container

* fix doc

* refine doc

* change default background color

* remote style demo from doc

* add theme

* add demo on theme preview and change var name
2019-06-24 16:37:17 +08:00

21 lines
285 B
TypeScript

import { ElementUIComponent } from './component'
/** Avatar Component */
export declare class ElAvatar extends ElementUIComponent {
icon: string;
size: string | number;
shape: string;
src: string;
error: () => false;
srcSet: string;
alt: string;
fit: string;
}