Open hoifong opened 5 years ago
+1,是react setState异步更新的问题,等PR进去就好了。 目前我项目里快速fix的方案是调用toggleRowSelection的时候走一步setTimeout,让组件走完渲染周期后,再toggleRowSelection。
for(const item of data) { setTimeout(() => { this.ref['table'].toggleRowSelection(item); }); }
+1,是react setState异步更新的问题,等PR进去就好了。 目前我项目里快速fix的方案是调用toggleRowSelection的时候走一步setTimeout,让组件走完渲染周期后,再toggleRowSelection。