Skip to content

Commit

Permalink
fix: keep-alive page height
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Jul 2, 2021
1 parent 7f00807 commit ff0ea41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/keep-alive/src/utils/getKeepAliveLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ export default class BasicLayout extends React.PureComponent<PageProps> {
return (
<>
<div
style={{ position: 'relative' }}
hidden={!showKeepAlive}
className="rumtime-keep-alive-layout"
className="alita-page rumtime-keep-alive-layout"
>
{this.alivePathnames.map(curPathname => {
const currentView = getView(curPathname, this.keepAliveViewMap);
Expand All @@ -114,7 +113,7 @@ export default class BasicLayout extends React.PureComponent<PageProps> {
) : null;
})}
</div>
<div hidden={showKeepAlive} className="rumtime-keep-alive-layout-no">
<div hidden={showKeepAlive} className="alita-page rumtime-keep-alive-layout-no">
{!showKeepAlive && this.props.children}
</div>
</>
Expand Down

0 comments on commit ff0ea41

Please sign in to comment.