Files
lingxiao865 c5af079d8c first commit
2026-02-10 08:05:03 +08:00

45 lines
1.3 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 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: () => ({}),
},
};