Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
0f5f9299
Commit
0f5f9299
authored
Jul 03, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 增强判断
parent
875e074c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
index.tsx
...wRule/components/FlowRuleForm/components/Search/index.tsx
+7
-7
No files found.
src/pages/member/memberFlowRule/components/FlowRuleForm/components/Search/index.tsx
View file @
0f5f9299
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-28 14:30:06
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
6-08 16:27:02
* @LastEditTime: 2021-0
7-03 14:02:39
* @Description: 搜索组件
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -49,12 +49,12 @@ const MySearch: React.FC<IProps> = (props: IProps) => {
}
},
[
value
]);
const
handleChange
=
(
e
)
=>
{
const
handleChange
=
(
next
:
string
)
=>
{
if
(
!
(
'value'
in
props
))
{
setKeyword
(
e
.
target
.
value
);
setKeyword
(
next
);
}
if
(
onChange
)
{
onChange
(
e
.
target
.
value
);
onChange
(
next
);
}
};
...
...
@@ -65,9 +65,9 @@ const MySearch: React.FC<IProps> = (props: IProps) => {
};
const
handleReset
=
()
=>
{
on
Change
(
''
);
handle
Change
(
''
);
if
(
searchOnResetAction
)
{
on
Search
(
''
);
handle
Search
(
''
);
}
if
(
onReset
)
{
onReset
();
...
...
@@ -79,7 +79,7 @@ const MySearch: React.FC<IProps> = (props: IProps) => {
<
Input
.
Search
style=
{
{
width
:
'200px'
,
marginRight
:
16
}
}
value=
{
keyword
}
onChange=
{
handleChange
}
onChange=
{
(
e
)
=>
handleChange
(
e
.
target
.
value
)
}
onSearch=
{
handleSearch
}
{
...
rest
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment