@luck-design-biz/luckda 0.0.22 → 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 -49
- package/es/components/Builder/index.js +4 -4
- package/es/components/LdAutoForm/index.js +7 -9
- package/es/components/LdCard/index.js +5 -6
- package/es/components/LdCard/model.js +1 -1
- package/es/components/LdCom/index.js +2 -2
- package/es/components/LdFormList/index.js +19 -17
- package/es/components/LdGrid/index.js +11 -12
- package/es/components/LdGrid/model.js +1 -1
- package/es/components/LdGridForm/index.js +10 -10
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdInfoPanel/index.js +2 -2
- package/es/components/LdRuntimeCom/index.js +42 -0
- package/es/components/LdTree/index.js +3 -4
- package/es/components/LdTree/index.less +36 -36
- package/es/helper/FromItems.js +1 -1
- package/es/helper/action.js +8 -8
- package/es/helper/form.js +16 -16
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +1 -1
- package/es/helper/ldComBuild.js +4 -4
- package/es/index.js +10 -9
- 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/services.js +1 -1
- package/es/upload/Form/gridForm.js +29 -7
- package/es/upload/Form/index.js +1 -1
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +30 -18
- package/es/upload/index.js +3 -3
- package/es/utils/action.js +1 -1
- package/es/utils/form.js +26 -26
- package/es/utils/grid.js +22 -26
- package/es/utils/index.js +3 -3
- package/lib/components/Builder/index.js +3 -5
- package/lib/components/LdAutoForm/index.js +5 -8
- package/lib/components/LdCard/index.js +5 -7
- package/lib/components/LdCom/index.js +6 -11
- package/lib/components/LdFormList/index.js +15 -13
- package/lib/components/LdGrid/index.js +10 -12
- package/lib/components/LdGridForm/index.js +6 -7
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdInfoPanel/index.js +2 -3
- package/lib/components/LdPop/index.js +2 -4
- package/lib/components/LdRuntimeCom/index.js +49 -0
- package/lib/components/LdTree/index.js +2 -4
- package/lib/components/LdTree/index.less +36 -36
- package/lib/helper/FromItems.js +15 -29
- package/lib/helper/action.js +9 -11
- package/lib/helper/form.js +18 -20
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +1 -2
- package/lib/helper/ldComBuild.js +7 -11
- 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 +27 -6
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +30 -19
- package/lib/upload/GridCell/index.js +1 -2
- package/lib/utils/form.js +26 -29
- package/lib/utils/grid.js +23 -28
- package/lowcode.js +1 -0
- package/package.json +157 -78
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/README.zh-CN.md +0 -51
|
@@ -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
|
+
}
|
package/es/services.js
CHANGED
|
@@ -2,7 +2,7 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import { stringify } from 'querystring';
|
|
4
4
|
import { request } from '@luck-design-biz/base/utils';
|
|
5
|
-
import api from
|
|
5
|
+
import api from "@/services/ApiConfig";
|
|
6
6
|
export function readModlue(_x) {
|
|
7
7
|
return _readModlue.apply(this, arguments);
|
|
8
8
|
}
|
|
@@ -5,14 +5,14 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
5
5
|
var _excluded = ["formId", "formRef", "showNote", "operates", "loading", "uploadUrl", "forbiddenTypes", "beforeUpload", "formMode", "onUploadChange", "zipName", "resetActions", "getUrl", "wrapperRef"];
|
|
6
6
|
import React, { useState, useRef, forwardRef } from 'react';
|
|
7
7
|
import { getDvaApp } from 'umi';
|
|
8
|
-
import { useMemoizedFn } from 'ahooks';
|
|
8
|
+
import { useMemoizedFn, useCreation } from 'ahooks';
|
|
9
9
|
import { Button, Upload, Tooltip, Icon } from 'luck-design/antd';
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import { last } from 'lodash';
|
|
12
12
|
import { BasicForm, BasicFormItem, PopWindow } from 'luck-design';
|
|
13
|
-
import api from
|
|
13
|
+
import api from "@/services/ApiConfig";
|
|
14
14
|
import { FormBtn, GridForm } from '@luck-design-biz/base/FormList';
|
|
15
|
-
import { byteConvert, formatMessage, beforeUpload as _beforeUpload2, patchDownloadZip, showPop, request, canPreview } from '@luck-design-biz/base/utils';
|
|
15
|
+
import { byteConvert, formatMessage, beforeUpload as _beforeUpload2, getSupportUploadTypes, patchDownloadZip, showPop, request, canPreview } from '@luck-design-biz/base/utils';
|
|
16
16
|
var columns = [{
|
|
17
17
|
field: 'name',
|
|
18
18
|
title: '附件名称'
|
|
@@ -77,6 +77,9 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
77
77
|
var gridRef = wrapperRef || useRef(null);
|
|
78
78
|
var _getDvaApp$_store$get = (_getDvaApp = getDvaApp()) === null || _getDvaApp === void 0 ? void 0 : _getDvaApp._store.getState().user,
|
|
79
79
|
currentUser = _getDvaApp$_store$get.currentUser;
|
|
80
|
+
var supportUploadTypes = useCreation(function () {
|
|
81
|
+
return getSupportUploadTypes(forbiddenTypes);
|
|
82
|
+
}, [forbiddenTypes]);
|
|
80
83
|
|
|
81
84
|
// 下载
|
|
82
85
|
var downloadFile = function downloadFile(filenames, tag) {
|
|
@@ -158,7 +161,8 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
158
161
|
}).then(function (res) {
|
|
159
162
|
var code = res.code,
|
|
160
163
|
list = res.list,
|
|
161
|
-
detail = res.detail
|
|
164
|
+
detail = res.detail,
|
|
165
|
+
msg = res.msg;
|
|
162
166
|
if (code === 1) {
|
|
163
167
|
setUploadLoading(false);
|
|
164
168
|
setVisible(false);
|
|
@@ -185,6 +189,9 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
185
189
|
}, 300);
|
|
186
190
|
}
|
|
187
191
|
});
|
|
192
|
+
} else {
|
|
193
|
+
setUploadLoading(false);
|
|
194
|
+
showPop(msg, null, 'error');
|
|
188
195
|
}
|
|
189
196
|
});
|
|
190
197
|
}
|
|
@@ -205,7 +212,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
205
212
|
var upload = _beforeUpload2({
|
|
206
213
|
file: file,
|
|
207
214
|
fileList: fileList,
|
|
208
|
-
|
|
215
|
+
supportUploadTypes: supportUploadTypes,
|
|
209
216
|
beforeUpload: _beforeUpload
|
|
210
217
|
});
|
|
211
218
|
if (!upload) setUploadLoading(false);
|
|
@@ -228,7 +235,15 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
228
235
|
}, formatMessage({
|
|
229
236
|
id: 'app.base.operate.add',
|
|
230
237
|
label: '添加'
|
|
231
|
-
})) : /*#__PURE__*/React.createElement(
|
|
238
|
+
})) : /*#__PURE__*/React.createElement(Tooltip, {
|
|
239
|
+
title: "".concat(formatMessage({
|
|
240
|
+
id: 'app.upload.supportUpload',
|
|
241
|
+
label: '支持上传'
|
|
242
|
+
})).concat(supportUploadTypes.join(',')).concat(formatMessage({
|
|
243
|
+
id: 'app.upload.supportUpload.type',
|
|
244
|
+
label: '类型的文件'
|
|
245
|
+
}))
|
|
246
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FormBtn, {
|
|
232
247
|
formId: "formId"
|
|
233
248
|
}, /*#__PURE__*/React.createElement(Upload, formItemProps, /*#__PURE__*/React.createElement(Button, {
|
|
234
249
|
type: "primary",
|
|
@@ -239,7 +254,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
239
254
|
}, formatMessage({
|
|
240
255
|
id: 'app.base.operate.add',
|
|
241
256
|
label: '添加'
|
|
242
|
-
}))))), /*#__PURE__*/React.createElement(Button, {
|
|
257
|
+
}))))))), /*#__PURE__*/React.createElement(Button, {
|
|
243
258
|
type: "primary",
|
|
244
259
|
onClick: function onClick() {
|
|
245
260
|
var _gridRef$current$form;
|
|
@@ -344,6 +359,13 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
344
359
|
type: "upload",
|
|
345
360
|
name: "files",
|
|
346
361
|
label: "\u9644\u4EF6",
|
|
362
|
+
extra: "".concat(formatMessage({
|
|
363
|
+
id: 'app.upload.supportUpload',
|
|
364
|
+
label: '支持上传'
|
|
365
|
+
})).concat(supportUploadTypes.join(',')).concat(formatMessage({
|
|
366
|
+
id: 'app.upload.supportUpload.type',
|
|
367
|
+
label: '类型的文件'
|
|
368
|
+
})),
|
|
347
369
|
config: _objectSpread(_objectSpread({}, rest), {}, {
|
|
348
370
|
required: true,
|
|
349
371
|
message: '请上传',
|
package/es/upload/Form/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var _excluded = ["formId", "moduleCode", "bucket", "note"];
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { omitBy, isNil } from 'lodash';
|
|
6
6
|
import { stringify } from 'querystring';
|
|
7
|
-
import GridForm from
|
|
7
|
+
import GridForm from "./gridForm";
|
|
8
8
|
import { request } from '@luck-design-biz/base/utils';
|
|
9
9
|
function buildComponent(props) {
|
|
10
10
|
var _formId = props.formId,
|
|
@@ -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
|
+
}
|