Add propTypes

This commit is contained in:
afc163 2015-12-10 15:25:48 +08:00
parent 58845101c2
commit 41c60f6469

View File

@ -38,6 +38,7 @@ let AntTable = React.createClass({
getDefaultProps() {
return {
dataSource: [],
prefixCls: 'ant-table',
useFixedHeader: false,
rowSelection: null,
@ -52,6 +53,15 @@ let AntTable = React.createClass({
propTypes: {
dataSource: React.PropTypes.array,
prefixCls: React.PropTypes.string,
useFixedHeader: React.PropTypes.bool,
rowSelection: React.PropTypes.object,
className: React.PropTypes.string,
size: React.PropTypes.string,
loading: React.PropTypes.bool,
bordered: React.PropTypes.bool,
onChange: React.PropTypes.func,
locale: React.PropTypes.object,
},
getDefaultSelection() {