Pre Merge pull request !4 from babylazsss/master

pull/4/MERGE
babylazsss 2023-04-24 01:11:25 +00:00 committed by Gitee
commit 417b9f442e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ export default defineComponent({
getDictObj(props.type, props.value.toString())
//
return (
<Tag color={dictData.value?.cssClass && isHexColor(dictData.value?.cssClass) ? dictData.value?.cssClass : ''}>
<Tag color={dictData.value?.cssClass && isHexColor(dictData.value?.cssClass) ? dictData.value?.cssClass : dictData.value?.colorType}>
{dictData.value?.label}
</Tag>
)