实现海拔高度数据的更新

This commit is contained in:
yezhichao
2021-11-23 07:54:17 +08:00
parent bad94bd96e
commit ce6dc0b882
4 changed files with 15 additions and 20 deletions

View File

@@ -29,13 +29,15 @@ const option = reactive({
},
label: {
formatter: function({ value }) {
return value
return parseInt(value)
}
},
data: [60, 0.5, 0.4, 0.3]
}]
})
const update = console.log
const update = (alt: number) => {
option.series[0].data[0] = alt
}
defineExpose({ update })
</script>