@luck-design-biz/luckda 0.0.22-3 → 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/gridForm.js +24 -6
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +30 -18
- 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/gridForm.js +22 -4
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +29 -17
- 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
|
+
}
|
|
@@ -85,6 +85,9 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
85
85
|
var gridRef = wrapperRef || (0, _react.useRef)(null);
|
|
86
86
|
var _getDvaApp$_store$get = (_getDvaApp = (0, _umi.getDvaApp)()) === null || _getDvaApp === void 0 ? void 0 : _getDvaApp._store.getState().user,
|
|
87
87
|
currentUser = _getDvaApp$_store$get.currentUser;
|
|
88
|
+
var supportUploadTypes = (0, _ahooks.useCreation)(function () {
|
|
89
|
+
return (0, _utils.getSupportUploadTypes)(forbiddenTypes);
|
|
90
|
+
}, [forbiddenTypes]);
|
|
88
91
|
|
|
89
92
|
// 下载
|
|
90
93
|
var downloadFile = function downloadFile(filenames, tag) {
|
|
@@ -217,7 +220,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
217
220
|
var upload = (0, _utils.beforeUpload)({
|
|
218
221
|
file: file,
|
|
219
222
|
fileList: fileList,
|
|
220
|
-
|
|
223
|
+
supportUploadTypes: supportUploadTypes,
|
|
221
224
|
beforeUpload: _beforeUpload
|
|
222
225
|
});
|
|
223
226
|
if (!upload) setUploadLoading(false);
|
|
@@ -240,7 +243,15 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
240
243
|
}, (0, _utils.formatMessage)({
|
|
241
244
|
id: 'app.base.operate.add',
|
|
242
245
|
label: '添加'
|
|
243
|
-
})) : /*#__PURE__*/_react.default.createElement(
|
|
246
|
+
})) : /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
247
|
+
title: "".concat((0, _utils.formatMessage)({
|
|
248
|
+
id: 'app.upload.supportUpload',
|
|
249
|
+
label: '支持上传'
|
|
250
|
+
})).concat(supportUploadTypes.join(',')).concat((0, _utils.formatMessage)({
|
|
251
|
+
id: 'app.upload.supportUpload.type',
|
|
252
|
+
label: '类型的文件'
|
|
253
|
+
}))
|
|
254
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_FormList.FormBtn, {
|
|
244
255
|
formId: "formId"
|
|
245
256
|
}, /*#__PURE__*/_react.default.createElement(_antd.Upload, formItemProps, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
246
257
|
type: "primary",
|
|
@@ -251,7 +262,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
251
262
|
}, (0, _utils.formatMessage)({
|
|
252
263
|
id: 'app.base.operate.add',
|
|
253
264
|
label: '添加'
|
|
254
|
-
}))))), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
265
|
+
}))))))), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
255
266
|
type: "primary",
|
|
256
267
|
onClick: function onClick() {
|
|
257
268
|
var _gridRef$current$form;
|
|
@@ -356,6 +367,13 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
356
367
|
type: "upload",
|
|
357
368
|
name: "files",
|
|
358
369
|
label: "\u9644\u4EF6",
|
|
370
|
+
extra: "".concat((0, _utils.formatMessage)({
|
|
371
|
+
id: 'app.upload.supportUpload',
|
|
372
|
+
label: '支持上传'
|
|
373
|
+
})).concat(supportUploadTypes.join(',')).concat((0, _utils.formatMessage)({
|
|
374
|
+
id: 'app.upload.supportUpload.type',
|
|
375
|
+
label: '类型的文件'
|
|
376
|
+
})),
|
|
359
377
|
config: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rest), {}, {
|
|
360
378
|
required: true,
|
|
361
379
|
message: '请上传',
|
|
@@ -367,7 +385,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
367
385
|
return (0, _utils.beforeUpload)({
|
|
368
386
|
file: file,
|
|
369
387
|
fileList: fileList,
|
|
370
|
-
|
|
388
|
+
supportUploadTypes: supportUploadTypes,
|
|
371
389
|
beforeUpload: _beforeUpload
|
|
372
390
|
});
|
|
373
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
|
+
}
|
|
@@ -11,22 +11,23 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _luckDesign = require("luck-design");
|
|
13
13
|
var _utils = require("@luck-design-biz/base/utils");
|
|
14
|
+
var _ahooks = require("ahooks");
|
|
14
15
|
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
15
|
-
/**
|
|
16
|
-
* 表单类型富文本上传
|
|
17
|
-
* 是否实体字段: 是
|
|
18
|
-
* 是否接受tag: 是
|
|
19
|
-
* 是否虚拟主键: 否
|
|
20
|
-
* 接受参数:
|
|
21
|
-
* name: 附件名称逗号拼接
|
|
22
|
-
* name_virtual: [{...// 附件所有参数}]
|
|
23
|
-
* ### name=name_virtual ###
|
|
24
|
-
* 传参:
|
|
25
|
-
* name: [{objectName, marker},...]
|
|
26
|
-
* 其他需求:
|
|
27
|
-
* 支持beforeUpload禁止附加类型
|
|
28
|
-
* =>beforeUpload禁止类型全覆盖
|
|
29
|
-
* =>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和配置管理中禁止类型合并
|
|
30
31
|
*/
|
|
31
32
|
|
|
32
33
|
function buildComponent(props) {
|
|
@@ -48,7 +49,18 @@ function buildComponent(props) {
|
|
|
48
49
|
var getUrl = function getUrl(behaviorKey) {
|
|
49
50
|
return "".concat(window.appConfig.OSS_HOST_V3, "?moduleCode=").concat(moduleCode, "&behaviorKey=").concat(behaviorKey, "&bucket=").concat(bucket, "&tag=").concat(tag, "¬e=").concat(note);
|
|
50
51
|
};
|
|
51
|
-
|
|
52
|
+
var supportUploadTypes = (0, _ahooks.useCreation)(function () {
|
|
53
|
+
return (0, _utils.getSupportUploadTypes)(forbiddenTypes);
|
|
54
|
+
}, [forbiddenTypes]);
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, (0, _extends2.default)({
|
|
56
|
+
extra: "".concat((0, _utils.formatMessage)({
|
|
57
|
+
id: 'app.upload.supportUpload',
|
|
58
|
+
label: '支持上传'
|
|
59
|
+
})).concat(supportUploadTypes.join(',')).concat((0, _utils.formatMessage)({
|
|
60
|
+
id: 'app.upload.supportUpload.type',
|
|
61
|
+
label: '类型的文件'
|
|
62
|
+
}))
|
|
63
|
+
}, rest, {
|
|
52
64
|
type: "uploadV3",
|
|
53
65
|
config: (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
54
66
|
required: false,
|
|
@@ -74,7 +86,7 @@ function buildComponent(props) {
|
|
|
74
86
|
return (0, _utils.beforeUpload)({
|
|
75
87
|
file: file,
|
|
76
88
|
fileList: fileList,
|
|
77
|
-
|
|
89
|
+
supportUploadTypes: supportUploadTypes,
|
|
78
90
|
beforeUpload: config && config.beforeUpload
|
|
79
91
|
});
|
|
80
92
|
}
|
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');
|