@bit-sun/business-component 2.2.0-alpha.6 → 2.2.0-alpha.7

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
@@ -21133,7 +21133,12 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
21133
21133
  }
21134
21134
  _createClass(WrapperComponent, [{
21135
21135
  key: "shouldComponentUpdate",
21136
- value: function shouldComponentUpdate() {
21136
+ value: function shouldComponentUpdate(nextProps) {
21137
+ var _nextProps$item, _nextProps$item$key;
21138
+ if (window.__POWERED_BY_WUJIE__ && (nextProps === null || nextProps === void 0 ? void 0 : (_nextProps$item = nextProps.item) === null || _nextProps$item === void 0 ? void 0 : (_nextProps$item$key = _nextProps$item.key) === null || _nextProps$item$key === void 0 ? void 0 : _nextProps$item$key.indexOf('edit-template-template')) > -1) {
21139
+ // 适配wujie环境主应用下渲染打印编辑器
21140
+ return true;
21141
+ }
21137
21142
  return false;
21138
21143
  }
21139
21144
  }, {
package/dist/index.js CHANGED
@@ -21151,7 +21151,12 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
21151
21151
  }
21152
21152
  _createClass(WrapperComponent, [{
21153
21153
  key: "shouldComponentUpdate",
21154
- value: function shouldComponentUpdate() {
21154
+ value: function shouldComponentUpdate(nextProps) {
21155
+ var _nextProps$item, _nextProps$item$key;
21156
+ if (window.__POWERED_BY_WUJIE__ && (nextProps === null || nextProps === void 0 ? void 0 : (_nextProps$item = nextProps.item) === null || _nextProps$item === void 0 ? void 0 : (_nextProps$item$key = _nextProps$item.key) === null || _nextProps$item$key === void 0 ? void 0 : _nextProps$item$key.indexOf('edit-template-template')) > -1) {
21157
+ // 适配wujie环境主应用下渲染打印编辑器
21158
+ return true;
21159
+ }
21155
21160
  return false;
21156
21161
  }
21157
21162
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.2.0-alpha.6",
3
+ "version": "2.2.0-alpha.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -44,6 +44,7 @@ import { DndProvider, useDrag, useDrop } from 'react-dnd';
44
44
  import { HTML5Backend } from 'react-dnd-html5-backend';
45
45
  import ENUM from '@/utils/enumConfig';
46
46
  import { memoizeOneFormatter } from '@/utils/utils';
47
+ import Item from 'antd/lib/list/Item';
47
48
 
48
49
  const { TabPane } = Tabs;
49
50
 
@@ -1431,7 +1432,10 @@ class WrapperComponent extends React.Component {
1431
1432
  super(props);
1432
1433
  }
1433
1434
 
1434
- shouldComponentUpdate() {
1435
+ shouldComponentUpdate(nextProps) {
1436
+ if (window.__POWERED_BY_WUJIE__ && nextProps?.item?.key?.indexOf('edit-template-template') > -1) { // 适配wujie环境主应用下渲染打印编辑器
1437
+ return true
1438
+ }
1435
1439
  return false;
1436
1440
  }
1437
1441
  render() {
@@ -33,7 +33,7 @@ html,
33
33
  body {
34
34
  height: 100%;
35
35
  background: #f3f3f3 !important;
36
- overflow: inherit !important;
36
+ overflow: auto !important;
37
37
  }
38
38
 
39
39
  .colorWeak {