Skip to content

Releases: mengxiong10/vue2-datepicker

v2.6.1

11 Dec 01:57
Compare
Choose a tag to compare

Bug Fixes

  • prevent popup internal click event from affecting the outside (de177d8)

Features

  • when use script type, install automatic (a310f59)

修复Bug

  • 阻止组件的事件冒泡到外面 (de177d8)

新功能

  • script直接引用的时候自动注册组件 (a310f59)

v2.6.0

11 Dec 01:55
Compare
Choose a tag to compare

Bug Fixes

Features

修复Bug

  • 修复快捷方式的颜色 (ac4aa87)

新功能

  • 添加属性 appendToBody (e26e1f5)

v2.5.0

08 Oct 09:47
Compare
Choose a tag to compare

Features

新功能

  • 添加 panel-change 事件 (5cdba7b)

v2.4.3

08 Oct 09:46
Compare
Choose a tag to compare

Bug Fixes

  • fix the selectTime 'am' and 'pm' (8e475b3)
  • IE compatibility (fefed17)
  • when select time picker option close popup (#154) (12907ad)
  • year and month disable don't right (#169) (42bc068)

Features

  • emit clear event for the clear button (e0776b6)

修复Bug

  • 修复选择时间时候显示'am', 'pm' (8e475b3)
  • 修复一个IE兼容性问题 (fefed17)
  • 当选择一个时间的时候关闭面板 (#154) (12907ad)
  • 修复年和月的禁用函数错误 (#169) (42bc068)

新功能

  • 添加一个clear事件 (e0776b6)

v2.4.0

08 Aug 10:28
Compare
Choose a tag to compare

Features

  • add type time to show only time picker (1046731)

新功能

  • 添加属性typetime的时候只显示时间组件

v2.3.2

07 Aug 06:49
Compare
Choose a tag to compare

Features

  • add prop date-format to format time header and date tooltip (3c27647)

新功能

  • 添加属性 date-format 格式化时间组件头部和日期的tooltip

v2.2.0

07 Aug 06:49
Compare
Choose a tag to compare

Bug Fixes

  • set input autocomplete off (264458c)

Features

  • add event 'change-calendar-year' 'change-calendar-month' (bc80708)

修复bug

  • 设置input的autocomplete为off避免下拉框的干扰

新功能

  • 添加时间'change-calendar-yeaer', 'change-calendar-month'方便联动两个窗口

v2.1.0

24 Jul 06:18
Compare
Choose a tag to compare

New features

  • Add type year and month

新特性

  • 添加type 支持月和年的单独选择

v2.0.0

04 Jul 02:14
Compare
Choose a tag to compare

New features

  • Add clearable used to show clear icon
  • Add slot calendar-icon to custom calendar icon
  • Add slot header and footer to custom popup area
  • disabledDays supports custom functions

Breaking changes

  • 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 or not-after)

新特性

  • 添加clearable 用于控制是否显示清除按钮
  • 添加 slot calendar-icon 自定义日历图标
  • 添加 slot headerfooter 自定义弹出日历的头部和尾部
  • disabledDays 现在支持函数

非兼容性更新

  • 重构代码. 如果你自己hack过代码可能会失效
  • format 默认值由 yyyy-MM-dd 改成 YYYY-MM-DD, 现在格式类似moment.js. 不支持小写的yyyy
  • 移除了custom-formatter
  • editable 默认由false改成true, 现在日历范围也支持手动修改
  • 当选择年或月的面板的时候不会修改日期(因为当设置了not-before或者not-after的时候会引发很多问题和bug)