mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
[Doc] add gzip size badge (#1107)
This commit is contained in:
parent
3d669b4a81
commit
a9bd779143
@ -13,6 +13,8 @@
|
||||
[](https://codecov.io/github/youzan/vant?branch=dev)
|
||||
[](https://www.npmjs.com/package/vant)
|
||||
[](https://www.npmjs.com/package/vant)
|
||||
[](https://unpkg.com/vant/lib/vant.min.js)
|
||||
[](https://unpkg.com/vant/lib/vant-css/index.css)
|
||||
|
||||
[访问中文版](./README.zh-CN.md)
|
||||
|
||||
|
@ -12,6 +12,8 @@
|
||||
[](https://codecov.io/github/youzan/vant?branch=dev)
|
||||
[](https://www.npmjs.com/package/vant)
|
||||
[](https://www.npmjs.com/package/vant)
|
||||
[](https://unpkg.com/vant/lib/vant.min.js)
|
||||
[](https://unpkg.com/vant/lib/vant-css/index.css)
|
||||
|
||||
## 特性
|
||||
|
||||
|
@ -223,7 +223,7 @@ export default create({
|
||||
},
|
||||
|
||||
isLeapYear(year) {
|
||||
return (year % 400 === 0) || (year % 100 !== 0 && year % 4 === 0);
|
||||
return (year % 4 === 0 && year % 100 !== 0) || (year % 400 === 0);
|
||||
},
|
||||
|
||||
isShortMonth(month) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user