File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function generateCalendar<
88
88
) ;
89
89
}
90
90
91
- const Calendar = defineComponent ( {
91
+ const Calendar = defineComponent < Props > ( {
92
92
name : 'ACalendar' ,
93
93
inheritAttrs : false ,
94
94
props : {
@@ -122,7 +122,7 @@ function generateCalendar<
122
122
onPanelChange : { type : Function as PropType < Props [ 'onPanelChange' ] > , default : undefined } ,
123
123
onSelect : { type : Function as PropType < Props [ 'onSelect' ] > , default : undefined } ,
124
124
valueFormat : { type : String , default : undefined } ,
125
- } ,
125
+ } as any ,
126
126
slots : Object as CustomSlotsType < {
127
127
dateFullCellRender ?: { current : DateType } ;
128
128
dateCellRender ?: { current : DateType } ;
Original file line number Diff line number Diff line change @@ -77,15 +77,15 @@ function createTimePicker<
77
77
} ) ;
78
78
79
79
const { TimePicker : InternalTimePicker , RangePicker : InternalRangePicker } = DatePicker as any ;
80
- const TimePicker = defineComponent ( {
80
+ const TimePicker = defineComponent < DTimePickerProps > ( {
81
81
name : 'ATimePicker' ,
82
82
inheritAttrs : false ,
83
83
props : {
84
- ...commonProps < DateType > ( ) ,
85
- ...datePickerProps < DateType > ( ) ,
84
+ ...commonProps < any > ( ) ,
85
+ ...datePickerProps < any > ( ) ,
86
86
...timePickerProps ( ) ,
87
87
addon : { type : Function } ,
88
- } ,
88
+ } as any ,
89
89
slots : Object as CustomSlotsType < {
90
90
addon ?: any ;
91
91
renderExtraFooter ?: any ;
@@ -155,15 +155,15 @@ function createTimePicker<
155
155
} ,
156
156
} ) ;
157
157
158
- const TimeRangePicker = defineComponent ( {
158
+ const TimeRangePicker = defineComponent < DTimeRangePickerProps > ( {
159
159
name : 'ATimeRangePicker' ,
160
160
inheritAttrs : false ,
161
161
props : {
162
- ...commonProps < DateType > ( ) ,
163
- ...rangePickerProps < DateType > ( ) ,
162
+ ...commonProps < any > ( ) ,
163
+ ...rangePickerProps < any > ( ) ,
164
164
...timePickerProps ( ) ,
165
165
order : { type : Boolean , default : true } ,
166
- } ,
166
+ } as any ,
167
167
slots : Object as CustomSlotsType < {
168
168
renderExtraFooter ?: any ;
169
169
suffixIcon ?: any ;
You can’t perform that action at this time.
0 commit comments