File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export default {
11
11
return {
12
12
fade: this .$parent .fade ,
13
13
animate: false ,
14
+ active: false
14
15
}
15
16
},
16
17
props: {
@@ -22,10 +23,6 @@ export default {
22
23
type: String ,
23
24
default: ' '
24
25
},
25
- active: {
26
- type: Boolean ,
27
- default: false
28
- },
29
26
disabled: {
30
27
type: Boolean ,
31
28
default: false
Original file line number Diff line number Diff line change 71
71
if (activeTab !== - 1 ) {
72
72
// setting animate to false will trigger fade out effect
73
73
this .items [activeTab].active = false ;
74
- this .$children [activeTab]. $set ( ' animate' , false );
75
- this .$children [activeTab]. $set ( ' active' , false )
74
+ this .$set ( this . $ children [activeTab], ' animate' , false );
75
+ this .$set ( this . $ children [activeTab], ' active' , false );
76
76
}
77
77
78
78
// set new active tab and animate (if fade flag is set to true)
79
- this .$children [index]. $set ( ' active' , true );
79
+ this .$set ( this . $ children [index], ' active' , true );
80
80
this ._tabAnimation = setTimeout (() => {
81
81
// setting animate to true will trigger fade in effect
82
82
this .items [index].active = true ;
83
- this .$children [index]. $set ( ' animate' , true );
83
+ this .$set ( this . $ children [index], ' animate' , true );
84
84
this .$root .$emit (' changed::tab' , this .items [index].id )
85
85
}, this .fade ? TRANSITION_DURATION : 0 )
86
86
},
You can’t perform that action at this time.
0 commit comments