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
关于预览一列自适应宽度的列的疑问,如果使用ProTable, 或者自定义实现了控制列的显隐等动态调整列的功能,就会导致预定义的一些列宽,可能就不满足至少有一列是自适应的的前提了,由于表格的自适应,导致拖拽句柄有偏移了;
能否换个实现方式呢? 如,列总宽度 小于 表格容器的宽度时,每列宽等比放大,当列总宽度 大于等于 表格容器的宽度时,按列总宽来,表格出现横向滚动条。
或者默认让句柄根据列宽,推拽时再计算当前列的宽度?
The text was updated successfully, but these errors were encountered:
有很多边缘情况,不太好做这个功能 最好是在用户端(比如你这边),判断是否满足至少一列自适应,没有设置宽度,如果不满足,你控制某一列自适应。 我这边控制的话,侵入会比较强
Sorry, something went wrong.
好的,谢谢你。
关于宽度缓存的问题,如果我把其中一列的宽度设置为undefined了,还需要读取缓存的吗?
https://github.com/hemengke1997/use-antd-resizable-header/blob/master/src/useAntdResizableHeader.tsx#L154 https://github.com/hemengke1997/use-antd-resizable-header/blob/master/src/useAntdResizableHeader.tsx#L165
不知道下面这个是否合适: cache && col?.width ? widthCache.current?.get(col[GETKEY] ?? '')?.width || col?.width : col?.width,
cache && col?.width ? widthCache.current?.get(col[GETKEY] ?? '')?.width || col?.width : col?.width,
No branches or pull requests
关于预览一列自适应宽度的列的疑问,如果使用ProTable, 或者自定义实现了控制列的显隐等动态调整列的功能,就会导致预定义的一些列宽,可能就不满足至少有一列是自适应的的前提了,由于表格的自适应,导致拖拽句柄有偏移了;
能否换个实现方式呢? 如,列总宽度 小于 表格容器的宽度时,每列宽等比放大,当列总宽度 大于等于 表格容器的宽度时,按列总宽来,表格出现横向滚动条。
或者默认让句柄根据列宽,推拽时再计算当前列的宽度?
The text was updated successfully, but these errors were encountered: