• Avatar 头像
    • 使用指南
    • 用法
    • Avatar 参数

    Avatar 头像


    用于展示用户头像

    使用指南

    在 Taro 文件中引入组件

    :::demo

    1. import { AtAvatar } from 'taro-ui'

    :::

    用法

    :::demo

    1. <AtAvatar image='https://jdc.jd.com/img/200'></AtAvatar>
    2. <AtAvatar text='凹凸实验室'></AtAvatar>
    3. <AtAvatar circle image='https://jdc.jd.com/img/200'></AtAvatar>
    4. <AtAvatar circle text='凹凸实验室'></AtAvatar>

    :::

    Avatar 参数

    参数 说明 类型 可选值 默认值
    size 头像大小 String large, normal, small normal
    circle 头像是否圆形 Boolean - false
    image 头像图片地址 String - -
    text 以文字形式展示头像 String - -