@luck-design-biz/luckda 1.0.0-alpha → 1.0.1
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/es/components/Builder/index.js +15 -3
- package/es/components/ComplexItem/index.js +65 -49
- package/es/components/LdAutoForm/index.js +4 -3
- package/es/components/LdFormList/index.js +3 -6
- package/es/components/LdGridForm/index.js +2 -1
- package/es/helper/form.js +1 -0
- package/es/helper/ldBuilder.js +8 -3
- package/es/locales/zh-CN.js +38 -4
- package/es/lowcode/constants/event-topics.js +0 -2
- package/es/lowcode/engine/launcher.js +3 -1
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.default.json +1 -1
- package/es/lowcode/engine/meta/button.props.json +2 -2
- package/es/lowcode/engine/meta/dialog.props.json +2 -2
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielddate.props.json +4 -2
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/es/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/es/lowcode/engine/meta/fielduser.props.json +1 -1
- package/es/lowcode/engine/meta/form.props.default.json +0 -1
- package/es/lowcode/engine/meta/form.props.json +4 -5
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/es/lowcode/engine/meta/iframe.props.json +1 -1
- package/es/lowcode/engine/meta/image.props.default.json +1 -1
- package/es/lowcode/engine/meta/image.props.json +1 -1
- package/es/lowcode/engine/meta/imex.props.default.json +2 -1
- package/es/lowcode/engine/meta/imex.props.json +26 -5
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +38 -20
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/es/lowcode/engine/meta/jsx.props.json +1 -1
- package/es/lowcode/engine/meta/layout.props.default.json +1 -1
- package/es/lowcode/engine/meta/layout.props.json +5 -5
- package/es/lowcode/engine/meta/link.props.default.json +1 -1
- package/es/lowcode/engine/meta/link.props.json +1 -1
- package/es/lowcode/engine/meta/page.props.json +6 -0
- package/es/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/es/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.json +2 -1
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +1 -1
- package/es/lowcode/engine/meta/table.props.json +2 -2
- package/es/lowcode/engine/meta/text.props.default.json +4 -2
- package/es/lowcode/engine/meta/text.props.json +8 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +63 -46
- package/es/lowcode/engine/provider/ContextProvider/router.js +43 -0
- package/es/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -15
- package/es/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/es/lowcode/engine/provider/ContextProvider/utils.js +157 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +1 -2
- package/es/lowcode/engine/tools/helper.js +7 -2
- package/es/lowcode/engine/tools/initDS.js +263 -0
- package/es/lowcode/engine/tools/useCombinedRefs.js +3 -2
- package/es/lowcode/painter/DesignOperator.js +10 -1
- package/es/lowcode/painter/Panel.js +2 -2
- package/es/lowcode/painter/components/AdvancePanel.js +3 -3
- package/es/lowcode/painter/components/Collapse.js +5 -2
- package/es/lowcode/painter/components/TipIcon.js +16 -0
- package/es/lowcode/painter/components/VarEditor.js +456 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +3 -1
- package/es/lowcode/painter/components/code-editor/VisionEditor.js +81 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +17 -3
- package/es/lowcode/painter/components/field-setting/index.js +1 -1
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/es/lowcode/painter/index.js +1 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +20 -6
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/es/lowcode/painter/panel-section/ComplexPop.js +242 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +29 -3
- package/es/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/es/lowcode/painter/panel-section/Icon.js +9 -4
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +7 -7
- package/es/lowcode/painter/panel-section/IconSelector.js +1 -1
- package/es/lowcode/painter/panel-section/ImpExp.js +1 -27
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +1 -2
- package/es/lowcode/painter/panel-section/LayoutRatio.js +1 -0
- package/es/lowcode/painter/panel-section/PageVars.js +300 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +4 -3
- package/es/lowcode/painter/panel-section/TabItems.js +6 -42
- package/es/lowcode/painter/panel-section/TextContent.js +79 -0
- package/es/lowcode/painter/services/complexPop.js +21 -0
- package/es/lowcode/painter/style/design.less +1 -1
- package/es/lowcode/painter/style/page-vars.less +25 -0
- package/es/lowcode/preview/index.js +1 -0
- package/es/lowcode/view/Canvas.js +24 -22
- package/es/lowcode/view/Loading.js +5 -7
- package/es/lowcode/view/Page.js +37 -15
- package/es/lowcode/view/index.js +1 -0
- package/es/lowcode/view/lc-components/Box/index.js +18 -3
- package/es/lowcode/view/lc-components/Box/meta.json +3 -3
- package/es/lowcode/view/lc-components/Button/index.js +7 -7
- package/es/lowcode/view/lc-components/Button/meta.json +2 -2
- package/es/lowcode/view/lc-components/Dialog/index.js +6 -7
- package/es/lowcode/view/lc-components/Dialog/meta.json +2 -2
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +7 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +4 -2
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +3 -2
- package/es/lowcode/view/lc-components/FieldUser/meta.json +1 -1
- package/es/lowcode/view/lc-components/Form/index.js +14 -6
- package/es/lowcode/view/lc-components/Form/meta.json +4 -5
- package/es/lowcode/view/lc-components/Iframe/meta.json +1 -1
- package/es/lowcode/view/lc-components/ImEx/index.js +174 -103
- package/es/lowcode/view/lc-components/ImEx/meta.json +26 -5
- package/es/lowcode/view/lc-components/Image/meta.json +1 -1
- package/es/lowcode/view/lc-components/JSX/meta.json +1 -1
- package/es/lowcode/view/lc-components/Layout/index.js +22 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +5 -5
- package/es/lowcode/view/lc-components/Link/meta.json +1 -1
- package/es/lowcode/view/lc-components/Page/meta.json +6 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/es/lowcode/view/lc-components/PageLayout/meta.json +1 -1
- package/es/lowcode/view/lc-components/Section/index.js +2 -6
- package/es/lowcode/view/lc-components/Section/meta.json +2 -1
- package/es/lowcode/view/lc-components/Split/index.js +19 -4
- package/es/lowcode/view/lc-components/Split/meta.json +1 -1
- package/es/lowcode/view/lc-components/Table/index.js +29 -3
- package/es/lowcode/view/lc-components/Table/meta.json +2 -2
- package/es/lowcode/view/lc-components/Tabs/index.js +19 -16
- package/es/lowcode/view/lc-components/Text/index.js +9 -2
- package/es/lowcode/view/lc-components/Text/meta.json +6 -6
- package/es/lowcode/view/lc-components/Wrapper.js +17 -2
- package/es/lowcode/view/style/loading.less +14 -0
- package/es/services.js +19 -0
- package/es/upload/Form/gridForm.js +17 -7
- package/es/upload/FormItem/index.js +6 -6
- package/es/utils/form.js +4 -4
- package/es/utils/grid.js +2 -1
- package/lib/components/Builder/index.js +13 -1
- package/lib/components/ComplexItem/index.js +62 -47
- package/lib/components/LdAutoForm/index.js +3 -2
- package/lib/components/LdFormList/index.js +5 -8
- package/lib/components/LdGridForm/index.js +2 -1
- package/lib/helper/form.js +1 -0
- package/lib/helper/ldBuilder.js +8 -3
- package/lib/locales/zh-CN.js +38 -4
- package/lib/lowcode/constants/event-topics.js +1 -3
- package/lib/lowcode/engine/launcher.js +3 -1
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.default.json +1 -1
- package/lib/lowcode/engine/meta/button.props.json +2 -2
- package/lib/lowcode/engine/meta/dialog.props.json +2 -2
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +4 -2
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/lib/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/lib/lowcode/engine/meta/fielduser.props.json +1 -1
- package/lib/lowcode/engine/meta/form.props.default.json +0 -1
- package/lib/lowcode/engine/meta/form.props.json +4 -5
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/lib/lowcode/engine/meta/iframe.props.json +1 -1
- package/lib/lowcode/engine/meta/image.props.default.json +1 -1
- package/lib/lowcode/engine/meta/image.props.json +1 -1
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -1
- package/lib/lowcode/engine/meta/imex.props.json +26 -5
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +38 -20
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/lib/lowcode/engine/meta/jsx.props.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.json +5 -5
- package/lib/lowcode/engine/meta/link.props.default.json +1 -1
- package/lib/lowcode/engine/meta/link.props.json +1 -1
- package/lib/lowcode/engine/meta/page.props.json +6 -0
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.json +2 -1
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +1 -1
- package/lib/lowcode/engine/meta/table.props.json +2 -2
- package/lib/lowcode/engine/meta/text.props.default.json +4 -2
- package/lib/lowcode/engine/meta/text.props.json +8 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +61 -44
- package/lib/lowcode/engine/provider/ContextProvider/router.js +57 -0
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -16
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/lib/lowcode/engine/provider/ContextProvider/utils.js +170 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -3
- package/lib/lowcode/engine/tools/helper.js +7 -2
- package/lib/lowcode/engine/tools/initDS.js +270 -0
- package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/lib/lowcode/painter/DesignOperator.js +9 -0
- package/lib/lowcode/painter/Panel.js +2 -2
- package/lib/lowcode/painter/components/AdvancePanel.js +3 -3
- package/lib/lowcode/painter/components/Collapse.js +5 -2
- package/lib/lowcode/painter/components/TipIcon.js +23 -0
- package/lib/lowcode/painter/components/VarEditor.js +463 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +2 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +3 -1
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js +88 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +17 -3
- package/lib/lowcode/painter/components/field-setting/index.js +1 -1
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/lib/lowcode/painter/index.js +1 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +19 -5
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/lib/lowcode/painter/panel-section/ComplexPop.js +250 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +29 -3
- package/lib/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/lib/lowcode/painter/panel-section/Icon.js +8 -3
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +6 -6
- package/lib/lowcode/painter/panel-section/IconSelector.js +1 -1
- package/lib/lowcode/painter/panel-section/ImpExp.js +0 -26
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -1
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +1 -0
- package/lib/lowcode/painter/panel-section/PageVars.js +308 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +4 -3
- package/lib/lowcode/painter/panel-section/TabItems.js +6 -42
- package/lib/lowcode/painter/panel-section/TextContent.js +87 -0
- package/lib/lowcode/painter/services/complexPop.js +28 -0
- package/lib/lowcode/painter/style/design.less +1 -1
- package/lib/lowcode/painter/style/page-vars.less +25 -0
- package/lib/lowcode/preview/index.js +1 -0
- package/lib/lowcode/view/Canvas.js +24 -22
- package/lib/lowcode/view/Loading.js +5 -7
- package/lib/lowcode/view/Page.js +35 -13
- package/lib/lowcode/view/index.js +1 -0
- package/lib/lowcode/view/lc-components/Box/index.js +17 -2
- package/lib/lowcode/view/lc-components/Box/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Button/index.js +5 -5
- package/lib/lowcode/view/lc-components/Button/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Dialog/index.js +6 -7
- package/lib/lowcode/view/lc-components/Dialog/meta.json +2 -2
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +7 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +4 -2
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +3 -2
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Form/index.js +14 -6
- package/lib/lowcode/view/lc-components/Form/meta.json +4 -5
- package/lib/lowcode/view/lc-components/Iframe/meta.json +1 -1
- package/lib/lowcode/view/lc-components/ImEx/index.js +172 -101
- package/lib/lowcode/view/lc-components/ImEx/meta.json +26 -5
- package/lib/lowcode/view/lc-components/Image/meta.json +1 -1
- package/lib/lowcode/view/lc-components/JSX/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Layout/index.js +21 -4
- package/lib/lowcode/view/lc-components/Layout/meta.json +5 -5
- package/lib/lowcode/view/lc-components/Link/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Page/meta.json +6 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Section/index.js +2 -6
- package/lib/lowcode/view/lc-components/Section/meta.json +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js +18 -3
- package/lib/lowcode/view/lc-components/Split/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Table/index.js +30 -4
- package/lib/lowcode/view/lc-components/Table/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +17 -14
- package/lib/lowcode/view/lc-components/Text/index.js +8 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +6 -6
- package/lib/lowcode/view/lc-components/Wrapper.js +16 -1
- package/lib/lowcode/view/style/loading.less +14 -0
- package/lib/services.js +20 -0
- package/lib/upload/Form/gridForm.js +17 -7
- package/lib/upload/FormItem/index.js +6 -6
- package/lib/utils/form.js +3 -3
- package/lib/utils/grid.js +2 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
@@ -11,7 +11,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
12
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
13
13
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
16
|
var _ahooks = require("ahooks");
|
|
@@ -30,7 +29,6 @@ var _helper = require("../../../engine/tools/helper");
|
|
|
30
29
|
var _apiUrl = require("../../../constants/api-url");
|
|
31
30
|
var _imexPropsDefault = _interopRequireDefault(require("../../../engine/meta/imex.props.default.json"));
|
|
32
31
|
var _lodash = require("lodash");
|
|
33
|
-
var _excluded = ["id", "title", "type", "size", "iconFont", "block", "ghost", "css", "className", "onClick", "advance", "impexpSetting"];
|
|
34
32
|
var StyledButton = (0, _styledComponents.default)(_LdCom.LdButton).withConfig({
|
|
35
33
|
displayName: "StyledButton",
|
|
36
34
|
componentId: "luckda-6530__sc-mil6cj-0"
|
|
@@ -58,12 +56,18 @@ var LCImex = function LCImex(_ref) {
|
|
|
58
56
|
onClick = _ref.onClick,
|
|
59
57
|
advance = _ref.advance,
|
|
60
58
|
impexpSetting = _ref.impexpSetting,
|
|
61
|
-
|
|
59
|
+
serial = _ref.serial,
|
|
60
|
+
serialEffect = _ref.serialEffect;
|
|
62
61
|
var ref = (0, _react.useRef)();
|
|
63
|
-
var
|
|
62
|
+
var ctx = (0, _ContextProvider.useContext)();
|
|
64
63
|
var _useRemoteSource = (0, _ContextProvider.useRemoteSource)(),
|
|
65
|
-
module = _useRemoteSource.module
|
|
66
|
-
|
|
64
|
+
module = _useRemoteSource.module;
|
|
65
|
+
(0, _react.useEffect)(function () {
|
|
66
|
+
ctx.doAction(advance.events.onMount);
|
|
67
|
+
return function () {
|
|
68
|
+
return ctx.doAction(advance.events.onUnmount);
|
|
69
|
+
};
|
|
70
|
+
}, []);
|
|
67
71
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
68
72
|
var _ref$current;
|
|
69
73
|
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.buttonNode;
|
|
@@ -84,7 +88,7 @@ var LCImex = function LCImex(_ref) {
|
|
|
84
88
|
var _fetchExcelStateParams = {
|
|
85
89
|
moduleCode: moduleCode,
|
|
86
90
|
behaviorKey: behaviorKey,
|
|
87
|
-
reportType:
|
|
91
|
+
reportType: 'export'
|
|
88
92
|
};
|
|
89
93
|
(0, _apiUrl.getFindexcelstate)(_fetchExcelStatePrefix, _fetchExcelStateParams).then(function (response) {
|
|
90
94
|
if (response.code === 1) {
|
|
@@ -131,7 +135,7 @@ var LCImex = function LCImex(_ref) {
|
|
|
131
135
|
_exportExcelParams = {
|
|
132
136
|
moduleCode: module.moduleCode,
|
|
133
137
|
behaviorKey: behaviorKey,
|
|
134
|
-
reportType:
|
|
138
|
+
reportType: 'export'
|
|
135
139
|
};
|
|
136
140
|
_exportExcelPrefix = "/".concat(strategy);
|
|
137
141
|
_context.next = 9;
|
|
@@ -159,47 +163,68 @@ var LCImex = function LCImex(_ref) {
|
|
|
159
163
|
};
|
|
160
164
|
}());
|
|
161
165
|
};
|
|
162
|
-
var doExportAll = function
|
|
163
|
-
var
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
166
|
+
var doExportAll = /*#__PURE__*/function () {
|
|
167
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(onExportAll) {
|
|
168
|
+
var key, notificationConfig, process, ret;
|
|
169
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
170
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
171
|
+
case 0:
|
|
172
|
+
key = 'exportAll';
|
|
173
|
+
notificationConfig = {
|
|
174
|
+
key: key,
|
|
175
|
+
duration: null,
|
|
176
|
+
message: '正在导出数据...',
|
|
177
|
+
placement: 'bottomRight',
|
|
178
|
+
closeIcon: /*#__PURE__*/_react.default.createElement("div", null),
|
|
179
|
+
icon: /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
180
|
+
type: "cloud-download",
|
|
181
|
+
className: _index.default.exportTheme
|
|
182
|
+
})
|
|
183
|
+
};
|
|
184
|
+
process = function process(i) {
|
|
185
|
+
_antd.notification.open((0, _objectSpread2.default)((0, _objectSpread2.default)({}, notificationConfig), {}, {
|
|
186
|
+
description: /*#__PURE__*/_react.default.createElement(_antd.Progress, {
|
|
187
|
+
percent: i
|
|
188
|
+
})
|
|
189
|
+
}));
|
|
190
|
+
};
|
|
191
|
+
_antd.notification.open((0, _objectSpread2.default)((0, _objectSpread2.default)({}, notificationConfig), {}, {
|
|
192
|
+
description: /*#__PURE__*/_react.default.createElement(_antd.Progress, {
|
|
193
|
+
percent: 0
|
|
194
|
+
})
|
|
195
|
+
}));
|
|
196
|
+
_context2.prev = 4;
|
|
197
|
+
_context2.next = 7;
|
|
198
|
+
return onExportAll(process);
|
|
199
|
+
case 7:
|
|
200
|
+
ret = _context2.sent;
|
|
201
|
+
if (ret) {
|
|
202
|
+
window.location.href = ret;
|
|
203
|
+
}
|
|
204
|
+
_antd.notification.close(key);
|
|
205
|
+
_context2.next = 15;
|
|
206
|
+
break;
|
|
207
|
+
case 12:
|
|
208
|
+
_context2.prev = 12;
|
|
209
|
+
_context2.t0 = _context2["catch"](4);
|
|
210
|
+
_antd.notification.open((0, _objectSpread2.default)((0, _objectSpread2.default)({}, notificationConfig), {}, {
|
|
211
|
+
icon: /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
212
|
+
type: "cloud-download",
|
|
213
|
+
className: _index.default.exportErrorTheme
|
|
214
|
+
}),
|
|
215
|
+
message: '导出失败',
|
|
216
|
+
duration: 4
|
|
217
|
+
}));
|
|
218
|
+
case 15:
|
|
219
|
+
case "end":
|
|
220
|
+
return _context2.stop();
|
|
221
|
+
}
|
|
222
|
+
}, _callee2, null, [[4, 12]]);
|
|
186
223
|
}));
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
_antd.notification.close(key);
|
|
192
|
-
}).catch(function () {
|
|
193
|
-
return _antd.notification.open((0, _objectSpread2.default)((0, _objectSpread2.default)({}, notificationConfig), {}, {
|
|
194
|
-
icon: /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
195
|
-
type: "cloud-download",
|
|
196
|
-
className: _index.default.exportErrorTheme
|
|
197
|
-
}),
|
|
198
|
-
message: '导出失败',
|
|
199
|
-
duration: 4
|
|
200
|
-
}));
|
|
201
|
-
});
|
|
202
|
-
};
|
|
224
|
+
return function doExportAll(_x3) {
|
|
225
|
+
return _ref4.apply(this, arguments);
|
|
226
|
+
};
|
|
227
|
+
}();
|
|
203
228
|
|
|
204
229
|
// ========= 导出 ==========
|
|
205
230
|
|
|
@@ -224,18 +249,18 @@ var LCImex = function LCImex(_ref) {
|
|
|
224
249
|
manual: true
|
|
225
250
|
}),
|
|
226
251
|
runAsyncImport = _useRequest2.runAsync;
|
|
227
|
-
var fecthFindExcelState = function fecthFindExcelState(
|
|
228
|
-
var strategy =
|
|
229
|
-
batchNo =
|
|
230
|
-
moduleCode =
|
|
231
|
-
behaviorKey =
|
|
232
|
-
templateId =
|
|
252
|
+
var fecthFindExcelState = function fecthFindExcelState(_ref5, callback) {
|
|
253
|
+
var strategy = _ref5.strategy,
|
|
254
|
+
batchNo = _ref5.batchNo,
|
|
255
|
+
moduleCode = _ref5.moduleCode,
|
|
256
|
+
behaviorKey = _ref5.behaviorKey,
|
|
257
|
+
templateId = _ref5.templateId;
|
|
233
258
|
var _fetchExcelStatePrefix = "/".concat(strategy, "/").concat(batchNo);
|
|
234
259
|
var _fetchExcelStateParams = {
|
|
235
260
|
moduleCode: moduleCode,
|
|
236
261
|
behaviorKey: behaviorKey,
|
|
237
262
|
templateId: templateId,
|
|
238
|
-
reportType:
|
|
263
|
+
reportType: 'import'
|
|
239
264
|
};
|
|
240
265
|
(0, _apiUrl.getFindexcelstate)(_fetchExcelStatePrefix, _fetchExcelStateParams).then(function (response) {
|
|
241
266
|
if (response.code === 1) {
|
|
@@ -271,13 +296,13 @@ var LCImex = function LCImex(_ref) {
|
|
|
271
296
|
}
|
|
272
297
|
}, [visible]);
|
|
273
298
|
var handleImport = /*#__PURE__*/function () {
|
|
274
|
-
var
|
|
299
|
+
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3(err, values) {
|
|
275
300
|
var _importExcelParams, strategy, importParameter, _importExcelPrefix, importExcelResponse;
|
|
276
|
-
return (0, _regeneratorRuntime2.default)().wrap(function
|
|
277
|
-
while (1) switch (
|
|
301
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
|
|
302
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
278
303
|
case 0:
|
|
279
304
|
if (err) {
|
|
280
|
-
|
|
305
|
+
_context3.next = 14;
|
|
281
306
|
break;
|
|
282
307
|
}
|
|
283
308
|
_importExcelParams = new FormData();
|
|
@@ -295,10 +320,10 @@ var LCImex = function LCImex(_ref) {
|
|
|
295
320
|
};
|
|
296
321
|
_importExcelParams.append('importParameter', JSON.stringify(importParameter));
|
|
297
322
|
_importExcelPrefix = "/".concat(strategy);
|
|
298
|
-
|
|
323
|
+
_context3.next = 9;
|
|
299
324
|
return runAsyncImport(_importExcelPrefix, _importExcelParams);
|
|
300
325
|
case 9:
|
|
301
|
-
importExcelResponse =
|
|
326
|
+
importExcelResponse = _context3.sent;
|
|
302
327
|
setActionStep('uploading');
|
|
303
328
|
fecthFindExcelState((0, _objectSpread2.default)({
|
|
304
329
|
strategy: strategy,
|
|
@@ -306,70 +331,111 @@ var LCImex = function LCImex(_ref) {
|
|
|
306
331
|
}, importParameter), function (result) {
|
|
307
332
|
setUploadResult(result || {});
|
|
308
333
|
});
|
|
309
|
-
|
|
334
|
+
_context3.next = 15;
|
|
310
335
|
break;
|
|
311
336
|
case 14:
|
|
312
337
|
_antd.message.info('请选择Excel文件!');
|
|
313
338
|
case 15:
|
|
314
339
|
case "end":
|
|
315
|
-
return
|
|
340
|
+
return _context3.stop();
|
|
316
341
|
}
|
|
317
|
-
},
|
|
342
|
+
}, _callee3);
|
|
318
343
|
}));
|
|
319
|
-
return function handleImport(
|
|
320
|
-
return
|
|
344
|
+
return function handleImport(_x4, _x5) {
|
|
345
|
+
return _ref6.apply(this, arguments);
|
|
321
346
|
};
|
|
322
347
|
}();
|
|
323
348
|
|
|
324
349
|
// ========= 导入 ==========
|
|
325
350
|
|
|
326
351
|
var handleClick = (0, _ahooks.useMemoizedFn)( /*#__PURE__*/function () {
|
|
327
|
-
var
|
|
328
|
-
|
|
329
|
-
|
|
352
|
+
var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee4(e) {
|
|
353
|
+
var resault, response;
|
|
354
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee4$(_context4) {
|
|
355
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
330
356
|
case 0:
|
|
331
357
|
if (!onClick) {
|
|
332
|
-
|
|
358
|
+
_context4.next = 3;
|
|
333
359
|
break;
|
|
334
360
|
}
|
|
335
361
|
onClick(e);
|
|
336
|
-
return
|
|
362
|
+
return _context4.abrupt("return");
|
|
337
363
|
case 3:
|
|
364
|
+
_context4.next = 5;
|
|
365
|
+
return ctx.doAction(advance.events.beforeExe);
|
|
366
|
+
case 5:
|
|
367
|
+
resault = _context4.sent;
|
|
368
|
+
if (!(resault === false)) {
|
|
369
|
+
_context4.next = 9;
|
|
370
|
+
break;
|
|
371
|
+
}
|
|
372
|
+
ctx.doAction(advance.events.afterExe, {
|
|
373
|
+
success: false
|
|
374
|
+
});
|
|
375
|
+
return _context4.abrupt("return");
|
|
376
|
+
case 9:
|
|
338
377
|
if (!(impexpSetting.type === 'export')) {
|
|
339
|
-
|
|
378
|
+
_context4.next = 20;
|
|
340
379
|
break;
|
|
341
380
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
} else {
|
|
346
|
-
_antd.message.info("\u672A\u914D\u7F6E\u884C\u4E3A\uFF01");
|
|
381
|
+
if (!((0, _lodash.isString)(impexpSetting.customParam) && impexpSetting.customParam)) {
|
|
382
|
+
_context4.next = 16;
|
|
383
|
+
break;
|
|
347
384
|
}
|
|
348
|
-
|
|
385
|
+
_context4.next = 13;
|
|
386
|
+
return doExportAll(handleExportAll);
|
|
387
|
+
case 13:
|
|
388
|
+
ctx.doAction(advance.events.afterExe, {
|
|
389
|
+
success: true
|
|
390
|
+
});
|
|
391
|
+
_context4.next = 18;
|
|
349
392
|
break;
|
|
350
|
-
case
|
|
393
|
+
case 16:
|
|
394
|
+
_antd.message.info("\u672A\u914D\u7F6E\u884C\u4E3A\uFF01");
|
|
395
|
+
ctx.doAction(advance.events.afterExe, {
|
|
396
|
+
success: false
|
|
397
|
+
});
|
|
398
|
+
case 18:
|
|
399
|
+
_context4.next = 29;
|
|
400
|
+
break;
|
|
401
|
+
case 20:
|
|
351
402
|
if (impexpSetting.customParam) {
|
|
352
|
-
|
|
403
|
+
_context4.next = 23;
|
|
353
404
|
break;
|
|
354
405
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
406
|
+
ctx.doAction(advance.events.afterExe, {
|
|
407
|
+
success: false
|
|
408
|
+
});
|
|
409
|
+
return _context4.abrupt("return", _antd.message.info("\u672A\u914D\u7F6E\u6A21\u7248\uFF01"));
|
|
410
|
+
case 23:
|
|
411
|
+
if (impexpSetting.customType) {
|
|
412
|
+
_context4.next = 28;
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
_context4.next = 26;
|
|
416
|
+
return (0, _apiUrl.noAuthGetTemplateUrl)(impexpSetting.customParam);
|
|
417
|
+
case 26:
|
|
418
|
+
response = _context4.sent;
|
|
419
|
+
if (response.code === 1) {
|
|
420
|
+
setTemplateUrl(response.data);
|
|
421
|
+
ctx.doAction(advance.events.afterExe, {
|
|
422
|
+
success: true
|
|
423
|
+
});
|
|
424
|
+
} else {
|
|
425
|
+
ctx.doAction(advance.events.afterExe, {
|
|
426
|
+
success: false
|
|
362
427
|
});
|
|
363
428
|
}
|
|
429
|
+
case 28:
|
|
364
430
|
setVisible(true);
|
|
365
|
-
case
|
|
431
|
+
case 29:
|
|
366
432
|
case "end":
|
|
367
|
-
return
|
|
433
|
+
return _context4.stop();
|
|
368
434
|
}
|
|
369
|
-
},
|
|
435
|
+
}, _callee4);
|
|
370
436
|
}));
|
|
371
|
-
return function (
|
|
372
|
-
return
|
|
437
|
+
return function (_x6) {
|
|
438
|
+
return _ref7.apply(this, arguments);
|
|
373
439
|
};
|
|
374
440
|
}());
|
|
375
441
|
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
@@ -384,24 +450,29 @@ var LCImex = function LCImex(_ref) {
|
|
|
384
450
|
ghost: ghost,
|
|
385
451
|
$css: css,
|
|
386
452
|
className: (0, _classnames.default)((0, _defineProperty2.default)({}, className, !!className)),
|
|
453
|
+
resource: serial,
|
|
454
|
+
serialEffect: serialEffect,
|
|
387
455
|
onClick: handleClick
|
|
388
456
|
}, iconFont ? /*#__PURE__*/_react.default.createElement(_IconFont.default, {
|
|
389
457
|
type: iconFont
|
|
390
458
|
}) : null, title || (0, _utils.formatMessage)({
|
|
391
459
|
id: 'luckda.lowcode.painter.import',
|
|
392
460
|
label: '导入'
|
|
393
|
-
})), /*#__PURE__*/_react.default.createElement(_luckDesign.PopWindow,
|
|
461
|
+
})), /*#__PURE__*/_react.default.createElement(_luckDesign.PopWindow, {
|
|
394
462
|
visible: visible,
|
|
395
463
|
title: "\u4E0A\u4F20excel\u6587\u4EF6",
|
|
396
464
|
mode: "modal",
|
|
397
|
-
size: "mini"
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
465
|
+
size: "mini",
|
|
466
|
+
destroyOnClose: true,
|
|
467
|
+
footer: actionStep === 'undone' ? function () {
|
|
468
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
469
|
+
} : null,
|
|
470
|
+
onClose: function onClose() {
|
|
471
|
+
if (actionStep !== 'uploading') {
|
|
472
|
+
setVisible(false);
|
|
473
|
+
}
|
|
403
474
|
}
|
|
404
|
-
}
|
|
475
|
+
}, actionStep === 'undone' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_luckDesign.BasicForm, {
|
|
405
476
|
onSubmit: handleImport,
|
|
406
477
|
layout: "drawer",
|
|
407
478
|
buttonRender: function buttonRender() {
|
|
@@ -80,34 +80,55 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"repositioning": true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"key": "serials",
|
|
86
|
+
"name": "资源串",
|
|
87
|
+
"type": "_SerialsSelector"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "serialEffect",
|
|
91
|
+
"name": "越权效果",
|
|
92
|
+
"type": "segmented",
|
|
93
|
+
"options": [
|
|
94
|
+
{
|
|
95
|
+
"label": "禁用",
|
|
96
|
+
"value": "disable"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"label": "隐藏",
|
|
100
|
+
"value": "hidden"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"default": "hidden"
|
|
83
104
|
}
|
|
84
105
|
],
|
|
85
|
-
"css":
|
|
106
|
+
"css": "",
|
|
86
107
|
"advance": {
|
|
87
108
|
"events": [
|
|
88
109
|
{
|
|
89
110
|
"key": "onMount",
|
|
90
111
|
"name": "组件首次渲染时",
|
|
91
112
|
"desc": "在组件首次渲染时,执行方法",
|
|
92
|
-
"func": "(
|
|
113
|
+
"func": "function onMount() {\n\t\n}"
|
|
93
114
|
},
|
|
94
115
|
{
|
|
95
116
|
"key": "onUnmount",
|
|
96
117
|
"name": "组件卸载时",
|
|
97
118
|
"desc": "在组件卸载时,执行方法。",
|
|
98
|
-
"func": "(
|
|
119
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
99
120
|
},
|
|
100
121
|
{
|
|
101
122
|
"key": "beforeExe",
|
|
102
123
|
"name": "操作执行前",
|
|
103
124
|
"desc": "在导入或导出执行前,执行方法,promise反回false截断执行",
|
|
104
|
-
"func": "(
|
|
125
|
+
"func": "function beforeExe() {\n\t\n}"
|
|
105
126
|
},
|
|
106
127
|
{
|
|
107
128
|
"key": "afterExe",
|
|
108
129
|
"name": "操作执行后",
|
|
109
130
|
"desc": "在导入或导出执行后,执行方法",
|
|
110
|
-
"func": "(
|
|
131
|
+
"func": "function afterExe(success) {\n\t\n}"
|
|
111
132
|
}
|
|
112
133
|
]
|
|
113
134
|
}
|
|
@@ -10,18 +10,34 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _ahooks = require("ahooks");
|
|
13
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
14
|
+
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
13
15
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
14
16
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
15
17
|
var _helper = require("../../../engine/tools/helper");
|
|
16
18
|
var _layoutPropsDefault = _interopRequireDefault(require("../../../engine/meta/layout.props.default.json"));
|
|
19
|
+
var StyledLayout = _styledComponents.default.div.withConfig({
|
|
20
|
+
displayName: "StyledLayout",
|
|
21
|
+
componentId: "luckda-6530__sc-39av4h-0"
|
|
22
|
+
})(["", ""], function (props) {
|
|
23
|
+
return props.$css;
|
|
24
|
+
});
|
|
17
25
|
var LCLayout = function LCLayout(_ref) {
|
|
18
26
|
var id = _ref.id,
|
|
19
27
|
children = _ref.children,
|
|
20
|
-
columnRatio = _ref.columnRatio,
|
|
21
28
|
columnSpacing = _ref.columnSpacing,
|
|
22
29
|
lineSpacing = _ref.lineSpacing,
|
|
23
|
-
style = _ref.style
|
|
30
|
+
style = _ref.style,
|
|
31
|
+
css = _ref.css,
|
|
32
|
+
advance = _ref.advance;
|
|
24
33
|
var ref = (0, _react.useRef)();
|
|
34
|
+
var ctx = (0, _ContextProvider.useContext)();
|
|
35
|
+
(0, _react.useEffect)(function () {
|
|
36
|
+
ctx.doAction(advance.events.onMount);
|
|
37
|
+
return function () {
|
|
38
|
+
return ctx.doAction(advance.events.onUnmount);
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
25
41
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
26
42
|
return ref.current;
|
|
27
43
|
});
|
|
@@ -29,12 +45,13 @@ var LCLayout = function LCLayout(_ref) {
|
|
|
29
45
|
id: id,
|
|
30
46
|
displayName: "Layout",
|
|
31
47
|
getTargetDom: getTargetDom
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(StyledLayout, {
|
|
33
49
|
ref: ref,
|
|
34
50
|
className: _index.default['lc-component-layout'],
|
|
35
51
|
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
|
|
36
52
|
gap: "".concat(columnSpacing, "px ").concat(lineSpacing, "px")
|
|
37
|
-
})
|
|
53
|
+
}),
|
|
54
|
+
$css: css
|
|
38
55
|
}, children));
|
|
39
56
|
};
|
|
40
57
|
LCLayout.propTypes = {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
{
|
|
24
24
|
"key": "columnSpacing",
|
|
25
25
|
"name": "列间距",
|
|
26
|
-
"desc": "
|
|
26
|
+
"desc": "表示一行中分栏与分栏之间的间距",
|
|
27
27
|
"type": "select",
|
|
28
28
|
"options": [
|
|
29
29
|
{
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
{
|
|
57
57
|
"key": "lineSpacing",
|
|
58
58
|
"name": "行间距",
|
|
59
|
-
"desc": "
|
|
59
|
+
"desc": "表示每一行之间的间距",
|
|
60
60
|
"type": "select",
|
|
61
61
|
"options": [
|
|
62
62
|
{
|
|
@@ -87,20 +87,20 @@
|
|
|
87
87
|
"default": 16
|
|
88
88
|
}
|
|
89
89
|
],
|
|
90
|
-
"css":
|
|
90
|
+
"css": "background-color: transparent;",
|
|
91
91
|
"advance": {
|
|
92
92
|
"events": [
|
|
93
93
|
{
|
|
94
94
|
"key": "onMount",
|
|
95
95
|
"name": "组件首次渲染时",
|
|
96
96
|
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
-
"func": "function onMount(
|
|
97
|
+
"func": "function onMount() {\n\t\n}"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"key": "onUnmount",
|
|
101
101
|
"name": "组件卸载时",
|
|
102
102
|
"desc": "在组件卸载时,执行方法。",
|
|
103
|
-
"func": "function onUnmount(
|
|
103
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
104
104
|
}
|
|
105
105
|
]
|
|
106
106
|
}
|
|
@@ -40,7 +40,11 @@ var FunctionDesign = function FunctionDesign(_ref) {
|
|
|
40
40
|
ratioArr.forEach(function (_, i) {
|
|
41
41
|
var _boxId = "box_".concat((0, _utils.suid)());
|
|
42
42
|
(0, _ContextProvider.addNode)(id, _boxId, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _boxPropsDefault.default), {}, {
|
|
43
|
-
buildIn: true
|
|
43
|
+
buildIn: true,
|
|
44
|
+
style: {
|
|
45
|
+
width: 'calc(100% - 32px)',
|
|
46
|
+
height: 'calc(100% - 32px)'
|
|
47
|
+
}
|
|
44
48
|
}));
|
|
45
49
|
if (prevChildren[i]) {
|
|
46
50
|
(0, _ContextProvider.addNode)(_boxId, prevChildren[i][0], prevChildren[i][1]);
|
|
@@ -98,13 +98,9 @@ var LCSection = function LCSection(_ref2) {
|
|
|
98
98
|
_collapseProps = _useCreation._collapseProps,
|
|
99
99
|
_panelProps = _useCreation._panelProps;
|
|
100
100
|
(0, _react.useEffect)(function () {
|
|
101
|
-
ctx.doAction(advance.events.onMount
|
|
102
|
-
instance: ref.current
|
|
103
|
-
});
|
|
101
|
+
ctx.doAction(advance.events.onMount);
|
|
104
102
|
return function () {
|
|
105
|
-
ctx.doAction(advance.events.onUnmount
|
|
106
|
-
instance: ref.current
|
|
107
|
-
});
|
|
103
|
+
ctx.doAction(advance.events.onUnmount);
|
|
108
104
|
};
|
|
109
105
|
}, []);
|
|
110
106
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|