mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
feat: 使用 VCard 和 VProgressLinear 组件优化资源页面的加载进度显示
This commit is contained in:
+4
-26
@@ -183,18 +183,16 @@ onUnmounted(() => {
|
|||||||
<!-- 加载进度条 -->
|
<!-- 加载进度条 -->
|
||||||
<VFadeTransition>
|
<VFadeTransition>
|
||||||
<div v-if="progressValue > 0" class="search-progress-container">
|
<div v-if="progressValue > 0" class="search-progress-container">
|
||||||
<div class="search-progress-card">
|
<VCard class="search-progress-card">
|
||||||
<div class="progress-header">
|
<div class="progress-header">
|
||||||
<VIcon icon="mdi-movie-search" color="primary" size="small" class="me-2" />
|
<VIcon icon="mdi-movie-search" color="primary" size="small" class="me-2" />
|
||||||
<span class="progress-title">{{ progressText }}</span>
|
<span class="progress-title">{{ progressText }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress-bar-container">
|
<div class="progress-bar-container">
|
||||||
<div class="progress-bar-wrapper">
|
<VProgressLinear color="primary" rounded :model-value="progressValue" />
|
||||||
<div class="progress-bar" :style="{ width: `${progressValue}%` }"></div>
|
|
||||||
</div>
|
|
||||||
<div class="progress-percentage">{{ Math.ceil(progressValue) }}%</div>
|
<div class="progress-percentage">{{ Math.ceil(progressValue) }}%</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</VCard>
|
||||||
</div>
|
</div>
|
||||||
</VFadeTransition>
|
</VFadeTransition>
|
||||||
|
|
||||||
@@ -291,7 +289,7 @@ onUnmounted(() => {
|
|||||||
border: 1px solid rgba(var(--v-theme-primary), 0.1);
|
border: 1px solid rgba(var(--v-theme-primary), 0.1);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 12%);
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 10%);
|
||||||
inline-size: 90%;
|
inline-size: 90%;
|
||||||
max-inline-size: 400px;
|
max-inline-size: 400px;
|
||||||
}
|
}
|
||||||
@@ -314,26 +312,6 @@ onUnmounted(() => {
|
|||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar-wrapper {
|
|
||||||
overflow: hidden;
|
|
||||||
flex: 1;
|
|
||||||
border-radius: 4px;
|
|
||||||
background-color: rgba(var(--v-theme-on-surface), 0.08);
|
|
||||||
block-size: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.progress-bar {
|
|
||||||
border-radius: 4px;
|
|
||||||
background: linear-gradient(
|
|
||||||
90deg,
|
|
||||||
rgb(var(--v-theme-primary)) 0%,
|
|
||||||
rgb(var(--v-theme-primary)) 70%,
|
|
||||||
rgba(var(--v-theme-primary), 0.8) 100%
|
|
||||||
);
|
|
||||||
block-size: 100%;
|
|
||||||
transition: inline-size 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.progress-percentage {
|
.progress-percentage {
|
||||||
color: rgb(var(--v-theme-primary));
|
color: rgb(var(--v-theme-primary));
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user