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

33 lines
763 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 } = this.props;
return (
<div>
{loading
? <div style={{ textAlign: "center" }}>
<Spin />
</div>
: isWeaTable
? <WeaTable {...this.props} />
: <Table
{...this.props}
size="middle"
className="wea-new-table antd-wrap"
bordered
/>}
</div>
);
}
}