@luck-design-biz/luckda 1.0.2 → 1.0.4-13tl
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/LDActions/index.js +1 -0
- package/es/components/LDActions/index.less +70 -70
- package/es/components/LdFormList/index.js +6 -4
- package/es/components/LdGrid/index.js +5 -8
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.less +42 -42
- package/es/helper/action.js +8 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/locales/zh-CN.js +22 -3
- package/es/lowcode/constants/api-url.js +410 -268
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- package/es/lowcode/engine/meta/button.api.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.json +3 -5
- package/es/lowcode/engine/meta/components-list.json +6 -6
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/es/lowcode/engine/meta/dialog.props.json +24 -4
- package/es/lowcode/engine/meta/drawer.props.json +1 -1
- package/es/lowcode/engine/meta/fielddate.props.json +0 -1
- package/es/lowcode/engine/meta/fieldeditor.props.json +0 -1
- package/es/lowcode/engine/meta/fieldgroup.props.json +0 -1
- package/es/lowcode/engine/meta/fieldyear.props.json +0 -1
- package/es/lowcode/engine/meta/form.props.json +3 -19
- package/es/lowcode/engine/meta/grouptree.props.json +0 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +30 -30
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/es/lowcode/engine/meta/jsx.props.json +4 -3
- package/es/lowcode/engine/meta/layout.props.default.json +1 -1
- package/es/lowcode/engine/meta/layout.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/table.props.json +0 -7
- package/es/lowcode/engine/meta/tabs.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.json +1 -5
- package/es/lowcode/engine/provider/ContextProvider/index.js +44 -44
- package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +16 -16
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/painter/Components.js +3 -3
- package/es/lowcode/painter/DesignOperator.js +10 -4
- package/es/lowcode/painter/DesignToolbar.js +27 -28
- package/es/lowcode/painter/History.js +300 -0
- package/es/lowcode/painter/Panel.js +1 -1
- package/es/lowcode/painter/Ribbon.js +38 -2
- package/es/lowcode/painter/components/AdvancePanel.js +30 -37
- package/es/lowcode/painter/components/Collapse.js +26 -26
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- 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 +22 -22
- package/es/lowcode/painter/components/TreeEditor.js +76 -8
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +43 -35
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/DiffEditor.js +41 -0
- 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/components/field-setting/FieldAttrs.js +2 -2
- package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -1
- package/es/lowcode/painter/panel-section/ConditionCheck.js +71 -0
- package/es/lowcode/painter/panel-section/DialogSize.js +76 -0
- package/es/lowcode/painter/panel-section/DialogWidthHeight.js +60 -0
- package/es/lowcode/painter/panel-section/FieldState.js +11 -2
- package/es/lowcode/painter/panel-section/Icon.js +23 -23
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -1
- package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +171 -0
- package/es/lowcode/painter/panel-section/JSEditor/index.js +171 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- 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 +39 -21
- 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 +2 -2
- 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 +15 -15
- package/es/lowcode/painter/panel-section/TableZebra.js +5 -1
- package/es/lowcode/painter/panel-section/TextContent.js +10 -2
- package/es/lowcode/painter/style/action-bind-modal.less +104 -104
- 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 +28 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +91 -91
- package/es/lowcode/painter/style/design.less +178 -178
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +56 -56
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- 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/history.less +46 -0
- 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 +97 -97
- package/es/lowcode/painter/style/number-input.less +19 -19
- package/es/lowcode/painter/style/outline.less +30 -30
- package/es/lowcode/painter/style/page-layout-display.less +27 -27
- package/es/lowcode/painter/style/page-vars.less +25 -25
- package/es/lowcode/painter/style/panel-attrs.less +47 -47
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +100 -100
- 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 +7 -7
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/split-display.less +18 -18
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/painter/svg/code.svg +3 -3
- package/es/lowcode/painter/svg/expect.svg +9 -9
- package/es/lowcode/view/ErrorBoundary.js +80 -0
- package/es/lowcode/view/Page.js +3 -3
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
- package/es/lowcode/view/lc-components/Box/index.js +4 -4
- 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/index.js +33 -33
- 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/index.js +123 -123
- package/es/lowcode/view/lc-components/CardList/meta.json +332 -334
- package/es/lowcode/view/lc-components/Dialog/index.js +25 -18
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/es/lowcode/view/lc-components/Dialog/meta.json +224 -204
- package/es/lowcode/view/lc-components/Drawer/index.js +16 -16
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/es/lowcode/view/lc-components/FieldDate/meta.json +140 -141
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +137 -138
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +166 -167
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/es/lowcode/view/lc-components/FieldYear/meta.json +128 -129
- package/es/lowcode/view/lc-components/Form/index.js +32 -39
- package/es/lowcode/view/lc-components/Form/meta.json +629 -645
- package/es/lowcode/view/lc-components/GroupTree/index.js +25 -25
- package/es/lowcode/view/lc-components/GroupTree/index.less +11 -11
- package/es/lowcode/view/lc-components/GroupTree/meta.json +82 -83
- package/es/lowcode/view/lc-components/Iframe/meta.json +31 -31
- package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +134 -134
- package/es/lowcode/view/lc-components/Image/index.less +27 -27
- package/es/lowcode/view/lc-components/Image/meta.json +149 -149
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +36 -20
- package/es/lowcode/view/lc-components/JSX/meta.json +29 -28
- package/es/lowcode/view/lc-components/Layout/index.js +16 -16
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/es/lowcode/view/lc-components/Link/index.less +15 -15
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Page/meta.json +61 -61
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/index.js +1 -1
- package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +108 -108
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +40 -18
- package/es/lowcode/view/lc-components/Table/index.js +152 -151
- package/es/lowcode/view/lc-components/Table/meta.json +443 -450
- package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/meta.json +56 -56
- package/es/lowcode/view/lc-components/Tree/index.js +96 -96
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +353 -357
- package/es/lowcode/view/lc-components/Wrapper.js +2 -0
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +98 -98
- package/es/lowcode/view/style/page.less +7 -7
- package/es/upload/FilesWall/index.js +29 -19
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/gridForm.js +16 -6
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +31 -19
- package/es/utils/form.js +25 -24
- package/es/utils/grid.js +10 -2
- package/lib/components/LDActions/index.js +1 -0
- package/lib/components/LDActions/index.less +70 -70
- package/lib/components/LdFormList/index.js +6 -4
- package/lib/components/LdGrid/index.js +5 -8
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.less +42 -42
- package/lib/helper/action.js +8 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/locales/zh-CN.js +22 -3
- package/lib/lowcode/constants/api-url.js +411 -270
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- package/lib/lowcode/engine/meta/button.api.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +3 -5
- package/lib/lowcode/engine/meta/components-list.json +6 -6
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/lib/lowcode/engine/meta/dialog.props.json +24 -4
- package/lib/lowcode/engine/meta/drawer.props.json +1 -1
- package/lib/lowcode/engine/meta/fielddate.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldyear.props.json +0 -1
- package/lib/lowcode/engine/meta/form.props.json +3 -19
- package/lib/lowcode/engine/meta/grouptree.props.json +0 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +30 -30
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/lib/lowcode/engine/meta/jsx.props.json +4 -3
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/table.props.json +0 -7
- package/lib/lowcode/engine/meta/tabs.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.json +1 -5
- package/lib/lowcode/engine/provider/ContextProvider/index.js +44 -44
- package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +16 -16
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/painter/Components.js +3 -3
- package/lib/lowcode/painter/DesignOperator.js +10 -4
- package/lib/lowcode/painter/DesignToolbar.js +27 -28
- package/lib/lowcode/painter/History.js +308 -0
- package/lib/lowcode/painter/Panel.js +1 -1
- package/lib/lowcode/painter/Ribbon.js +38 -2
- package/lib/lowcode/painter/components/AdvancePanel.js +29 -36
- package/lib/lowcode/painter/components/Collapse.js +26 -26
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +10 -3
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- 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 +22 -22
- package/lib/lowcode/painter/components/TreeEditor.js +76 -8
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +43 -35
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/DiffEditor.js +49 -0
- 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/components/field-setting/FieldAttrs.js +2 -2
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -1
- package/lib/lowcode/painter/panel-section/ConditionCheck.js +79 -0
- package/lib/lowcode/painter/panel-section/DialogSize.js +83 -0
- package/lib/lowcode/painter/panel-section/DialogWidthHeight.js +67 -0
- package/lib/lowcode/painter/panel-section/FieldState.js +11 -2
- package/lib/lowcode/painter/panel-section/Icon.js +23 -23
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -1
- package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +178 -0
- package/lib/lowcode/painter/panel-section/JSEditor/index.js +179 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- 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 +39 -21
- 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 +2 -2
- 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 +15 -15
- package/lib/lowcode/painter/panel-section/TableZebra.js +5 -1
- package/lib/lowcode/painter/panel-section/TextContent.js +9 -1
- package/lib/lowcode/painter/style/action-bind-modal.less +104 -104
- 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 +28 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +91 -91
- package/lib/lowcode/painter/style/design.less +178 -178
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +56 -56
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- 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/history.less +46 -0
- 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 +97 -97
- package/lib/lowcode/painter/style/number-input.less +19 -19
- package/lib/lowcode/painter/style/outline.less +30 -30
- package/lib/lowcode/painter/style/page-layout-display.less +27 -27
- package/lib/lowcode/painter/style/page-vars.less +25 -25
- package/lib/lowcode/painter/style/panel-attrs.less +47 -47
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +100 -100
- 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 +7 -7
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/split-display.less +18 -18
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/painter/svg/code.svg +3 -3
- package/lib/lowcode/painter/svg/expect.svg +9 -9
- package/lib/lowcode/view/ErrorBoundary.js +88 -0
- package/lib/lowcode/view/Page.js +4 -4
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
- package/lib/lowcode/view/lc-components/Box/index.js +4 -4
- 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/index.js +33 -33
- 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/index.js +123 -123
- package/lib/lowcode/view/lc-components/CardList/meta.json +332 -334
- package/lib/lowcode/view/lc-components/Dialog/index.js +23 -16
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/lib/lowcode/view/lc-components/Dialog/meta.json +224 -204
- package/lib/lowcode/view/lc-components/Drawer/index.js +14 -14
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +140 -141
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +137 -138
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +166 -167
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +128 -129
- package/lib/lowcode/view/lc-components/Form/index.js +32 -39
- package/lib/lowcode/view/lc-components/Form/meta.json +629 -645
- package/lib/lowcode/view/lc-components/GroupTree/index.js +25 -25
- package/lib/lowcode/view/lc-components/GroupTree/index.less +11 -11
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +82 -83
- package/lib/lowcode/view/lc-components/Iframe/meta.json +31 -31
- package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -134
- package/lib/lowcode/view/lc-components/Image/index.less +27 -27
- package/lib/lowcode/view/lc-components/Image/meta.json +149 -149
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +37 -20
- package/lib/lowcode/view/lc-components/JSX/meta.json +29 -28
- package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Link/index.less +15 -15
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +61 -61
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/index.js +1 -1
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -108
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +39 -17
- package/lib/lowcode/view/lc-components/Table/index.js +152 -151
- package/lib/lowcode/view/lc-components/Table/meta.json +443 -450
- package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
- package/lib/lowcode/view/lc-components/Tree/index.js +96 -96
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +353 -357
- package/lib/lowcode/view/lc-components/Wrapper.js +2 -0
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +98 -98
- package/lib/lowcode/view/style/page.less +7 -7
- package/lib/upload/FilesWall/index.js +26 -16
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/gridForm.js +13 -3
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +30 -18
- package/lib/utils/form.js +24 -23
- package/lib/utils/grid.js +11 -3
- package/lowcode.js +1 -1
- package/package.json +175 -176
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -49
- package/es/lowcode/view/errorBoundary.js +0 -61
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -57
- package/lib/lowcode/view/errorBoundary.js +0 -69
package/es/utils/form.js
CHANGED
|
@@ -15,14 +15,14 @@ import moment from 'moment';
|
|
|
15
15
|
import { capitalize, merge, transform, isArray, omit, isNil, clone, cloneDeep } from 'lodash';
|
|
16
16
|
import api from "@/services/ApiConfig";
|
|
17
17
|
import { defaultComName, translator, splitStrToObj, formatCustomProps } from "../helper/form";
|
|
18
|
-
import { getColumnRender } from "./grid";
|
|
18
|
+
import { getColumnRender, getExportField } from "./grid";
|
|
19
19
|
import * as formItemUtils from "../helper/FromItems";
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* 根据动态表单配置项生成formItem
|
|
23
|
-
* @param {动态表单配置项} props
|
|
24
|
-
* @param {自定义动态表单配置项} customProps
|
|
25
|
-
* @returns <BasicForm name='' ... />
|
|
21
|
+
/**
|
|
22
|
+
* 根据动态表单配置项生成formItem
|
|
23
|
+
* @param {动态表单配置项} props
|
|
24
|
+
* @param {自定义动态表单配置项} customProps
|
|
25
|
+
* @returns <BasicForm name='' ... />
|
|
26
26
|
*/
|
|
27
27
|
export function getFormItem() {
|
|
28
28
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -56,11 +56,11 @@ export function getFormItem() {
|
|
|
56
56
|
}));
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* 根据后端返回数据组装表单数据
|
|
61
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
62
|
-
* @param {对象---后端返回的未处理数据} values
|
|
63
|
-
* @returns
|
|
59
|
+
/**
|
|
60
|
+
* 根据后端返回数据组装表单数据
|
|
61
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
62
|
+
* @param {对象---后端返回的未处理数据} values
|
|
63
|
+
* @returns
|
|
64
64
|
*/
|
|
65
65
|
export var formItemDataFormat = function formItemDataFormat() {
|
|
66
66
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -130,11 +130,11 @@ export var formItemDataFormat = function formItemDataFormat() {
|
|
|
130
130
|
return _objectSpread(_objectSpread({}, omitValues), data);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
/**
|
|
134
|
-
* 数据格式化
|
|
135
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
136
|
-
* @param {对象---表单获取到的未处理数据} values
|
|
137
|
-
* @returns
|
|
133
|
+
/**
|
|
134
|
+
* 数据格式化
|
|
135
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
136
|
+
* @param {对象---表单获取到的未处理数据} values
|
|
137
|
+
* @returns
|
|
138
138
|
*/
|
|
139
139
|
export var dataFormat = function dataFormat() {
|
|
140
140
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -194,17 +194,17 @@ export var dataFormat = function dataFormat() {
|
|
|
194
194
|
default:
|
|
195
195
|
result[name] = values[name];
|
|
196
196
|
}
|
|
197
|
-
values = omit(values, [name, "".concat(name, "
|
|
197
|
+
values = omit(values, [name, "".concat(name, "_virtual")]);
|
|
198
198
|
}, {});
|
|
199
199
|
return _objectSpread(_objectSpread({}, values), data);
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @param formType
|
|
205
|
-
* @param props
|
|
206
|
-
* @param customProps
|
|
207
|
-
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @param formType
|
|
205
|
+
* @param props
|
|
206
|
+
* @param customProps
|
|
207
|
+
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
208
208
|
*/
|
|
209
209
|
export var getFormColumn = function getFormColumn() {
|
|
210
210
|
var _props$config;
|
|
@@ -256,6 +256,7 @@ export var getFormColumn = function getFormColumn() {
|
|
|
256
256
|
key: name
|
|
257
257
|
}, _props));
|
|
258
258
|
},
|
|
259
|
-
field: name
|
|
259
|
+
field: name,
|
|
260
|
+
exportField: getExportField(name, formItemType, _props)
|
|
260
261
|
});
|
|
261
262
|
};
|
package/es/utils/grid.js
CHANGED
|
@@ -109,6 +109,11 @@ var getAlign = function getAlign(extraData, alignClass) {
|
|
|
109
109
|
return 'left';
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
+
export var getExportField = function getExportField(name, type, props) {
|
|
113
|
+
var _props$config2;
|
|
114
|
+
if (type === 'number' && (_props$config2 = props.config) !== null && _props$config2 !== void 0 && _props$config2.precision || ['date', 'user', 'select', 'group', 'region', 'upload'].includes(type)) return "".concat(name, "_virtual");
|
|
115
|
+
return;
|
|
116
|
+
};
|
|
112
117
|
export var getGridColumn = function getGridColumn() {
|
|
113
118
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
114
119
|
comName = _ref.comName,
|
|
@@ -132,6 +137,7 @@ export var getGridColumn = function getGridColumn() {
|
|
|
132
137
|
var _extra = JSON.parse(extra) || {};
|
|
133
138
|
var data = _objectSpread(_objectSpread({}, _props), {}, {
|
|
134
139
|
field: name,
|
|
140
|
+
exportField: getExportField(name, comName || defaultComName[property], _props),
|
|
135
141
|
title: _props.fieldAliasName || _props.label,
|
|
136
142
|
headerAlign: _props.headerAlign || getAlign(_extra, 'sheading_alignment_virtual'),
|
|
137
143
|
align: _props.align || getAlign(_extra, 'scell_alignment_virtual'),
|
|
@@ -144,8 +150,8 @@ export var getGridColumn = function getGridColumn() {
|
|
|
144
150
|
data.filter = filter;
|
|
145
151
|
data.filterParams = filterParams;
|
|
146
152
|
} else if (!isTreeGrid && !isVirtual) {
|
|
147
|
-
var _props$
|
|
148
|
-
if ((_props.mode || ((_props$
|
|
153
|
+
var _props$config3;
|
|
154
|
+
if ((_props.mode || ((_props$config3 = _props.config) === null || _props$config3 === void 0 ? void 0 : _props$config3.mode)) === 'multiple') {
|
|
149
155
|
data.field = "".concat(name, "_virtual");
|
|
150
156
|
data.filter = 'text';
|
|
151
157
|
return data;
|
|
@@ -196,6 +202,7 @@ export var getGridColumn = function getGridColumn() {
|
|
|
196
202
|
break;
|
|
197
203
|
case 'select':
|
|
198
204
|
case 'radio':
|
|
205
|
+
case 'dict':
|
|
199
206
|
data.filter = 'select';
|
|
200
207
|
if (_props.alias) {
|
|
201
208
|
data.filterParams = {
|
|
@@ -269,6 +276,7 @@ export var getGridColumn = function getGridColumn() {
|
|
|
269
276
|
case 'select':
|
|
270
277
|
case 'group':
|
|
271
278
|
case 'complex':
|
|
279
|
+
case 'dict':
|
|
272
280
|
if (translateProps.multiple) {
|
|
273
281
|
formItemProps = {
|
|
274
282
|
dataFormat: function dataFormat(value) {
|
|
@@ -36,6 +36,7 @@ var DisplayComp = function DisplayComp(_ref) {
|
|
|
36
36
|
return /*#__PURE__*/_react.default.createElement(_antd.Button, (0, _extends2.default)({}, props, {
|
|
37
37
|
disabled: action.serialEffect === 'disable',
|
|
38
38
|
className: (0, _classnames.default)(_index.default[action.riskLevel], (0, _defineProperty2.default)({}, className, !!className)),
|
|
39
|
+
type: action.riskLevel,
|
|
39
40
|
onClick: onClick
|
|
40
41
|
}), children);
|
|
41
42
|
};
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
-
|
|
3
|
-
@spanDefault: #262626;
|
|
4
|
-
@spanPrimary: var(--ant-primary-color);
|
|
5
|
-
@spanDanger: #ff4d4f;
|
|
6
|
-
@spanDestroy: #820014;
|
|
7
|
-
|
|
8
|
-
.ldActions {
|
|
9
|
-
|
|
10
|
-
button:not(:last-child) {
|
|
11
|
-
margin-right: 4px;
|
|
12
|
-
}
|
|
13
|
-
button:not(:first-child) {
|
|
14
|
-
margin-left: 4px;
|
|
15
|
-
}
|
|
16
|
-
span {
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
button.default {
|
|
21
|
-
background-color: @component-background;
|
|
22
|
-
}
|
|
23
|
-
span.default {
|
|
24
|
-
color: @spanDefault;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
button.primary {
|
|
28
|
-
background-color: var(--ant-primary-color);
|
|
29
|
-
border-color: var(--ant-primary-color);
|
|
30
|
-
color: white;
|
|
31
|
-
}
|
|
32
|
-
span.primary {
|
|
33
|
-
color: @spanPrimary;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
button.danger {
|
|
37
|
-
background-color: #ff4d4f;
|
|
38
|
-
border-color: #ff4d4f;
|
|
39
|
-
color: white;
|
|
40
|
-
}
|
|
41
|
-
span.danger {
|
|
42
|
-
color: @spanDanger;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
button.destroy {
|
|
46
|
-
background-color: #820014;
|
|
47
|
-
border-color: #820014;
|
|
48
|
-
color: white;
|
|
49
|
-
}
|
|
50
|
-
span.destroy {
|
|
51
|
-
color: @spanDestroy;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
span.disabled {
|
|
55
|
-
color: #bfbfbf;
|
|
56
|
-
cursor: not-allowed;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
span.default.menuItem {
|
|
60
|
-
color: @spanDefault;
|
|
61
|
-
}
|
|
62
|
-
span.primary.menuItem {
|
|
63
|
-
color: @spanPrimary;
|
|
64
|
-
}
|
|
65
|
-
span.danger.menuItem {
|
|
66
|
-
color: @spanDanger;
|
|
67
|
-
}
|
|
68
|
-
span.destroy.menuItem {
|
|
69
|
-
color: @spanDestroy;
|
|
70
|
-
}
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
3
|
+
@spanDefault: #262626;
|
|
4
|
+
@spanPrimary: var(--ant-primary-color);
|
|
5
|
+
@spanDanger: #ff4d4f;
|
|
6
|
+
@spanDestroy: #820014;
|
|
7
|
+
|
|
8
|
+
.ldActions {
|
|
9
|
+
|
|
10
|
+
button:not(:last-child) {
|
|
11
|
+
margin-right: 4px;
|
|
12
|
+
}
|
|
13
|
+
button:not(:first-child) {
|
|
14
|
+
margin-left: 4px;
|
|
15
|
+
}
|
|
16
|
+
span {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
button.default {
|
|
21
|
+
background-color: @component-background;
|
|
22
|
+
}
|
|
23
|
+
span.default {
|
|
24
|
+
color: @spanDefault;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
button.primary {
|
|
28
|
+
background-color: var(--ant-primary-color);
|
|
29
|
+
border-color: var(--ant-primary-color);
|
|
30
|
+
color: white;
|
|
31
|
+
}
|
|
32
|
+
span.primary {
|
|
33
|
+
color: @spanPrimary;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
button.danger {
|
|
37
|
+
background-color: #ff4d4f;
|
|
38
|
+
border-color: #ff4d4f;
|
|
39
|
+
color: white;
|
|
40
|
+
}
|
|
41
|
+
span.danger {
|
|
42
|
+
color: @spanDanger;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
button.destroy {
|
|
46
|
+
background-color: #820014;
|
|
47
|
+
border-color: #820014;
|
|
48
|
+
color: white;
|
|
49
|
+
}
|
|
50
|
+
span.destroy {
|
|
51
|
+
color: @spanDestroy;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
span.disabled {
|
|
55
|
+
color: #bfbfbf;
|
|
56
|
+
cursor: not-allowed;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
span.default.menuItem {
|
|
60
|
+
color: @spanDefault;
|
|
61
|
+
}
|
|
62
|
+
span.primary.menuItem {
|
|
63
|
+
color: @spanPrimary;
|
|
64
|
+
}
|
|
65
|
+
span.danger.menuItem {
|
|
66
|
+
color: @spanDanger;
|
|
67
|
+
}
|
|
68
|
+
span.destroy.menuItem {
|
|
69
|
+
color: @spanDestroy;
|
|
70
|
+
}
|
|
@@ -31,7 +31,7 @@ var _LdPop = require("../LdPop");
|
|
|
31
31
|
var _model = _interopRequireDefault(require("./model"));
|
|
32
32
|
var _action = require("../../helper/action");
|
|
33
33
|
var _utils2 = require("../../lowcode/engine/provider/ContextProvider/utils");
|
|
34
|
-
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading", "showConfigBtn", "affixBarZIndex"],
|
|
34
|
+
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading", "validateErrorCallback", "showConfigBtn", "affixBarZIndex"],
|
|
35
35
|
_excluded2 = ["dataSets", "doAction", "resources"],
|
|
36
36
|
_excluded3 = ["id", "header", "title", "readOnly", "extraConfig", "renderTopLeft", "serial"],
|
|
37
37
|
_excluded4 = ["ldId", "initData", "overModel"];
|
|
@@ -66,6 +66,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
66
66
|
bpmButtonProps = _ref$bpmButtonProps === void 0 ? {} : _ref$bpmButtonProps,
|
|
67
67
|
setVerifyRules = _ref.setVerifyRules,
|
|
68
68
|
afterSubmitLoading = _ref.afterSubmitLoading,
|
|
69
|
+
validateErrorCallback = _ref.validateErrorCallback,
|
|
69
70
|
_ref$showConfigBtn = _ref.showConfigBtn,
|
|
70
71
|
showConfigBtn = _ref$showConfigBtn === void 0 ? true : _ref$showConfigBtn,
|
|
71
72
|
affixBarZIndex = _ref.affixBarZIndex,
|
|
@@ -228,9 +229,9 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
228
229
|
formUid: formUid,
|
|
229
230
|
mainDataSetKey: mainDataSetKey
|
|
230
231
|
}, function (success, mainKey, res) {
|
|
231
|
-
afterSubmitLoading && afterSubmitLoading(res);
|
|
232
232
|
setSubmitLoading(false);
|
|
233
233
|
if (success) {
|
|
234
|
+
afterSubmitLoading === null || afterSubmitLoading === void 0 || afterSubmitLoading(res);
|
|
234
235
|
var mainFormData = res.detail[res.list[0]];
|
|
235
236
|
if (afterSubmit) {
|
|
236
237
|
afterSubmit(success, mainKey, res);
|
|
@@ -238,10 +239,11 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
238
239
|
var _formListRef$current, _formListRef$current2;
|
|
239
240
|
props.parentModelName && ((_formListRef$current = formListRef.current) === null || _formListRef$current === void 0 ? void 0 : _formListRef$current.doParentsQuery());
|
|
240
241
|
(_formListRef$current2 = formListRef.current) === null || _formListRef$current2 === void 0 || _formListRef$current2.onQuery(null, (0, _defineProperty2.default)({}, mainFormLdId, mainFormData), function () {
|
|
241
|
-
|
|
242
|
+
var _formListRef$current4;
|
|
243
|
+
(_formListRef$current4 = formListRef.current) === null || _formListRef$current4 === void 0 || _formListRef$current4.setFormMode('info');
|
|
242
244
|
});
|
|
243
245
|
}
|
|
244
|
-
}
|
|
246
|
+
} else validateErrorCallback === null || validateErrorCallback === void 0 || validateErrorCallback();
|
|
245
247
|
});
|
|
246
248
|
};
|
|
247
249
|
var formConfig = (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
@@ -101,14 +101,14 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
101
101
|
});
|
|
102
102
|
}, [batchOperations]);
|
|
103
103
|
|
|
104
|
-
/**
|
|
105
|
-
* 优先级
|
|
106
|
-
* columnsReset 重置columns,不受模块管理限制,写什么展示什么
|
|
107
|
-
* columnsRewrite 覆盖模块管理配置,是否展示以模块管理配置为主,自己可以用hide来隐藏某字段
|
|
104
|
+
/**
|
|
105
|
+
* 优先级
|
|
106
|
+
* columnsReset 重置columns,不受模块管理限制,写什么展示什么
|
|
107
|
+
* columnsRewrite 覆盖模块管理配置,是否展示以模块管理配置为主,自己可以用hide来隐藏某字段
|
|
108
108
|
*/
|
|
109
109
|
var _columns = (0, _ahooks.useCreation)(function () {
|
|
110
110
|
if (columnsReset) {
|
|
111
|
-
if (_lodash.isFunction) {
|
|
111
|
+
if ((0, _lodash.isFunction)(columnsReset)) {
|
|
112
112
|
return columnsReset(columns);
|
|
113
113
|
}
|
|
114
114
|
return columnsReset;
|
|
@@ -152,9 +152,6 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
152
152
|
unclosableSet: unclosableSet,
|
|
153
153
|
onQuery: onQuery
|
|
154
154
|
});
|
|
155
|
-
|
|
156
|
-
// console.log('_columns',columns,_columns)
|
|
157
|
-
|
|
158
155
|
return /*#__PURE__*/_react.default.createElement(_List.GridList, (0, _extends2.default)({
|
|
159
156
|
columns: _columns
|
|
160
157
|
// 资源串、行为配置
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.ldGridForm {
|
|
2
|
-
:global {
|
|
3
|
-
.ag-layout-auto-height {
|
|
4
|
-
height: 100% !important;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
.ldGridForm {
|
|
2
|
+
:global {
|
|
3
|
+
.ag-layout-auto-height {
|
|
4
|
+
height: 100% !important;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
-
|
|
3
|
-
.tree {
|
|
4
|
-
.nodeTitle {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
user-select: none;
|
|
9
|
-
|
|
10
|
-
div {
|
|
11
|
-
flex: 1;
|
|
12
|
-
overflow-x: hidden;
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
text-overflow: ellipsis;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
div.nodeTitleDisabled {
|
|
18
|
-
color: @text-color-secondary_luck;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
div.nodeTitleDisabled:hover {
|
|
22
|
-
cursor: not-allowed;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:global {
|
|
27
|
-
.ant-tree-title {
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.classTreeOperates {
|
|
34
|
-
:global(.ant-popover-inner-content) {
|
|
35
|
-
padding: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.rightMenu {
|
|
39
|
-
display: block;
|
|
40
|
-
padding: 4px 8px;
|
|
41
|
-
color: @text-color;
|
|
42
|
-
}
|
|
1
|
+
@import '~@luck-helper/ui-design/es/style/themes/default.less';
|
|
2
|
+
|
|
3
|
+
.tree {
|
|
4
|
+
.nodeTitle {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
width: 100%;
|
|
8
|
+
user-select: none;
|
|
9
|
+
|
|
10
|
+
div {
|
|
11
|
+
flex: 1;
|
|
12
|
+
overflow-x: hidden;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
div.nodeTitleDisabled {
|
|
18
|
+
color: @text-color-secondary_luck;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div.nodeTitleDisabled:hover {
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:global {
|
|
27
|
+
.ant-tree-title {
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.classTreeOperates {
|
|
34
|
+
:global(.ant-popover-inner-content) {
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.rightMenu {
|
|
39
|
+
display: block;
|
|
40
|
+
padding: 4px 8px;
|
|
41
|
+
color: @text-color;
|
|
42
|
+
}
|
|
43
43
|
}
|
package/lib/helper/action.js
CHANGED
|
@@ -14,12 +14,12 @@ var _utils2 = require("../utils");
|
|
|
14
14
|
var _form = require("./form");
|
|
15
15
|
// 通用方法
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* 提交行为
|
|
19
|
-
* @param action 行为
|
|
20
|
-
* @param data 数据
|
|
21
|
-
* @param parmas 附件设置
|
|
22
|
-
* @param moduleData 当前模块信息
|
|
17
|
+
/**
|
|
18
|
+
* 提交行为
|
|
19
|
+
* @param action 行为
|
|
20
|
+
* @param data 数据
|
|
21
|
+
* @param parmas 附件设置
|
|
22
|
+
* @param moduleData 当前模块信息
|
|
23
23
|
*/
|
|
24
24
|
var doAction = exports.doAction = function doAction(action) {
|
|
25
25
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -188,5 +188,7 @@ var onBatchSubmitAction = exports.onBatchSubmitAction = function onBatchSubmitAc
|
|
|
188
188
|
callback: callback
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
+
}).catch(function () {
|
|
192
|
+
callback(false);
|
|
191
193
|
});
|
|
192
194
|
};
|
package/lib/helper/form.js
CHANGED
|
@@ -38,11 +38,11 @@ var defaultComName = exports.defaultComName = {
|
|
|
38
38
|
complex: 'complex'
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* 动态表单配置项转译
|
|
43
|
-
* @param {key string} keyStr
|
|
44
|
-
* @param {label string} labelStr
|
|
45
|
-
* @returns [{key,label}]
|
|
41
|
+
/**
|
|
42
|
+
* 动态表单配置项转译
|
|
43
|
+
* @param {key string} keyStr
|
|
44
|
+
* @param {label string} labelStr
|
|
45
|
+
* @returns [{key,label}]
|
|
46
46
|
*/
|
|
47
47
|
var splitStrToObj = exports.splitStrToObj = function splitStrToObj(keyStr, labelStr) {
|
|
48
48
|
var keys = keyStr && keyStr.length > 0 ? keyStr.split(',') : undefined;
|
|
@@ -59,11 +59,11 @@ var splitStrToObj = exports.splitStrToObj = function splitStrToObj(keyStr, label
|
|
|
59
59
|
return undefined;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
* 动态表单配置项转译
|
|
64
|
-
* @param {动态表单配置项} props
|
|
65
|
-
* @param {自定义动态表单配置项} customProps
|
|
66
|
-
* @returns {name: '',...}
|
|
62
|
+
/**
|
|
63
|
+
* 动态表单配置项转译
|
|
64
|
+
* @param {动态表单配置项} props
|
|
65
|
+
* @param {自定义动态表单配置项} customProps
|
|
66
|
+
* @returns {name: '',...}
|
|
67
67
|
*/
|
|
68
68
|
function translator() {
|
|
69
69
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -130,10 +130,10 @@ function translator() {
|
|
|
130
130
|
return _props;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
/**
|
|
134
|
-
* 删除自动移操作中的不可覆盖字段
|
|
135
|
-
* @param props
|
|
136
|
-
* @returns {{multiple}|*}
|
|
133
|
+
/**
|
|
134
|
+
* 删除自动移操作中的不可覆盖字段
|
|
135
|
+
* @param props
|
|
136
|
+
* @returns {{multiple}|*}
|
|
137
137
|
*/
|
|
138
138
|
function formatCustomProps(comType, props) {
|
|
139
139
|
var _props2, _props3;
|
package/lib/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/lib/locales/zh-CN.js
CHANGED
|
@@ -13,6 +13,7 @@ var _default = exports.default = {
|
|
|
13
13
|
"lc.form.validator.textNum": "个字符",
|
|
14
14
|
"lc.form.validator.numberBelowMin": "低于最小值",
|
|
15
15
|
"lc.form.validator.numberExceedMax": "超过最大值",
|
|
16
|
+
"luckda.lowcode.painter.I18n.empty": "敬请期待",
|
|
16
17
|
"luckda.lowcode.painter.panel.attrs": "属性",
|
|
17
18
|
"luckda.lowcode.painter.panel.css": "样式",
|
|
18
19
|
"luckda.lowcode.painter.panel.advance": "高级",
|
|
@@ -21,13 +22,22 @@ var _default = exports.default = {
|
|
|
21
22
|
"luckda.lowcode.modal": "模态视图层",
|
|
22
23
|
"luckda.lowcode.painter.I18n.search": "搜索文案",
|
|
23
24
|
"luckda.lowcode.painter.I18n.add": "新增文案",
|
|
24
|
-
"luckda.lowcode.
|
|
25
|
+
"luckda.lowcode.version.delete": "你确定要删除该历史版本吗?",
|
|
26
|
+
"luckda.lowcode.version.confirm.recover": "你确定要还原到该历史版本吗?",
|
|
27
|
+
"luckda.lowcode.version.recover": "还原版本",
|
|
28
|
+
"luckda.lowcode.error.pagedata": "页面数据错误",
|
|
29
|
+
"luckda.lowcode.version.placeholder.search": "请输入查询内容",
|
|
30
|
+
"app.base.operate.delete": "删除",
|
|
31
|
+
"luckda.lowcode.version.diff": "差异比对",
|
|
32
|
+
"luckda.lowcode.version.use": "使用",
|
|
33
|
+
"luckda.lowcode.version.add": "添加到历史版本",
|
|
34
|
+
"luckda.lowcode.version.placeholder.title": "请输入版本标题",
|
|
35
|
+
"luckda.lowcode.version.placeholder.note": "请输入版本描述",
|
|
25
36
|
"luckda.lowcode.design.toolbar.save.on": "保存中...",
|
|
26
37
|
"luckda.lowcode.design.toolbar.save.success": "保存成功",
|
|
27
38
|
"luckda.lowcode.design.toolbar.save.error": "保存失败",
|
|
28
39
|
"luckda.lowcode.design.toolbar.clear.tip": "清除提示",
|
|
29
40
|
"luckda.lowcode.design.toolbar.clear": "清除缓存",
|
|
30
|
-
"luckda.lowcode.error.pagedata": "页面数据错误",
|
|
31
41
|
"luckda.lowcode.not.mobile": "此功能暂未开放",
|
|
32
42
|
"luckda.lowcode.design.toolbar.pageAttrs": "页面属性",
|
|
33
43
|
"luckda.lowcode.design.toolbar.debug": "调试",
|
|
@@ -82,7 +92,6 @@ var _default = exports.default = {
|
|
|
82
92
|
"luckda.lowcode.painter.pageVars.add": "添加",
|
|
83
93
|
"luckda.lowcode.painter.panel-section.Layoutratio.err": "必须是数字或者数字加:号的组合",
|
|
84
94
|
"luckda.lowcode.painter.panel-section.Layoutratio.label": "列比例",
|
|
85
|
-
"luckda.lowcode.painter.panel-section.style-panel.sourceedit": "源码编辑",
|
|
86
95
|
"luckda.lowcode.painter.panel-section.impexp.expType.placeholder": "请选择自定义行为",
|
|
87
96
|
"luckda.lowcode.painter.panel-section.impexp.impType.placeholder": "请选择自定义行为",
|
|
88
97
|
"luckda.lowcode.painter.bindCondition": "绑定条件",
|
|
@@ -90,6 +99,11 @@ var _default = exports.default = {
|
|
|
90
99
|
"luckda.lowcode.painter.panel-section.fieldsSetting.field": "数据字段",
|
|
91
100
|
"luckda.lowcode.painter.panel-section.fieldsSetting.title": "标题",
|
|
92
101
|
"luckda.lowcode.painter.panel-section.fieldsSetting.batch": "批量设置",
|
|
102
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.small": "小",
|
|
103
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.default": "中",
|
|
104
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.large": "大",
|
|
105
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.full": "全屏",
|
|
106
|
+
"luckda.lowcode.painter.panel-section.dialogSize.size.custom": "定制",
|
|
93
107
|
"luckda.lowcode.painter.dateSetSelector.setting": "配置字段",
|
|
94
108
|
"luckda.lowcode.painter.dateSetSelector.sync": "同步数据",
|
|
95
109
|
"luckda.lowcode.painter.panel-section.complexPop.assisted": "辅助选择",
|
|
@@ -115,6 +129,7 @@ var _default = exports.default = {
|
|
|
115
129
|
"luckda.lowcode.painter.panel-section.style-panel.margin.down": "下间距",
|
|
116
130
|
"luckda.lowcode.painter.panel-section.style-panel.margin.left": "左间距",
|
|
117
131
|
"luckda.lowcode.painter.panel-section.style-panel.group-name": "样式设置",
|
|
132
|
+
"luckda.lowcode.painter.panel-section.style-panel.sourceedit": "源码编辑",
|
|
118
133
|
"luckda.lowcode.painter.panel-section.style-panel.width": "请输入宽度",
|
|
119
134
|
"luckda.lowcode.painter.panel-section.style-panel.height": "请输入高度",
|
|
120
135
|
"luckda.lowcode.painter.panel-section.style-panel.display": "显示",
|
|
@@ -174,6 +189,10 @@ var _default = exports.default = {
|
|
|
174
189
|
"luckda.lowcode.painter.panel-section.style-panel.border.width.ph": "线宽",
|
|
175
190
|
"luckda.lowcode.painter.panel-section.style-panel.border.color": "颜色",
|
|
176
191
|
"luckda.lowcode.painter.panel-section.style-panel.background": "背景",
|
|
192
|
+
"luckda.lowcode.painter.panel-section.jseditor.clear": "确定执行操作吗?",
|
|
193
|
+
"luckda.lowcode.painter.panel-section.jseditor.saveto": "保存为",
|
|
194
|
+
"app.base.operate.clear": "清空",
|
|
195
|
+
"app.base.operate.ok": "确定",
|
|
177
196
|
"luckda.lowcode.painter.panel-section.blocksEditor.auto": "表单",
|
|
178
197
|
"luckda.lowcode.painter.panel-section.blocksEditor.grid": "表格",
|
|
179
198
|
"luckda.lowcode.painter.panel-section.blocksEditor.writer": "行内编辑表格",
|