mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
Merge pull request #11895 from dataease/pr@dev-v2@fix_rich-text
fix(数据大屏): 富文本事件设置为刷新,预览时点击刷新后会改变富文本组件的位置问题
This commit is contained in:
@@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user