修改自定义宽度显示区域1
parent
b41c0f04fc
commit
dcc3844456
|
|
@ -111,7 +111,8 @@ const center_width = ref(props.magicWidth);
|
||||||
// 可拖拽区域的宽度
|
// 可拖拽区域的宽度
|
||||||
const custom_width = computed(() => {
|
const custom_width = computed(() => {
|
||||||
// 如果是横向展示,那么就需要根据每屏显示的数量来计算宽度 data_source_direction != vertical-scroll 不为纵向滑动的都是横向宽度变化
|
// 如果是横向展示,那么就需要根据每屏显示的数量来计算宽度 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;
|
return center_width.value / form.value.data_source_carousel_col;
|
||||||
} else {
|
} else {
|
||||||
return center_width.value;
|
return center_width.value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue