mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
docs: fix type in demo (#25590)
This commit is contained in:
parent
6e7e3dc6a9
commit
ad7a37b836
@ -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…
Reference in New Issue
Block a user