From 5d9ca8ac629adeb3d9c5fbf908502e597da7a168 Mon Sep 17 00:00:00 2001 From: ddup <105873086+clddup@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:32:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E4=B8=AD=E7=BB=99=E6=8C=89=E9=92=AE=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?link=E5=B1=9E=E6=80=A7=E5=90=8E=EF=BC=8C=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E5=8F=98=E6=88=90=E7=99=BD=E8=89=B2=20#490?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Button/src/Button.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Button/src/Button.vue b/src/components/Button/src/Button.vue index e5af71b..c20028c 100644 --- a/src/components/Button/src/Button.vue +++ b/src/components/Button/src/Button.vue @@ -90,16 +90,16 @@ const props = defineProps({ const emits = defineEmits(['click']) const color = computed(() => { - const { type } = props - if (type === 'primary') { + const { type, link } = props + if (type === 'primary' && !link) { return unref(getTheme).elColorPrimary } return '' }) const style = computed(() => { - const { type } = props - if (type === 'primary') { + const { type, link } = props + if (type === 'primary' && !link) { return '--el-button-text-color: #fff; --el-button-hover-text-color: #fff' } return ''