docs: fix type in demo (#25590)

This commit is contained in:
xrk 2020-07-12 18:14:35 +08:00 committed by GitHub
parent 6e7e3dc6a9
commit ad7a37b836
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ class SortableTable extends React.Component {
} }
}; };
DragableBodyRow = ({ className, style, ...restProps }) => { DraggableBodyRow = ({ className, style, ...restProps }) => {
const { dataSource } = this.state; const { dataSource } = this.state;
// function findIndex base on Table rowKey props and should always be a right array index // function findIndex base on Table rowKey props and should always be a right array index
const index = dataSource.findIndex(x => x.index === restProps['data-row-key']); const index = dataSource.findIndex(x => x.index === restProps['data-row-key']);
@ -113,7 +113,7 @@ class SortableTable extends React.Component {
components={{ components={{
body: { body: {
wrapper: DraggableContainer, wrapper: DraggableContainer,
row: this.DragableBodyRow, row: this.DraggableBodyRow,
}, },
}} }}
/> />