Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
7dce50cb
提交
7dce50cb
authored
6月 19, 2021
作者:
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: typo
上级
d3d620f4
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
42 行增加
和
52 行删除
+42
-52
menuModel.ts
src/api/sys/model/menuModel.ts
+1
-1
index.vue
src/layouts/default/content/index.vue
+0
-2
useContentContext.ts
src/layouts/default/content/useContentContext.ts
+0
-2
basic.ts
src/router/routes/basic.ts
+2
-2
types.ts
src/router/types.ts
+2
-45
index.d.ts
types/index.d.ts
+1
-0
store.d.ts
types/store.d.ts
+0
-0
utils.d.ts
types/utils.d.ts
+0
-0
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
{
export
interface
RouteItem
{
path
:
string
;
path
:
string
;
component
:
any
;
component
:
any
;
...
...
src/layouts/default/content/index.vue
浏览文件 @
7dce50cb
...
@@ -5,9 +5,7 @@
...
@@ -5,9 +5,7 @@
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'vue'
;
import
{
defineComponent
}
from
'vue'
;
import
PageLayout
from
'/@/layouts/page/index.vue'
;
import
PageLayout
from
'/@/layouts/page/index.vue'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
useDesign
}
from
'/@/hooks/web/useDesign'
;
import
{
useRootSetting
}
from
'/@/hooks/setting/useRootSetting'
;
import
{
useRootSetting
}
from
'/@/hooks/setting/useRootSetting'
;
import
{
useTransitionSetting
}
from
'/@/hooks/setting/useTransitionSetting'
;
import
{
useTransitionSetting
}
from
'/@/hooks/setting/useTransitionSetting'
;
...
...
src/layouts/default/content/useContentContext.ts
浏览文件 @
7dce50cb
import
type
{
InjectionKey
,
ComputedRef
}
from
'vue'
;
import
type
{
InjectionKey
,
ComputedRef
}
from
'vue'
;
import
{
createContext
,
useContext
}
from
'/@/hooks/core/useContext'
;
import
{
createContext
,
useContext
}
from
'/@/hooks/core/useContext'
;
import
{}
from
'vue'
;
export
interface
ContentContextProps
{
export
interface
ContentContextProps
{
contentHeight
:
ComputedRef
<
number
>
;
contentHeight
:
ComputedRef
<
number
>
;
setPageHeight
:
(
height
:
number
)
=>
Promise
<
void
>
;
setPageHeight
:
(
height
:
number
)
=>
Promise
<
void
>
;
...
...
src/router/routes/basic.ts
浏览文件 @
7dce50cb
...
@@ -47,7 +47,7 @@ export const REDIRECT_ROUTE: AppRouteRecordRaw = {
...
@@ -47,7 +47,7 @@ export const REDIRECT_ROUTE: AppRouteRecordRaw = {
export
const
ERROR_LOG_ROUTE
:
AppRouteRecordRaw
=
{
export
const
ERROR_LOG_ROUTE
:
AppRouteRecordRaw
=
{
path
:
'/error-log'
,
path
:
'/error-log'
,
name
:
'
e
rrorLog'
,
name
:
'
E
rrorLog'
,
component
:
LAYOUT
,
component
:
LAYOUT
,
meta
:
{
meta
:
{
title
:
'ErrorLog'
,
title
:
'ErrorLog'
,
...
@@ -56,7 +56,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
...
@@ -56,7 +56,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
children
:
[
children
:
[
{
{
path
:
'list'
,
path
:
'list'
,
name
:
'
e
rrorLogList'
,
name
:
'
E
rrorLogList'
,
component
:
()
=>
import
(
'/@/views/sys/error-log/index.vue'
),
component
:
()
=>
import
(
'/@/views/sys/error-log/index.vue'
),
meta
:
{
meta
:
{
title
:
t
(
'routes.basic.errorLogList'
),
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
{
RoleEnum
}
from
'/@/enums/roleEnum'
;
import
{
defineComponent
}
from
'vue'
;
import
{
defineComponent
}
from
'vue'
;
export
type
Component
<
T
extends
any
=
any
>
=
export
type
Component
<
T
extends
any
=
any
>
=
...
@@ -8,49 +7,6 @@ export type Component<T extends any = any> =
...
@@ -8,49 +7,6 @@ export type Component<T extends any = any> =
|
(()
=>
Promise
<
typeof
import
(
'*.vue'
)
>
)
|
(()
=>
Promise
<
typeof
import
(
'*.vue'
)
>
)
|
(()
=>
Promise
<
T
>
);
|
(()
=>
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
// @ts-ignore
export
interface
AppRouteRecordRaw
extends
Omit
<
RouteRecordRaw
,
'meta'
>
{
export
interface
AppRouteRecordRaw
extends
Omit
<
RouteRecordRaw
,
'meta'
>
{
name
:
string
;
name
:
string
;
...
@@ -61,6 +17,7 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
...
@@ -61,6 +17,7 @@ export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
props
?:
Recordable
;
props
?:
Recordable
;
fullPath
?:
string
;
fullPath
?:
string
;
}
}
export
interface
MenuTag
{
export
interface
MenuTag
{
type
?:
'primary'
|
'error'
|
'warn'
|
'success'
;
type
?:
'primary'
|
'error'
|
'warn'
|
'success'
;
content
?:
string
;
content
?:
string
;
...
...
types/index.d.ts
浏览文件 @
7dce50cb
...
@@ -11,6 +11,7 @@ declare type RefType<T> = T | null;
...
@@ -11,6 +11,7 @@ declare type RefType<T> = T | null;
declare
type
LabelValueOptions
=
{
declare
type
LabelValueOptions
=
{
label
:
string
;
label
:
string
;
value
:
any
;
value
:
any
;
[
key
:
string
]:
string
|
number
|
boolean
;
}[];
}[];
declare
type
EmitType
=
(
event
:
string
,
...
args
:
any
[])
=>
void
;
declare
type
EmitType
=
(
event
:
string
,
...
args
:
any
[])
=>
void
;
...
...
types/store.ts
→
types/store.
d.
ts
浏览文件 @
7dce50cb
File moved
types/utils.ts
→
types/utils.
d.
ts
浏览文件 @
7dce50cb
File moved
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
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论