fix: Ecarts rendering error (#4009)
parent
2de5b1ecf0
commit
6ddad88357
|
|
@ -12,7 +12,7 @@ const chartsRef = ref()
|
||||||
|
|
||||||
const style = ref({
|
const style = ref({
|
||||||
height: '220px',
|
height: '220px',
|
||||||
width: '100%'
|
width: '100%',
|
||||||
})
|
})
|
||||||
|
|
||||||
function initChart() {
|
function initChart() {
|
||||||
|
|
@ -44,7 +44,7 @@ function evalParseOption(option_json: any) {
|
||||||
if (option_json.style) {
|
if (option_json.style) {
|
||||||
style.value = option_json.style
|
style.value = option_json.style
|
||||||
}
|
}
|
||||||
const option = {}
|
let option = {}
|
||||||
tmp.value = echarts
|
tmp.value = echarts
|
||||||
eval(option_json.option)
|
eval(option_json.option)
|
||||||
return option
|
return option
|
||||||
|
|
@ -62,7 +62,7 @@ watch(
|
||||||
initChart()
|
initChart()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue