@luck-design-biz/luckda 1.0.1-9 → 1.0.2
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/LdCard/index.js +154 -67
- package/es/components/LdGrid/index.js +4 -4
- 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 +10 -4
- package/es/lowcode/constants/api-url.js +87 -87
- package/es/lowcode/constants/index.js +1 -1
- package/es/lowcode/engine/meta/cardlist.props.default.json +27 -7
- package/es/lowcode/engine/meta/cardlist.props.json +254 -73
- package/es/lowcode/engine/meta/components-list.json +30 -0
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +83 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -2
- package/es/lowcode/engine/meta/iframe.props.json +3 -5
- package/es/lowcode/engine/meta/image.props.default.json +3 -3
- package/es/lowcode/engine/meta/image.props.json +51 -17
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +47 -29
- package/es/lowcode/engine/meta/link.props.default.json +1 -2
- package/es/lowcode/engine/meta/link.props.json +9 -10
- package/es/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/es/lowcode/engine/meta/tabs.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +50 -46
- 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/painter/Components.js +8 -3
- package/es/lowcode/painter/DesignOperator.js +10 -5
- package/es/lowcode/painter/DesignToolbar.js +78 -47
- package/es/lowcode/painter/Ribbon.js +14 -1
- package/es/lowcode/painter/components/ActionBindModal.js +3 -7
- 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 +144 -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 +28 -28
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +34 -33
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- 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/GroupClassSelector.js +55 -0
- 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/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 +3 -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/TabItems.js +1 -1
- package/es/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- 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 -166
- 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/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/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 +335 -154
- package/es/lowcode/view/lc-components/Dialog/index.js +13 -13
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/es/lowcode/view/lc-components/Dialog/meta.json +204 -204
- package/es/lowcode/view/lc-components/Drawer/index.js +13 -13
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -141
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -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 +129 -129
- package/es/lowcode/view/lc-components/Form/index.js +20 -20
- package/es/lowcode/view/lc-components/Form/meta.json +645 -645
- 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 +83 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +57 -7
- package/es/lowcode/view/lc-components/Iframe/meta.json +31 -33
- 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 -115
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -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 -113
- 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 +150 -152
- package/es/lowcode/view/lc-components/Table/meta.json +450 -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 +357 -357
- 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/lib/components/LDActions/index.less +70 -68
- package/lib/components/LdCard/index.js +153 -66
- package/lib/components/LdGrid/index.js +4 -4
- 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 +10 -4
- package/lib/lowcode/constants/api-url.js +87 -87
- package/lib/lowcode/constants/index.js +1 -1
- package/lib/lowcode/engine/meta/cardlist.props.default.json +27 -7
- package/lib/lowcode/engine/meta/cardlist.props.json +254 -73
- package/lib/lowcode/engine/meta/components-list.json +30 -0
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +83 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -2
- package/lib/lowcode/engine/meta/iframe.props.json +3 -5
- package/lib/lowcode/engine/meta/image.props.default.json +3 -3
- package/lib/lowcode/engine/meta/image.props.json +51 -17
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +47 -29
- package/lib/lowcode/engine/meta/link.props.default.json +1 -2
- package/lib/lowcode/engine/meta/link.props.json +9 -10
- package/lib/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/lib/lowcode/engine/meta/tabs.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +50 -46
- 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/painter/Components.js +8 -3
- package/lib/lowcode/painter/DesignOperator.js +10 -5
- package/lib/lowcode/painter/DesignToolbar.js +78 -47
- package/lib/lowcode/painter/Ribbon.js +14 -1
- package/lib/lowcode/painter/components/ActionBindModal.js +3 -7
- 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 +142 -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 +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +34 -33
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- 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/GroupClassSelector.js +63 -0
- 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/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 +3 -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/TabItems.js +1 -1
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- 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 -166
- 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/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/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 +335 -154
- package/lib/lowcode/view/lc-components/Dialog/index.js +13 -13
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -204
- package/lib/lowcode/view/lc-components/Drawer/index.js +13 -13
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -141
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -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 +129 -129
- package/lib/lowcode/view/lc-components/Form/index.js +20 -20
- package/lib/lowcode/view/lc-components/Form/meta.json +645 -645
- 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 +83 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +55 -5
- package/lib/lowcode/view/lc-components/Iframe/meta.json +31 -33
- 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 -115
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -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 -113
- 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 +150 -152
- package/lib/lowcode/view/lc-components/Table/meta.json +450 -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 +357 -357
- 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/lowcode.js +1 -1
- package/package.json +176 -175
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/painter/style/treedragdrop.less +0 -19
- package/lib/lowcode/painter/style/treedragdrop.less +0 -19
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
11
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
15
|
var _umi = require("umi");
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
17
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
18
|
var _antd = require("luck-design/antd");
|
|
17
19
|
var _luckDesign = require("luck-design");
|
|
@@ -22,39 +24,94 @@ var _ldBuilder = _interopRequireDefault(require("../../helper/ldBuilder"));
|
|
|
22
24
|
var _List = require("@luck-design-biz/base/List");
|
|
23
25
|
var _utils = require("@luck-design-biz/base/utils");
|
|
24
26
|
var _Component = require("@luck-design-biz/base/Component");
|
|
25
|
-
var _excluded = ["columns", "resources", "actions", "doAction", "afterInit", "namespace", "loading", "wrapperRef", "hasMore", "list", "detail", "params", "doQuery", "onQuery", "unclosableSet", "formatDataSource", "resultSet", "cardConfig", "cardActions", "onOperationsClick", "readOnly", "batchOperations", "readFilter"],
|
|
27
|
+
var _excluded = ["columns", "resources", "actions", "doAction", "afterInit", "namespace", "loading", "wrapperRef", "hasMore", "list", "detail", "params", "doQuery", "onQuery", "unclosableSet", "formatDataSource", "resultSet", "cardConfig", "maxActionsCount", "cardActions", "onOperationsClick", "readOnly", "batchOperations", "readFilter", "wrapper", "wrapperProps", "draggable", "onDrop", "onMount", "onUnmount"],
|
|
26
28
|
_excluded2 = ["ldId", "moduleCode", "suppressInit", "overModel", "afterQuery"];
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
actions = _ref.actions,
|
|
31
|
-
doAction = _ref.doAction,
|
|
32
|
-
afterInit = _ref.afterInit,
|
|
33
|
-
namespace = _ref.namespace,
|
|
34
|
-
loading = _ref.loading,
|
|
35
|
-
wrapperRef = _ref.wrapperRef,
|
|
36
|
-
hasMore = _ref.hasMore,
|
|
37
|
-
list = _ref.list,
|
|
38
|
-
detail = _ref.detail,
|
|
39
|
-
params = _ref.params,
|
|
40
|
-
doQuery = _ref.doQuery,
|
|
41
|
-
onQuery = _ref.onQuery,
|
|
42
|
-
unclosableSet = _ref.unclosableSet,
|
|
43
|
-
formatDataSource = _ref.formatDataSource,
|
|
44
|
-
resultSet = _ref.resultSet,
|
|
45
|
-
cardConfig = _ref.cardConfig,
|
|
46
|
-
cardActions = _ref.cardActions,
|
|
29
|
+
var Action = function Action(_ref) {
|
|
30
|
+
var data = _ref.data,
|
|
31
|
+
action = _ref.action,
|
|
47
32
|
onOperationsClick = _ref.onOperationsClick,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
33
|
+
_ref$inPopover = _ref.inPopover,
|
|
34
|
+
inPopover = _ref$inPopover === void 0 ? false : _ref$inPopover;
|
|
35
|
+
var style = (0, _objectSpread2.default)({
|
|
36
|
+
fontSize: '18px'
|
|
37
|
+
}, action.style);
|
|
38
|
+
if (action.disabled) style.color = 'var(--luck-color-disabled)';
|
|
39
|
+
if (inPopover) style = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
|
|
40
|
+
display: 'flex',
|
|
41
|
+
cursor: 'pointer'
|
|
42
|
+
});
|
|
43
|
+
if (action.render) return /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
style: style
|
|
45
|
+
}, action.render());
|
|
46
|
+
var renderDiv = function renderDiv(_title) {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
+
style: style,
|
|
49
|
+
onClick: function onClick(e) {
|
|
50
|
+
e.stopPropagation();
|
|
51
|
+
action.onClick ? action.onClick(data, e) : onOperationsClick(action.key, data, e);
|
|
52
|
+
}
|
|
53
|
+
}, action.iconNode ? action.iconNode : /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
54
|
+
type: action.icon
|
|
55
|
+
}), _title && /*#__PURE__*/_react.default.createElement("span", {
|
|
56
|
+
style: {
|
|
57
|
+
marginLeft: '4px',
|
|
58
|
+
fontSize: '12px'
|
|
59
|
+
}
|
|
60
|
+
}, _title));
|
|
61
|
+
};
|
|
62
|
+
if (inPopover) return renderDiv(action.title);
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
64
|
+
placement: "top",
|
|
65
|
+
title: action.title
|
|
66
|
+
}, renderDiv());
|
|
67
|
+
};
|
|
68
|
+
var LdCard = function LdCard(_ref2) {
|
|
69
|
+
var columns = _ref2.columns,
|
|
70
|
+
resources = _ref2.resources,
|
|
71
|
+
actions = _ref2.actions,
|
|
72
|
+
doAction = _ref2.doAction,
|
|
73
|
+
afterInit = _ref2.afterInit,
|
|
74
|
+
namespace = _ref2.namespace,
|
|
75
|
+
loading = _ref2.loading,
|
|
76
|
+
wrapperRef = _ref2.wrapperRef,
|
|
77
|
+
hasMore = _ref2.hasMore,
|
|
78
|
+
list = _ref2.list,
|
|
79
|
+
detail = _ref2.detail,
|
|
80
|
+
params = _ref2.params,
|
|
81
|
+
doQuery = _ref2.doQuery,
|
|
82
|
+
onQuery = _ref2.onQuery,
|
|
83
|
+
unclosableSet = _ref2.unclosableSet,
|
|
84
|
+
formatDataSource = _ref2.formatDataSource,
|
|
85
|
+
resultSet = _ref2.resultSet,
|
|
86
|
+
cardConfig = _ref2.cardConfig,
|
|
87
|
+
maxActionsCount = _ref2.maxActionsCount,
|
|
88
|
+
cardActions = _ref2.cardActions,
|
|
89
|
+
onOperationsClick = _ref2.onOperationsClick,
|
|
90
|
+
readOnly = _ref2.readOnly,
|
|
91
|
+
batchOperations = _ref2.batchOperations,
|
|
92
|
+
readFilter = _ref2.readFilter,
|
|
93
|
+
wrapper = _ref2.wrapper,
|
|
94
|
+
wrapperProps = _ref2.wrapperProps,
|
|
95
|
+
draggable = _ref2.draggable,
|
|
96
|
+
onDrop = _ref2.onDrop,
|
|
97
|
+
onMount = _ref2.onMount,
|
|
98
|
+
onUnmount = _ref2.onUnmount,
|
|
99
|
+
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
52
100
|
var cardRef = (0, _react.useRef)(null);
|
|
53
101
|
(0, _react.useEffect)(function () {
|
|
54
102
|
readFilter && readFilter(params);
|
|
55
103
|
}, [params]);
|
|
56
104
|
(0, _react.useImperativeHandle)(wrapperRef, function () {
|
|
57
105
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, cardRef.current), {}, {
|
|
106
|
+
getProps: function getProps() {
|
|
107
|
+
var _getDvaApp;
|
|
108
|
+
return {
|
|
109
|
+
apiUrl: (_getDvaApp = (0, _umi.getDvaApp)()) === null || _getDvaApp === void 0 || (_getDvaApp = _getDvaApp._store.getState()[namespace]) === null || _getDvaApp === void 0 ? void 0 : _getDvaApp.apiUrl,
|
|
110
|
+
filter: {
|
|
111
|
+
params: params
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
},
|
|
58
115
|
onLdQuery: function onLdQuery() {
|
|
59
116
|
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
60
117
|
doQuery({
|
|
@@ -64,6 +121,14 @@ var LdCard = function LdCard(_ref) {
|
|
|
64
121
|
}
|
|
65
122
|
});
|
|
66
123
|
});
|
|
124
|
+
(0, _react.useLayoutEffect)(function () {
|
|
125
|
+
onMount && onMount({
|
|
126
|
+
params: params
|
|
127
|
+
});
|
|
128
|
+
return function () {
|
|
129
|
+
onUnmount && onUnmount();
|
|
130
|
+
};
|
|
131
|
+
}, []);
|
|
67
132
|
var _batchOperations = (0, _ahooks.useCreation)(function () {
|
|
68
133
|
return (batchOperations || []).map(function (i) {
|
|
69
134
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, i), {}, {
|
|
@@ -74,6 +139,7 @@ var LdCard = function LdCard(_ref) {
|
|
|
74
139
|
var renderCard = (0, _ahooks.useMemoizedFn)(function (item) {
|
|
75
140
|
return /*#__PURE__*/_react.default.createElement(_List.Card, (0, _extends2.default)({}, cardConfig, {
|
|
76
141
|
dataSource: item,
|
|
142
|
+
showDragHandle: draggable,
|
|
77
143
|
operates: readOnly ? [] : item['__infuse_serial__'] || resources,
|
|
78
144
|
onCardClick: function onCardClick(_item, e) {
|
|
79
145
|
return onOperationsClick && onOperationsClick('read', _item, e);
|
|
@@ -81,33 +147,51 @@ var LdCard = function LdCard(_ref) {
|
|
|
81
147
|
onCardDelete: function onCardDelete(_item, e) {
|
|
82
148
|
return onOperationsClick && onOperationsClick('delete', _item, e);
|
|
83
149
|
},
|
|
84
|
-
actions: (0, _luckDesign.PermissionUtil)(cardActions.map(function (
|
|
85
|
-
return
|
|
86
|
-
key:
|
|
87
|
-
wanted:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
key: i.key,
|
|
93
|
-
wanted: i.resource || 'virtual',
|
|
94
|
-
placement: "top",
|
|
95
|
-
title: i.title
|
|
96
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
-
style: {
|
|
98
|
-
fontSize: '18px'
|
|
99
|
-
},
|
|
100
|
-
onClick: function onClick(e) {
|
|
101
|
-
e.stopPropagation();
|
|
102
|
-
i.onClick ? i.onClick(item, e) : onOperationsClick(i.key, item, e);
|
|
103
|
-
}
|
|
104
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
105
|
-
type: i.icon
|
|
106
|
-
})));
|
|
107
|
-
}), readOnly ? [] : [].concat((0, _toConsumableArray2.default)(item['__infuse_serial__'] || resources), ['virtual']))
|
|
150
|
+
actions: (0, _luckDesign.PermissionUtil)(cardActions.map(function (action) {
|
|
151
|
+
return /*#__PURE__*/_react.default.createElement(Action, {
|
|
152
|
+
key: action.key,
|
|
153
|
+
wanted: action.resource || 'virtual',
|
|
154
|
+
data: item,
|
|
155
|
+
action: action
|
|
156
|
+
});
|
|
157
|
+
}), readOnly ? [] : [].concat((0, _toConsumableArray2.default)(item['__infuse_serial__'] || resources), ['virtual']), false, 'right', maxActionsCount)
|
|
108
158
|
}));
|
|
109
159
|
});
|
|
110
|
-
|
|
160
|
+
var handleDragEnd = (0, _ahooks.useMemoizedFn)(function (evt) {
|
|
161
|
+
var oldIndex = evt.oldIndex,
|
|
162
|
+
newIndex = evt.newIndex;
|
|
163
|
+
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
164
|
+
var dragNodeProps = detail[list[oldIndex]];
|
|
165
|
+
var targetNodeProps = detail[list[newIndex]];
|
|
166
|
+
if (onDrop) onDrop({
|
|
167
|
+
dragNodeProps: dragNodeProps,
|
|
168
|
+
targetNodeProps: targetNodeProps,
|
|
169
|
+
evt: evt
|
|
170
|
+
});else {
|
|
171
|
+
doAction('drag', {
|
|
172
|
+
get: {
|
|
173
|
+
datasetCode: props.dataSetKey
|
|
174
|
+
},
|
|
175
|
+
post: {
|
|
176
|
+
fromId: dragNodeProps[PRIMARY],
|
|
177
|
+
toId: targetNodeProps[PRIMARY]
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
showConfirm: false,
|
|
181
|
+
callback: function callback(success) {
|
|
182
|
+
return success && doQuery();
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
var _ref3 = wrapperProps || {},
|
|
188
|
+
className = _ref3.className,
|
|
189
|
+
_wrapperProps = _ref3._wrapperProps;
|
|
190
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
191
|
+
ref: wrapper
|
|
192
|
+
}, _wrapperProps, {
|
|
193
|
+
className: (0, _classnames.default)('luck-card-list', (0, _defineProperty2.default)({}, className, !!className))
|
|
194
|
+
}), (0, _lodash.difference)(Object.keys(params), resultSet.invisibleSet || []).length > 0 && /*#__PURE__*/_react.default.createElement(_luckDesign.ResultSet, (0, _extends2.default)({
|
|
111
195
|
set: params,
|
|
112
196
|
onQuery: onQuery
|
|
113
197
|
}, resultSet, {
|
|
@@ -115,14 +199,16 @@ var LdCard = function LdCard(_ref) {
|
|
|
115
199
|
})), /*#__PURE__*/_react.default.createElement(_List.CardList, (0, _extends2.default)({
|
|
116
200
|
col: 4,
|
|
117
201
|
loading: loading,
|
|
118
|
-
renderCard: renderCard
|
|
202
|
+
renderCard: renderCard,
|
|
203
|
+
onDragEnd: handleDragEnd
|
|
119
204
|
}, props, {
|
|
120
205
|
operates: [].concat((0, _toConsumableArray2.default)(resources), ['virtual']),
|
|
121
206
|
modelName: namespace,
|
|
122
207
|
dataSource: formatDataSource(list, detail),
|
|
123
208
|
hasMore: !!hasMore,
|
|
124
209
|
batchOperations: _batchOperations,
|
|
125
|
-
ref: cardRef
|
|
210
|
+
ref: cardRef,
|
|
211
|
+
draggable: draggable
|
|
126
212
|
})));
|
|
127
213
|
};
|
|
128
214
|
var ForwardLdCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -130,23 +216,23 @@ var ForwardLdCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
130
216
|
wrapperRef: ref
|
|
131
217
|
}, props));
|
|
132
218
|
});
|
|
133
|
-
var LdIndex = function LdIndex(
|
|
134
|
-
var namespace =
|
|
135
|
-
moduleCode =
|
|
136
|
-
suppressInit =
|
|
137
|
-
overModel =
|
|
138
|
-
afterQuery =
|
|
139
|
-
props = (0, _objectWithoutProperties2.default)(
|
|
219
|
+
var LdIndex = function LdIndex(_ref4) {
|
|
220
|
+
var namespace = _ref4.ldId,
|
|
221
|
+
moduleCode = _ref4.moduleCode,
|
|
222
|
+
suppressInit = _ref4.suppressInit,
|
|
223
|
+
overModel = _ref4.overModel,
|
|
224
|
+
afterQuery = _ref4.afterQuery,
|
|
225
|
+
props = (0, _objectWithoutProperties2.default)(_ref4, _excluded2);
|
|
140
226
|
if ((0, _lodash.includes)(props.isTree, props.dataSetKey)) return (0, _utils.formatMessage)({
|
|
141
227
|
id: 'luckda.ldCard.notTres',
|
|
142
228
|
label: '此数据集为树形数据集,请选择非树形数据集'
|
|
143
229
|
});
|
|
144
230
|
var Component = (0, _ahooks.useCreation)(function () {
|
|
145
|
-
var
|
|
146
|
-
(
|
|
147
|
-
if (!((
|
|
148
|
-
var
|
|
149
|
-
(
|
|
231
|
+
var _getDvaApp2, _getDvaApp3;
|
|
232
|
+
(_getDvaApp2 = (0, _umi.getDvaApp)()) === null || _getDvaApp2 === void 0 || _getDvaApp2.unmodel(namespace);
|
|
233
|
+
if (!((_getDvaApp3 = (0, _umi.getDvaApp)()) !== null && _getDvaApp3 !== void 0 && _getDvaApp3._store.getState()[namespace])) {
|
|
234
|
+
var _getDvaApp4;
|
|
235
|
+
(_getDvaApp4 = (0, _umi.getDvaApp)()) === null || _getDvaApp4 === void 0 || _getDvaApp4.model((0, _model.default)(namespace, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
150
236
|
isFlow: !!props.isFlow
|
|
151
237
|
}, overModel), {}, {
|
|
152
238
|
dataSetKey: props.dataSetKey,
|
|
@@ -198,7 +284,8 @@ Index.defaultProps = {
|
|
|
198
284
|
},
|
|
199
285
|
cardActions: [],
|
|
200
286
|
overModel: {},
|
|
201
|
-
cardKey: window.appConfig.constraintKeys.PRIMARY
|
|
287
|
+
cardKey: window.appConfig.constraintKeys.PRIMARY,
|
|
288
|
+
maxActionsCount: 3
|
|
202
289
|
};
|
|
203
290
|
var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
204
291
|
return /*#__PURE__*/_react.default.createElement(Index, (0, _extends2.default)({
|
|
@@ -101,10 +101,10 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
101
101
|
});
|
|
102
102
|
}, [batchOperations]);
|
|
103
103
|
|
|
104
|
-
/**
|
|
105
|
-
* 优先级
|
|
106
|
-
* columnsReset 重置columns,不受模块管理限制,写什么展示什么
|
|
107
|
-
* columnsRewrite 覆盖模块管理配置,是否展示以模块管理配置为主,自己可以用hide来隐藏某字段
|
|
104
|
+
/**
|
|
105
|
+
* 优先级
|
|
106
|
+
* columnsReset 重置columns,不受模块管理限制,写什么展示什么
|
|
107
|
+
* columnsRewrite 覆盖模块管理配置,是否展示以模块管理配置为主,自己可以用hide来隐藏某字段
|
|
108
108
|
*/
|
|
109
109
|
var _columns = (0, _ahooks.useCreation)(function () {
|
|
110
110
|
if (columnsReset) {
|
|
@@ -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
|
+
}
|
|
@@ -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,6 +7,8 @@ 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": "低于最小值",
|
|
@@ -19,14 +21,17 @@ var _default = exports.default = {
|
|
|
19
21
|
"luckda.lowcode.modal": "模态视图层",
|
|
20
22
|
"luckda.lowcode.painter.I18n.search": "搜索文案",
|
|
21
23
|
"luckda.lowcode.painter.I18n.add": "新增文案",
|
|
24
|
+
"luckda.lowcode.painter.I18n.empty": "敬请期待",
|
|
22
25
|
"luckda.lowcode.design.toolbar.save.on": "保存中...",
|
|
23
26
|
"luckda.lowcode.design.toolbar.save.success": "保存成功",
|
|
24
27
|
"luckda.lowcode.design.toolbar.save.error": "保存失败",
|
|
25
28
|
"luckda.lowcode.design.toolbar.clear.tip": "清除提示",
|
|
26
29
|
"luckda.lowcode.design.toolbar.clear": "清除缓存",
|
|
27
30
|
"luckda.lowcode.error.pagedata": "页面数据错误",
|
|
31
|
+
"luckda.lowcode.not.mobile": "此功能暂未开放",
|
|
28
32
|
"luckda.lowcode.design.toolbar.pageAttrs": "页面属性",
|
|
29
|
-
"luckda.lowcode.design.toolbar.
|
|
33
|
+
"luckda.lowcode.design.toolbar.debug": "调试",
|
|
34
|
+
"luckda.lowcode.design.toolbar.code": "Schema面板",
|
|
30
35
|
"luckda.lowcode.design.toolbar.save": "保存",
|
|
31
36
|
"luckda.lowcode.design.toolbar.pagePreview": "页面预览",
|
|
32
37
|
"luckda.lowcode.design.toolbar.selectUser": "请选择模拟登录人",
|
|
@@ -85,6 +90,8 @@ var _default = exports.default = {
|
|
|
85
90
|
"luckda.lowcode.painter.panel-section.fieldsSetting.field": "数据字段",
|
|
86
91
|
"luckda.lowcode.painter.panel-section.fieldsSetting.title": "标题",
|
|
87
92
|
"luckda.lowcode.painter.panel-section.fieldsSetting.batch": "批量设置",
|
|
93
|
+
"luckda.lowcode.painter.dateSetSelector.setting": "配置字段",
|
|
94
|
+
"luckda.lowcode.painter.dateSetSelector.sync": "同步数据",
|
|
88
95
|
"luckda.lowcode.painter.panel-section.complexPop.assisted": "辅助选择",
|
|
89
96
|
"luckda.lowcode.painter.panel-section.complexPop.assistedGrid": "辅助弹窗显示字段",
|
|
90
97
|
"luckda.lowcode.painter.panel-section.complexPop.assistedGridFields": "展示区",
|
|
@@ -188,6 +195,7 @@ var _default = exports.default = {
|
|
|
188
195
|
"luckda.lowcode.painter.panel-section.actionEditor.destroy": "毁灭",
|
|
189
196
|
"luckda.lowcode.painter.panel-section.actionEditor.name": "名称",
|
|
190
197
|
"luckda.lowcode.painter.panel-section.actionEditor.name.placeholder": "请输入行为名称",
|
|
198
|
+
"luckda.lowcode.painter.panel-section.actionEditor.icon": "图标",
|
|
191
199
|
"luckda.lowcode.painter.panel-section.actionEditor.serial": "资源串",
|
|
192
200
|
"luckda.lowcode.painter.panel-section.actionEditor.serialEffect": "越权效果",
|
|
193
201
|
"luckda.lowcode.painter.panel-section.actionEditor.riskLevel": "风险等级",
|
|
@@ -219,7 +227,6 @@ var _default = exports.default = {
|
|
|
219
227
|
"luckda.lowcode.painter.advancePanel.events": "事件",
|
|
220
228
|
"luckda.lowcode.painter.advancePanel.addEventAction": "添加事件动作",
|
|
221
229
|
"luckda.lowcode.painter.actionBindModal.pageActions": "页面行为",
|
|
222
|
-
"luckda.lowcode.painter.actionBindModal.trigger": "触发器",
|
|
223
230
|
"luckda.lowcode.painter.actionBindModal.custom": "自定义动作",
|
|
224
231
|
"luckda.lowcode.painter.actionBindModal.coding": "动作编写",
|
|
225
232
|
"luckda.lowcode.painter.actionBindModal.bind": "绑定动作",
|
|
@@ -274,6 +281,5 @@ var _default = exports.default = {
|
|
|
274
281
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyType": "请选择校验规则",
|
|
275
282
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.errorMsg": "错误提示",
|
|
276
283
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.errorMsg": "请输入错误提示",
|
|
277
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑"
|
|
278
|
-
"luckda.lowcode.painter.components.fullscreen.tip": "全屏"
|
|
284
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑"
|
|
279
285
|
};
|