修改选项卡内容处理

master
于肖磊 2025-07-31 18:38:16 +08:00
parent 6f7c104f20
commit 957257dc36
1 changed files with 1 additions and 1 deletions

View File

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