文件上传

This commit is contained in:
cwchen 2025-10-21 18:18:44 +08:00
parent 807a6e0e26
commit 2000837d10
1 changed files with 42 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<!-- 企业主体库表单 --> <!-- 企业主体库表单 -->
<template> <template>
<div class="app-container"> <div class="app-container" :class="{ 'no-pointer-events': showUploadAnimation }">
<!-- 全局上传动画 --> <!-- 全局上传动画 -->
<div v-if="showUploadAnimation" class="global-upload-animation"> <div v-if="showUploadAnimation" class="global-upload-animation">
<div class="animation-mask"></div> <div class="animation-mask"></div>
@ -139,6 +139,24 @@ export default {
min-height: 100vh; min-height: 100vh;
overflow-y: auto; overflow-y: auto;
position: relative; position: relative;
//
&.no-pointer-events {
pointer-events: none;
//
// overflow-y: auto;
//
* {
pointer-events: none;
}
//
// ::-webkit-scrollbar {
// pointer-events: auto;
// }
}
} }
// //
@ -152,7 +170,9 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
pointer-events: none;
//
pointer-events: auto;
.animation-mask { .animation-mask {
position: absolute; position: absolute;
@ -160,8 +180,11 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
// background: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.6); //
backdrop-filter: blur(4px); backdrop-filter: blur(4px);
//
pointer-events: auto;
} }
.animation-content { .animation-content {
@ -177,6 +200,9 @@ export default {
min-width: 280px; min-width: 280px;
animation: slideInUp 0.3s ease-out; animation: slideInUp 0.3s ease-out;
//
pointer-events: auto;
.spinner { .spinner {
width: 60px; width: 60px;
height: 60px; height: 60px;
@ -220,6 +246,19 @@ export default {
} }
} }
// 使body
// mounted beforeDestroy /
.global-upload-animation-active {
.app-container {
pointer-events: none !important;
user-select: none !important;
* {
pointer-events: none !important;
}
}
}
.content-body { .content-body {
margin-top: 20px; margin-top: 20px;
} }