fix: table add support number key

pull/165/head
tjz 2018-06-06 22:02:31 +08:00
parent 92f1fcd0ff
commit c0a80f258a
1 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ export const SelectionCheckboxAllProps = {
export const SelectionBoxProps = {
store: Store,
type: RowSelectionType,
defaultSelection: PropTypes.arrayOf(PropTypes.string),
defaultSelection: PropTypes.arrayOf([PropTypes.string, PropTypes.number]),
rowIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
name: PropTypes.string,
disabled: PropTypes.bool,
@ -183,7 +183,7 @@ export const SelectionBoxProps = {
export const FilterMenuProps = {
locale: TableLocale,
selectedKeys: PropTypes.arrayOf(PropTypes.string),
selectedKeys: PropTypes.arrayOf([PropTypes.string, PropTypes.number]),
column: PropTypes.object,
confirmFilter: PropTypes.func,
prefixCls: PropTypes.string,