import { observer } from 'mobx-react'; @observer export default class Detail extends React.Component { getDetailItemProps = (rowIndex, colIndex) => { const { store } = this.props, { displayType, longTxtColIndexs, cols, } = store; let str = ""; if ( (displayType === '1' && colIndex === 0) || (displayType === '0' && rowIndex === 0) ) { str = "greyBg"; } if (cols > 2 && longTxtColIndexs.includes(colIndex)) { str = str ? `${str} large-width` : "large-width"; } return { className: str } } render() { const { store } = this.props, { data, rowDatas, colDatas, displayType, } = store; const sliceDatas = (displayType === "0") ? colDatas : rowDatas; return (
{val}
}