修改上浮不需要等比的数组

master
于肖磊 2025-05-22 13:39:57 +08:00
parent 4acfeb27f3
commit 5b1b754bea
1 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@
data() {
return {
scale_component_list: [ 'carousel', 'custom', 'data-magic', 'img-magic', 'video' ],
subset_scale_component_list: [ 'carousel', 'custom', 'data-magic', 'img-magic', 'video', 'goods-list' ],
subset_scale_component_list: [ 'auxiliary-blank', 'auxiliary-line', 'coupon', 'float-window', 'rich-text', 'nav-group', 'salerecords', 'search', 'tabs', 'title', 'user-info'],
//
currency_symbol: app.globalData.currency_symbol(),
//
@ -472,7 +472,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) && subset_scale_component_list.has(item.key)) {
if (style && newMarginTopMap.has(item.id) && scaleComponents.has(diy_data[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;';