File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export interface PathToRegexpOptions {
9292interface _RouteConfigBase {
9393 path : string
9494 name ?: string
95+ children ?: RouteConfig [ ]
9596 redirect ?: RedirectOption
9697 alias ?: string | string [ ]
9798 meta ?: any
@@ -107,7 +108,6 @@ interface RouteConfigSingleView extends _RouteConfigBase {
107108
108109interface RouteConfigMultipleViews extends _RouteConfigBase {
109110 components ?: Dictionary < Component >
110- children ?: RouteConfig [ ]
111111 props ?: Dictionary < boolean | Object | RoutePropsFunction >
112112}
113113
Original file line number Diff line number Diff line change @@ -67,6 +67,16 @@ const router = new VueRouter({
6767 } )
6868 } ,
6969 routes : [
70+ {
71+ path : '/foo' ,
72+ component : Home ,
73+ children : [ { path : '' , component : Home } ]
74+ } ,
75+ {
76+ path : '/foo' ,
77+ components : { default : Home } ,
78+ children : [ { path : '' , component : Home } ]
79+ } ,
7080 {
7181 path : '/' ,
7282 name : 'home' ,
You can’t perform that action at this time.
0 commit comments