Skip to content

Commit

Permalink
docs: add multi parents, issue, #105
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Oct 12, 2020
1 parent ca1831d commit 3f40102
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/docs/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<li>
<router-link to="/parent">Parent</router-link>
</li>
<li>
<router-link to="/multi-parents">Multi Parents</router-link>
</li>
</ul>
<ul>
<li>
Expand Down
11 changes: 11 additions & 0 deletions src/docs/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const routes: Array<RouteConfig> = [
},
{
path: '/parent',
name: 'parent',
component: { template: '<h2>Parent</h2>' },
meta: {
breadcrumb: {
Expand All @@ -117,6 +118,16 @@ const routes: Array<RouteConfig> = [
}
},
},
{
path: '/multi-parents',
component: { template: '<h2>Multi Parents</h2>' },
meta: {
breadcrumb: {
label: 'Multi Parents',
parent: 'parent'
}
},
},
{
name: 'dynamic-parent',
path: '/dynamic-parent',
Expand Down

0 comments on commit 3f40102

Please sign in to comment.