2022-06-21 15:54:39 +08:00
|
|
|
/*
|
|
|
|
|
* Author: 黎永顺
|
2022-07-11 18:21:47 +08:00
|
|
|
* Description:
|
2022-06-21 15:54:39 +08:00
|
|
|
* Date: 2022-06-21 14:27:29
|
|
|
|
|
* LastEditTime: 2022-06-21 15:05:12
|
|
|
|
|
*/
|
2022-06-21 11:57:09 +08:00
|
|
|
import React from "react";
|
|
|
|
|
import { WeaTable } from "ecCom";
|
|
|
|
|
import { Spin, Table } from "antd";
|
2022-06-21 15:54:39 +08:00
|
|
|
import "./index.less";
|
2022-04-25 17:18:58 +08:00
|
|
|
|
|
|
|
|
export default class CustomTable extends React.Component {
|
2022-06-21 11:57:09 +08:00
|
|
|
render() {
|
2022-08-11 17:38:03 +08:00
|
|
|
const { loading, isWeaTable = true, className } = this.props;
|
2022-06-21 11:57:09 +08:00
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
{loading
|
|
|
|
|
? <div style={{ textAlign: "center" }}>
|
|
|
|
|
<Spin />
|
2022-04-25 17:18:58 +08:00
|
|
|
</div>
|
2022-06-21 11:57:09 +08:00
|
|
|
: isWeaTable
|
2022-08-11 17:38:03 +08:00
|
|
|
? <WeaTable {...this.props} className={className}/>
|
2022-06-21 15:54:39 +08:00
|
|
|
: <Table
|
|
|
|
|
{...this.props}
|
|
|
|
|
className="wea-new-table antd-wrap"
|
|
|
|
|
bordered
|
|
|
|
|
/>}
|
2022-06-21 11:57:09 +08:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|