//column.jsimport { Component, PropTypes } from 'react';
export default class Column extends Component {
static propTypes = {
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,
}
}//index.jsconst Table = require('./Table');const Column = require('./Column');const ColumnGroup = require('./ColumnGroup');
Table.Column = Column;
Table.ColumnGroup = ColumnGroup;module.exports = Table;Table.Column = Column;这一行代码表示什么意思
添加回答
举报
0/150
提交
取消