实现海拔高度数据的更新
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user