修改拖拽显示逻辑

master
于肖磊 2025-07-15 10:52:14 +08:00
parent a23e90cb15
commit 21af04f965
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<view class="pr oh wh-auto ht-auto">
<view :class="(overall_config.is_show_save_draft == '1' || overall_config.is_show_submit == '1' ? 'scroll-box wh-auto' : 'ht wh-auto') + ' scroll-y ' + (overall_config.type_value == 'default' || z_index_id !== '' ? '' : ' scroll-x ')">
<view :class="(overall_config.is_show_save_draft == '1' || overall_config.is_show_submit == '1' ? 'scroll-box wh-auto' : 'ht wh-auto') + ' scroll-y ' + (overall_config.type_value == 'default' || z_index_id !== '' ? ' scroll-x-hidden' : ' scroll-x ')">
<view :style="content_style + (overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;'))">
<template v-if="!isEmpty(img_url)">
<image :src="img_url" mode="aspectFit" />
@ -602,6 +602,9 @@ export default {
.scroll-y {
overflow-y: auto;
}
.scroll-x-hidden {
overflow-x: hidden;
}
.scroll-x {
overflow-x: auto;
}