shineout 1.6.6 → 1.7.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,15 +102,11 @@ function (_PureComponent) {
102
102
  min = _this$props3.min,
103
103
  max = _this$props3.max,
104
104
  index = _this$props3.index,
105
- value = _this$props3.value; // if has value use value time
106
-
107
- var current = index === sync && value || this.formatWithDefaultTime(sync);
105
+ value = _this$props3.value;
106
+ var current = (index !== undefined ? index === sync && value : value) || this.formatWithDefaultTime(sync);
108
107
  var onChange = typeof sync === 'number' ? this.props.onChangeSync.bind(this.props, sync) : this.props.onChange;
109
108
 
110
109
  if (type === 'week') {
111
- // if (date.getDay() === 0) {
112
- // date = utils.subDays(date, 1)
113
- // }
114
110
  onChange.apply(void 0, _utils.default.weekHandleChangeParams(date, true, true));
115
111
  } else {
116
112
  var newDate = new Date(date.getFullYear(), date.getMonth(), date.getDate(), current.getHours(), current.getMinutes(), current.getSeconds()); // only can select day with the same day of min/max
package/css/index.js CHANGED
@@ -222,6 +222,6 @@ exports.Upload = _Upload.default;
222
222
  // Created by scripts/src-index.js.
223
223
  var _default = {
224
224
  utils: utils,
225
- version: '1.6.6'
225
+ version: '1.7.0-rc.1'
226
226
  };
227
227
  exports.default = _default;