@luck-design-biz/luckda 1.0.1-11 → 1.0.1-13
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/LdCard/index.js +147 -67
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.less +7 -7
- 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/locales/zh-CN.js +4 -2
- package/es/lowcode/constants/api-url.js +87 -87
- package/es/lowcode/engine/meta/cardlist.props.default.json +27 -7
- package/es/lowcode/engine/meta/cardlist.props.json +252 -71
- package/es/lowcode/engine/meta/components-list.json +24 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -2
- package/es/lowcode/engine/meta/iframe.props.json +2 -3
- package/es/lowcode/engine/meta/image.props.default.json +3 -3
- package/es/lowcode/engine/meta/image.props.json +49 -15
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +42 -29
- package/es/lowcode/engine/meta/link.props.default.json +1 -2
- package/es/lowcode/engine/meta/link.props.json +8 -9
- package/es/lowcode/engine/provider/ContextProvider/index.js +44 -44
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Ribbon.js +12 -0
- 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 -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/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/GroupClassSelector.js +1 -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/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/TableTopFilter.js +3 -3
- 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 +166 -166
- 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/page-vars.less +25 -25
- 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/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 +476 -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/index.js +29 -26
- package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -89
- package/es/lowcode/view/lc-components/Iframe/index.js +57 -6
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -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 +61 -5
- 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 +34 -4
- 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 +149 -149
- package/es/lowcode/view/lc-components/Table/meta.json +450 -450
- package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/meta.json +56 -56
- package/es/lowcode/view/lc-components/Tree/index.js +96 -96
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +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 +68 -68
- package/lib/components/LdCard/index.js +146 -66
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.less +7 -7
- 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/locales/zh-CN.js +4 -2
- package/lib/lowcode/constants/api-url.js +87 -87
- package/lib/lowcode/engine/meta/cardlist.props.default.json +27 -7
- package/lib/lowcode/engine/meta/cardlist.props.json +252 -71
- package/lib/lowcode/engine/meta/components-list.json +24 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -2
- package/lib/lowcode/engine/meta/iframe.props.json +2 -3
- package/lib/lowcode/engine/meta/image.props.default.json +3 -3
- package/lib/lowcode/engine/meta/image.props.json +49 -15
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +42 -29
- package/lib/lowcode/engine/meta/link.props.default.json +1 -2
- package/lib/lowcode/engine/meta/link.props.json +8 -9
- package/lib/lowcode/engine/provider/ContextProvider/index.js +44 -44
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Ribbon.js +12 -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 -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/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/GroupClassSelector.js +1 -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/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/TableTopFilter.js +3 -3
- 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 +166 -166
- 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/page-vars.less +25 -25
- 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/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 +475 -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/index.js +29 -26
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -89
- package/lib/lowcode/view/lc-components/Iframe/index.js +56 -5
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -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 +60 -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 +34 -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 +149 -149
- package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
- package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
- package/lib/lowcode/view/lc-components/Tree/index.js +96 -96
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +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/engine/meta/fielddatadic.props.default.json +0 -16
- package/es/lowcode/engine/meta/fielddatadic.props.json +0 -73
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
- package/lib/lowcode/engine/meta/fielddatadic.props.json +0 -73
|
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _umi = require("umi");
|
|
15
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -22,39 +22,94 @@ var _ldBuilder = _interopRequireDefault(require("../../helper/ldBuilder"));
|
|
|
22
22
|
var _List = require("@luck-design-biz/base/List");
|
|
23
23
|
var _utils = require("@luck-design-biz/base/utils");
|
|
24
24
|
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"],
|
|
25
|
+
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
26
|
_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,
|
|
27
|
+
var Action = function Action(_ref) {
|
|
28
|
+
var data = _ref.data,
|
|
29
|
+
action = _ref.action,
|
|
47
30
|
onOperationsClick = _ref.onOperationsClick,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
31
|
+
_ref$inPopover = _ref.inPopover,
|
|
32
|
+
inPopover = _ref$inPopover === void 0 ? false : _ref$inPopover;
|
|
33
|
+
var style = (0, _objectSpread2.default)({
|
|
34
|
+
fontSize: '18px'
|
|
35
|
+
}, action.style);
|
|
36
|
+
if (action.disabled) style.color = 'var(--luck-color-disabled)';
|
|
37
|
+
if (inPopover) style = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
|
|
38
|
+
display: 'flex',
|
|
39
|
+
cursor: 'pointer'
|
|
40
|
+
});
|
|
41
|
+
if (action.render) return /*#__PURE__*/_react.default.createElement("div", {
|
|
42
|
+
style: style
|
|
43
|
+
}, action.render());
|
|
44
|
+
var renderDiv = function renderDiv(_title) {
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
+
style: style,
|
|
47
|
+
onClick: function onClick(e) {
|
|
48
|
+
e.stopPropagation();
|
|
49
|
+
action.onClick ? action.onClick(data, e) : onOperationsClick(action.key, data, e);
|
|
50
|
+
}
|
|
51
|
+
}, action.iconNode ? action.iconNode : /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
52
|
+
type: action.icon
|
|
53
|
+
}), _title && /*#__PURE__*/_react.default.createElement("span", {
|
|
54
|
+
style: {
|
|
55
|
+
marginLeft: '4px',
|
|
56
|
+
fontSize: '12px'
|
|
57
|
+
}
|
|
58
|
+
}, _title));
|
|
59
|
+
};
|
|
60
|
+
if (inPopover) return renderDiv(action.title);
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
62
|
+
placement: "top",
|
|
63
|
+
title: action.title
|
|
64
|
+
}, renderDiv());
|
|
65
|
+
};
|
|
66
|
+
var LdCard = function LdCard(_ref2) {
|
|
67
|
+
var columns = _ref2.columns,
|
|
68
|
+
resources = _ref2.resources,
|
|
69
|
+
actions = _ref2.actions,
|
|
70
|
+
doAction = _ref2.doAction,
|
|
71
|
+
afterInit = _ref2.afterInit,
|
|
72
|
+
namespace = _ref2.namespace,
|
|
73
|
+
loading = _ref2.loading,
|
|
74
|
+
wrapperRef = _ref2.wrapperRef,
|
|
75
|
+
hasMore = _ref2.hasMore,
|
|
76
|
+
list = _ref2.list,
|
|
77
|
+
detail = _ref2.detail,
|
|
78
|
+
params = _ref2.params,
|
|
79
|
+
doQuery = _ref2.doQuery,
|
|
80
|
+
onQuery = _ref2.onQuery,
|
|
81
|
+
unclosableSet = _ref2.unclosableSet,
|
|
82
|
+
formatDataSource = _ref2.formatDataSource,
|
|
83
|
+
resultSet = _ref2.resultSet,
|
|
84
|
+
cardConfig = _ref2.cardConfig,
|
|
85
|
+
maxActionsCount = _ref2.maxActionsCount,
|
|
86
|
+
cardActions = _ref2.cardActions,
|
|
87
|
+
onOperationsClick = _ref2.onOperationsClick,
|
|
88
|
+
readOnly = _ref2.readOnly,
|
|
89
|
+
batchOperations = _ref2.batchOperations,
|
|
90
|
+
readFilter = _ref2.readFilter,
|
|
91
|
+
wrapper = _ref2.wrapper,
|
|
92
|
+
wrapperProps = _ref2.wrapperProps,
|
|
93
|
+
draggable = _ref2.draggable,
|
|
94
|
+
onDrop = _ref2.onDrop,
|
|
95
|
+
onMount = _ref2.onMount,
|
|
96
|
+
onUnmount = _ref2.onUnmount,
|
|
97
|
+
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
52
98
|
var cardRef = (0, _react.useRef)(null);
|
|
53
99
|
(0, _react.useEffect)(function () {
|
|
54
100
|
readFilter && readFilter(params);
|
|
55
101
|
}, [params]);
|
|
56
102
|
(0, _react.useImperativeHandle)(wrapperRef, function () {
|
|
57
103
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, cardRef.current), {}, {
|
|
104
|
+
getProps: function getProps() {
|
|
105
|
+
var _getDvaApp;
|
|
106
|
+
return {
|
|
107
|
+
apiUrl: (_getDvaApp = (0, _umi.getDvaApp)()) === null || _getDvaApp === void 0 || (_getDvaApp = _getDvaApp._store.getState()[namespace]) === null || _getDvaApp === void 0 ? void 0 : _getDvaApp.apiUrl,
|
|
108
|
+
filter: {
|
|
109
|
+
params: params
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
},
|
|
58
113
|
onLdQuery: function onLdQuery() {
|
|
59
114
|
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
60
115
|
doQuery({
|
|
@@ -64,6 +119,14 @@ var LdCard = function LdCard(_ref) {
|
|
|
64
119
|
}
|
|
65
120
|
});
|
|
66
121
|
});
|
|
122
|
+
(0, _react.useLayoutEffect)(function () {
|
|
123
|
+
onMount && onMount({
|
|
124
|
+
params: params
|
|
125
|
+
});
|
|
126
|
+
return function () {
|
|
127
|
+
onUnmount && onUnmount();
|
|
128
|
+
};
|
|
129
|
+
}, []);
|
|
67
130
|
var _batchOperations = (0, _ahooks.useCreation)(function () {
|
|
68
131
|
return (batchOperations || []).map(function (i) {
|
|
69
132
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, i), {}, {
|
|
@@ -74,6 +137,7 @@ var LdCard = function LdCard(_ref) {
|
|
|
74
137
|
var renderCard = (0, _ahooks.useMemoizedFn)(function (item) {
|
|
75
138
|
return /*#__PURE__*/_react.default.createElement(_List.Card, (0, _extends2.default)({}, cardConfig, {
|
|
76
139
|
dataSource: item,
|
|
140
|
+
showDragHandle: draggable,
|
|
77
141
|
operates: readOnly ? [] : item['__infuse_serial__'] || resources,
|
|
78
142
|
onCardClick: function onCardClick(_item, e) {
|
|
79
143
|
return onOperationsClick && onOperationsClick('read', _item, e);
|
|
@@ -81,33 +145,46 @@ var LdCard = function LdCard(_ref) {
|
|
|
81
145
|
onCardDelete: function onCardDelete(_item, e) {
|
|
82
146
|
return onOperationsClick && onOperationsClick('delete', _item, e);
|
|
83
147
|
},
|
|
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']))
|
|
148
|
+
actions: (0, _luckDesign.PermissionUtil)(cardActions.map(function (action) {
|
|
149
|
+
return /*#__PURE__*/_react.default.createElement(Action, {
|
|
150
|
+
key: action.key,
|
|
151
|
+
wanted: action.resource || 'virtual',
|
|
152
|
+
data: item,
|
|
153
|
+
action: action
|
|
154
|
+
});
|
|
155
|
+
}), readOnly ? [] : [].concat((0, _toConsumableArray2.default)(item['__infuse_serial__'] || resources), ['virtual']), false, 'right', maxActionsCount)
|
|
108
156
|
}));
|
|
109
157
|
});
|
|
110
|
-
|
|
158
|
+
var handleDragEnd = (0, _ahooks.useMemoizedFn)(function (evt) {
|
|
159
|
+
var oldIndex = evt.oldIndex,
|
|
160
|
+
newIndex = evt.newIndex;
|
|
161
|
+
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
162
|
+
var dragNodeProps = detail[list[oldIndex]];
|
|
163
|
+
var targetNodeProps = detail[list[newIndex]];
|
|
164
|
+
if (onDrop) onDrop({
|
|
165
|
+
dragNodeProps: dragNodeProps,
|
|
166
|
+
targetNodeProps: targetNodeProps,
|
|
167
|
+
evt: evt
|
|
168
|
+
});else {
|
|
169
|
+
doAction('drag', {
|
|
170
|
+
get: {
|
|
171
|
+
datasetCode: props.dataSetKey
|
|
172
|
+
},
|
|
173
|
+
post: {
|
|
174
|
+
fromId: dragNodeProps[PRIMARY],
|
|
175
|
+
toId: targetNodeProps[PRIMARY]
|
|
176
|
+
}
|
|
177
|
+
}, {
|
|
178
|
+
showConfirm: false,
|
|
179
|
+
callback: function callback(success) {
|
|
180
|
+
return success && doQuery();
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
186
|
+
ref: wrapper
|
|
187
|
+
}, wrapperProps), (0, _lodash.difference)(Object.keys(params), resultSet.invisibleSet || []).length > 0 && /*#__PURE__*/_react.default.createElement(_luckDesign.ResultSet, (0, _extends2.default)({
|
|
111
188
|
set: params,
|
|
112
189
|
onQuery: onQuery
|
|
113
190
|
}, resultSet, {
|
|
@@ -115,14 +192,16 @@ var LdCard = function LdCard(_ref) {
|
|
|
115
192
|
})), /*#__PURE__*/_react.default.createElement(_List.CardList, (0, _extends2.default)({
|
|
116
193
|
col: 4,
|
|
117
194
|
loading: loading,
|
|
118
|
-
renderCard: renderCard
|
|
195
|
+
renderCard: renderCard,
|
|
196
|
+
onDragEnd: handleDragEnd
|
|
119
197
|
}, props, {
|
|
120
198
|
operates: [].concat((0, _toConsumableArray2.default)(resources), ['virtual']),
|
|
121
199
|
modelName: namespace,
|
|
122
200
|
dataSource: formatDataSource(list, detail),
|
|
123
201
|
hasMore: !!hasMore,
|
|
124
202
|
batchOperations: _batchOperations,
|
|
125
|
-
ref: cardRef
|
|
203
|
+
ref: cardRef,
|
|
204
|
+
draggable: draggable
|
|
126
205
|
})));
|
|
127
206
|
};
|
|
128
207
|
var ForwardLdCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
@@ -130,23 +209,23 @@ var ForwardLdCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
130
209
|
wrapperRef: ref
|
|
131
210
|
}, props));
|
|
132
211
|
});
|
|
133
|
-
var LdIndex = function LdIndex(
|
|
134
|
-
var namespace =
|
|
135
|
-
moduleCode =
|
|
136
|
-
suppressInit =
|
|
137
|
-
overModel =
|
|
138
|
-
afterQuery =
|
|
139
|
-
props = (0, _objectWithoutProperties2.default)(
|
|
212
|
+
var LdIndex = function LdIndex(_ref3) {
|
|
213
|
+
var namespace = _ref3.ldId,
|
|
214
|
+
moduleCode = _ref3.moduleCode,
|
|
215
|
+
suppressInit = _ref3.suppressInit,
|
|
216
|
+
overModel = _ref3.overModel,
|
|
217
|
+
afterQuery = _ref3.afterQuery,
|
|
218
|
+
props = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
|
|
140
219
|
if ((0, _lodash.includes)(props.isTree, props.dataSetKey)) return (0, _utils.formatMessage)({
|
|
141
220
|
id: 'luckda.ldCard.notTres',
|
|
142
221
|
label: '此数据集为树形数据集,请选择非树形数据集'
|
|
143
222
|
});
|
|
144
223
|
var Component = (0, _ahooks.useCreation)(function () {
|
|
145
|
-
var
|
|
146
|
-
(
|
|
147
|
-
if (!((
|
|
148
|
-
var
|
|
149
|
-
(
|
|
224
|
+
var _getDvaApp2, _getDvaApp3;
|
|
225
|
+
(_getDvaApp2 = (0, _umi.getDvaApp)()) === null || _getDvaApp2 === void 0 || _getDvaApp2.unmodel(namespace);
|
|
226
|
+
if (!((_getDvaApp3 = (0, _umi.getDvaApp)()) !== null && _getDvaApp3 !== void 0 && _getDvaApp3._store.getState()[namespace])) {
|
|
227
|
+
var _getDvaApp4;
|
|
228
|
+
(_getDvaApp4 = (0, _umi.getDvaApp)()) === null || _getDvaApp4 === void 0 || _getDvaApp4.model((0, _model.default)(namespace, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
150
229
|
isFlow: !!props.isFlow
|
|
151
230
|
}, overModel), {}, {
|
|
152
231
|
dataSetKey: props.dataSetKey,
|
|
@@ -198,7 +277,8 @@ Index.defaultProps = {
|
|
|
198
277
|
},
|
|
199
278
|
cardActions: [],
|
|
200
279
|
overModel: {},
|
|
201
|
-
cardKey: window.appConfig.constraintKeys.PRIMARY
|
|
280
|
+
cardKey: window.appConfig.constraintKeys.PRIMARY,
|
|
281
|
+
maxActionsCount: 3
|
|
202
282
|
};
|
|
203
283
|
var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
204
284
|
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
|
+
}
|
|
@@ -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/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": "低于最小值",
|
|
@@ -188,6 +190,7 @@ var _default = exports.default = {
|
|
|
188
190
|
"luckda.lowcode.painter.panel-section.actionEditor.destroy": "毁灭",
|
|
189
191
|
"luckda.lowcode.painter.panel-section.actionEditor.name": "名称",
|
|
190
192
|
"luckda.lowcode.painter.panel-section.actionEditor.name.placeholder": "请输入行为名称",
|
|
193
|
+
"luckda.lowcode.painter.panel-section.actionEditor.icon": "图标",
|
|
191
194
|
"luckda.lowcode.painter.panel-section.actionEditor.serial": "资源串",
|
|
192
195
|
"luckda.lowcode.painter.panel-section.actionEditor.serialEffect": "越权效果",
|
|
193
196
|
"luckda.lowcode.painter.panel-section.actionEditor.riskLevel": "风险等级",
|
|
@@ -274,6 +277,5 @@ var _default = exports.default = {
|
|
|
274
277
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyType": "请选择校验规则",
|
|
275
278
|
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.errorMsg": "错误提示",
|
|
276
279
|
"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": "全屏"
|
|
280
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑"
|
|
279
281
|
};
|