Browse Source

tag标签保留边框

hella_online_20240911
yufei_wang 2 months ago
parent
commit
7abee1f28c
  1. 4
      src/components/DictTag/src/DictTag.vue

4
src/components/DictTag/src/DictTag.vue

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