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
#components-table-demo-drag-sorting .ant-table tr.drop-over-downward td {
border-bottom: 2px dashed #1890ff;
}
#components-table-demo-drag-sorting .ant-table tr.drop-over-upward td {
border-top: 2px dashed #1890ff;
}
2019-05-07 14:57:32 +08:00
```