fix: progress bar default open
This commit is contained in:
@@ -188,7 +188,7 @@ const GPUList: React.FC = () => {
|
||||
render={(text, record: GPUDeviceItem, index: number) => {
|
||||
return (
|
||||
<ProgressBar
|
||||
open={
|
||||
defaultOpen={
|
||||
index === 0 && dataSource.loadend && extraStatus.firstLoad
|
||||
}
|
||||
percent={
|
||||
|
||||
@@ -400,7 +400,7 @@ const Workers: React.FC = () => {
|
||||
[{item.index}]
|
||||
</span>
|
||||
<ProgressBar
|
||||
open={
|
||||
defaultOpen={
|
||||
rIndex === 0 &&
|
||||
index === 0 &&
|
||||
dataSource.loadend &&
|
||||
|
||||
Reference in New Issue
Block a user