Browse Source

onSearchChange -》onSearch

visuddhinanda 3 years ago
parent
commit
1acb299326
1 changed files with 4 additions and 4 deletions
  1. 4 4
      dashboard/src/components/corpus/ChapterFilter.tsx

+ 4 - 4
dashboard/src/components/corpus/ChapterFilter.tsx

@@ -10,21 +10,21 @@ interface IWidget {
   onTypeChange?: Function;
   onTypeChange?: Function;
   onLangChange?: Function;
   onLangChange?: Function;
   onProgressChange?: Function;
   onProgressChange?: Function;
-  onSearchChange?: Function;
+  onSearch?: Function;
 }
 }
 const Widget = ({
 const Widget = ({
   onTypeChange,
   onTypeChange,
   onLangChange,
   onLangChange,
   onProgressChange,
   onProgressChange,
-  onSearchChange,
+  onSearch,
 }: IWidget) => {
 }: IWidget) => {
   return (
   return (
     <Space style={{ margin: 8 }}>
     <Space style={{ margin: 8 }}>
       <Search
       <Search
         placeholder="标题搜索"
         placeholder="标题搜索"
         onSearch={(value: string) => {
         onSearch={(value: string) => {
-          if (typeof onSearchChange !== "undefined") {
-            onSearchChange(value);
+          if (typeof onSearch !== "undefined") {
+            onSearch(value);
           }
           }
         }}
         }}
         style={{ width: 200 }}
         style={{ width: 200 }}