| | |
| | | _footer = statFValue.map(f => `${f.label}(合计):${f.value}`).join(';') |
| | | } |
| | | |
| | | let height = setting.height || false |
| | | let style = {} |
| | | if (setting.color) { |
| | | style.color = setting.color |
| | | } |
| | | if (setting.fontSize) { |
| | | style.fontSize = setting.fontSize |
| | | } |
| | | |
| | | return ( |
| | | <div className="normal-data-table mingke-table"> |
| | | <div className={'normal-data-table mingke-table ' + (height ? 'fixed-height' : '')}> |
| | | {offset && <Affix offsetTop={offset} className="fix-header"> |
| | | <Table |
| | | size="middle" |
| | | style={style} |
| | | bordered={setting.bordered !== 'false'} |
| | | rowSelection={rowSelection} |
| | | columns={this.state.columns.map(column => { |
| | |
| | | </Affix>} |
| | | <Table |
| | | size="middle" |
| | | style={style} |
| | | bordered={setting.bordered !== 'false'} |
| | | rowSelection={rowSelection} |
| | | columns={this.state.columns} |
| | |
| | | return className |
| | | }} |
| | | loading={this.props.loading} |
| | | scroll={{ x: '100%', y: false }} |
| | | scroll={{ x: '100%', y: height }} |
| | | onRow={(record, index) => { |
| | | return { |
| | | onClick: () => {this.changeRow(record, index)}, |