@luck-design-biz/luckda 0.0.25-10 → 0.0.25-12
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 +68 -68
- package/es/components/LdAutoForm/index.js +24 -2
- package/es/components/LdFormList/index.js +4 -2
- package/es/components/LdGrid/index.js +6 -5
- package/es/components/LdGridForm/index.js +5 -1
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.js +27 -5
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +15 -15
- package/es/helper/index.less +7 -7
- package/es/index.js +0 -1
- package/es/lowcode/constants/api-url.js +84 -84
- package/es/lowcode/constants/event-topics.js +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/launcher.js +5 -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/components-list.json +6 -6
- package/es/lowcode/engine/meta/fieldcolor.props.json +9 -3
- package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -1
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/es/lowcode/engine/meta/fielddate.props.json +7 -1
- package/es/lowcode/engine/meta/fielddict.props.json +7 -1
- package/es/lowcode/engine/meta/fieldeditor.props.json +7 -1
- package/es/lowcode/engine/meta/fieldgroup.props.json +7 -1
- package/es/lowcode/engine/meta/fieldnumber.props.json +8 -2
- package/es/lowcode/engine/meta/fieldradio.props.json +9 -3
- package/es/lowcode/engine/meta/fieldregion.props.json +9 -3
- package/es/lowcode/engine/meta/fieldselect.props.json +9 -3
- package/es/lowcode/engine/meta/fieldstring.props.default.json +0 -4
- package/es/lowcode/engine/meta/fieldstring.props.json +14 -12
- package/es/lowcode/engine/meta/fieldswitch.props.json +8 -2
- package/es/lowcode/engine/meta/fieldtextarea.props.json +11 -5
- package/es/lowcode/engine/meta/fieldupload.props.json +8 -2
- package/es/lowcode/engine/meta/fielduser.props.json +7 -1
- package/es/lowcode/engine/meta/fieldyear.props.json +26 -3
- package/es/lowcode/engine/meta/form.props.json +22 -2
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +17 -17
- package/es/lowcode/engine/meta/page.props.json +6 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +34 -34
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/diff.js +5 -5
- package/es/lowcode/engine/tools/helper.js +60 -5
- package/es/lowcode/engine/tools/usePageDataStore.js +10 -5
- package/es/lowcode/index.js +1 -4
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +4 -4
- package/es/lowcode/painter/DesignOperator.js +1 -1
- package/es/lowcode/painter/DesignToolbar.js +7 -4
- package/es/lowcode/painter/components/ActionBindModal.js +7 -1
- package/es/lowcode/painter/components/Collapse.js +26 -26
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- 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 -31
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +44 -34
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/es/lowcode/painter/panel-section/ComponentSelector.js +36 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/es/lowcode/painter/panel-section/Icon.js +23 -23
- package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/SplitDisplay.js +3 -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 +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +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/TreeRootEditor.js +10 -2
- package/es/lowcode/painter/style/action-bind-modal.less +102 -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 +158 -152
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +10 -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/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 +95 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/page-layout-display.less +27 -27
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/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/style/treedragdrop.less +19 -19
- package/es/lowcode/view/Canvas.js +20 -6
- package/es/lowcode/view/Page.js +3 -4
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +7 -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/meta.json +153 -153
- package/es/lowcode/view/lc-components/Dialog/index.js +19 -13
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +150 -150
- package/es/lowcode/view/lc-components/Drawer/index.js +15 -12
- package/es/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +131 -131
- package/es/lowcode/view/lc-components/FieldColor/meta.json +69 -63
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +45 -39
- package/es/lowcode/view/lc-components/FieldDate/meta.json +51 -45
- package/es/lowcode/view/lc-components/FieldDict/meta.json +50 -44
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +50 -44
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +79 -73
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +54 -48
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +26 -20
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +32 -26
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +64 -58
- package/es/lowcode/view/lc-components/FieldString/meta.json +64 -62
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +37 -31
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +55 -49
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +77 -71
- package/es/lowcode/view/lc-components/FieldUser/meta.json +88 -82
- package/es/lowcode/view/lc-components/FieldYear/meta.json +41 -20
- package/es/lowcode/view/lc-components/Form/index.js +118 -25
- package/es/lowcode/view/lc-components/Form/index.less +4 -4
- package/es/lowcode/view/lc-components/Form/meta.json +616 -605
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/es/lowcode/view/lc-components/ImEx/index.js +29 -29
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +113 -113
- package/es/lowcode/view/lc-components/Image/meta.json +114 -114
- package/es/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +12 -15
- package/es/lowcode/view/lc-components/JSX/index.js +5 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/es/lowcode/view/lc-components/Layout/index.js +19 -17
- 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 +3 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Page/meta.json +49 -49
- package/es/lowcode/view/lc-components/PageContent/index.js +3 -1
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/index.js +3 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -47
- package/es/lowcode/view/lc-components/Section/index.js +6 -3
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +107 -107
- package/es/lowcode/view/lc-components/Split/index.js +3 -0
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/index.js +160 -167
- package/es/lowcode/view/lc-components/Table/meta.json +405 -405
- package/es/lowcode/view/lc-components/Tabs/index.js +49 -36
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/index.js +3 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -66
- 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 +363 -363
- package/es/lowcode/view/lc-components/Wrapper.js +1 -0
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +84 -84
- package/es/lowcode/view/style/page.less +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 +1 -1
- package/lib/components/LDActions/index.less +68 -68
- package/lib/components/LdAutoForm/index.js +23 -1
- package/lib/components/LdFormList/index.js +4 -2
- package/lib/components/LdGrid/index.js +6 -5
- package/lib/components/LdGridForm/index.js +5 -1
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.js +25 -3
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +15 -15
- package/lib/helper/index.less +7 -7
- package/lib/index.js +1 -9
- package/lib/lowcode/constants/api-url.js +84 -84
- package/lib/lowcode/constants/event-topics.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/lib/lowcode/engine/launcher.js +11 -0
- 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/components-list.json +6 -6
- package/lib/lowcode/engine/meta/fieldcolor.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -1
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +7 -1
- package/lib/lowcode/engine/meta/fielddict.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldnumber.props.json +8 -2
- package/lib/lowcode/engine/meta/fieldradio.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldregion.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldselect.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +0 -4
- package/lib/lowcode/engine/meta/fieldstring.props.json +14 -12
- package/lib/lowcode/engine/meta/fieldswitch.props.json +8 -2
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +11 -5
- package/lib/lowcode/engine/meta/fieldupload.props.json +8 -2
- package/lib/lowcode/engine/meta/fielduser.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldyear.props.json +26 -3
- package/lib/lowcode/engine/meta/form.props.json +22 -2
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +17 -17
- package/lib/lowcode/engine/meta/page.props.json +6 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +34 -34
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/diff.js +5 -5
- package/lib/lowcode/engine/tools/helper.js +61 -4
- package/lib/lowcode/engine/tools/usePageDataStore.js +9 -4
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +4 -4
- package/lib/lowcode/painter/DesignOperator.js +1 -1
- package/lib/lowcode/painter/DesignToolbar.js +7 -4
- package/lib/lowcode/painter/components/ActionBindModal.js +6 -0
- package/lib/lowcode/painter/components/Collapse.js +26 -26
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- 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 -31
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +44 -34
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/lib/lowcode/painter/panel-section/ComponentSelector.js +43 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/lib/lowcode/painter/panel-section/Icon.js +23 -23
- package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +3 -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 +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +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/TreeRootEditor.js +10 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -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 +158 -152
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +10 -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/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 +95 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/page-layout-display.less +27 -27
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/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/style/treedragdrop.less +19 -19
- package/lib/lowcode/view/Canvas.js +20 -5
- package/lib/lowcode/view/Page.js +3 -4
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +7 -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/meta.json +153 -153
- package/lib/lowcode/view/lc-components/Dialog/index.js +19 -13
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +150 -150
- package/lib/lowcode/view/lc-components/Drawer/index.js +15 -12
- package/lib/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/lib/lowcode/view/lc-components/Drawer/meta.json +131 -131
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +69 -63
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +45 -39
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +51 -45
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +50 -44
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +50 -44
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +79 -73
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +54 -48
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +26 -20
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +32 -26
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +64 -58
- package/lib/lowcode/view/lc-components/FieldString/meta.json +64 -62
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +37 -31
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +55 -49
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +77 -71
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +88 -82
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +41 -20
- package/lib/lowcode/view/lc-components/Form/index.js +117 -24
- package/lib/lowcode/view/lc-components/Form/index.less +4 -4
- package/lib/lowcode/view/lc-components/Form/meta.json +616 -605
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/lib/lowcode/view/lc-components/ImEx/index.js +29 -29
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
- package/lib/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +13 -16
- package/lib/lowcode/view/lc-components/JSX/index.js +5 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/lib/lowcode/view/lc-components/Layout/index.js +19 -17
- 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 +3 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +49 -49
- package/lib/lowcode/view/lc-components/PageContent/index.js +2 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -47
- package/lib/lowcode/view/lc-components/Section/index.js +6 -3
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Split/index.js +3 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/index.js +160 -167
- package/lib/lowcode/view/lc-components/Table/meta.json +405 -405
- package/lib/lowcode/view/lc-components/Tabs/index.js +48 -35
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/index.js +3 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
- 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 +363 -363
- package/lib/lowcode/view/lc-components/Wrapper.js +1 -0
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +84 -84
- package/lib/lowcode/view/style/page.less +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 +1 -1
- package/lowcode.js +1 -1
- package/package.json +173 -173
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -18,6 +18,18 @@ var _ldBuilder = _interopRequireDefault(require("../../helper/ldBuilder"));
|
|
|
18
18
|
var _utils = require("../../utils");
|
|
19
19
|
var _Builder = require("../Builder");
|
|
20
20
|
var _excluded = ["columns", "resources", "actions", "doAction", "ldId", "dataSetKey", "filedsRewrite", "mainFormLdId", "mainDataSetKey", "onValueChange", "onQuery", "onAdd", "onUpdate", "moduleCode", "defaultDataSourceFormat", "ticketData", "relationKey", "fields", "setVerifyRules"];
|
|
21
|
+
var didMount = false;
|
|
22
|
+
var debounceFunc = (0, _lodash.debounce)(function (fields, changedValues, allValues, props) {
|
|
23
|
+
(0, _lodash.forEach)(changedValues, function (val, key) {
|
|
24
|
+
var _field$events;
|
|
25
|
+
var field = fields.find(function (f) {
|
|
26
|
+
return f.field === key;
|
|
27
|
+
});
|
|
28
|
+
if (field !== null && field !== void 0 && (_field$events = field.events) !== null && _field$events !== void 0 && _field$events.onValueChange) {
|
|
29
|
+
field.events.onValueChange(val, key, allValues, props);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}, 300);
|
|
21
33
|
var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
22
34
|
var _ref$columns = _ref.columns,
|
|
23
35
|
columns = _ref$columns === void 0 ? [] : _ref$columns,
|
|
@@ -138,6 +150,9 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
138
150
|
});
|
|
139
151
|
};
|
|
140
152
|
return /*#__PURE__*/_react.default.createElement(_FormList.AutoForm, (0, _extends2.default)({}, props, {
|
|
153
|
+
onDataLoaded: function onDataLoaded() {
|
|
154
|
+
didMount = true;
|
|
155
|
+
},
|
|
141
156
|
onQuery: (0, _objectSpread3.default)((0, _objectSpread3.default)({
|
|
142
157
|
api: _utils.behaviorCall,
|
|
143
158
|
get: function get(formData) {
|
|
@@ -157,7 +172,14 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
157
172
|
})
|
|
158
173
|
// onAdd={onOperate(onAdd, 'add')}
|
|
159
174
|
,
|
|
160
|
-
onUpdate: onOperate(onUpdate, 'update')
|
|
175
|
+
onUpdate: onOperate(onUpdate, 'update'),
|
|
176
|
+
formOption: {
|
|
177
|
+
onValuesChange: function onValuesChange(props, changedValues, allValues) {
|
|
178
|
+
if (didMount) {
|
|
179
|
+
debounceFunc(fields, changedValues, allValues, props);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
161
183
|
}, formConfig), basicItems);
|
|
162
184
|
};
|
|
163
185
|
var _default = exports.default = (0, _ldBuilder.default)(buildLdAutoForm);
|
|
@@ -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 _useTodo3 = _interopRequireDefault(require("../../lowcode/engine/tools/useTodo"));
|
|
34
|
-
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules"],
|
|
34
|
+
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules"],
|
|
35
35
|
_excluded2 = ["dataSets", "doAction", "resources"],
|
|
36
36
|
_excluded3 = ["id", "header", "title", "readOnly", "extraConfig", "renderTopLeft", "serial"],
|
|
37
37
|
_excluded4 = ["ldId", "initData", "overModel"];
|
|
@@ -53,6 +53,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
53
53
|
showSaveBtn = _ref.showSaveBtn,
|
|
54
54
|
saveBtnTitle = _ref.saveBtnTitle,
|
|
55
55
|
affixLayout = _ref.affixLayout,
|
|
56
|
+
getContainer = _ref.getContainer,
|
|
56
57
|
_ref$onValueChange = _ref.onValueChange,
|
|
57
58
|
onValueChange = _ref$onValueChange === void 0 ? function () {} : _ref$onValueChange,
|
|
58
59
|
afterSubmit = _ref.afterSubmit,
|
|
@@ -277,7 +278,8 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
277
278
|
renderLeft: renderAffixLeft,
|
|
278
279
|
renderRight: isCustomRenderAffixRight ? renderAffixRightCustom : renderAffixRight,
|
|
279
280
|
title: saveBtnTitle,
|
|
280
|
-
layout: affixLayout || defaultLayout
|
|
281
|
+
layout: affixLayout || defaultLayout,
|
|
282
|
+
getContainer: getContainer
|
|
281
283
|
}), (0, _lodash.sortBy)([].concat((0, _toConsumableArray2.default)(formList), (0, _toConsumableArray2.default)(formExtra)), function (o) {
|
|
282
284
|
var _o$props;
|
|
283
285
|
return o.order || ((_o$props = o.props) === null || _o$props === void 0 ? void 0 : _o$props.order);
|
|
@@ -104,10 +104,10 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
104
104
|
});
|
|
105
105
|
}, [batchOperations]);
|
|
106
106
|
|
|
107
|
-
/**
|
|
108
|
-
* 优先级
|
|
109
|
-
* columnsReset 重置columns,不受模块管理限制,写什么展示什么
|
|
110
|
-
* columnsRewrite 覆盖模块管理配置,是否展示以模块管理配置为主,自己可以用hide来隐藏某字段
|
|
107
|
+
/**
|
|
108
|
+
* 优先级
|
|
109
|
+
* columnsReset 重置columns,不受模块管理限制,写什么展示什么
|
|
110
|
+
* columnsRewrite 覆盖模块管理配置,是否展示以模块管理配置为主,自己可以用hide来隐藏某字段
|
|
111
111
|
*/
|
|
112
112
|
var _columns = (0, _ahooks.useCreation)(function () {
|
|
113
113
|
if (columnsReset) {
|
|
@@ -198,10 +198,11 @@ var LdIndex = function LdIndex(_ref2) {
|
|
|
198
198
|
var _getDvaApp2, _getDvaApp3;
|
|
199
199
|
(_getDvaApp2 = (0, _umi.getDvaApp)()) === null || _getDvaApp2 === void 0 || _getDvaApp2.unmodel(namespace);
|
|
200
200
|
if (!((_getDvaApp3 = (0, _umi.getDvaApp)()) !== null && _getDvaApp3 !== void 0 && _getDvaApp3._store.getState()[namespace])) {
|
|
201
|
-
var _getDvaApp4;
|
|
201
|
+
var _getDvaApp4, _props$pagination;
|
|
202
202
|
(_getDvaApp4 = (0, _umi.getDvaApp)()) === null || _getDvaApp4 === void 0 || _getDvaApp4.model((0, _model.default)(namespace, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
203
203
|
behaviorKey: isTreeGrid ? 'readTree' : 'readGrid'
|
|
204
204
|
}, overModel), {}, {
|
|
205
|
+
pageSize: overModel.pageSize || ((_props$pagination = props.pagination) === null || _props$pagination === void 0 ? void 0 : _props$pagination.pageSize) || props.pageSize,
|
|
205
206
|
isFlow: isTreeGrid || !!props.isFlow,
|
|
206
207
|
moduleCode: moduleCode,
|
|
207
208
|
dataSetKey: props.dataSetKey,
|
|
@@ -150,7 +150,11 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
150
150
|
var _submitData = data.map(function (item) {
|
|
151
151
|
return behaviorKey === 'add' ? (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _utils.dataFormat)(gridColumns, item)), {}, (0, _defineProperty2.default)({}, window.appConfig.constraintKeys.PRIMARY, null)) : (0, _utils.dataFormat)(gridColumns, item);
|
|
152
152
|
});
|
|
153
|
-
if (_onOperate !== null && _onOperate !== void 0 && _onOperate.post) return _onOperate.post(
|
|
153
|
+
if (_onOperate !== null && _onOperate !== void 0 && _onOperate.post) return _onOperate.post({
|
|
154
|
+
values: data,
|
|
155
|
+
submitData: _submitData,
|
|
156
|
+
behaviorKey: behaviorKey
|
|
157
|
+
}); // 以预设为主
|
|
154
158
|
return (0, _defineProperty2.default)({}, dataSetKey, (0, _defineProperty2.default)({}, "".concat(behaviorKey, "List"), _submitData));
|
|
155
159
|
}
|
|
156
160
|
});
|
|
@@ -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
|
+
}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
12
12
|
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
@@ -135,9 +135,32 @@ var LdTree = function LdTree(_ref) {
|
|
|
135
135
|
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
136
136
|
run((0, _objectSpread3.default)((0, _objectSpread3.default)((0, _objectSpread3.default)({}, params[0]), _params), defaultParams[0]));
|
|
137
137
|
});
|
|
138
|
+
var handleUpdateTree = function handleUpdateTree(type, nodes) {
|
|
139
|
+
var data = [];
|
|
140
|
+
var flattenData = (0, _utils.flattenTree)(dataSource);
|
|
141
|
+
switch (type) {
|
|
142
|
+
case 'delete':
|
|
143
|
+
data = (0, _lodash.differenceBy)(flattenData, nodes, window.appConfig.constraintKeys.PRIMARY);
|
|
144
|
+
break;
|
|
145
|
+
case 'add':
|
|
146
|
+
data = [].concat((0, _toConsumableArray2.default)(flattenData), (0, _toConsumableArray2.default)(nodes));
|
|
147
|
+
break;
|
|
148
|
+
default:
|
|
149
|
+
data = flattenData.map(function (i) {
|
|
150
|
+
var findNode = nodes.find(function (n) {
|
|
151
|
+
return n[PRIMARY] === i[PRIMARY];
|
|
152
|
+
});
|
|
153
|
+
if (findNode) return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, i), findNode);
|
|
154
|
+
return i;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
var treeData = dataToTreeFormat ? dataToTreeFormat(data) : (0, _utils.dataToTree)(data, null, window.appConfig.constraintKeys.PRIMARY, window.appConfig.constraintKeys.PARENT);
|
|
158
|
+
setDataSource(treeData);
|
|
159
|
+
};
|
|
138
160
|
(0, _react.useImperativeHandle)(wrapperRef, function () {
|
|
139
161
|
return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, treeRef.current), {}, {
|
|
140
|
-
onLdQuery: onLdQuery
|
|
162
|
+
onLdQuery: onLdQuery,
|
|
163
|
+
updateTree: handleUpdateTree
|
|
141
164
|
});
|
|
142
165
|
});
|
|
143
166
|
(0, _react.useLayoutEffect)(function () {
|
|
@@ -254,7 +277,6 @@ var LdTree = function LdTree(_ref) {
|
|
|
254
277
|
}, [readOnly, rootAdd, resources]);
|
|
255
278
|
var onLoadData = (0, _ahooks.useMemoizedFn)(function (treeNode) {
|
|
256
279
|
return new Promise(function (resolve) {
|
|
257
|
-
console.log('treeNode.props.children', treeNode.props.children);
|
|
258
280
|
if (treeNode.props.isLeaf) {
|
|
259
281
|
resolve();
|
|
260
282
|
return;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
.tree {
|
|
2
|
-
.nodeTitle {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
width: 100%;
|
|
6
|
-
user-select: none;
|
|
7
|
-
|
|
8
|
-
div {
|
|
9
|
-
flex: 1;
|
|
10
|
-
overflow-x: hidden;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
text-overflow: ellipsis;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
div.nodeTitleDisabled {
|
|
16
|
-
color: var(--luck-text-color-disabled);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
div.nodeTitleDisabled:hover {
|
|
20
|
-
cursor: not-allowed;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:global {
|
|
25
|
-
.ant-tree-title {
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.classTreeOperates {
|
|
32
|
-
:global(.ant-popover-inner-content) {
|
|
33
|
-
padding: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.rightMenu {
|
|
37
|
-
display: block;
|
|
38
|
-
padding: 4px 8px;
|
|
39
|
-
color: var(--luck-text-color-);
|
|
40
|
-
}
|
|
1
|
+
.tree {
|
|
2
|
+
.nodeTitle {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
user-select: none;
|
|
7
|
+
|
|
8
|
+
div {
|
|
9
|
+
flex: 1;
|
|
10
|
+
overflow-x: hidden;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
div.nodeTitleDisabled {
|
|
16
|
+
color: var(--luck-text-color-disabled);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
div.nodeTitleDisabled:hover {
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:global {
|
|
25
|
+
.ant-tree-title {
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.classTreeOperates {
|
|
32
|
+
:global(.ant-popover-inner-content) {
|
|
33
|
+
padding: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.rightMenu {
|
|
37
|
+
display: block;
|
|
38
|
+
padding: 4px 8px;
|
|
39
|
+
color: var(--luck-text-color-);
|
|
40
|
+
}
|
|
41
41
|
}
|
package/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
|
@@ -37,11 +37,11 @@ var defaultComName = exports.defaultComName = {
|
|
|
37
37
|
complex: 'complex'
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* 动态表单配置项转译
|
|
42
|
-
* @param {key string} keyStr
|
|
43
|
-
* @param {label string} labelStr
|
|
44
|
-
* @returns [{key,label}]
|
|
40
|
+
/**
|
|
41
|
+
* 动态表单配置项转译
|
|
42
|
+
* @param {key string} keyStr
|
|
43
|
+
* @param {label string} labelStr
|
|
44
|
+
* @returns [{key,label}]
|
|
45
45
|
*/
|
|
46
46
|
var splitStrToObj = exports.splitStrToObj = function splitStrToObj(keyStr, labelStr) {
|
|
47
47
|
var keys = keyStr && keyStr.length > 0 ? keyStr.split(',') : undefined;
|
|
@@ -58,11 +58,11 @@ var splitStrToObj = exports.splitStrToObj = function splitStrToObj(keyStr, label
|
|
|
58
58
|
return undefined;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
/**
|
|
62
|
-
* 动态表单配置项转译
|
|
63
|
-
* @param {动态表单配置项} props
|
|
64
|
-
* @param {自定义动态表单配置项} customProps
|
|
65
|
-
* @returns {name: '',...}
|
|
61
|
+
/**
|
|
62
|
+
* 动态表单配置项转译
|
|
63
|
+
* @param {动态表单配置项} props
|
|
64
|
+
* @param {自定义动态表单配置项} customProps
|
|
65
|
+
* @returns {name: '',...}
|
|
66
66
|
*/
|
|
67
67
|
function translator() {
|
|
68
68
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -129,10 +129,10 @@ function translator() {
|
|
|
129
129
|
return _props;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
/**
|
|
133
|
-
* 删除自动移操作中的不可覆盖字段
|
|
134
|
-
* @param props
|
|
135
|
-
* @returns {{multiple}|*}
|
|
132
|
+
/**
|
|
133
|
+
* 删除自动移操作中的不可覆盖字段
|
|
134
|
+
* @param props
|
|
135
|
+
* @returns {{multiple}|*}
|
|
136
136
|
*/
|
|
137
137
|
function formatCustomProps(comType, props) {
|
|
138
138
|
var _props2, _props3;
|
|
@@ -146,7 +146,7 @@ function formatCustomProps(comType, props) {
|
|
|
146
146
|
var propsSetting = ((_props_config$comType = _props_config.default[comType]) === null || _props_config$comType === void 0 ? void 0 : _props_config$comType.propsSetting) || [];
|
|
147
147
|
var propsEvents = ((_props_config$comType2 = _props_config.default[comType]) === null || _props_config$comType2 === void 0 ? void 0 : _props_config$comType2.propsEvents) || [];
|
|
148
148
|
props = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), (0, _lodash.pick)(setting, propsSetting)), (0, _lodash.pick)(setting.events, propsEvents)), {}, {
|
|
149
|
-
config: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props.config || {}), (0, _lodash.omit)(setting, [].concat((0, _toConsumableArray2.default)(propsSetting), ['events']))), (0, _lodash.omit)(setting.events, propsEvents))
|
|
149
|
+
config: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props.config || {}), setting.config || {}), (0, _lodash.omit)(setting, [].concat((0, _toConsumableArray2.default)(propsSetting), ['events']))), (0, _lodash.omit)(setting.events, propsEvents))
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
return props;
|
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/index.js
CHANGED
|
@@ -13,8 +13,7 @@ var _exportNames = {
|
|
|
13
13
|
buildLdGridForm: true,
|
|
14
14
|
LdInfoPanel: true,
|
|
15
15
|
LdCard: true,
|
|
16
|
-
LDActions: true
|
|
17
|
-
LdRuntimeCom: true
|
|
16
|
+
LDActions: true
|
|
18
17
|
};
|
|
19
18
|
Object.defineProperty(exports, "LDActions", {
|
|
20
19
|
enumerable: true,
|
|
@@ -46,12 +45,6 @@ Object.defineProperty(exports, "LdInfoPanel", {
|
|
|
46
45
|
return _LdInfoPanel.default;
|
|
47
46
|
}
|
|
48
47
|
});
|
|
49
|
-
Object.defineProperty(exports, "LdRuntimeCom", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function get() {
|
|
52
|
-
return _LdRuntimeCom.default;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
48
|
Object.defineProperty(exports, "LdTree", {
|
|
56
49
|
enumerable: true,
|
|
57
50
|
get: function get() {
|
|
@@ -85,7 +78,6 @@ var _LdGridForm = _interopRequireDefault(require("./components/LdGridForm"));
|
|
|
85
78
|
var _LdInfoPanel = _interopRequireDefault(require("./components/LdInfoPanel"));
|
|
86
79
|
var _LdCard = _interopRequireDefault(require("./components/LdCard"));
|
|
87
80
|
var _LDActions = _interopRequireDefault(require("./components/LDActions"));
|
|
88
|
-
var _LdRuntimeCom = _interopRequireDefault(require("./components/LdRuntimeCom"));
|
|
89
81
|
var _LdCom = require("./components/LdCom");
|
|
90
82
|
Object.keys(_LdCom).forEach(function (key) {
|
|
91
83
|
if (key === "default" || key === "__esModule") return;
|