@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
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
3
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
|
-
var _excluded = ["props", "children"]
|
|
7
|
-
_excluded2 = ["id", "component", "name", "desc", "icon", "group", "groupName", "order"];
|
|
5
|
+
var _excluded = ["props", "children"];
|
|
8
6
|
import React, { useRef, useState } from 'react';
|
|
9
7
|
import { dynamic } from 'umi';
|
|
10
8
|
import { useMemoizedFn, useDeepCompareLayoutEffect } from 'ahooks';
|
|
11
|
-
import { reduce
|
|
12
|
-
import
|
|
13
|
-
import Box from "./lc-components/Box";
|
|
9
|
+
import { reduce } from 'lodash';
|
|
10
|
+
import Wrapper from "./lc-components/Wrapper";
|
|
14
11
|
import { CELL_KEY } from "../constants";
|
|
15
12
|
import styles from "./style/canvas.less";
|
|
16
13
|
var PAGE_CELL = [CELL_KEY.PAGE_HEADER, CELL_KEY.PAGE_CONTENT, CELL_KEY.PAGE_FOOTER];
|
|
17
14
|
var Canvas = function Canvas(_ref) {
|
|
18
15
|
var dataSource = _ref.dataSource;
|
|
19
|
-
|
|
20
|
-
var
|
|
16
|
+
console.log('dataSource', dataSource);
|
|
17
|
+
var headerRef = useRef();
|
|
18
|
+
var contentRef = useRef();
|
|
19
|
+
var footerRef = useRef();
|
|
21
20
|
var _useState = useState(null),
|
|
22
21
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23
22
|
header = _useState2[0],
|
|
@@ -39,49 +38,35 @@ var Canvas = function Canvas(_ref) {
|
|
|
39
38
|
children = _ref2.children,
|
|
40
39
|
childrenMap = _objectWithoutProperties(_ref2, _excluded);
|
|
41
40
|
if (props && !PAGE_CELL.includes(props.id)) {
|
|
42
|
-
var
|
|
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
|
-
function loader() {
|
|
73
|
-
return _loader.apply(this, arguments);
|
|
74
|
-
}
|
|
75
|
-
return loader;
|
|
76
|
-
}()
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
var Comp = dynamicCompMap.current[component];
|
|
80
|
-
return /*#__PURE__*/React.createElement(Comp, _extends({
|
|
81
|
-
key: id,
|
|
82
|
-
id: id,
|
|
83
|
-
context: context
|
|
84
|
-
}, rest), (children || []).map(function (_id) {
|
|
41
|
+
var Comp = dynamic({
|
|
42
|
+
loader: function () {
|
|
43
|
+
var _loader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
44
|
+
var _yield$import, _Comp;
|
|
45
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46
|
+
while (1) switch (_context.prev = _context.next) {
|
|
47
|
+
case 0:
|
|
48
|
+
_context.next = 2;
|
|
49
|
+
return import("./lc-components/".concat(props.type));
|
|
50
|
+
case 2:
|
|
51
|
+
_yield$import = _context.sent;
|
|
52
|
+
_Comp = _yield$import.default;
|
|
53
|
+
return _context.abrupt("return", _Comp);
|
|
54
|
+
case 5:
|
|
55
|
+
case "end":
|
|
56
|
+
return _context.stop();
|
|
57
|
+
}
|
|
58
|
+
}, _callee);
|
|
59
|
+
}));
|
|
60
|
+
function loader() {
|
|
61
|
+
return _loader.apply(this, arguments);
|
|
62
|
+
}
|
|
63
|
+
return loader;
|
|
64
|
+
}()
|
|
65
|
+
});
|
|
66
|
+
return /*#__PURE__*/React.createElement(Comp, {
|
|
67
|
+
id: props.id,
|
|
68
|
+
lcdata: props
|
|
69
|
+
}, (children || []).map(function (_id) {
|
|
85
70
|
return render(childrenMap[_id]);
|
|
86
71
|
}));
|
|
87
72
|
}
|
|
@@ -114,30 +99,37 @@ var Canvas = function Canvas(_ref) {
|
|
|
114
99
|
return /*#__PURE__*/React.createElement("div", {
|
|
115
100
|
id: "page-canvas",
|
|
116
101
|
className: styles['lc-view-canvas']
|
|
117
|
-
}, /*#__PURE__*/React.createElement(
|
|
118
|
-
key: CELL_KEY.PAGE_HEADER,
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Wrapper, {
|
|
119
103
|
id: CELL_KEY.PAGE_HEADER,
|
|
104
|
+
getTargetDom: function getTargetDom() {
|
|
105
|
+
return headerRef.current;
|
|
106
|
+
}
|
|
107
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
ref: headerRef,
|
|
120
109
|
style: {
|
|
121
110
|
width: '100%',
|
|
122
111
|
height: 120,
|
|
123
112
|
backgroundColor: '#d3f261'
|
|
124
113
|
}
|
|
125
|
-
}, header), /*#__PURE__*/React.createElement(
|
|
126
|
-
key: CELL_KEY.PAGE_CONTENT,
|
|
114
|
+
}, header)), /*#__PURE__*/React.createElement(Wrapper, {
|
|
127
115
|
id: CELL_KEY.PAGE_CONTENT,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
116
|
+
getTargetDom: function getTargetDom() {
|
|
117
|
+
return contentRef.current;
|
|
118
|
+
}
|
|
119
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
ref: contentRef
|
|
121
|
+
}, content)), /*#__PURE__*/React.createElement(Wrapper, {
|
|
122
|
+
id: CELL_KEY.PAGE_HEADER,
|
|
123
|
+
getTargetDom: function getTargetDom() {
|
|
124
|
+
return footerRef.current;
|
|
132
125
|
}
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
id: CELL_KEY.PAGE_FOOTER,
|
|
126
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
ref: footerRef,
|
|
136
128
|
style: {
|
|
137
129
|
width: '100%',
|
|
138
130
|
height: 80,
|
|
139
131
|
backgroundColor: '#69c0ff'
|
|
140
132
|
}
|
|
141
|
-
}, footer), modal);
|
|
133
|
+
}, footer)), modal);
|
|
142
134
|
};
|
|
143
135
|
export default Canvas;
|
|
File without changes
|
package/es/lowcode/view/Page.js
CHANGED
|
@@ -10,7 +10,7 @@ import { useLDContext } from "../engine/provider/ContextProvider";
|
|
|
10
10
|
import Loading from "./Loading";
|
|
11
11
|
import Wrapper from "./lc-components/Wrapper";
|
|
12
12
|
import Canvas from "./Canvas";
|
|
13
|
-
import { decompress } from "../engine/tools/dataProcess";
|
|
13
|
+
import { decompress, compress } from "../engine/tools/dataProcess";
|
|
14
14
|
import { CELL_KEY } from "../constants";
|
|
15
15
|
import styles from "./style/page.less";
|
|
16
16
|
var mock = function mock(_pageCode) {
|
|
@@ -21,202 +21,6 @@ var mock = function mock(_pageCode) {
|
|
|
21
21
|
}, 400);
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
var d = {
|
|
25
|
-
props: {
|
|
26
|
-
id: 'page_root',
|
|
27
|
-
group: 'build-in',
|
|
28
|
-
component: 'Page',
|
|
29
|
-
name: '页面',
|
|
30
|
-
hasHeder: true,
|
|
31
|
-
hasFooter: true
|
|
32
|
-
},
|
|
33
|
-
children: ['page_header', 'page_content', 'page_footer', 'dialog_ms2o9hj0', 'drawer_ou79jw8c'],
|
|
34
|
-
page_header: {
|
|
35
|
-
props: {
|
|
36
|
-
id: 'page_header',
|
|
37
|
-
parentId: 'page_root',
|
|
38
|
-
group: 'build-in',
|
|
39
|
-
component: 'PageHeader',
|
|
40
|
-
name: '页面头',
|
|
41
|
-
fixed: false
|
|
42
|
-
},
|
|
43
|
-
children: ['text_kju78bvs'],
|
|
44
|
-
text_kju78bvs: {
|
|
45
|
-
props: {
|
|
46
|
-
id: 'text_kju78bvs',
|
|
47
|
-
parentId: 'page_header',
|
|
48
|
-
group: 'basic',
|
|
49
|
-
component: 'Text',
|
|
50
|
-
name: '文本'
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
page_content: {
|
|
55
|
-
props: {
|
|
56
|
-
id: 'page_content',
|
|
57
|
-
parentId: 'page_root',
|
|
58
|
-
group: 'build-in',
|
|
59
|
-
component: 'PageContent',
|
|
60
|
-
name: '页面内容'
|
|
61
|
-
},
|
|
62
|
-
children: ['layout_OL4gi6mr'],
|
|
63
|
-
layout_OL4gi6mr: {
|
|
64
|
-
props: {
|
|
65
|
-
component: 'Layout',
|
|
66
|
-
name: '布局容器',
|
|
67
|
-
icon: 'icon-layout',
|
|
68
|
-
group: 'container',
|
|
69
|
-
groupName: '布局',
|
|
70
|
-
desc: '布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。',
|
|
71
|
-
order: 1,
|
|
72
|
-
style: {},
|
|
73
|
-
columnRatio: '12:3:9',
|
|
74
|
-
columnSpacing: 16,
|
|
75
|
-
lineSpacing: 16,
|
|
76
|
-
id: 'layout_OL4gi6mr'
|
|
77
|
-
},
|
|
78
|
-
children: ['box_xFuKLKBI', 'box_jeVHiHZV', 'box_5KLx4rGb'],
|
|
79
|
-
box_xFuKLKBI: {
|
|
80
|
-
props: {
|
|
81
|
-
component: 'Box',
|
|
82
|
-
name: '容器',
|
|
83
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
84
|
-
icon: 'icon-box',
|
|
85
|
-
group: 'container',
|
|
86
|
-
groupName: '布局',
|
|
87
|
-
order: 3,
|
|
88
|
-
style: {
|
|
89
|
-
gridColumn: 'span 12',
|
|
90
|
-
height: 'auto'
|
|
91
|
-
},
|
|
92
|
-
id: 'box_xFuKLKBI'
|
|
93
|
-
},
|
|
94
|
-
children: ['button_okj2n87x', 'text_nmu9wqqw'],
|
|
95
|
-
button_okj2n87x: {
|
|
96
|
-
props: {
|
|
97
|
-
id: 'button_okj2n87x',
|
|
98
|
-
parentId: 'box_ihj2n8cv',
|
|
99
|
-
group: 'basic',
|
|
100
|
-
component: 'Button',
|
|
101
|
-
name: '按钮',
|
|
102
|
-
title: '这是一个按钮',
|
|
103
|
-
type: 'primary',
|
|
104
|
-
size: 'large'
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
text_nmu9wqqw: {
|
|
108
|
-
props: {
|
|
109
|
-
id: 'text_nmu9wqqw',
|
|
110
|
-
parentId: 'box_ihj2n8cv',
|
|
111
|
-
group: 'basic',
|
|
112
|
-
component: 'Text',
|
|
113
|
-
name: '文本'
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
box_jeVHiHZV: {
|
|
118
|
-
props: {
|
|
119
|
-
component: 'Box',
|
|
120
|
-
name: '容器',
|
|
121
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
122
|
-
icon: 'icon-box',
|
|
123
|
-
group: 'container',
|
|
124
|
-
groupName: '布局',
|
|
125
|
-
order: 3,
|
|
126
|
-
style: {
|
|
127
|
-
gridColumn: 'span 3',
|
|
128
|
-
height: '60px'
|
|
129
|
-
},
|
|
130
|
-
id: 'box_jeVHiHZV'
|
|
131
|
-
},
|
|
132
|
-
children: ['tree_hh2b87qs'],
|
|
133
|
-
tree_hh2b87qs: {
|
|
134
|
-
props: {
|
|
135
|
-
id: 'tree_hh2b87qs',
|
|
136
|
-
parentId: 'box_diam9dis',
|
|
137
|
-
group: 'advance',
|
|
138
|
-
component: 'Tree',
|
|
139
|
-
name: '树'
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
box_5KLx4rGb: {
|
|
144
|
-
props: {
|
|
145
|
-
component: 'Box',
|
|
146
|
-
name: '容器',
|
|
147
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
148
|
-
icon: 'icon-box',
|
|
149
|
-
group: 'container',
|
|
150
|
-
groupName: '布局',
|
|
151
|
-
order: 3,
|
|
152
|
-
style: {
|
|
153
|
-
gridColumn: 'span 9',
|
|
154
|
-
height: '360px'
|
|
155
|
-
},
|
|
156
|
-
id: 'box_5KLx4rGb'
|
|
157
|
-
},
|
|
158
|
-
children: ['table_diam9dis'],
|
|
159
|
-
table_diam9dis: {
|
|
160
|
-
props: {
|
|
161
|
-
id: 'table_diam9dis',
|
|
162
|
-
parentId: 'box_s0j3j08t',
|
|
163
|
-
group: 'advance',
|
|
164
|
-
component: 'Table',
|
|
165
|
-
name: '列表',
|
|
166
|
-
dataset: 'dsWmsMaterialsData'
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
page_footer: {
|
|
173
|
-
props: {
|
|
174
|
-
id: 'page_footer',
|
|
175
|
-
parentId: 'page_root',
|
|
176
|
-
group: 'build-in',
|
|
177
|
-
component: 'PageFooter',
|
|
178
|
-
name: '页面尾'
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
dialog_ms2o9hj0: {
|
|
182
|
-
props: {
|
|
183
|
-
id: 'dialog_ms2o9hj0',
|
|
184
|
-
parentId: 'page_root',
|
|
185
|
-
group: 'basic',
|
|
186
|
-
component: 'Dialog',
|
|
187
|
-
name: '对话框'
|
|
188
|
-
},
|
|
189
|
-
children: ['form_gyusku8j'],
|
|
190
|
-
form_gyusku8j: {
|
|
191
|
-
props: {
|
|
192
|
-
id: 'form_gyusku8j',
|
|
193
|
-
parentId: 'dialog_ms2o9hj0',
|
|
194
|
-
group: 'advance',
|
|
195
|
-
component: 'Form',
|
|
196
|
-
name: '表单'
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
drawer_ou79jw8c: {
|
|
201
|
-
props: {
|
|
202
|
-
id: 'drawer_ou79jw8c',
|
|
203
|
-
parentId: 'page_root',
|
|
204
|
-
group: 'basic',
|
|
205
|
-
component: 'Drawer',
|
|
206
|
-
name: '抽屉'
|
|
207
|
-
},
|
|
208
|
-
children: ['form_jknbjkun'],
|
|
209
|
-
form_jknbjkun: {
|
|
210
|
-
props: {
|
|
211
|
-
id: 'form_jknbjkun',
|
|
212
|
-
parentId: 'drawer_ou79jw8c',
|
|
213
|
-
group: 'advance',
|
|
214
|
-
component: 'Form',
|
|
215
|
-
name: '表单'
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
24
|
var LCPage = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
221
25
|
var pageCode = _ref2.pageCode,
|
|
222
26
|
className = _ref2.className,
|
|
@@ -231,8 +35,7 @@ var LCPage = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
231
35
|
useEffect(function () {
|
|
232
36
|
context._pageCode.current = pageCode;
|
|
233
37
|
mock(pageCode).then(function (pageData) {
|
|
234
|
-
|
|
235
|
-
context._setPageData(d);
|
|
38
|
+
context._pageData.current = decompress(pageData);
|
|
236
39
|
setFalse();
|
|
237
40
|
});
|
|
238
41
|
}, []);
|
package/es/lowcode/view/index.js
CHANGED
|
File without changes
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id", "children"];
|
|
3
3
|
import React, { useRef } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
4
|
import { useMemoizedFn } from 'ahooks';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
5
|
import Wrapper from "../Wrapper";
|
|
8
|
-
import styles from "./index.less";
|
|
9
|
-
import defaultMeta from "../../../engine/meta/box.props.default.json";
|
|
10
6
|
var LCBox = function LCBox(_ref) {
|
|
11
7
|
var id = _ref.id,
|
|
12
8
|
children = _ref.children,
|
|
13
|
-
|
|
14
|
-
style = _ref.style;
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
10
|
var ref = useRef();
|
|
16
11
|
var getTargetDom = useMemoizedFn(function () {
|
|
17
12
|
return ref.current;
|
|
@@ -20,19 +15,7 @@ var LCBox = function LCBox(_ref) {
|
|
|
20
15
|
id: id,
|
|
21
16
|
getTargetDom: getTargetDom
|
|
22
17
|
}, /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
ref: ref
|
|
24
|
-
|
|
25
|
-
style: style,
|
|
26
|
-
name: "box"
|
|
27
|
-
}, children));
|
|
18
|
+
ref: ref
|
|
19
|
+
}, "LCBox", children));
|
|
28
20
|
};
|
|
29
|
-
LCBox.propTypes = {
|
|
30
|
-
/**
|
|
31
|
-
* @name 唯一标识
|
|
32
|
-
* @type string
|
|
33
|
-
* @disabled true
|
|
34
|
-
*/
|
|
35
|
-
id: PropTypes.string.isRequired
|
|
36
|
-
};
|
|
37
|
-
LCBox.defaultProps = _objectSpread({}, defaultMeta);
|
|
38
21
|
export default LCBox;
|
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "children"];
|
|
3
4
|
import React, { useRef } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
5
|
import { useMemoizedFn } from 'ahooks';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
6
|
import { useLDContext } from "../../../engine/provider/ContextProvider";
|
|
8
7
|
import { Button } from 'luck-design/antd';
|
|
9
8
|
import Wrapper from "../Wrapper";
|
|
10
9
|
import { RUNTIME } from "../../../constants";
|
|
11
|
-
import defaultMeta from "../../../engine/meta/button.props.default.json";
|
|
12
10
|
var LCButton = function LCButton(_ref) {
|
|
13
11
|
var id = _ref.id,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
size = _ref.size,
|
|
17
|
-
block = _ref.block,
|
|
18
|
-
serial = _ref.serial,
|
|
19
|
-
serialEffect = _ref.serialEffect,
|
|
20
|
-
ghost = _ref.ghost,
|
|
21
|
-
style = _ref.style,
|
|
22
|
-
className = _ref.className;
|
|
12
|
+
children = _ref.children,
|
|
13
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
14
|
var context = useLDContext();
|
|
24
15
|
var ref = useRef();
|
|
25
16
|
var getTargetDom = useMemoizedFn(function () {
|
|
@@ -38,65 +29,9 @@ var LCButton = function LCButton(_ref) {
|
|
|
38
29
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
39
30
|
id: id,
|
|
40
31
|
getTargetDom: getTargetDom
|
|
41
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
42
33
|
ref: ref,
|
|
43
|
-
type: type,
|
|
44
|
-
size: size,
|
|
45
|
-
block: block,
|
|
46
|
-
ghost: ghost,
|
|
47
|
-
style: style,
|
|
48
|
-
className: classNames(_defineProperty({}, className, !!className)),
|
|
49
34
|
onClick: handleClick
|
|
50
|
-
},
|
|
35
|
+
}, props), "LCButton-", id));
|
|
51
36
|
};
|
|
52
|
-
LCButton.propTypes = {
|
|
53
|
-
/**
|
|
54
|
-
* @name 唯一标识
|
|
55
|
-
* @type string
|
|
56
|
-
* @disabled true
|
|
57
|
-
*/
|
|
58
|
-
id: PropTypes.string.isRequired,
|
|
59
|
-
/**
|
|
60
|
-
* @name 按钮标题
|
|
61
|
-
* @type string
|
|
62
|
-
* @default 12:3:9
|
|
63
|
-
*/
|
|
64
|
-
title: PropTypes.string,
|
|
65
|
-
/**
|
|
66
|
-
* @name 按钮类型
|
|
67
|
-
* @type oneOf('default', 'primary', 'dashed', 'danger')
|
|
68
|
-
* @default 'default'
|
|
69
|
-
*/
|
|
70
|
-
type: PropTypes.oneOf(['default', 'primary', 'dashed', 'danger']),
|
|
71
|
-
/**
|
|
72
|
-
* @name 按钮大小
|
|
73
|
-
* @type oneOf('small', 'default', 'large')
|
|
74
|
-
* @default 'default'
|
|
75
|
-
*/
|
|
76
|
-
size: PropTypes.oneOf(['small', 'default', 'large']),
|
|
77
|
-
/**
|
|
78
|
-
* @name 将按钮宽度调整为其父宽度的选项
|
|
79
|
-
* @type boolean
|
|
80
|
-
* @default false
|
|
81
|
-
*/
|
|
82
|
-
block: PropTypes.bool,
|
|
83
|
-
/**
|
|
84
|
-
* @name 资源串
|
|
85
|
-
* @type string
|
|
86
|
-
*/
|
|
87
|
-
serial: PropTypes.string,
|
|
88
|
-
/**
|
|
89
|
-
* @name 资源串效果
|
|
90
|
-
* @type oneOf('disabled','hidden')
|
|
91
|
-
* @default 'disabled'
|
|
92
|
-
*/
|
|
93
|
-
serialEffect: PropTypes.oneOf(['disabled', 'hidden']),
|
|
94
|
-
/**
|
|
95
|
-
* @name 幽灵按钮
|
|
96
|
-
* @type boolean
|
|
97
|
-
* @default false
|
|
98
|
-
*/
|
|
99
|
-
ghost: PropTypes.bool
|
|
100
|
-
};
|
|
101
|
-
LCButton.defaultProps = _objectSpread({}, defaultMeta);
|
|
102
37
|
export default LCButton;
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["id", "children"];
|
|
5
5
|
import React, { useRef, useImperativeHandle } from 'react';
|
|
6
|
-
import { useMemoizedFn, useBoolean
|
|
6
|
+
import { useMemoizedFn, useBoolean } from 'ahooks';
|
|
7
7
|
import { Modal } from 'luck-design/antd';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import { useLDContext } from "../../../engine/provider/ContextProvider";
|
|
@@ -34,17 +34,6 @@ var LCDialog = function LCDialog(_ref) {
|
|
|
34
34
|
toggle: toggle
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
|
-
useUpdateEffect(function () {
|
|
38
|
-
if (open) {
|
|
39
|
-
context.$publisher(context.topics.MODAL_OPEN, {
|
|
40
|
-
id: id
|
|
41
|
-
});
|
|
42
|
-
} else {
|
|
43
|
-
context.$publisher(context.topics.MODAL_CLOSE, {
|
|
44
|
-
id: id
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}, [open]);
|
|
48
37
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
49
38
|
id: id,
|
|
50
39
|
getTargetDom: getTargetDom,
|
|
File without changes
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["id", "children"
|
|
3
|
+
var _excluded = ["id", "children"];
|
|
5
4
|
import React, { useRef, useImperativeHandle } from 'react';
|
|
6
|
-
import { useMemoizedFn, useBoolean
|
|
5
|
+
import { useMemoizedFn, useBoolean } from 'ahooks';
|
|
7
6
|
import { Drawer } from 'luck-design/antd';
|
|
8
|
-
import classNames from 'classnames';
|
|
9
7
|
import { useLDContext } from "../../../engine/provider/ContextProvider";
|
|
10
8
|
import { CELL_KEY, RUNTIME } from "../../../constants";
|
|
11
9
|
import Wrapper from "../Wrapper";
|
|
12
|
-
import styles from "./style.less";
|
|
13
10
|
var LCDrawer = function LCDrawer(_ref) {
|
|
14
11
|
var id = _ref.id,
|
|
15
12
|
children = _ref.children,
|
|
16
|
-
className = _ref.className,
|
|
17
13
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
14
|
var apiRef = useRef();
|
|
19
15
|
var context = useLDContext();
|
|
@@ -35,17 +31,6 @@ var LCDrawer = function LCDrawer(_ref) {
|
|
|
35
31
|
toggle: toggle
|
|
36
32
|
};
|
|
37
33
|
});
|
|
38
|
-
useUpdateEffect(function () {
|
|
39
|
-
if (open) {
|
|
40
|
-
context.$publisher(context.topics.MODAL_OPEN, {
|
|
41
|
-
id: id
|
|
42
|
-
});
|
|
43
|
-
} else {
|
|
44
|
-
context.$publisher(context.topics.MODAL_CLOSE, {
|
|
45
|
-
id: id
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}, [open]);
|
|
49
34
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
50
35
|
id: id,
|
|
51
36
|
getTargetDom: getTargetDom,
|
|
@@ -55,8 +40,7 @@ var LCDrawer = function LCDrawer(_ref) {
|
|
|
55
40
|
getContainer: context.runtime !== RUNTIME.DESIGN,
|
|
56
41
|
style: {
|
|
57
42
|
position: context.runtime === RUNTIME.DESIGN ? 'absolute' : 'fixed'
|
|
58
|
-
}
|
|
59
|
-
className: classNames(_defineProperty(_defineProperty({}, styles['runtime-drawer'], context.runtime === RUNTIME.DESIGN), className, !!className))
|
|
43
|
+
}
|
|
60
44
|
}, /*#__PURE__*/React.createElement("div", null, "LCDrawer-", id), children));
|
|
61
45
|
};
|
|
62
46
|
export default LCDrawer;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|