congxiaobai
congxiaobai
Use webpakck5 ,I find that webpakck5 could parse both ESM and Commonjs without finger out the moudle type explicitly. I really curious about the what happened under the hood ....
调试的一些问题
运行yarn start:example之后,想调试dooringx-lib的代码,请问要如何配置呢?
IDE调试
按照官方的教程,helloworld 的例子可以在webstrom上调试(--debug 更换为--inspect),但是chat 例子无论如何也无法调试。 也没有报错,但是打断点就没有作用。 环境: pomelo 2.2.5 python 2.7 node 8.9.3 westrom 2018.1
在使用table sticky时,部分场景下发现  经排查,发现在计算scrollbar是否需要显示时,table的高度与实际渲染的高度不一致导致的。 文件位置rc-table/es/stickyScrollBar.js : onContainerScroll 推测是由于table数据再短时间内发生了变化,计算时只用了第一次传入的table数据。 经修改,加入以下代码可以解决问题 ``` const bodyHeight = scrollBodyRef.current?.offsetHeight ||0 React.useEffect(()=>{ if(bodyHeight){ onContainerScroll(); } },[bodyHeight]) ```