2019-01-01 12:13:51 +08:00
|
|
|
|
// Project: https://github.com/vueComponent/ant-design-vue
|
|
|
|
|
// Definitions by: akki-jat <https://github.com/akki-jat>
|
|
|
|
|
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
|
|
|
|
|
|
|
|
|
import { AntdComponent } from './component';
|
|
|
|
|
|
|
|
|
|
export declare class Avatar extends AntdComponent {
|
|
|
|
|
/**
|
|
|
|
|
* the Icon type for an icon avatar, see Icon Component
|
|
|
|
|
* @type string
|
|
|
|
|
*/
|
|
|
|
|
icon: string;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* the shape of avatar
|
|
|
|
|
* @default 'circle'
|
|
|
|
|
* @type string
|
|
|
|
|
*/
|
2019-01-12 11:33:27 +08:00
|
|
|
|
shape: 'circle' | 'square';
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* the size of the avatar
|
|
|
|
|
* @default 'default'
|
|
|
|
|
* @type number | string
|
|
|
|
|
*/
|
2019-01-12 11:33:27 +08:00
|
|
|
|
size: 'small' | 'large' | 'default' | number;
|
2019-01-01 12:13:51 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* the address of the image for an image avatar
|
|
|
|
|
* @type string
|
|
|
|
|
*/
|
|
|
|
|
src: string;
|
|
|
|
|
|
2019-01-02 20:22:45 +08:00
|
|
|
|
/**
|
|
|
|
|
* a list of sources to use for different screen resolutions
|
|
|
|
|
* @type string
|
|
|
|
|
*/
|
|
|
|
|
srcSet: string;
|
|
|
|
|
|
2019-01-01 12:13:51 +08:00
|
|
|
|
/**
|
|
|
|
|
* This attribute defines the alternative text describing the image
|
|
|
|
|
* @type string
|
|
|
|
|
*/
|
|
|
|
|
alt: string;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* handler when img load error,return false to prevent default fallback behavior
|
|
|
|
|
* @type
|
|
|
|
|
*/
|
|
|
|
|
loadError: () => boolean;
|
|
|
|
|
}
|