UNPKG

vue3-tabor

Version:

Vue 3 routing tabs with keepAlive support, browser-like tab navigation for Vue applications

23 lines (21 loc) 687 B
import { Tab, TabKey } from '../../types'; import { RouteLocationNormalized } from 'vue-router'; /** * create tabId * @param {TabKey} tabKey * @param {RouteLocationNormalized} route * @returns {TabId} tabId */ export declare const createTabId: (tabKey: TabKey, route: RouteLocationNormalized) => string | undefined; /** * create tab * @param {TabKey} tabKey * @returns {Tab} tab */ export declare const createTab: (router: RouteLocationNormalized) => Tab | undefined; /** * get tabId by route * @param {RouteLocationNormalizedLoaded} route * @returns {TabId|undefined} tabId */ export declare const getTabIdByRoute: (router: RouteLocationNormalized) => string | undefined;