Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Яков
react-finder
Commits
2f09ce27
Commit
2f09ce27
authored
Aug 17, 2021
by
Яков
Browse files
add func renderHeaderColumn
parent
37490c18
Changes
2
Show whitespace changes
Inline
Side-by-side
src/FinderColumn.js
View file @
2f09ce27
/**
* Created by wanli on 2017/9/15.
*/
import
React
,
{
PureComponent
}
from
'
react
'
;
import
React
,
{
PureComponent
}
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
Item
from
'
./FinderItem
'
;
import
HeaderColumn
from
'
./FinderColumnHeader
'
;
...
...
@@ -53,7 +53,7 @@ class FinderColumn extends PureComponent {
/> : ''
}
{
dataSource
&&
dataSource
.
map
((
data
,
index
)
=>
(
<
Item
disabled
=
{
shouldDragDisabled
&&
shouldDragDisabled
({
data
})}
disabled
=
{
shouldDragDisabled
&&
shouldDragDisabled
({
data
})}
key
=
{
data
[
nodeKey
]}
index
=
{
index
}
data
=
{
data
}
...
...
src/ReactFinder.js
View file @
2f09ce27
...
...
@@ -134,9 +134,7 @@ class ReactFinder extends PureComponent {
});
if
(
el
)
{
return
(
<
div
className
=
"
react-finder-detail
"
>
{
el
}
<
/div
>
<
div
className
=
"
react-finder-detail
"
>
{
el
}
<
/div
>
);
}
return
null
;
...
...
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