3.8.2 (2020-12-07)
3.8.1 (2020-11-26)
input
event work with slot input (#546) (ef1a748)- clear text error (#544) (bcc4f77)
- click event compatible with xhtml (#550) (b7cbc0d)
- showWeekNumber don't work (57f2219)
3.8.0 (2020-11-18)
- the MMM parse error (c504b1d)
- add event
panel-change
(3d29b49) - add event
update:show-time-panel
(#531) (45969a1) - add prop
getYearPanel
(#526) (7fc299a)
3.7.0 (2020-10-20)
- add prop
formatter
to replace the object usage offormat
(5d3d547)
3.6.3 (2020-10-17)
3.6.2 (2020-08-10)
- provide scoped slot to
input
slot (#492) (b3126a0) - value entered manually in disabled range should be invalid (#508) (1bca35b)
3.6.1 (2020-07-13)
- popup sholud be not auto closed in
time range
(a4e5019)
3.6.0 (2020-06-07)
3.5.0 (2020-04-22)
3.4.1 (2020-03-06)
- split error when rangeSeparator is same as token (435a6e8)
3.4.0 (2020-03-06)
- fix open event fired multiple times (be26d2a)
- mobile support for date range (#419) (3c2e00e)
- popup doesn't reposition when scrolling in Firefox (#427) (2d50e75)
- add
calendar-change
event (#432) (17d2262) - add
pick
event when date clicked (#429) (2fb9e67) - ignore whitespace around separator on manual range input (#416) (376a7ef)
3.3.1 (2020-02-18)
3.3.0 (2019-12-19)
default-value
supports Array forrange
(#395) (b33c9b8)- add
prefixClass
prop (#401) (a756753) - add prop
defaultPanel
(#394) (73a1b73)
3.2.2 (2019-12-05)
- prevent button triggering external form submit (#389) (7fcc1df)
- prop
lang
should be reactive (#391) (3c76fc3)
3.2.1 (2019-12-03)
3.2.0 (2019-12-02)
- can't clear input box (52bd1fe)
- add
getWeek
in custom format (#382) (4d935d7) - add the second parameter to
disabled-date
(#385) (da2ac23)
3.1.1 (2019-11-25)
- panel doesn't close after picking time (#378) (8657d49)
- when custom formatting causes the time-panel error (#377) (bf949af)
3.1.0 (2019-11-21)
3.0.2 (2019-11-14)
- compatible with vue old version inject (c03632f)
- should return
[null, null]
when clear a range (635631f) - when year < 100 && year >= 0, the date should be right (8c546cc)
- add prop
partial-update
. It'll update the date when select year or month intype='date'
ortype='datetime'
(07f4271)
3.0.1 (2019-11-11)
3.0.0 (2019-11-10)
- localization (lang) is not used for date formatting
-
Add week picker
<date-picer type="week" />
-
Add inline calendar without input
<date-picker inline />
-
Add prop
open
to control the state of popup -
Add select am/pm, when use12hours
-
Add event
open
andclose
-
Add
hourStep
/minuteStep
/secondStep
/showHour
/showMinute
/showSecond
/use12h
to time picker for more configuration
-
Need to import style separately
-
Change the default language to English. And need to import file to change the language.
-
Range selection refactoring, you can select a range on one calendar now, and need to click twice to select a range each time.
-
Change slot
calendar-icon
toicon-calendar
. -
appendToBody
default value changes from false to true. -
Remove
not-before
andnot-after
, usedisabledDate
instead.<template> <date-picker :disabled-date="notBeforeToday"></date-picker> <date-picker :disabled-date="notAfterToday"></date-picker> </template> <script> export default { methods: { notBeforeToday(date) { const today = new Date(); today.setHours(0, 0, 0, 0); return date.getTime() < today.getTime(); }, notAfterToday(date) { const today = new Date(); today.setHours(0, 0, 0, 0); return date.getTime() > today.getTime(); }, }, }; </script>
-
Remove
width
, usestyle="{ width: "" }"
instead. -
modify
shortcuts
api.[ { text: 'today', onClick: () => new Date() // return a Date } ];
-
Remove prop
firstDayOfWeek
to locale.
2.13.3 (2019-10-29)
2.13.2 (2019-10-23)
2.13.1 (2019-10-22)
2.13.0 (2019-10-14)
- removed keyboard event
stopPropagation
(864ab83) - the clickoutside don't work sometimes (#326) (d9619f8)
- add prop
icon-day
to set calendar icon day (62c3d60)
2.12.0 (2019-06-25)
2.11.2 (2019-05-15)
- fecha.parse invalid return false (#309) (96812ab)
- remove last shortcut "|" (c6a6300)
- test suites in another timezone failed (#300) (ec69590)
2.11.1 (2019-04-30)
- close popup after select shortcuts (5823f85)
2.11.0 (2019-04-09)
2.10.3 (2019-03-14)
2.10.2 (2019-03-14)
- remove IE 10's clear button X (6a990d8)
2.10.1 (2019-03-11)
- change the entity name to entity number (dbbba6b)
2.10.0 (2019-02-12)
- add prop
default-value
for calendar default date (#94) (4ff6945) - show the popup on focus and close it on blur (3bcedf5)
2.9.2 (2019-02-10)
2.9.1 (2019-02-01)
2.9.0 (2019-01-29)
- support custom format function (c801516)
2.8.1 (2019-01-24)
- clickoutside event listener change capturing to bubbling (054758e)
- use refs instead of children array (f43e3a3)
2.8.0 (2019-01-13)
- add
valueType
to format binding value (dd6f2ea)
2.7.0 (2019-01-08)
- when clear input(not use clear button) the date value not changed (39d2c40)
- add class to .mx-calendar indicating the different panel (#219) (1d0a67b)
- add prop inputAttr (2381089)
2.6.4 (2018-12-19)
- when clear input(not use clear button) the date value not changed (39d2c40)
2.6.3 (2018-12-08)
2.6.2 (2018-10-30)
calendar-change
trigger in right time (b1a5a41)
- add
calendar-change
event (ef9314e)
2.6.1 (2018-10-17)
- prevent popup internal click event from affecting the outside (de177d8)
- when use script type, install automatic (a310f59)
2.6.0 (2018-10-11)
- fix shortcut color (ac4aa87)
- add prop
appendToBody
(e26e1f5)
2.5.0 (2018-10-05)
- add panel-change event (5cdba7b)
2.4.3 (2018-09-28)
- fix the selectTime 'am' and 'pm' (8e475b3)
- IE compatibility (fefed17)
- timeType default (38a657b)
- when select time picker option close popup (#154) (12907ad)
- year and month disable don't right (#169) (42bc068)
- emit
clear
event for the clear button (e0776b6)
2.4.0 (2018-08-08)
- add prop
time
to show only time picker (1046731)
2.3.2 (2018-08-07)
- add prop
date-format
(3c27647)
2.2.0 (2018-08-06)
- set input autocomplete off (264458c)
- add event 'change-calendar-year' 'change-calendar-month' (bc80708)
2.1.0 (2018-07-24)
2.0.0 (2018-06-16)
- Add
clearable
used to show clear icon - Add slot
calendar-icon
to custom calendar icon - Add slot
header
andfooter
to custom popup area disabledDays
supports custom functions
- Refactored code. This may fail if you hacked the code
format
default value changes from yyyy-MM-dd to YYYY-MM-DD, now the parsing tokens are similar to the moment.js, not supports lowercase yyyy- remove
custom-formatter
editable
default value changes from false to true, now supports range- select the year or month panel will not change the value(Because it causes many problems when set the
not-before
ornot-after
)