File tree Expand file tree Collapse file tree 4 files changed +51
-4
lines changed Expand file tree Collapse file tree 4 files changed +51
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## Changelog
2
+
3
+ <a name =" 2.0.0 " ></a >
4
+ # [ 2.0.0] ( ) (2018-06-16)
5
+
6
+ ### New features
7
+
8
+ * Add ` clearable ` used to show clear icon
9
+ * Add slot ` calendar-icon ` to custom calendar icon
10
+ * Add slot ` header ` and ` footer ` to custom popup area
11
+ * ` disabledDays ` supports custom functions
12
+
13
+ ### Breaking changes
14
+
15
+ * Refactored code. This may fail if you hacked the code
16
+ * ` 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
17
+ * remove ` custom-formatter `
18
+ * ` editable ` default value changes from false to true, now supports range
19
+ * select the year or month panel will not change the value(Because it causes many problems when set the ` not-before ` or ` not-after ` )
20
+
21
+ ### 新特性
22
+ * 添加` clearable ` 用于控制是否显示清除按钮
23
+ * 添加 slot ` calendar-icon ` 自定义日历图标
24
+ * 添加 slot ` header ` 和 ` footer ` 自定义弹出日历的头部和尾部
25
+ * ` disabledDays ` 现在支持函数
26
+
27
+ ### 非兼容性更新
28
+
29
+ * 重构代码. 如果你自己hack过代码可能会失效
30
+ * ` format ` 默认值由 yyyy-MM-dd 改成 YYYY-MM-DD, 现在格式类似moment.js. 不支持小写的yyyy
31
+ * 移除了` custom-formatter `
32
+ * ` editable ` 默认由false改成true, 现在日历范围也支持手动修改
33
+ * 当选择年或月的面板的时候不会修改日期(因为当设置了` not-before ` 或者` not-after ` 的时候会引发很多问题和bug)
Original file line number Diff line number Diff line change 15
15
</a >
16
16
17
17
## Demo
18
- < https://mengxiong10.github.io/vue2-datepicker/demo >
18
+ < https://mengxiong10.github.io/vue2-datepicker/demo/index.html >
19
19
20
20
![ image] ( https://github.com/mengxiong10/vue2-datepicker/raw/master/screenshot/demo.PNG )
21
21
@@ -149,6 +149,19 @@ export default {
149
149
| confirm | When user click 'OK' button | the currentValue |
150
150
| input-error | When user type a invalid Date| the input value |
151
151
152
+ ### Slots
153
+
154
+ | Name | Description |
155
+ | -----------------| --------------------------|
156
+ | calendar-icon | custom the calender icon |
157
+ | header | popup header |
158
+ | footer | popup footer |
159
+
160
+ ## ChangeLog
161
+
162
+ [ CHANGELOG] ( CHANGELOG.md )
163
+
164
+
152
165
## License
153
166
154
167
[ MIT] ( https://github.com/mengxiong10/vue2-datepicker/blob/master/LICENSE )
Original file line number Diff line number Diff line change 15
15
</a >
16
16
17
17
## 线上Demo
18
- < https://mengxiong10.github.io/vue2-datepicker/demo >
18
+ < https://mengxiong10.github.io/vue2-datepicker/demo/index.html >
19
19
20
20
![ image] ( https://github.com/mengxiong10/vue2-datepicker/raw/master/screenshot/demo.PNG )
21
21
Original file line number Diff line number Diff line change 10
10
"scripts" : {
11
11
"dev" : " cross-env NODE_ENV=development webpack-dev-server --hot --open --config build/webpack.dev.config.js" ,
12
12
"demo" : " cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.demo.config.js" ,
13
- "deploy " : " cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.deploy.config.js" ,
13
+ "build " : " cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.deploy.config.js" ,
14
14
"test:push" : " jest --coverage --coverageReporters=text-lcov | coveralls" ,
15
- "test" : " jest"
15
+ "test" : " jest" ,
16
+ "deploy" : " npm test && npm run build"
16
17
},
17
18
"jest" : {
18
19
"moduleFileExtensions" : [
You can’t perform that action at this time.
0 commit comments