@luck-design-biz/luckda 0.0.22-4 → 0.0.23
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/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/Builder/index.js +1 -1
- package/es/components/LdFormList/index.js +4 -1
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdRuntimeCom/index.js +42 -0
- package/es/components/LdTree/index.less +36 -36
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/index.js +1 -0
- package/es/lowcode/constants/api-url.js +2 -0
- package/es/lowcode/constants/event-topics.js +23 -0
- package/es/lowcode/constants/index.js +12 -0
- package/es/lowcode/engine/factory/DataFactory.js +1 -0
- package/es/lowcode/engine/meta/button.props.default.json +8 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +10 -0
- package/es/lowcode/engine/meta/components/button.json +104 -0
- package/es/lowcode/engine/meta/components/card-list.json +143 -0
- package/es/lowcode/engine/meta/components/drawer.json +143 -0
- package/es/lowcode/engine/meta/components/form.json +116 -0
- package/es/lowcode/engine/meta/components/iframe.json +31 -0
- package/es/lowcode/engine/meta/components/image.json +113 -0
- package/es/lowcode/engine/meta/components/imex.json +81 -0
- package/es/lowcode/engine/meta/components/jsx.json +24 -0
- package/es/lowcode/engine/meta/components/layout.json +107 -0
- package/es/lowcode/engine/meta/components/link.json +111 -0
- package/es/lowcode/engine/meta/components/modal.json +120 -0
- package/es/lowcode/engine/meta/components/section.json +107 -0
- package/es/lowcode/engine/meta/components/split.json +71 -0
- package/es/lowcode/engine/meta/components/table.json +161 -0
- package/es/lowcode/engine/meta/components/tabs.json +140 -0
- package/es/lowcode/engine/meta/components/text.json +65 -0
- package/es/lowcode/engine/meta/components/tree.json +156 -0
- package/es/lowcode/engine/meta/components-list.json +122 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +10 -0
- package/es/lowcode/engine/meta/form.props.default.json +5 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +3 -0
- package/es/lowcode/engine/meta/image.props.default.json +8 -0
- package/es/lowcode/engine/meta/imex.props.default.json +4 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -0
- package/es/lowcode/engine/meta/layout.props.default.json +5 -0
- package/es/lowcode/engine/meta/link.props.default.json +6 -0
- package/es/lowcode/engine/meta/modal.props.default.json +11 -0
- package/es/lowcode/engine/meta/section.props.default.json +9 -0
- package/es/lowcode/engine/meta/split.props.default.json +5 -0
- package/es/lowcode/engine/meta/table.props.default.json +10 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +10 -0
- package/es/lowcode/engine/meta/text.props.default.json +4 -0
- package/es/lowcode/engine/meta/tree.props.default.json +9 -0
- package/es/lowcode/engine/provider/ContextProvider.js +164 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
- package/es/lowcode/engine/tools/dataProcess.js +188 -0
- package/es/lowcode/engine/tools/helper.js +4 -0
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +3 -0
- package/es/lowcode/painter/Components.js +104 -0
- package/es/lowcode/painter/Design.js +97 -0
- package/es/lowcode/painter/I18n.js +5 -0
- package/es/lowcode/painter/Outline.js +202 -0
- package/es/lowcode/painter/Panel.js +8 -0
- package/es/lowcode/painter/Ribbon.js +136 -0
- package/es/lowcode/painter/components/PanelItem.js +20 -0
- package/es/lowcode/painter/components/RuleInput.js +105 -0
- package/es/lowcode/painter/index.js +19 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +123 -0
- package/es/lowcode/painter/panel-section/Radio.js +58 -0
- package/es/lowcode/painter/style/components.less +90 -0
- package/es/lowcode/painter/style/design.less +38 -0
- package/es/lowcode/painter/style/index.less +7 -0
- package/es/lowcode/painter/style/layout-ratio.less +51 -0
- package/es/lowcode/painter/style/outline.less +26 -0
- package/es/lowcode/painter/style/panel-item.less +21 -0
- package/es/lowcode/painter/style/panel.less +5 -0
- package/es/lowcode/painter/style/radio.less +24 -0
- package/es/lowcode/painter/style/ribbon.less +4 -0
- package/es/lowcode/painter/style/rule-input.less +13 -0
- package/es/lowcode/view/Canvas.js +135 -0
- package/es/lowcode/view/Loading.js +23 -0
- package/es/lowcode/view/Page.js +55 -0
- package/es/lowcode/view/index.js +18 -0
- package/es/lowcode/view/lc-components/Box/index.js +21 -0
- package/es/lowcode/view/lc-components/Button/index.js +37 -0
- package/es/lowcode/view/lc-components/CardList/index.js +20 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +50 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +46 -0
- package/es/lowcode/view/lc-components/Form/index.js +20 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
- package/es/lowcode/view/lc-components/Image/index.js +20 -0
- package/es/lowcode/view/lc-components/JSX/index.js +20 -0
- package/es/lowcode/view/lc-components/Layout/index.js +24 -0
- package/es/lowcode/view/lc-components/Link/index.js +20 -0
- package/es/lowcode/view/lc-components/Section/index.js +34 -0
- package/es/lowcode/view/lc-components/Split/index.js +21 -0
- package/es/lowcode/view/lc-components/Table/index.js +23 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
- package/es/lowcode/view/lc-components/Text/index.js +23 -0
- package/es/lowcode/view/lc-components/Tree/index.js +20 -0
- package/es/lowcode/view/lc-components/Wrapper.js +45 -0
- package/es/lowcode/view/style/canvas.less +5 -0
- package/es/lowcode/view/style/loading.less +84 -0
- package/es/lowcode/view/style/page.less +6 -0
- package/es/upload/Form/gridForm.js +1 -1
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +15 -15
- package/es/utils/form.js +22 -22
- package/es/utils/grid.js +2 -2
- package/lib/components/Builder/index.js +1 -1
- package/lib/components/LdFormList/index.js +5 -1
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdRuntimeCom/index.js +49 -0
- package/lib/components/LdTree/index.less +36 -36
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/index.js +9 -1
- package/lib/lowcode/constants/api-url.js +8 -0
- package/lib/lowcode/constants/event-topics.js +29 -0
- package/lib/lowcode/constants/index.js +18 -0
- package/lib/lowcode/engine/factory/DataFactory.js +3 -0
- package/lib/lowcode/engine/meta/button.props.default.json +8 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +10 -0
- package/lib/lowcode/engine/meta/components/button.json +104 -0
- package/lib/lowcode/engine/meta/components/card-list.json +143 -0
- package/lib/lowcode/engine/meta/components/drawer.json +143 -0
- package/lib/lowcode/engine/meta/components/form.json +116 -0
- package/lib/lowcode/engine/meta/components/iframe.json +31 -0
- package/lib/lowcode/engine/meta/components/image.json +113 -0
- package/lib/lowcode/engine/meta/components/imex.json +81 -0
- package/lib/lowcode/engine/meta/components/jsx.json +24 -0
- package/lib/lowcode/engine/meta/components/layout.json +107 -0
- package/lib/lowcode/engine/meta/components/link.json +111 -0
- package/lib/lowcode/engine/meta/components/modal.json +120 -0
- package/lib/lowcode/engine/meta/components/section.json +107 -0
- package/lib/lowcode/engine/meta/components/split.json +71 -0
- package/lib/lowcode/engine/meta/components/table.json +161 -0
- package/lib/lowcode/engine/meta/components/tabs.json +140 -0
- package/lib/lowcode/engine/meta/components/text.json +65 -0
- package/lib/lowcode/engine/meta/components/tree.json +156 -0
- package/lib/lowcode/engine/meta/components-list.json +122 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +10 -0
- package/lib/lowcode/engine/meta/form.props.default.json +5 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +3 -0
- package/lib/lowcode/engine/meta/image.props.default.json +8 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +4 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +5 -0
- package/lib/lowcode/engine/meta/link.props.default.json +6 -0
- package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
- package/lib/lowcode/engine/meta/section.props.default.json +9 -0
- package/lib/lowcode/engine/meta/split.props.default.json +5 -0
- package/lib/lowcode/engine/meta/table.props.default.json +10 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +10 -0
- package/lib/lowcode/engine/meta/text.props.default.json +4 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +9 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +172 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
- package/lib/lowcode/engine/tools/dataProcess.js +201 -0
- package/lib/lowcode/engine/tools/helper.js +11 -0
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +20 -0
- package/lib/lowcode/painter/Components.js +112 -0
- package/lib/lowcode/painter/Design.js +105 -0
- package/lib/lowcode/painter/I18n.js +12 -0
- package/lib/lowcode/painter/Outline.js +210 -0
- package/lib/lowcode/painter/Panel.js +16 -0
- package/lib/lowcode/painter/Ribbon.js +151 -0
- package/lib/lowcode/painter/components/PanelItem.js +26 -0
- package/lib/lowcode/painter/components/RuleInput.js +112 -0
- package/lib/lowcode/painter/index.js +26 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +131 -0
- package/lib/lowcode/painter/panel-section/Radio.js +65 -0
- package/lib/lowcode/painter/style/components.less +90 -0
- package/lib/lowcode/painter/style/design.less +38 -0
- package/lib/lowcode/painter/style/index.less +7 -0
- package/lib/lowcode/painter/style/layout-ratio.less +51 -0
- package/lib/lowcode/painter/style/outline.less +26 -0
- package/lib/lowcode/painter/style/panel-item.less +21 -0
- package/lib/lowcode/painter/style/panel.less +5 -0
- package/lib/lowcode/painter/style/radio.less +24 -0
- package/lib/lowcode/painter/style/ribbon.less +4 -0
- package/lib/lowcode/painter/style/rule-input.less +13 -0
- package/lib/lowcode/view/Canvas.js +150 -0
- package/lib/lowcode/view/Loading.js +30 -0
- package/lib/lowcode/view/Page.js +63 -0
- package/lib/lowcode/view/index.js +25 -0
- package/lib/lowcode/view/lc-components/Box/index.js +29 -0
- package/lib/lowcode/view/lc-components/Button/index.js +45 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +58 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +54 -0
- package/lib/lowcode/view/lc-components/Form/index.js +28 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
- package/lib/lowcode/view/lc-components/Image/index.js +28 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +32 -0
- package/lib/lowcode/view/lc-components/Link/index.js +28 -0
- package/lib/lowcode/view/lc-components/Section/index.js +42 -0
- package/lib/lowcode/view/lc-components/Split/index.js +29 -0
- package/lib/lowcode/view/lc-components/Table/index.js +31 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
- package/lib/lowcode/view/lc-components/Text/index.js +31 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +52 -0
- package/lib/lowcode/view/style/canvas.less +5 -0
- package/lib/lowcode/view/style/loading.less +84 -0
- package/lib/lowcode/view/style/page.less +6 -0
- package/lib/upload/Form/gridForm.js +1 -1
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +15 -15
- package/lib/utils/form.js +22 -22
- package/lib/utils/grid.js +2 -2
- package/lowcode.js +1 -0
- package/package.json +157 -151
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "children"];
|
|
4
|
+
import React, { useRef, useImperativeHandle } from 'react';
|
|
5
|
+
import { useMemoizedFn, useBoolean } from 'ahooks';
|
|
6
|
+
import { Drawer } from 'luck-design/antd';
|
|
7
|
+
import { useLDContext } from "../../../engine/provider/ContextProvider";
|
|
8
|
+
import { CELL_KEY, RUNTIME } from "../../../constants";
|
|
9
|
+
import Wrapper from "../Wrapper";
|
|
10
|
+
var LCDrawer = function LCDrawer(_ref) {
|
|
11
|
+
var id = _ref.id,
|
|
12
|
+
children = _ref.children,
|
|
13
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
var apiRef = useRef();
|
|
15
|
+
var context = useLDContext();
|
|
16
|
+
var _useBoolean = useBoolean(false),
|
|
17
|
+
_useBoolean2 = _slicedToArray(_useBoolean, 2),
|
|
18
|
+
open = _useBoolean2[0],
|
|
19
|
+
_useBoolean2$ = _useBoolean2[1],
|
|
20
|
+
setTrue = _useBoolean2$.setTrue,
|
|
21
|
+
setFalse = _useBoolean2$.setFalse,
|
|
22
|
+
toggle = _useBoolean2$.toggle;
|
|
23
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
24
|
+
return (context.runtime === RUNTIME.DESIGN ? context.componentMap.get(CELL_KEY.PAGE_ROOT).dom : document).getElementsByClassName('ant-drawer-content-wrapper')[0];
|
|
25
|
+
});
|
|
26
|
+
useImperativeHandle(apiRef, function () {
|
|
27
|
+
return {
|
|
28
|
+
open: open,
|
|
29
|
+
doOpen: setTrue,
|
|
30
|
+
doClose: setFalse,
|
|
31
|
+
toggle: toggle
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
35
|
+
id: id,
|
|
36
|
+
getTargetDom: getTargetDom,
|
|
37
|
+
api: apiRef
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Drawer, {
|
|
39
|
+
visible: open,
|
|
40
|
+
getContainer: context.runtime !== RUNTIME.DESIGN,
|
|
41
|
+
style: {
|
|
42
|
+
position: context.runtime === RUNTIME.DESIGN ? 'absolute' : 'fixed'
|
|
43
|
+
}
|
|
44
|
+
}, /*#__PURE__*/React.createElement("div", null, "LCDrawer-", id), children));
|
|
45
|
+
};
|
|
46
|
+
export default LCDrawer;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCForm = function LCForm(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref
|
|
18
|
+
}, "LCForm"));
|
|
19
|
+
};
|
|
20
|
+
export default LCForm;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCIfram = function LCIfram(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref
|
|
18
|
+
}, "LCIfram"));
|
|
19
|
+
};
|
|
20
|
+
export default LCIfram;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCImEx = function LCImEx(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref
|
|
18
|
+
}, "LCImEx"));
|
|
19
|
+
};
|
|
20
|
+
export default LCImEx;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCImage = function LCImage(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref
|
|
18
|
+
}, "LCImage"));
|
|
19
|
+
};
|
|
20
|
+
export default LCImage;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCJSX = function LCJSX(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref
|
|
18
|
+
}, "JSX"));
|
|
19
|
+
};
|
|
20
|
+
export default LCJSX;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id", "children"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCLayout = function LCLayout(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
var ref = useRef();
|
|
11
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
12
|
+
return ref.current;
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
15
|
+
id: id,
|
|
16
|
+
getTargetDom: getTargetDom
|
|
17
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
ref: ref,
|
|
19
|
+
style: {
|
|
20
|
+
padding: 8
|
|
21
|
+
}
|
|
22
|
+
}, "LCLayout-", id, children));
|
|
23
|
+
};
|
|
24
|
+
export default LCLayout;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCLink = function LCLink(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref
|
|
18
|
+
}, "LCLink"));
|
|
19
|
+
};
|
|
20
|
+
export default LCLink;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "children"];
|
|
4
|
+
import React, { useRef, useImperativeHandle } from 'react';
|
|
5
|
+
import { useMemoizedFn } from 'ahooks';
|
|
6
|
+
import Wrapper from "../Wrapper";
|
|
7
|
+
import { Box } from 'luck-design';
|
|
8
|
+
var LCSection = function LCSection(_ref) {
|
|
9
|
+
var id = _ref.id,
|
|
10
|
+
children = _ref.children,
|
|
11
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
var ref = useRef();
|
|
13
|
+
var apiRef = useRef();
|
|
14
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
15
|
+
return ref.current;
|
|
16
|
+
});
|
|
17
|
+
useImperativeHandle(apiRef, function () {
|
|
18
|
+
return {};
|
|
19
|
+
});
|
|
20
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
21
|
+
id: id,
|
|
22
|
+
getTargetDom: getTargetDom,
|
|
23
|
+
api: apiRef
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Box, _extends({
|
|
25
|
+
ref: ref,
|
|
26
|
+
width: 240,
|
|
27
|
+
height: "auto",
|
|
28
|
+
direction: "column",
|
|
29
|
+
style: {
|
|
30
|
+
backgroundColor: 'yellow'
|
|
31
|
+
}
|
|
32
|
+
}, props), "LCSection", children));
|
|
33
|
+
};
|
|
34
|
+
export default LCSection;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id", "children"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCSplit = function LCSplit(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
var ref = useRef();
|
|
11
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
12
|
+
return ref.current;
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
15
|
+
id: id,
|
|
16
|
+
getTargetDom: getTargetDom
|
|
17
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
ref: ref
|
|
19
|
+
}, "LCSplit", children));
|
|
20
|
+
};
|
|
21
|
+
export default LCSplit;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCTable = function LCTable(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref,
|
|
18
|
+
style: {
|
|
19
|
+
padding: 8
|
|
20
|
+
}
|
|
21
|
+
}, "LCTable-", id));
|
|
22
|
+
};
|
|
23
|
+
export default LCTable;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id", "children"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCTabs = function LCTabs(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
var ref = useRef();
|
|
11
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
12
|
+
return ref.current;
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
15
|
+
id: id,
|
|
16
|
+
getTargetDom: getTargetDom
|
|
17
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
ref: ref
|
|
19
|
+
}, "LCTabs", children));
|
|
20
|
+
};
|
|
21
|
+
export default LCTabs;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCText = function LCText(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref,
|
|
18
|
+
style: {
|
|
19
|
+
padding: 8
|
|
20
|
+
}
|
|
21
|
+
}, "LCText-", id));
|
|
22
|
+
};
|
|
23
|
+
export default LCText;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCTree = function LCTree(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
9
|
+
var ref = useRef();
|
|
10
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
11
|
+
return ref.current;
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
14
|
+
id: id,
|
|
15
|
+
getTargetDom: getTargetDom
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
ref: ref
|
|
18
|
+
}, "LCTree"));
|
|
19
|
+
};
|
|
20
|
+
export default LCTree;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
3
|
+
import { useLDContext } from "../../engine/provider/ContextProvider";
|
|
4
|
+
import { findNodeAndParent } from "../../engine/tools/dataProcess";
|
|
5
|
+
import { CELL_CLASS_NAME } from "../../constants";
|
|
6
|
+
var LCWrapper = function LCWrapper(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
getTargetDom = _ref.getTargetDom,
|
|
10
|
+
api = _ref.api;
|
|
11
|
+
var context = useLDContext();
|
|
12
|
+
var _apiRef = useRef({
|
|
13
|
+
getSelfAndParentLCData: function getSelfAndParentLCData() {
|
|
14
|
+
return findNodeAndParent(id, context.pageData);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
useEffect(function () {
|
|
18
|
+
var dom = getTargetDom();
|
|
19
|
+
if (dom) {
|
|
20
|
+
dom.setAttribute('id', id);
|
|
21
|
+
dom.classList.add(CELL_CLASS_NAME);
|
|
22
|
+
}
|
|
23
|
+
context.register(id, new Proxy({
|
|
24
|
+
dom: dom
|
|
25
|
+
}, {
|
|
26
|
+
get: function get(target, property, receiver) {
|
|
27
|
+
if (property === 'api') {
|
|
28
|
+
return api ? _objectSpread(_objectSpread({}, _apiRef.current), api.current) : _apiRef.current;
|
|
29
|
+
}
|
|
30
|
+
return Reflect.get(target, property, receiver);
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
context.$publisher(context.topics.COMPONENT_MOUNT, {
|
|
34
|
+
id: id
|
|
35
|
+
});
|
|
36
|
+
return function () {
|
|
37
|
+
context.unregister(id);
|
|
38
|
+
context.$publisher(context.topics.COMPONENT_UNMOUNT, {
|
|
39
|
+
id: id
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}, []);
|
|
43
|
+
return children;
|
|
44
|
+
};
|
|
45
|
+
export default LCWrapper;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.lc-painter-loading {
|
|
2
|
+
position: absolute;
|
|
3
|
+
height: 64px;
|
|
4
|
+
width: 64px;
|
|
5
|
+
left: calc(50% - 32px);
|
|
6
|
+
top: calc(50% - 32px);
|
|
7
|
+
-webkit-transform: translateX(-50%) translateY(-50%);
|
|
8
|
+
transform: translateX(-50%) translateY(-50%);
|
|
9
|
+
-webkit-perspective: 400px;
|
|
10
|
+
perspective: 400px;
|
|
11
|
+
}
|
|
12
|
+
.cube {
|
|
13
|
+
height: 64px;
|
|
14
|
+
width: 64px;
|
|
15
|
+
-webkit-transform-origin: 50% 50%;
|
|
16
|
+
transform-origin: 50% 50%;
|
|
17
|
+
-webkit-transform-style: preserve-3d;
|
|
18
|
+
transform-style: preserve-3d;
|
|
19
|
+
-webkit-animation: rotate 4s infinite ease-in-out;
|
|
20
|
+
animation: rotate 4s infinite ease-in-out;
|
|
21
|
+
}
|
|
22
|
+
.side {
|
|
23
|
+
position: absolute;
|
|
24
|
+
display: block;
|
|
25
|
+
height: 64px;
|
|
26
|
+
width: 64px;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
}
|
|
29
|
+
.side1 {
|
|
30
|
+
background: #41c3ac;
|
|
31
|
+
-webkit-transform: translateZ(46px);
|
|
32
|
+
transform: translateZ(46px);
|
|
33
|
+
}
|
|
34
|
+
.side2 {
|
|
35
|
+
background: #ff884d;
|
|
36
|
+
-webkit-transform: rotateY(90deg) translateZ(46px);
|
|
37
|
+
transform: rotateY(90deg) translateZ(46px);
|
|
38
|
+
}
|
|
39
|
+
.side3 {
|
|
40
|
+
background: #32526e;
|
|
41
|
+
-webkit-transform: rotateY(180deg) translateZ(46px);
|
|
42
|
+
transform: rotateY(180deg) translateZ(46px);
|
|
43
|
+
}
|
|
44
|
+
.side4 {
|
|
45
|
+
background: #65a2c5;
|
|
46
|
+
-webkit-transform: rotateY(-90deg) translateZ(46px);
|
|
47
|
+
transform: rotateY(-90deg) translateZ(46px);
|
|
48
|
+
}
|
|
49
|
+
.side5 {
|
|
50
|
+
background: #ffcc5c;
|
|
51
|
+
-webkit-transform: rotateX(90deg) translateZ(46px);
|
|
52
|
+
transform: rotateX(90deg) translateZ(46px);
|
|
53
|
+
}
|
|
54
|
+
.side6 {
|
|
55
|
+
background: #ff6b57;
|
|
56
|
+
-webkit-transform: rotateX(-90deg) translateZ(46px);
|
|
57
|
+
transform: rotateX(-90deg) translateZ(46px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@-webkit-keyframes rotate {
|
|
61
|
+
0% {
|
|
62
|
+
-webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
63
|
+
}
|
|
64
|
+
33.33% {
|
|
65
|
+
-webkit-transform: rotateX(360deg) rotateY(0deg) rotateZ(0deg);
|
|
66
|
+
}
|
|
67
|
+
66.66% {
|
|
68
|
+
-webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(0deg);
|
|
69
|
+
}
|
|
70
|
+
100% {
|
|
71
|
+
-webkit-transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@keyframes rotate {
|
|
75
|
+
0% {
|
|
76
|
+
transform: rotateX(0deg) rotateY(0deg);
|
|
77
|
+
}
|
|
78
|
+
50% {
|
|
79
|
+
transform: rotateX(360deg) rotateY(0deg);
|
|
80
|
+
}
|
|
81
|
+
100% {
|
|
82
|
+
transform: rotateX(360deg) rotateY(360deg);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.fileGrid {
|
|
2
|
-
:global {
|
|
3
|
-
.ag-root-wrapper-body.ag-layout-normal {
|
|
4
|
-
height: 100% !important;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
.fileGrid {
|
|
2
|
+
:global {
|
|
3
|
+
.ag-root-wrapper-body.ag-layout-normal {
|
|
4
|
+
height: 100% !important;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -7,21 +7,21 @@ import { BasicFormItem } from 'luck-design';
|
|
|
7
7
|
import { formatMessage, beforeUpload as _beforeUpload, getSupportUploadTypes } from '@luck-design-biz/base/utils';
|
|
8
8
|
import { useCreation } from 'ahooks';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* 表单类型富文本上传
|
|
12
|
-
* 是否实体字段: 是
|
|
13
|
-
* 是否接受tag: 是
|
|
14
|
-
* 是否虚拟主键: 否
|
|
15
|
-
* 接受参数:
|
|
16
|
-
* name: 附件名称逗号拼接
|
|
17
|
-
* name_virtual: [{...// 附件所有参数}]
|
|
18
|
-
* ### name=name_virtual ###
|
|
19
|
-
* 传参:
|
|
20
|
-
* name: [{objectName, marker},...]
|
|
21
|
-
* 其他需求:
|
|
22
|
-
* 支持beforeUpload禁止附加类型
|
|
23
|
-
* =>beforeUpload禁止类型全覆盖
|
|
24
|
-
* =>forbiddenTypes和配置管理中禁止类型合并
|
|
10
|
+
/**
|
|
11
|
+
* 表单类型富文本上传
|
|
12
|
+
* 是否实体字段: 是
|
|
13
|
+
* 是否接受tag: 是
|
|
14
|
+
* 是否虚拟主键: 否
|
|
15
|
+
* 接受参数:
|
|
16
|
+
* name: 附件名称逗号拼接
|
|
17
|
+
* name_virtual: [{...// 附件所有参数}]
|
|
18
|
+
* ### name=name_virtual ###
|
|
19
|
+
* 传参:
|
|
20
|
+
* name: [{objectName, marker},...]
|
|
21
|
+
* 其他需求:
|
|
22
|
+
* 支持beforeUpload禁止附加类型
|
|
23
|
+
* =>beforeUpload禁止类型全覆盖
|
|
24
|
+
* =>forbiddenTypes和配置管理中禁止类型合并
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
function buildComponent(props) {
|
package/es/utils/form.js
CHANGED
|
@@ -18,11 +18,11 @@ import { defaultComName, translator, splitStrToObj, formatCustomProps } from "..
|
|
|
18
18
|
import { getColumnRender } from "./grid";
|
|
19
19
|
import * as formItemUtils from "../helper/FromItems";
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* 根据动态表单配置项生成formItem
|
|
23
|
-
* @param {动态表单配置项} props
|
|
24
|
-
* @param {自定义动态表单配置项} customProps
|
|
25
|
-
* @returns <BasicForm name='' ... />
|
|
21
|
+
/**
|
|
22
|
+
* 根据动态表单配置项生成formItem
|
|
23
|
+
* @param {动态表单配置项} props
|
|
24
|
+
* @param {自定义动态表单配置项} customProps
|
|
25
|
+
* @returns <BasicForm name='' ... />
|
|
26
26
|
*/
|
|
27
27
|
export function getFormItem() {
|
|
28
28
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -55,11 +55,11 @@ export function getFormItem() {
|
|
|
55
55
|
}));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
/**
|
|
59
|
-
* 根据后端返回数据组装表单数据
|
|
60
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
61
|
-
* @param {对象---后端返回的未处理数据} values
|
|
62
|
-
* @returns
|
|
58
|
+
/**
|
|
59
|
+
* 根据后端返回数据组装表单数据
|
|
60
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
61
|
+
* @param {对象---后端返回的未处理数据} values
|
|
62
|
+
* @returns
|
|
63
63
|
*/
|
|
64
64
|
export var formItemDataFormat = function formItemDataFormat() {
|
|
65
65
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -97,7 +97,7 @@ export var formItemDataFormat = function formItemDataFormat() {
|
|
|
97
97
|
result[name] = values[name] ? JSON.parse(values[name]) : undefined;
|
|
98
98
|
break;
|
|
99
99
|
case 'year':
|
|
100
|
-
result[name] = values[
|
|
100
|
+
result[name] = values[name] ? moment(values[name], 'YYYY') : undefined;
|
|
101
101
|
break;
|
|
102
102
|
case 'radio':
|
|
103
103
|
result[name] = values[name];
|
|
@@ -123,11 +123,11 @@ export var formItemDataFormat = function formItemDataFormat() {
|
|
|
123
123
|
return _objectSpread(_objectSpread({}, omitValues), data);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
/**
|
|
127
|
-
* 数据格式化
|
|
128
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
129
|
-
* @param {对象---表单获取到的未处理数据} values
|
|
130
|
-
* @returns
|
|
126
|
+
/**
|
|
127
|
+
* 数据格式化
|
|
128
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
129
|
+
* @param {对象---表单获取到的未处理数据} values
|
|
130
|
+
* @returns
|
|
131
131
|
*/
|
|
132
132
|
export var dataFormat = function dataFormat() {
|
|
133
133
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -186,12 +186,12 @@ export var dataFormat = function dataFormat() {
|
|
|
186
186
|
return _objectSpread(_objectSpread({}, values), data);
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @param formType
|
|
192
|
-
* @param props
|
|
193
|
-
* @param customProps
|
|
194
|
-
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @param formType
|
|
192
|
+
* @param props
|
|
193
|
+
* @param customProps
|
|
194
|
+
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
195
195
|
*/
|
|
196
196
|
export var getFormColumn = function getFormColumn() {
|
|
197
197
|
var _props$config;
|
package/es/utils/grid.js
CHANGED
|
@@ -36,8 +36,8 @@ export function getColumnRender(name, type) {
|
|
|
36
36
|
};
|
|
37
37
|
break;
|
|
38
38
|
case 'year':
|
|
39
|
-
render = function render(text
|
|
40
|
-
return
|
|
39
|
+
render = function render(text) {
|
|
40
|
+
return text;
|
|
41
41
|
};
|
|
42
42
|
break;
|
|
43
43
|
case 'user':
|
|
@@ -100,7 +100,7 @@ var builder = function builder(WrappedComponent, moduleCode) {
|
|
|
100
100
|
var _props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
101
101
|
fieldProps.current = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, fieldProps.current), _props);
|
|
102
102
|
};
|
|
103
|
-
if (loading) return
|
|
103
|
+
if (loading) return null;
|
|
104
104
|
if (!moduleData) return (0, _utils.formatMessage)({
|
|
105
105
|
id: 'luckda.module.loadFailed',
|
|
106
106
|
label: '模块信息加载失败'
|