m-datetime-picker
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -86,3 +86,2 @@ 'use strict'; | ||
/*const defaults = { | ||
rotateEffect: false, | ||
defaultValue: [today.getFullYear(), formatNumber(today.getMonth() + 1), formatNumber(today.getDate()), today.getHours(), formatNumber(today.getMinutes())], | ||
@@ -148,4 +147,2 @@ formatValue: (p, values, displayValues) => displayValues[0] + '-' + values[1] + '-' + values[2] + ' ' + values[3] + ':' + values[4], | ||
_this.options = { | ||
rotateEffect: false, | ||
defaultValue: _this.getDefaultValue.bind(_this)(), | ||
@@ -166,2 +163,5 @@ | ||
var _result = []; | ||
// 可以没有默认值 | ||
if (!this.props.defaultValue) return ''; | ||
var initDate = new Date(this.props.defaultValue); | ||
@@ -168,0 +168,0 @@ if (+initDate > +this.maxDate) initDate = this.maxDate; |
{ | ||
"name": "m-datetime-picker", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"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
23931