Files

45 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

2026-02-10 08:05:03 +08:00
/* eslint-disable */
/**
* PMC
* */
import type { TdAvatarGroupProps } from './type';
export default {
/** 图片之间的层叠关系,可选值:左侧图片在上和右侧图片在上 */
cascading: {
type: String,
default: 'left-up' as TdAvatarGroupProps['cascading'],
validator(val: TdAvatarGroupProps['cascading']): boolean {
if (!val) return true;
return ['left-up', 'right-up'].includes(val);
},
},
/** 头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5``...`, `更多` */
collapseAvatar: {
type: String,
},
/** 能够同时显示的最多头像数量 */
max: {
type: Number,
},
/** 形状。优先级低于 Avatar.shape */
shape: {
type: String,
validator(val: TdAvatarGroupProps['shape']): boolean {
if (!val) return true;
return ['circle', 'round'].includes(val);
},
},
/** 尺寸示例值small/medium/large/24px/38px 等。优先级低于 Avatar.size */
size: {
type: String,
default: '',
},
/** 点击头像折叠元素触发 */
onCollapsedItemClick: {
type: Function,
default: () => ({}),
},
};