@beisen-phoenix/mobile-avatar

用于展示头像

Usage no npm install needed!

<script type="module">
  import beisenPhoenixMobileAvatar from 'https://cdn.skypack.dev/@beisen-phoenix/mobile-avatar';
</script>

README

Avatar头像组件

用于展示头像

API

Avatar props

name description type default
size superLarge , large , original , medium , small , superSmall string original
src 头像图片地址 string ''
bgColor 自定义头像背景颜色 string 默认头像颜色为以下10种随机展示 #f0c75a,#8dc8ea,#7eb6e0,#a1a5ee,#c4a1ee,#b9cc4f,#96bf65,#f79c6f,#79c7b7,#79c7b7
children 头像文字 String ''
className 最外层自定义className String