react-activation
react-activation copied to clipboard
滚动位置无法缓存
{activePans.map((pane) => {
const key = ${pane.id}${pane.key};
const content = reactComponent
return (
<TabPane {...pane} id={key}>
<CatchError>
<KeepAlive
saveScrollPosition={"true"}
name={${pane?.key}}
>
{content}
</KeepAlive>
</CatchError>
</TabPane>
);
})}
如果滚动容器不在 content 中,请使用 saveScrollPosition="screen"