fix 修复字典el-tag警告

This commit is contained in:
LiuHao 2024-04-16 17:56:36 +08:00
parent 9967a72e24
commit 30f271359a
2 changed files with 10 additions and 2 deletions

View File

@ -15,7 +15,15 @@
:key="item.value + ''"
:disable-transitions="true"
:index="index"
:type="item.elTagType === 'primary' || item.elTagType === 'default' ? 'primary' : item.elTagType"
:type="
item.elTagType === 'primary' ||
item.elTagType === 'success' ||
item.elTagType === 'info' ||
item.elTagType === 'warning' ||
item.elTagType === 'danger'
? item.elTagType
: 'primary'
"
:class="item.elTagClass"
>
{{ item.label + ' ' }}

View File

@ -55,7 +55,7 @@
>
<el-tag
v-else
:type="scope.row.listClass === 'primary' || scope.row.listClass === 'default' ? '' : scope.row.listClass"
:type="scope.row.listClass === 'primary' || scope.row.listClass === 'default' ? 'primary' : scope.row.listClass"
:class="scope.row.cssClass"
>{{ scope.row.dictLabel }}</el-tag
>