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