使用react-sortable-hoc与react-virtualized Grid

我想在
react-virtualized’s Grid中使用
react-sortable-hoc,其中行是可排序的.我不能使用
List,因为我有多列,我不能用它与
Table,因为我有太多列,因此需要水平滚动.

我面临的问题是Grid没有像表或列表那样的rowRenderer回调(它只有cellRenderercellRenderer),因此我不知道包装SortableElement的内容.

我会很感激这种用法的任何想法或例子吗?

最佳答案 我最终将其作为cellRangeRenderer实现 – 请参阅我对此GitHub问题的评论:
https://github.com/clauderic/react-sortable-hoc/issues/295#issuecomment-344070823

点赞