@daysnap/vue-use
Version:
daysnap vue hooks
17 lines (16 loc) • 645 B
TypeScript
interface UseKeepAliveState {
name: string;
position: number;
mode: 'auto' | 'custom';
}
type UseKeepAliveByPositionOptions = Partial<Omit<UseKeepAliveState, 'position'>> | boolean;
/**
* 结合 KeepAlive 组件,维护其 includes
* @deprecated 目前因为有路由会产生BUG,已经过期,后期版本会删除掉,请使用 useKeepAlive 方法
*/
export declare function useKeepAliveByPosition(options?: UseKeepAliveByPositionOptions): {
keepAliveList: import("vue").Ref<UseKeepAliveState[] | undefined>;
includes: import("vue").ComputedRef<string[]>;
keep: (data: UseKeepAliveState) => void;
};
export {};