m-datetime-picker
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -55,3 +55,3 @@ 'use strict'; | ||
var formatNumber = function formatNumber(n) { | ||
return n < 10 ? '0' + n : n; | ||
return (n < 10 ? '0' : '') + n ; | ||
}; | ||
@@ -174,3 +174,3 @@ | ||
if (x === 'Y') { | ||
_result.push(initDate.getFullYear()); | ||
_result.push(initDate.getFullYear() + ''); | ||
} else if (x === 'M') { | ||
@@ -177,0 +177,0 @@ _result.push(formatNumber(initDate.getMonth() + 1)); |
{ | ||
"name": "m-datetime-picker", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "m-datetime-picker 日期时间选择器,基于m-picker扩展来", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25361