update Yi.RuoYi.Vue3/src/components/DictTag/index.vue.

修复EL-tag组件误传值导致的vue warn

Signed-off-by: tyjctl <419999127@qq.com>
This commit is contained in:
tyjctl
2024-06-14 10:08:41 +00:00
committed by Gitee
parent 5b109e91d1
commit 1c5be59105

View File

@@ -3,7 +3,7 @@
<template v-for="(item, index) in options">
<template v-if="values.includes(item.value)">
<span
v-if="item.elTagType == 'default' || item.elTagType == ''"
v-if="item.elTagType == 'default' || item.elTagType == ''|| item.elTagType == null"
:key="item.value"
:index="index"
:class="item.elTagClass"
@@ -13,7 +13,7 @@
:disable-transitions="true"
:key="item.value + ''"
:index="index"
:type="item.elTagType === 'primary' ? '' : item.elTagType"
:type="item.elTagType"
:class="item.elTagClass"
>{{ item.label }}</el-tag>
</template>