We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我使用react-sortable-hoc 制作可拖拽排序列, 但是发现cell
components={{ header: { row: DraggableContainer, cell: Cell, }, }} const Th = SortableElement((props) => <th {...props} />) const Cell = ({ className, style, ...restProps }) => { console.log('restProps', restProps) // 需要一个唯一的值 给index return <Th index={JSON.stringify(restProps.children)} {...restProps} /> }
The text was updated successfully, but these errors were encountered:
这个pr我在ant-design也看到了,如果他们官方确认了这个issue,我可以加个列的index
Sorry, something went wrong.
好的, 多谢, 不过还是不太懂这个Cell, 话说自定义渲染, 我需要自己渲染title 才对吧 , 不知道为啥title自己渲染了, 而且cell 给出来的 title属性是空的 很懵逼,不知道怎么用
我理解的是,不是用title渲染的,使用children,如果想自己定义title内容渲染,可以用onHeaderCell函数传title, 然后这样用,<th {...restProps} >{title}</th>
<th {...restProps} >{title}</th>
No branches or pull requests
我使用react-sortable-hoc 制作可拖拽排序列, 但是发现cell
The text was updated successfully, but these errors were encountered: