Search text & Fix select servers
This commit is contained in:
1 parent
1194e5e701
commit
dbc3b2099a
3 files changed
+4
-2
No files matched your search
@@ -83,6 +83,7 @@ export default class Settings {
|
|||||||
}
|
}
|
||||||
set serverName(name: string) {
|
set serverName(name: string) {
|
||||||
this.model.serverName = name;
|
this.model.serverName = name;
|
||||||
|
this.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
set(config: SettingsModel) {
|
set(config: SettingsModel) {
|
||||||
@@ -106,6 +107,7 @@ export default class Settings {
|
|||||||
recentWorkspaces: ["sample/workspace.json"],
|
recentWorkspaces: ["sample/workspace.json"],
|
||||||
recentFiles: [],
|
recentFiles: [],
|
||||||
nodeClassify: sampleNodeClassify,
|
nodeClassify: sampleNodeClassify,
|
||||||
|
treesDesc: {},
|
||||||
};
|
};
|
||||||
this.save();
|
this.save();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "behavior3editor",
|
"name": "behavior3editor",
|
||||||
"version": "0.1.8",
|
"version": "0.1.9",
|
||||||
"description": "行为树编辑器",
|
"description": "行为树编辑器",
|
||||||
"main": "./dist/main.js",
|
"main": "./dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class FileDataNode {
|
|||||||
for (let i = this.children.length - 1; i >= 0; i--) {
|
for (let i = this.children.length - 1; i >= 0; i--) {
|
||||||
const child = this.children[i];
|
const child = this.children[i];
|
||||||
if (!child.isFolder) {
|
if (!child.isFolder) {
|
||||||
const keyStr = child.id;
|
const keyStr = child.text;
|
||||||
child.visible = keyStr.includes(keyWord);
|
child.visible = keyStr.includes(keyWord);
|
||||||
} else {
|
} else {
|
||||||
child.visible = child.setVisible(keyWord);
|
child.visible = child.setVisible(keyWord);
|
||||||
|
|||||||
Reference in new issue
Block a user