UNPKG

653 BJavaScriptView Raw
1import { Component } from 'react';
2import PropTypes from 'prop-types';
3
4const 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
24class Column extends Component {
25 static defaultProps = {
26 ifshow:true
27 }
28}
29
30Column.propTypes = propTypes;
31
32export default Column;