Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

滚动位置无法缓存 #277

Open
Echonessy opened this issue Jul 3, 2023 · 1 comment
Open

滚动位置无法缓存 #277

Echonessy opened this issue Jul 3, 2023 · 1 comment

Comments

@Echonessy
Copy link

{activePans.map((pane) => {
const key = ${pane.id}${pane.key};
const content = reactComponent
return (
<TabPane {...pane} id={key}>

<KeepAlive
saveScrollPosition={"true"}
name={${pane?.key}}
>
{content}



);
})}

@CJY0208
Copy link
Owner

CJY0208 commented Jul 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants