File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ export default {
16
16
prefixCls : PropTypes . string . def ( '' ) ,
17
17
scrollAnimated : PropTypes . bool . def ( true ) ,
18
18
navWrapper : PropTypes . func . def ( arg => arg ) ,
19
+ activeKey : PropTypes . any ,
19
20
} ,
20
21
21
22
data ( ) {
22
23
this . offset = 0
23
- this . prevProps = this . $props
24
+ this . prevProps = { ... this . $props }
24
25
return {
25
26
next : false ,
26
27
prev : false ,
@@ -41,7 +42,7 @@ export default {
41
42
updated ( ) {
42
43
this . $nextTick ( ( ) => {
43
44
this . updatedCal ( this . prevProps )
44
- this . prevProps = this . $props
45
+ this . prevProps = { ... this . $props }
45
46
} )
46
47
} ,
47
48
@@ -68,11 +69,10 @@ export default {
68
69
this . setOffset ( 0 )
69
70
return
70
71
}
71
- const nextPrev = this . setNextPrev ( )
72
72
// wait next, prev show hide
73
73
/* eslint react/no-did-update-set-state:0 */
74
- if ( this . isNextPrevShown ( this . $data ) !== this . isNextPrevShown ( nextPrev ) ) {
75
- this . $foreceUpdate ( )
74
+ if ( this . isNextPrevShown ( this . $data ) !== this . isNextPrevShown ( this . setNextPrev ( ) ) ) {
75
+ this . $forceUpdate ( )
76
76
this . $nextTick ( ( ) => {
77
77
this . scrollToActiveTab ( )
78
78
} )
You can’t perform that action at this time.
0 commit comments