forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
avatar.d.ts
51 lines (43 loc) · 1.08 KB
/
avatar.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// 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 error,return false to prevent default fallback behavior
* @type
*/
loadError: () => boolean;
}