We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4c717 commit 5a21c0eCopy full SHA for 5a21c0e
src/components/DictTag/src/DictTag.vue
@@ -72,7 +72,7 @@ export default defineComponent({
72
// 添加标签的文字颜色为白色,解决自定义背景颜色时标签文字看不清的问题
73
<ElTag
74
style={dict?.cssClass ? 'color: #fff' : ''}
75
- type={dict?.colorType}
+ type={dict?.colorType || null}
76
color={dict?.cssClass && isHexColor(dict?.cssClass) ? dict?.cssClass : ''}
77
disableTransitions={true}
78
>
0 commit comments