ant-design-vue/types/avatar.d.ts
2019-01-12 12:46:29 +08:00

52 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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
*/
shape: 'circle' | 'square';
/**
* the size of the avatar
* @default 'default'
* @type number | string
*/
size: 'small' | 'large' | 'default' | number;
/**
* the address of the image for an image avatar
* @type string
*/
src: string;
/**
* a list of sources to use for different screen resolutions
* @type string
*/
srcSet: string;
/**
* This attribute defines the alternative text describing the image
* @type string
*/
alt: string;
/**
* handler when img load errorreturn false to prevent default fallback behavior
* @type
*/
loadError: () => boolean;
}