添加工作量查看页面, 附件显示优化

This commit is contained in:
zhengw
2026-02-10 17:13:24 +08:00
parent 1d247f1049
commit d9fe6c048f
16 changed files with 229 additions and 21 deletions

View File

@@ -12,10 +12,10 @@
custom-style="padding-left:0;padding-right:0;position: sticky;top: 0;" arrow
bind:tap="onPreview2" />
<t-cell title="附件" left-icon="file"
<t-cell wx:if="{{files.length}}" title="附件" left-icon="file"
custom-style="padding-left:0;padding-right:0;position: sticky;top: 0;z-index:1"
bordered="{{false}}" />
<view style="border: 1px solid #ddd;border-radius: 8rpx;padding: 8rpx;">
<view wx:if="{{files.length}}" style="border: 1px solid #ddd;border-radius: 8rpx;padding: 8rpx;">
<block wx:for="{{files}}" wx:key="index">
<t-cell title="{{item.file_name}}" hover="{{item._file_type != 'file'}}"
arrow="{{item._file_type != 'file'}}" bind:tap="onPreview" data-index="{{index}}" />

View File

@@ -12,11 +12,11 @@
custom-style="padding-left:0;padding-right:0;position: sticky;top: 0;" arrow
bind:tap="onPreview2" /> -->
<t-cell title="附件" left-icon="file"
<t-cell wx:if="{{files.length}}" title="附件" left-icon="file"
custom-style="padding-left:0;padding-right:0;position: sticky;top: 0;z-index:1"
bordered="{{false}}" />
<view style="border: 1px solid #ddd;border-radius: 8rpx;padding: 8rpx;">
<view wx:if="{{files.length}}" style="border: 1px solid #ddd;border-radius: 8rpx;padding: 8rpx;">
<block wx:for="{{files}}" wx:key="index">
<t-cell title="{{item.file_name}}" hover="{{item._file_type != 'file'}}"
arrow="{{item._file_type != 'file'}}" bind:tap="onPreview" data-index="{{index}}" />