修改底部按钮为空时的显示逻辑

master
于肖磊 2025-07-14 13:58:39 +08:00
parent 9bf7136e1a
commit b35c59fef2
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<template>
<view class="pr oh wh-auto ht-auto">
<scroll-view :scroll-top="scrollTop" :scroll-y="true" :scroll-x="overall_config.type_value == 'default' || z_index_id !== '' ? false : true" :class="overall_config.is_show_save_draft == '1' || overall_config.is_show_submit == '1' ? 'scroll-box' : 'ht-auto'" lower-threshold="60" scroll-with-animation>
<scroll-view :scroll-top="scrollTop" :scroll-y="true" :scroll-x="overall_config.type_value == 'default' || z_index_id !== '' ? false : true" :class="overall_config.is_show_save_draft == '1' || overall_config.is_show_submit == '1' ? 'scroll-box' : 'ht'" lower-threshold="60" scroll-with-animation>
<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" />

View File

@ -9,11 +9,11 @@
<iconfont name="icon-miaosha-hdgz" :size="propHelpIconStyle" color="#999"></iconfont>
</view>
</view>
<view v-if="!isEmpty(data_list) && mobile.arrange == 'direction'" class="flex-row align-c gap-10">
<view class="flex-row align-c gap-10">
<button class="title_btn" @tap="add_item">
<iconfont name="icon-add" size="24rpx" color="#2196F3" propContainerDisplay="flex"></iconfont>
</button>
<button class="title_btn flex-row align-c gap-10" :data-value="is_all_away" @tap="expand_all">{{ is_all_away ? '' : '' }}<iconfont :name="is_all_away ? 'icon-arrow-top' : 'icon-arrow-bottom'" size="24rpx" color="#2196F3" propContainerDisplay="flex"></iconfont></button>
<button v-if="!isEmpty(data_list) && mobile.arrange == 'direction'" class="title_btn flex-row align-c gap-10" :data-value="is_all_away" @tap="expand_all">{{ is_all_away ? '全部收起' : '全部展开' }}<iconfont :name="is_all_away ? 'icon-arrow-top' : 'icon-arrow-bottom'" size="24rpx" color="#2196F3" propContainerDisplay="flex"></iconfont></button>
</view>
</view>
<view v-if="data_list.length > 0" class="overflow-auto" :style="'height:' + custom_height">
@ -923,6 +923,7 @@
border-top: 0;
position: sticky;
right: 0;
z-index: 2;
}
.table-row .cell {
flex-shrink: 0;