feat: RouterStack
Some checks failed
CI / cache-and-install (push) Failing after 1m1s

This commit is contained in:
严浩
2024-08-08 15:13:35 +08:00
parent 5c11b15c1b
commit 2798254dab
18 changed files with 272 additions and 308 deletions

21
src/types/router.ts Normal file
View File

@ -0,0 +1,21 @@
import 'vue-router'
// 为了确保这个文件被当作一个模块,添加至少一个 `export` 声明
export { }
// declare module 'vue-router' {
// interface RouteMeta {
// // fromList?: RouteLocationNormalized[]
// }
// interface Router {
// stack: {
// // list: RouteLocationNormalizedLoaded[]
// // currentStackIndex: number
// }
// }
// interface RouteLocationNormalizedGeneric {
// // from: RouteLocationNormalizedLoaded
// // stackIndex: number
// }
// }

12
src/types/shims.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
export {}
declare global {
const $__DEV__: boolean
}
/* declare module 'vue' {
export interface ComponentCustomProperties {
$__DEV__: boolean;
}
}
*/