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.
- package/css/DatePicker/Day.js +2 -6
- package/css/index.js +1 -1
- package/dist/shineout.js +3374 -3378
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/DatePicker/Day.js +1 -6
- package/es/index.js +1 -1
- package/lib/DatePicker/Day.js +2 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/css/DatePicker/Day.js
CHANGED
|
@@ -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;
|
|
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
|