Commit 2f09ce27 by Яков

add func renderHeaderColumn

parent 37490c18
/** /**
* Created by wanli on 2017/9/15. * Created by wanli on 2017/9/15.
*/ */
import React, {PureComponent} from 'react'; import React, { PureComponent } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import Item from './FinderItem'; import Item from './FinderItem';
import HeaderColumn from './FinderColumnHeader'; import HeaderColumn from './FinderColumnHeader';
...@@ -53,7 +53,7 @@ class FinderColumn extends PureComponent { ...@@ -53,7 +53,7 @@ class FinderColumn extends PureComponent {
/> : ''} /> : ''}
{dataSource && dataSource.map((data, index) => ( {dataSource && dataSource.map((data, index) => (
<Item <Item
disabled={shouldDragDisabled && shouldDragDisabled({data})} disabled={shouldDragDisabled && shouldDragDisabled({ data })}
key={data[nodeKey]} key={data[nodeKey]}
index={index} index={index}
data={data} data={data}
......
...@@ -134,9 +134,7 @@ class ReactFinder extends PureComponent { ...@@ -134,9 +134,7 @@ class ReactFinder extends PureComponent {
}); });
if (el) { if (el) {
return ( return (
<div className="react-finder-detail"> <div className="react-finder-detail">{el}</div>
{el}
</div>
); );
} }
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment