Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
packages
pro-layout
Commits
32ebd126
Commit
32ebd126
authored
Feb 23, 2021
by
lihxhit
Committed by
言肆
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改BreadcrumbProps itemRender类型
parent
b8580bd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
RouteContext.tsx
src/RouteContext.tsx
+6
-7
No files found.
src/RouteContext.tsx
View file @
32ebd126
...
...
@@ -2,7 +2,6 @@ import { InjectionKey, VNodeChild } from 'vue';
import
{
createContext
,
useContext
}
from
'./hooks/context'
;
import
{
MenuDataItem
}
from
'./typings'
;
import
{
PureSettings
}
from
'./defaultSettings'
;
export
interface
Route
{
path
:
string
;
breadcrumbName
:
string
;
...
...
@@ -14,12 +13,12 @@ export interface BreadcrumbProps {
routes
?:
Route
[];
params
?:
any
;
separator
?:
VNodeChild
;
itemRender
?:
(
route
:
Route
,
params
:
any
,
routes
:
Array
<
Route
>
,
paths
:
Array
<
string
>
,
)
=>
VNodeChild
;
itemRender
?:
(
opts
:
{
route
:
Route
;
params
:
any
;
routes
:
Array
<
Route
>
;
paths
:
Array
<
string
>
;
}
)
=>
VNodeChild
;
}
export
type
BreadcrumbListReturn
=
Pick
<
...
...
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