taro-ui-vue3
Version:
Taro UI Rewritten in Vue 3.0
32 lines (30 loc) • 678 B
TypeScript
import AtComponent from './base'
export interface AtAvatarProps extends AtComponent{
/**
* 头像大小
* @default 'normal'
*/
size?: 'large' | 'normal' | 'small'
/**
* 头像是否圆形
* @default false
*/
circle?: boolean
/**
* 以文字形式展示头像
*/
text?: string
/**
* 头像图片地址
*/
image?: string
/**
* 参考微信[开放数据](https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html)
*
* **注意:** openData 仅支持 type 为 userAvatarUrl
*/
openData?: { type: 'userAvatarUrl' }
}
export interface AtAvatarState {
isWEAPP: boolean
}