|
|
@ -47,7 +47,7 @@ export default defineComponent({ |
|
|
|
if (dictDataList.length == 0) { |
|
|
|
if(dictData.value?.label !== '' && dictData.value?.label !== undefined){ |
|
|
|
return (<ElTag |
|
|
|
style={dictData.value?.cssClass=='none'?'background-color: transparent;border: none;':dictData.value?.cssClass ? 'color: #fff' : ''} |
|
|
|
style={dictData.value?.cssClass=='none'?'background-color: transparent;':dictData.value?.cssClass ? 'color: #fff' : ''} |
|
|
|
type={dictData.value?.colorType} |
|
|
|
color={ |
|
|
|
dictData.value?.cssClass && isHexColor(dictData.value?.cssClass) |
|
|
@ -65,7 +65,7 @@ export default defineComponent({ |
|
|
|
return ( |
|
|
|
dictDataList.map(item => { |
|
|
|
return <ElTag |
|
|
|
style={item?.cssClass=='none'?'background-color: transparent;border: none;':item?.cssClass ? 'color: #fff' : ''} |
|
|
|
style={item?.cssClass=='none'?'background-color: transparent;':item?.cssClass ? 'color: #fff' : ''} |
|
|
|
type={item?.colorType} |
|
|
|
color={ |
|
|
|
item?.cssClass && isHexColor(item?.cssClass) |
|
|
|