From f33ce19f3aed2a0ae6a9d6b03a49fc192aef98f1 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 20 Aug 2023 18:48:56 +0800 Subject: [PATCH] chore: adjust `Button` prop --- src/components/Button.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Button.vue b/src/components/Button.vue index 0549ff2d..fea14801 100644 --- a/src/components/Button.vue +++ b/src/components/Button.vue @@ -9,7 +9,7 @@ interface Props { | 'error' size?: 'small' | 'medium' | 'large' /** @description enable frosted glass effect */ - frosted?: boolean + frostedGlass?: boolean secondary?: boolean color?: string textColor?: string @@ -21,7 +21,7 @@ const props = defineProps() const emit = defineEmits(['click']) -const handleClick = (evt: MouseEvent) => { +function handleClick(evt: MouseEvent) { emit('click', evt) } @@ -32,7 +32,7 @@ const handleClick = (evt: MouseEvent) => { :class="` b-button--type-${type ?? 'default'} b-button--size-${size ?? 'medium'} - ${frosted ? 'frosted-glass' : ''} + ${frostedGlass ? 'frosted-glass' : ''} ${secondary ? 'b-button--secondary' : ''} ${strong ? 'b-button--strong' : ''} ${color || textColor ? 'b-button--custom-color' : ''}