From c4bc0e84305de6bb0e5f00bc4ad9b47eb708d723 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Tue, 20 Aug 2024 11:01:05 -0400 Subject: [PATCH] Auto expand tree on search in node library tab (#558) * Add custom nodelib searchbox * Auto expand on search * Support alphabetical sort in filtered tree --- .../SearchBox.vue} | 34 +++++++----- .../dialog/content/SettingDialogContent.vue | 5 +- .../sidebar/tabs/NodeLibrarySidebarTab.vue | 54 ++++++++++++++++--- src/i18n.ts | 2 + src/stores/nodeDefStore.ts | 24 --------- src/utils/treeUtil.ts | 21 ++++++++ 6 files changed, 96 insertions(+), 44 deletions(-) rename src/components/{dialog/content/setting/SettingSearchBox.vue => common/SearchBox.vue} (58%) diff --git a/src/components/dialog/content/setting/SettingSearchBox.vue b/src/components/common/SearchBox.vue similarity index 58% rename from src/components/dialog/content/setting/SettingSearchBox.vue rename to src/components/common/SearchBox.vue index e5420db36..bc3bb93cf 100644 --- a/src/components/dialog/content/setting/SettingSearchBox.vue +++ b/src/components/common/SearchBox.vue @@ -1,35 +1,45 @@ diff --git a/src/components/dialog/content/SettingDialogContent.vue b/src/components/dialog/content/SettingDialogContent.vue index a1441401c..90ab80009 100644 --- a/src/components/dialog/content/SettingDialogContent.vue +++ b/src/components/dialog/content/SettingDialogContent.vue @@ -1,10 +1,11 @@