Update: Python Online板卡下支持挂载本地文件夹到pyodide
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user