File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,12 @@ export default {
74
74
" mixins" ,
75
75
[" provide" , " inject" ],
76
76
" ROUTER_GUARDS" ,
77
+ " layout" ,
77
78
" middleware" ,
78
79
" validate" ,
80
+ " scrollToTop" ,
81
+ " transition" ,
82
+ " loading" ,
79
83
" inheritAttrs" ,
80
84
" model" ,
81
85
[" props" , " propsData" ],
@@ -84,18 +88,14 @@ export default {
84
88
" fetch" ,
85
89
" asyncData" ,
86
90
" data" ,
91
+ " head" ,
87
92
" computed" ,
88
93
" watch" ,
89
94
" watchQuery" ,
90
95
" LIFECYCLE_HOOKS" ,
91
96
" methods" ,
92
- " head" ,
93
- " layout" ,
94
97
[" template" , " render" ],
95
- " renderError" ,
96
- " transition" ,
97
- " loading" ,
98
- " scrollToTop"
98
+ " renderError"
99
99
]
100
100
}]
101
101
}
Original file line number Diff line number Diff line change @@ -30,10 +30,14 @@ const defaultOrder = [
30
30
'mixins' ,
31
31
[ 'provide' , 'inject' ] , // for Vue.js 2.2.0+
32
32
33
- // Page Validation (determines if the router request is suitable )
33
+ // Page Options (component rendered as a router page )
34
34
'ROUTER_GUARDS' , // for Vue Router
35
+ 'layout' , // for Nuxt
35
36
'middleware' , // for Nuxt
36
37
'validate' , // for Nuxt
38
+ 'scrollToTop' , // for Nuxt
39
+ 'transition' , // for Nuxt
40
+ 'loading' , // for Nuxt
37
41
38
42
// Interface (the interface to the component)
39
43
'inheritAttrs' ,
@@ -51,6 +55,7 @@ const defaultOrder = [
51
55
'fetch' , // for Nuxt
52
56
'asyncData' , // for Nuxt
53
57
'data' ,
58
+ 'head' , // for Nuxt
54
59
'computed' ,
55
60
56
61
// Events (callbacks triggered by reactive events)
@@ -62,13 +67,8 @@ const defaultOrder = [
62
67
'methods' ,
63
68
64
69
// Rendering (the declarative description of the component output)
65
- 'head' , // for Nuxt
66
- 'layout' , // for Nuxt
67
70
[ 'template' , 'render' ] ,
68
- 'renderError' ,
69
- 'transition' , // for Nuxt
70
- 'loading' , // for Nuxt
71
- 'scrollToTop' // for Nuxt
71
+ 'renderError'
72
72
]
73
73
74
74
const groups = {
You can’t perform that action at this time.
0 commit comments