修改自定义宽度显示区域1

v1.4.0
于肖磊 2025-06-03 18:39:13 +08:00
parent b41c0f04fc
commit dcc3844456
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ const center_width = ref(props.magicWidth);
//
const custom_width = computed(() => {
// data_source_direction != vertical-scroll
if (form.value.is_custom_data == '1' && form.value.data_source_direction != 'vertical-scroll') {
//
if (form.value.is_custom_data == '1' && form.value.data_source_is_loop == '1' && form.value.data_source_direction != 'vertical-scroll') {
return center_width.value / form.value.data_source_carousel_col;
} else {
return center_width.value;