mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 08:57:10 +08:00
fix(system/dict): 修复字典项如果不选择颜色,就不会显示标签的问题
Closes #IC6N05
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
<a-tag v-else-if="dictItem.extra === 'warning'" color="orangered">{{ dictItem.label }}</a-tag>
|
||||
<a-tag v-else-if="dictItem.extra === 'error'" color="red">{{ dictItem.label }}</a-tag>
|
||||
<a-tag v-else-if="dictItem.extra === 'default'" color="gray">{{ dictItem.label }}</a-tag>
|
||||
<a-tag v-else :color="dictItem.extra">{{ dictItem.label }}</a-tag>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
@@ -39,6 +39,7 @@
|
||||
<a-tag v-else-if="record.color === 'warning'" color="orangered">{{ record.label }}</a-tag>
|
||||
<a-tag v-else-if="record.color === 'error'" color="red">{{ record.label }}</a-tag>
|
||||
<a-tag v-else-if="record.color === 'default'" color="gray">{{ record.label }}</a-tag>
|
||||
<span v-else>{{ record.label }}</span>
|
||||
</template>
|
||||
<template #status="{ record }">
|
||||
<GiCellStatus :status="record.status" />
|
||||
|
Reference in New Issue
Block a user