Commit 2f09ce27 by Яков

add func renderHeaderColumn

parent 37490c18
/**
* 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}
......
......@@ -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;
......
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