mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 解决滚动排名列表预览之后数据无法变更的问题
This commit is contained in:
parent
a0ecfa7264
commit
954de6d58b
@ -164,17 +164,19 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
// 数据更新
|
// 数据更新(配置时触发)
|
||||||
watch(
|
watch(
|
||||||
() => props.chartConfig.option,
|
() => props.chartConfig.option.dataset,
|
||||||
() => {
|
() => {
|
||||||
console.log('数据更新', props.chartConfig.option)
|
|
||||||
onRestart()
|
onRestart()
|
||||||
},
|
}
|
||||||
{deep:true}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
useChartDataFetch(props.chartConfig, useChartEditStore)
|
// 数据callback处理(预览时触发)
|
||||||
|
useChartDataFetch(props.chartConfig, useChartEditStore, (resData: any[]) => {
|
||||||
|
props.chartConfig.option.dataset = resData
|
||||||
|
onRestart()
|
||||||
|
})
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
stopAnimation()
|
stopAnimation()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user