refactor(仪表板): 新增图表时自动滚动到最终添加图表的位置

This commit is contained in:
wangjiahao 2024-11-20 19:08:49 +08:00
parent d010cac9a8
commit 0f5cb44e0e

View File

@ -98,7 +98,9 @@ const handleNewFromCanvasMain = newComponentInfo => {
adaptCurThemeCommonStyle(component)
nextTick(() => {
cyGridster.value.addItemBox(component) //
scrollTo(component.y)
nextTick(() => {
scrollTo(component.y)
})
})
snapshotStore.recordSnapshotCache('renderChart', component.id)
}