Skip to content

Commit d490820

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat-v4
2 parents 1d0a273 + bba3227 commit d490820

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

components/calendar/generateCalendar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 };

components/time-picker/time-picker.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)