Browse Source

tag多个显示不下的颜色

hella_online_20241107
yufei_wang 4 weeks ago
parent
commit
1deef31cb0
  1. 2
      src/components/DictTag/src/DictTag.vue

2
src/components/DictTag/src/DictTag.vue

@ -65,7 +65,7 @@ export default defineComponent({
return ( return (
dictDataList.map(item => { dictDataList.map(item => {
return <ElTag return <ElTag
style={item?.cssClass=='none'?'background-color: transparent;':item?.cssClass ? 'color: #fff' : ''} style={item?.cssClass=='none'?'background-color: transparent;':item?.cssClass=='purple_type'?'background-color: #f7ebf9;border-color: #ecd5ec;color: #e348e3;':item?.cssClass ? 'color: #fff' : ''}
type={item?.colorType} type={item?.colorType}
color={ color={
item?.cssClass && isHexColor(item?.cssClass) item?.cssClass && isHexColor(item?.cssClass)

Loading…
Cancel
Save