Browse Source

docs: fix type in demo (#25590)

pull/25589/head
xrk 4 years ago
committed by GitHub
parent
commit
ad7a37b836
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/table/demo/drag-sorting-handler.md

4
components/table/demo/drag-sorting-handler.md

@ -87,7 +87,7 @@ class SortableTable extends React.Component {
}
};
DragableBodyRow = ({ className, style, ...restProps }) => {
DraggableBodyRow = ({ className, style, ...restProps }) => {
const { dataSource } = this.state;
// 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']);
@ -113,7 +113,7 @@ class SortableTable extends React.Component {
components={{
body: {
wrapper: DraggableContainer,
row: this.DragableBodyRow,
row: this.DraggableBodyRow,
},
}}
/>

Loading…
Cancel
Save