bee-table/src/Column.js

32 lines
609 B
JavaScript
Raw Normal View History

import { Component } from 'react';
import PropTypes from 'prop-types';
2016-12-26 16:52:39 +08:00
2016-12-26 22:04:16 +08:00
const propTypes = {
2016-12-26 16:52:39 +08:00
className: PropTypes.string,
colSpan: PropTypes.number,
title: PropTypes.node,
dataIndex: PropTypes.string,
width: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string,
]),
fixed: PropTypes.oneOf([
true,
'left',
'right',
]),
render: PropTypes.func,
onCellClick: PropTypes.func,
ifshow:PropTypes.bool
2016-12-26 16:52:39 +08:00
}
2016-12-26 22:04:16 +08:00
class Column extends Component {
static defaultProps = {
ifshow:true
}
2016-12-26 22:04:16 +08:00
}
Column.propTypes = propTypes;
export default Column;