1
0
mirror of https://gitee.com/dromara/go-view.git synced 2025-04-06 03:58:04 +08:00

fix: 修复旧版本没有legend配置导致报settting color错误

Merge pull request  from h5coder/h5coder-fix
This commit is contained in:
奔跑的面条 2023-06-15 11:45:41 +00:00
parent c70d54c622
commit 5387a7ad90

@ -391,8 +391,12 @@ const visualMap = computed(() => {
// legend colortype = scroll
watch(() => legend.value && legend.value.textStyle.color, (newVal) => {
if (legend.value && newVal) {
if (!legend.value.pageTextStyle) {
legend.value.pageTextStyle = { color: newVal }
} else {
legend.value.pageTextStyle.color = newVal
}
}
}, {
immediate: true,
deep: true,