Skip to content

Commit 1c68c53

Browse files
committed
Merge branch 'main' of github.com:1Panel-dev/MaxKB
2 parents 8d318d2 + 7a63e18 commit 1c68c53

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

ui/src/views/template/component/ModelCard.vue

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,18 @@
2929
</div>
3030
<!-- progress -->
3131
<div class="progress-mask" v-if="currentModel.status === 'DOWNLOAD'">
32-
<el-progress type="dashboard" :percentage="progress" class="percentage">
32+
<el-progress
33+
type="circle"
34+
:width="56"
35+
color="#3370ff"
36+
:percentage="progress"
37+
class="percentage"
38+
>
3339
<template #default="{ percentage }">
3440
<span class="percentage-value">{{ percentage }}%</span>
35-
<span class="percentage-label">正在下载 <span class="dotting"></span></span>
3641
</template>
3742
</el-progress>
43+
<span class="percentage-label">正在下载 <span class="dotting"></span></span>
3844
</div>
3945

4046
<template #mouseEnter>
@@ -144,10 +150,7 @@ const initInterval = () => {
144150
downModel.value = ok.data
145151
})
146152
} else {
147-
if (downModel.value) {
148-
props.updateModelById(props.model.id, downModel.value)
149-
downModel.value = undefined
150-
}
153+
downModel.value = undefined
151154
}
152155
}, 6000)
153156
}
@@ -185,28 +188,27 @@ onBeforeUnmount(() => {
185188
position: absolute;
186189
top: 0;
187190
left: 0;
188-
background-color: rgba(122, 122, 122, 0.8);
191+
background-color: rgba(255, 255, 255, 0.9);
189192
width: 100%;
190193
height: 100%;
191-
z-index: 111;
194+
z-index: 99;
192195
text-align: center;
193196
.percentage {
194197
top: 50%;
195-
transform: translateY(-50%);
196-
margin-top: 5px;
198+
transform: translateY(-65%);
197199
}
198200
199201
.percentage-value {
200202
display: block;
201-
margin-top: 10px;
202-
font-size: 28px;
203-
color: #ffffff;
203+
font-size: 12px;
204+
color: var(--el-color-primary);
204205
}
205206
.percentage-label {
206207
display: block;
207-
margin-top: 10px;
208+
margin-top: 45px;
209+
margin-left: 10px;
208210
font-size: 12px;
209-
color: #ffffff;
211+
color: var(--el-color-primary);
210212
}
211213
}
212214
}

0 commit comments

Comments
 (0)