forked from github/dataease
refactor(仪表板): 修复编辑时追加组件到仪表板底部但水印覆盖位置没有追加问题
This commit is contained in:
parent
5c3980a91b
commit
b9fbc184b8
@ -245,6 +245,12 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const watermarkUpdate = () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
initWatermark()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const initWatermark = (waterDomId = 'editor-canvas-main') => {
|
const initWatermark = (waterDomId = 'editor-canvas-main') => {
|
||||||
try {
|
try {
|
||||||
if (
|
if (
|
||||||
@ -1459,7 +1465,8 @@ defineExpose({
|
|||||||
getMoveItem,
|
getMoveItem,
|
||||||
handleMouseUp,
|
handleMouseUp,
|
||||||
handleMouseDown,
|
handleMouseDown,
|
||||||
findPositionX
|
findPositionX,
|
||||||
|
watermarkUpdate
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -257,6 +257,7 @@ const scrollTo = y => {
|
|||||||
top: (y - 1) * baseHeight.value,
|
top: (y - 1) * baseHeight.value,
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
})
|
})
|
||||||
|
cyGridster.value?.watermarkUpdate()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user