Browse Source

REPORT-62543 在线组件页面的搜索框失效

【问题原因】
未使用搜索结果重新渲染组件列表页

【改动思路】
同上
feature/x
Starryi 3 years ago
parent
commit
a682e7d9a0
  1. 6
      designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/AbstractOnlineWidgetShowPane.java

6
designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/AbstractOnlineWidgetShowPane.java

@ -130,11 +130,11 @@ public abstract class AbstractOnlineWidgetShowPane extends JPanel {
this.mainCardLayout.show(mainCenterPane, MAIN_FILTER_TAB_PANE);
return;
}
List<OnlineShareWidget> widgets = new ArrayList<>();
List<OnlineShareWidget> searchedWidgetList = new ArrayList<>();
if (StringUtils.isNotEmpty(text)) {
for (OnlineShareWidget provider : sharableWidgetProviders) {
if (provider.getName().toLowerCase().contains(text)) {
widgets.add(provider);
searchedWidgetList.add(provider);
}
}
}
@ -142,7 +142,7 @@ public abstract class AbstractOnlineWidgetShowPane extends JPanel {
if (searchResultShowPane != null) {
mainCenterPane.remove(searchResultShowPane);
}
searchResultShowPane = manualCreateOnlineWidgetSelectPane(sharableWidgetProviders);
searchResultShowPane = manualCreateOnlineWidgetSelectPane(searchedWidgetList.toArray(new OnlineShareWidget[]{}));
this.mainCenterPane.add(searchResultShowPane, SEARCH_RESULT_PANE);
this.mainCardLayout.show(mainCenterPane, SEARCH_RESULT_PANE);
this.validate();

Loading…
Cancel
Save