ppui
Version:
A high quality UI components Library with Vue.js
35 lines (33 loc) • 837 B
TypeScript
// Type definitions for ppui 3.3.1
// Project:https://gitee.com/hejc/ppui
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/ppui.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;
}