EAvatarGroup 头像组
示例与代码
头像组、折叠与悬停预览
属性
属性说明取值与默认值
avatarsvar组内头像对象数组。
字段:
source, text, fillMode
iconSource, backgroundColor, size
shape
默认值
[]collapseAvatarsbool折叠超出数量上限的头像。
默认值
falsecollapseAvatarsTooltipbool为折叠头像显示提示。
默认值
falsecontentalias内容插槽;直接在组件内部声明 QML 子对象。
默认值
别名:avatarRow.dataenabledbool是否允许交互;false 时控件禁用。
默认值
trueheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeightmaxCollapseAvatarsint折叠时最多直接显示的头像数量。
默认值
3overlapint相邻头像的重叠距离,单位为像素。
默认值
8shapestring头像形状。
circle
square
默认值
"circle"sizeint头像直径或边长,单位为像素。
默认值
40visiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidthcollapsedCountint只读折叠隐藏的头像数量。
默认值
由运行时计算countint只读骨架实例数量或当前项目数量,具体含义由组件决定。
默认值
由运行时计算方法
签名作用
openCollapsed()展开折叠的头像集合。