2017-11-17 18:53:07 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2021-08-03 18:18:38 +08:00
|
|
|
使用自定义元素,我们可以集成 [react-dnd](https://github.com/react-dnd/react-dnd) 来实现拖拽排序。
|
2017-11-17 18:53:07 +08:00
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
2021-08-03 18:18:38 +08:00
|
|
|
By using `components`, we can integrate table with [react-dnd](https://github.com/react-dnd/react-dnd) to implement drag sorting function.
|
2017-11-17 18:53:07 +08:00
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```css
|
2022-12-04 15:28:34 +08:00
|
|
|
#components-table-demo-drag-sorting .ant-table tr.drop-over-downward td {
|
2017-11-17 18:53:07 +08:00
|
|
|
border-bottom: 2px dashed #1890ff;
|
|
|
|
}
|
|
|
|
|
2022-12-04 15:28:34 +08:00
|
|
|
#components-table-demo-drag-sorting .ant-table tr.drop-over-upward td {
|
2017-11-17 18:53:07 +08:00
|
|
|
border-top: 2px dashed #1890ff;
|
|
|
|
}
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|