完成d.ts定义的优化
This commit is contained in:
parent
6da055f33f
commit
414730dde3
61 changed files with 353 additions and 382 deletions
30
types/avatar.d.ts
vendored
Normal file
30
types/avatar.d.ts
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue