|
@@ -43,14 +43,14 @@ class DataPreview extends React.Component {
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
- const { title, fetchFunction, dataList, visibleBox, hideBox, dispatch } = this.props;
|
|
|
+ const { title, modalClassName, fetchFunction, dataList, visibleBox, hideBox, dispatch } = this.props;
|
|
|
const { loading, columns, dataSource, pageSize, total } = dataList;
|
|
|
const { screenWidth, screenHeight, boxW, boxH, columnWidth, tableHeaderHeight } = this.state;
|
|
|
const tableBodyWidth = screenWidth * boxW - 10 - 10 - 18;
|
|
|
const tableBodyHeight = screenHeight * boxH - 40 - 40 - tableHeaderHeight - 2;
|
|
|
|
|
|
return <Modal
|
|
|
- className='datapreview'
|
|
|
+ className={`datapreview ${modalClassName}`}
|
|
|
style={{ top: `${(1 - boxH) * 0.5 * 100}%` }}
|
|
|
title={title}
|
|
|
width={`${100 * boxW}%`}
|
|
@@ -64,7 +64,6 @@ class DataPreview extends React.Component {
|
|
|
maskClosable={false}
|
|
|
>
|
|
|
<Table
|
|
|
- bordered
|
|
|
columns={columns.map((c, i) => {
|
|
|
let obj = {
|
|
|
title: c.label,
|