Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
7dce50cb
Commit
7dce50cb
authored
Jun 19, 2021
by
Vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: typo
parent
d3d620f4
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
52 deletions
+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
No files found.
src/api/sys/model/menuModel.ts
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
7dce50cb
File moved
types/utils.ts
→
types/utils.
d.
ts
View file @
7dce50cb
File moved
types/vue-router.d.ts
0 → 100644
View file @
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment