import { PropType } from 'vue' export interface IAvatar { src: string text: string icon: string } export const avatarGroupProps = { // 头像列表 lists: { type: Array as PropType, default() { return [] } }, // 头像类型 // square 带圆角正方形 circle 圆形 shape: { type: String as PropType<'circle' | 'square'>, default: 'circle' }, // 大小 // sm 小头像 lg 大头像 xl 加大头像 // 如果为其他则认为是直接设置大小 size: { type: [Number, String] as PropType, default: '' }, // 当设置为显示头像信息时, // 图片的裁剪模式 imgMode: { type: String, default: 'aspectFill' }, // 头像之间的遮挡比例 // 0.4 代表 40% gap: { type: Number, default: 0.4 } }