fix(components): 修复按钮Tab自适应主题颜色

This commit is contained in:
Soybean
2021-10-14 18:21:17 +08:00
parent 8ba8a4feac
commit 3d1f41925d
9 changed files with 73 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<template>
<div
class="relative flex-center w-18px h-18px text-14px"
:class="[isPrimary ? 'text-primary' : 'text-gray-400']"
:style="{ color: isPrimary ? primaryColor : defaultColor }"
@mouseenter="setTrue"
@mouseleave="setFalse"
>
@ -19,6 +19,14 @@ defineProps({
isPrimary: {
type: Boolean,
default: false
},
primaryColor: {
type: String,
default: '#409EFF'
},
defaultColor: {
type: String,
default: '#9ca3af'
}
});