🐛 安装时进度条改为不确定状态
This commit is contained in:
@@ -27,7 +27,8 @@ const DownloadCard: Component<{ download: DownloadTask }> = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<Progress
|
<Progress
|
||||||
value={['installing', 'installed'].includes(props.download.status) ? 100 : props.download.progress}
|
value={props.download.status === 'installed' ? 100 : props.download.progress}
|
||||||
|
indeterminate={props.download.status === 'installing'}
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
/>
|
/>
|
||||||
<span class="text-sm text-muted-foreground">
|
<span class="text-sm text-muted-foreground">
|
||||||
|
|||||||
Reference in New Issue
Block a user