@zgfe/business-lib 1.0.21-cdp.12 → 1.0.21-cdp.13

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.
@@ -122,11 +122,6 @@ var BizCycleTime = function BizCycleTime(props) {
122
122
  setIniting(false);
123
123
  });
124
124
  }, []);
125
- useEffect(function () {
126
- if (initing) return;
127
- setDay([]);
128
- setTime(undefined);
129
- }, [unit]);
130
125
  useEffect(function () {
131
126
  var res = {
132
127
  unit: unit.value,
@@ -163,6 +158,8 @@ var BizCycleTime = function BizCycleTime(props) {
163
158
  defaultValue: unit,
164
159
  size: size,
165
160
  onChange: function onChange(v) {
161
+ setDay([]);
162
+ setTime(undefined);
166
163
  setUnit(v);
167
164
  }
168
165
  }), unit.value === CycleTimeUnit.day && /*#__PURE__*/React.createElement(DatePicker.TimePicker, {
@@ -41,8 +41,10 @@ var MonthDay = function MonthDay(props) {
41
41
  useEffect(function () {
42
42
  if (!props.defaultValue) return;
43
43
  var res = [];
44
- dayList.forEach(function (item) {
45
- props.defaultValue.forEach(function (v) {
44
+ dayList === null || dayList === void 0 ? void 0 : dayList.forEach(function (item) {
45
+ var _props$defaultValue;
46
+
47
+ (_props$defaultValue = props.defaultValue) === null || _props$defaultValue === void 0 ? void 0 : _props$defaultValue.forEach(function (v) {
46
48
  if (v.value === item.value) res.push(item);
47
49
  });
48
50
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.21-cdp.12",
3
+ "version": "1.0.21-cdp.13",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,5 +58,5 @@
58
58
  "react": "^16.12.0 || ^17.0.0",
59
59
  "yorkie": "^2.0.0"
60
60
  },
61
- "gitHead": "8931ad248ab3f1dc21ea7bcf7461782c29648a5c"
61
+ "gitHead": "75e0e97d9b164e4aa6326dbd4cdbaee379c17878"
62
62
  }