vue2 multi calendar and datetime picker component.
Co-Developer : namsangwan
- This component has the following tree structure.
So sub-component individual use is of course possible
- vue-multi-datetimepicker
- vue-datetimepicker
- vue-calendar
- vue-timepicker
- vue-datetimepicker
- JsFiddle
- Font resource path setting is required : @font-face in vue-multi-datetimepicker.css Use the files under the fonts folder
<vue-multi-datetimepicker v-model="searchDate"></vue-multi-datetimepicker>
<vue-multi-datetimepicker
:date-format="dateFormat"
:month-format="monthFormat"
:on-day-click="onDayClick"
:disabled-to="disabledTo"
:disabled-from="disabledFrom"
:only-month="onlyMonth"
:has-time-input=true
v-model="searchDate"
:time-format="timeFormat"
></vue-multi-datetimepicker>
<vue-datetimepicker
:date-format="dateFormat"
:month-format="monthFormat"
:on-day-click="onDayClick"
:disabled-to="disabledTo"
:disabled-from="disabledFrom"
:only-month="onlyMonth"
:has-time-input=true
v-model="startDate"
:time-format="timeFormat"
></vue-datetimepicker>
- has-date-input: Whether the calendar input box is exposed
- has-time-input: time input box exposed or not true if 00:00:00
- date-format: Date input box Exposure format Default is "yyyy-MM-dd"
- month-format: For monthly calendars, date input box Exposure format Default is "yyyy-MM"
- time-format: Time input box Exposure format Default is "HH:mm:ss"
- disable-from : Set selection limits for previous dates
- disable-to : Set selection limits for after dates
- minute-interval: interval in minutes of the time selection screen
- date-input-width: date input box width
- time-input-width: time input box width
- height: height
- onDayClick: function to be called when calendar is clicked Use when has-date-input is false
Input function is function (date, str) format, date is date value, str is yyyyMMdd string
- We made it by referring to datepicker and timepicker as below.
- datepicker : vue2-calendar
- timepicker : vue-timepicker