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<
8888 ) ;
8989 }
9090
91- const Calendar = defineComponent ( {
91+ const Calendar = defineComponent < Props > ( {
9292 name : 'ACalendar' ,
9393 inheritAttrs : false ,
9494 props : {
@@ -122,7 +122,7 @@ function generateCalendar<
122122 onPanelChange : { type : Function as PropType < Props [ 'onPanelChange' ] > , default : undefined } ,
123123 onSelect : { type : Function as PropType < Props [ 'onSelect' ] > , default : undefined } ,
124124 valueFormat : { type : String , default : undefined } ,
125- } ,
125+ } as any ,
126126 slots : Object as CustomSlotsType < {
127127 dateFullCellRender ?: { current : DateType } ;
128128 dateCellRender ?: { current : DateType } ;
Original file line number Diff line number Diff line change @@ -77,15 +77,15 @@ function createTimePicker<
7777 } ) ;
7878
7979 const { TimePicker : InternalTimePicker , RangePicker : InternalRangePicker } = DatePicker as any ;
80- const TimePicker = defineComponent ( {
80+ const TimePicker = defineComponent < DTimePickerProps > ( {
8181 name : 'ATimePicker' ,
8282 inheritAttrs : false ,
8383 props : {
84- ...commonProps < DateType > ( ) ,
85- ...datePickerProps < DateType > ( ) ,
84+ ...commonProps < any > ( ) ,
85+ ...datePickerProps < any > ( ) ,
8686 ...timePickerProps ( ) ,
8787 addon : { type : Function } ,
88- } ,
88+ } as any ,
8989 slots : Object as CustomSlotsType < {
9090 addon ?: any ;
9191 renderExtraFooter ?: any ;
@@ -155,15 +155,15 @@ function createTimePicker<
155155 } ,
156156 } ) ;
157157
158- const TimeRangePicker = defineComponent ( {
158+ const TimeRangePicker = defineComponent < DTimeRangePickerProps > ( {
159159 name : 'ATimeRangePicker' ,
160160 inheritAttrs : false ,
161161 props : {
162- ...commonProps < DateType > ( ) ,
163- ...rangePickerProps < DateType > ( ) ,
162+ ...commonProps < any > ( ) ,
163+ ...rangePickerProps < any > ( ) ,
164164 ...timePickerProps ( ) ,
165165 order : { type : Boolean , default : true } ,
166- } ,
166+ } as any ,
167167 slots : Object as CustomSlotsType < {
168168 renderExtraFooter ?: any ;
169169 suffixIcon ?: any ;
You can’t perform that action at this time.
0 commit comments