2019-05-28 20:53:11 +08:00

34 lines
694 B
JavaScript

import './css/Table.css';
import classNames from 'classnames/bind';
import PropTypes from 'prop-types';
/**
* 表格
* @author tengge / https://github.com/tengge1
*/
class Table extends React.Component {
render() {
const { className, style, children, ...others } = this.props;
return <table
className={classNames('Table', className)}
style={style}
{...others}>
{children}
</table>;
}
}
Table.propTypes = {
className: PropTypes.string,
style: PropTypes.object,
children: PropTypes.node,
};
Table.defaultProps = {
className: null,
style: null,
children: null,
};
export default Table;