Skip to content

Commit

Permalink
Merge pull request #308 from jamebal/dev
Browse files Browse the repository at this point in the history
style: 优化删除文件的提示框
  • Loading branch information
jamebal authored Nov 7, 2024
2 parents aa1948b + 4a418e0 commit 5e98afd
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/ShowFile/ShowFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -771,13 +771,14 @@
<!-- </div>-->
<dialog-file-list :file-list="selectFileList" :image-url="imageUrl" :audio-cover-url="audioCoverUrl"></dialog-file-list>
</el-row>
<span slot="footer" class="dialog-footer">
<span slot="footer" class="dialog-footer-delete">
<div>
<el-button type="danger" size="small" @click="sweepDeleteFile">彻底删除</el-button>
<el-button v-if="!permanentDeleteDisable" type="danger" size="small" @click="sweepDeleteFile">彻底删除</el-button>
</div>
<div>
<el-button size="small" @click="deleteConfirmVisible = false">取 消</el-button>
<el-button type="danger" size="small" @click="moveToRecycle" :loading="deleteLoading">移至回收站</el-button>
<el-button v-if="permanentDeleteDisable" type="danger" size="small" @click="sweepDeleteFile" :loading="deleteLoading">彻底删除</el-button>
<el-button v-else type="danger" size="small" @click="moveToRecycle" :loading="deleteLoading">移至回收站</el-button>
</div>
</span>
</el-dialog>
Expand Down Expand Up @@ -4547,8 +4548,6 @@ export default {
}
.dialog-footer {
display: flex;
justify-content: space-between;
.el-loading-spinner {
margin-top: -13px;
Expand All @@ -4561,6 +4560,11 @@ export default {
}
}
.dialog-footer-delete {
display: flex;
justify-content: space-between;
}
>>> .van-grid-item__content {
background-size: cover;
background-position: center;
Expand Down

0 comments on commit 5e98afd

Please sign in to comment.