Commit 26582b33 authored by 王珂's avatar 王珂

修改样式

parent 199b9e40
......@@ -169,7 +169,7 @@ class AmosGridTable extends Component {
render() {
const { loading, selectedRowKeys,size,maxHeight } = this.state;
let { columns, isChecked, operateCol, isTreeTable, isPageable, pagination, dataList, totals,rowClassName, onRowClick, onRowDoubleClick } = this.props;
console.log(maxHeight);
//设置复选框参数
let rowSelection = {
selectedRowKeys: this.props.selectedRowKeys || selectedRowKeys,
......@@ -213,7 +213,7 @@ class AmosGridTable extends Component {
}
</div>
</div>
<div className={divStyle}>
<div className={divStyle} style={{ height: 'calc(100% - 50px)' }}>
{ onRowClick ?
<Table
title={() => (
......@@ -244,7 +244,7 @@ class AmosGridTable extends Component {
rowSelection={rowSelection}
columns={columns}
dataSource={dataList}
pagination={_pagination}
pagination={{ ..._pagination, style: { position: 'fixed', bottom: '10px', right: '10px' } }}
size={size}
bordered={bordered}
scroll={{ y: maxHeight }}
......
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