@luck-design-biz/luckda 0.0.22-4 → 0.0.22-5
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/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 +3 -0
- package/es/lowcode/constants/event-topics.js +31 -0
- package/es/lowcode/constants/index.js +12 -0
- package/es/lowcode/engine/factory/DataFactory.js +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +60 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +40 -0
- package/es/lowcode/engine/meta/box.props.default.json +10 -0
- package/es/lowcode/engine/meta/box.props.json +40 -0
- package/es/lowcode/engine/meta/button.props.default.json +16 -0
- package/es/lowcode/engine/meta/button.props.json +117 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/es/lowcode/engine/meta/cardlist.props.json +144 -0
- package/es/lowcode/engine/meta/components-list.json +128 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/es/lowcode/engine/meta/dialog.props.json +121 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/es/lowcode/engine/meta/drawer.props.json +144 -0
- package/es/lowcode/engine/meta/form.props.default.json +13 -0
- package/es/lowcode/engine/meta/form.props.json +117 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/es/lowcode/engine/meta/iframe.props.json +32 -0
- package/es/lowcode/engine/meta/image.props.default.json +16 -0
- package/es/lowcode/engine/meta/image.props.json +114 -0
- package/es/lowcode/engine/meta/imex.props.default.json +12 -0
- package/es/lowcode/engine/meta/imex.props.json +82 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/es/lowcode/engine/meta/jsx.props.json +25 -0
- package/es/lowcode/engine/meta/layout.props.default.json +13 -0
- package/es/lowcode/engine/meta/layout.props.json +108 -0
- package/es/lowcode/engine/meta/link.props.default.json +14 -0
- package/es/lowcode/engine/meta/link.props.json +112 -0
- package/es/lowcode/engine/meta/section.props.default.json +17 -0
- package/es/lowcode/engine/meta/section.props.json +108 -0
- package/es/lowcode/engine/meta/split.props.default.json +13 -0
- package/es/lowcode/engine/meta/split.props.json +72 -0
- package/es/lowcode/engine/meta/table.props.default.json +18 -0
- package/es/lowcode/engine/meta/table.props.json +162 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/es/lowcode/engine/meta/tabs.props.json +141 -0
- package/es/lowcode/engine/meta/text.props.default.json +12 -0
- package/es/lowcode/engine/meta/text.props.json +66 -0
- package/es/lowcode/engine/meta/tree.props.default.json +17 -0
- package/es/lowcode/engine/meta/tree.props.json +157 -0
- package/es/lowcode/engine/provider/ContextProvider.js +165 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
- package/es/lowcode/engine/tools/dataProcess.js +263 -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 +210 -0
- package/es/lowcode/painter/I18n.js +202 -0
- package/es/lowcode/painter/Outline.js +208 -0
- package/es/lowcode/painter/Panel.js +195 -0
- package/es/lowcode/painter/Ribbon.js +142 -0
- package/es/lowcode/painter/components/PanelItem.js +35 -0
- package/es/lowcode/painter/components/PopConfirm.js +20 -0
- package/es/lowcode/painter/components/PopForm.js +71 -0
- package/es/lowcode/painter/components/RuleInput.js +105 -0
- package/es/lowcode/painter/components/SortBox.js +92 -0
- package/es/lowcode/painter/components/TabEditor.js +88 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +49 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +77 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -0
- package/es/lowcode/painter/index.js +45 -0
- package/es/lowcode/painter/panel-section/Icon.js +48 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +139 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +140 -0
- package/es/lowcode/painter/panel-section/TabItems.js +238 -0
- package/es/lowcode/painter/services/I18n.js +85 -0
- package/es/lowcode/painter/style/components.less +90 -0
- package/es/lowcode/painter/style/design.less +82 -0
- package/es/lowcode/painter/style/icon-selector.less +22 -0
- package/es/lowcode/painter/style/icon.less +11 -0
- package/es/lowcode/painter/style/index.less +6 -0
- package/es/lowcode/painter/style/layout-ratio.less +51 -0
- package/es/lowcode/painter/style/outline.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +22 -0
- package/es/lowcode/painter/style/panel.less +119 -0
- package/es/lowcode/painter/style/pop-confirm.less +10 -0
- package/es/lowcode/painter/style/pop-form.less +20 -0
- package/es/lowcode/painter/style/radio.less +24 -0
- package/es/lowcode/painter/style/ribbon.less +5 -0
- package/es/lowcode/painter/style/rule-input.less +13 -0
- package/es/lowcode/painter/style/tabeditor.less +90 -0
- package/es/lowcode/painter/style/tabitems.less +90 -0
- package/es/lowcode/view/Canvas.js +135 -0
- package/es/lowcode/view/Loading.js +23 -0
- package/es/lowcode/view/Page.js +251 -0
- package/es/lowcode/view/index.js +18 -0
- package/es/lowcode/view/lc-components/Box/index.js +24 -0
- package/es/lowcode/view/lc-components/Box/meta.json +40 -0
- package/es/lowcode/view/lc-components/Button/index.js +37 -0
- package/es/lowcode/view/lc-components/Button/meta.json +117 -0
- package/es/lowcode/view/lc-components/CardList/index.js +20 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +61 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +62 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/es/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/es/lowcode/view/lc-components/Form/index.js +20 -0
- package/es/lowcode/view/lc-components/Form/meta.json +117 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/es/lowcode/view/lc-components/Image/index.js +20 -0
- package/es/lowcode/view/lc-components/Image/meta.json +114 -0
- package/es/lowcode/view/lc-components/JSX/index.js +20 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/es/lowcode/view/lc-components/Layout/index.js +98 -0
- package/es/lowcode/view/lc-components/Layout/index.less +9 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/es/lowcode/view/lc-components/Link/index.js +20 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -0
- package/es/lowcode/view/lc-components/Section/index.js +34 -0
- package/es/lowcode/view/lc-components/Section/meta.json +108 -0
- package/es/lowcode/view/lc-components/Split/index.js +21 -0
- package/es/lowcode/view/lc-components/Split/meta.json +72 -0
- package/es/lowcode/view/lc-components/Table/index.js +23 -0
- package/es/lowcode/view/lc-components/Table/meta.json +162 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
- package/es/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/es/lowcode/view/lc-components/Text/index.js +23 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -0
- package/es/lowcode/view/lc-components/Tree/index.js +20 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/es/lowcode/view/lc-components/Wrapper.js +52 -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 +5 -0
- 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/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 +9 -0
- package/lib/lowcode/constants/event-topics.js +37 -0
- package/lib/lowcode/constants/index.js +18 -0
- package/lib/lowcode/engine/factory/DataFactory.js +3 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +73 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +46 -0
- package/lib/lowcode/engine/meta/box.props.default.json +10 -0
- package/lib/lowcode/engine/meta/box.props.json +40 -0
- package/lib/lowcode/engine/meta/button.props.default.json +16 -0
- package/lib/lowcode/engine/meta/button.props.json +117 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +144 -0
- package/lib/lowcode/engine/meta/components-list.json +128 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/lib/lowcode/engine/meta/dialog.props.json +121 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/lib/lowcode/engine/meta/drawer.props.json +144 -0
- package/lib/lowcode/engine/meta/form.props.default.json +13 -0
- package/lib/lowcode/engine/meta/form.props.json +117 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/lib/lowcode/engine/meta/iframe.props.json +32 -0
- package/lib/lowcode/engine/meta/image.props.default.json +16 -0
- package/lib/lowcode/engine/meta/image.props.json +114 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +12 -0
- package/lib/lowcode/engine/meta/imex.props.json +82 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/lib/lowcode/engine/meta/jsx.props.json +25 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +13 -0
- package/lib/lowcode/engine/meta/layout.props.json +108 -0
- package/lib/lowcode/engine/meta/link.props.default.json +14 -0
- package/lib/lowcode/engine/meta/link.props.json +112 -0
- package/lib/lowcode/engine/meta/section.props.default.json +17 -0
- package/lib/lowcode/engine/meta/section.props.json +108 -0
- package/lib/lowcode/engine/meta/split.props.default.json +13 -0
- package/lib/lowcode/engine/meta/split.props.json +72 -0
- package/lib/lowcode/engine/meta/table.props.default.json +18 -0
- package/lib/lowcode/engine/meta/table.props.json +162 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/lib/lowcode/engine/meta/tabs.props.json +141 -0
- package/lib/lowcode/engine/meta/text.props.default.json +12 -0
- package/lib/lowcode/engine/meta/text.props.json +66 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +17 -0
- package/lib/lowcode/engine/meta/tree.props.json +157 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +173 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
- package/lib/lowcode/engine/tools/dataProcess.js +277 -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 +218 -0
- package/lib/lowcode/painter/I18n.js +209 -0
- package/lib/lowcode/painter/Outline.js +216 -0
- package/lib/lowcode/painter/Panel.js +203 -0
- package/lib/lowcode/painter/Ribbon.js +150 -0
- package/lib/lowcode/painter/components/PanelItem.js +41 -0
- package/lib/lowcode/painter/components/PopConfirm.js +26 -0
- package/lib/lowcode/painter/components/PopForm.js +77 -0
- package/lib/lowcode/painter/components/RuleInput.js +112 -0
- package/lib/lowcode/painter/components/SortBox.js +99 -0
- package/lib/lowcode/painter/components/TabEditor.js +94 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +57 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +88 -0
- package/lib/lowcode/painter/components/code-editor/index.js +20 -0
- package/lib/lowcode/painter/index.js +54 -0
- package/lib/lowcode/painter/panel-section/Icon.js +54 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +146 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +148 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +246 -0
- package/lib/lowcode/painter/services/I18n.js +95 -0
- package/lib/lowcode/painter/style/components.less +90 -0
- package/lib/lowcode/painter/style/design.less +82 -0
- package/lib/lowcode/painter/style/icon-selector.less +22 -0
- package/lib/lowcode/painter/style/icon.less +11 -0
- package/lib/lowcode/painter/style/index.less +6 -0
- package/lib/lowcode/painter/style/layout-ratio.less +51 -0
- package/lib/lowcode/painter/style/outline.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +22 -0
- package/lib/lowcode/painter/style/panel.less +119 -0
- package/lib/lowcode/painter/style/pop-confirm.less +10 -0
- package/lib/lowcode/painter/style/pop-form.less +20 -0
- package/lib/lowcode/painter/style/radio.less +24 -0
- package/lib/lowcode/painter/style/ribbon.less +5 -0
- package/lib/lowcode/painter/style/rule-input.less +13 -0
- package/lib/lowcode/painter/style/tabeditor.less +90 -0
- package/lib/lowcode/painter/style/tabitems.less +90 -0
- package/lib/lowcode/view/Canvas.js +150 -0
- package/lib/lowcode/view/Loading.js +30 -0
- package/lib/lowcode/view/Page.js +259 -0
- package/lib/lowcode/view/index.js +25 -0
- package/lib/lowcode/view/lc-components/Box/index.js +32 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -0
- package/lib/lowcode/view/lc-components/Button/index.js +45 -0
- package/lib/lowcode/view/lc-components/Button/meta.json +117 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +69 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +70 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/lib/lowcode/view/lc-components/Form/index.js +28 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +117 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/lib/lowcode/view/lc-components/Image/index.js +28 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +106 -0
- package/lib/lowcode/view/lc-components/Layout/index.less +9 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Link/index.js +28 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -0
- package/lib/lowcode/view/lc-components/Section/index.js +42 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Split/index.js +29 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -0
- package/lib/lowcode/view/lc-components/Table/index.js +31 -0
- package/lib/lowcode/view/lc-components/Table/meta.json +162 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
- package/lib/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/lib/lowcode/view/lc-components/Text/index.js +31 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +59 -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 +5 -0
- 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 +163 -151
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -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
|
+
}
|
|
@@ -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');
|
package/package.json
CHANGED
|
@@ -1,151 +1,163 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@luck-design-biz/luckda",
|
|
3
|
-
"version": "0.0.22-
|
|
4
|
-
"description": "前端配置管理中心业务组件库",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
7
|
-
"build": "umi build",
|
|
8
|
-
"build-biz": "father build",
|
|
9
|
-
"async": "npm run build-biz && yalc push",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"test
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@luck-design-biz/luckda",
|
|
3
|
+
"version": "0.0.22-5",
|
|
4
|
+
"description": "前端配置管理中心业务组件库",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
7
|
+
"build": "umi build",
|
|
8
|
+
"build-biz": "npm run meta && father build",
|
|
9
|
+
"async": "npm run build-biz && yalc push",
|
|
10
|
+
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
|
|
11
|
+
"release": "npm run build-biz && npm publish",
|
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
13
|
+
"test": "umi-test",
|
|
14
|
+
"test:coverage": "umi-test --coverage",
|
|
15
|
+
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'",
|
|
16
|
+
"meta": "node generateMeta.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"es",
|
|
20
|
+
"lib",
|
|
21
|
+
"utils.js",
|
|
22
|
+
"upload.js",
|
|
23
|
+
"lowcode.js"
|
|
24
|
+
],
|
|
25
|
+
"main": "lib/index.js",
|
|
26
|
+
"module": "es/index.js",
|
|
27
|
+
"gitHooks": {
|
|
28
|
+
"pre-commit": "lint-staged"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=16",
|
|
32
|
+
"pnpm": ">=7.14.0"
|
|
33
|
+
},
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/xieyt203/luck-biz-components.git",
|
|
38
|
+
"branch": "main"
|
|
39
|
+
},
|
|
40
|
+
"lint-staged": {
|
|
41
|
+
"**/*.less": "stylelint --syntax less",
|
|
42
|
+
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
|
43
|
+
"prettier --write",
|
|
44
|
+
"git add"
|
|
45
|
+
],
|
|
46
|
+
"**/*.{js,ts,jsx,tsx}": "npm run lint-staged:js"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@ahooksjs/use-url-state": "^3.5.1",
|
|
50
|
+
"@babel/runtime": "^7.18.9",
|
|
51
|
+
"@babel/standalone": "^7.24.0",
|
|
52
|
+
"@dnd-kit/core": "^6.1.0",
|
|
53
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
54
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
55
|
+
"ahooks": "^3.7.0",
|
|
56
|
+
"classnames": "^2.3.1",
|
|
57
|
+
"lodash": "^4.17.11",
|
|
58
|
+
"lz-string": "^1.5.0",
|
|
59
|
+
"moment": "^2.24.0",
|
|
60
|
+
"monaco-editor": "0.30.*",
|
|
61
|
+
"prop-types": "^15.8.1",
|
|
62
|
+
"querystring": "^0.2.0",
|
|
63
|
+
"react": "^16.12.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@amap/amap-jsapi-loader": "^0.0.7",
|
|
67
|
+
"@ant-design/pro-cli": "^1.0.28",
|
|
68
|
+
"@babel/core": "^7.20.2",
|
|
69
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
70
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
71
|
+
"@babel/plugin-proposal-decorators": "^7.20.2",
|
|
72
|
+
"@babel/plugin-transform-strict-mode": "^7.18.6",
|
|
73
|
+
"@babel/polyfill": "^7.12.1",
|
|
74
|
+
"@luck-design-biz/base": "0.0.40",
|
|
75
|
+
"@luck-design-biz/bpm": "0.0.3",
|
|
76
|
+
"@luck-helper/ui-design": "0.0.4-4",
|
|
77
|
+
"@types/classnames": "^2.3.1",
|
|
78
|
+
"@types/express": "^4.17.14",
|
|
79
|
+
"@types/history": "^4.7.11",
|
|
80
|
+
"@types/lodash": "^4.14.189",
|
|
81
|
+
"@types/qs": "^6.9.7",
|
|
82
|
+
"@types/react": "^16.14.34",
|
|
83
|
+
"@types/react-dom": "^16.9.17",
|
|
84
|
+
"@types/react-helmet": "^5.0.20",
|
|
85
|
+
"@umijs/fabric": "^2.14.0",
|
|
86
|
+
"@umijs/plugin-qiankun": "^2.41.0",
|
|
87
|
+
"@umijs/preset-react": "~1.8.31",
|
|
88
|
+
"bpmn-js": "^7.5.0",
|
|
89
|
+
"bpmn-js-properties-panel": "^0.35.0",
|
|
90
|
+
"chalk": "^3.0.0",
|
|
91
|
+
"check-prettier": "^1.0.3",
|
|
92
|
+
"compression-webpack-plugin": "^6.1.1",
|
|
93
|
+
"core-js": "^3.26.1",
|
|
94
|
+
"cross-env": "^6.0.3",
|
|
95
|
+
"cross-port-killer": "^1.4.0",
|
|
96
|
+
"cross-var": "^1.1.0",
|
|
97
|
+
"d3-selection": "^1.4.2",
|
|
98
|
+
"dry-dry": "^0.4.0",
|
|
99
|
+
"enzyme": "^3.11.0",
|
|
100
|
+
"eslint": "^7.32.0",
|
|
101
|
+
"eslint-plugin-babel": "^5.3.1",
|
|
102
|
+
"eslint-plugin-react": "^7.31.10",
|
|
103
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
104
|
+
"express": "^4.18.2",
|
|
105
|
+
"father": "^4.3.1",
|
|
106
|
+
"gh-pages": "^2.2.0",
|
|
107
|
+
"gm-crypt": "^0.0.2",
|
|
108
|
+
"husky": "^7.0.4",
|
|
109
|
+
"import-sort-cli": "^6.0.0",
|
|
110
|
+
"import-sort-parser-babylon": "^6.0.0",
|
|
111
|
+
"import-sort-parser-typescript": "^6.0.0",
|
|
112
|
+
"import-sort-style-module": "^6.0.0",
|
|
113
|
+
"js-cookie": "^2.2.1",
|
|
114
|
+
"jsdom-global": "^3.0.2",
|
|
115
|
+
"lint-staged": "^11.2.6",
|
|
116
|
+
"luck-design": "0.1.72",
|
|
117
|
+
"monaco-editor-webpack-plugin": "6.*.*",
|
|
118
|
+
"node-fetch": "^2.6.7",
|
|
119
|
+
"nprogress": "^0.2.0",
|
|
120
|
+
"only-allow": "^1.1.1",
|
|
121
|
+
"prettier": "^2.7.1",
|
|
122
|
+
"pro-download": "1.0.1",
|
|
123
|
+
"promise-sequential": "^1.1.1",
|
|
124
|
+
"qrcode.react": "^1.0.1",
|
|
125
|
+
"qs": "^6.11.0",
|
|
126
|
+
"raphael": "^2.3.0",
|
|
127
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
128
|
+
"react-device-detect": "^1.17.0",
|
|
129
|
+
"react-dnd": "^9.5.1",
|
|
130
|
+
"react-dnd-html5-backend": "^9.5.1",
|
|
131
|
+
"react-dom": "^16.14.0",
|
|
132
|
+
"react-helmet": "^5.2.1",
|
|
133
|
+
"react-iframe": "^1.8.5",
|
|
134
|
+
"react-loading": "^2.0.3",
|
|
135
|
+
"react-viewer": "^3.2.2",
|
|
136
|
+
"resizable": "^1.2.1",
|
|
137
|
+
"slash2": "^2.0.0",
|
|
138
|
+
"stylelint": "^13.13.1",
|
|
139
|
+
"umi": "^3.5.35",
|
|
140
|
+
"umi-types": "^0.5.14",
|
|
141
|
+
"yorkie": "2.0.0"
|
|
142
|
+
},
|
|
143
|
+
"peerDependencies": {
|
|
144
|
+
"@luck-design-biz/base": ">= 0.0.10",
|
|
145
|
+
"@luck-design-biz/bpm": ">= 0.0.1",
|
|
146
|
+
"luck-design": ">=0.1.51",
|
|
147
|
+
"uuid": "^9.0.1"
|
|
148
|
+
},
|
|
149
|
+
"pnpm": {
|
|
150
|
+
"overrides": {
|
|
151
|
+
"immer": "^2.1.1"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"bugs": {
|
|
155
|
+
"url": "https://github.com/xieyt203/luck-biz-components/issues"
|
|
156
|
+
},
|
|
157
|
+
"homepage": "https://github.com/xieyt203/luck-biz-components#readme",
|
|
158
|
+
"directories": {
|
|
159
|
+
"doc": "docs",
|
|
160
|
+
"lib": "lib"
|
|
161
|
+
},
|
|
162
|
+
"author": ""
|
|
163
|
+
}
|
package/upload.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./es/upload');
|
|
1
|
+
module.exports = require('./es/upload');
|
package/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./es/utils');
|
|
1
|
+
module.exports = require('./es/utils');
|