Update: Python Online板卡下支持挂载本地文件夹到pyodide

This commit is contained in:
王立帮
2024-11-26 23:09:41 +08:00
parent 5411a188f7
commit b984af1998
18 changed files with 660 additions and 84 deletions

View File

@@ -56,6 +56,7 @@ class FileTree extends Component {
#mprogress_ = null;
#rootFolderOpened_ = false;
#rootPath_ = '';
#rootName_ = '';
#fs_ = null;
#contextMenu_ = null;
#selected_ = null;
@@ -483,9 +484,14 @@ class FileTree extends Component {
}
setRootFolderName(name) {
this.#rootName_ = name;
this.#$name_.text(name);
}
getRootFolderName() {
return this.#rootName_;
}
refreshFolder(folderPath) {
// 延迟刷新节点防止过于频繁的IO操作
let eventId = this.delayRefreshRegistry.getItem(folderPath);