File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 63
63
<calendar-panel
64
64
v-if =" !range"
65
65
v-bind =" $attrs"
66
+ ref =" calendarPanel"
66
67
:type =" innerType"
67
68
:date-format =" innerDateFormat"
68
69
:value =" currentValue"
74
75
<calendar-panel
75
76
style =" box-shadow :1px 0 rgba (0 , 0 , 0 , .1 )"
76
77
v-bind =" $attrs"
78
+ ref =" calendarPanel"
77
79
:type =" innerType"
78
80
:date-format =" innerDateFormat"
79
81
:value =" currentValue[0]"
@@ -487,8 +489,7 @@ export default {
487
489
handleChange (event ) {
488
490
const value = event .target .value
489
491
if (this .editable && this .userInput !== null ) {
490
- const calendar = this .$children [0 ]
491
- const checkDate = calendar .isDisabledTime
492
+ const checkDate = this .$refs .calendarPanel .isDisabledTime
492
493
if (! value) {
493
494
this .clearDate ()
494
495
return
You can’t perform that action at this time.
0 commit comments