Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dr.Disrespect
vue-vben-admin
提交
7dce50cb
V
vue-vben-admin
项目概览
Dr.Disrespect
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7dce50cb
编写于
6月 19, 2021
作者:
V
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: typo
上级
d3d620f4
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
42 addition
and
52 deletion
+42
-52
src/api/sys/model/menuModel.ts
src/api/sys/model/menuModel.ts
+1
-1
src/layouts/default/content/index.vue
src/layouts/default/content/index.vue
+0
-2
src/layouts/default/content/useContentContext.ts
src/layouts/default/content/useContentContext.ts
+0
-2
src/router/routes/basic.ts
src/router/routes/basic.ts
+2
-2
src/router/types.ts
src/router/types.ts
+2
-45
types/index.d.ts
types/index.d.ts
+1
-0
types/store.d.ts
types/store.d.ts
+0
-0
types/utils.d.ts
types/utils.d.ts
+0
-0
types/vue-router.d.ts
types/vue-router.d.ts
+36
-0
未找到文件。
src/api/sys/model/menuModel.ts
浏览文件 @
7dce50cb
import
{
RouteMeta
}
from
'
/@/router/types
'
;
import
type
{
RouteMeta
}
from
'
vue-router
'
;
export
interface
RouteItem
{
path
:
string
;
component
:
any
;
...
...
src/layouts/default/content/index.vue
浏览文件 @
7dce50cb
...
...
@@ -5,9 +5,7 @@
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'
vue
'
;
import
PageLayout
from
'
/@/layouts/page/index.vue
'
;
import
{
useDesign
}
from
'
/@/hooks/web/useDesign
'
;
import
{
useRootSetting
}
from
'
/@/hooks/setting/useRootSetting
'
;
import
{
useTransitionSetting
}
from
'
/@/hooks/setting/useTransitionSetting
'
;
...
...
src/layouts/default/content/useContentContext.ts
浏览文件 @
7dce50cb
import
type
{
InjectionKey
,
ComputedRef
}
from
'
vue
'
;
import
{
createContext
,
useContext
}
from
'
/@/hooks/core/useContext
'
;
import
{}
from
'
vue
'
;
export
interface
ContentContextProps
{
contentHeight
:
ComputedRef
<
number
>
;
setPageHeight
:
(
height
:
number
)
=>
Promise
<
void
>
;
...
...
src/router/routes/basic.ts
浏览文件 @
7dce50cb
...
...
@@ -47,7 +47,7 @@ export const REDIRECT_ROUTE: AppRouteRecordRaw = {
export
const
ERROR_LOG_ROUTE
:
AppRouteRecordRaw
=
{
path
:
'
/error-log
'
,
name
:
'
e
rrorLog
'
,
name
:
'
E
rrorLog
'
,
component
:
LAYOUT
,
meta
:
{
title
:
'
ErrorLog
'
,
...
...
@@ -56,7 +56,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
children
:
[
{
path
:
'
list
'
,
name
:
'
e
rrorLogList
'
,
name
:
'
E
rrorLogList
'
,
component
:
()
=>
import
(
'
/@/views/sys/error-log/index.vue
'
),
meta
:
{
title
:
t
(
'
routes.basic.errorLogList
'
),
...
...
src/router/types.ts
浏览文件 @
7dce50cb
import
type
{
RouteRecordRaw
}
from
'
vue-router
'
;
import
type
{
RouteRecordRaw
,
RouteMeta
}
from
'
vue-router
'
;
import
{
RoleEnum
}
from
'
/@/enums/roleEnum
'
;
import
{
defineComponent
}
from
'
vue
'
;
export
type
Component
<
T
extends
any
=
any
>
=
...
...
@@ -8,49 +7,6 @@ export type Component<T extends any = any> =
|
(()
=>
Promise
<
typeof
import
(
'
*.vue
'
)
>
)
|
(()
=>
Promise
<
T
>
);
export
interface
RouteMeta
{
// title
title
:
string
;
// Whether to ignore permissions
ignoreAuth
?:
boolean
;
// role info
roles
?:
RoleEnum
[];
// Whether not to cache
ignoreKeepAlive
?:
boolean
;
// Is it fixed on tab
affix
?:
boolean
;
// icon on tab
icon
?:
string
;
frameSrc
?:
string
;
// current page transition
transitionName
?:
string
;
// Whether the route has been dynamically added
hideBreadcrumb
?:
boolean
;
// Hide submenu
hideChildrenInMenu
?:
boolean
;
// Carrying parameters
carryParam
?:
boolean
;
// Used internally to mark single-level menus
single
?:
boolean
;
// Currently active menu
currentActiveMenu
?:
string
;
// Never show in tab
hideTab
?:
boolean
;
// Never show in menu
hideMenu
?:
boolean
;
isLink
?:
boolean
;
}
// @ts-ignore
export
interface
AppRouteRecordRaw
extends
Omit
<
RouteRecordRaw
,
'
meta
'
>
{
name
:
string
;
...
...
@@ -61,6 +17,7 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
props
?:
Recordable
;
fullPath
?:
string
;
}
export
interface
MenuTag
{
type
?:
'
primary
'
|
'
error
'
|
'
warn
'
|
'
success
'
;
content
?:
string
;
...
...
types/index.d.ts
浏览文件 @
7dce50cb
...
...
@@ -11,6 +11,7 @@ declare type RefType<T> = T | null;
declare
type
LabelValueOptions
=
{
label
:
string
;
value
:
any
;
[
key
:
string
]:
string
|
number
|
boolean
;
}[];
declare
type
EmitType
=
(
event
:
string
,
...
args
:
any
[])
=>
void
;
...
...
types/store.ts
→
types/store.
d.
ts
浏览文件 @
7dce50cb
文件已移动
types/utils.ts
→
types/utils.
d.
ts
浏览文件 @
7dce50cb
文件已移动
types/vue-router.d.ts
0 → 100644
浏览文件 @
7dce50cb
export
{};
declare
module
'
vue-router
'
{
interface
RouteMeta
extends
Record
<
string
|
number
|
symbol
,
unknown
>
{
// title
title
:
string
;
// Whether to ignore permissions
ignoreAuth
?:
boolean
;
// role info
roles
?:
RoleEnum
[];
// Whether not to cache
ignoreKeepAlive
?:
boolean
;
// Is it fixed on tab
affix
?:
boolean
;
// icon on tab
icon
?:
string
;
frameSrc
?:
string
;
// current page transition
transitionName
?:
string
;
// Whether the route has been dynamically added
hideBreadcrumb
?:
boolean
;
// Hide submenu
hideChildrenInMenu
?:
boolean
;
// Carrying parameters
carryParam
?:
boolean
;
// Used internally to mark single-level menus
single
?:
boolean
;
// Currently active menu
currentActiveMenu
?:
string
;
// Never show in tab
hideTab
?:
boolean
;
// Never show in menu
hideMenu
?:
boolean
;
isLink
?:
boolean
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录