Skip to content

Commit 5a21c0e

Browse files
author
preschool
committed
🎈 perf:el-tag传入空字符串type导致警告
1 parent 1a4c717 commit 5a21c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DictTag/src/DictTag.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default defineComponent({
7272
// 添加标签的文字颜色为白色,解决自定义背景颜色时标签文字看不清的问题
7373
<ElTag
7474
style={dict?.cssClass ? 'color: #fff' : ''}
75-
type={dict?.colorType}
75+
type={dict?.colorType || null}
7676
color={dict?.cssClass && isHexColor(dict?.cssClass) ? dict?.cssClass : ''}
7777
disableTransitions={true}
7878
>

0 commit comments

Comments
 (0)