mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 20:28:45 +08:00 
			
		
		
		
	🎈 perf:el-tag传入空字符串type导致警告
This commit is contained in:
		@@ -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}
 | 
				
			||||||
                >
 | 
					                >
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user