Merge remote-tracking branch 'origin/main' into feat-v4

pull/6588/head 4.0.0-rc.1
tangjinzhou 2023-05-19 10:15:43 +08:00
commit d49082008e
2 changed files with 10 additions and 10 deletions

View File

@ -88,7 +88,7 @@ function generateCalendar<
);
}
const Calendar = defineComponent({
const Calendar = defineComponent<Props>({
name: 'ACalendar',
inheritAttrs: false,
props: {
@ -122,7 +122,7 @@ function generateCalendar<
onPanelChange: { type: Function as PropType<Props['onPanelChange']>, default: undefined },
onSelect: { type: Function as PropType<Props['onSelect']>, default: undefined },
valueFormat: { type: String, default: undefined },
},
} as any,
slots: Object as CustomSlotsType<{
dateFullCellRender?: { current: DateType };
dateCellRender?: { current: DateType };

View File

@ -77,15 +77,15 @@ function createTimePicker<
});
const { TimePicker: InternalTimePicker, RangePicker: InternalRangePicker } = DatePicker as any;
const TimePicker = defineComponent({
const TimePicker = defineComponent<DTimePickerProps>({
name: 'ATimePicker',
inheritAttrs: false,
props: {
...commonProps<DateType>(),
...datePickerProps<DateType>(),
...commonProps<any>(),
...datePickerProps<any>(),
...timePickerProps(),
addon: { type: Function },
},
} as any,
slots: Object as CustomSlotsType<{
addon?: any;
renderExtraFooter?: any;
@ -155,15 +155,15 @@ function createTimePicker<
},
});
const TimeRangePicker = defineComponent({
const TimeRangePicker = defineComponent<DTimeRangePickerProps>({
name: 'ATimeRangePicker',
inheritAttrs: false,
props: {
...commonProps<DateType>(),
...rangePickerProps<DateType>(),
...commonProps<any>(),
...rangePickerProps<any>(),
...timePickerProps(),
order: { type: Boolean, default: true },
},
} as any,
slots: Object as CustomSlotsType<{
renderExtraFooter?: any;
suffixIcon?: any;