mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +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;
|
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,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user