kamyaw010

Results 2 issues of kamyaw010

我们的项目使用了react-activation的keep-alive组件,以及在keep-alive组件内使用material-table,如果material-table使用fixedColumn的话,固定列的遮罩表格会无法渲染。我们查阅了material-table的源代码,它会使用this.tableContainerDiv的scrollWidth去设定一个宽度,在正常情况下,这个宽度是有值的,但是如果使用keep-alive包裹material-table的话,这个宽度的值只有初始值0,不清楚是react-activation导致的还是material-table导致的问题。 代码类似 ![image](https://user-images.githubusercontent.com/1860731/140021564-f36761e6-1ae8-46c3-839c-27afe3ecb126.png) 正常情况 ![image](https://user-images.githubusercontent.com/1860731/140022632-c22679ce-bc51-4ef3-ac64-b4dd745e8d3f.png) 使用keep-alive会出现此情况 ![image](https://user-images.githubusercontent.com/1860731/140021662-930e6281-e602-43a0-95aa-5469f7b05dd4.png) 无法判断是activation问题还是material-table问题

I have some classes must be stored in a dictionary, but the code can not be uploaded, so I simplify the code and change it to below acts like the...