优化标签气泡小角位置绑定关系

This commit is contained in:
taiyi 2026-04-12 19:45:42 +08:00
parent 40887ba3c7
commit 02394ba493
2 changed files with 4 additions and 2 deletions

View File

@ -878,7 +878,8 @@ export default {
left: `${layout.left}px`,
top: `${layout.top}px`,
maxWidth: `${layout.bubbleWidth}px`,
maxHeight: `${layout.availableBubbleHeight}px`
maxHeight: `${layout.availableBubbleHeight}px`,
'--pet-tail-left': `${Math.round(layout.tailLeft)}px`
}
})

View File

@ -663,7 +663,8 @@ export default {
return {
left: `${Math.round(layout.left)}px`,
top: `${Math.round(layout.top)}px`,
width: `${Math.round(layout.bubbleWidth)}px`
width: `${Math.round(layout.bubbleWidth)}px`,
'--preview-tail-left': `${Math.round(layout.tailLeft)}px`
}
}