-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(projects): add router-page.d.ts to git [将router-page.d.ts添加git提交]
- Loading branch information
1 parent
57bfe27
commit 7a58035
Showing
2 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,5 @@ stats.html | |
*.sw? | ||
|
||
/src/typings/components.d.ts | ||
/src/typings/router-page.d.ts | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
declare namespace RouterPage { | ||
/** 根路由 */ | ||
type RootRouteKey = 'root'; | ||
|
||
/** 未找到路由(捕获无效路径的路由) */ | ||
type NotFoundRouteKey = 'not-found'; | ||
|
||
/** 页面路由 */ | ||
type RouteKey = | ||
| '403' | ||
| '404' | ||
| '500' | ||
| 'about' | ||
| 'auth-demo' | ||
| 'auth-demo_permission' | ||
| 'auth-demo_super' | ||
| 'component' | ||
| 'component_button' | ||
| 'component_card' | ||
| 'component_table' | ||
| 'constant-page' | ||
| 'dashboard' | ||
| 'dashboard_analysis' | ||
| 'dashboard_workbench' | ||
| 'document' | ||
| 'document_naive' | ||
| 'document_project' | ||
| 'document_project-link' | ||
| 'document_vite' | ||
| 'document_vue' | ||
| 'exception' | ||
| 'exception_403' | ||
| 'exception_404' | ||
| 'exception_500' | ||
| 'function' | ||
| 'function_tab' | ||
| 'function_tab-detail' | ||
| 'function_tab-multi-detail' | ||
| 'login' | ||
| 'management' | ||
| 'management_auth' | ||
| 'management_role' | ||
| 'management_route' | ||
| 'management_user' | ||
| 'multi-menu' | ||
| 'multi-menu_first' | ||
| 'multi-menu_first_second' | ||
| 'multi-menu_first_second-new' | ||
| 'multi-menu_first_second-new_third' | ||
| 'not-found' | ||
| 'plugin' | ||
| 'plugin_charts' | ||
| 'plugin_charts_antv' | ||
| 'plugin_charts_echarts' | ||
| 'plugin_copy' | ||
| 'plugin_editor' | ||
| 'plugin_editor_markdown' | ||
| 'plugin_editor_quill' | ||
| 'plugin_icon' | ||
| 'plugin_map' | ||
| 'plugin_print' | ||
| 'plugin_swiper' | ||
| 'plugin_video'; | ||
|
||
/** 最后一级路由(该级路有对应的vue文件) */ | ||
type LastDegreeRouteKey = Extract<RouteKey, '403' | '404' | '500' | 'about' | 'auth-demo_permission' | 'auth-demo_super' | 'component_button' | 'component_card' | 'component_table' | 'constant-page' | 'dashboard_analysis' | 'dashboard_workbench' | 'document_naive' | 'document_project' | 'document_project-link' | 'document_vite' | 'document_vue' | 'exception_403' | 'exception_404' | 'exception_500' | 'function_tab' | 'function_tab-detail' | 'function_tab-multi-detail' | 'login' | 'management_auth' | 'management_role' | 'management_route' | 'management_user' | 'multi-menu_first_second' | 'multi-menu_first_second-new_third' | 'not-found' | 'plugin_charts_antv' | 'plugin_charts_echarts' | 'plugin_copy' | 'plugin_editor_markdown' | 'plugin_editor_quill' | 'plugin_icon' | 'plugin_map' | 'plugin_print' | 'plugin_swiper' | 'plugin_video'> | ||
} |