mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
Merge pull request #13448 from dataease/pr@dev-v2@refactor_view-add
refactor(仪表板): 新增图表时自动滚动到最终添加图表的位置
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user