4

我想将react-sortable-hocreact-virtualized 的 Grid一起使用,其中行是可排序的。我不能使用列表,因为我有多个列,我不能将它与表格一起使用,因为我有太多列,因此需要水平滚动。

我面临的问题是 Grid 没有rowRenderer像 Table 或 List 那样的回调(它只有cellRendererand cellRenderer),因此我不知道要环绕什么SortableElement

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

4

1 回答 1

2

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

于 2018-01-22T14:59:59.603 回答