Merge pull request #11895 from dataease/pr@dev-v2@fix_rich-text

fix(数据大屏): 富文本事件设置为刷新,预览时点击刷新后会改变富文本组件的位置问题
This commit is contained in:
王嘉豪 2024-09-02 11:39:22 +08:00 committed by GitHub
commit bbb4e29645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,6 +250,11 @@ export function refreshOtherComponent(dvId, busiFlag) {
for (let i = 0; i < componentData.value.length; i++) {
const component = componentData.value[i]
if (refreshIdList.includes(component.id) && canvasDataResultMap[component.id]) {
const { top, left, height, width } = componentData.value[i]
canvasDataResultMap[component.id].style.top = top
canvasDataResultMap[component.id].style.left = left
canvasDataResultMap[component.id].style.height = height
canvasDataResultMap[component.id].style.width = width
componentData.value[i] = canvasDataResultMap[component.id]
}
}