We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用 react-activation 来对 antd 中的 tabs 组件进行缓存,当 TabPane 中组件内容过多时,缓存会失效。当 TabPane 中组件内容不多时,缓存是正常的,并且滚动条位置也能保存下来。
<AliveScope> <Tabs hideAdd onChange={onChange} activeKey={activeKey} type="editable-card" onEdit={handEdit} > {panes.length > 0 && panes.map((pane: any) => ( <TabPane tab={pane.title} key={pane.key}> <KeepAlive> {pane.content} </KeepAlive> </TabPane> ))} </Tabs> ... </AliveScope>
The text was updated successfully, but these errors were encountered:
如果可以的话,希望提供一个在线示例,最近比较忙
Sorry, something went wrong.
No branches or pull requests
使用 react-activation 来对 antd 中的 tabs 组件进行缓存,当 TabPane 中组件内容过多时,缓存会失效。当 TabPane 中组件内容不多时,缓存是正常的,并且滚动条位置也能保存下来。
The text was updated successfully, but these errors were encountered: