ant-design/components/table/demo/drag-sorting.md

18 lines
514 B
Markdown
Raw Normal View History

## zh-CN
2021-08-03 18:18:38 +08:00
使用自定义元素,我们可以集成 [react-dnd](https://github.com/react-dnd/react-dnd) 来实现拖拽排序。
## 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.
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;
}
2022-12-30 21:28:33 +08:00
#components-table-demo-drag-sorting tr.drop-over-upward td {
border-top: 2px dashed #1677ff !important;
}
2019-05-07 14:57:32 +08:00
```