fix progress

This commit is contained in:
Timi
2025-12-11 15:06:50 +08:00
parent 0cdef54954
commit dc71590bd9
6 changed files with 240 additions and 100 deletions

View File

@ -131,13 +131,17 @@
</t-button>
</view>
</view>
<progress
wx:if="{{isSaving}}"
class="progress"
percent="{{saveProgress.toFixed(2) * 100}}"
show-info
stroke-width="4"
/>
<view wx:if="{{isSaving}}" class="uploading">
<progress
class="progress"
percent="{{uploadProgress}}"
stroke-width="6"
/>
<view class="text">
<view>{{uploaded}} / {{uploadTotal}}</view>
<view>{{uploadSpeed}}</view>
</view>
</view>
<view class="ctrl">
<t-button class="delete" theme="danger" bind:tap="deleteJournal" disabled="{{isSaving}}">删除记录</t-button>
<t-button
@ -145,7 +149,7 @@
theme="primary"
bind:tap="save"
disabled="{{(!idea && mediaList.length === 0 && newMediaList.length === 0) || isSaving}}"
>{{saveText}}</t-button>
>保存</t-button>
</view>
</block>
</view>