mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-09 03:12:27 +03:00
1.5 KiB
1.5 KiB
Changelog
2.0.0 (2018-06-16)
New 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)
新特性
- 添加
clearable用于控制是否显示清除按钮 - 添加 slot
calendar-icon自定义日历图标 - 添加 slot
header和footer自定义弹出日历的头部和尾部 disabledDays现在支持函数
非兼容性更新
- 重构代码. 如果你自己hack过代码可能会失效
format默认值由 yyyy-MM-dd 改成 YYYY-MM-DD, 现在格式类似moment.js. 不支持小写的yyyy- 移除了
custom-formatter editable默认由false改成true, 现在日历范围也支持手动修改- 当选择年或月的面板的时候不会修改日期(因为当设置了
not-before或者not-after的时候会引发很多问题和bug)
2.1.0 (2018-07-24)
New features
- Add
typeyear and month
新特性
- 添加
type支持月和年的单独选择