@luck-design-biz/luckda 0.0.24-1 → 0.0.24-3
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 +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +24 -17
- package/es/components/LdAutoForm/index.js +15 -5
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +4 -1
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +13 -7
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +12 -4
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +0 -0
- package/es/components/LdTree/index.js +0 -0
- package/es/components/LdTree/index.less +0 -0
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +8 -2
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +4 -1
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -0
- package/es/lowcode/constants/api-url.js +1 -2
- package/es/lowcode/constants/event-topics.js +1 -14
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/meta/button.props.default.json +7 -15
- package/es/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/es/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
- package/es/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/es/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/es/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{lib/lowcode/engine/meta/iframe.props.json → es/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{lib/lowcode/engine/meta/image.props.json → es/lowcode/engine/meta/components/image.json} +112 -113
- package/es/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
- package/es/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/{lib/lowcode/engine/meta/layout.props.json → es/lowcode/engine/meta/components/layout.json} +106 -107
- package/{lib/lowcode/engine/meta/link.props.json → es/lowcode/engine/meta/components/link.json} +110 -111
- package/{lib/lowcode/engine/meta/dialog.props.json → es/lowcode/engine/meta/components/modal.json} +119 -120
- package/{lib/lowcode/engine/meta/section.props.json → es/lowcode/engine/meta/components/section.json} +106 -107
- package/es/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
- package/es/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{lib/lowcode/engine/meta/tabs.props.json → es/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{lib/lowcode/engine/meta/text.props.json → es/lowcode/engine/meta/components/text.json} +64 -65
- package/es/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/es/lowcode/engine/meta/components-list.json +121 -127
- package/es/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/es/lowcode/engine/meta/form.props.default.json +4 -12
- package/es/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/es/lowcode/engine/meta/image.props.default.json +7 -15
- package/es/lowcode/engine/meta/imex.props.default.json +3 -11
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/es/lowcode/engine/meta/layout.props.default.json +4 -12
- package/es/lowcode/engine/meta/link.props.default.json +5 -13
- package/es/lowcode/engine/meta/modal.props.default.json +11 -0
- package/es/lowcode/engine/meta/section.props.default.json +8 -16
- package/es/lowcode/engine/meta/split.props.default.json +4 -12
- package/es/lowcode/engine/meta/table.props.default.json +9 -11
- package/es/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/es/lowcode/engine/meta/text.props.default.json +3 -11
- package/es/lowcode/engine/meta/tree.props.default.json +8 -16
- package/es/lowcode/engine/provider/ContextProvider.js +17 -10
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +5 -80
- package/es/lowcode/engine/tools/helper.js +0 -0
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +0 -0
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +42 -274
- package/es/lowcode/painter/I18n.js +2 -202
- package/es/lowcode/painter/Outline.js +28 -33
- package/es/lowcode/painter/Panel.js +2 -201
- package/es/lowcode/painter/Ribbon.js +55 -61
- package/es/lowcode/painter/components/PanelItem.js +9 -52
- package/es/lowcode/painter/components/RuleInput.js +4 -4
- package/es/lowcode/painter/index.js +1 -27
- package/es/lowcode/painter/panel-section/LayoutRatio.js +49 -56
- package/es/lowcode/painter/panel-section/Radio.js +58 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +5 -109
- package/es/lowcode/painter/style/index.less +1 -0
- package/es/lowcode/painter/style/layout-ratio.less +1 -1
- package/es/lowcode/painter/style/outline.less +0 -2
- package/es/lowcode/painter/style/panel-item.less +15 -38
- package/es/lowcode/painter/style/panel.less +0 -137
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -1
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/view/Canvas.js +55 -63
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +2 -199
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +5 -22
- package/es/lowcode/view/lc-components/Button/index.js +7 -72
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +1 -12
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +3 -19
- package/es/lowcode/view/lc-components/Form/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +7 -40
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Table/index.js +8 -138
- package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Wrapper.js +23 -32
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- package/es/lowcode/view/style/page.less +1 -0
- package/es/services.js +24 -7
- package/es/upload/Form/gridForm.js +5 -4
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +4 -3
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +37 -3
- package/es/utils/grid.js +9 -8
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +22 -15
- package/lib/components/LdAutoForm/index.js +14 -4
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +5 -1
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +13 -7
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +11 -3
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdRuntimeCom/index.js +0 -0
- package/lib/components/LdTree/index.js +0 -0
- package/lib/components/LdTree/index.less +0 -0
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +8 -2
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +4 -1
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -0
- package/lib/lowcode/constants/api-url.js +2 -3
- package/lib/lowcode/constants/event-topics.js +2 -15
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/meta/button.props.default.json +7 -15
- package/lib/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/lib/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
- package/lib/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/lib/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/lib/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{es/lowcode/engine/meta/iframe.props.json → lib/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{es/lowcode/engine/meta/image.props.json → lib/lowcode/engine/meta/components/image.json} +112 -113
- package/lib/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
- package/lib/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/{es/lowcode/engine/meta/layout.props.json → lib/lowcode/engine/meta/components/layout.json} +106 -107
- package/{es/lowcode/engine/meta/link.props.json → lib/lowcode/engine/meta/components/link.json} +110 -111
- package/{es/lowcode/engine/meta/dialog.props.json → lib/lowcode/engine/meta/components/modal.json} +119 -120
- package/{es/lowcode/engine/meta/section.props.json → lib/lowcode/engine/meta/components/section.json} +106 -107
- package/lib/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
- package/lib/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{es/lowcode/engine/meta/tabs.props.json → lib/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{es/lowcode/engine/meta/text.props.json → lib/lowcode/engine/meta/components/text.json} +64 -65
- package/lib/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/lib/lowcode/engine/meta/components-list.json +121 -127
- package/lib/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/lib/lowcode/engine/meta/form.props.default.json +4 -12
- package/lib/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/lib/lowcode/engine/meta/image.props.default.json +7 -15
- package/lib/lowcode/engine/meta/imex.props.default.json +3 -11
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/lib/lowcode/engine/meta/layout.props.default.json +4 -12
- package/lib/lowcode/engine/meta/link.props.default.json +5 -13
- package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
- package/lib/lowcode/engine/meta/section.props.default.json +8 -16
- package/lib/lowcode/engine/meta/split.props.default.json +4 -12
- package/lib/lowcode/engine/meta/table.props.default.json +9 -11
- package/lib/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/lib/lowcode/engine/meta/text.props.default.json +3 -11
- package/lib/lowcode/engine/meta/tree.props.default.json +8 -16
- package/lib/lowcode/engine/provider/ContextProvider.js +16 -9
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +5 -81
- package/lib/lowcode/engine/tools/helper.js +0 -0
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +0 -0
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +40 -271
- package/lib/lowcode/painter/I18n.js +2 -203
- package/lib/lowcode/painter/Outline.js +27 -32
- package/lib/lowcode/painter/Panel.js +2 -201
- package/lib/lowcode/painter/Ribbon.js +64 -63
- package/lib/lowcode/painter/components/PanelItem.js +9 -53
- package/lib/lowcode/painter/components/RuleInput.js +4 -4
- package/lib/lowcode/painter/index.js +1 -29
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +48 -55
- package/lib/lowcode/painter/panel-section/Radio.js +65 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +5 -109
- package/lib/lowcode/painter/style/index.less +1 -0
- package/lib/lowcode/painter/style/layout-ratio.less +1 -1
- package/lib/lowcode/painter/style/outline.less +0 -2
- package/lib/lowcode/painter/style/panel-item.less +15 -38
- package/lib/lowcode/painter/style/panel.less +0 -137
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -1
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/view/Canvas.js +60 -68
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +1 -198
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +6 -23
- package/lib/lowcode/view/lc-components/Button/index.js +8 -73
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +0 -11
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +2 -18
- package/lib/lowcode/view/lc-components/Form/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +8 -41
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Table/index.js +8 -138
- package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +21 -30
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- package/lib/lowcode/view/style/page.less +1 -0
- package/lib/services.js +25 -7
- package/lib/upload/Form/gridForm.js +5 -4
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +4 -3
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +38 -3
- package/lib/utils/grid.js +11 -10
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +5 -12
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -60
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -50
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -21
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -50
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -42
- package/es/lowcode/engine/meta/box.props.default.json +0 -12
- package/es/lowcode/engine/meta/box.props.json +0 -42
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/es/lowcode/engine/meta/table.props.json +0 -174
- package/es/lowcode/engine/tools/usePromiseState.js +0 -24
- package/es/lowcode/painter/components/Collapse.js +0 -31
- package/es/lowcode/painter/components/NumberInput.js +0 -93
- package/es/lowcode/painter/components/PopConfirm.js +0 -20
- package/es/lowcode/painter/components/PopForm.js +0 -71
- package/es/lowcode/painter/components/SortBox.js +0 -92
- package/es/lowcode/painter/components/TabEditor.js +0 -88
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -118
- package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -14
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -64
- package/es/lowcode/painter/components/code-editor/JSEditor.js +0 -84
- package/es/lowcode/painter/components/code-editor/index.js +0 -2
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -39
- package/es/lowcode/painter/panel-section/Icon.js +0 -48
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -134
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -292
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -543
- package/es/lowcode/painter/panel-section/StylePanel/Height.js +0 -48
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -64
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -101
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +0 -48
- package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -12
- package/es/lowcode/painter/panel-section/TabItems.js +0 -237
- package/es/lowcode/painter/services/I18n.js +0 -85
- package/es/lowcode/painter/style/button-type.less +0 -5
- package/es/lowcode/painter/style/collapse.less +0 -21
- package/es/lowcode/painter/style/display.less +0 -17
- package/es/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/es/lowcode/painter/style/icon-selector.less +0 -22
- package/es/lowcode/painter/style/icon.less +0 -11
- package/es/lowcode/painter/style/number-input.less +0 -17
- package/es/lowcode/painter/style/pop-confirm.less +0 -10
- package/es/lowcode/painter/style/pop-form.less +0 -20
- package/es/lowcode/painter/style/style-panel.less +0 -5
- package/es/lowcode/painter/style/tabeditor.less +0 -90
- package/es/lowcode/painter/style/tabitems.less +0 -90
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -20
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Box/index.less +0 -15
- package/es/lowcode/view/lc-components/Box/meta.json +0 -42
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -21
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Button/meta.json +0 -122
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/es/lowcode/view/lc-components/Drawer/style.less +0 -7
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Form/meta.json +0 -117
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Image/meta.json +0 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -75
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -15
- package/es/lowcode/view/lc-components/Layout/index.less +0 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Link/meta.json +0 -112
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Section/meta.json +0 -108
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Split/meta.json +0 -72
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -16
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Table/meta.json +0 -174
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Text/meta.json +0 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -157
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -73
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -56
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -27
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -56
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -48
- package/lib/lowcode/engine/meta/box.props.default.json +0 -12
- package/lib/lowcode/engine/meta/box.props.json +0 -42
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/lib/lowcode/engine/meta/table.props.json +0 -174
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -31
- package/lib/lowcode/painter/components/Collapse.js +0 -39
- package/lib/lowcode/painter/components/NumberInput.js +0 -101
- package/lib/lowcode/painter/components/PopConfirm.js +0 -26
- package/lib/lowcode/painter/components/PopForm.js +0 -77
- package/lib/lowcode/painter/components/SortBox.js +0 -99
- package/lib/lowcode/painter/components/TabEditor.js +0 -94
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -126
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -22
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -72
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +0 -95
- package/lib/lowcode/painter/components/code-editor/index.js +0 -20
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -46
- package/lib/lowcode/painter/panel-section/Icon.js +0 -54
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -141
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -299
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -550
- package/lib/lowcode/painter/panel-section/StylePanel/Height.js +0 -55
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -72
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -112
- package/lib/lowcode/painter/panel-section/StylePanel/Width.js +0 -55
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -19
- package/lib/lowcode/painter/panel-section/TabItems.js +0 -245
- package/lib/lowcode/painter/services/I18n.js +0 -95
- package/lib/lowcode/painter/style/button-type.less +0 -5
- package/lib/lowcode/painter/style/collapse.less +0 -21
- package/lib/lowcode/painter/style/display.less +0 -17
- package/lib/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/lib/lowcode/painter/style/icon-selector.less +0 -22
- package/lib/lowcode/painter/style/icon.less +0 -11
- package/lib/lowcode/painter/style/number-input.less +0 -17
- package/lib/lowcode/painter/style/pop-confirm.less +0 -10
- package/lib/lowcode/painter/style/pop-form.less +0 -20
- package/lib/lowcode/painter/style/style-panel.less +0 -5
- package/lib/lowcode/painter/style/tabeditor.less +0 -90
- package/lib/lowcode/painter/style/tabitems.less +0 -90
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -27
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Box/index.less +0 -15
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -42
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -28
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Button/meta.json +0 -122
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/lib/lowcode/view/lc-components/Drawer/style.less +0 -7
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Form/meta.json +0 -117
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -82
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -22
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -112
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -72
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -23
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -174
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -157
|
@@ -16,7 +16,7 @@ var _FormList = require("@luck-design-biz/base/FormList");
|
|
|
16
16
|
var _ldBuilder = _interopRequireDefault(require("../../helper/ldBuilder"));
|
|
17
17
|
var _utils = require("../../utils");
|
|
18
18
|
var _Builder = require("../Builder");
|
|
19
|
-
var _excluded = ["columns", "resources", "actions", "doAction", "ldId", "dataSetKey", "filedsRewrite", "mainFormLdId", "mainDataSetKey", "onValueChange", "onQuery", "onAdd", "onUpdate", "moduleCode", "defaultDataSourceFormat", "ticketData", "relationKey"];
|
|
19
|
+
var _excluded = ["columns", "resources", "actions", "doAction", "uiSettings", "ldId", "dataSetKey", "filedsRewrite", "mainFormLdId", "mainDataSetKey", "onValueChange", "onQuery", "onAdd", "onUpdate", "moduleCode", "defaultDataSourceFormat", "ticketData", "relationKey"];
|
|
20
20
|
var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
21
21
|
var _ref$columns = _ref.columns,
|
|
22
22
|
columns = _ref$columns === void 0 ? [] : _ref$columns,
|
|
@@ -26,6 +26,8 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
26
26
|
actions = _ref$actions === void 0 ? {} : _ref$actions,
|
|
27
27
|
_ref$doAction = _ref.doAction,
|
|
28
28
|
doAction = _ref$doAction === void 0 ? function () {} : _ref$doAction,
|
|
29
|
+
_ref$uiSettings = _ref.uiSettings,
|
|
30
|
+
uiSettings = _ref$uiSettings === void 0 ? {} : _ref$uiSettings,
|
|
29
31
|
ldId = _ref.ldId,
|
|
30
32
|
dataSetKey = _ref.dataSetKey,
|
|
31
33
|
_ref$filedsRewrite = _ref.filedsRewrite,
|
|
@@ -54,14 +56,21 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
54
56
|
setFieldProps = _ref2.setFieldProps;
|
|
55
57
|
var defaultValues = /*#__PURE__*/(0, _react.createRef)();
|
|
56
58
|
var isMain = ldId === mainFormLdId;
|
|
59
|
+
var formPreset = uiSettings && uiSettings.form && uiSettings.form[0] && uiSettings.form[0].preset ? JSON.parse(uiSettings.form[0].preset) : {};
|
|
60
|
+
var mergedArray = (0, _utils.mergeAndSort)(columns, formPreset.formFieldPreset || [], 'field');
|
|
57
61
|
var basicItems = function () {
|
|
58
62
|
var _defaultValues = {};
|
|
59
|
-
var _nodes = (0, _lodash.transform)(
|
|
63
|
+
var _nodes = (0, _lodash.transform)(mergedArray, function (result, col) {
|
|
60
64
|
if (col.isShowInForm) {
|
|
61
65
|
var customFiled = filedsRewrite.find(function (field) {
|
|
62
66
|
return field.name === col.aliaName;
|
|
63
67
|
}) || {};
|
|
64
68
|
_defaultValues = (0, _objectSpread3.default)((0, _objectSpread3.default)({}, _defaultValues), {}, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, col.aliaName, col['optDefaultValue']), "".concat(col.aliaName, "_virtual"), col['optDefaultValueCvt']));
|
|
69
|
+
|
|
70
|
+
// 该字段配置的表单显示信息
|
|
71
|
+
var colUiData = formPreset.formFieldPreset ? formPreset.formFieldPreset.find(function (c) {
|
|
72
|
+
return c.field === col.field;
|
|
73
|
+
}) : {};
|
|
65
74
|
result.push((0, _utils.getFormItem)(col, (0, _objectSpread3.default)((0, _objectSpread3.default)({
|
|
66
75
|
formId: ldId,
|
|
67
76
|
moduleCode: moduleCode
|
|
@@ -69,7 +78,7 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
69
78
|
handleValueChange: function handleValueChange(value) {
|
|
70
79
|
return onValueChange((0, _defineProperty2.default)({}, ldId, (0, _defineProperty2.default)({}, col.aliaName, value)));
|
|
71
80
|
}
|
|
72
|
-
})));
|
|
81
|
+
}), colUiData));
|
|
73
82
|
}
|
|
74
83
|
}, []);
|
|
75
84
|
defaultValues.current = _defaultValues;
|
|
@@ -83,7 +92,8 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
|
|
|
83
92
|
var formConfig = {
|
|
84
93
|
formId: ldId,
|
|
85
94
|
isMain: isMain,
|
|
86
|
-
defaultDataSource: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, (0, _utils.formItemDataFormat)(columns, defaultValues.current)), defaultDataSourceFormat(defaultValues.current))
|
|
95
|
+
defaultDataSource: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, (0, _utils.formItemDataFormat)(columns, defaultValues.current)), defaultDataSourceFormat(defaultValues.current)),
|
|
96
|
+
col: formPreset.formCol
|
|
87
97
|
};
|
|
88
98
|
var onOperate = function onOperate() {
|
|
89
99
|
var _onOperate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -18,6 +18,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
18
18
|
var _umi = require("umi");
|
|
19
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
20
|
var _ahooks = require("ahooks");
|
|
21
|
+
var _createDeepCompareEffect = require("ahooks/es/createDeepCompareEffect");
|
|
21
22
|
var _luckDesign = require("luck-design");
|
|
22
23
|
var _utils = require("@luck-design-biz/base/utils");
|
|
23
24
|
var _FormList = require("@luck-design-biz/base/FormList");
|
|
@@ -36,6 +37,8 @@ var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading"
|
|
|
36
37
|
_excluded2 = ["dataSets", "doAction", "resources"],
|
|
37
38
|
_excluded3 = ["id", "header", "title", "readOnly", "extraConfig", "renderTopLeft"],
|
|
38
39
|
_excluded4 = ["ldId", "initData", "overModel"];
|
|
40
|
+
var useDeepCompareAsyncEffect = (0, _createDeepCompareEffect.createDeepCompareEffect)(_ahooks.useAsyncEffect);
|
|
41
|
+
|
|
39
42
|
// 组件
|
|
40
43
|
var LdFormList = function LdFormList(_ref) {
|
|
41
44
|
var _formList$find;
|
|
@@ -131,7 +134,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
131
134
|
placement: luckTheme === 'base' && (affixLayout || defaultLayout) !== 'top' ? 'topRight' : 'bottomRight'
|
|
132
135
|
}, bpmButtonProps)));
|
|
133
136
|
};
|
|
134
|
-
(
|
|
137
|
+
useDeepCompareAsyncEffect( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
135
138
|
var _props$formData$mainF, _params, response, _yield$readBehaviorCa, code, data, _props$formData$mainF2, _props$formData$mainF3, bpmInfoObj, tempObj;
|
|
136
139
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
137
140
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -157,6 +160,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
157
160
|
}
|
|
158
161
|
_context.next = 8;
|
|
159
162
|
return (0, _services.readBehaviorCall)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _params), {}, {
|
|
163
|
+
// bizKey: bizData.bizKey,
|
|
160
164
|
behaviorKey: 'readBpm'
|
|
161
165
|
}));
|
|
162
166
|
case 8:
|
|
File without changes
|
|
@@ -20,7 +20,7 @@ var _List = require("@luck-design-biz/base/List");
|
|
|
20
20
|
var _ldBuilder = _interopRequireDefault(require("../../helper/ldBuilder"));
|
|
21
21
|
var _utils = require("../../utils");
|
|
22
22
|
var _model = _interopRequireDefault(require("./model"));
|
|
23
|
-
var _excluded = ["columns", "resources", "actions", "doAction", "afterInit", "namespace", "wrapperRef", "list", "detail", "params", "filters", "loading", "unclosableSet", "onQuery", "doQuery", "pageno", "pagesize", "totalCount", "columnsRewrite", "columnsReset", "batchOperations", "formatDataSource", "resultSet", "actionsColumn", "readFilter", "isFlow", "isTreeGrid", "writable"],
|
|
23
|
+
var _excluded = ["columns", "resources", "actions", "doAction", "afterInit", "uiSettings", "namespace", "wrapperRef", "list", "detail", "params", "filters", "loading", "unclosableSet", "onQuery", "doQuery", "pageno", "pagesize", "totalCount", "columnsRewrite", "columnsReset", "batchOperations", "formatDataSource", "resultSet", "actionsColumn", "readFilter", "isFlow", "isTreeGrid", "writable"],
|
|
24
24
|
_excluded2 = ["ldId", "moduleCode", "suppressInit", "overModel", "afterQuery", "isTreeGrid"];
|
|
25
25
|
var LdGrid = function LdGrid(_ref) {
|
|
26
26
|
var columns = _ref.columns,
|
|
@@ -28,6 +28,8 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
28
28
|
actions = _ref.actions,
|
|
29
29
|
doAction = _ref.doAction,
|
|
30
30
|
afterInit = _ref.afterInit,
|
|
31
|
+
_ref$uiSettings = _ref.uiSettings,
|
|
32
|
+
uiSettings = _ref$uiSettings === void 0 ? {} : _ref$uiSettings,
|
|
31
33
|
namespace = _ref.namespace,
|
|
32
34
|
wrapperRef = _ref.wrapperRef,
|
|
33
35
|
list = _ref.list,
|
|
@@ -88,6 +90,7 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
88
90
|
});
|
|
89
91
|
});
|
|
90
92
|
}, [batchOperations]);
|
|
93
|
+
var gridPresetData = uiSettings && uiSettings.grid && uiSettings.grid[0] && uiSettings.grid[0].preset ? JSON.parse(uiSettings.grid[0].preset) : {};
|
|
91
94
|
|
|
92
95
|
/**
|
|
93
96
|
* 优先级
|
|
@@ -98,7 +101,8 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
98
101
|
if (columnsReset) return columnsReset;
|
|
99
102
|
var defaultColumns = (0, _lodash.keyBy)(columns, 'aliaName');
|
|
100
103
|
var customColumns = (0, _lodash.keyBy)(columnsRewrite, 'field');
|
|
101
|
-
var
|
|
104
|
+
var presetColumns = (0, _lodash.keyBy)(gridPresetData.gridPreset, 'field'); // ui配置的已排序的列
|
|
105
|
+
var mergeFields = (0, _lodash.union)((0, _lodash.keys)(presetColumns), (0, _lodash.keys)(defaultColumns), (0, _lodash.keys)(customColumns)); // 以UI配置的列排序
|
|
102
106
|
return (0, _lodash.transform)(mergeFields, function (result, field) {
|
|
103
107
|
var _customColumns$field;
|
|
104
108
|
if ((_customColumns$field = customColumns[field]) !== null && _customColumns$field !== void 0 && _customColumns$field.hide) {
|
|
@@ -106,9 +110,14 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
106
110
|
} else if (!defaultColumns[field]) {
|
|
107
111
|
// 数据集中不存在的字段以自定义的形式展示
|
|
108
112
|
result.push(customColumns[field]);
|
|
109
|
-
} else if (defaultColumns[field].isShowInGrid)
|
|
113
|
+
} else if (defaultColumns[field].isShowInGrid) {
|
|
114
|
+
// 该字段配置的表单显示信息
|
|
115
|
+
var columnUiData = gridPresetData.gridPreset ? gridPresetData.gridPreset.find(function (c) {
|
|
116
|
+
return c.field === field;
|
|
117
|
+
}) : {};
|
|
110
118
|
// 数据集中存在的字段和自定义结合展示
|
|
111
|
-
result.push((0, _utils.getGridColumn)(defaultColumns[field], customColumns[field] || {}, isTreeGrid, writable));
|
|
119
|
+
result.push((0, _utils.getGridColumn)(defaultColumns[field], customColumns[field] || {}, isTreeGrid, writable, columnUiData));
|
|
120
|
+
}
|
|
112
121
|
}, []);
|
|
113
122
|
}, [columns, columnsRewrite, columnsReset]);
|
|
114
123
|
var _actionsColumn = (0, _ahooks.useCreation)(function () {
|
|
@@ -134,9 +143,6 @@ var LdGrid = function LdGrid(_ref) {
|
|
|
134
143
|
unclosableSet: unclosableSet,
|
|
135
144
|
onQuery: onQuery
|
|
136
145
|
});
|
|
137
|
-
|
|
138
|
-
// console.log('_columns',columns,_columns)
|
|
139
|
-
|
|
140
146
|
return /*#__PURE__*/_react.default.createElement(_List.GridList, (0, _extends2.default)({
|
|
141
147
|
columns: _columns
|
|
142
148
|
// 资源串、行为配置
|
|
File without changes
|
|
@@ -19,7 +19,7 @@ var _utils = require("../../utils");
|
|
|
19
19
|
var _form = require("../../helper/form");
|
|
20
20
|
var _Builder = require("../Builder");
|
|
21
21
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
22
|
-
var _excluded = ["columns", "resources", "actions", "doAction", "ldId", "dataSetKey", "columnsRewrite", "onQuery", "onAdd", "onUpdate", "onDelete", "mainFormLdId", "mainDataSetKey", "onValueChange", "type", "afterOperate", "moduleCode", "defaultDataSourceFormat", "ticketData", "className", "formRef", "formMode"];
|
|
22
|
+
var _excluded = ["columns", "resources", "actions", "doAction", "uiSettings", "ldId", "dataSetKey", "columnsRewrite", "onQuery", "onAdd", "onUpdate", "onDelete", "mainFormLdId", "mainDataSetKey", "onValueChange", "type", "afterOperate", "moduleCode", "defaultDataSourceFormat", "ticketData", "className", "formRef", "formMode"];
|
|
23
23
|
var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
24
24
|
var _ref$columns = _ref.columns,
|
|
25
25
|
columns = _ref$columns === void 0 ? [] : _ref$columns,
|
|
@@ -29,6 +29,8 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
29
29
|
actions = _ref$actions === void 0 ? {} : _ref$actions,
|
|
30
30
|
_ref$doAction = _ref.doAction,
|
|
31
31
|
doAction = _ref$doAction === void 0 ? function () {} : _ref$doAction,
|
|
32
|
+
_ref$uiSettings = _ref.uiSettings,
|
|
33
|
+
uiSettings = _ref$uiSettings === void 0 ? {} : _ref$uiSettings,
|
|
32
34
|
ldId = _ref.ldId,
|
|
33
35
|
dataSetKey = _ref.dataSetKey,
|
|
34
36
|
_ref$columnsRewrite = _ref.columnsRewrite,
|
|
@@ -69,9 +71,11 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
69
71
|
});
|
|
70
72
|
return col;
|
|
71
73
|
});
|
|
74
|
+
var gridPresetData = uiSettings && uiSettings.grid && uiSettings.grid[0] && uiSettings.grid[0].preset ? JSON.parse(uiSettings.grid[0].preset) : {};
|
|
75
|
+
var mergedArray = (0, _utils.mergeAndSort)(gridColumns, gridPresetData.gridPreset || [], 'field');
|
|
72
76
|
var _columns = function () {
|
|
73
77
|
var _defaultValues = {};
|
|
74
|
-
var _nodes = (0, _lodash.transform)(
|
|
78
|
+
var _nodes = (0, _lodash.transform)(mergedArray, function (result, col) {
|
|
75
79
|
if (col.isShowInForm) {
|
|
76
80
|
var _customColumn;
|
|
77
81
|
var customColumn = columnsRewrite.find(function (column) {
|
|
@@ -82,13 +86,17 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
82
86
|
mode: 'grid'
|
|
83
87
|
});
|
|
84
88
|
_defaultValues = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, _defaultValues), {}, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, col.aliaName, col['optDefaultValue']), "".concat(col.aliaName, "_virtual"), col['optDefaultValueCvt']));
|
|
89
|
+
// 该字段配置的表单显示信息
|
|
90
|
+
var columnUiData = gridPresetData.gridPreset ? gridPresetData.gridPreset.find(function (c) {
|
|
91
|
+
return c.field === col.field;
|
|
92
|
+
}) : {};
|
|
85
93
|
result.push((0, _utils.getFormColumn)(type, col, (0, _objectSpread4.default)((0, _objectSpread4.default)({}, customColumn), {}, {
|
|
86
94
|
formItemRewrite: (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (_customColumn = customColumn) === null || _customColumn === void 0 ? void 0 : _customColumn.formItemRewrite), {}, {
|
|
87
95
|
moduleCode: moduleCode,
|
|
88
96
|
formRef: formRef,
|
|
89
97
|
formMode: formMode
|
|
90
98
|
})
|
|
91
|
-
})));
|
|
99
|
+
}), columnUiData));
|
|
92
100
|
}
|
|
93
101
|
}, []);
|
|
94
102
|
defaultValues.current = _defaultValues;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/helper/FromItems.js
CHANGED
|
File without changes
|
package/lib/helper/action.js
CHANGED
|
File without changes
|
package/lib/helper/form.js
CHANGED
|
@@ -71,9 +71,15 @@ function translator() {
|
|
|
71
71
|
label: allConfig.fieldName,
|
|
72
72
|
config: {
|
|
73
73
|
required: !!allConfig.isNotNull,
|
|
74
|
-
disabled: !!allConfig.isReadOnly
|
|
74
|
+
disabled: !!allConfig.isReadOnly,
|
|
75
|
+
placeholder: allConfig.placeholder,
|
|
76
|
+
rows: allConfig.rows
|
|
75
77
|
},
|
|
76
|
-
layout: 'block'
|
|
78
|
+
layout: 'block',
|
|
79
|
+
align: allConfig.align,
|
|
80
|
+
headerAlign: allConfig.headerAlign,
|
|
81
|
+
width: allConfig.width,
|
|
82
|
+
tip: allConfig.tip
|
|
77
83
|
};
|
|
78
84
|
if (!(0, _lodash.isNil)(allConfig['dataFormat'])) _props.dataFormat = allConfig['dataFormat'];
|
|
79
85
|
// if (allConfig.tip) _props.config.placeholder = allConfig.tip;
|
package/lib/helper/index.less
CHANGED
|
File without changes
|
package/lib/helper/ldBuilder.js
CHANGED
|
@@ -19,6 +19,8 @@ var builder = function builder(wrapped) {
|
|
|
19
19
|
actions = _ref.actions,
|
|
20
20
|
_ref$dataSets = _ref.dataSets,
|
|
21
21
|
dataSets = _ref$dataSets === void 0 ? [] : _ref$dataSets,
|
|
22
|
+
_ref$moduleUiList = _ref.moduleUiList,
|
|
23
|
+
moduleUiList = _ref$moduleUiList === void 0 ? {} : _ref$moduleUiList,
|
|
22
24
|
_ref$isTree = _ref.isTree,
|
|
23
25
|
isTree = _ref$isTree === void 0 ? [] : _ref$isTree,
|
|
24
26
|
doAction = _ref.doAction,
|
|
@@ -46,7 +48,8 @@ var builder = function builder(wrapped) {
|
|
|
46
48
|
resources: resources,
|
|
47
49
|
actions: actions,
|
|
48
50
|
doAction: doAction,
|
|
49
|
-
moduleCode: moduleCode
|
|
51
|
+
moduleCode: moduleCode,
|
|
52
|
+
uiSettings: moduleUiList[dataSetKey] // form和grid的页面配置信息
|
|
50
53
|
});
|
|
51
54
|
return wrapped(wrappedProps);
|
|
52
55
|
};
|
package/lib/helper/ldComBuild.js
CHANGED
|
File without changes
|
package/lib/index.js
CHANGED
|
File without changes
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ICON = void 0;
|
|
7
7
|
// icon地址
|
|
8
|
-
var
|
|
9
|
-
var ICONLIST_JS = exports.ICONLIST_JS = '/public/icons/iconfont.js';
|
|
8
|
+
var ICON = exports.ICON = '/public/icons/iconfont.json';
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_MOUNT = exports.COMPONENT_HOVER = exports.COMPONENT_ACTIVE = void 0;
|
|
7
7
|
/******************************** 通用Topic开始 ********************************/
|
|
8
8
|
|
|
9
9
|
// 组件的加载完成事件
|
|
10
10
|
var COMPONENT_MOUNT = exports.COMPONENT_MOUNT = 'component-mount';
|
|
11
11
|
// 组件的卸载事件
|
|
12
12
|
var COMPONENT_UNMOUNT = exports.COMPONENT_UNMOUNT = 'component-unmount';
|
|
13
|
-
// 模态视图层打开事件
|
|
14
|
-
var MODAL_OPEN = exports.MODAL_OPEN = 'modal-open';
|
|
15
|
-
// 模态视图层关闭事件
|
|
16
|
-
var MODAL_CLOSE = exports.MODAL_CLOSE = 'modal-close';
|
|
17
13
|
|
|
18
14
|
/******************************** 通用Topic结束 ********************************/
|
|
19
15
|
|
|
@@ -25,18 +21,9 @@ var COMPONENT_HOVER = exports.COMPONENT_HOVER = 'component-hover';
|
|
|
25
21
|
var COMPONENT_ACTIVE = exports.COMPONENT_ACTIVE = 'component-active';
|
|
26
22
|
// 组件设置的click事件
|
|
27
23
|
var COMPONENT_SETTING_CLICK = exports.COMPONENT_SETTING_CLICK = 'component-setting-click';
|
|
28
|
-
// 组件的追加事件
|
|
29
|
-
var COMPONENT_APPEND = exports.COMPONENT_APPEND = 'component-append';
|
|
30
|
-
// 组件的删除事件
|
|
31
|
-
var COMPONENT_DELETE = exports.COMPONENT_DELETE = 'component-delete';
|
|
32
|
-
// 组件的修改事件
|
|
33
|
-
var COMPONENT_MODIFY = exports.COMPONENT_MODIFY = 'component-modify';
|
|
34
24
|
|
|
35
25
|
/******************************* Design Topic结束 *******************************/
|
|
36
26
|
|
|
37
27
|
/******************************** Live Topic开始 ********************************/
|
|
38
28
|
|
|
39
|
-
/******************************** Live Topic结束 ********************************/
|
|
40
|
-
|
|
41
|
-
// 国际化语言设置
|
|
42
|
-
var LANG_SETTING_SELECT = exports.LANG_SETTING_SELECT = 'lang-setting-select';
|
|
29
|
+
/******************************** Live Topic结束 ********************************/
|
|
File without changes
|
|
File without changes
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"order": 1,
|
|
9
|
-
"style": {},
|
|
10
|
-
"title": "按钮",
|
|
11
|
-
"type": "default",
|
|
12
|
-
"size": "middle",
|
|
13
|
-
"block": false,
|
|
14
|
-
"ghost": false,
|
|
15
|
-
"serialEffect": "hidden"
|
|
1
|
+
{
|
|
2
|
+
"title": "按钮",
|
|
3
|
+
"type": {
|
|
4
|
+
"key": "primary"
|
|
5
|
+
},
|
|
6
|
+
"size": "middle",
|
|
7
|
+
"effect": "hidden"
|
|
16
8
|
}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"autoLoad": true,
|
|
11
|
-
"readOnly": false,
|
|
12
|
-
"isFlow": false,
|
|
13
|
-
"defaultPageSize": 30,
|
|
14
|
-
"actionTitle": "操作列",
|
|
15
|
-
"actionWidth": 100,
|
|
16
|
-
"actionHidden": false,
|
|
17
|
-
"maxWebShownActionCount": 2
|
|
1
|
+
{
|
|
2
|
+
"autoLoad": true,
|
|
3
|
+
"readOnly": false,
|
|
4
|
+
"isFlow": false,
|
|
5
|
+
"defaultPageSize": 30,
|
|
6
|
+
"actionTitle": "操作列",
|
|
7
|
+
"actionWidth": 100,
|
|
8
|
+
"actionHidden": false,
|
|
9
|
+
"maxWebShownActionCount": 2
|
|
18
10
|
}
|
|
@@ -1,122 +1,104 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "Button",
|
|
3
|
-
"name": "按钮",
|
|
4
|
-
"desc": "用于触发特定的操作或动作,以便用户可以轻松地创建具有自定义样式和行为的界面。",
|
|
5
|
-
"icon": "icon-button",
|
|
6
|
-
"group": "basic",
|
|
7
|
-
"groupName": "基础",
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"type": "string",
|
|
20
|
-
"default": "按钮"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"key": "type",
|
|
24
|
-
"
|
|
25
|
-
"type": "_ButtonType",
|
|
26
|
-
"default":
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"name": "组件首次渲染时",
|
|
105
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
106
|
-
"func": "(params)=>{\n\t\n}"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"key": "onUnmount",
|
|
110
|
-
"name": "组件卸载时",
|
|
111
|
-
"desc": "在组件卸载时,执行方法。",
|
|
112
|
-
"func": "(params)=>{\n\t\n}"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"key": "onClick",
|
|
116
|
-
"name": "点击事件",
|
|
117
|
-
"desc": "点击文本时,执行方法",
|
|
118
|
-
"func": "(e)=>{\n\t\n}"
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "Button",
|
|
3
|
+
"name": "按钮",
|
|
4
|
+
"desc": "用于触发特定的操作或动作,以便用户可以轻松地创建具有自定义样式和行为的界面。",
|
|
5
|
+
"icon": "icon-button",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "id",
|
|
11
|
+
"desc": "唯一标识",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"disabled": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "title",
|
|
17
|
+
"name": "标题",
|
|
18
|
+
"desc": "按钮上显示的文字",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"default": "按钮"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "type",
|
|
24
|
+
"desc": "按钮类型",
|
|
25
|
+
"type": "_ButtonType",
|
|
26
|
+
"default": {
|
|
27
|
+
"key": "primary"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "size",
|
|
32
|
+
"name": "按钮",
|
|
33
|
+
"desc": "按钮的大小尺寸",
|
|
34
|
+
"type": "radio",
|
|
35
|
+
"options": [
|
|
36
|
+
{
|
|
37
|
+
"label": "小",
|
|
38
|
+
"value": "small"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"label": "中",
|
|
42
|
+
"value": "middle"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"label": "大",
|
|
46
|
+
"value": "large"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"default": "middle"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "icon",
|
|
53
|
+
"name": "图标",
|
|
54
|
+
"desc": "按钮标题前的图标",
|
|
55
|
+
"type": "Icon"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "serials",
|
|
59
|
+
"name": "资源串",
|
|
60
|
+
"desc": "挂接模块资源串",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "effect",
|
|
65
|
+
"name": "资源串效果",
|
|
66
|
+
"desc": "当资源串条件生效时按钮的效果",
|
|
67
|
+
"type": "radio",
|
|
68
|
+
"options": [
|
|
69
|
+
{
|
|
70
|
+
"label": "禁用",
|
|
71
|
+
"value": "disable"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"label": "隐藏",
|
|
75
|
+
"value": "hidden"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"default": "hidden"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"style": {},
|
|
82
|
+
"advance": {
|
|
83
|
+
"events": [
|
|
84
|
+
{
|
|
85
|
+
"key": "onMount",
|
|
86
|
+
"name": "组件首次渲染时",
|
|
87
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
88
|
+
"func": "(params)=>{\n\t\n}"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"key": "onUnmount",
|
|
92
|
+
"name": "组件卸载时",
|
|
93
|
+
"desc": "在组件卸载时,执行方法。",
|
|
94
|
+
"func": "(params)=>{\n\t\n}"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "onClick",
|
|
98
|
+
"name": "点击事件",
|
|
99
|
+
"desc": "点击文本时,执行方法",
|
|
100
|
+
"func": "(e)=>{\n\t\n}"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
122
104
|
}
|