From 36599f6e7b3b4600ec4c188ba385b87baa43a820 Mon Sep 17 00:00:00 2001 From: LeoKu Date: Thu, 23 Jan 2025 16:52:34 +0800 Subject: [PATCH] fix: fix default wrapper shape in VueColorAvatar component to use Circle if not specified --- src/components/VueColorAvatar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VueColorAvatar.vue b/src/components/VueColorAvatar.vue index 2c35768..7db89fc 100644 --- a/src/components/VueColorAvatar.vue +++ b/src/components/VueColorAvatar.vue @@ -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('')