@vgbire/react-keep-alive
Version:
React keepAlive
23 lines (22 loc) • 522 B
TypeScript
import { CSSProperties, FC } from 'react';
import { ReactNode } from 'react';
type KeepAliveItems = {
key: string;
children: ReactNode;
};
interface KeepAliveProps {
activeKey?: string;
include?: string[];
exclude?: string[];
max?: number;
items?: KeepAliveItems[];
style?: CSSProperties;
className?: string;
styles?: {
wrapper?: CSSProperties;
content?: CSSProperties;
};
[key: string]: any;
}
export declare const KeepAlive: FC<KeepAliveProps>;
export {};