From f4b012eaafabe51148dd3758f1a531a30e7bafe7 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 26 Sep 2023 09:39:51 +0800 Subject: [PATCH] fix: button bg color --- src/components/Button/src/BasicButton.vue | 5 +-- src/components/Button/src/props.ts | 6 +-- src/components/CountDown/src/CountButton.vue | 6 ++- .../CountDown/src/CountdownInput.vue | 2 +- src/views/base/login/ForgetPasswordForm.vue | 10 ++--- src/views/base/login/LoginForm.vue | 38 +++++++++---------- src/views/base/login/MobileForm.vue | 10 ++--- src/views/base/login/QrCodeForm.vue | 6 +-- src/views/base/login/RegisterForm.vue | 10 ++--- src/views/base/login/SSOForm.vue | 14 +++---- 10 files changed, 52 insertions(+), 55 deletions(-) diff --git a/src/components/Button/src/BasicButton.vue b/src/components/Button/src/BasicButton.vue index bc0d535..c3490fd 100644 --- a/src/components/Button/src/BasicButton.vue +++ b/src/components/Button/src/BasicButton.vue @@ -11,10 +11,9 @@ const props = defineProps(buttonProps) // get component class const attrs = useAttrs({ excludeDefaultKeys: false }) const getButtonClass = computed(() => { - const { color, disabled } = props + const { disabled } = props return [ { - [`ant-btn-${color}`]: !!color, 'is-disabled': disabled, }, ] @@ -25,7 +24,7 @@ const getBindValue = computed(() => ({ ...unref(attrs), ...props }))