Commit 5a21c0e8 by preschool

🎈 perf:el-tag传入空字符串type导致警告

parent 1a4c7175
...@@ -72,7 +72,7 @@ export default defineComponent({ ...@@ -72,7 +72,7 @@ export default defineComponent({
// 添加标签的文字颜色为白色,解决自定义背景颜色时标签文字看不清的问题 // 添加标签的文字颜色为白色,解决自定义背景颜色时标签文字看不清的问题
<ElTag <ElTag
style={dict?.cssClass ? 'color: #fff' : ''} style={dict?.cssClass ? 'color: #fff' : ''}
type={dict?.colorType} type={dict?.colorType || null}
color={dict?.cssClass && isHexColor(dict?.cssClass) ? dict?.cssClass : ''} color={dict?.cssClass && isHexColor(dict?.cssClass) ? dict?.cssClass : ''}
disableTransitions={true} disableTransitions={true}
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment