mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-05 21:02:25 +03:00
14 KiB
14 KiB
3.0.1 (2019-11-11)
Bug Fixes
- clear event not triggering (#369) (06e158e)
- ie compatibility (99a4abd)
- update date-format-parse to fix negative year (5ca30f8)
3.0.0 (2019-11-10)
Bug Fixes
- localization (lang) is not used for date formatting
Features
-
Add week picker
<date-picer type="week" /> -
Add inline calendar without input
<date-picker inline /> -
Add prop
opento control the state of popup -
Add ability to select ampm, base on formatted token
-
Add event
openandclose -
Add
hourStep/minuteStep/secondStep/showHour/showMinute/showSecond/use12hto time picker for more configuration
Breaking changes
-
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-icontoicon-calendar. -
appendToBodydefault value changes from false to true. -
Remove
not-beforeandnot-after, usedisabledDateinstead.<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
shortcutsapi.
2.13.3 (2019-10-29)
Bug Fixes
2.13.2 (2019-10-23)
Bug Fixes
2.13.1 (2019-10-22)
Bug Fixes
2.13.0 (2019-10-14)
Bug Fixes
Features
- add prop
icon-dayto set calendar icon day (62c3d60)
2.12.0 (2019-06-25)
Features
2.11.2 (2019-05-15)
Bug Fixes
- 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)
Bug Fixes
- close popup after select range (5823f85)
2.11.0 (2019-04-09)
Bug Fixes
Features
2.10.3 (2019-03-14)
Bug Fixes
2.10.2 (2019-03-14)
Bug Fixes
Performance Improvements
- remove IE 10's clear button X (6a990d8)
2.10.1 (2019-03-11)
Performance Improvements
- change the entity name to entity number (dbbba6b)
2.10.0 (2019-02-12)
Features
- add prop
default-valuefor calendar default date (#94) (4ff6945) - show the popup on focus and close it on blur (3bcedf5)
2.9.2 (2019-02-10)
Bug Fixes
2.9.1 (2019-02-01)
Bug Fixes
2.9.0 (2019-01-29)
Features
- support custom format function (c801516)
2.8.1 (2019-01-24)
Bug Fixes
- clickoutside event listener change capturing to bubbling (054758e)
- use refs instead of children array (f43e3a3)
2.8.0 (2019-01-13)
Features
- add
valueTypeto format binding value (dd6f2ea)
2.7.0 (2019-01-08)
Bug Fixes
- when clear input(not use clear button) the date value not changed (39d2c40)
Features
- add class to .mx-calendar indicating the different panel (#219) (1d0a67b)
- add prop inputAttr (2381089)
2.6.4 (2018-12-19)
Bug Fixes
- when clear input(not use clear button) the date value not changed (39d2c40)
2.6.3 (2018-12-08)
Bug Fixes
2.6.2 (2018-10-30)
Bug Fixes
calendar-changetrigger in right time (b1a5a41)
Features
- add
calendar-changeevent (ef9314e)
2.6.1 (2018-10-17)
Bug Fixes
- prevent popup internal click event from affecting the outside (de177d8)
Features
- when use script type, install automatic (a310f59)
2.6.0 (2018-10-11)
Bug Fixes
- fix shortcut color (ac4aa87)
Features
- add prop
appendToBody(e26e1f5)
2.5.0 (2018-10-05)
Features
- add panel-change event (5cdba7b)
2.4.3 (2018-09-28)
Bug Fixes
- 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)
Features
- emit
clearevent for the clear button (e0776b6)
2.4.0 (2018-08-08)
Features
- add prop
timeto show only time picker (1046731)
2.3.2 (2018-08-07)
Features
- add prop
date-format(3c27647)
2.2.0 (2018-08-06)
Bug Fixes
- set input autocomplete off (264458c)
Features
- add event 'change-calendar-year' 'change-calendar-month' (bc80708)
2.1.0 (2018-07-24)
Bug Fixes
Features
2.0.0 (2018-06-16)
Features
- Add
clearableused to show clear icon - Add slot
calendar-iconto custom calendar icon - Add slot
headerandfooterto custom popup area disabledDayssupports custom functions
Breaking changes
- Refactored code. This may fail if you hacked the code
formatdefault 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 editabledefault 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-beforeornot-after)