@cloud-app-dev/vidc 1.0.48 → 1.0.49

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/README.md CHANGED
@@ -25,3 +25,7 @@ Build library via `father-build`,
25
25
  ```bash
26
26
  $ npm run build
27
27
  ```
28
+
29
+ ### Changlog
30
+
31
+ - 1.0.48 修复工作流 bug
@@ -4,7 +4,6 @@ import "antd/lib/button/style";
4
4
  import _Button from "antd/lib/button";
5
5
  import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
6
6
  import _ContentBox from "@cloud-app-dev/basic-components/es/ContentBox";
7
- import _useChangeEffect from "@cloud-app-dev/basic-components/es/useChangeEffect";
8
7
 
9
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
9
 
@@ -18,7 +17,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
18
17
 
19
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
19
 
21
- import React, { useCallback, useImperativeHandle, useMemo, useRef, useState } from 'react';
20
+ import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
22
21
  import RefModal from '../../RefModal';
23
22
 
24
23
  function ConditionForm(_ref) {
@@ -30,6 +29,8 @@ function ConditionForm(_ref) {
30
29
 
31
30
  var _a, _b;
32
31
 
32
+ console.log(item, useConditionFields);
33
+
33
34
  var _useState = useState({
34
35
  field: (item === null || item === void 0 ? void 0 : item.conditionList) ? (_a = item.conditionList[0]) === null || _a === void 0 ? void 0 : _a.field : '',
35
36
  value: (item === null || item === void 0 ? void 0 : item.conditionList) ? (_b = item === null || item === void 0 ? void 0 : item.conditionList[0]) === null || _b === void 0 ? void 0 : _b.value : ''
@@ -104,8 +105,7 @@ function ConditionForm(_ref) {
104
105
  };
105
106
  });
106
107
  }, []);
107
-
108
- _useChangeEffect(function () {
108
+ useEffect(function () {
109
109
  if (state.field !== undefined && state.value !== undefined && formItem) {
110
110
  var conditionList = [{
111
111
  field: state.field,
@@ -129,7 +129,6 @@ function ConditionForm(_ref) {
129
129
  });
130
130
  }
131
131
  }, [state.field, state.value, formItem, options]);
132
-
133
132
  return /*#__PURE__*/React.createElement(_ContentBox.InfoBox, {
134
133
  title: "\u8BBE\u7F6E\u6761\u4EF6",
135
134
  contentStyle: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "1.0.48",
5
+ "version": "1.0.49",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",