Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: 优化删除文件的提示框 #308

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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