@titaui/pc 1.11.4-14 → 1.11.4-15
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.
|
@@ -85,26 +85,18 @@ var TimePicker = function TimePicker(props) {
|
|
|
85
85
|
|
|
86
86
|
var onTimeChange = function onTimeChange() {
|
|
87
87
|
onChange === null || onChange === void 0 ? void 0 : onChange("".concat(hourRef.current, ":").concat(minuteRef.current));
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(_mInputRef$current = mInputRef.current) === null || _mInputRef$current === void 0 ? void 0 : _mInputRef$current.focus();
|
|
101
|
-
}
|
|
88
|
+
}; // const onInputClick = (type) => {
|
|
89
|
+
// clearTimeout(timerRef.current)
|
|
90
|
+
// timerRef.current = setTimeout(() => {
|
|
91
|
+
// if (type === 'hour') {
|
|
92
|
+
// hInputRef.current?.focus()
|
|
93
|
+
// } else {
|
|
94
|
+
// mInputRef.current?.focus()
|
|
95
|
+
// }
|
|
96
|
+
// setTimeSettingType(() => type)
|
|
97
|
+
// }, 0)
|
|
98
|
+
// }
|
|
102
99
|
|
|
103
|
-
setTimeSettingType(function () {
|
|
104
|
-
return type;
|
|
105
|
-
});
|
|
106
|
-
}, 0);
|
|
107
|
-
};
|
|
108
100
|
|
|
109
101
|
var onFocusHandler = function onFocusHandler(type) {
|
|
110
102
|
setTimeSettingType(function () {
|
|
@@ -276,10 +268,8 @@ var TimePicker = function TimePicker(props) {
|
|
|
276
268
|
disabled: disabled,
|
|
277
269
|
maxLength: 2,
|
|
278
270
|
onBlur: onHourInputBlur,
|
|
279
|
-
onChange: onHourInputChange
|
|
280
|
-
|
|
281
|
-
return onInputClick('hour');
|
|
282
|
-
},
|
|
271
|
+
onChange: onHourInputChange // onClick={() => onInputClick('hour')}
|
|
272
|
+
,
|
|
283
273
|
onFocus: function onFocus() {
|
|
284
274
|
return onFocusHandler('hour');
|
|
285
275
|
},
|
|
@@ -292,10 +282,8 @@ var TimePicker = function TimePicker(props) {
|
|
|
292
282
|
disabled: disabled,
|
|
293
283
|
maxLength: 2,
|
|
294
284
|
onBlur: onMinuteInputBlur,
|
|
295
|
-
onChange: onMinuteInputChange
|
|
296
|
-
|
|
297
|
-
return onInputClick('minute');
|
|
298
|
-
},
|
|
285
|
+
onChange: onMinuteInputChange // onClick={() => onInputClick('minute')}
|
|
286
|
+
,
|
|
299
287
|
onFocus: function onFocus() {
|
|
300
288
|
return onFocusHandler('minute');
|
|
301
289
|
},
|