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
linweijiong
jinfa-platform
Commits
ae19274c
Commit
ae19274c
authored
Aug 26, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复searchSelect在单选下无法关闭
parent
1610bddb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
SearchSelect.tsx
src/components/NiceForm/components/SearchSelect.tsx
+5
-2
No files found.
src/components/NiceForm/components/SearchSelect.tsx
View file @
ae19274c
...
...
@@ -116,6 +116,10 @@ const SearchSelect = (props: ISchemaFieldComponentProps) => {
// }
// const { run } = useDebounceFn(dispatchSearch, 500)
const
multipleProps
=
multiple
?
{
open
:
openSelect
,
onFocus
:
()
=>
setOpenSelect
(
true
),
}
:
{}
return
(
<
Select
ref=
{
ref
}
...
...
@@ -124,10 +128,9 @@ const SearchSelect = (props: ISchemaFieldComponentProps) => {
filterOption=
{
false
}
loading=
{
loading
}
options=
{
dataSource
}
onFocus=
{
()
=>
setOpenSelect
(
true
)
}
value=
{
props
.
value
}
open=
{
multiple
?
openSelect
:
null
}
dropdownRender=
{
originNode
=>
<
SelectContent
confirm=
{
confirm
}
resetField=
{
resetField
}
parentRef=
{
ref
}
handleChange=
{
handleChange
}
multiple=
{
multiple
}
value=
{
props
.
value
}
>
{
originNode
}
</
SelectContent
>
}
{
...
multipleProps
}
{
...
resetProps
}
>
</
Select
>
...
...
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