1 | import { Component } from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 |
|
4 | const propTypes = {
|
5 | className: PropTypes.string,
|
6 | colSpan: PropTypes.number,
|
7 | title: PropTypes.node,
|
8 | dataIndex: PropTypes.string,
|
9 | width: PropTypes.oneOfType([
|
10 | PropTypes.number,
|
11 | PropTypes.string,
|
12 | ]),
|
13 | fixed: PropTypes.oneOf([
|
14 | true,
|
15 | 'left',
|
16 | 'right',
|
17 | ]),
|
18 | render: PropTypes.func,
|
19 | onCellClick: PropTypes.func,
|
20 | ifshow:PropTypes.bool,
|
21 | fieldType: PropTypes.string,
|
22 | }
|
23 |
|
24 | class Column extends Component {
|
25 | static defaultProps = {
|
26 | ifshow:true
|
27 | }
|
28 | }
|
29 |
|
30 | Column.propTypes = propTypes;
|
31 |
|
32 | export default Column;
|