@luck-design-biz/luckda 0.0.25-8 → 0.0.25-af-1
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 +4 -6
- package/es/components/ComplexItem/index.js +92 -0
- package/es/components/ComplexItem/service.js +21 -0
- package/es/components/LDActions/index.js +15 -16
- package/es/components/LDActions/index.less +48 -68
- package/es/components/LdAutoForm/index.js +9 -27
- package/es/components/LdCom/index.js +1 -2
- package/es/components/LdFormList/index.js +31 -51
- package/es/components/LdGrid/index.js +16 -23
- package/es/components/LdGridForm/index.js +7 -20
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdRuntimeCom/index.js +11 -24
- package/es/components/LdTree/index.js +40 -112
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/FromItems.js +23 -1
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +44 -30
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +12 -28
- package/es/helper/ldComBuild.js +14 -29
- package/es/locales/zh-CN.js +19 -104
- package/es/lowcode/constants/api-url.js +324 -555
- package/es/lowcode/constants/event-topics.js +0 -6
- package/es/lowcode/constants/index.js +4 -31
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +2 -5
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +2 -5
- package/es/lowcode/engine/meta/box.props.default.json +2 -5
- package/es/lowcode/engine/meta/box.props.json +4 -4
- package/es/lowcode/engine/meta/button.props.default.json +1 -4
- package/es/lowcode/engine/meta/button.props.json +9 -9
- package/es/lowcode/engine/meta/cardlist.props.default.json +1 -4
- package/es/lowcode/engine/meta/cardlist.props.json +1 -1
- package/es/lowcode/engine/meta/components-list.json +7 -13
- package/es/lowcode/engine/meta/dialog.props.default.json +6 -14
- package/es/lowcode/engine/meta/dialog.props.json +43 -73
- package/es/lowcode/engine/meta/drawer.props.default.json +1 -4
- package/es/lowcode/engine/meta/drawer.props.json +21 -9
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +142 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +19 -0
- package/es/lowcode/engine/meta/fielddate.props.json +145 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/es/lowcode/engine/meta/fielddict.props.json +140 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +18 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +140 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +169 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +117 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +123 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +154 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +167 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +21 -0
- package/es/lowcode/engine/meta/fielduser.props.json +178 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +133 -0
- package/es/lowcode/engine/meta/form.props.default.json +3 -52
- package/es/lowcode/engine/meta/form.props.json +63 -602
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +89 -0
- package/es/lowcode/engine/meta/image.props.default.json +1 -4
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.default.json +2 -12
- package/es/lowcode/engine/meta/imex.props.json +22 -54
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +13 -83
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/es/lowcode/engine/meta/jsx.props.json +5 -10
- package/es/lowcode/engine/meta/layout.props.default.json +1 -4
- package/es/lowcode/engine/meta/layout.props.json +3 -2
- package/es/lowcode/engine/meta/link.props.default.json +1 -4
- package/es/lowcode/engine/meta/link.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +18 -6
- package/es/lowcode/engine/meta/pagelayout.props.default.json +3 -1
- package/es/lowcode/engine/meta/pagelayout.props.json +13 -1
- package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/es/lowcode/engine/meta/proxy.props.json +66 -0
- package/es/lowcode/engine/meta/section.props.default.json +6 -7
- package/es/lowcode/engine/meta/section.props.json +49 -52
- package/es/lowcode/engine/meta/split.props.default.json +4 -9
- package/es/lowcode/engine/meta/split.props.json +32 -17
- package/es/lowcode/engine/meta/table.props.default.json +1 -5
- package/es/lowcode/engine/meta/table.props.json +34 -67
- package/es/lowcode/engine/meta/tabs.props.default.json +8 -16
- package/es/lowcode/engine/meta/tabs.props.json +80 -57
- package/es/lowcode/engine/meta/text.props.default.json +1 -4
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.default.json +6 -16
- package/es/lowcode/engine/meta/tree.props.json +58 -214
- package/es/lowcode/engine/provider/ContextProvider/index.js +115 -70
- package/es/lowcode/engine/tools/dataProcess.js +71 -137
- package/es/lowcode/engine/tools/helper.js +20 -70
- package/es/lowcode/engine/tools/usePromiseState.js +9 -8
- package/es/lowcode/index.js +0 -1
- package/es/lowcode/painter/Components.js +23 -49
- package/es/lowcode/painter/Design.js +2 -34
- package/es/lowcode/painter/DesignOperator.js +37 -43
- package/es/lowcode/painter/DesignToolbar.js +16 -289
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +26 -29
- package/es/lowcode/painter/Panel.js +26 -67
- package/es/lowcode/painter/components/ActionBindModal.js +62 -181
- package/es/lowcode/painter/components/AdvancePanel.js +11 -88
- package/es/lowcode/painter/components/AttrsPanel.js +41 -61
- package/es/lowcode/painter/components/Collapse.js +29 -35
- package/es/lowcode/painter/components/ColorInput.js +27 -29
- package/es/lowcode/painter/components/ListEditor.js +33 -46
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +25 -25
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +26 -33
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +34 -35
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/index.js +28 -3
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +69 -16
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +6 -39
- package/es/lowcode/painter/panel-section/ButtonType.js +2 -4
- package/es/lowcode/painter/panel-section/DataSetSelector.js +43 -118
- package/es/lowcode/painter/panel-section/Icon.js +35 -35
- package/es/lowcode/painter/panel-section/IconSelector.js +18 -21
- package/es/lowcode/painter/panel-section/ImpExp.js +6 -93
- package/es/lowcode/painter/panel-section/JSEditor.js +2 -3
- package/es/lowcode/painter/panel-section/LayoutRatio.js +28 -27
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +24 -4
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +16 -22
- package/es/lowcode/painter/panel-section/TabItems.js +30 -46
- package/es/lowcode/painter/panel-section/TableZebra.js +6 -66
- package/es/lowcode/painter/style/action-bind-modal.less +99 -102
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +22 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +90 -91
- package/es/lowcode/painter/style/design.less +149 -152
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +59 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/view/Canvas.js +139 -33
- package/es/lowcode/view/Loading.js +2 -6
- package/es/lowcode/view/Page.js +14 -15
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Box/index.js +17 -10
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +10 -8
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +6 -3
- package/es/lowcode/view/lc-components/Button/index.js +53 -72
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/CardList/index.js +0 -1
- package/es/lowcode/view/lc-components/CardList/meta.json +143 -143
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +27 -12
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Dialog/index.js +19 -115
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +120 -143
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -5
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Drawer/index.js +12 -13
- package/es/lowcode/view/lc-components/Drawer/index.less +6 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +143 -131
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -83
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Form/index.js +13 -382
- package/es/lowcode/view/lc-components/Form/meta.json +116 -605
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +3 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/ImEx/index.js +9 -260
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -114
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Image/index.js +0 -1
- package/es/lowcode/view/lc-components/Image/meta.json +114 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/JSX/index.js +6 -19
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -28
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +24 -21
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +8 -3
- package/es/lowcode/view/lc-components/Layout/index.js +16 -17
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -107
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Link/index.js +0 -1
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +2 -25
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Section/index.js +24 -115
- package/es/lowcode/view/lc-components/Section/meta.json +108 -107
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +2 -56
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Split/index.js +7 -42
- package/es/lowcode/view/lc-components/Split/meta.json +72 -53
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +3 -7
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Table/index.js +217 -399
- package/es/lowcode/view/lc-components/Table/meta.json +372 -405
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -63
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Tabs/index.js +10 -115
- package/es/lowcode/view/lc-components/Tabs/meta.json +140 -113
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Text/index.js +0 -1
- package/es/lowcode/view/lc-components/Text/meta.json +66 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +6 -22
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Tree/index.js +51 -344
- package/es/lowcode/view/lc-components/Tree/index.less +1 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +199 -356
- package/es/lowcode/view/lc-components/Wrapper.js +32 -47
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +84 -84
- package/es/lowcode/view/style/page.less +5 -8
- package/es/services.js +26 -4
- package/es/upload/Form/gridForm.js +3 -7
- package/es/upload/Form/index.js +1 -2
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +20 -18
- package/es/upload/index.js +1 -2
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +22 -21
- package/es/utils/grid.js +3 -2
- package/lib/components/Builder/index.js +1 -4
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/components/ComplexItem/service.js +28 -0
- package/lib/components/LDActions/index.js +14 -15
- package/lib/components/LDActions/index.less +48 -68
- package/lib/components/LdAutoForm/index.js +8 -26
- package/lib/components/LdCom/index.js +1 -2
- package/lib/components/LdFormList/index.js +29 -49
- package/lib/components/LdGrid/index.js +16 -23
- package/lib/components/LdGridForm/index.js +6 -19
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdRuntimeCom/index.js +12 -25
- package/lib/components/LdTree/index.js +41 -113
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/FromItems.js +24 -2
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +43 -29
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +12 -28
- package/lib/helper/ldComBuild.js +12 -27
- package/lib/locales/zh-CN.js +19 -104
- package/lib/lowcode/constants/api-url.js +325 -559
- package/lib/lowcode/constants/event-topics.js +1 -7
- package/lib/lowcode/constants/index.js +5 -32
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -7
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +3 -6
- package/lib/lowcode/engine/meta/box.props.default.json +2 -5
- package/lib/lowcode/engine/meta/box.props.json +4 -4
- package/lib/lowcode/engine/meta/button.props.default.json +1 -4
- package/lib/lowcode/engine/meta/button.props.json +9 -9
- package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -4
- package/lib/lowcode/engine/meta/cardlist.props.json +1 -1
- package/lib/lowcode/engine/meta/components-list.json +7 -13
- package/lib/lowcode/engine/meta/dialog.props.default.json +6 -14
- package/lib/lowcode/engine/meta/dialog.props.json +43 -73
- package/lib/lowcode/engine/meta/drawer.props.default.json +1 -4
- package/lib/lowcode/engine/meta/drawer.props.json +21 -9
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +142 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +145 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +140 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +140 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +169 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +117 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +123 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +154 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +167 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +21 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +178 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +133 -0
- package/lib/lowcode/engine/meta/form.props.default.json +3 -52
- package/lib/lowcode/engine/meta/form.props.json +63 -602
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
- package/lib/lowcode/engine/meta/image.props.default.json +1 -4
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -12
- package/lib/lowcode/engine/meta/imex.props.json +22 -54
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +13 -83
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/lib/lowcode/engine/meta/jsx.props.json +5 -10
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -4
- package/lib/lowcode/engine/meta/layout.props.json +3 -2
- package/lib/lowcode/engine/meta/link.props.default.json +1 -4
- package/lib/lowcode/engine/meta/link.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +18 -6
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +3 -1
- package/lib/lowcode/engine/meta/pagelayout.props.json +13 -1
- package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/lib/lowcode/engine/meta/proxy.props.json +66 -0
- package/lib/lowcode/engine/meta/section.props.default.json +6 -7
- package/lib/lowcode/engine/meta/section.props.json +49 -52
- package/lib/lowcode/engine/meta/split.props.default.json +4 -9
- package/lib/lowcode/engine/meta/split.props.json +32 -17
- package/lib/lowcode/engine/meta/table.props.default.json +1 -5
- package/lib/lowcode/engine/meta/table.props.json +34 -67
- package/lib/lowcode/engine/meta/tabs.props.default.json +8 -16
- package/lib/lowcode/engine/meta/tabs.props.json +80 -57
- package/lib/lowcode/engine/meta/text.props.default.json +1 -4
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.default.json +6 -16
- package/lib/lowcode/engine/meta/tree.props.json +58 -214
- package/lib/lowcode/engine/provider/ContextProvider/index.js +114 -85
- package/lib/lowcode/engine/tools/dataProcess.js +70 -137
- package/lib/lowcode/engine/tools/helper.js +20 -72
- package/lib/lowcode/engine/tools/usePromiseState.js +7 -6
- package/lib/lowcode/index.js +0 -7
- package/lib/lowcode/painter/Components.js +22 -48
- package/lib/lowcode/painter/Design.js +0 -32
- package/lib/lowcode/painter/DesignOperator.js +34 -40
- package/lib/lowcode/painter/DesignToolbar.js +13 -286
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +24 -27
- package/lib/lowcode/painter/Panel.js +25 -66
- package/lib/lowcode/painter/components/ActionBindModal.js +58 -176
- package/lib/lowcode/painter/components/AdvancePanel.js +9 -86
- package/lib/lowcode/painter/components/AttrsPanel.js +39 -59
- package/lib/lowcode/painter/components/Collapse.js +29 -35
- package/lib/lowcode/painter/components/ColorInput.js +27 -29
- package/lib/lowcode/painter/components/ListEditor.js +32 -45
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +25 -25
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +27 -34
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +34 -35
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/index.js +30 -3
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +67 -14
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +4 -37
- package/lib/lowcode/painter/panel-section/ButtonType.js +2 -4
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +40 -115
- package/lib/lowcode/painter/panel-section/Icon.js +35 -37
- package/lib/lowcode/painter/panel-section/IconSelector.js +18 -21
- package/lib/lowcode/painter/panel-section/ImpExp.js +5 -92
- package/lib/lowcode/painter/panel-section/JSEditor.js +2 -3
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +27 -26
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +29 -10
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +16 -22
- package/lib/lowcode/painter/panel-section/TabItems.js +29 -45
- package/lib/lowcode/painter/panel-section/TableZebra.js +6 -67
- package/lib/lowcode/painter/style/action-bind-modal.less +99 -102
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +22 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +90 -91
- package/lib/lowcode/painter/style/design.less +149 -152
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +59 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/view/Canvas.js +145 -31
- package/lib/lowcode/view/Loading.js +2 -6
- package/lib/lowcode/view/Page.js +10 -11
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Box/index.js +15 -9
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +10 -8
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +6 -3
- package/lib/lowcode/view/lc-components/Button/index.js +51 -70
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +143 -143
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +27 -11
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Dialog/index.js +19 -115
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +120 -143
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +3 -6
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Drawer/index.js +12 -13
- package/lib/lowcode/view/lc-components/Drawer/index.less +6 -9
- package/lib/lowcode/view/lc-components/Drawer/meta.json +143 -131
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -83
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Form/index.js +12 -381
- package/lib/lowcode/view/lc-components/Form/meta.json +116 -605
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -1
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +3 -9
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/ImEx/index.js +7 -257
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -114
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Image/index.js +0 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/JSX/index.js +6 -19
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -28
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +24 -22
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +8 -3
- package/lib/lowcode/view/lc-components/Layout/index.js +16 -17
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Link/index.js +0 -1
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -25
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Section/index.js +23 -114
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +2 -57
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Split/index.js +6 -41
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -53
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +3 -7
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Table/index.js +214 -396
- package/lib/lowcode/view/lc-components/Table/meta.json +372 -405
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -64
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +9 -114
- package/lib/lowcode/view/lc-components/Tabs/meta.json +140 -113
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Text/index.js +0 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +5 -21
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Tree/index.js +48 -341
- package/lib/lowcode/view/lc-components/Tree/index.less +1 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +199 -356
- package/lib/lowcode/view/lc-components/Wrapper.js +30 -46
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +84 -84
- package/lib/lowcode/view/style/page.less +5 -8
- package/lib/services.js +27 -4
- package/lib/upload/Form/gridForm.js +3 -7
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +20 -18
- package/lib/upload/index.js +1 -8
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +22 -21
- package/lib/utils/grid.js +3 -2
- package/lowcode.js +1 -1
- package/package.json +171 -172
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/components/IconFont/index.js +0 -5
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +0 -219
- package/es/lowcode/engine/tools/useCanvasRender.js +0 -74
- package/es/lowcode/engine/tools/usePageDataStore.js +0 -176
- package/es/lowcode/engine/tools/useTodo.js +0 -88
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +0 -137
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -50
- package/es/lowcode/painter/components/DragDrop/Overlay.js +0 -8
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -67
- package/es/lowcode/painter/components/TreeEditor.js +0 -13
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +0 -154
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -108
- package/es/lowcode/painter/components/field-setting/CheckRules.js +0 -101
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +0 -287
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -290
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -63
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -136
- package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -570
- package/es/lowcode/painter/components/field-setting/index.js +0 -342
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +0 -53
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -25
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +0 -27
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -45
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +0 -232
- package/es/lowcode/painter/panel-section/FieldsSetting.js +0 -374
- package/es/lowcode/painter/panel-section/I18nInput.js +0 -20
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -111
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +0 -109
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -95
- package/es/lowcode/painter/panel-section/SerialsSelector.js +0 -46
- package/es/lowcode/painter/panel-section/SplitDisplay.js +0 -163
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +0 -78
- package/es/lowcode/painter/style/dragdrop.less +0 -10
- package/es/lowcode/painter/style/fields-setting.less +0 -25
- package/es/lowcode/painter/style/page-layout-display.less +0 -28
- package/es/lowcode/painter/style/split-display.less +0 -19
- package/es/lowcode/painter/style/treedragdrop.less +0 -19
- package/es/lowcode/preview/index.js +0 -29
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +0 -6
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +0 -17
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/ImEx/index.less +0 -7
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Page/meta.json +0 -49
- package/es/lowcode/view/lc-components/PageContent/index.js +0 -52
- package/es/lowcode/view/lc-components/PageContent/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +0 -35
- package/es/lowcode/view/lc-components/PageFooter/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +0 -39
- package/es/lowcode/view/lc-components/PageHeader/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -63
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -10
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/PageLayout/index.js +0 -32
- package/es/lowcode/view/lc-components/PageLayout/meta.json +0 -47
- package/es/lowcode/view/lc-components/PageModal/index.js +0 -20
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Section/index.less +0 -7
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +0 -138
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -26
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +0 -422
- package/es/upload/FilesWall/index.less +0 -74
- package/lib/components/IconFont/index.js +0 -11
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +0 -227
- package/lib/lowcode/engine/tools/useCanvasRender.js +0 -89
- package/lib/lowcode/engine/tools/usePageDataStore.js +0 -183
- package/lib/lowcode/engine/tools/useTodo.js +0 -95
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +0 -146
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -57
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +0 -15
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -75
- package/lib/lowcode/painter/components/TreeEditor.js +0 -20
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +0 -161
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -116
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +0 -108
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +0 -295
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -298
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -70
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -144
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -578
- package/lib/lowcode/painter/components/field-setting/index.js +0 -349
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +0 -59
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -32
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +0 -34
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -52
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +0 -239
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +0 -382
- package/lib/lowcode/painter/panel-section/I18nInput.js +0 -27
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -119
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -115
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -103
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +0 -53
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +0 -171
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +0 -86
- package/lib/lowcode/painter/style/dragdrop.less +0 -10
- package/lib/lowcode/painter/style/fields-setting.less +0 -25
- package/lib/lowcode/painter/style/page-layout-display.less +0 -28
- package/lib/lowcode/painter/style/split-display.less +0 -19
- package/lib/lowcode/painter/style/treedragdrop.less +0 -19
- package/lib/lowcode/preview/index.js +0 -37
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +0 -13
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +0 -24
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/ImEx/index.less +0 -7
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Page/meta.json +0 -49
- package/lib/lowcode/view/lc-components/PageContent/index.js +0 -60
- package/lib/lowcode/view/lc-components/PageContent/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +0 -43
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +0 -47
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -71
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -17
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/PageLayout/index.js +0 -40
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +0 -47
- package/lib/lowcode/view/lc-components/PageModal/index.js +0 -27
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Section/index.less +0 -7
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +0 -145
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -33
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +0 -429
- package/lib/upload/FilesWall/index.less +0 -74
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
-
var _excluded = ["columns", "resources", "actions", "doAction", "wrapperRef", "ldId", "dataSetKey", "defaultParmas", "moduleCode", "readOnly", "title", "rowKey", "treeNodeTitle", "unselectableNodes", "rightMenus", "defaultExpandDeep", "draggable", "onDrop", "className", "treeClassName", "rootAdd", "suppressInit", "afterQuery", "afterInit", "isTree", "service", "dataToTreeFormat", "boxRef", "
|
|
6
|
+
var _excluded = ["columns", "resources", "actions", "doAction", "wrapperRef", "ldId", "dataSetKey", "defaultParmas", "moduleCode", "readOnly", "title", "rowKey", "treeNodeTitle", "unselectableNodes", "rightMenus", "defaultExpandDeep", "draggable", "onDrop", "className", "treeClassName", "rootAdd", "suppressInit", "afterQuery", "afterInit", "isTree", "service", "dataToTreeFormat", "boxRef", "doubleClick", "onNodeDoubleClick", "width", "height"],
|
|
8
7
|
_excluded2 = ["onClick"];
|
|
9
8
|
import React, { useState, useRef, useImperativeHandle, forwardRef, useLayoutEffect } from 'react';
|
|
10
|
-
import { isFunction, isNumber, transform, includes, remove, cloneDeep,
|
|
9
|
+
import { isFunction, isNumber, transform, includes, remove, cloneDeep, keys } from 'lodash';
|
|
11
10
|
import { useRequest, useMemoizedFn, useCreation } from 'ahooks';
|
|
12
11
|
import PropTypes from 'prop-types';
|
|
13
12
|
import classNames from 'classnames';
|
|
@@ -18,7 +17,6 @@ import { TreeBox } from '@luck-design-biz/base';
|
|
|
18
17
|
import ldBuilder from "../../helper/ldBuilder";
|
|
19
18
|
import { behaviorCall } from "../../utils";
|
|
20
19
|
import styles from "./index.less";
|
|
21
|
-
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
22
20
|
var LdTree = function LdTree(_ref) {
|
|
23
21
|
var columns = _ref.columns,
|
|
24
22
|
resources = _ref.resources,
|
|
@@ -48,24 +46,13 @@ var LdTree = function LdTree(_ref) {
|
|
|
48
46
|
service = _ref.service,
|
|
49
47
|
dataToTreeFormat = _ref.dataToTreeFormat,
|
|
50
48
|
boxRef = _ref.boxRef,
|
|
51
|
-
|
|
49
|
+
doubleClick = _ref.doubleClick,
|
|
52
50
|
onNodeDoubleClick = _ref.onNodeDoubleClick,
|
|
53
51
|
width = _ref.width,
|
|
54
52
|
height = _ref.height,
|
|
55
|
-
treeNodeCheckable = _ref.treeNodeCheckable,
|
|
56
|
-
treeNodeDisableCheckbox = _ref.treeNodeDisableCheckbox,
|
|
57
|
-
treeNodeDisable = _ref.treeNodeDisable,
|
|
58
|
-
treeNodeIcon = _ref.treeNodeIcon,
|
|
59
|
-
asyncLoad = _ref.asyncLoad,
|
|
60
|
-
parentKey = _ref.parentKey,
|
|
61
|
-
onMount = _ref.onMount,
|
|
62
|
-
onUnmount = _ref.onUnmount,
|
|
63
|
-
onDataSetChange = _ref.onDataSetChange,
|
|
64
|
-
onTreeNodeRender = _ref.onTreeNodeRender,
|
|
65
|
-
onlyRoot = _ref.onlyRoot,
|
|
66
53
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
67
54
|
if (!includes(isTree, dataSetKey)) return formatMessage({
|
|
68
|
-
id: 'luckda.ldTree.
|
|
55
|
+
id: 'luckda.ldTree.notTres',
|
|
69
56
|
label: '此数据集非树形数据集,请选择树形数据集'
|
|
70
57
|
});
|
|
71
58
|
var _useState = useState(null),
|
|
@@ -77,16 +64,11 @@ var LdTree = function LdTree(_ref) {
|
|
|
77
64
|
defaultExpandedProps = _useState4[0],
|
|
78
65
|
setDefaultExpandedProps = _useState4[1];
|
|
79
66
|
var treeRef = useRef(null);
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
behaviorKey: 'readTree'
|
|
86
|
-
}, _defaultParmas)];
|
|
87
|
-
if (asyncLoad) _params[0][parentKey] = 0;
|
|
88
|
-
return _params;
|
|
89
|
-
}, []);
|
|
67
|
+
var defaultParams = [_objectSpread({
|
|
68
|
+
moduleCode: moduleCode,
|
|
69
|
+
datasetCode: dataSetKey,
|
|
70
|
+
behaviorKey: 'readTree'
|
|
71
|
+
}, _defaultParmas)];
|
|
90
72
|
var _useRequest = useRequest(service || behaviorCall, {
|
|
91
73
|
// 获取树数据源
|
|
92
74
|
defaultParams: defaultParams,
|
|
@@ -115,31 +97,25 @@ var LdTree = function LdTree(_ref) {
|
|
|
115
97
|
}
|
|
116
98
|
var treeData = dataToTreeFormat ? dataToTreeFormat(data) : dataToTree(data, null, window.appConfig.constraintKeys.PRIMARY, window.appConfig.constraintKeys.PARENT);
|
|
117
99
|
setDataSource(treeData);
|
|
118
|
-
|
|
119
|
-
onceRef.current = false;
|
|
100
|
+
afterInit && afterInit(treeData);
|
|
120
101
|
}
|
|
121
102
|
}
|
|
122
103
|
}),
|
|
123
104
|
loading = _useRequest.loading,
|
|
124
105
|
run = _useRequest.run,
|
|
125
106
|
params = _useRequest.params;
|
|
126
|
-
var onLdQuery = useMemoizedFn(function () {
|
|
127
|
-
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
128
|
-
run(_objectSpread(_objectSpread(_objectSpread({}, params[0]), _params), defaultParams[0]));
|
|
129
|
-
});
|
|
130
107
|
useImperativeHandle(wrapperRef, function () {
|
|
131
108
|
return _objectSpread(_objectSpread({}, treeRef.current), {}, {
|
|
132
|
-
onLdQuery: onLdQuery
|
|
109
|
+
onLdQuery: function onLdQuery() {
|
|
110
|
+
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
111
|
+
run(_objectSpread(_objectSpread(_objectSpread({}, params[0]), _params), defaultParams[0]));
|
|
112
|
+
}
|
|
133
113
|
});
|
|
134
114
|
});
|
|
135
115
|
useLayoutEffect(function () {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
};
|
|
140
|
-
}, []);
|
|
141
|
-
useLayoutEffect(function () {
|
|
142
|
-
onDataSetChange && onDataSetChange(onLdQuery);
|
|
116
|
+
run(_objectSpread(_objectSpread(_objectSpread({}, params[0]), defaultParams[0]), {}, {
|
|
117
|
+
datasetCode: dataSetKey
|
|
118
|
+
}));
|
|
143
119
|
}, [dataSetKey]);
|
|
144
120
|
var handleMenuClick = function handleMenuClick(menu, data) {
|
|
145
121
|
var onClick = menu.onClick,
|
|
@@ -153,8 +129,7 @@ var LdTree = function LdTree(_ref) {
|
|
|
153
129
|
return handleMenuClick(menu, data);
|
|
154
130
|
},
|
|
155
131
|
className: styles.rightMenu,
|
|
156
|
-
key: menu.key
|
|
157
|
-
style: menu.style
|
|
132
|
+
key: menu.key
|
|
158
133
|
}, menu.name || '');
|
|
159
134
|
});
|
|
160
135
|
};
|
|
@@ -179,97 +154,53 @@ var LdTree = function LdTree(_ref) {
|
|
|
179
154
|
switcher.click();
|
|
180
155
|
});
|
|
181
156
|
var handleDoubleClick = useMemoizedFn(function (e, rowData) {
|
|
182
|
-
if (
|
|
183
|
-
|
|
157
|
+
if (onNodeDoubleClick) onNodeDoubleClick(e, rowData, function () {
|
|
158
|
+
return handleNodeDoubleClick(e);
|
|
159
|
+
});else handleNodeDoubleClick(e);
|
|
184
160
|
});
|
|
185
161
|
var renderTitleNode = function renderTitleNode(data, unSelectable) {
|
|
186
162
|
var nodeTitle = isFunction(treeNodeTitle) ? treeNodeTitle(data) : data[treeNodeTitle];
|
|
187
|
-
if (onTreeNodeRender) nodeTitle = onTreeNodeRender(nodeTitle, data);
|
|
188
163
|
return /*#__PURE__*/React.createElement("div", {
|
|
189
164
|
className: styles.nodeTitle,
|
|
190
165
|
key: data[rowKey],
|
|
191
166
|
onDoubleClick: function onDoubleClick(e) {
|
|
192
|
-
return handleDoubleClick(e, data);
|
|
167
|
+
return doubleClick && handleDoubleClick(e, data);
|
|
193
168
|
}
|
|
194
169
|
}, /*#__PURE__*/React.createElement("div", {
|
|
195
170
|
title: nodeTitle,
|
|
196
171
|
className: classNames(_defineProperty({}, styles.nodeTitleDisabled, unSelectable))
|
|
197
|
-
}, nodeTitle), !readOnly && renderRight(data));
|
|
172
|
+
}, nodeTitle, "11"), !readOnly && renderRight(data));
|
|
198
173
|
};
|
|
199
174
|
var renderTreeNodes = useMemoizedFn(function (data) {
|
|
200
175
|
return data.map(function (item) {
|
|
201
176
|
// 判断是否可选择
|
|
202
177
|
var unSelectable = isFunction(unselectableNodes) ? unselectableNodes(item) : unselectableNodes.includes(item[rowKey]);
|
|
203
|
-
|
|
178
|
+
if (item.children) {
|
|
179
|
+
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, {
|
|
180
|
+
isLeaf: false,
|
|
181
|
+
title: renderTitleNode(item, unSelectable),
|
|
182
|
+
key: item[rowKey],
|
|
183
|
+
dataRef: item,
|
|
184
|
+
selectable: !unSelectable
|
|
185
|
+
}, renderTreeNodes(item.children));
|
|
186
|
+
}
|
|
187
|
+
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, {
|
|
204
188
|
title: renderTitleNode(item, unSelectable),
|
|
205
189
|
key: item[rowKey],
|
|
206
190
|
dataRef: item,
|
|
207
|
-
selectable: !unSelectable
|
|
208
|
-
|
|
209
|
-
disableCheckbox: treeNodeDisableCheckbox && treeNodeDisableCheckbox(item),
|
|
210
|
-
disabled: treeNodeDisable && treeNodeDisable(item)
|
|
211
|
-
};
|
|
212
|
-
if (treeNodeIcon && !isNil(treeNodeIcon(item))) props.icon = treeNodeIcon(item);
|
|
213
|
-
if (!item.isleaf) {
|
|
214
|
-
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, _extends({
|
|
215
|
-
isLeaf: false
|
|
216
|
-
}, props), renderTreeNodes(item.children || []));
|
|
217
|
-
}
|
|
218
|
-
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, _extends({
|
|
219
|
-
isLeaf: true
|
|
220
|
-
}, props));
|
|
191
|
+
selectable: !unSelectable
|
|
192
|
+
});
|
|
221
193
|
});
|
|
222
194
|
});
|
|
223
195
|
var handleDrop = useMemoizedFn(function (info) {
|
|
224
196
|
var dragInfo = dragTreeData(info, dataSource);
|
|
225
|
-
|
|
226
|
-
doAction('drag', {
|
|
227
|
-
get: {
|
|
228
|
-
datasetCode: dataSetKey
|
|
229
|
-
},
|
|
230
|
-
post: {
|
|
231
|
-
fromId: info.dragNode.props.dataRef[PRIMARY],
|
|
232
|
-
toId: info.node.props.dataRef[PRIMARY]
|
|
233
|
-
}
|
|
234
|
-
}, {
|
|
235
|
-
showConfirm: false,
|
|
236
|
-
callback: function callback(success) {
|
|
237
|
-
return success && onLdQuery();
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
197
|
+
onDrop && onDrop(info, dragInfo);
|
|
241
198
|
});
|
|
242
199
|
var onAdd = useCreation(function () {
|
|
243
|
-
return !(readOnly || !rootAdd || rootAdd.resource && !includes(resources, rootAdd.resource)
|
|
200
|
+
return !(readOnly || !rootAdd || rootAdd.resource && !includes(resources, rootAdd.resource)) ? function () {
|
|
244
201
|
return handleMenuClick(rootAdd);
|
|
245
202
|
} : null;
|
|
246
203
|
}, [readOnly, rootAdd, resources]);
|
|
247
|
-
var onLoadData = useMemoizedFn(function (treeNode) {
|
|
248
|
-
return new Promise(function (resolve) {
|
|
249
|
-
console.log('treeNode.props.children', treeNode.props.children);
|
|
250
|
-
if (treeNode.props.isLeaf) {
|
|
251
|
-
resolve();
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
(service || behaviorCall)(_objectSpread(_objectSpread({}, params[0]), {}, _defineProperty({}, parentKey, treeNode.props.dataRef[window.appConfig.constraintKeys.PRIMARY]))).then(function (res) {
|
|
255
|
-
var code = res.code,
|
|
256
|
-
list = res.list,
|
|
257
|
-
detail = res.detail;
|
|
258
|
-
if (code === 1) {
|
|
259
|
-
treeNode.props.dataRef.children = list.map(function (i) {
|
|
260
|
-
return detail[i];
|
|
261
|
-
});
|
|
262
|
-
setDataSource(_toConsumableArray(dataSource));
|
|
263
|
-
resolve();
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
var asyncLoadData = useCreation(function () {
|
|
269
|
-
return asyncLoad ? {
|
|
270
|
-
loadData: onLoadData
|
|
271
|
-
} : {};
|
|
272
|
-
}, []);
|
|
273
204
|
return /*#__PURE__*/React.createElement(TreeBox, {
|
|
274
205
|
suppressTitle: !title,
|
|
275
206
|
title: title,
|
|
@@ -287,7 +218,7 @@ var LdTree = function LdTree(_ref) {
|
|
|
287
218
|
className: classNames(styles.tree, _defineProperty({}, className, !!treeClassName)),
|
|
288
219
|
draggable: !readOnly && draggable,
|
|
289
220
|
onDrop: handleDrop
|
|
290
|
-
},
|
|
221
|
+
}, defaultExpandedProps, props, {
|
|
291
222
|
ref: treeRef
|
|
292
223
|
}), renderTreeNodes(dataSource)));
|
|
293
224
|
};
|
|
@@ -319,9 +250,7 @@ Index.propTypes = {
|
|
|
319
250
|
// 行为
|
|
320
251
|
suppressInit: PropTypes.bool,
|
|
321
252
|
// 抑制初始化
|
|
322
|
-
afterInit: PropTypes.func
|
|
323
|
-
// 初始化后
|
|
324
|
-
parentKey: PropTypes.string
|
|
253
|
+
afterInit: PropTypes.func // 初始化后
|
|
325
254
|
};
|
|
326
255
|
Index.defaultProps = {
|
|
327
256
|
readOnly: false,
|
|
@@ -336,8 +265,7 @@ Index.defaultProps = {
|
|
|
336
265
|
return [];
|
|
337
266
|
},
|
|
338
267
|
suppressInit: false,
|
|
339
|
-
defaultParmas: {}
|
|
340
|
-
parentKey: 'iparentid'
|
|
268
|
+
defaultParmas: {}
|
|
341
269
|
};
|
|
342
270
|
export default /*#__PURE__*/forwardRef(function (props, ref) {
|
|
343
271
|
return /*#__PURE__*/React.createElement(Index, _extends({
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
.tree {
|
|
2
|
-
.nodeTitle {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
width: 100%;
|
|
6
|
-
user-select: none;
|
|
7
|
-
|
|
8
|
-
div {
|
|
9
|
-
flex: 1;
|
|
10
|
-
overflow-x: hidden;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
text-overflow: ellipsis;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
div.nodeTitleDisabled {
|
|
16
|
-
color: var(--luck-text-color-disabled);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
div.nodeTitleDisabled:hover {
|
|
20
|
-
cursor: not-allowed;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:global {
|
|
25
|
-
.ant-tree-title {
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.classTreeOperates {
|
|
32
|
-
:global(.ant-popover-inner-content) {
|
|
33
|
-
padding: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.rightMenu {
|
|
37
|
-
display: block;
|
|
38
|
-
padding: 4px 8px;
|
|
39
|
-
color: var(--luck-text-color-);
|
|
40
|
-
}
|
|
1
|
+
.tree {
|
|
2
|
+
.nodeTitle {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
user-select: none;
|
|
7
|
+
|
|
8
|
+
div {
|
|
9
|
+
flex: 1;
|
|
10
|
+
overflow-x: hidden;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.nodeTitleDisabled {
|
|
16
|
+
color: var(--luck-text-color-disabled);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
div.nodeTitleDisabled:hover {
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:global {
|
|
25
|
+
.ant-tree-title {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.classTreeOperates {
|
|
32
|
+
:global(.ant-popover-inner-content) {
|
|
33
|
+
padding: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.rightMenu {
|
|
37
|
+
display: block;
|
|
38
|
+
padding: 4px 8px;
|
|
39
|
+
color: var(--luck-text-color-);
|
|
40
|
+
}
|
|
41
41
|
}
|
package/es/helper/FromItems.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
1
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
@@ -25,13 +26,16 @@ var _excluded = ["onBlur"],
|
|
|
25
26
|
_excluded21 = ["onBlur"],
|
|
26
27
|
_excluded22 = ["handleValueChange", "config"],
|
|
27
28
|
_excluded23 = ["onBlur"],
|
|
28
|
-
_excluded24 = ["handleValueChange", "config"]
|
|
29
|
+
_excluded24 = ["handleValueChange", "config"],
|
|
30
|
+
_excluded25 = ["onChange"],
|
|
31
|
+
_excluded26 = ["handleValueChange", "config"];
|
|
29
32
|
import React, { useState, useEffect } from 'react';
|
|
30
33
|
import { getDvaApp } from 'umi';
|
|
31
34
|
import { BasicFormItem } from 'luck-design';
|
|
32
35
|
import { TreeSelector, RegionFormItem } from '@luck-design-biz/base';
|
|
33
36
|
import { DatadicDropDown, UserSelectDropDown as UserItem } from '@luck-design-biz/base/sys/dropdown';
|
|
34
37
|
import buildUploadFormItem from "../upload/FormItem";
|
|
38
|
+
import ComplexItem from "../components/ComplexItem";
|
|
35
39
|
export var getNumberItem = function getNumberItem() {
|
|
36
40
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
37
41
|
handleValueChange = _ref.handleValueChange,
|
|
@@ -311,4 +315,22 @@ export var getUploadItem = function getUploadItem() {
|
|
|
311
315
|
}
|
|
312
316
|
})
|
|
313
317
|
})));
|
|
318
|
+
};
|
|
319
|
+
export var getComplexItem = function getComplexItem(_ref15) {
|
|
320
|
+
var handleValueChange = _ref15.handleValueChange,
|
|
321
|
+
_ref15$config = _ref15.config,
|
|
322
|
+
_ref15$config2 = _ref15$config === void 0 ? {} : _ref15$config,
|
|
323
|
+
_onChange6 = _ref15$config2.onChange,
|
|
324
|
+
_config = _objectWithoutProperties(_ref15$config2, _excluded25),
|
|
325
|
+
props = _objectWithoutProperties(_ref15, _excluded26);
|
|
326
|
+
var config = _objectSpread(_objectSpread({}, _config), {}, {
|
|
327
|
+
onChange: function onChange(value, e) {
|
|
328
|
+
handleValueChange && handleValueChange(value);
|
|
329
|
+
_onChange6 && _onChange6(value, e);
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
return /*#__PURE__*/React.createElement(ComplexItem, _extends({}, props, {
|
|
333
|
+
$attrs: _defineProperty(_defineProperty({}, LC_COMPONENT_UNIT_KEY, LC_FORMITEM_UNIT), 'data-__component', 'FieldSelect'),
|
|
334
|
+
config: config
|
|
335
|
+
}));
|
|
314
336
|
};
|
package/es/helper/action.js
CHANGED
|
@@ -7,12 +7,12 @@ import { transform, isArray, startsWith, keyBy } from 'lodash';
|
|
|
7
7
|
import { dataFormat, behaviorCall } from "../utils";
|
|
8
8
|
import { defaultComName } from "./form";
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* 提交行为
|
|
12
|
-
* @param action 行为
|
|
13
|
-
* @param data 数据
|
|
14
|
-
* @param parmas 附件设置
|
|
15
|
-
* @param moduleData 当前模块信息
|
|
10
|
+
/**
|
|
11
|
+
* 提交行为
|
|
12
|
+
* @param action 行为
|
|
13
|
+
* @param data 数据
|
|
14
|
+
* @param parmas 附件设置
|
|
15
|
+
* @param moduleData 当前模块信息
|
|
16
16
|
*/
|
|
17
17
|
export var doAction = function doAction(action) {
|
|
18
18
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
package/es/helper/form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["extra"
|
|
4
|
-
import { isNil
|
|
3
|
+
var _excluded = ["extra"];
|
|
4
|
+
import { isNil } from 'lodash';
|
|
5
5
|
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
6
6
|
|
|
7
7
|
// 属性类型=》控件
|
|
@@ -22,14 +22,15 @@ export var defaultComName = {
|
|
|
22
22
|
zone: 'region',
|
|
23
23
|
year: 'year',
|
|
24
24
|
rte: 'editor',
|
|
25
|
-
file: 'upload'
|
|
25
|
+
file: 'upload',
|
|
26
|
+
complex: 'complex'
|
|
26
27
|
};
|
|
27
28
|
|
|
28
|
-
/**
|
|
29
|
-
* 动态表单配置项转译
|
|
30
|
-
* @param {key string} keyStr
|
|
31
|
-
* @param {label string} labelStr
|
|
32
|
-
* @returns [{key,label}]
|
|
29
|
+
/**
|
|
30
|
+
* 动态表单配置项转译
|
|
31
|
+
* @param {key string} keyStr
|
|
32
|
+
* @param {label string} labelStr
|
|
33
|
+
* @returns [{key,label}]
|
|
33
34
|
*/
|
|
34
35
|
export var splitStrToObj = function splitStrToObj(keyStr, labelStr) {
|
|
35
36
|
var keys = keyStr && keyStr.length > 0 ? keyStr.split(',') : undefined;
|
|
@@ -46,17 +47,15 @@ export var splitStrToObj = function splitStrToObj(keyStr, labelStr) {
|
|
|
46
47
|
return undefined;
|
|
47
48
|
};
|
|
48
49
|
|
|
49
|
-
/**
|
|
50
|
-
* 动态表单配置项转译
|
|
51
|
-
* @param {动态表单配置项} props
|
|
52
|
-
* @param {自定义动态表单配置项} customProps
|
|
53
|
-
* @returns {name: '',...}
|
|
50
|
+
/**
|
|
51
|
+
* 动态表单配置项转译
|
|
52
|
+
* @param {动态表单配置项} props
|
|
53
|
+
* @param {自定义动态表单配置项} customProps
|
|
54
|
+
* @returns {name: '',...}
|
|
54
55
|
*/
|
|
55
56
|
export function translator() {
|
|
56
57
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
57
58
|
extra = _ref.extra,
|
|
58
|
-
verifyList = _ref.verifyList,
|
|
59
|
-
setVerifyRules = _ref.setVerifyRules,
|
|
60
59
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
61
60
|
var allConfig = _objectSpread(_objectSpread({}, props), JSON.parse(extra || '{}'));
|
|
62
61
|
var _props = {
|
|
@@ -66,19 +65,15 @@ export function translator() {
|
|
|
66
65
|
required: !!allConfig.isNotNull,
|
|
67
66
|
disabled: !!allConfig.isReadOnly
|
|
68
67
|
},
|
|
69
|
-
layout: 'block'
|
|
70
|
-
col: allConfig.col || 1,
|
|
71
|
-
row: allConfig.row || 1
|
|
68
|
+
layout: 'block'
|
|
72
69
|
};
|
|
73
70
|
if (!isNil(allConfig['dataFormat'])) _props.dataFormat = allConfig['dataFormat'];
|
|
74
|
-
if (allConfig.
|
|
75
|
-
if (allConfig.note) _props.extra = allConfig.note;
|
|
76
|
-
if (allConfig.tip) _props.tip = allConfig.tip;
|
|
71
|
+
// if (allConfig.tip) _props.config.placeholder = allConfig.tip;
|
|
72
|
+
// if (allConfig.note) _props.extra = allConfig.note;
|
|
77
73
|
/* *********************************** extra ******************************* */
|
|
78
|
-
|
|
79
|
-
if (allConfig['
|
|
80
|
-
if (!isNil(allConfig['
|
|
81
|
-
if (!isNil(allConfig['opt_number_max']) && !verifyListObj.max) _props.config.max = allConfig['opt_number_max'];
|
|
74
|
+
if (allConfig['opt_length']) _props.config.length = allConfig['opt_length'];
|
|
75
|
+
if (!isNil(allConfig['opt_number_min'])) _props.config.min = allConfig['opt_number_min'];
|
|
76
|
+
if (!isNil(allConfig['opt_number_max'])) _props.config.max = allConfig['opt_number_max'];
|
|
82
77
|
if (!isNil(allConfig['opt_decimal'])) _props.config.precision = allConfig['opt_decimal'];
|
|
83
78
|
// 兼容部分组件多选移至props
|
|
84
79
|
if (!isNil(allConfig['opt_multiple'])) _props.multiple = !!allConfig['opt_multiple'];
|
|
@@ -92,15 +87,34 @@ export function translator() {
|
|
|
92
87
|
label: '不满足验证要求'
|
|
93
88
|
})
|
|
94
89
|
}];
|
|
90
|
+
// 符合类型参数
|
|
91
|
+
if (allConfig.opt_data_model) _props.complexConfig = _objectSpread(_objectSpread({}, _props.complexConfig || {}), {}, {
|
|
92
|
+
dataModel: allConfig.opt_data_model
|
|
93
|
+
});
|
|
94
|
+
if (allConfig.opt_module) _props.complexConfig = _objectSpread(_objectSpread({}, _props.complexConfig || {}), {}, {
|
|
95
|
+
moduleCode: allConfig.opt_module
|
|
96
|
+
});
|
|
97
|
+
if (allConfig.opt_dataset) _props.complexConfig = _objectSpread(_objectSpread({}, _props.complexConfig || {}), {}, {
|
|
98
|
+
dataSetCode: allConfig.opt_dataset
|
|
99
|
+
});
|
|
100
|
+
if (allConfig.opt_show_tree) _props.complexConfig = _objectSpread(_objectSpread({}, _props.complexConfig || {}), {}, {
|
|
101
|
+
isTree: allConfig.opt_show_tree
|
|
102
|
+
});
|
|
103
|
+
if (allConfig.opt_key_field) _props.complexConfig = _objectSpread(_objectSpread({}, _props.complexConfig || {}), {}, {
|
|
104
|
+
keyField: allConfig.opt_key_field
|
|
105
|
+
});
|
|
106
|
+
if (allConfig.opt_value_field) _props.complexConfig = _objectSpread(_objectSpread({}, _props.complexConfig || {}), {}, {
|
|
107
|
+
valueField: allConfig.opt_value_field
|
|
108
|
+
});
|
|
109
|
+
// 符合类型参数
|
|
95
110
|
if (allConfig['desensitized']) _props.desensitized = allConfig['desensitized']; // 脱敏
|
|
96
|
-
if ((verifyList === null || verifyList === void 0 ? void 0 : verifyList.length) > 0 && setVerifyRules) return setVerifyRules(_props, verifyListObj);
|
|
97
111
|
return _props;
|
|
98
112
|
}
|
|
99
113
|
|
|
100
|
-
/**
|
|
101
|
-
* 删除自动移操作中的不可覆盖字段
|
|
102
|
-
* @param props
|
|
103
|
-
* @returns {{multiple}|*}
|
|
114
|
+
/**
|
|
115
|
+
* 删除自动移操作中的不可覆盖字段
|
|
116
|
+
* @param props
|
|
117
|
+
* @returns {{multiple}|*}
|
|
104
118
|
*/
|
|
105
119
|
export function formatCustomProps(props) {
|
|
106
120
|
var _props$confiig;
|
package/es/helper/index.less
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.ldLabs{
|
|
2
|
-
:global{
|
|
3
|
-
.ant-tabs-bar{
|
|
4
|
-
margin: 0 0 4px 0;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
.ldLabs{
|
|
2
|
+
:global{
|
|
3
|
+
.ant-tabs-bar{
|
|
4
|
+
margin: 0 0 4px 0;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
package/es/helper/ldBuilder.js
CHANGED
|
@@ -5,10 +5,7 @@ import { formatMessage } from '@luck-design-biz/base/utils';
|
|
|
5
5
|
var builder = function builder(wrapped) {
|
|
6
6
|
var LdCom = function LdCom(props) {
|
|
7
7
|
var ldId = props.ldId,
|
|
8
|
-
dataSetKey = props.dataSetKey
|
|
9
|
-
wrapper = props.wrapper,
|
|
10
|
-
className = props.className,
|
|
11
|
-
style = props.style;
|
|
8
|
+
dataSetKey = props.dataSetKey;
|
|
12
9
|
var _ref = useContext(LuckDaContext) || {},
|
|
13
10
|
resources = _ref.resources,
|
|
14
11
|
actions = _ref.actions,
|
|
@@ -19,35 +16,22 @@ var builder = function builder(wrapped) {
|
|
|
19
16
|
doAction = _ref.doAction,
|
|
20
17
|
moduleCode = _ref.moduleCode; // 读存储的模块信息,包括行为、行为执行方法、数据集
|
|
21
18
|
|
|
22
|
-
if (!ldId) return
|
|
23
|
-
ref: wrapper,
|
|
24
|
-
className: className,
|
|
25
|
-
style: style
|
|
26
|
-
}, formatMessage({
|
|
19
|
+
if (!ldId) return formatMessage({
|
|
27
20
|
id: 'luckda.paramMiss.ldId',
|
|
28
21
|
label: '配置项缺少组件唯一标识(ldId)'
|
|
29
|
-
})
|
|
30
|
-
if (!dataSetKey) return
|
|
31
|
-
ref: wrapper,
|
|
32
|
-
className: className,
|
|
33
|
-
style: style
|
|
34
|
-
}, formatMessage({
|
|
22
|
+
});
|
|
23
|
+
if (!dataSetKey) return formatMessage({
|
|
35
24
|
id: 'luckda.paramMiss.dataSetKey',
|
|
36
25
|
label: '缺少数据集(dataSetKey)'
|
|
37
|
-
})
|
|
38
|
-
if (!dataSets[dataSetKey])
|
|
26
|
+
});
|
|
27
|
+
if (!dataSets[dataSetKey]) return "".concat(formatMessage({
|
|
39
28
|
// 待获取数据源
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
label: '该模块下缺少'
|
|
47
|
-
}), dataSetKey, formatMessage({
|
|
48
|
-
id: 'luckda.parmas.dataSet',
|
|
49
|
-
label: '数据集'
|
|
50
|
-
}));
|
|
29
|
+
id: 'luckda.module.miss',
|
|
30
|
+
label: '该模块下缺少'
|
|
31
|
+
})).concat(dataSetKey).concat(formatMessage({
|
|
32
|
+
id: 'luckda.parmas.dataSet',
|
|
33
|
+
label: '数据集'
|
|
34
|
+
}));
|
|
51
35
|
var wrappedProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
52
36
|
columns: dataSets[dataSetKey],
|
|
53
37
|
isTree: isTree,
|