mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 12:03:05 +08:00
refactor(仪表板): 新增图表时自动滚动到最终添加图表的位置
This commit is contained in:
parent
d010cac9a8
commit
0f5cb44e0e
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user