Skip to content

DatePickerMultiple Component

DatePickerMultiple Component

DatePickerMultiple component allows users to select multiple dates or date ranges. It supports different date formatting options, multiple selection modes, and shortcut options functionality.

Basic Usage

DatePickerMultiple provides two selection modes: date range selection and multiple date selection.

Range Selection Mode

Selected date range: 2025-11-10, 2025-11-17

Multiple Selection Mode

Selected multiple dates: 2025-11-10, 2025-11-13, 2025-11-17
Show CodeArrow
CopyGitHub

Different Modes

The component supports multiple selection modes: date, month, and year.

Date Mode (date)

Selected dates: Not selected

Month Mode (month)

Selected months: Not selected

Year Mode (year)

Selected years: Not selected
Show CodeArrow
CopyGitHub

Different Sizes

The component provides three sizes: small, default, and large.

Small Size (small)

Default Size (default)

Large Size (large)

Show CodeArrow
CopyGitHub

Different States

The component can be set to disabled state, and can also customize disabled specific dates through the disabled-date function.

Disabled State (disabled)

Selected dates: 2025-11-10, 2025-11-17

Disabled Dates (disabledDate)

Selected dates: Not selected
Dates before today are disabled
Show CodeArrow
CopyGitHub

Formatting

You can use value-format and format to control the value format and display format respectively.

Value Formatting (valueFormat: YYYY/MM/DD)

Formatted value: []
Type: -

Display Formatting (format: DD MMM YYYY)

Selected dates: Not selected
Show CodeArrow
CopyGitHub

Date Time Selection

Setting the show-time attribute allows you to select time while selecting dates.

Date Time Selection

Selected date time: Not selected
Show CodeArrow
CopyGitHub

Shortcuts

Through the shortcuts attribute, you can set shortcut options to provide preset date selections.

Date Range Selection with Shortcuts

Selected date range: Not selected
Available shortcuts: Last week, Last month, Last 3 months
Show CodeArrow
CopyGitHub

Custom Position

Through the position attribute, you can set the popup position of the dropdown panel.

Top Popup (top)

Bottom Popup (bottom)

Left Popup (left)

Right Popup (right)

Show CodeArrow
CopyGitHub

Event Handling

DatePickerMultiple provides various events such as change, clear, focus, etc.

Event Handling Example

Current value: Not selected
Event Log:
Show CodeArrow
CopyGitHub

DatePickerMultiple Component API

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
v-modelBinding valueDate[] | string[] | number[][]
modeDatePicker modestringdate / month / yeardate
disabledWhether disabledbooleanfalse
disabled-dateUnselectable dates(date: Date) => boolean
show-timeWhether to show time pickerbooleanfalse
value-formatValue formattingstring
formatDisplay formattingstring
placeholderPlaceholderstring
clearableWhether clearablebooleantrue
positionPopup positionstringtop / bottom / left / rightbottom
sizeSizestringsmall / default / largedefault
is-rangeWhether range selection modebooleanfalse
shortcutsShortcut options listShortcutType[]
is-tipWhether to show tipbooleantrue
tip-textTip textstring
tip-positionTip positionstringtop / bottom / left / right

ShortcutType Type

AttributeDescriptionTypeAccepted ValuesDefault
labelShortcut option labelstring
valueShortcut option valueDateType[] | (() => DateType[])

Events

Event NameDescriptionCallback Parameters
changeTriggered when date changes(value: Date[] | string[] | number[])
panel-changeTriggered when panel changes(mode: 'date | month | year')
clearTriggered when cleared
focusTriggered when focused
blurTriggered when blurred
date-dialog-openTriggered when date dialog opens
date-dialog-closeTriggered when date dialog closes

Slots

Slot NameDescriptionScope Parameters
prefixInput prefix content
dateCustom date cell{ date: Date }
footerCalendar panel footer area

Style Variables

DatePickerMultiple component uses the following style variables, which can be customized through SCSS variables:

Variable NameDescription
$border-color-defaultBorder color
$bg-color-defaultBackground color
$theme-color-primaryTheme color
$text-color-defaultText color
$font-size-smallSmall font size
$font-size-defaultDefault font size
$font-size-largeLarge font size
$bg-color-hoverHover background color

Released under the MIT License