File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ function generateCalendar<
86
86
) ;
87
87
}
88
88
89
- const Calendar = defineComponent ( {
89
+ const Calendar = defineComponent < Props > ( {
90
90
name : 'ACalendar' ,
91
91
inheritAttrs : false ,
92
92
props : {
@@ -120,7 +120,7 @@ function generateCalendar<
120
120
onPanelChange : { type : Function as PropType < Props [ 'onPanelChange' ] > , default : undefined } ,
121
121
onSelect : { type : Function as PropType < Props [ 'onSelect' ] > , default : undefined } ,
122
122
valueFormat : { type : String , default : undefined } ,
123
- } ,
123
+ } as any ,
124
124
slots : Object as CustomSlotsType < {
125
125
dateFullCellRender ?: { current : DateType } ;
126
126
dateCellRender ?: { current : DateType } ;
Original file line number Diff line number Diff line change @@ -85,15 +85,15 @@ function createTimePicker<
85
85
} ) ;
86
86
87
87
const { TimePicker : InternalTimePicker , RangePicker : InternalRangePicker } = DatePicker as any ;
88
- const TimePicker = defineComponent ( {
88
+ const TimePicker = defineComponent < DTimePickerProps > ( {
89
89
name : 'ATimePicker' ,
90
90
inheritAttrs : false ,
91
91
props : {
92
- ...commonProps < DateType > ( ) ,
93
- ...datePickerProps < DateType > ( ) ,
92
+ ...commonProps < any > ( ) ,
93
+ ...datePickerProps < any > ( ) ,
94
94
...timePickerProps ( ) ,
95
95
addon : { type : Function } ,
96
- } ,
96
+ } as any ,
97
97
slots : Object as CustomSlotsType < {
98
98
addon ?: any ;
99
99
renderExtraFooter ?: any ;
@@ -163,15 +163,15 @@ function createTimePicker<
163
163
} ,
164
164
} ) ;
165
165
166
- const TimeRangePicker = defineComponent ( {
166
+ const TimeRangePicker = defineComponent < DTimeRangePickerProps > ( {
167
167
name : 'ATimeRangePicker' ,
168
168
inheritAttrs : false ,
169
169
props : {
170
- ...commonProps < DateType > ( ) ,
171
- ...rangePickerProps < DateType > ( ) ,
170
+ ...commonProps < any > ( ) ,
171
+ ...rangePickerProps < any > ( ) ,
172
172
...timePickerProps ( ) ,
173
173
order : { type : Boolean , default : true } ,
174
- } ,
174
+ } as any ,
175
175
slots : Object as CustomSlotsType < {
176
176
renderExtraFooter ?: any ;
177
177
suffixIcon ?: any ;
You can’t perform that action at this time.
0 commit comments