@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,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _ahooks = require("ahooks");
|
|
12
|
+
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
13
|
+
var _excluded = ["id"];
|
|
14
|
+
var LCText = function LCText(_ref) {
|
|
15
|
+
var id = _ref.id,
|
|
16
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
17
|
+
var ref = (0, _react.useRef)();
|
|
18
|
+
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
19
|
+
return ref.current;
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
22
|
+
id: id,
|
|
23
|
+
getTargetDom: getTargetDom
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
ref: ref,
|
|
26
|
+
style: {
|
|
27
|
+
padding: 8
|
|
28
|
+
}
|
|
29
|
+
}, "LCText-", id));
|
|
30
|
+
};
|
|
31
|
+
var _default = exports.default = LCText;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _ahooks = require("ahooks");
|
|
12
|
+
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
13
|
+
var _excluded = ["id"];
|
|
14
|
+
var LCTree = function LCTree(_ref) {
|
|
15
|
+
var id = _ref.id,
|
|
16
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
17
|
+
var ref = (0, _react.useRef)();
|
|
18
|
+
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
19
|
+
return ref.current;
|
|
20
|
+
});
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
22
|
+
id: id,
|
|
23
|
+
getTargetDom: getTargetDom
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
ref: ref
|
|
26
|
+
}, "LCTree"));
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = LCTree;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _ContextProvider = require("../../engine/provider/ContextProvider");
|
|
11
|
+
var _dataProcess = require("../../engine/tools/dataProcess");
|
|
12
|
+
var _constants = require("../../constants");
|
|
13
|
+
var LCWrapper = function LCWrapper(_ref) {
|
|
14
|
+
var id = _ref.id,
|
|
15
|
+
children = _ref.children,
|
|
16
|
+
getTargetDom = _ref.getTargetDom,
|
|
17
|
+
api = _ref.api;
|
|
18
|
+
var context = (0, _ContextProvider.useLDContext)();
|
|
19
|
+
var _apiRef = (0, _react.useRef)({
|
|
20
|
+
getSelfAndParentLCData: function getSelfAndParentLCData() {
|
|
21
|
+
return (0, _dataProcess.findNodeAndParent)(id, context.pageData);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
var dom = getTargetDom();
|
|
26
|
+
if (dom) {
|
|
27
|
+
dom.setAttribute('id', id);
|
|
28
|
+
dom.classList.add(_constants.CELL_CLASS_NAME);
|
|
29
|
+
}
|
|
30
|
+
context.register(id, new Proxy({
|
|
31
|
+
dom: dom
|
|
32
|
+
}, {
|
|
33
|
+
get: function get(target, property, receiver) {
|
|
34
|
+
if (property === 'api') {
|
|
35
|
+
return api ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _apiRef.current), api.current) : _apiRef.current;
|
|
36
|
+
}
|
|
37
|
+
return Reflect.get(target, property, receiver);
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
context.$publisher(context.topics.COMPONENT_MOUNT, {
|
|
41
|
+
id: id
|
|
42
|
+
});
|
|
43
|
+
return function () {
|
|
44
|
+
context.unregister(id);
|
|
45
|
+
context.$publisher(context.topics.COMPONENT_UNMOUNT, {
|
|
46
|
+
id: id
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
}, []);
|
|
50
|
+
return children;
|
|
51
|
+
};
|
|
52
|
+
var _default = exports.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
|
+
}
|
|
@@ -385,7 +385,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
385
385
|
return (0, _utils.beforeUpload)({
|
|
386
386
|
file: file,
|
|
387
387
|
fileList: fileList,
|
|
388
|
-
|
|
388
|
+
forbiddenTypes: forbiddenTypes,
|
|
389
389
|
beforeUpload: _beforeUpload
|
|
390
390
|
});
|
|
391
391
|
}
|
|
@@ -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
|
+
}
|
|
@@ -13,21 +13,21 @@ var _luckDesign = require("luck-design");
|
|
|
13
13
|
var _utils = require("@luck-design-biz/base/utils");
|
|
14
14
|
var _ahooks = require("ahooks");
|
|
15
15
|
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
16
|
-
/**
|
|
17
|
-
* 表单类型富文本上传
|
|
18
|
-
* 是否实体字段: 是
|
|
19
|
-
* 是否接受tag: 是
|
|
20
|
-
* 是否虚拟主键: 否
|
|
21
|
-
* 接受参数:
|
|
22
|
-
* name: 附件名称逗号拼接
|
|
23
|
-
* name_virtual: [{...// 附件所有参数}]
|
|
24
|
-
* ### name=name_virtual ###
|
|
25
|
-
* 传参:
|
|
26
|
-
* name: [{objectName, marker},...]
|
|
27
|
-
* 其他需求:
|
|
28
|
-
* 支持beforeUpload禁止附加类型
|
|
29
|
-
* =>beforeUpload禁止类型全覆盖
|
|
30
|
-
* =>forbiddenTypes和配置管理中禁止类型合并
|
|
16
|
+
/**
|
|
17
|
+
* 表单类型富文本上传
|
|
18
|
+
* 是否实体字段: 是
|
|
19
|
+
* 是否接受tag: 是
|
|
20
|
+
* 是否虚拟主键: 否
|
|
21
|
+
* 接受参数:
|
|
22
|
+
* name: 附件名称逗号拼接
|
|
23
|
+
* name_virtual: [{...// 附件所有参数}]
|
|
24
|
+
* ### name=name_virtual ###
|
|
25
|
+
* 传参:
|
|
26
|
+
* name: [{objectName, marker},...]
|
|
27
|
+
* 其他需求:
|
|
28
|
+
* 支持beforeUpload禁止附加类型
|
|
29
|
+
* =>beforeUpload禁止类型全覆盖
|
|
30
|
+
* =>forbiddenTypes和配置管理中禁止类型合并
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
function buildComponent(props) {
|
package/lib/utils/form.js
CHANGED
|
@@ -26,11 +26,11 @@ var _excluded = ["comName", "property"],
|
|
|
26
26
|
_excluded7 = ["formItemRewrite"],
|
|
27
27
|
_excluded8 = ["name"],
|
|
28
28
|
_excluded9 = ["type", "name"];
|
|
29
|
-
/**
|
|
30
|
-
* 根据动态表单配置项生成formItem
|
|
31
|
-
* @param {动态表单配置项} props
|
|
32
|
-
* @param {自定义动态表单配置项} customProps
|
|
33
|
-
* @returns <BasicForm name='' ... />
|
|
29
|
+
/**
|
|
30
|
+
* 根据动态表单配置项生成formItem
|
|
31
|
+
* @param {动态表单配置项} props
|
|
32
|
+
* @param {自定义动态表单配置项} customProps
|
|
33
|
+
* @returns <BasicForm name='' ... />
|
|
34
34
|
*/
|
|
35
35
|
function getFormItem() {
|
|
36
36
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -63,11 +63,11 @@ function getFormItem() {
|
|
|
63
63
|
}));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
/**
|
|
67
|
-
* 根据后端返回数据组装表单数据
|
|
68
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
69
|
-
* @param {对象---后端返回的未处理数据} values
|
|
70
|
-
* @returns
|
|
66
|
+
/**
|
|
67
|
+
* 根据后端返回数据组装表单数据
|
|
68
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
69
|
+
* @param {对象---后端返回的未处理数据} values
|
|
70
|
+
* @returns
|
|
71
71
|
*/
|
|
72
72
|
var formItemDataFormat = exports.formItemDataFormat = function formItemDataFormat() {
|
|
73
73
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -105,7 +105,7 @@ var formItemDataFormat = exports.formItemDataFormat = function formItemDataForma
|
|
|
105
105
|
result[name] = values[name] ? JSON.parse(values[name]) : undefined;
|
|
106
106
|
break;
|
|
107
107
|
case 'year':
|
|
108
|
-
result[name] = values[
|
|
108
|
+
result[name] = values[name] ? (0, _moment.default)(values[name], 'YYYY') : undefined;
|
|
109
109
|
break;
|
|
110
110
|
case 'radio':
|
|
111
111
|
result[name] = values[name];
|
|
@@ -131,11 +131,11 @@ var formItemDataFormat = exports.formItemDataFormat = function formItemDataForma
|
|
|
131
131
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, omitValues), data);
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
/**
|
|
135
|
-
* 数据格式化
|
|
136
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
137
|
-
* @param {对象---表单获取到的未处理数据} values
|
|
138
|
-
* @returns
|
|
134
|
+
/**
|
|
135
|
+
* 数据格式化
|
|
136
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
137
|
+
* @param {对象---表单获取到的未处理数据} values
|
|
138
|
+
* @returns
|
|
139
139
|
*/
|
|
140
140
|
var dataFormat = exports.dataFormat = function dataFormat() {
|
|
141
141
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -194,12 +194,12 @@ var dataFormat = exports.dataFormat = function dataFormat() {
|
|
|
194
194
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, values), data);
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
/**
|
|
198
|
-
*
|
|
199
|
-
* @param formType
|
|
200
|
-
* @param props
|
|
201
|
-
* @param customProps
|
|
202
|
-
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @param formType
|
|
200
|
+
* @param props
|
|
201
|
+
* @param customProps
|
|
202
|
+
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
203
203
|
*/
|
|
204
204
|
var getFormColumn = exports.getFormColumn = function getFormColumn() {
|
|
205
205
|
var _props$config;
|
package/lib/utils/grid.js
CHANGED
|
@@ -44,8 +44,8 @@ function getColumnRender(name, type) {
|
|
|
44
44
|
};
|
|
45
45
|
break;
|
|
46
46
|
case 'year':
|
|
47
|
-
render = function render(text
|
|
48
|
-
return
|
|
47
|
+
render = function render(text) {
|
|
48
|
+
return text;
|
|
49
49
|
};
|
|
50
50
|
break;
|
|
51
51
|
case 'user':
|
package/lowcode.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./es/lowcode');
|