react-activation icon indicating copy to clipboard operation
react-activation copied to clipboard

滚动位置无法缓存

Open Echonessy opened this issue 2 years ago • 1 comments

{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> ); })}

Echonessy avatar Jul 03 '23 10:07 Echonessy

如果滚动容器不在 content 中,请使用 saveScrollPosition="screen"

CJY0208 avatar Jul 03 '23 13:07 CJY0208