first commit
This commit is contained in:
44
uni_modules/tdesign-uniapp/components/avatar-group/props.ts
Normal file
44
uni_modules/tdesign-uniapp/components/avatar-group/props.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
/* 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: () => ({}),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user