File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable */
1
+ // @flow
2
+
2
3
import { warn } from '../lib/util'
3
4
4
5
function getRealChild ( vnode : ?VNode ) : ?VNode {
5
- const compOptions : ? VNodeComponentOptions = vnode && vnode . componentOptions
6
+ const compOptions = vnode && vnode . componentOptions
6
7
if ( compOptions && compOptions . Ctor . options . abstract ) {
7
8
return getRealChild ( getFirstComponentChild ( compOptions . children ) )
8
9
} else {
@@ -31,7 +32,7 @@ export const camelize = (str: string): string => {
31
32
32
33
function extractTransitionData ( comp : Component ) : Object {
33
34
const data = { }
34
- const options : ComponentOptions = comp . $options
35
+ const options = comp . $options
35
36
// props
36
37
for ( const key in options . propsData ) {
37
38
data [ key ] = comp [ key ]
@@ -71,8 +72,7 @@ export default {
71
72
if ( children . length > 1 ) {
72
73
warn (
73
74
'<transition> can only be used on a single element. Use ' +
74
- '<transition-group> for lists.' ,
75
- this . $parent
75
+ '<transition-group> for lists.'
76
76
)
77
77
}
78
78
@@ -82,8 +82,7 @@ export default {
82
82
if ( mode && mode !== 'in-out' && mode !== 'out-in'
83
83
) {
84
84
warn (
85
- 'invalid <transition> mode: ' + mode ,
86
- this . $parent
85
+ 'invalid <transition> mode: ' + mode
87
86
)
88
87
}
89
88
You can’t perform that action at this time.
0 commit comments