fix: fix default wrapper shape in VueColorAvatar component to use Circle if not specified

This commit is contained in:
LeoKu 2025-01-23 16:52:34 +08:00
parent ebfda8b1d1
commit 36599f6e7b

View File

@ -66,7 +66,7 @@ function getWrapperShapeClassName() {
}
function getWrapperShapeStyle() {
return SHAPE_STYLE_SET[avatarOption.value.wrapperShape]
return SHAPE_STYLE_SET[avatarOption.value.wrapperShape ?? WrapperShape.Circle]
}
const svgContent = ref('')