fix(图表): 修复富文本条件样式没有实时刷新问题

This commit is contained in:
wangjiahao
2024-12-23 14:15:54 +08:00
committed by 王嘉豪
parent 899d206c10
commit dd6556f95f
2 changed files with 6 additions and 2 deletions

View File

@@ -461,7 +461,11 @@ init()
</el-select>
</el-form-item>
</el-col>
<el-col :span="2" v-if="isNotEmptyAndNull(item)" style="padding-left: 0 !important">
<el-col
:span="2"
v-if="isNotEmptyAndNull(item) && chart.type !== 'rich-text'"
style="padding-left: 0 !important"
>
<el-form-item class="form-item">
<el-select
v-model="item.type"

View File

@@ -1177,7 +1177,7 @@ const onThresholdChange = val => {
}
return false
})
if (type) {
if (type || view.value.type === 'rich-text') {
calcData(view.value)
} else {
renderChart(view.value)