@luck-design-biz/luckda 0.0.23 → 0.0.24-1
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 +0 -0
- package/es/components/LdAutoForm/index.js +0 -0
- 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 +1 -4
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +0 -0
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +0 -0
- 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 +0 -0
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +0 -0
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -0
- package/es/lowcode/constants/api-url.js +2 -1
- package/es/lowcode/constants/event-topics.js +14 -1
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +60 -0
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +50 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +50 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +42 -0
- package/es/lowcode/engine/meta/box.props.default.json +12 -0
- package/es/lowcode/engine/meta/box.props.json +42 -0
- package/es/lowcode/engine/meta/button.props.default.json +15 -7
- package/es/lowcode/engine/meta/{components/button.json → button.props.json} +121 -103
- package/es/lowcode/engine/meta/cardlist.props.default.json +17 -9
- package/es/lowcode/engine/meta/{components/card-list.json → cardlist.props.json} +143 -142
- package/es/lowcode/engine/meta/components-list.json +127 -121
- package/es/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/{lib/lowcode/engine/meta/components/modal.json → es/lowcode/engine/meta/dialog.props.json} +120 -119
- package/es/lowcode/engine/meta/drawer.props.default.json +17 -9
- package/{lib/lowcode/engine/meta/components/drawer.json → es/lowcode/engine/meta/drawer.props.json} +143 -142
- package/es/lowcode/engine/meta/form.props.default.json +12 -4
- package/{lib/lowcode/engine/meta/components/form.json → es/lowcode/engine/meta/form.props.json} +116 -115
- package/es/lowcode/engine/meta/iframe.props.default.json +10 -2
- package/es/lowcode/engine/meta/{components/iframe.json → iframe.props.json} +31 -30
- package/es/lowcode/engine/meta/image.props.default.json +15 -7
- package/es/lowcode/engine/meta/{components/image.json → image.props.json} +113 -112
- package/es/lowcode/engine/meta/imex.props.default.json +11 -3
- package/{lib/lowcode/engine/meta/components/imex.json → es/lowcode/engine/meta/imex.props.json} +81 -80
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +10 -1
- package/es/lowcode/engine/meta/{components/jsx.json → jsx.props.json} +24 -23
- package/es/lowcode/engine/meta/layout.props.default.json +12 -4
- package/{lib/lowcode/engine/meta/components/layout.json → es/lowcode/engine/meta/layout.props.json} +107 -106
- package/es/lowcode/engine/meta/link.props.default.json +13 -5
- package/{lib/lowcode/engine/meta/components/link.json → es/lowcode/engine/meta/link.props.json} +111 -110
- package/es/lowcode/engine/meta/section.props.default.json +16 -8
- package/{lib/lowcode/engine/meta/components/section.json → es/lowcode/engine/meta/section.props.json} +107 -106
- package/es/lowcode/engine/meta/split.props.default.json +12 -4
- package/es/lowcode/engine/meta/{components/split.json → split.props.json} +71 -70
- package/es/lowcode/engine/meta/table.props.default.json +11 -9
- package/es/lowcode/engine/meta/table.props.json +174 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +17 -9
- package/es/lowcode/engine/meta/{components/tabs.json → tabs.props.json} +140 -139
- package/es/lowcode/engine/meta/text.props.default.json +11 -3
- package/{lib/lowcode/engine/meta/components/text.json → es/lowcode/engine/meta/text.props.json} +65 -64
- package/es/lowcode/engine/meta/tree.props.default.json +16 -8
- package/es/lowcode/engine/meta/{components/tree.json → tree.props.json} +156 -155
- package/es/lowcode/engine/provider/ContextProvider.js +10 -17
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +80 -5
- package/es/lowcode/engine/tools/helper.js +0 -0
- package/es/lowcode/engine/tools/usePromiseState.js +24 -0
- package/es/lowcode/index.js +0 -0
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +274 -42
- package/es/lowcode/painter/I18n.js +202 -2
- package/es/lowcode/painter/Outline.js +33 -28
- package/es/lowcode/painter/Panel.js +201 -2
- package/es/lowcode/painter/Ribbon.js +61 -55
- package/es/lowcode/painter/components/Collapse.js +31 -0
- package/es/lowcode/painter/components/NumberInput.js +93 -0
- package/es/lowcode/painter/components/PanelItem.js +52 -9
- package/es/lowcode/painter/components/PopConfirm.js +20 -0
- package/es/lowcode/painter/components/PopForm.js +71 -0
- package/es/lowcode/painter/components/RuleInput.js +4 -4
- package/es/lowcode/painter/components/SortBox.js +92 -0
- package/es/lowcode/painter/components/TabEditor.js +88 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +118 -0
- package/es/lowcode/painter/components/code-editor/CssEditor.js +14 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +64 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +84 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -0
- package/es/lowcode/painter/index.js +27 -1
- package/es/lowcode/painter/panel-section/ButtonType.js +39 -0
- package/es/lowcode/painter/panel-section/Icon.js +48 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +134 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +56 -49
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +292 -0
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +543 -0
- package/es/lowcode/painter/panel-section/StylePanel/Height.js +48 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +64 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +101 -0
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +48 -0
- package/es/lowcode/painter/panel-section/StylePanel/index.js +12 -0
- package/es/lowcode/painter/panel-section/TabItems.js +237 -0
- package/es/lowcode/painter/services/I18n.js +85 -0
- package/es/lowcode/painter/style/button-type.less +5 -0
- package/es/lowcode/painter/style/collapse.less +21 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +109 -5
- package/es/lowcode/painter/style/display.less +17 -0
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -0
- package/es/lowcode/painter/style/icon-selector.less +22 -0
- package/es/lowcode/painter/style/icon.less +11 -0
- package/es/lowcode/painter/style/index.less +0 -1
- package/es/lowcode/painter/style/layout-ratio.less +1 -1
- package/es/lowcode/painter/style/number-input.less +17 -0
- package/es/lowcode/painter/style/outline.less +2 -0
- package/es/lowcode/painter/style/panel-item.less +38 -15
- package/es/lowcode/painter/style/panel.less +137 -0
- package/es/lowcode/painter/style/pop-confirm.less +10 -0
- package/es/lowcode/painter/style/pop-form.less +20 -0
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +1 -0
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/painter/style/style-panel.less +5 -0
- package/es/lowcode/painter/style/tabeditor.less +90 -0
- package/es/lowcode/painter/style/tabitems.less +90 -0
- package/es/lowcode/view/Canvas.js +63 -55
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +199 -2
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +20 -0
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Box/index.js +22 -5
- package/es/lowcode/view/lc-components/Box/index.less +15 -0
- package/es/lowcode/view/lc-components/Box/meta.json +42 -0
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +21 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Button/index.js +72 -7
- package/es/lowcode/view/lc-components/Button/meta.json +122 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/{lib/lowcode/engine/meta/components/table.json → es/lowcode/view/lc-components/CardList/meta.json} +11 -28
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +12 -1
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +19 -3
- package/es/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/es/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Form/index.js +0 -0
- package/es/lowcode/view/lc-components/Form/meta.json +117 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/meta.json +114 -0
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +75 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +15 -0
- package/es/lowcode/view/lc-components/Layout/index.js +40 -7
- package/es/lowcode/view/lc-components/Layout/index.less +5 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/meta.json +108 -0
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/meta.json +72 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +16 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Table/index.js +138 -8
- package/es/lowcode/view/lc-components/Table/meta.json +174 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -0
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/es/lowcode/view/lc-components/Wrapper.js +32 -23
- 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 +0 -1
- package/es/services.js +0 -0
- package/es/upload/Form/gridForm.js +1 -1
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +0 -0
- 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 +0 -0
- package/es/utils/grid.js +4 -3
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +0 -0
- package/lib/components/LdAutoForm/index.js +0 -0
- 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 +1 -5
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +0 -0
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +0 -0
- 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 +0 -0
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +0 -0
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -0
- package/lib/lowcode/constants/api-url.js +3 -2
- package/lib/lowcode/constants/event-topics.js +15 -2
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +73 -0
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +56 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +56 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +48 -0
- package/lib/lowcode/engine/meta/box.props.default.json +12 -0
- package/lib/lowcode/engine/meta/box.props.json +42 -0
- package/lib/lowcode/engine/meta/button.props.default.json +15 -7
- package/lib/lowcode/engine/meta/{components/button.json → button.props.json} +121 -103
- package/lib/lowcode/engine/meta/cardlist.props.default.json +17 -9
- package/lib/lowcode/engine/meta/{components/card-list.json → cardlist.props.json} +143 -142
- package/lib/lowcode/engine/meta/components-list.json +127 -121
- package/lib/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/{es/lowcode/engine/meta/components/modal.json → lib/lowcode/engine/meta/dialog.props.json} +120 -119
- package/lib/lowcode/engine/meta/drawer.props.default.json +17 -9
- package/{es/lowcode/engine/meta/components/drawer.json → lib/lowcode/engine/meta/drawer.props.json} +143 -142
- package/lib/lowcode/engine/meta/form.props.default.json +12 -4
- package/{es/lowcode/engine/meta/components/form.json → lib/lowcode/engine/meta/form.props.json} +116 -115
- package/lib/lowcode/engine/meta/iframe.props.default.json +10 -2
- package/lib/lowcode/engine/meta/{components/iframe.json → iframe.props.json} +31 -30
- package/lib/lowcode/engine/meta/image.props.default.json +15 -7
- package/lib/lowcode/engine/meta/{components/image.json → image.props.json} +113 -112
- package/lib/lowcode/engine/meta/imex.props.default.json +11 -3
- package/{es/lowcode/engine/meta/components/imex.json → lib/lowcode/engine/meta/imex.props.json} +81 -80
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +10 -1
- package/lib/lowcode/engine/meta/{components/jsx.json → jsx.props.json} +24 -23
- package/lib/lowcode/engine/meta/layout.props.default.json +12 -4
- package/{es/lowcode/engine/meta/components/layout.json → lib/lowcode/engine/meta/layout.props.json} +107 -106
- package/lib/lowcode/engine/meta/link.props.default.json +13 -5
- package/{es/lowcode/engine/meta/components/link.json → lib/lowcode/engine/meta/link.props.json} +111 -110
- package/lib/lowcode/engine/meta/section.props.default.json +16 -8
- package/{es/lowcode/engine/meta/components/section.json → lib/lowcode/engine/meta/section.props.json} +107 -106
- package/lib/lowcode/engine/meta/split.props.default.json +12 -4
- package/lib/lowcode/engine/meta/{components/split.json → split.props.json} +71 -70
- package/lib/lowcode/engine/meta/table.props.default.json +11 -9
- package/lib/lowcode/engine/meta/table.props.json +174 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +17 -9
- package/lib/lowcode/engine/meta/{components/tabs.json → tabs.props.json} +140 -139
- package/lib/lowcode/engine/meta/text.props.default.json +11 -3
- package/{es/lowcode/engine/meta/components/text.json → lib/lowcode/engine/meta/text.props.json} +65 -64
- package/lib/lowcode/engine/meta/tree.props.default.json +16 -8
- package/lib/lowcode/engine/meta/{components/tree.json → tree.props.json} +156 -155
- package/lib/lowcode/engine/provider/ContextProvider.js +9 -16
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +81 -5
- package/lib/lowcode/engine/tools/helper.js +0 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +31 -0
- package/lib/lowcode/index.js +0 -0
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +271 -40
- package/lib/lowcode/painter/I18n.js +203 -2
- package/lib/lowcode/painter/Outline.js +32 -27
- package/lib/lowcode/painter/Panel.js +201 -2
- package/lib/lowcode/painter/Ribbon.js +63 -64
- package/lib/lowcode/painter/components/Collapse.js +39 -0
- package/lib/lowcode/painter/components/NumberInput.js +101 -0
- package/lib/lowcode/painter/components/PanelItem.js +53 -9
- package/lib/lowcode/painter/components/PopConfirm.js +26 -0
- package/lib/lowcode/painter/components/PopForm.js +77 -0
- package/lib/lowcode/painter/components/RuleInput.js +4 -4
- package/lib/lowcode/painter/components/SortBox.js +99 -0
- package/lib/lowcode/painter/components/TabEditor.js +94 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +126 -0
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +22 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +72 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +95 -0
- package/lib/lowcode/painter/components/code-editor/index.js +20 -0
- package/lib/lowcode/painter/index.js +29 -1
- package/lib/lowcode/painter/panel-section/ButtonType.js +46 -0
- package/lib/lowcode/painter/panel-section/Icon.js +54 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +141 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +55 -48
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +299 -0
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +550 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Height.js +55 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +72 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +112 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Width.js +55 -0
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +19 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +245 -0
- package/lib/lowcode/painter/services/I18n.js +95 -0
- package/lib/lowcode/painter/style/button-type.less +5 -0
- package/lib/lowcode/painter/style/collapse.less +21 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +109 -5
- package/lib/lowcode/painter/style/display.less +17 -0
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -0
- package/lib/lowcode/painter/style/icon-selector.less +22 -0
- package/lib/lowcode/painter/style/icon.less +11 -0
- package/lib/lowcode/painter/style/index.less +0 -1
- package/lib/lowcode/painter/style/layout-ratio.less +1 -1
- package/lib/lowcode/painter/style/number-input.less +17 -0
- package/lib/lowcode/painter/style/outline.less +2 -0
- package/lib/lowcode/painter/style/panel-item.less +38 -15
- package/lib/lowcode/painter/style/panel.less +137 -0
- package/lib/lowcode/painter/style/pop-confirm.less +10 -0
- package/lib/lowcode/painter/style/pop-form.less +20 -0
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +1 -0
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/painter/style/style-panel.less +5 -0
- package/lib/lowcode/painter/style/tabeditor.less +90 -0
- package/lib/lowcode/painter/style/tabitems.less +90 -0
- package/lib/lowcode/view/Canvas.js +68 -60
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +198 -1
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +27 -0
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Box/index.js +23 -6
- package/lib/lowcode/view/lc-components/Box/index.less +15 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +42 -0
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +28 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Button/index.js +73 -8
- package/lib/lowcode/view/lc-components/Button/meta.json +122 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/{es/lowcode/engine/meta/components/table.json → lib/lowcode/view/lc-components/CardList/meta.json} +11 -28
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +11 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +18 -2
- package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Form/index.js +0 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +117 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +82 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +22 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +41 -8
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +23 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Table/index.js +138 -8
- package/lib/lowcode/view/lc-components/Table/meta.json +174 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +30 -21
- 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 +0 -1
- package/lib/services.js +0 -0
- package/lib/upload/Form/gridForm.js +1 -1
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +0 -0
- 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 +0 -0
- package/lib/utils/grid.js +6 -5
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +12 -5
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/engine/meta/modal.props.default.json +0 -11
- package/es/lowcode/engine/tools/lcid.js +0 -16
- package/es/lowcode/painter/panel-section/Radio.js +0 -58
- package/lib/lowcode/engine/meta/modal.props.default.json +0 -11
- package/lib/lowcode/engine/tools/lcid.js +0 -22
- package/lib/lowcode/painter/panel-section/Radio.js +0 -65
|
@@ -6,6 +6,7 @@ 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"));
|
|
9
10
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
11
|
var _interopRequireWildcard2 = _interopRequireDefault(require("@babel/runtime/helpers/interopRequireWildcard"));
|
|
11
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
@@ -15,17 +16,17 @@ var _react = _interopRequireWildcard3(require("react"));
|
|
|
15
16
|
var _umi = require("umi");
|
|
16
17
|
var _ahooks = require("ahooks");
|
|
17
18
|
var _lodash = require("lodash");
|
|
18
|
-
var
|
|
19
|
+
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
20
|
+
var _Box = _interopRequireDefault(require("./lc-components/Box"));
|
|
19
21
|
var _constants = require("../constants");
|
|
20
22
|
var _canvas = _interopRequireDefault(require("./style/canvas.less"));
|
|
21
|
-
var _excluded = ["props", "children"]
|
|
23
|
+
var _excluded = ["props", "children"],
|
|
24
|
+
_excluded2 = ["id", "component", "name", "desc", "icon", "group", "groupName", "order"];
|
|
22
25
|
var PAGE_CELL = [_constants.CELL_KEY.PAGE_HEADER, _constants.CELL_KEY.PAGE_CONTENT, _constants.CELL_KEY.PAGE_FOOTER];
|
|
23
26
|
var Canvas = function Canvas(_ref) {
|
|
24
27
|
var dataSource = _ref.dataSource;
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
var contentRef = (0, _react.useRef)();
|
|
28
|
-
var footerRef = (0, _react.useRef)();
|
|
28
|
+
var dynamicCompMap = (0, _react.useRef)({});
|
|
29
|
+
var context = (0, _ContextProvider.useLDContext)();
|
|
29
30
|
var _useState = (0, _react.useState)(null),
|
|
30
31
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
31
32
|
header = _useState2[0],
|
|
@@ -47,41 +48,55 @@ var Canvas = function Canvas(_ref) {
|
|
|
47
48
|
children = _ref2.children,
|
|
48
49
|
childrenMap = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
49
50
|
if (props && !PAGE_CELL.includes(props.id)) {
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
51
|
+
var id = props.id,
|
|
52
|
+
component = props.component,
|
|
53
|
+
name = props.name,
|
|
54
|
+
desc = props.desc,
|
|
55
|
+
icon = props.icon,
|
|
56
|
+
group = props.group,
|
|
57
|
+
groupName = props.groupName,
|
|
58
|
+
order = props.order,
|
|
59
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
60
|
+
if (!dynamicCompMap.current[component]) {
|
|
61
|
+
dynamicCompMap.current[component] = (0, _umi.dynamic)({
|
|
62
|
+
loader: function () {
|
|
63
|
+
var _loader = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
64
|
+
var _runtime, _yield$import, _Comp;
|
|
65
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
66
|
+
while (1) switch (_context.prev = _context.next) {
|
|
67
|
+
case 0:
|
|
68
|
+
_runtime = (0, _lodash.upperFirst)(context.runtime);
|
|
69
|
+
_context.next = 3;
|
|
70
|
+
return function (specifier) {
|
|
71
|
+
return new Promise(function (r) {
|
|
72
|
+
return r(specifier);
|
|
73
|
+
}).then(function (s) {
|
|
74
|
+
return (0, _interopRequireWildcard2.default)(require(s));
|
|
75
|
+
});
|
|
76
|
+
}("./lc-components/".concat(component, "/Function").concat(_runtime));
|
|
77
|
+
case 3:
|
|
78
|
+
_yield$import = _context.sent;
|
|
79
|
+
_Comp = _yield$import.default;
|
|
80
|
+
return _context.abrupt("return", _Comp);
|
|
81
|
+
case 6:
|
|
82
|
+
case "end":
|
|
83
|
+
return _context.stop();
|
|
84
|
+
}
|
|
85
|
+
}, _callee);
|
|
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) {
|
|
85
100
|
return render(childrenMap[_id]);
|
|
86
101
|
}));
|
|
87
102
|
}
|
|
@@ -114,37 +129,30 @@ var Canvas = function Canvas(_ref) {
|
|
|
114
129
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
115
130
|
id: "page-canvas",
|
|
116
131
|
className: _canvas.default['lc-view-canvas']
|
|
117
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
132
|
+
}, /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
133
|
+
key: _constants.CELL_KEY.PAGE_HEADER,
|
|
118
134
|
id: _constants.CELL_KEY.PAGE_HEADER,
|
|
119
|
-
getTargetDom: function getTargetDom() {
|
|
120
|
-
return headerRef.current;
|
|
121
|
-
}
|
|
122
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
-
ref: headerRef,
|
|
124
135
|
style: {
|
|
125
136
|
width: '100%',
|
|
126
137
|
height: 120,
|
|
127
138
|
backgroundColor: '#d3f261'
|
|
128
139
|
}
|
|
129
|
-
}, header)
|
|
140
|
+
}, header), /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
141
|
+
key: _constants.CELL_KEY.PAGE_CONTENT,
|
|
130
142
|
id: _constants.CELL_KEY.PAGE_CONTENT,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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;
|
|
143
|
+
style: {
|
|
144
|
+
width: '100%',
|
|
145
|
+
height: 'calc(100% - 120px)',
|
|
146
|
+
backgroundColor: 'transparent'
|
|
140
147
|
}
|
|
141
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
142
|
-
|
|
148
|
+
}, content), /*#__PURE__*/_react.default.createElement(_Box.default, {
|
|
149
|
+
key: _constants.CELL_KEY.PAGE_FOOTER,
|
|
150
|
+
id: _constants.CELL_KEY.PAGE_FOOTER,
|
|
143
151
|
style: {
|
|
144
152
|
width: '100%',
|
|
145
153
|
height: 80,
|
|
146
154
|
backgroundColor: '#69c0ff'
|
|
147
155
|
}
|
|
148
|
-
}, footer)
|
|
156
|
+
}, footer), modal);
|
|
149
157
|
};
|
|
150
158
|
var _default = exports.default = Canvas;
|
|
File without changes
|
package/lib/lowcode/view/Page.js
CHANGED
|
@@ -29,6 +29,202 @@ 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
|
+
};
|
|
32
228
|
var LCPage = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
33
229
|
var pageCode = _ref2.pageCode,
|
|
34
230
|
className = _ref2.className,
|
|
@@ -43,7 +239,8 @@ var LCPage = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
43
239
|
(0, _react.useEffect)(function () {
|
|
44
240
|
context._pageCode.current = pageCode;
|
|
45
241
|
mock(pageCode).then(function (pageData) {
|
|
46
|
-
context.
|
|
242
|
+
// context._setPageData(decompress(pageData));
|
|
243
|
+
context._setPageData(d);
|
|
47
244
|
setFalse();
|
|
48
245
|
});
|
|
49
246
|
}, []);
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _ahooks = require("ahooks");
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
15
|
+
var _index2 = _interopRequireDefault(require("./index.less"));
|
|
16
|
+
var _excluded = ["children"];
|
|
17
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
18
|
+
var children = _ref.children,
|
|
19
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
20
|
+
var isEmpty = (0, _ahooks.useCreation)(function () {
|
|
21
|
+
return !children || _react.default.Children.count(children) === 0;
|
|
22
|
+
}, [children]);
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, (0, _extends2.default)({
|
|
24
|
+
className: (0, _classnames.default)(_index2.default['lc-component-box-design'], (0, _defineProperty2.default)({}, _index2.default.placeholder, isEmpty))
|
|
25
|
+
}, props), isEmpty ? '点击组件库的组件或拖拽组件到这里' : children);
|
|
26
|
+
};
|
|
27
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
13
|
var _ahooks = require("ahooks");
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
15
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
13
|
-
var
|
|
16
|
+
var _index = _interopRequireDefault(require("./index.less"));
|
|
17
|
+
var _boxPropsDefault = _interopRequireDefault(require("../../../engine/meta/box.props.default.json"));
|
|
14
18
|
var LCBox = function LCBox(_ref) {
|
|
15
19
|
var id = _ref.id,
|
|
16
20
|
children = _ref.children,
|
|
17
|
-
|
|
21
|
+
className = _ref.className,
|
|
22
|
+
style = _ref.style;
|
|
18
23
|
var ref = (0, _react.useRef)();
|
|
19
24
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
20
25
|
return ref.current;
|
|
@@ -23,7 +28,19 @@ var LCBox = function LCBox(_ref) {
|
|
|
23
28
|
id: id,
|
|
24
29
|
getTargetDom: getTargetDom
|
|
25
30
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
-
ref: ref
|
|
27
|
-
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: (0, _classnames.default)(_index.default['lc-component-box'], (0, _defineProperty2.default)({}, className, !!className)),
|
|
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
|
|
28
44
|
};
|
|
45
|
+
LCBox.defaultProps = (0, _objectSpread2.default)({}, _boxPropsDefault.default);
|
|
29
46
|
var _default = exports.default = LCBox;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.lc-component-box {
|
|
2
|
+
background-color: white;
|
|
3
|
+
&-design.placeholder {
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
min-height: 60px;
|
|
7
|
+
background-color: #f0f0f0;
|
|
8
|
+
border: 1px dotted;
|
|
9
|
+
color: #a7b1bd;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Box",
|
|
3
|
+
"name": "容器",
|
|
4
|
+
"desc": "盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。",
|
|
5
|
+
"icon": "icon-box",
|
|
6
|
+
"group": "container",
|
|
7
|
+
"groupName": "布局",
|
|
8
|
+
"order": 3,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"style": {
|
|
18
|
+
"height": "60px"
|
|
19
|
+
},
|
|
20
|
+
"advance": {
|
|
21
|
+
"events": [
|
|
22
|
+
{
|
|
23
|
+
"key": "onMount",
|
|
24
|
+
"name": "组件首次渲染时",
|
|
25
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
26
|
+
"func": "(params)=>{\n\t\n}"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "onUnmount",
|
|
30
|
+
"name": "组件卸载时",
|
|
31
|
+
"desc": "在组件卸载时,执行方法。",
|
|
32
|
+
"func": "(params)=>{\n\t\n}"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"key": "onClick",
|
|
36
|
+
"name": "点击事件",
|
|
37
|
+
"desc": "点击文本时,执行方法",
|
|
38
|
+
"func": "(e)=>{\n\t\n}"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
14
|
+
var _index2 = require("../../../constants/index");
|
|
15
|
+
var _excluded = ["id", "children", "context", "className"];
|
|
16
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
17
|
+
var id = _ref.id,
|
|
18
|
+
children = _ref.children,
|
|
19
|
+
context = _ref.context,
|
|
20
|
+
className = _ref.className,
|
|
21
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, (0, _extends2.default)({
|
|
23
|
+
id: id,
|
|
24
|
+
className: (0, _classnames.default)(_index2.CELL_CLASS_NAME, (0, _defineProperty2.default)({}, className, !!className)),
|
|
25
|
+
context: context
|
|
26
|
+
}, props), children);
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|