diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue index 3dc80dbc..7827d500 100644 --- a/src/components/model-custom/model-custom-content.vue +++ b/src/components/model-custom/model-custom-content.vue @@ -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;