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-10-27 14:13:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
067725efc0ffbf9e10f32992121c36db78020ba1
067725ef
1 parent
84329c49
style(PdfViewer): 优化加载进度环样式,使用锥形渐变背景
添加锥形渐变背景来显示加载进度,并调整百分比文本的层级
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletions
src/components/ui/PdfViewer.vue
src/components/ui/PdfViewer.vue
View file @
067725e
...
...
@@ -97,7 +97,7 @@
<div class="wrapper" @click.stop>
<div class="loading-content">
<!-- 进度环形图 -->
<div class="progress-circle">
<div class="progress-circle"
:style="{ '--progress': loadingProgress }"
>
<div class="progress-percent">{{ loadingProgress }}%</div>
</div>
...
...
@@ -962,12 +962,32 @@ const applyPinchZoom = (newZoom, centerX, centerY, container) => {
justify-content: center;
margin: 0 auto 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
position: relative;
background: conic-gradient(
#4caf50 0deg,
#4caf50 calc(var(--progress, 0) * 3.6deg),
#e0e0e0 calc(var(--progress, 0) * 3.6deg),
#e0e0e0 360deg
);
}
.progress-circle::before {
content: '';
position: absolute;
top: 4px;
left: 4px;
right: 4px;
bottom: 4px;
background-color: white;
border-radius: 50%;
}
.progress-percent {
font-size: 18px;
font-weight: bold;
color: #4caf50;
position: relative;
z-index: 1;
}
.loading-text {
...
...
Please
register
or
login
to post a comment