请问如何使一个View展示loading状态? #3111
Answered
by
erha19
MilkWangStudio
asked this question in
Q&A
-
通过切换按钮需要动态更新目录树,切换时希望这个FileExplorer展示loading状态,请问有什么办法吗? |
Beta Was this translation helpful? Give feedback.
Answered by
erha19
Oct 12, 2023
Replies: 1 comment 3 replies
-
@MilkWangStudio 你这里是修改了文件树模块还是自己写了个新模块?文件树模块在根文件请求的时候应该是会 Loading 的,引入了 ProgressBar 组件。 import { Progress } from '@opensumi/ide-core-browser/lib/progress/progress-bar'; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
既然已经修改了文件树模块,那建议你可以自行对 Progress 这个组件做一下状态控制,目前这里没有手动触发的逻辑,整体是跟随文件树的业务逻辑编码的。