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

修改样式

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