mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 14:41:29 +00:00
fix(BaTable):修复单元格 tag 渲染器值为 0 时不渲染的问题
This commit is contained in:
parent
16a1a5b84e
commit
7abe284445
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-tag v-if="cellValue != ''" :type="getTagType(cellValue, field.custom)" :effect="field.effect ?? 'light'" :size="field.size ?? 'default'">
|
||||
<el-tag v-if="cellValue !== ''" :type="getTagType(cellValue, field.custom)" :effect="field.effect ?? 'light'" :size="field.size ?? 'default'">
|
||||
{{ !isEmpty(field.replaceValue) ? field.replaceValue[cellValue] ?? cellValue : cellValue }}
|
||||
</el-tag>
|
||||
</div>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<template v-if="isArray(cellValue)">
|
||||
<template v-for="(tag, idx) in cellValue" :key="idx">
|
||||
<el-tag
|
||||
v-if="tag != ''"
|
||||
v-if="tag !== ''"
|
||||
class="m-4"
|
||||
:type="getTagType(tag, field.custom)"
|
||||
:effect="field.effect ?? 'light'"
|
||||
@ -15,7 +15,7 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<el-tag
|
||||
v-if="cellValue != ''"
|
||||
v-if="cellValue !== ''"
|
||||
:type="getTagType(cellValue, field.custom)"
|
||||
:effect="field.effect ?? 'light'"
|
||||
:size="field.size ?? 'default'"
|
||||
|
Loading…
Reference in New Issue
Block a user