mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 修复旧版本没有legend配置导致报settting color错误
This commit is contained in:
parent
37676176e7
commit
27e2e2c68d
@ -391,8 +391,12 @@ const visualMap = computed(() => {
|
|||||||
// 监听legend color颜色改变type = scroll的颜色
|
// 监听legend color颜色改变type = scroll的颜色
|
||||||
watch(() => legend.value && legend.value.textStyle.color, (newVal) => {
|
watch(() => legend.value && legend.value.textStyle.color, (newVal) => {
|
||||||
if (legend.value && newVal) {
|
if (legend.value && newVal) {
|
||||||
legend.value.pageTextStyle.color = newVal
|
if (!legend.value.pageTextStyle) {
|
||||||
}
|
legend.value.pageTextStyle = { color: newVal }
|
||||||
|
} else {
|
||||||
|
legend.value.pageTextStyle.color = newVal
|
||||||
|
}
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true,
|
deep: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user