Merge pull request #10427 from dataease/pr@dev-v2@fix_screen-drag

fix(数据大屏): 修复直接拖动左侧图层排序无法触发保存按钮事件问题 #10254
This commit is contained in:
王嘉豪 2024-06-21 10:27:50 +08:00 committed by GitHub
commit 11a0856636
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -160,6 +160,7 @@ const dragOnEnd = ({ oldIndex, newIndex }) => {
componentData.value.splice(comLength - 1 - oldIndex, 1)
componentData.value.splice(comLength - 1 - newIndex, 0, target)
dvMainStore.setCurComponent({ component: target, index: transformIndex(comLength - oldIndex) })
snapshotStore.recordSnapshotCache()
}
const getIconName = item => {