fix: 增加tag组件兼容性; 调整steps样式

This commit is contained in:
wenhua
2024-07-14 18:18:32 +08:00
parent f1237de72a
commit c6222e0528
3 changed files with 9 additions and 2 deletions

View File

@@ -1,9 +1,9 @@
<template>
<div class="tag-style">
<el-tag v-if="tagConfig.isType" :type="tagConfig.listClass" :effect="tagConfig.theme || 'plain'">
<el-tag v-if="tagConfig?.isType" :type="tagConfig?.listClass" :effect="tagConfig?.theme || 'plain'">
{{ filterDict(cacheStore.getDict(dictType), value) }}
</el-tag>
<el-tag v-else :color="tagConfig.listClass" :effect="tagConfig.theme || 'plain'"
<el-tag v-else :color="tagConfig?.listClass" :effect="tagConfig?.theme || 'plain'"
:class="{'null-tag':filterDict(cacheStore.getDict(dictType), value)===undefined}">
{{ filterDict(cacheStore.getDict(dictType), value) }}
</el-tag>