@bit-sun/business-component 2.1.1-alpha.1 → 2.1.2

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
@@ -2154,7 +2154,7 @@ var go2BackAndClose = function go2BackAndClose() {
2154
2154
  var getModalContainer = function getModalContainer() {
2155
2155
  try {
2156
2156
  if (window.top != window && window.parent.document) {
2157
- return window.parent.document.getElementById('root-master') || document.body;
2157
+ return window.parent.document.body;
2158
2158
  }
2159
2159
  } catch (error) {
2160
2160
  console.log(error);
@@ -7576,8 +7576,7 @@ var CommodityEntry = function CommodityEntry(props) {
7576
7576
  onOk: handleOk,
7577
7577
  onCancel: handleCancel,
7578
7578
  destroyOnClose: true,
7579
- zIndex: 15,
7580
- getContainer: getModalContainer
7579
+ zIndex: 15
7581
7580
  }), /*#__PURE__*/React.createElement(DataValidation, {
7582
7581
  onRef: function onRef(ref) {
7583
7582
  dataValidationRef = ref;
package/dist/index.js CHANGED
@@ -2168,7 +2168,7 @@ var go2BackAndClose = function go2BackAndClose() {
2168
2168
  var getModalContainer = function getModalContainer() {
2169
2169
  try {
2170
2170
  if (window.top != window && window.parent.document) {
2171
- return window.parent.document.getElementById('root-master') || document.body;
2171
+ return window.parent.document.body;
2172
2172
  }
2173
2173
  } catch (error) {
2174
2174
  console.log(error);
@@ -7590,8 +7590,7 @@ var CommodityEntry = function CommodityEntry(props) {
7590
7590
  onOk: handleOk,
7591
7591
  onCancel: handleCancel,
7592
7592
  destroyOnClose: true,
7593
- zIndex: 15,
7594
- getContainer: getModalContainer
7593
+ zIndex: 15
7595
7594
  }), /*#__PURE__*/React__default['default'].createElement(DataValidation, {
7596
7595
  onRef: function onRef(ref) {
7597
7596
  dataValidationRef = ref;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.1.1-alpha.1",
3
+ "version": "2.1.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -2,7 +2,6 @@
2
2
  import React, { useRef, useState } from 'react';
3
3
  import { Modal, Button, message } from 'antd';
4
4
  import DataValidation from '@/components/Functional/DataValidation';
5
- import { getModalContainer } from '@/utils/utils';
6
5
 
7
6
  const CommodityEntry = (props: any) => {
8
7
  let dataValidationRef: DataValidation = useRef();
@@ -64,7 +63,7 @@ const CommodityEntry = (props: any) => {
64
63
  <div>
65
64
  <Button onClick={handleShowModal} {...buttonProps}>{buttonName}</Button>
66
65
  {modalProps.visible && (
67
- <Modal {...modalProps} onOk={handleOk} onCancel={handleCancel} destroyOnClose={true} zIndex={15} getContainer={getModalContainer}>
66
+ <Modal {...modalProps} onOk={handleOk} onCancel={handleCancel} destroyOnClose={true} zIndex={15}>
68
67
  <DataValidation
69
68
  onRef={(ref) => { dataValidationRef = ref }}
70
69
  columns={columns}
@@ -60,7 +60,7 @@ export const go2BackAndClose = () => {
60
60
  export const getModalContainer = () => {
61
61
  try {
62
62
  if (window.top != window && window.parent.document) {
63
- return window.parent.document.getElementById('root-master') || document.body;
63
+ return window.parent.document.body
64
64
  }
65
65
  } catch (error) {
66
66
  console.log(error)