@ecoding/components.antd 0.3.17 → 0.3.19

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.
@@ -10,6 +10,10 @@ const Picker = (props) => {
10
10
  const change = (v) => {
11
11
  let value;
12
12
  setDates(v);
13
+ if (!v) {
14
+ props.onChange && props.onChange(undefined);
15
+ return;
16
+ }
13
17
  let dayjsV = dayjs(v);
14
18
  if (!props.showTime && props.endOf) {
15
19
  dayjsV = dayjsV.endOf(props.endOf);
@@ -11,7 +11,7 @@ interface IC {
11
11
  }
12
12
  interface IProps {
13
13
  columns: IC[];
14
- name: string;
14
+ name: string | string[];
15
15
  rules?: any;
16
16
  i18n?: any;
17
17
  hideOperation?: boolean;
@@ -14,11 +14,12 @@ const Picker = (props) => {
14
14
  return !!tooEarly || !!tooLate;
15
15
  };
16
16
  const change = (v) => {
17
+ let value;
18
+ setDates(v);
17
19
  if (!v) {
20
+ props.onChange && props.onChange(undefined);
18
21
  return;
19
22
  }
20
- let value;
21
- setDates(v);
22
23
  let dayjsStart = dayjs(v[0]);
23
24
  let dayjsEnd = dayjs(v[1]);
24
25
  if (!props.showTime && props.startOf) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecoding/components.antd",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "author": "cxc",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -43,5 +43,5 @@
43
43
  "antd": "^5.8.4",
44
44
  "axios": "^1.1.2"
45
45
  },
46
- "gitHead": "b9aa1f40fdf63fae954546b7b2ed6dc12b9960f2"
46
+ "gitHead": "59a35b4aae320b8903fa0d0d4ff58a4a5113dee3"
47
47
  }