From 664284ce958fa0818a82b0266cc1f675e37c6789 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 2 Aug 2024 07:29:41 +0000 Subject: [PATCH] fix: profile banner fallback --- src/components/ProfileBanner.vue | 156 ++++++++++++++++++------------- 1 file changed, 93 insertions(+), 63 deletions(-) diff --git a/src/components/ProfileBanner.vue b/src/components/ProfileBanner.vue index aa4c3038..45780443 100644 --- a/src/components/ProfileBanner.vue +++ b/src/components/ProfileBanner.vue @@ -3,12 +3,12 @@ import { ref } from 'vue'; defineProps<{ icon?: string; + fallbackCover?: string; color?: string; img?: string | null; bgColor?: string; title?: string; caption?: string; - cover?: string | null; hideFade?: boolean; active?: boolean; @@ -22,49 +22,75 @@ defineEmits<{ (e: 'edit'): void; }>(); +const coverUrl = defineModel('coverUrl', { + required: false, + default: '', +}); + const showOverlay = ref(false);