mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
fix(数据大屏): 修复跑马灯未跟随大屏刷新问题
This commit is contained in:
parent
38f134f7af
commit
f403d1a280
@ -258,11 +258,14 @@ export function refreshOtherComponent(dvId, busiFlag) {
|
|||||||
for (let i = 0; i < componentData.value.length; i++) {
|
for (let i = 0; i < componentData.value.length; i++) {
|
||||||
const component = componentData.value[i]
|
const component = componentData.value[i]
|
||||||
if (refreshIdList.includes(component.id) && canvasDataResultMap[component.id]) {
|
if (refreshIdList.includes(component.id) && canvasDataResultMap[component.id]) {
|
||||||
const { top, left, height, width } = componentData.value[i].style
|
const { top, left, height, width, fontSize } = componentData.value[i].style
|
||||||
canvasDataResultMap[component.id].style.top = top
|
canvasDataResultMap[component.id].style.top = top
|
||||||
canvasDataResultMap[component.id].style.left = left
|
canvasDataResultMap[component.id].style.left = left
|
||||||
canvasDataResultMap[component.id].style.height = height
|
canvasDataResultMap[component.id].style.height = height
|
||||||
canvasDataResultMap[component.id].style.width = width
|
canvasDataResultMap[component.id].style.width = width
|
||||||
|
if (fontSize) {
|
||||||
|
canvasDataResultMap[component.id].style.fontSize = fontSize
|
||||||
|
}
|
||||||
componentData.value[i] = canvasDataResultMap[component.id]
|
componentData.value[i] = canvasDataResultMap[component.id]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user