update the master branch to the latest
This commit is contained in:
parent
67d534df27
commit
23a0ba9831
611 changed files with 122648 additions and 0 deletions
34
types/avatar.d.ts
vendored
Normal file
34
types/avatar.d.ts
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
// Type definitions for iview 3.3.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export declare class Avatar extends Vue {
|
||||
/**
|
||||
* 指定头像的形状,可选值为 circle、square
|
||||
* @default circle
|
||||
*/
|
||||
shape?: 'circle' | 'square';
|
||||
/**
|
||||
* 设置头像的大小,可选值为 large、small、default
|
||||
* @default default
|
||||
*/
|
||||
size?: 'large'|'small'|'default';
|
||||
/**
|
||||
* 图片类头像的资源地址
|
||||
*/
|
||||
src?: string;
|
||||
/**
|
||||
* 设置头像的图标类型,参考 Icon 组件
|
||||
*/
|
||||
icon?: string;
|
||||
/**
|
||||
* 自定义图标
|
||||
*/
|
||||
'custom-icon'?: string;
|
||||
/**
|
||||
* 在设置 src 且图片加载不成功时触发
|
||||
*/
|
||||
$emit(eventName: 'on-error', event: Event): this;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue