From c0a80f258a6a626e5186fe40e869051fec7bce2a Mon Sep 17 00:00:00 2001 From: tjz <415800467@qq.com> Date: Wed, 6 Jun 2018 22:02:31 +0800 Subject: [PATCH] fix: table add support number key --- components/table/interface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/table/interface.js b/components/table/interface.js index f1a348a13..2457ca4ac 100644 --- a/components/table/interface.js +++ b/components/table/interface.js @@ -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,