From dcc384445600d699194977ee5a5448708d9d1ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Tue, 3 Jun 2025 18:39:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E6=98=BE=E7=A4=BA=E5=8C=BA=E5=9F=9F1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-custom/model-custom-content.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;