Skip to content

Commit 9b7f5c2

Browse files
committed
fix: table add support number key
1 parent dd907ab commit 9b7f5c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/table/interface.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export const SelectionCheckboxAllProps = {
169169
export const SelectionBoxProps = {
170170
store: Store,
171171
type: RowSelectionType,
172-
defaultSelection: PropTypes.arrayOf(PropTypes.string),
172+
defaultSelection: PropTypes.arrayOf([PropTypes.string, PropTypes.number]),
173173
rowIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
174174
name: PropTypes.string,
175175
disabled: PropTypes.bool,
@@ -183,7 +183,7 @@ export const SelectionBoxProps = {
183183

184184
export const FilterMenuProps = {
185185
locale: TableLocale,
186-
selectedKeys: PropTypes.arrayOf(PropTypes.string),
186+
selectedKeys: PropTypes.arrayOf([PropTypes.string, PropTypes.number]),
187187
column: PropTypes.object,
188188
confirmFilter: PropTypes.func,
189189
prefixCls: PropTypes.string,

0 commit comments

Comments
 (0)