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-30 21:28:33 +08:00
|
|
|
#components-table-demo-drag-sorting tr.drop-over-downward td {
|
|
|
|
border-bottom: 2px dashed #1677ff !important;
|
2017-11-17 18:53:07 +08:00
|
|
|
}
|
|
|
|
|
2022-12-30 21:28:33 +08:00
|
|
|
#components-table-demo-drag-sorting tr.drop-over-upward td {
|
|
|
|
border-top: 2px dashed #1677ff !important;
|
2017-11-17 18:53:07 +08:00
|
|
|
}
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|