This is an automated email from the ASF dual-hosted git repository.

likeguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new e05f72c5 closeModal when added dict callback (#254)
e05f72c5 is described below

commit e05f72c5a49cb75f78f3f7f777ffe77376c3d5b4
Author: Liming Deng <[email protected]>
AuthorDate: Tue Nov 29 16:59:00 2022 +0800

    closeModal when added dict callback (#254)
    
    * closeModal when added dict callback
    
    * showSearch
---
 src/routes/System/Dict/index.js         | 1 +
 src/routes/System/PluginHandle/index.js | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/src/routes/System/Dict/index.js b/src/routes/System/Dict/index.js
index b18fd617..10cd4581 100644
--- a/src/routes/System/Dict/index.js
+++ b/src/routes/System/Dict/index.js
@@ -223,6 +223,7 @@ export default class ShenYuDict extends Component {
                 pageSize
               },
               callback: () => {
+                this.closeModal();
                 this.setState({ selectedRowKeys: [], currentPage: 1 }, 
this.query);
               }
             });
diff --git a/src/routes/System/PluginHandle/index.js 
b/src/routes/System/PluginHandle/index.js
index 05889076..1bbf1328 100644
--- a/src/routes/System/PluginHandle/index.js
+++ b/src/routes/System/PluginHandle/index.js
@@ -471,6 +471,10 @@ export default class PluginHandle extends Component {
             placeholder={getIntlContent("SHENYU.PLUGIN.SELECTNAME")}
             style={{ width: 240 }}
             allowClear
+            showSearch
+            filterOption={(input, option) =>
+                
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
+            }
           >
             {
               pluginDropDownList && pluginDropDownList.map((item,i)=>{

Reply via email to