Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-01 10:26:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c83aeb60c74ef99f17afbcd1df15c5318265cab1
c83aeb60
1 parent
115a318a
fix(CheckinDetailPage): 允许删除上传的文件并移除冗余文件列表显示
移除注释掉的冗余文件列表显示代码,并启用上传组件的删除功能,提升用户体验
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/checkin/CheckinDetailPage.vue
src/views/checkin/CheckinDetailPage.vue
View file @
c83aeb6
...
...
@@ -45,10 +45,10 @@
<van-uploader v-model="fileList" :max-count="maxCount" :max-size="20 * 1024 * 1024"
:before-read="beforeRead" :after-read="afterRead" @delete="onDelete"
@click-preview="onClickPreview" multiple :accept="getAcceptType()" result-type="file"
:deletable="
fals
e" />
:deletable="
tru
e" />
<!-- 文件列表显示 -->
<div v-if="fileList.length > 0" class="file-list">
<
!-- <
div v-if="fileList.length > 0" class="file-list">
<div v-for="(item, index) in fileList" :key="index" class="file-item">
<div class="file-info" @click="previewFile(item)">
<van-icon :name="getFileIcon()" size="1rem" />
...
...
@@ -57,7 +57,7 @@
</div>
<van-icon name="clear" size="1rem" @click="delItem(item)" class="delete-icon" />
</div>
</div>
</div>
-->
<div class="upload-tips">
<div class="tip-text">最多上传{{ maxCount }}个文件,每个不超过20M</div>
...
...
Please
register
or
login
to post a comment