@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.
@@ -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;
@@ -42,7 +42,8 @@ var Index = function Index(_ref) {
42
42
  var change = useTimeChange({
43
43
  format: format,
44
44
  onChange: onChange,
45
- showTime: showTime
45
+ showTime: showTime,
46
+ showSecond: showSecond
46
47
  });
47
48
  var pickerFormat = useMemo(function () {
48
49
  if (!showTime) {
@@ -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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,7 +51,6 @@ const timeProvider=(value?:Moment,showTime?:HDatePickerProps["showTime"],showSec
51
51
  return value?.startOf("days");
52
52
  }
53
53
  if (!showSecond){
54
- console.log("timeProvider")
55
54
  return value?.startOf("minute");
56
55
  }
57
56
  return value;
@@ -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";