Merge pull request #13448 from dataease/pr@dev-v2@refactor_view-add

refactor(仪表板): 新增图表时自动滚动到最终添加图表的位置
This commit is contained in:
王嘉豪 2024-11-20 19:09:49 +08:00 committed by GitHub
commit 4ce3980267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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