in the tab of antd
multiple tab pages reuse a component with onscroll control class name changing state control class name
but open the 1tab page to scroll, have the class name,
then open 2, also have,
, you won"t add the class name dynamically. Ask what the problem is
.has solved the problem that window.onscroll should be changed to addeventlistener