@hw-component/form 1.0.5 → 1.0.6
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/es/TDPicker/hooks.js
CHANGED
|
@@ -37,7 +37,6 @@ var timeProvider = function timeProvider(value, showTime, showSecond) {
|
|
|
37
37
|
return value === null || value === void 0 ? void 0 : value.startOf("days");
|
|
38
38
|
}
|
|
39
39
|
if (!showSecond) {
|
|
40
|
-
console.log("timeProvider");
|
|
41
40
|
return value === null || value === void 0 ? void 0 : value.startOf("minute");
|
|
42
41
|
}
|
|
43
42
|
return value;
|
package/es/TDPicker/index.js
CHANGED
package/lib/TDPicker/hooks.js
CHANGED
|
@@ -38,7 +38,6 @@ var timeProvider = function timeProvider(value, showTime, showSecond) {
|
|
|
38
38
|
return value === null || value === void 0 ? void 0 : value.startOf("days");
|
|
39
39
|
}
|
|
40
40
|
if (!showSecond) {
|
|
41
|
-
console.log("timeProvider");
|
|
42
41
|
return value === null || value === void 0 ? void 0 : value.startOf("minute");
|
|
43
42
|
}
|
|
44
43
|
return value;
|
package/lib/TDPicker/index.js
CHANGED
|
@@ -45,7 +45,8 @@ var Index = function Index(_ref) {
|
|
|
45
45
|
var change = hooks.useTimeChange({
|
|
46
46
|
format: format,
|
|
47
47
|
onChange: onChange,
|
|
48
|
-
showTime: showTime
|
|
48
|
+
showTime: showTime,
|
|
49
|
+
showSecond: showSecond
|
|
49
50
|
});
|
|
50
51
|
var pickerFormat = React.useMemo(function () {
|
|
51
52
|
if (!showTime) {
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ const Index: React.FC<HDatePickerProps> = ({
|
|
|
17
17
|
}) => {
|
|
18
18
|
addFormat?.({});
|
|
19
19
|
const timeVal = useTimeVal({ value, format });
|
|
20
|
-
const change = useTimeChange({ format, onChange, showTime });
|
|
20
|
+
const change = useTimeChange({ format, onChange, showTime ,showSecond});
|
|
21
21
|
const pickerFormat=useMemo(()=>{
|
|
22
22
|
if (!showTime){
|
|
23
23
|
return "YYYY-MM-DD";
|