32 lines
764 B
JavaScript
32 lines
764 B
JavaScript
/*
|
|
* Author: 黎永顺
|
|
* Description:
|
|
* Date: 2022-06-21 14:27:29
|
|
* LastEditTime: 2022-06-21 15:05:12
|
|
*/
|
|
import React from "react";
|
|
import { WeaTable } from "ecCom";
|
|
import { Spin, Table } from "antd";
|
|
import "./index.less";
|
|
|
|
export default class CustomTable extends React.Component {
|
|
render() {
|
|
const { loading, isWeaTable = true, className } = this.props;
|
|
return (
|
|
<div>
|
|
{loading
|
|
? <div style={{ textAlign: "center" }}>
|
|
<Spin />
|
|
</div>
|
|
: isWeaTable
|
|
? <WeaTable {...this.props} className={className}/>
|
|
: <Table
|
|
{...this.props}
|
|
className="wea-new-table antd-wrap"
|
|
bordered
|
|
/>}
|
|
</div>
|
|
);
|
|
}
|
|
}
|