diff --git a/packages/components/date-picker/src/date-picker-com/panel-month-range.vue b/packages/components/date-picker/src/date-picker-com/panel-month-range.vue index 96375dd720..36534aad33 100644 --- a/packages/components/date-picker/src/date-picker-com/panel-month-range.vue +++ b/packages/components/date-picker/src/date-picker-com/panel-month-range.vue @@ -95,236 +95,235 @@ - diff --git a/packages/components/date-picker/src/props/panel-month-range.ts b/packages/components/date-picker/src/props/panel-month-range.ts index cb30d2dde4..b3999d424d 100644 --- a/packages/components/date-picker/src/props/panel-month-range.ts +++ b/packages/components/date-picker/src/props/panel-month-range.ts @@ -7,4 +7,6 @@ export const panelMonthRangeProps = buildProps({ ...panelRangeSharedProps, } as const) +export const panelMonthRangeEmits = ['pick', 'set-picker-option'] + export type PanelMonthRangeProps = ExtractPropTypes diff --git a/packages/components/date-picker/src/props/shared.ts b/packages/components/date-picker/src/props/shared.ts index 287f4e8073..9bb239b562 100644 --- a/packages/components/date-picker/src/props/shared.ts +++ b/packages/components/date-picker/src/props/shared.ts @@ -3,9 +3,9 @@ import { datePickTypes } from '@element-plus/constants' import type { Dayjs } from 'dayjs' -const selectionModes = ['date', 'dates', 'year', 'month', 'week'] +const selectionModes = ['date', 'dates', 'year', 'month', 'week', 'range'] -type RangeState = { +export type RangeState = { endDate: null | Dayjs selecting: boolean } @@ -26,7 +26,6 @@ export const datePickerSharedProps = buildProps({ }, parsedValue: { type: definePropType([Object, Array]), - required: true, }, rangeState: { type: definePropType(Object),