@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.lc-painter-panel-section-iconselector {
|
|
2
|
+
|
|
3
|
+
.components-search {
|
|
4
|
+
padding: 0 20px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.icon-warp {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: repeat(4, 1fr);
|
|
10
|
+
.icon-box {
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
height: 40px;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
.icon-item {
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.lc-painter-panel-section-components-number-input {
|
|
2
|
+
.num-input-wrap {
|
|
3
|
+
position: relative;
|
|
4
|
+
|
|
5
|
+
.num-input {
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.num-option {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
position: absolute;
|
|
12
|
+
right: 26px;
|
|
13
|
+
color: rgba(0, 0, 0, 0.6);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,21 +1,44 @@
|
|
|
1
1
|
.lc-painter-components-panelitem {
|
|
2
|
-
|
|
3
|
-
justify-content: space-between;
|
|
4
|
-
gap: 20px;
|
|
5
|
-
align-items: center;
|
|
6
|
-
min-height: 28px;
|
|
2
|
+
padding: 0 16px;
|
|
7
3
|
|
|
8
|
-
.
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.item-component {
|
|
4
|
+
.panelrow {
|
|
13
5
|
display: flex;
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
min-height: 28px;
|
|
9
|
+
margin-bottom: 4px;
|
|
10
|
+
|
|
11
|
+
.item-label {
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
width: 80px;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 4px;
|
|
18
|
+
user-select: none;
|
|
19
|
+
}
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
.item-component {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.item-icon {
|
|
27
|
+
font-size: 8px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* 使.item-component-box的直接子元素铺满 */
|
|
32
|
+
.item-component > *:not(.ant-switch) {
|
|
33
|
+
flex-grow: 1;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.addon {
|
|
37
|
+
background-color: rgba(31, 56, 88, 0.04);
|
|
38
|
+
min-height: 20px;
|
|
39
|
+
margin-bottom: 6px;
|
|
40
|
+
margin-top: 6px;
|
|
41
|
+
padding: 4px 8px;
|
|
42
|
+
border-radius: 6px;
|
|
20
43
|
}
|
|
21
44
|
}
|
|
@@ -1,5 +1,142 @@
|
|
|
1
1
|
.lc-painter-panel {
|
|
2
|
+
position: relative;
|
|
2
3
|
width: 320px;
|
|
3
4
|
height: 100%;
|
|
4
5
|
border-left: 1px solid #e8e8e8;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
|
|
10
|
+
&-empty {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
text-align: center;
|
|
17
|
+
padding-top: 64px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.hidden {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-topbar {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 40px;
|
|
27
|
+
padding: 8px 16px;
|
|
28
|
+
border-bottom: 1px solid #e3e3e3;
|
|
29
|
+
background-color: white;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
.active-node-level:hover {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-tabbar {
|
|
38
|
+
position: relative;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 36px;
|
|
41
|
+
.headerList {
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: space-around;
|
|
44
|
+
padding: 0 !important;
|
|
45
|
+
|
|
46
|
+
& > li {
|
|
47
|
+
padding: 8px;
|
|
48
|
+
font-size: 12px;
|
|
49
|
+
color: #a0a0a0;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
color: #363636;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.actived {
|
|
59
|
+
color: #363636;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& > i {
|
|
63
|
+
margin-right: 4px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:global {
|
|
68
|
+
li#header-active {
|
|
69
|
+
color: #363636;
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.underline {
|
|
76
|
+
position: absolute;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
height: 5px;
|
|
79
|
+
background: var(--ant-primary-color);
|
|
80
|
+
border-radius: 3px;
|
|
81
|
+
width: 20px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&-content {
|
|
86
|
+
position: relative;
|
|
87
|
+
width: 100%;
|
|
88
|
+
flex: 1;
|
|
89
|
+
overflow-x: hidden;
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
padding: 8px 0;
|
|
92
|
+
|
|
93
|
+
.next-content {
|
|
94
|
+
height: 100%;
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
|
|
98
|
+
&-header {
|
|
99
|
+
height: 28px;
|
|
100
|
+
background-color: #e8e8e8;
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
padding: 0 4px;
|
|
105
|
+
}
|
|
106
|
+
&-header:hover {
|
|
107
|
+
background-color: #e3e3e3;
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-body {
|
|
112
|
+
flex: 1;
|
|
113
|
+
overflow-y: auto;
|
|
114
|
+
background-color: white;
|
|
115
|
+
padding: 16px 0 8px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
:global {
|
|
120
|
+
.ant-select .ant-btn {
|
|
121
|
+
width: 170px !important;
|
|
122
|
+
height: 20px;
|
|
123
|
+
line-height: 16px;
|
|
124
|
+
}
|
|
125
|
+
.rc-segmented {
|
|
126
|
+
border-radius: 6px;
|
|
127
|
+
.rc-segmented-thumb {
|
|
128
|
+
border-radius: 6px;
|
|
129
|
+
}
|
|
130
|
+
.rc-segmented-item {
|
|
131
|
+
flex: 1;
|
|
132
|
+
border-radius: 6px;
|
|
133
|
+
min-height: 24px !important;
|
|
134
|
+
padding: 4px 6px !important;
|
|
135
|
+
.rc-segmented-item-label {
|
|
136
|
+
line-height: 16px !important;
|
|
137
|
+
font-size: 12px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
5
142
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.lc-painter-panel-section-components-popform {
|
|
2
|
+
width: 240px;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
.item {
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 2px;
|
|
9
|
+
align-items: center;
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
|
|
12
|
+
.left {
|
|
13
|
+
width: 55px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.right {
|
|
17
|
+
flex: 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.lc-painter-panel-section-components-tabeditor {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
.tabs-box {
|
|
7
|
+
width: 100%;
|
|
8
|
+
.tabitem {
|
|
9
|
+
height: 28px;
|
|
10
|
+
background: #fff;
|
|
11
|
+
border: 1px solid #e5e6e8;
|
|
12
|
+
border-radius: 6px;
|
|
13
|
+
margin-bottom: 8px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
gap: 2px;
|
|
19
|
+
|
|
20
|
+
.tabitem-left {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: 0 4px;
|
|
24
|
+
|
|
25
|
+
.dragicon {
|
|
26
|
+
cursor: move;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tabitem-right {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 0 4px;
|
|
34
|
+
gap: 4px;
|
|
35
|
+
|
|
36
|
+
.tabitem-action {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tabs-actions {
|
|
44
|
+
width: 100%;
|
|
45
|
+
.tabs-action {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
height: 28px;
|
|
48
|
+
background: #fff;
|
|
49
|
+
border: 1px solid #e5e6e8;
|
|
50
|
+
border-radius: 6px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
gap: 4px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.lc-painter-panel-section-tabitems-editor {
|
|
61
|
+
width: 240px;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 8px;
|
|
65
|
+
.item {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: 2px;
|
|
68
|
+
align-items: center;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
|
|
71
|
+
.left {
|
|
72
|
+
width: 55px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.right {
|
|
76
|
+
flex: 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.lc-painter-panel-section-tabitems-popconfirm {
|
|
82
|
+
:global {
|
|
83
|
+
.ant-popover-message-title {
|
|
84
|
+
padding: 0;
|
|
85
|
+
}
|
|
86
|
+
.ant-popover-buttons{
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.lc-painter-panel-section-tabitems {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
.tabs-box {
|
|
7
|
+
width: 100%;
|
|
8
|
+
.tabitem {
|
|
9
|
+
height: 28px;
|
|
10
|
+
background: #fff;
|
|
11
|
+
border: 1px solid #e5e6e8;
|
|
12
|
+
border-radius: 6px;
|
|
13
|
+
margin-bottom: 8px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
gap: 2px;
|
|
19
|
+
|
|
20
|
+
.tabitem-left {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: 0 4px;
|
|
24
|
+
|
|
25
|
+
.dragicon {
|
|
26
|
+
cursor: move;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tabitem-right {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 0 4px;
|
|
34
|
+
gap: 4px;
|
|
35
|
+
|
|
36
|
+
.tabitem-action {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tabs-actions {
|
|
44
|
+
width: 100%;
|
|
45
|
+
.tabs-action {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
height: 28px;
|
|
48
|
+
background: #fff;
|
|
49
|
+
border: 1px solid #e5e6e8;
|
|
50
|
+
border-radius: 6px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
gap: 4px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.lc-painter-panel-section-tabitems-editor {
|
|
61
|
+
width: 240px;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 8px;
|
|
65
|
+
.item {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: 2px;
|
|
68
|
+
align-items: center;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
|
|
71
|
+
.left {
|
|
72
|
+
width: 55px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.right {
|
|
76
|
+
flex: 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.lc-painter-panel-section-tabitems-popconfirm {
|
|
82
|
+
:global {
|
|
83
|
+
.ant-popover-message-title {
|
|
84
|
+
padding: 0;
|
|
85
|
+
}
|
|
86
|
+
.ant-popover-buttons{
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
1
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
-
var _excluded = ["props", "children"]
|
|
6
|
+
var _excluded = ["props", "children"],
|
|
7
|
+
_excluded2 = ["id", "component", "name", "desc", "icon", "group", "groupName", "order"];
|
|
6
8
|
import React, { useRef, useState } from 'react';
|
|
7
9
|
import { dynamic } from 'umi';
|
|
8
10
|
import { useMemoizedFn, useDeepCompareLayoutEffect } from 'ahooks';
|
|
9
|
-
import { reduce } from 'lodash';
|
|
10
|
-
import
|
|
11
|
+
import { reduce, upperFirst } from 'lodash';
|
|
12
|
+
import { useLDContext } from "../engine/provider/ContextProvider";
|
|
13
|
+
import Box from "./lc-components/Box";
|
|
11
14
|
import { CELL_KEY } from "../constants";
|
|
12
15
|
import styles from "./style/canvas.less";
|
|
13
16
|
var PAGE_CELL = [CELL_KEY.PAGE_HEADER, CELL_KEY.PAGE_CONTENT, CELL_KEY.PAGE_FOOTER];
|
|
14
17
|
var Canvas = function Canvas(_ref) {
|
|
15
18
|
var dataSource = _ref.dataSource;
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
var contentRef = useRef();
|
|
19
|
-
var footerRef = useRef();
|
|
19
|
+
var dynamicCompMap = useRef({});
|
|
20
|
+
var context = useLDContext();
|
|
20
21
|
var _useState = useState(null),
|
|
21
22
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22
23
|
header = _useState2[0],
|
|
@@ -38,35 +39,49 @@ var Canvas = function Canvas(_ref) {
|
|
|
38
39
|
children = _ref2.children,
|
|
39
40
|
childrenMap = _objectWithoutProperties(_ref2, _excluded);
|
|
40
41
|
if (props && !PAGE_CELL.includes(props.id)) {
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
42
|
+
var id = props.id,
|
|
43
|
+
component = props.component,
|
|
44
|
+
name = props.name,
|
|
45
|
+
desc = props.desc,
|
|
46
|
+
icon = props.icon,
|
|
47
|
+
group = props.group,
|
|
48
|
+
groupName = props.groupName,
|
|
49
|
+
order = props.order,
|
|
50
|
+
rest = _objectWithoutProperties(props, _excluded2);
|
|
51
|
+
if (!dynamicCompMap.current[component]) {
|
|
52
|
+
dynamicCompMap.current[component] = dynamic({
|
|
53
|
+
loader: function () {
|
|
54
|
+
var _loader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
55
|
+
var _runtime, _yield$import, _Comp;
|
|
56
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
57
|
+
while (1) switch (_context.prev = _context.next) {
|
|
58
|
+
case 0:
|
|
59
|
+
_runtime = upperFirst(context.runtime);
|
|
60
|
+
_context.next = 3;
|
|
61
|
+
return import("./lc-components/".concat(component, "/Function").concat(_runtime));
|
|
62
|
+
case 3:
|
|
63
|
+
_yield$import = _context.sent;
|
|
64
|
+
_Comp = _yield$import.default;
|
|
65
|
+
return _context.abrupt("return", _Comp);
|
|
66
|
+
case 6:
|
|
67
|
+
case "end":
|
|
68
|
+
return _context.stop();
|
|
69
|
+
}
|
|
70
|
+
}, _callee);
|
|
71
|
+
}));
|
|
72
|
+
function loader() {
|
|
73
|
+
return _loader.apply(this, arguments);
|
|
74
|
+
}
|
|
75
|
+
return loader;
|
|
76
|
+
}()
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
var Comp = dynamicCompMap.current[component];
|
|
80
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({
|
|
81
|
+
key: id,
|
|
82
|
+
id: id,
|
|
83
|
+
context: context
|
|
84
|
+
}, rest), (children || []).map(function (_id) {
|
|
70
85
|
return render(childrenMap[_id]);
|
|
71
86
|
}));
|
|
72
87
|
}
|
|
@@ -99,37 +114,30 @@ var Canvas = function Canvas(_ref) {
|
|
|
99
114
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
115
|
id: "page-canvas",
|
|
101
116
|
className: styles['lc-view-canvas']
|
|
102
|
-
}, /*#__PURE__*/React.createElement(
|
|
117
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
118
|
+
key: CELL_KEY.PAGE_HEADER,
|
|
103
119
|
id: CELL_KEY.PAGE_HEADER,
|
|
104
|
-
getTargetDom: function getTargetDom() {
|
|
105
|
-
return headerRef.current;
|
|
106
|
-
}
|
|
107
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
ref: headerRef,
|
|
109
120
|
style: {
|
|
110
121
|
width: '100%',
|
|
111
122
|
height: 120,
|
|
112
123
|
backgroundColor: '#d3f261'
|
|
113
124
|
}
|
|
114
|
-
}, header)
|
|
125
|
+
}, header), /*#__PURE__*/React.createElement(Box, {
|
|
126
|
+
key: CELL_KEY.PAGE_CONTENT,
|
|
115
127
|
id: CELL_KEY.PAGE_CONTENT,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
ref: contentRef
|
|
121
|
-
}, content)), /*#__PURE__*/React.createElement(Wrapper, {
|
|
122
|
-
id: CELL_KEY.PAGE_HEADER,
|
|
123
|
-
getTargetDom: function getTargetDom() {
|
|
124
|
-
return footerRef.current;
|
|
128
|
+
style: {
|
|
129
|
+
width: '100%',
|
|
130
|
+
height: 'calc(100% - 120px)',
|
|
131
|
+
backgroundColor: 'transparent'
|
|
125
132
|
}
|
|
126
|
-
}, /*#__PURE__*/React.createElement(
|
|
127
|
-
|
|
133
|
+
}, content), /*#__PURE__*/React.createElement(Box, {
|
|
134
|
+
key: CELL_KEY.PAGE_FOOTER,
|
|
135
|
+
id: CELL_KEY.PAGE_FOOTER,
|
|
128
136
|
style: {
|
|
129
137
|
width: '100%',
|
|
130
138
|
height: 80,
|
|
131
139
|
backgroundColor: '#69c0ff'
|
|
132
140
|
}
|
|
133
|
-
}, footer)
|
|
141
|
+
}, footer), modal);
|
|
134
142
|
};
|
|
135
143
|
export default Canvas;
|
|
File without changes
|