@luck-design-biz/luckda 1.0.0-10-alpha → 1.0.0-11-alpha

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.
@@ -8,6 +8,7 @@ import { useMemoizedFn, useUpdateEffect, useCreation } from 'ahooks';
8
8
  import { Modal, Button } from 'luck-design/antd';
9
9
  import classNames from 'classnames';
10
10
  import styled from 'styled-components';
11
+ import { isNil } from 'lodash';
11
12
  import { LDActions } from "../../../../index";
12
13
  import { useContext } from "../../../engine/provider/ContextProvider";
13
14
  import { omitBadProps } from "../../../engine/tools/helper";
@@ -160,9 +161,9 @@ var LCDialog = function LCDialog(_ref) {
160
161
  marginTop: 0
161
162
  },
162
163
  wrapClassName: classNames(styles['lc-component-dialog-wrapper'], _defineProperty({}, wrapClassName, !!wrapClassName)),
163
- getContainer: getContainer || function () {
164
+ getContainer: isNil(getContainer) ? function () {
164
165
  return document.getElementById('root') || document.getElementById('react-content') || document.body;
165
- }
166
+ } : getContainer
166
167
  }, _footer, {
167
168
  onOk: handleOk,
168
169
  onCancel: function onCancel() {
@@ -16,6 +16,7 @@ var _ahooks = require("ahooks");
16
16
  var _antd = require("luck-design/antd");
17
17
  var _classnames = _interopRequireDefault(require("classnames"));
18
18
  var _styledComponents = _interopRequireDefault(require("styled-components"));
19
+ var _lodash = require("lodash");
19
20
  var _index = require("../../../../index");
20
21
  var _ContextProvider = require("../../../engine/provider/ContextProvider");
21
22
  var _helper = require("../../../engine/tools/helper");
@@ -168,9 +169,9 @@ var LCDialog = function LCDialog(_ref) {
168
169
  marginTop: 0
169
170
  },
170
171
  wrapClassName: (0, _classnames.default)(_index2.default['lc-component-dialog-wrapper'], (0, _defineProperty2.default)({}, wrapClassName, !!wrapClassName)),
171
- getContainer: getContainer || function () {
172
+ getContainer: (0, _lodash.isNil)(getContainer) ? function () {
172
173
  return document.getElementById('root') || document.getElementById('react-content') || document.body;
173
- }
174
+ } : getContainer
174
175
  }, _footer, {
175
176
  onOk: handleOk,
176
177
  onCancel: function onCancel() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "1.0.0-10-alpha",
3
+ "version": "1.0.0-11-alpha",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",