Merge pull request #13448 from dataease/pr@dev-v2@refactor_view-add
refactor(仪表板): 新增图表时自动滚动到最终添加图表的位置
This commit is contained in:
commit
4ce3980267
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user