@bit-sun/business-component 2.0.39-alpha.14 → 2.0.39-alpha.15

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/dist/index.esm.js CHANGED
@@ -25750,11 +25750,9 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
25750
25750
  }
25751
25751
  };
25752
25752
  React.useEffect(function () {
25753
- if (init) {
25754
- onClickRun(jsonEditorVal);
25755
- setInit(false);
25756
- }
25757
- }, [jsonEditorVal]);
25753
+ onClickRun(initialSetting);
25754
+ setJsonEditorVal(initialSetting);
25755
+ }, [initialSetting]);
25758
25756
  var height = (styleRef === null || styleRef === void 0 ? void 0 : (_styleRef$current = styleRef.current) === null || _styleRef$current === void 0 ? void 0 : _styleRef$current.clientHeight) || (styleRef === null || styleRef === void 0 ? void 0 : (_styleRef$current2 = styleRef.current) === null || _styleRef$current2 === void 0 ? void 0 : _styleRef$current2.offsetHeight);
25759
25757
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Drawer, {
25760
25758
  visible: visible,
package/dist/index.js CHANGED
@@ -25768,11 +25768,9 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
25768
25768
  }
25769
25769
  };
25770
25770
  React__default['default'].useEffect(function () {
25771
- if (init) {
25772
- onClickRun(jsonEditorVal);
25773
- setInit(false);
25774
- }
25775
- }, [jsonEditorVal]);
25771
+ onClickRun(initialSetting);
25772
+ setJsonEditorVal(initialSetting);
25773
+ }, [initialSetting]);
25776
25774
  var height = (styleRef === null || styleRef === void 0 ? void 0 : (_styleRef$current = styleRef.current) === null || _styleRef$current === void 0 ? void 0 : _styleRef$current.clientHeight) || (styleRef === null || styleRef === void 0 ? void 0 : (_styleRef$current2 = styleRef.current) === null || _styleRef$current2 === void 0 ? void 0 : _styleRef$current2.offsetHeight);
25777
25775
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Drawer, {
25778
25776
  visible: visible,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.0.39-alpha.14",
3
+ "version": "2.0.39-alpha.15",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -198,11 +198,11 @@ const JsonQueryTable = React.memo(props => {
198
198
  };
199
199
 
200
200
  React.useEffect(() => {
201
- if (init) {
202
- onClickRun(jsonEditorVal);
203
- setInit(false)
204
- }
205
- }, [jsonEditorVal]);
201
+ onClickRun(initialSetting);
202
+ setJsonEditorVal(initialSetting)
203
+ }, [initialSetting]);
204
+
205
+
206
206
 
207
207
  const height =
208
208
  styleRef?.current?.clientHeight || styleRef?.current?.offsetHeight;