fix:修复 char-bar 显示阈值的问题

This commit is contained in:
zhangyu
2022-04-02 17:30:49 +08:00
parent 029c1ef6d6
commit 16a1e9c8a6
3 changed files with 21 additions and 4 deletions

View File

@@ -410,7 +410,7 @@
</transition>
<!--thresholdConfig-->
<div class="form__sub-title">
<div class="form__sub-title" v-if="isThresholdConfig(chartConfig.type)">
<span>{{$t('dashboard.panel.chartForm.threshold')}}</span>
<el-switch
v-model="chartConfig.param.enable.thresholds"
@@ -419,7 +419,7 @@
></el-switch>
</div>
<transition name="el-zoom-in-top">
<el-row v-if="chartConfig.param.enable.thresholds">
<el-row v-if="chartConfig.param.enable.thresholds && isThresholdConfig(chartConfig.type)">
<el-form-item
v-for="(item,index) in chartConfig.param.thresholds"
:key="index"