element-pro-components
Version:
a component library for Vue 3 base on element-plus
7 lines (6 loc) • 322 B
TypeScript
import { Ref } from 'vue';
import { RouteRecordRaw } from 'vue-router';
/** Gets the routes from `vue-router` */
export declare const useSharedRoutes: () => Ref<RouteRecordRaw[], RouteRecordRaw[]>;
/** routes with no value will get `vue-router` routes */
export declare function useCurrentRoutes(): Ref<RouteRecordRaw[]>;