Skip to content

Commit 8540548

Browse files
committed
feat(VPie): control avatar size with tooltip prop
1 parent 7190a85 commit 8540548

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vuetify/src/labs/VPie/VPie.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const makeVPieProps = propsFactory({
8181
type: [Boolean, Object] as PropType<boolean | {
8282
titleFormat?: TextTemplate
8383
subtitleFormat?: TextTemplate
84+
avatarSize?: number
8485
transition?: string | boolean | TransitionProps
8586
offset?: number
8687
}>,
@@ -262,7 +263,7 @@ export const VPie = genericComponent<VPieSlots>()({
262263

263264
const tooltipDefaults = {
264265
VAvatar: {
265-
size: 28,
266+
size: typeof props.tooltip === 'object' ? props.tooltip.avatarSize : 28,
266267
},
267268
}
268269

0 commit comments

Comments
 (0)