Skip to content

Commit 1af9ab3

Browse files
committed
docs: add ChangeLog update readme
1 parent 96fffca commit 1af9ab3

File tree

4 files changed

+51
-4
lines changed

4 files changed

+51
-4
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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)

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</a>
1616

1717
## Demo
18-
<https://mengxiong10.github.io/vue2-datepicker/demo>
18+
<https://mengxiong10.github.io/vue2-datepicker/demo/index.html>
1919

2020
![image](https://github.com/mengxiong10/vue2-datepicker/raw/master/screenshot/demo.PNG)
2121

@@ -149,6 +149,19 @@ export default {
149149
| confirm | When user click 'OK' button | the currentValue |
150150
| input-error | When user type a invalid Date| the input value |
151151

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+
152165
## License
153166

154167
[MIT](https://github.com/mengxiong10/vue2-datepicker/blob/master/LICENSE)

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</a>
1616

1717
## 线上Demo
18-
<https://mengxiong10.github.io/vue2-datepicker/demo>
18+
<https://mengxiong10.github.io/vue2-datepicker/demo/index.html>
1919

2020
![image](https://github.com/mengxiong10/vue2-datepicker/raw/master/screenshot/demo.PNG)
2121

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"scripts": {
1111
"dev": "cross-env NODE_ENV=development webpack-dev-server --hot --open --config build/webpack.dev.config.js",
1212
"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",
1414
"test:push": "jest --coverage --coverageReporters=text-lcov | coveralls",
15-
"test": "jest"
15+
"test": "jest",
16+
"deploy": "npm test && npm run build"
1617
},
1718
"jest": {
1819
"moduleFileExtensions": [

0 commit comments

Comments
 (0)