From 9476c4496ae01a09832b219c6fc8df9af1022662 Mon Sep 17 00:00:00 2001
From: mengxiong10 <15623530290@163.com>
Date: Sun, 10 Nov 2019 23:51:26 +0800
Subject: [PATCH] docs: add the 3.0.0 changelog
---
CHANGELOG.md | 232 ++++++++++++++++++---------------------------------
1 file changed, 80 insertions(+), 152 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 29f210b..5671415 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,340 +1,268 @@
-# [3.0.0](https://github.com/mengxiong10/vue2-datepicker/compare/v3.0.0-beta.1...v3.0.0) (2019-11-10)
+# [3.0.0](https://github.com/mengxiong10/vue2-datepicker/compare/v3.0.0-beta.1...v3.0.0) (2019-11-10)
### Bug Fixes
-* compatible with mobile click events ([73ef846](https://github.com/mengxiong10/vue2-datepicker/commit/73ef846))
+- localization (lang) is not used for date formatting
+### Features
+- Add week picker
+ ```html
+
+ ```
+- Add inline calendar without input
+
+ ```html
+
+ ```
+
+- Add prop `open` to control the state of popup
+- Add ability to select ampm, base on formatted token
+- Add event `open` and `close`
+- Add `hourStep`/`minuteStep`/`secondStep`/`showHour`/`showMinute`/`showSecond`/`use12h` to 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-icon` to `icon-calendar`.
+- `appendToBody` default value changes from false to true.
+- Remove `not-before` and `not-after`, use `disabledDate` instead.
+- modify `shortcuts` api.
## [2.13.3](https://github.com/mengxiong10/vue2-datepicker/compare/v2.13.2...v2.13.3) (2019-10-29)
-
### Bug Fixes
-* defaultValue should update calendar ([#364](https://github.com/mengxiong10/vue2-datepicker/issues/364)) ([5e463bd](https://github.com/mengxiong10/vue2-datepicker/commit/5e463bd3cf973b5257a58810f980c46e26824426))
-
-
+- defaultValue should update calendar ([#364](https://github.com/mengxiong10/vue2-datepicker/issues/364)) ([5e463bd](https://github.com/mengxiong10/vue2-datepicker/commit/5e463bd3cf973b5257a58810f980c46e26824426))
## [2.13.2](https://github.com/mengxiong10/vue2-datepicker/compare/v2.13.1...v2.13.2) (2019-10-23)
-
### Bug Fixes
-* compatible with mobile click events ([#334](https://github.com/mengxiong10/vue2-datepicker/issues/334)) ([57d57fc](https://github.com/mengxiong10/vue2-datepicker/commit/57d57fc645d670e88c60141d2238066c2ed1ce8f))
-* fix the ro language ([43c59e6](https://github.com/mengxiong10/vue2-datepicker/commit/43c59e6b40ac71dd9ea988d0b51269e99dff7b22))
-
-
+- compatible with mobile click events ([#334](https://github.com/mengxiong10/vue2-datepicker/issues/334)) ([57d57fc](https://github.com/mengxiong10/vue2-datepicker/commit/57d57fc645d670e88c60141d2238066c2ed1ce8f))
+- fix the ro language ([43c59e6](https://github.com/mengxiong10/vue2-datepicker/commit/43c59e6b40ac71dd9ea988d0b51269e99dff7b22))
## [2.13.1](https://github.com/mengxiong10/vue2-datepicker/compare/v2.13.0...v2.13.1) (2019-10-22)
-
### Bug Fixes
-* the Spanish Language error ([#361](https://github.com/mengxiong10/vue2-datepicker/issues/361)) ([04e1032](https://github.com/mengxiong10/vue2-datepicker/commit/04e10328eabfac6e10fe4a49e7579f2eff7a1736))
-
-
+- the Spanish Language error ([#361](https://github.com/mengxiong10/vue2-datepicker/issues/361)) ([04e1032](https://github.com/mengxiong10/vue2-datepicker/commit/04e10328eabfac6e10fe4a49e7579f2eff7a1736))
# [2.13.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.12.0...v2.13.0) (2019-10-14)
-
### Bug Fixes
-* removed stoppropagation ([864ab83](https://github.com/mengxiong10/vue2-datepicker/commit/864ab835ca93322eb103fa1e00770976b7d95c41))
-* the clickoutside don't work sometimes ([#326](https://github.com/mengxiong10/vue2-datepicker/issues/326)) ([d9619f8](https://github.com/mengxiong10/vue2-datepicker/commit/d9619f815c6a87052b353b800c7e597a8dea816a))
-
+- removed stoppropagation ([864ab83](https://github.com/mengxiong10/vue2-datepicker/commit/864ab835ca93322eb103fa1e00770976b7d95c41))
+- the clickoutside don't work sometimes ([#326](https://github.com/mengxiong10/vue2-datepicker/issues/326)) ([d9619f8](https://github.com/mengxiong10/vue2-datepicker/commit/d9619f815c6a87052b353b800c7e597a8dea816a))
### Features
-* add prop `icon-day` to set calendar icon day ([62c3d60](https://github.com/mengxiong10/vue2-datepicker/commit/62c3d60dd93c15a3c3c8d433836f3bb364d30bb7))
-
-
+- add prop `icon-day` to set calendar icon day ([62c3d60](https://github.com/mengxiong10/vue2-datepicker/commit/62c3d60dd93c15a3c3c8d433836f3bb364d30bb7))
# [2.12.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.11.2...v2.12.0) (2019-06-25)
-
### Features
-* add the prop `time-select-options` ([#227](https://github.com/mengxiong10/vue2-datepicker/issues/227)) ([a55b4b6](https://github.com/mengxiong10/vue2-datepicker/commit/a55b4b6))
-
-
+- add the prop `time-select-options` ([#227](https://github.com/mengxiong10/vue2-datepicker/issues/227)) ([a55b4b6](https://github.com/mengxiong10/vue2-datepicker/commit/a55b4b6))
## [2.11.2](https://github.com/mengxiong10/vue2-datepicker/compare/v2.11.1...v2.11.2) (2019-05-15)
-
### Bug Fixes
-* fecha.parse invalid return false ([#309](https://github.com/mengxiong10/vue2-datepicker/issues/309)) ([96812ab](https://github.com/mengxiong10/vue2-datepicker/commit/96812ab))
-* remove last shortcut "|" ([c6a6300](https://github.com/mengxiong10/vue2-datepicker/commit/c6a6300))
-* test suites in another timezone failed ([#300](https://github.com/mengxiong10/vue2-datepicker/issues/300)) ([ec69590](https://github.com/mengxiong10/vue2-datepicker/commit/ec69590))
-
-
+- fecha.parse invalid return false ([#309](https://github.com/mengxiong10/vue2-datepicker/issues/309)) ([96812ab](https://github.com/mengxiong10/vue2-datepicker/commit/96812ab))
+- remove last shortcut "|" ([c6a6300](https://github.com/mengxiong10/vue2-datepicker/commit/c6a6300))
+- test suites in another timezone failed ([#300](https://github.com/mengxiong10/vue2-datepicker/issues/300)) ([ec69590](https://github.com/mengxiong10/vue2-datepicker/commit/ec69590))
## [2.11.1](https://github.com/mengxiong10/vue2-datepicker/compare/v2.11.0...v2.11.1) (2019-04-30)
-
### Bug Fixes
-* close popup after select range ([5823f85](https://github.com/mengxiong10/vue2-datepicker/commit/5823f85))
-
-
+- close popup after select range ([5823f85](https://github.com/mengxiong10/vue2-datepicker/commit/5823f85))
# [2.11.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.10.3...v2.11.0) (2019-04-09)
-
### Bug Fixes
-* clickoutside bad when use append-to-body ([#291](https://github.com/mengxiong10/vue2-datepicker/issues/291)) ([9bb6046](https://github.com/mengxiong10/vue2-datepicker/commit/9bb6046))
-
+- clickoutside bad when use append-to-body ([#291](https://github.com/mengxiong10/vue2-datepicker/issues/291)) ([9bb6046](https://github.com/mengxiong10/vue2-datepicker/commit/9bb6046))
### Features
-* `select-year` and `select-month` ([#290](https://github.com/mengxiong10/vue2-datepicker/issues/290)) ([20d1f19](https://github.com/mengxiong10/vue2-datepicker/commit/20d1f19))
-
-
+- `select-year` and `select-month` ([#290](https://github.com/mengxiong10/vue2-datepicker/issues/290)) ([20d1f19](https://github.com/mengxiong10/vue2-datepicker/commit/20d1f19))
## [2.10.3](https://github.com/mengxiong10/vue2-datepicker/compare/v2.10.2...v2.10.3) (2019-03-14)
-
### Bug Fixes
-* type input don't change the value ([#266](https://github.com/mengxiong10/vue2-datepicker/issues/266)) ([aa20a1e](https://github.com/mengxiong10/vue2-datepicker/commit/aa20a1e))
-
-
+- type input don't change the value ([#266](https://github.com/mengxiong10/vue2-datepicker/issues/266)) ([aa20a1e](https://github.com/mengxiong10/vue2-datepicker/commit/aa20a1e))
## [2.10.2](https://github.com/mengxiong10/vue2-datepicker/compare/v2.10.1...v2.10.2) (2019-03-14)
-
### Bug Fixes
-* pick minute will affect the hour ([#168](https://github.com/mengxiong10/vue2-datepicker/issues/168)) ([2afed88](https://github.com/mengxiong10/vue2-datepicker/commit/2afed88))
-* remove the append background ([e7775d6](https://github.com/mengxiong10/vue2-datepicker/commit/e7775d6))
-
+- pick minute will affect the hour ([#168](https://github.com/mengxiong10/vue2-datepicker/issues/168)) ([2afed88](https://github.com/mengxiong10/vue2-datepicker/commit/2afed88))
+- remove the append background ([e7775d6](https://github.com/mengxiong10/vue2-datepicker/commit/e7775d6))
### Performance Improvements
-* remove IE 10's clear button X ([6a990d8](https://github.com/mengxiong10/vue2-datepicker/commit/6a990d8))
-
-
+- remove IE 10's clear button X ([6a990d8](https://github.com/mengxiong10/vue2-datepicker/commit/6a990d8))
## [2.10.1](https://github.com/mengxiong10/vue2-datepicker/compare/v2.10.0...v2.10.1) (2019-03-11)
-
### Performance Improvements
-* change the entity name to entity number ([dbbba6b](https://github.com/mengxiong10/vue2-datepicker/commit/dbbba6b))
-
-
+- change the entity name to entity number ([dbbba6b](https://github.com/mengxiong10/vue2-datepicker/commit/dbbba6b))
# [2.10.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.9.2...v2.10.0) (2019-02-12)
-
### Features
-* add prop `default-value` for calendar default date ([#94](https://github.com/mengxiong10/vue2-datepicker/issues/94)) ([4ff6945](https://github.com/mengxiong10/vue2-datepicker/commit/4ff6945))
-* show the popup on focus and close it on blur ([3bcedf5](https://github.com/mengxiong10/vue2-datepicker/commit/3bcedf5))
-
-
+- add prop `default-value` for calendar default date ([#94](https://github.com/mengxiong10/vue2-datepicker/issues/94)) ([4ff6945](https://github.com/mengxiong10/vue2-datepicker/commit/4ff6945))
+- show the popup on focus and close it on blur ([3bcedf5](https://github.com/mengxiong10/vue2-datepicker/commit/3bcedf5))
## [2.9.2](https://github.com/mengxiong10/vue2-datepicker/compare/v2.9.1...v2.9.2) (2019-02-10)
-
### Bug Fixes
-* the display error of the year panel header ([#245](https://github.com/mengxiong10/vue2-datepicker/issues/245)) ([7bc2785](https://github.com/mengxiong10/vue2-datepicker/commit/7bc2785))
-
-
+- the display error of the year panel header ([#245](https://github.com/mengxiong10/vue2-datepicker/issues/245)) ([7bc2785](https://github.com/mengxiong10/vue2-datepicker/commit/7bc2785))
## [2.9.1](https://github.com/mengxiong10/vue2-datepicker/compare/v2.9.0...v2.9.1) (2019-02-01)
-
### Bug Fixes
-* stringify function returns a error value,when date is null ([#244](https://github.com/mengxiong10/vue2-datepicker/issues/244)) ([92243ab](https://github.com/mengxiong10/vue2-datepicker/commit/92243ab))
-
-
+- stringify function returns a error value,when date is null ([#244](https://github.com/mengxiong10/vue2-datepicker/issues/244)) ([92243ab](https://github.com/mengxiong10/vue2-datepicker/commit/92243ab))
# [2.9.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.8.1...v2.9.0) (2019-01-29)
-
### Features
-* support custom format function ([c801516](https://github.com/mengxiong10/vue2-datepicker/commit/c801516))
-
-
+- support custom format function ([c801516](https://github.com/mengxiong10/vue2-datepicker/commit/c801516))
## [2.8.1](https://github.com/mengxiong10/vue2-datepicker/compare/v2.8.0...v2.8.1) (2019-01-24)
-
### Bug Fixes
-* clickoutside event listener change capturing to bubbling ([054758e](https://github.com/mengxiong10/vue2-datepicker/commit/054758e))
-* use refs instead of children array ([f43e3a3](https://github.com/mengxiong10/vue2-datepicker/commit/f43e3a3))
-
-
+- clickoutside event listener change capturing to bubbling ([054758e](https://github.com/mengxiong10/vue2-datepicker/commit/054758e))
+- use refs instead of children array ([f43e3a3](https://github.com/mengxiong10/vue2-datepicker/commit/f43e3a3))
# [2.8.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.7.0...v2.8.0) (2019-01-13)
-
### Features
-* add `valueType` to format binding value ([dd6f2ea](https://github.com/mengxiong10/vue2-datepicker/commit/dd6f2ea))
-
-
+- add `valueType` to format binding value ([dd6f2ea](https://github.com/mengxiong10/vue2-datepicker/commit/dd6f2ea))
# [2.7.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.6.3...v2.7.0) (2019-01-08)
-
### Bug Fixes
-* when clear input(not use clear button) the date value not changed ([39d2c40](https://github.com/mengxiong10/vue2-datepicker/commit/39d2c40))
-
+- when clear input(not use clear button) the date value not changed ([39d2c40](https://github.com/mengxiong10/vue2-datepicker/commit/39d2c40))
### Features
-* add class to .mx-calendar indicating the different panel ([#219](https://github.com/mengxiong10/vue2-datepicker/issues/219)) ([1d0a67b](https://github.com/mengxiong10/vue2-datepicker/commit/1d0a67b))
-* add prop inputAttr ([2381089](https://github.com/mengxiong10/vue2-datepicker/commit/2381089))
-
-
+- add class to .mx-calendar indicating the different panel ([#219](https://github.com/mengxiong10/vue2-datepicker/issues/219)) ([1d0a67b](https://github.com/mengxiong10/vue2-datepicker/commit/1d0a67b))
+- add prop inputAttr ([2381089](https://github.com/mengxiong10/vue2-datepicker/commit/2381089))
## [2.6.4](https://github.com/mengxiong10/vue2-datepicker/compare/v2.6.3...v2.6.4) (2018-12-19)
-
### Bug Fixes
-* when clear input(not use clear button) the date value not changed ([39d2c40](https://github.com/mengxiong10/vue2-datepicker/commit/39d2c40))
-
-
+- when clear input(not use clear button) the date value not changed ([39d2c40](https://github.com/mengxiong10/vue2-datepicker/commit/39d2c40))
## [2.6.3](https://github.com/mengxiong10/vue2-datepicker/compare/v2.6.2...v2.6.3) (2018-12-08)
-
### Bug Fixes
-* fix unable set value later when range is ture ([#209](https://github.com/mengxiong10/vue2-datepicker/issues/209)) ([97289d1](https://github.com/mengxiong10/vue2-datepicker/commit/97289d1))
-
-
+- fix unable set value later when range is ture ([#209](https://github.com/mengxiong10/vue2-datepicker/issues/209)) ([97289d1](https://github.com/mengxiong10/vue2-datepicker/commit/97289d1))
## [2.6.2](https://github.com/mengxiong10/vue2-datepicker/compare/v2.6.1...v2.6.2) (2018-10-30)
-
### Bug Fixes
-* `calendar-change` trigger in right time ([b1a5a41](https://github.com/mengxiong10/vue2-datepicker/commit/b1a5a41))
-
+- `calendar-change` trigger in right time ([b1a5a41](https://github.com/mengxiong10/vue2-datepicker/commit/b1a5a41))
### Features
-* add `calendar-change` event ([ef9314e](https://github.com/mengxiong10/vue2-datepicker/commit/ef9314e))
-
-
+- add `calendar-change` event ([ef9314e](https://github.com/mengxiong10/vue2-datepicker/commit/ef9314e))
## [2.6.1](https://github.com/mengxiong10/vue2-datepicker/compare/v2.6.0...v2.6.1) (2018-10-17)
-
### Bug Fixes
-* prevent popup internal click event from affecting the outside ([de177d8](https://github.com/mengxiong10/vue2-datepicker/commit/de177d8))
-
+- prevent popup internal click event from affecting the outside ([de177d8](https://github.com/mengxiong10/vue2-datepicker/commit/de177d8))
### Features
-* when use script type, install automatic ([a310f59](https://github.com/mengxiong10/vue2-datepicker/commit/a310f59))
-
-
+- when use script type, install automatic ([a310f59](https://github.com/mengxiong10/vue2-datepicker/commit/a310f59))
# [2.6.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.5.0...v2.6.0) (2018-10-11)
-
### Bug Fixes
-* fix shortcut color ([ac4aa87](https://github.com/mengxiong10/vue2-datepicker/commit/ac4aa87))
-
+- fix shortcut color ([ac4aa87](https://github.com/mengxiong10/vue2-datepicker/commit/ac4aa87))
### Features
-* add prop `appendToBody` ([e26e1f5](https://github.com/mengxiong10/vue2-datepicker/commit/e26e1f5))
-
-
+- add prop `appendToBody` ([e26e1f5](https://github.com/mengxiong10/vue2-datepicker/commit/e26e1f5))
# [2.5.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.4.3...v2.5.0) (2018-10-05)
-
### Features
-* add panel-change event ([5cdba7b](https://github.com/mengxiong10/vue2-datepicker/commit/5cdba7b))
-
-
+- add panel-change event ([5cdba7b](https://github.com/mengxiong10/vue2-datepicker/commit/5cdba7b))
## [2.4.3](https://github.com/mengxiong10/vue2-datepicker/compare/v2.4.0...v2.4.3) (2018-09-28)
-
### Bug Fixes
-* fix the selectTime 'am' and 'pm' ([8e475b3](https://github.com/mengxiong10/vue2-datepicker/commit/8e475b3))
-* IE compatibility ([fefed17](https://github.com/mengxiong10/vue2-datepicker/commit/fefed17))
-* timeType default ([38a657b](https://github.com/mengxiong10/vue2-datepicker/commit/38a657b))
-* when select time picker option close popup ([#154](https://github.com/mengxiong10/vue2-datepicker/issues/154)) ([12907ad](https://github.com/mengxiong10/vue2-datepicker/commit/12907ad))
-* year and month disable don't right ([#169](https://github.com/mengxiong10/vue2-datepicker/issues/169)) ([42bc068](https://github.com/mengxiong10/vue2-datepicker/commit/42bc068))
-
+- fix the selectTime 'am' and 'pm' ([8e475b3](https://github.com/mengxiong10/vue2-datepicker/commit/8e475b3))
+- IE compatibility ([fefed17](https://github.com/mengxiong10/vue2-datepicker/commit/fefed17))
+- timeType default ([38a657b](https://github.com/mengxiong10/vue2-datepicker/commit/38a657b))
+- when select time picker option close popup ([#154](https://github.com/mengxiong10/vue2-datepicker/issues/154)) ([12907ad](https://github.com/mengxiong10/vue2-datepicker/commit/12907ad))
+- year and month disable don't right ([#169](https://github.com/mengxiong10/vue2-datepicker/issues/169)) ([42bc068](https://github.com/mengxiong10/vue2-datepicker/commit/42bc068))
### Features
-* emit `clear` event for the clear button ([e0776b6](https://github.com/mengxiong10/vue2-datepicker/commit/e0776b6))
-
-
+- emit `clear` event for the clear button ([e0776b6](https://github.com/mengxiong10/vue2-datepicker/commit/e0776b6))
# [2.4.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.3.2...v2.4.0) (2018-08-08)
-
### Features
-* add prop `time` to show only time picker ([1046731](https://github.com/mengxiong10/vue2-datepicker/commit/1046731))
-
-
+- add prop `time` to show only time picker ([1046731](https://github.com/mengxiong10/vue2-datepicker/commit/1046731))
## [2.3.2](https://github.com/mengxiong10/vue2-datepicker/compare/v2.2.0...v2.3.2) (2018-08-07)
-
### Features
-* add prop `date-format` ([3c27647](https://github.com/mengxiong10/vue2-datepicker/commit/3c27647))
-
-
+- add prop `date-format` ([3c27647](https://github.com/mengxiong10/vue2-datepicker/commit/3c27647))
# [2.2.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.1.0...v2.2.0) (2018-08-06)
-
### Bug Fixes
-* set input autocomplete off ([264458c](https://github.com/mengxiong10/vue2-datepicker/commit/264458c))
-
+- set input autocomplete off ([264458c](https://github.com/mengxiong10/vue2-datepicker/commit/264458c))
### Features
-* add event 'change-calendar-year' 'change-calendar-month' ([bc80708](https://github.com/mengxiong10/vue2-datepicker/commit/bc80708))
-
-
+- add event 'change-calendar-year' 'change-calendar-month' ([bc80708](https://github.com/mengxiong10/vue2-datepicker/commit/bc80708))
# [2.1.0](https://github.com/mengxiong10/vue2-datepicker/compare/v2.0.0...v2.1.0) (2018-07-24)
-
### Bug Fixes
-* fecha.format need a date ([1e54efc](https://github.com/mengxiong10/vue2-datepicker/commit/1e54efc))
-* shortcut date changed to function ([5cf6c72](https://github.com/mengxiong10/vue2-datepicker/commit/5cf6c72))
+- fecha.format need a date ([1e54efc](https://github.com/mengxiong10/vue2-datepicker/commit/1e54efc))
+- shortcut date changed to function ([5cf6c72](https://github.com/mengxiong10/vue2-datepicker/commit/5cf6c72))
### Features
-* add the slot footer slot-scope to confirm event ([43d9fd7](https://github.com/mengxiong10/vue2-datepicker/commit/43d9fd7))
-* export the fecha to use ([ac958d4](https://github.com/mengxiong10/vue2-datepicker/commit/ac958d4))
-
-
+- add the slot footer slot-scope to confirm event ([43d9fd7](https://github.com/mengxiong10/vue2-datepicker/commit/43d9fd7))
+- export the fecha to use ([ac958d4](https://github.com/mengxiong10/vue2-datepicker/commit/ac958d4))
# [2.0.0](https://github.com/mengxiong10/vue2-datepicker/compare/9df1fe0...v2.0.0) (2018-06-16)
-
### Features
- Add `clearable` used to show clear icon