salary-management-front/pc4mobx/hrmSalary/components/customTable/index.js

32 lines
764 B
JavaScript
Raw Normal View History

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() {
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
? <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>
);
}
}