clauderic / react-sortable-hoc

A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable list✌️
https://clauderic.github.io/react-sortable-hoc/
MIT License
10.82k stars 982 forks source link

能结合antd进行使用么 #672

Open 18355166248 opened 4 years ago

18355166248 commented 4 years ago

能结合antd进行使用么 antd的表格渲染是传入一个prop进行渲染

Haley-Zhu commented 4 years ago

Do you means drag the column to reorder the display of columns of antd Table?

hejiaqian commented 4 years ago

您是否意味着拖动列以重新排序antd表的列显示?

有没有demo哦

sky172839465 commented 4 years ago

Here is a demo, with collection feature, try it! Antd have docs tell you how to setup antd table with react-sortable-hoc. It also work in antd v3.

out

Play ground

stan900814 commented 2 years ago

https://github.com/clauderic/react-sortable-hoc/issues/672#issuecomment-694601085

Do you means drag the column to reorder the display of columns of antd Table?

@Haley-Zhu 我最近遇到了这个需求,antd的官网上只有拖动行进行排序的例子,我看了下这个项目也只有结合 react-virtualized的例子,不清楚能不能结合antd使用,你有试过吗,如果可以能提供一个demo吗