修改上浮处理

master
于肖磊 2025-05-22 11:42:48 +08:00
parent c13bd7ddec
commit e0bf380c2b
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@
diy_data.forEach((item, index) => {
//
const style = item.com_data?.style?.common_style;
if (style && newMarginTopMap.has(item.id) && scaleComponents.has(diy_data[index - 1].key)) {
if (style && newMarginTopMap.has(item.id) && scaleComponents.has(diy_data[index - 1].key) && scaleComponents.has(item.key)) {
item.floating_up = '-' + (style?.floating_up || 0) * scale + 'px;';
} else {
item.floating_up = '-' + (style?.floating_up || 0) * 2 + 'rpx;';