@luck-design-biz/luckda 1.0.1 → 1.0.2-10
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.less +70 -68
- package/es/components/LdAutoForm/index.js +2 -1
- package/es/components/LdCard/index.js +154 -67
- package/es/components/LdFormList/index.js +20 -6
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.js +40 -24
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.js +14 -8
- package/es/components/LdTree/index.less +42 -40
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +1 -1
- package/es/locales/zh-CN.js +27 -6
- package/es/lowcode/constants/api-url.js +388 -267
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/constants/index.js +1 -1
- 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/cardlist.props.default.json +27 -6
- package/es/lowcode/engine/meta/cardlist.props.json +252 -72
- package/es/lowcode/engine/meta/components-list.json +12 -108
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +74 -18
- package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/es/lowcode/engine/meta/drawer.props.json +144 -24
- 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.default.json +14 -3
- package/es/lowcode/engine/meta/form.props.json +52 -28
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +82 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/es/lowcode/engine/meta/iframe.props.json +3 -4
- package/es/lowcode/engine/meta/image.props.default.json +3 -2
- package/es/lowcode/engine/meta/image.props.json +51 -16
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +49 -31
- 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/link.props.default.json +1 -1
- package/es/lowcode/engine/meta/link.props.json +9 -9
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/table.props.json +1 -8
- package/es/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/es/lowcode/engine/meta/tabs.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.json +3 -7
- package/es/lowcode/engine/provider/ContextProvider/index.js +50 -46
- package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +82 -2
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/helper.js +21 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/es/lowcode/painter/Components.js +8 -3
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +31 -16
- package/es/lowcode/painter/DesignToolbar.js +94 -64
- package/es/lowcode/painter/History.js +300 -0
- package/es/lowcode/painter/Panel.js +1 -1
- package/es/lowcode/painter/Ribbon.js +50 -1
- package/es/lowcode/painter/components/ActionBindModal.js +3 -7
- package/es/lowcode/painter/components/AdvancePanel.js +29 -36
- 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 +151 -37
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +29 -6
- package/es/lowcode/painter/components/DragDrop/Overlay.js +5 -2
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +7 -4
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +29 -29
- 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 +42 -33
- 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 +31 -3
- package/es/lowcode/painter/components/field-setting/index.js +26 -12
- package/es/lowcode/painter/expect.js +27 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +20 -2
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/es/lowcode/painter/panel-section/ComplexPop.js +1 -1
- package/es/lowcode/painter/panel-section/DataSetSelector.js +14 -3
- package/es/lowcode/painter/panel-section/FieldState.js +11 -2
- package/es/lowcode/painter/panel-section/FieldsSetting.js +2 -2
- package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
- 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 +143 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/PageVars.js +1 -1
- 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 -20
- 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/TabItems.js +1 -1
- package/es/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- 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 -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 +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 +179 -160
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +56 -10
- 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 -95
- package/es/lowcode/painter/style/number-input.less +19 -17
- package/es/lowcode/painter/style/outline.less +30 -28
- 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 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +100 -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 +7 -5
- 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 -0
- package/es/lowcode/painter/svg/expect.svg +9 -0
- 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 +481 -12
- package/es/lowcode/view/lc-components/CardList/meta.json +333 -153
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
- package/es/lowcode/view/lc-components/Dialog/index.js +28 -18
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/es/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
- package/es/lowcode/view/lc-components/Drawer/index.js +149 -34
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -131
- 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/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Form/index.js +65 -48
- package/es/lowcode/view/lc-components/Form/meta.json +629 -609
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/index.js +212 -0
- package/es/lowcode/view/lc-components/GroupTree/index.less +12 -0
- package/es/lowcode/view/lc-components/GroupTree/meta.json +82 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +57 -7
- package/es/lowcode/view/lc-components/Iframe/meta.json +31 -32
- 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.js +82 -6
- package/es/lowcode/view/lc-components/Image/index.less +27 -0
- package/es/lowcode/view/lc-components/Image/meta.json +149 -114
- 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.js +53 -5
- package/es/lowcode/view/lc-components/Link/index.less +15 -0
- 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/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/index.js +152 -153
- package/es/lowcode/view/lc-components/Table/meta.json +443 -450
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +40 -4
- package/es/lowcode/view/lc-components/Tabs/index.js +24 -24
- 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 +117 -115
- 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 +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +15 -15
- package/es/utils/form.js +21 -21
- package/es/utils/grid.js +3 -3
- package/lib/components/LDActions/index.less +70 -68
- package/lib/components/LdAutoForm/index.js +2 -1
- package/lib/components/LdCard/index.js +153 -66
- package/lib/components/LdFormList/index.js +19 -5
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.js +40 -24
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.js +14 -8
- package/lib/components/LdTree/index.less +42 -40
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +2 -2
- package/lib/locales/zh-CN.js +27 -6
- package/lib/lowcode/constants/api-url.js +389 -268
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/constants/index.js +1 -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/cardlist.props.default.json +27 -6
- package/lib/lowcode/engine/meta/cardlist.props.json +252 -72
- package/lib/lowcode/engine/meta/components-list.json +12 -108
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +74 -18
- package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/lib/lowcode/engine/meta/drawer.props.json +144 -24
- 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.default.json +14 -3
- package/lib/lowcode/engine/meta/form.props.json +52 -28
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +82 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/lib/lowcode/engine/meta/iframe.props.json +3 -4
- package/lib/lowcode/engine/meta/image.props.default.json +3 -2
- package/lib/lowcode/engine/meta/image.props.json +51 -16
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +49 -31
- 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/link.props.default.json +1 -1
- package/lib/lowcode/engine/meta/link.props.json +9 -9
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/table.props.json +1 -8
- package/lib/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/lib/lowcode/engine/meta/tabs.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.json +3 -7
- package/lib/lowcode/engine/provider/ContextProvider/index.js +50 -46
- package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +83 -3
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/helper.js +22 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/lib/lowcode/painter/Components.js +8 -3
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +31 -16
- package/lib/lowcode/painter/DesignToolbar.js +94 -64
- package/lib/lowcode/painter/History.js +308 -0
- package/lib/lowcode/painter/Panel.js +1 -1
- package/lib/lowcode/painter/Ribbon.js +50 -1
- package/lib/lowcode/painter/components/ActionBindModal.js +3 -7
- package/lib/lowcode/painter/components/AdvancePanel.js +28 -35
- 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 +149 -35
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +27 -4
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +5 -2
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +7 -4
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +29 -29
- 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 +42 -33
- 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 +30 -2
- package/lib/lowcode/painter/components/field-setting/index.js +26 -12
- package/lib/lowcode/painter/expect.js +34 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +19 -1
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/lib/lowcode/painter/panel-section/ComplexPop.js +1 -1
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +14 -3
- package/lib/lowcode/painter/panel-section/FieldState.js +11 -2
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +2 -2
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
- 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 +151 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/PageVars.js +1 -1
- 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 -20
- 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/TabItems.js +1 -1
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- 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 -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 +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 +179 -160
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +56 -10
- 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 -95
- package/lib/lowcode/painter/style/number-input.less +19 -17
- package/lib/lowcode/painter/style/outline.less +30 -28
- 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 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +100 -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 +7 -5
- 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 -0
- package/lib/lowcode/painter/svg/expect.svg +9 -0
- 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 +480 -11
- package/lib/lowcode/view/lc-components/CardList/meta.json +333 -153
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
- package/lib/lowcode/view/lc-components/Dialog/index.js +28 -18
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
- package/lib/lowcode/view/lc-components/Drawer/index.js +148 -33
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -131
- 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/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js +64 -47
- package/lib/lowcode/view/lc-components/Form/meta.json +629 -609
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.js +220 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.less +12 -0
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +82 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +55 -5
- package/lib/lowcode/view/lc-components/Iframe/meta.json +31 -32
- 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.js +80 -4
- package/lib/lowcode/view/lc-components/Image/index.less +27 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +149 -114
- 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.js +52 -4
- package/lib/lowcode/view/lc-components/Link/index.less +15 -0
- 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/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/index.js +152 -153
- package/lib/lowcode/view/lc-components/Table/meta.json +443 -450
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +38 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +24 -24
- 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 +116 -114
- 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 +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +15 -15
- package/lib/utils/form.js +21 -21
- package/lib/utils/grid.js +2 -2
- package/lowcode.js +1 -1
- package/package.json +176 -175
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -49
- package/es/lowcode/painter/style/treedragdrop.less +0 -19
- package/es/lowcode/view/errorBoundary.js +0 -61
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -57
- package/lib/lowcode/painter/style/treedragdrop.less +0 -19
- package/lib/lowcode/view/errorBoundary.js +0 -69
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
|
@@ -21,10 +21,10 @@ var _antd = require("luck-design/antd");
|
|
|
21
21
|
var _luckDesign = require("luck-design");
|
|
22
22
|
var _utils = require("@luck-design-biz/base/utils");
|
|
23
23
|
var _base = require("@luck-design-biz/base");
|
|
24
|
-
var _ldBuilder =
|
|
24
|
+
var _ldBuilder = _interopRequireWildcard(require("../../helper/ldBuilder"));
|
|
25
25
|
var _utils2 = require("../../utils");
|
|
26
26
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
27
|
-
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", "
|
|
27
|
+
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", "wrapper", "wrapperProps", "doubleClickExpand", "onNodeDoubleClick", "width", "height", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "treeNodeIcon", "asyncLoad", "parentKey", "onMount", "onUnmount", "onDataSetChange", "onTreeNodeRender", "onlyRoot"],
|
|
28
28
|
_excluded2 = ["0"],
|
|
29
29
|
_excluded3 = ["onClick"];
|
|
30
30
|
var _window$appConfig$con = window.appConfig.constraintKeys,
|
|
@@ -67,7 +67,8 @@ var LdTree = function LdTree(_ref) {
|
|
|
67
67
|
isTree = _ref.isTree,
|
|
68
68
|
service = _ref.service,
|
|
69
69
|
dataToTreeFormat = _ref.dataToTreeFormat,
|
|
70
|
-
|
|
70
|
+
wrapper = _ref.wrapper,
|
|
71
|
+
wrapperProps = _ref.wrapperProps,
|
|
71
72
|
doubleClickExpand = _ref.doubleClickExpand,
|
|
72
73
|
onNodeDoubleClick = _ref.onNodeDoubleClick,
|
|
73
74
|
width = _ref.width,
|
|
@@ -84,10 +85,14 @@ var LdTree = function LdTree(_ref) {
|
|
|
84
85
|
onTreeNodeRender = _ref.onTreeNodeRender,
|
|
85
86
|
onlyRoot = _ref.onlyRoot,
|
|
86
87
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
87
|
-
if (!(0, _lodash.includes)(isTree, dataSetKey)) return (
|
|
88
|
+
if (!(0, _lodash.includes)(isTree, dataSetKey)) return /*#__PURE__*/_react.default.createElement(_ldBuilder.ErrorWrapper, {
|
|
89
|
+
ref: wrapper,
|
|
90
|
+
className: className,
|
|
91
|
+
style: props.style
|
|
92
|
+
}, (0, _utils.formatMessage)({
|
|
88
93
|
id: 'luckda.ldTree.notTrees',
|
|
89
94
|
label: '此数据集非树形数据集,请选择树形数据集'
|
|
90
|
-
});
|
|
95
|
+
}));
|
|
91
96
|
var _useState = (0, _react.useState)(null),
|
|
92
97
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
93
98
|
dataSource = _useState2[0],
|
|
@@ -327,19 +332,20 @@ var LdTree = function LdTree(_ref) {
|
|
|
327
332
|
loadData: onLoadData
|
|
328
333
|
} : {};
|
|
329
334
|
}, []);
|
|
330
|
-
return /*#__PURE__*/_react.default.createElement(_base.TreeBox, {
|
|
335
|
+
return /*#__PURE__*/_react.default.createElement(_base.TreeBox, (0, _extends2.default)({
|
|
331
336
|
suppressTitle: !title,
|
|
332
337
|
title: title,
|
|
333
338
|
loading: loading,
|
|
334
339
|
id: ldId,
|
|
335
340
|
onAdd: onAdd,
|
|
336
341
|
className: className,
|
|
337
|
-
ref:
|
|
342
|
+
ref: wrapper
|
|
343
|
+
}, wrapperProps, {
|
|
338
344
|
style: {
|
|
339
345
|
width: width,
|
|
340
346
|
height: height
|
|
341
347
|
}
|
|
342
|
-
}, dataSource && /*#__PURE__*/_react.default.createElement(_luckDesign.LuckTree, (0, _extends2.default)({
|
|
348
|
+
}), dataSource && /*#__PURE__*/_react.default.createElement(_luckDesign.LuckTree, (0, _extends2.default)({
|
|
343
349
|
blockNode: true,
|
|
344
350
|
className: (0, _classnames.default)(_index.default.tree, (0, _defineProperty2.default)({}, className, !!treeClassName)),
|
|
345
351
|
draggable: !readOnly && draggable,
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
+
}
|
|
41
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] : {};
|
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/helper/ldBuilder.js
CHANGED
|
@@ -5,13 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = void 0;
|
|
8
|
+
exports.default = exports.ErrorWrapper = void 0;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
12
|
var _Builder = require("../components/Builder");
|
|
13
13
|
var _utils = require("@luck-design-biz/base/utils");
|
|
14
|
-
var ErrorWrapper = _styledComponents.default.span.withConfig({
|
|
14
|
+
var ErrorWrapper = exports.ErrorWrapper = _styledComponents.default.span.withConfig({
|
|
15
15
|
displayName: "ErrorWrapper",
|
|
16
16
|
componentId: "luckda-6530__sc-ek28r3-0"
|
|
17
17
|
})(["display:inline-block;width:100%;height:auto;padding:24px 16px;color:#ff4d4f;"]);
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -7,10 +7,13 @@ exports.default = void 0;
|
|
|
7
7
|
var _default = exports.default = {
|
|
8
8
|
"luckda.lowcode.view.lc-components.label.all": "全部",
|
|
9
9
|
"luckda.lowcode.painter.import": "导入",
|
|
10
|
+
"luckda.lowcode.painter.components.fullscreen-exit.tip": "退出全屏",
|
|
11
|
+
"luckda.lowcode.painter.components.fullscreen.tip": "全屏",
|
|
10
12
|
"lc.form.validator.maxLength": "字数不得超过",
|
|
11
13
|
"lc.form.validator.textNum": "个字符",
|
|
12
14
|
"lc.form.validator.numberBelowMin": "低于最小值",
|
|
13
15
|
"lc.form.validator.numberExceedMax": "超过最大值",
|
|
16
|
+
"luckda.lowcode.painter.I18n.empty": "敬请期待",
|
|
14
17
|
"luckda.lowcode.painter.panel.attrs": "属性",
|
|
15
18
|
"luckda.lowcode.painter.panel.css": "样式",
|
|
16
19
|
"luckda.lowcode.painter.panel.advance": "高级",
|
|
@@ -19,14 +22,26 @@ var _default = exports.default = {
|
|
|
19
22
|
"luckda.lowcode.modal": "模态视图层",
|
|
20
23
|
"luckda.lowcode.painter.I18n.search": "搜索文案",
|
|
21
24
|
"luckda.lowcode.painter.I18n.add": "新增文案",
|
|
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": "请输入版本描述",
|
|
22
36
|
"luckda.lowcode.design.toolbar.save.on": "保存中...",
|
|
23
37
|
"luckda.lowcode.design.toolbar.save.success": "保存成功",
|
|
24
38
|
"luckda.lowcode.design.toolbar.save.error": "保存失败",
|
|
25
39
|
"luckda.lowcode.design.toolbar.clear.tip": "清除提示",
|
|
26
40
|
"luckda.lowcode.design.toolbar.clear": "清除缓存",
|
|
27
|
-
"luckda.lowcode.
|
|
41
|
+
"luckda.lowcode.not.mobile": "此功能暂未开放",
|
|
28
42
|
"luckda.lowcode.design.toolbar.pageAttrs": "页面属性",
|
|
29
|
-
"luckda.lowcode.design.toolbar.
|
|
43
|
+
"luckda.lowcode.design.toolbar.debug": "调试",
|
|
44
|
+
"luckda.lowcode.design.toolbar.code": "Schema面板",
|
|
30
45
|
"luckda.lowcode.design.toolbar.save": "保存",
|
|
31
46
|
"luckda.lowcode.design.toolbar.pagePreview": "页面预览",
|
|
32
47
|
"luckda.lowcode.design.toolbar.selectUser": "请选择模拟登录人",
|
|
@@ -77,7 +92,6 @@ var _default = exports.default = {
|
|
|
77
92
|
"luckda.lowcode.painter.pageVars.add": "添加",
|
|
78
93
|
"luckda.lowcode.painter.panel-section.Layoutratio.err": "必须是数字或者数字加:号的组合",
|
|
79
94
|
"luckda.lowcode.painter.panel-section.Layoutratio.label": "列比例",
|
|
80
|
-
"luckda.lowcode.painter.panel-section.style-panel.sourceedit": "源码编辑",
|
|
81
95
|
"luckda.lowcode.painter.panel-section.impexp.expType.placeholder": "请选择自定义行为",
|
|
82
96
|
"luckda.lowcode.painter.panel-section.impexp.impType.placeholder": "请选择自定义行为",
|
|
83
97
|
"luckda.lowcode.painter.bindCondition": "绑定条件",
|
|
@@ -85,6 +99,8 @@ var _default = exports.default = {
|
|
|
85
99
|
"luckda.lowcode.painter.panel-section.fieldsSetting.field": "数据字段",
|
|
86
100
|
"luckda.lowcode.painter.panel-section.fieldsSetting.title": "标题",
|
|
87
101
|
"luckda.lowcode.painter.panel-section.fieldsSetting.batch": "批量设置",
|
|
102
|
+
"luckda.lowcode.painter.dateSetSelector.setting": "配置字段",
|
|
103
|
+
"luckda.lowcode.painter.dateSetSelector.sync": "同步数据",
|
|
88
104
|
"luckda.lowcode.painter.panel-section.complexPop.assisted": "辅助选择",
|
|
89
105
|
"luckda.lowcode.painter.panel-section.complexPop.assistedGrid": "辅助弹窗显示字段",
|
|
90
106
|
"luckda.lowcode.painter.panel-section.complexPop.assistedGridFields": "展示区",
|
|
@@ -108,6 +124,7 @@ var _default = exports.default = {
|
|
|
108
124
|
"luckda.lowcode.painter.panel-section.style-panel.margin.down": "下间距",
|
|
109
125
|
"luckda.lowcode.painter.panel-section.style-panel.margin.left": "左间距",
|
|
110
126
|
"luckda.lowcode.painter.panel-section.style-panel.group-name": "样式设置",
|
|
127
|
+
"luckda.lowcode.painter.panel-section.style-panel.sourceedit": "源码编辑",
|
|
111
128
|
"luckda.lowcode.painter.panel-section.style-panel.width": "请输入宽度",
|
|
112
129
|
"luckda.lowcode.painter.panel-section.style-panel.height": "请输入高度",
|
|
113
130
|
"luckda.lowcode.painter.panel-section.style-panel.display": "显示",
|
|
@@ -167,6 +184,8 @@ var _default = exports.default = {
|
|
|
167
184
|
"luckda.lowcode.painter.panel-section.style-panel.border.width.ph": "线宽",
|
|
168
185
|
"luckda.lowcode.painter.panel-section.style-panel.border.color": "颜色",
|
|
169
186
|
"luckda.lowcode.painter.panel-section.style-panel.background": "背景",
|
|
187
|
+
"luckda.lowcode.painter.panel-section.jseditor.saveto": "保存为",
|
|
188
|
+
"app.base.operate.ok": "确定",
|
|
170
189
|
"luckda.lowcode.painter.panel-section.blocksEditor.auto": "表单",
|
|
171
190
|
"luckda.lowcode.painter.panel-section.blocksEditor.grid": "表格",
|
|
172
191
|
"luckda.lowcode.painter.panel-section.blocksEditor.writer": "行内编辑表格",
|
|
@@ -188,6 +207,7 @@ var _default = exports.default = {
|
|
|
188
207
|
"luckda.lowcode.painter.panel-section.actionEditor.destroy": "毁灭",
|
|
189
208
|
"luckda.lowcode.painter.panel-section.actionEditor.name": "名称",
|
|
190
209
|
"luckda.lowcode.painter.panel-section.actionEditor.name.placeholder": "请输入行为名称",
|
|
210
|
+
"luckda.lowcode.painter.panel-section.actionEditor.icon": "图标",
|
|
191
211
|
"luckda.lowcode.painter.panel-section.actionEditor.serial": "资源串",
|
|
192
212
|
"luckda.lowcode.painter.panel-section.actionEditor.serialEffect": "越权效果",
|
|
193
213
|
"luckda.lowcode.painter.panel-section.actionEditor.riskLevel": "风险等级",
|
|
@@ -219,7 +239,6 @@ var _default = exports.default = {
|
|
|
219
239
|
"luckda.lowcode.painter.advancePanel.events": "事件",
|
|
220
240
|
"luckda.lowcode.painter.advancePanel.addEventAction": "添加事件动作",
|
|
221
241
|
"luckda.lowcode.painter.actionBindModal.pageActions": "页面行为",
|
|
222
|
-
"luckda.lowcode.painter.actionBindModal.trigger": "触发器",
|
|
223
242
|
"luckda.lowcode.painter.actionBindModal.custom": "自定义动作",
|
|
224
243
|
"luckda.lowcode.painter.actionBindModal.coding": "动作编写",
|
|
225
244
|
"luckda.lowcode.painter.actionBindModal.bind": "绑定动作",
|
|
@@ -233,12 +252,15 @@ var _default = exports.default = {
|
|
|
233
252
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.none": "不固定",
|
|
234
253
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.left": "左",
|
|
235
254
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.right": "右",
|
|
255
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.single": "单行",
|
|
256
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.bulk": "批量",
|
|
236
257
|
"luckda.lowcode.painter.delete.tip": "确定删除吗?",
|
|
237
258
|
"luckda.lowcode.painter.panel-section.fieldsSetting.width": "列宽",
|
|
238
259
|
"luckda.lowcode.painter.panel-section.fieldsSetting.align": "内容对齐",
|
|
239
260
|
"luckda.lowcode.painter.panel-section.fieldsSetting.headerAlign": "表头对齐",
|
|
240
261
|
"luckda.lowcode.painter.panel-section.fieldsSetting.pinned": "固定列",
|
|
241
262
|
"luckda.lowcode.painter.panel-section.fieldsSetting.tip": "过长提示",
|
|
263
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode": "修改方式",
|
|
242
264
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldColumn": "占列数",
|
|
243
265
|
"luckda.lowcode.painter.panel-section.fieldsSetting.isEqual": "唯一校验",
|
|
244
266
|
"luckda.lowcode.painter.panel-section.fieldsSetting.required": "是否必填",
|
|
@@ -271,6 +293,5 @@ var _default = exports.default = {
|
|
|
271
293
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyType": "请选择校验规则",
|
|
272
294
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.errorMsg": "错误提示",
|
|
273
295
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.errorMsg": "请输入错误提示",
|
|
274
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑"
|
|
275
|
-
"luckda.lowcode.painter.components.fullscreen.tip": "全屏"
|
|
296
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑"
|
|
276
297
|
};
|