@luck-design-biz/luckda 0.0.24-1 → 0.0.24-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +24 -17
- package/es/components/LdAutoForm/index.js +15 -5
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +4 -1
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +13 -7
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +12 -4
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +0 -0
- package/es/components/LdTree/index.js +0 -0
- package/es/components/LdTree/index.less +0 -0
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +8 -2
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +4 -1
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -0
- package/es/lowcode/constants/api-url.js +1 -2
- package/es/lowcode/constants/event-topics.js +1 -14
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/meta/button.props.default.json +7 -15
- package/es/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/es/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
- package/es/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/es/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/es/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{lib/lowcode/engine/meta/iframe.props.json → es/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{lib/lowcode/engine/meta/image.props.json → es/lowcode/engine/meta/components/image.json} +112 -113
- package/es/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
- package/es/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/{lib/lowcode/engine/meta/layout.props.json → es/lowcode/engine/meta/components/layout.json} +106 -107
- package/{lib/lowcode/engine/meta/link.props.json → es/lowcode/engine/meta/components/link.json} +110 -111
- package/{lib/lowcode/engine/meta/dialog.props.json → es/lowcode/engine/meta/components/modal.json} +119 -120
- package/{lib/lowcode/engine/meta/section.props.json → es/lowcode/engine/meta/components/section.json} +106 -107
- package/es/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
- package/es/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{lib/lowcode/engine/meta/tabs.props.json → es/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{lib/lowcode/engine/meta/text.props.json → es/lowcode/engine/meta/components/text.json} +64 -65
- package/es/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/es/lowcode/engine/meta/components-list.json +121 -127
- package/es/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/es/lowcode/engine/meta/form.props.default.json +4 -12
- package/es/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/es/lowcode/engine/meta/image.props.default.json +7 -15
- package/es/lowcode/engine/meta/imex.props.default.json +3 -11
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/es/lowcode/engine/meta/layout.props.default.json +4 -12
- package/es/lowcode/engine/meta/link.props.default.json +5 -13
- package/es/lowcode/engine/meta/modal.props.default.json +11 -0
- package/es/lowcode/engine/meta/section.props.default.json +8 -16
- package/es/lowcode/engine/meta/split.props.default.json +4 -12
- package/es/lowcode/engine/meta/table.props.default.json +9 -11
- package/es/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/es/lowcode/engine/meta/text.props.default.json +3 -11
- package/es/lowcode/engine/meta/tree.props.default.json +8 -16
- package/es/lowcode/engine/provider/ContextProvider.js +17 -10
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +5 -80
- package/es/lowcode/engine/tools/helper.js +0 -0
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +0 -0
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +42 -274
- package/es/lowcode/painter/I18n.js +2 -202
- package/es/lowcode/painter/Outline.js +28 -33
- package/es/lowcode/painter/Panel.js +2 -201
- package/es/lowcode/painter/Ribbon.js +55 -61
- package/es/lowcode/painter/components/PanelItem.js +9 -52
- package/es/lowcode/painter/components/RuleInput.js +4 -4
- package/es/lowcode/painter/index.js +1 -27
- package/es/lowcode/painter/panel-section/LayoutRatio.js +49 -56
- package/es/lowcode/painter/panel-section/Radio.js +58 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +5 -109
- package/es/lowcode/painter/style/index.less +1 -0
- package/es/lowcode/painter/style/layout-ratio.less +1 -1
- package/es/lowcode/painter/style/outline.less +0 -2
- package/es/lowcode/painter/style/panel-item.less +15 -38
- package/es/lowcode/painter/style/panel.less +0 -137
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -1
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/view/Canvas.js +55 -63
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +2 -199
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +5 -22
- package/es/lowcode/view/lc-components/Button/index.js +7 -72
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +1 -12
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +3 -19
- package/es/lowcode/view/lc-components/Form/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +7 -40
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Table/index.js +8 -138
- package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Wrapper.js +23 -32
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- package/es/lowcode/view/style/page.less +1 -0
- package/es/services.js +24 -7
- package/es/upload/Form/gridForm.js +5 -4
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +4 -3
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +37 -3
- package/es/utils/grid.js +9 -8
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +22 -15
- package/lib/components/LdAutoForm/index.js +14 -4
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +5 -1
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +13 -7
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +11 -3
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdRuntimeCom/index.js +0 -0
- package/lib/components/LdTree/index.js +0 -0
- package/lib/components/LdTree/index.less +0 -0
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +8 -2
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +4 -1
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -0
- package/lib/lowcode/constants/api-url.js +2 -3
- package/lib/lowcode/constants/event-topics.js +2 -15
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/meta/button.props.default.json +7 -15
- package/lib/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/lib/lowcode/engine/meta/{button.props.json → components/button.json} +103 -121
- package/lib/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/lib/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/lib/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{es/lowcode/engine/meta/iframe.props.json → lib/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{es/lowcode/engine/meta/image.props.json → lib/lowcode/engine/meta/components/image.json} +112 -113
- package/lib/lowcode/engine/meta/{imex.props.json → components/imex.json} +80 -81
- package/lib/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/{es/lowcode/engine/meta/layout.props.json → lib/lowcode/engine/meta/components/layout.json} +106 -107
- package/{es/lowcode/engine/meta/link.props.json → lib/lowcode/engine/meta/components/link.json} +110 -111
- package/{es/lowcode/engine/meta/dialog.props.json → lib/lowcode/engine/meta/components/modal.json} +119 -120
- package/{es/lowcode/engine/meta/section.props.json → lib/lowcode/engine/meta/components/section.json} +106 -107
- package/lib/lowcode/engine/meta/{split.props.json → components/split.json} +70 -71
- package/lib/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{es/lowcode/engine/meta/tabs.props.json → lib/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{es/lowcode/engine/meta/text.props.json → lib/lowcode/engine/meta/components/text.json} +64 -65
- package/lib/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/lib/lowcode/engine/meta/components-list.json +121 -127
- package/lib/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/lib/lowcode/engine/meta/form.props.default.json +4 -12
- package/lib/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/lib/lowcode/engine/meta/image.props.default.json +7 -15
- package/lib/lowcode/engine/meta/imex.props.default.json +3 -11
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/lib/lowcode/engine/meta/layout.props.default.json +4 -12
- package/lib/lowcode/engine/meta/link.props.default.json +5 -13
- package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
- package/lib/lowcode/engine/meta/section.props.default.json +8 -16
- package/lib/lowcode/engine/meta/split.props.default.json +4 -12
- package/lib/lowcode/engine/meta/table.props.default.json +9 -11
- package/lib/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/lib/lowcode/engine/meta/text.props.default.json +3 -11
- package/lib/lowcode/engine/meta/tree.props.default.json +8 -16
- package/lib/lowcode/engine/provider/ContextProvider.js +16 -9
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +5 -81
- package/lib/lowcode/engine/tools/helper.js +0 -0
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +0 -0
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +40 -271
- package/lib/lowcode/painter/I18n.js +2 -203
- package/lib/lowcode/painter/Outline.js +27 -32
- package/lib/lowcode/painter/Panel.js +2 -201
- package/lib/lowcode/painter/Ribbon.js +64 -63
- package/lib/lowcode/painter/components/PanelItem.js +9 -53
- package/lib/lowcode/painter/components/RuleInput.js +4 -4
- package/lib/lowcode/painter/index.js +1 -29
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +48 -55
- package/lib/lowcode/painter/panel-section/Radio.js +65 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +5 -109
- package/lib/lowcode/painter/style/index.less +1 -0
- package/lib/lowcode/painter/style/layout-ratio.less +1 -1
- package/lib/lowcode/painter/style/outline.less +0 -2
- package/lib/lowcode/painter/style/panel-item.less +15 -38
- package/lib/lowcode/painter/style/panel.less +0 -137
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -1
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/view/Canvas.js +60 -68
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +1 -198
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +6 -23
- package/lib/lowcode/view/lc-components/Button/index.js +8 -73
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +0 -11
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +2 -18
- package/lib/lowcode/view/lc-components/Form/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +8 -41
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Table/index.js +8 -138
- package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +21 -30
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- package/lib/lowcode/view/style/page.less +1 -0
- package/lib/services.js +25 -7
- package/lib/upload/Form/gridForm.js +5 -4
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +4 -3
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +38 -3
- package/lib/utils/grid.js +11 -10
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +5 -12
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -60
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -50
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -21
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -50
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -42
- package/es/lowcode/engine/meta/box.props.default.json +0 -12
- package/es/lowcode/engine/meta/box.props.json +0 -42
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/es/lowcode/engine/meta/table.props.json +0 -174
- package/es/lowcode/engine/tools/usePromiseState.js +0 -24
- package/es/lowcode/painter/components/Collapse.js +0 -31
- package/es/lowcode/painter/components/NumberInput.js +0 -93
- package/es/lowcode/painter/components/PopConfirm.js +0 -20
- package/es/lowcode/painter/components/PopForm.js +0 -71
- package/es/lowcode/painter/components/SortBox.js +0 -92
- package/es/lowcode/painter/components/TabEditor.js +0 -88
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -118
- package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -14
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -64
- package/es/lowcode/painter/components/code-editor/JSEditor.js +0 -84
- package/es/lowcode/painter/components/code-editor/index.js +0 -2
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -39
- package/es/lowcode/painter/panel-section/Icon.js +0 -48
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -134
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -292
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -543
- package/es/lowcode/painter/panel-section/StylePanel/Height.js +0 -48
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -64
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -101
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +0 -48
- package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -12
- package/es/lowcode/painter/panel-section/TabItems.js +0 -237
- package/es/lowcode/painter/services/I18n.js +0 -85
- package/es/lowcode/painter/style/button-type.less +0 -5
- package/es/lowcode/painter/style/collapse.less +0 -21
- package/es/lowcode/painter/style/display.less +0 -17
- package/es/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/es/lowcode/painter/style/icon-selector.less +0 -22
- package/es/lowcode/painter/style/icon.less +0 -11
- package/es/lowcode/painter/style/number-input.less +0 -17
- package/es/lowcode/painter/style/pop-confirm.less +0 -10
- package/es/lowcode/painter/style/pop-form.less +0 -20
- package/es/lowcode/painter/style/style-panel.less +0 -5
- package/es/lowcode/painter/style/tabeditor.less +0 -90
- package/es/lowcode/painter/style/tabitems.less +0 -90
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -20
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Box/index.less +0 -15
- package/es/lowcode/view/lc-components/Box/meta.json +0 -42
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -21
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Button/meta.json +0 -122
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/es/lowcode/view/lc-components/Drawer/style.less +0 -7
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Form/meta.json +0 -117
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Image/meta.json +0 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -75
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -15
- package/es/lowcode/view/lc-components/Layout/index.less +0 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Link/meta.json +0 -112
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Section/meta.json +0 -108
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Split/meta.json +0 -72
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -16
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Table/meta.json +0 -174
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Text/meta.json +0 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -157
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -73
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -56
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -27
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -56
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -48
- package/lib/lowcode/engine/meta/box.props.default.json +0 -12
- package/lib/lowcode/engine/meta/box.props.json +0 -42
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/lib/lowcode/engine/meta/table.props.json +0 -174
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -31
- package/lib/lowcode/painter/components/Collapse.js +0 -39
- package/lib/lowcode/painter/components/NumberInput.js +0 -101
- package/lib/lowcode/painter/components/PopConfirm.js +0 -26
- package/lib/lowcode/painter/components/PopForm.js +0 -77
- package/lib/lowcode/painter/components/SortBox.js +0 -99
- package/lib/lowcode/painter/components/TabEditor.js +0 -94
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -126
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -22
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -72
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +0 -95
- package/lib/lowcode/painter/components/code-editor/index.js +0 -20
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -46
- package/lib/lowcode/painter/panel-section/Icon.js +0 -54
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -141
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -299
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -550
- package/lib/lowcode/painter/panel-section/StylePanel/Height.js +0 -55
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -72
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -112
- package/lib/lowcode/painter/panel-section/StylePanel/Width.js +0 -55
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -19
- package/lib/lowcode/painter/panel-section/TabItems.js +0 -245
- package/lib/lowcode/painter/services/I18n.js +0 -95
- package/lib/lowcode/painter/style/button-type.less +0 -5
- package/lib/lowcode/painter/style/collapse.less +0 -21
- package/lib/lowcode/painter/style/display.less +0 -17
- package/lib/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/lib/lowcode/painter/style/icon-selector.less +0 -22
- package/lib/lowcode/painter/style/icon.less +0 -11
- package/lib/lowcode/painter/style/number-input.less +0 -17
- package/lib/lowcode/painter/style/pop-confirm.less +0 -10
- package/lib/lowcode/painter/style/pop-form.less +0 -20
- package/lib/lowcode/painter/style/style-panel.less +0 -5
- package/lib/lowcode/painter/style/tabeditor.less +0 -90
- package/lib/lowcode/painter/style/tabitems.less +0 -90
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -27
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Box/index.less +0 -15
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -42
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -28
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Button/meta.json +0 -122
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/lib/lowcode/view/lc-components/Drawer/style.less +0 -7
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Form/meta.json +0 -117
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -82
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -22
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -112
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -72
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -23
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -174
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -157
|
@@ -4,7 +4,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
var _excluded = ["props", "children"];
|
|
6
6
|
import React, { useRef, useState, useEffect } from 'react';
|
|
7
|
-
import { useMemoizedFn, useDeepCompareLayoutEffect
|
|
7
|
+
import { useMemoizedFn, useDeepCompareLayoutEffect } from 'ahooks';
|
|
8
8
|
import { uniq, split, reduce } from 'lodash';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import { Card, Tree, Icon } from 'luck-design/antd';
|
|
@@ -15,8 +15,9 @@ import { getPathById } from "../engine/tools/dataProcess";
|
|
|
15
15
|
import styles from "./style/outline.less";
|
|
16
16
|
var TreeNode = Tree.TreeNode;
|
|
17
17
|
var PAGE_CELL = [CELL_KEY.PAGE_HEADER, CELL_KEY.PAGE_CONTENT, CELL_KEY.PAGE_FOOTER];
|
|
18
|
-
var Outline = function Outline(
|
|
19
|
-
var
|
|
18
|
+
var Outline = function Outline() {
|
|
19
|
+
var modalTreeRef = useRef();
|
|
20
|
+
var pageTreeRef = useRef();
|
|
20
21
|
var openModal = useRef(void 0);
|
|
21
22
|
var clickBySelf = useRef(false);
|
|
22
23
|
var context = useLDContext();
|
|
@@ -36,8 +37,6 @@ var Outline = function Outline(_ref) {
|
|
|
36
37
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
37
38
|
pageExpandedKeys = _useState8[0],
|
|
38
39
|
setPageExpandedKeys = _useState8[1];
|
|
39
|
-
var latestModalExpandedKeysRef = useLatest(modalExpandedKeys);
|
|
40
|
-
var lastPageExpandedKeysRef = useLatest(pageExpandedKeys);
|
|
41
40
|
useEffect(function () {
|
|
42
41
|
var _id = context.$subscriber(context.topics.COMPONENT_ACTIVE).on(function (payload) {
|
|
43
42
|
setSelectedKey(payload.id);
|
|
@@ -45,20 +44,17 @@ var Outline = function Outline(_ref) {
|
|
|
45
44
|
clickBySelf.current = false;
|
|
46
45
|
return;
|
|
47
46
|
}
|
|
48
|
-
|
|
49
|
-
setModalExpandedKeys(uniq([].concat(_toConsumableArray(latestModalExpandedKeysRef.current), _toConsumableArray(split(getPathById(context.pageData, payload.id), '/')))));
|
|
50
|
-
} else {
|
|
51
|
-
setPageExpandedKeys(uniq([].concat(_toConsumableArray(lastPageExpandedKeysRef.current), _toConsumableArray(split(getPathById(context.pageData, payload.id), '/')))));
|
|
52
|
-
}
|
|
47
|
+
setModalExpandedKeys(uniq([].concat(_toConsumableArray((openModal.current ? modalTreeRef : pageTreeRef).current.props.expandedKeys), _toConsumableArray(split(getPathById(context.pageData, payload.id), '/')))));
|
|
53
48
|
}).watch();
|
|
54
49
|
return function () {
|
|
55
50
|
context.$unsubscriber(context.topics.COMPONENT_ACTIVE, _id);
|
|
56
51
|
};
|
|
57
|
-
}, [
|
|
52
|
+
}, []);
|
|
58
53
|
var handleSelect = function handleSelect(_key) {
|
|
59
54
|
clickBySelf.current = true;
|
|
60
55
|
context.$publisher(context.topics.COMPONENT_ACTIVE, _key ? {
|
|
61
|
-
id: _key
|
|
56
|
+
id: _key,
|
|
57
|
+
cellNode: context.componentMap.get(_key).dom
|
|
62
58
|
} : null);
|
|
63
59
|
};
|
|
64
60
|
var handleOpenModal = useMemoizedFn(function (_key) {
|
|
@@ -68,16 +64,16 @@ var Outline = function Outline(_ref) {
|
|
|
68
64
|
_comp.api.doOpen();
|
|
69
65
|
openModal.current = _key;
|
|
70
66
|
});
|
|
71
|
-
var render = useMemoizedFn(function (
|
|
72
|
-
var props =
|
|
73
|
-
children =
|
|
74
|
-
childrenMap = _objectWithoutProperties(
|
|
67
|
+
var render = useMemoizedFn(function (_ref) {
|
|
68
|
+
var props = _ref.props,
|
|
69
|
+
children = _ref.children,
|
|
70
|
+
childrenMap = _objectWithoutProperties(_ref, _excluded);
|
|
75
71
|
if (props) {
|
|
76
72
|
return /*#__PURE__*/React.createElement(TreeNode, {
|
|
77
73
|
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
78
74
|
type: "layout"
|
|
79
75
|
}),
|
|
80
|
-
title: props.
|
|
76
|
+
title: props.label,
|
|
81
77
|
key: props.id
|
|
82
78
|
}, (children === null || children === void 0 ? void 0 : children.length) && children.map(function (_id) {
|
|
83
79
|
return render(childrenMap[_id]);
|
|
@@ -88,9 +84,6 @@ var Outline = function Outline(_ref) {
|
|
|
88
84
|
});
|
|
89
85
|
});
|
|
90
86
|
useDeepCompareLayoutEffect(function () {
|
|
91
|
-
if (!context.pageData) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
87
|
var _reduce = reduce(context.pageData.children, function (result, _id) {
|
|
95
88
|
var resultKey = PAGE_CELL.includes(_id) ? 'page' : 'modal';
|
|
96
89
|
result[resultKey][_id] = context.pageData[_id];
|
|
@@ -141,6 +134,7 @@ var Outline = function Outline(_ref) {
|
|
|
141
134
|
padding: 0
|
|
142
135
|
}
|
|
143
136
|
}, /*#__PURE__*/React.createElement(Tree, {
|
|
137
|
+
ref: modalTreeRef,
|
|
144
138
|
showLine: true,
|
|
145
139
|
showIcon: true,
|
|
146
140
|
blockNode: true,
|
|
@@ -148,11 +142,11 @@ var Outline = function Outline(_ref) {
|
|
|
148
142
|
type: "down"
|
|
149
143
|
}),
|
|
150
144
|
selectedKeys: [selectedKey],
|
|
151
|
-
onSelect: function onSelect(
|
|
152
|
-
var
|
|
153
|
-
_key =
|
|
154
|
-
var selected =
|
|
155
|
-
node =
|
|
145
|
+
onSelect: function onSelect(_ref2, _ref3) {
|
|
146
|
+
var _ref4 = _slicedToArray(_ref2, 1),
|
|
147
|
+
_key = _ref4[0];
|
|
148
|
+
var selected = _ref3.selected,
|
|
149
|
+
node = _ref3.node;
|
|
156
150
|
if (selected && node.props.pos.split('-').length === 2) {
|
|
157
151
|
handleOpenModal(_key);
|
|
158
152
|
handleSelect(_key);
|
|
@@ -172,16 +166,17 @@ var Outline = function Outline(_ref) {
|
|
|
172
166
|
}
|
|
173
167
|
},
|
|
174
168
|
expandedKeys: modalExpandedKeys,
|
|
175
|
-
onExpand: function onExpand(_keys,
|
|
176
|
-
var expanded =
|
|
177
|
-
node =
|
|
169
|
+
onExpand: function onExpand(_keys, _ref5) {
|
|
170
|
+
var expanded = _ref5.expanded,
|
|
171
|
+
node = _ref5.node;
|
|
178
172
|
if (expanded && node.props.pos.split('-').length === 2) {
|
|
179
173
|
handleSelect(null);
|
|
180
174
|
handleOpenModal(node.props.eventKey);
|
|
181
175
|
}
|
|
182
176
|
setModalExpandedKeys(_keys);
|
|
183
177
|
}
|
|
184
|
-
}, pageAndModal === null || pageAndModal === void 0 ? void 0 : pageAndModal.modal)),
|
|
178
|
+
}, pageAndModal === null || pageAndModal === void 0 ? void 0 : pageAndModal.modal)), /*#__PURE__*/React.createElement(Tree, {
|
|
179
|
+
ref: pageTreeRef,
|
|
185
180
|
showLine: true,
|
|
186
181
|
showIcon: true,
|
|
187
182
|
blockNode: true,
|
|
@@ -189,10 +184,10 @@ var Outline = function Outline(_ref) {
|
|
|
189
184
|
type: "down"
|
|
190
185
|
}),
|
|
191
186
|
selectedKeys: [selectedKey],
|
|
192
|
-
onSelect: function onSelect(
|
|
193
|
-
var
|
|
194
|
-
_key =
|
|
195
|
-
var node =
|
|
187
|
+
onSelect: function onSelect(_ref6, _ref7) {
|
|
188
|
+
var _ref8 = _slicedToArray(_ref6, 1),
|
|
189
|
+
_key = _ref8[0];
|
|
190
|
+
var node = _ref7.node;
|
|
196
191
|
if (openModal.current) {
|
|
197
192
|
var _prevComp = context.componentMap.get(openModal.current);
|
|
198
193
|
_prevComp.api.doClose();
|
|
@@ -1,207 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
-
import React, { useRef, useState, useEffect, useLayoutEffect } from 'react';
|
|
5
|
-
import { useBoolean, useCreation, useMemoizedFn } from 'ahooks';
|
|
6
|
-
import { Breadcrumb, Drawer, Icon } from 'luck-design/antd';
|
|
7
|
-
import classNames from 'classnames';
|
|
8
|
-
import { startsWith, takeRight, cloneDeep } from 'lodash';
|
|
9
|
-
import { useLDContext } from "../engine/provider/ContextProvider";
|
|
10
|
-
import PanelItem from "./components/PanelItem";
|
|
11
|
-
import PanelItemFactory from "../engine/factory/panel-item-factory";
|
|
12
|
-
import { modifyById } from "../engine/tools/dataProcess";
|
|
1
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
13
2
|
import styles from "./style/panel.less";
|
|
14
|
-
var _TAB_LIST_ = [{
|
|
15
|
-
title: '属性',
|
|
16
|
-
key: 'attrs'
|
|
17
|
-
}, {
|
|
18
|
-
title: '样式',
|
|
19
|
-
key: 'styles'
|
|
20
|
-
}, {
|
|
21
|
-
title: '高级',
|
|
22
|
-
key: 'advance'
|
|
23
|
-
}];
|
|
24
3
|
var Panel = function Panel() {
|
|
25
|
-
var _nextRef$current, _nextRef$current2;
|
|
26
|
-
var activeTabRef = useRef(null);
|
|
27
|
-
var underLineRef = useRef(null);
|
|
28
|
-
var nextRef = useRef(null);
|
|
29
|
-
var factory = useRef(new PanelItemFactory());
|
|
30
|
-
var _useState = useState(null),
|
|
31
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
-
activeNode = _useState2[0],
|
|
33
|
-
setActiveNode = _useState2[1];
|
|
34
|
-
var _useState3 = useState('attrs'),
|
|
35
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
36
|
-
activeTabKey = _useState4[0],
|
|
37
|
-
setActiveTabKey = _useState4[1];
|
|
38
|
-
var _useBoolean = useBoolean(false),
|
|
39
|
-
_useBoolean2 = _slicedToArray(_useBoolean, 2),
|
|
40
|
-
open = _useBoolean2[0],
|
|
41
|
-
_useBoolean2$ = _useBoolean2[1],
|
|
42
|
-
setTrue = _useBoolean2$.setTrue,
|
|
43
|
-
setFalse = _useBoolean2$.setFalse;
|
|
44
|
-
var context = useLDContext();
|
|
45
|
-
var handleChange = useMemoizedFn(function (field, value) {
|
|
46
|
-
var component = context.componentMap.get(activeNode.node.id);
|
|
47
|
-
var _component$api$getSel = component.api.getSelfAndParentLCData(),
|
|
48
|
-
node = _component$api$getSel.node;
|
|
49
|
-
var cloneData = cloneDeep(context.pageData);
|
|
50
|
-
modifyById(cloneData, activeNode.node.id, _objectSpread(_objectSpread({}, node.props), {}, _defineProperty({}, field, value)));
|
|
51
|
-
context._setPageData(cloneData).then(function (newData) {
|
|
52
|
-
context.$publisher(context.topics.COMPONENT_MODIFY, {
|
|
53
|
-
id: activeNode.node.id,
|
|
54
|
-
pageData: cloneDeep(newData)
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
setFalse();
|
|
58
|
-
});
|
|
59
|
-
var renderPanelItems = useMemoizedFn(function (items) {
|
|
60
|
-
return items.map(function (item) {
|
|
61
|
-
var Comp = factory.current.getPanelItemFor(startsWith(item.type, '_') ? 'dynamic' : item.type, item.type);
|
|
62
|
-
if (item.type === 'group') {
|
|
63
|
-
return /*#__PURE__*/React.createElement(Comp, {
|
|
64
|
-
key: item.key,
|
|
65
|
-
label: item.name,
|
|
66
|
-
defaultCollapsed: true
|
|
67
|
-
}, renderPanelItems(item.props));
|
|
68
|
-
}
|
|
69
|
-
console.log(11111, item.key, activeNode.node);
|
|
70
|
-
return /*#__PURE__*/React.createElement(PanelItem, {
|
|
71
|
-
key: item.key,
|
|
72
|
-
label: item.name
|
|
73
|
-
}, Comp && /*#__PURE__*/React.createElement(Comp, {
|
|
74
|
-
defaultValue: activeNode.node[item.key],
|
|
75
|
-
next: function next() {
|
|
76
|
-
if (!item.next) return;
|
|
77
|
-
nextRef.current = {
|
|
78
|
-
name: item.next.name,
|
|
79
|
-
NextComp: renderPanelItems(item.next.props)
|
|
80
|
-
};
|
|
81
|
-
setTrue();
|
|
82
|
-
},
|
|
83
|
-
options: item.options,
|
|
84
|
-
disabled: item.disabled,
|
|
85
|
-
onChange: function onChange(value) {
|
|
86
|
-
return handleChange(item.key, value);
|
|
87
|
-
},
|
|
88
|
-
size: "small"
|
|
89
|
-
}));
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
var PropsComps = useCreation(function () {
|
|
93
|
-
var _meta;
|
|
94
|
-
try {
|
|
95
|
-
_meta = require("../engine/meta/".concat(activeNode.node.component.toLowerCase(), ".props.json"));
|
|
96
|
-
} catch (e) {
|
|
97
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
98
|
-
}
|
|
99
|
-
return renderPanelItems(_meta.props);
|
|
100
|
-
}, [activeNode]);
|
|
101
|
-
useEffect(function () {
|
|
102
|
-
if (!open) {
|
|
103
|
-
nextRef.current = null;
|
|
104
|
-
}
|
|
105
|
-
}, [open]);
|
|
106
|
-
useEffect(function () {
|
|
107
|
-
var _id = context.$subscriber(context.topics.COMPONENT_ACTIVE).on(function (payload) {
|
|
108
|
-
if (!payload.id) {
|
|
109
|
-
setActiveNode(null);
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
var component = context.componentMap.get(payload.id);
|
|
113
|
-
var _component$api$getSel2 = component.api.getSelfAndParentLCData(),
|
|
114
|
-
node = _component$api$getSel2.node;
|
|
115
|
-
var levelNodes = takeRight(component.api.getLevelNodes(), 4);
|
|
116
|
-
setActiveNode({
|
|
117
|
-
node: node.props,
|
|
118
|
-
level: levelNodes
|
|
119
|
-
});
|
|
120
|
-
}).watch();
|
|
121
|
-
return function () {
|
|
122
|
-
context.$unsubscriber(context.topics.COMPONENT_ACTIVE, _id);
|
|
123
|
-
};
|
|
124
|
-
}, [context.pageData]);
|
|
125
|
-
useLayoutEffect(function () {
|
|
126
|
-
underLineRef.current.style.left = "".concat(activeTabRef.current.offsetLeft + activeTabRef.current.offsetWidth / 2 - 10, "px");
|
|
127
|
-
}, [activeTabKey, !!activeNode]);
|
|
128
4
|
return /*#__PURE__*/React.createElement("div", {
|
|
129
5
|
className: styles['lc-painter-panel']
|
|
130
|
-
},
|
|
131
|
-
className: classNames(styles['lc-painter-panel-topbar'], _defineProperty({}, styles.hidden, !activeNode))
|
|
132
|
-
}, /*#__PURE__*/React.createElement(Breadcrumb, {
|
|
133
|
-
separator: ">",
|
|
134
|
-
style: {
|
|
135
|
-
fontSize: 12
|
|
136
|
-
}
|
|
137
|
-
}, activeNode === null || activeNode === void 0 ? void 0 : activeNode.level.map(function (_ref) {
|
|
138
|
-
var id = _ref.id,
|
|
139
|
-
name = _ref.name;
|
|
140
|
-
return /*#__PURE__*/React.createElement(Breadcrumb.Item, {
|
|
141
|
-
key: id,
|
|
142
|
-
className: classNames(_defineProperty({}, styles['active-node-level'], id !== activeNode.node.id)),
|
|
143
|
-
onMouseEnter: function onMouseEnter() {
|
|
144
|
-
if (id === activeNode.node.id) return;
|
|
145
|
-
context.$publisher(context.topics.COMPONENT_HOVER, {
|
|
146
|
-
id: id
|
|
147
|
-
});
|
|
148
|
-
},
|
|
149
|
-
onMouseLeave: function onMouseLeave() {
|
|
150
|
-
if (id === activeNode.node.id) return;
|
|
151
|
-
context.$publisher(context.topics.COMPONENT_HOVER, null);
|
|
152
|
-
},
|
|
153
|
-
onClick: function onClick() {
|
|
154
|
-
if (id === activeNode.node.id) return;
|
|
155
|
-
context.$publisher(context.topics.COMPONENT_ACTIVE, {
|
|
156
|
-
id: id
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}, name);
|
|
160
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
161
|
-
className: classNames(styles['lc-painter-panel-tabbar'], _defineProperty({}, styles.hidden, !activeNode))
|
|
162
|
-
}, /*#__PURE__*/React.createElement("ul", {
|
|
163
|
-
className: styles.headerList
|
|
164
|
-
}, _TAB_LIST_.map(function (_item) {
|
|
165
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
166
|
-
key: _item.key,
|
|
167
|
-
ref: activeTabKey === _item.key ? activeTabRef : null,
|
|
168
|
-
className: classNames(_defineProperty({}, styles.actived, activeTabKey === _item.key)),
|
|
169
|
-
onClick: function onClick() {
|
|
170
|
-
return setActiveTabKey(_item.key);
|
|
171
|
-
}
|
|
172
|
-
}, _item.title);
|
|
173
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
174
|
-
ref: underLineRef,
|
|
175
|
-
className: styles.underline
|
|
176
|
-
})), activeTabKey === _TAB_LIST_[0].key && /*#__PURE__*/React.createElement("div", {
|
|
177
|
-
className: classNames(styles['lc-painter-panel-content'], _defineProperty({}, styles.hidden, !activeNode))
|
|
178
|
-
}, PropsComps, /*#__PURE__*/React.createElement(Drawer, {
|
|
179
|
-
visible: open,
|
|
180
|
-
width: 320,
|
|
181
|
-
mask: false,
|
|
182
|
-
closable: false,
|
|
183
|
-
getContainer: false,
|
|
184
|
-
destroyOnClose: true,
|
|
185
|
-
style: {
|
|
186
|
-
position: 'absolute'
|
|
187
|
-
},
|
|
188
|
-
bodyStyle: {
|
|
189
|
-
padding: 0,
|
|
190
|
-
height: '100%'
|
|
191
|
-
}
|
|
192
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
193
|
-
className: styles['next-content']
|
|
194
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
195
|
-
className: styles['next-content-header'],
|
|
196
|
-
onClick: setFalse
|
|
197
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
198
|
-
type: "left"
|
|
199
|
-
}), (_nextRef$current = nextRef.current) === null || _nextRef$current === void 0 ? void 0 : _nextRef$current.name, /*#__PURE__*/React.createElement(Icon, {
|
|
200
|
-
type: "close"
|
|
201
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
202
|
-
className: styles['next-content-body']
|
|
203
|
-
}, (_nextRef$current2 = nextRef.current) === null || _nextRef$current2 === void 0 ? void 0 : _nextRef$current2.NextComp)))), activeTabKey === _TAB_LIST_[1].key && /*#__PURE__*/React.createElement("div", null, "\u6837\u5F0F\u9762\u677F"), activeTabKey === _TAB_LIST_[2].key && /*#__PURE__*/React.createElement("div", null, "\u9AD8\u7EA7\u9762\u677F"), /*#__PURE__*/React.createElement("div", {
|
|
204
|
-
className: classNames(styles['lc-painter-panel-empty'], _defineProperty({}, styles.hidden, !!activeNode))
|
|
205
|
-
}, "\u8BF7\u5728\u5DE6\u4FA7\u753B\u5E03\u9009\u4E2D\u8282\u70B9"));
|
|
6
|
+
}, "Panel");
|
|
206
7
|
};
|
|
207
8
|
export default Panel;
|
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
|
+
import { useCreation } from 'ahooks';
|
|
6
|
+
import { dynamic } from 'umi';
|
|
5
7
|
import { Box } from 'luck-design';
|
|
6
8
|
import { Icon, Tooltip, Drawer } from 'luck-design/antd';
|
|
7
|
-
import Outline from "./Outline";
|
|
8
|
-
import Components from "./Components";
|
|
9
|
-
import I18n from "./I18n";
|
|
10
9
|
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
10
|
+
import { upperFirst } from 'lodash';
|
|
11
11
|
import styles from "./style/ribbon.less";
|
|
12
12
|
var _WIDTH_ = 48;
|
|
13
|
-
var _DRAWER_PROPS = {
|
|
14
|
-
placement: 'left',
|
|
15
|
-
mask: false,
|
|
16
|
-
getContainer: false,
|
|
17
|
-
zIndex: 10000,
|
|
18
|
-
headerStyle: {
|
|
19
|
-
borderBottom: 'none'
|
|
20
|
-
},
|
|
21
|
-
style: {
|
|
22
|
-
position: 'absolute',
|
|
23
|
-
left: _WIDTH_
|
|
24
|
-
},
|
|
25
|
-
bodyStyle: {
|
|
26
|
-
overflowY: 'auto',
|
|
27
|
-
height: 'calc(100% - 55px)',
|
|
28
|
-
padding: 0
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
13
|
var _DRAWER_OUTLINE_ = {
|
|
32
14
|
width: 300,
|
|
33
15
|
key: 'outline',
|
|
@@ -38,7 +20,7 @@ var _DRAWER_COMPONENTS_ = {
|
|
|
38
20
|
width: 310,
|
|
39
21
|
key: 'components',
|
|
40
22
|
title: '组件',
|
|
41
|
-
fix:
|
|
23
|
+
fix: false
|
|
42
24
|
};
|
|
43
25
|
var _DRAWER_I18N_ = {
|
|
44
26
|
width: 450,
|
|
@@ -51,6 +33,40 @@ var Ribbon = function Ribbon() {
|
|
|
51
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
52
34
|
drawer = _useState2[0],
|
|
53
35
|
setDrawer = _useState2[1];
|
|
36
|
+
var Detail = useCreation(function () {
|
|
37
|
+
return dynamic({
|
|
38
|
+
loader: function () {
|
|
39
|
+
var _loader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
40
|
+
var name, _yield$import, Comp;
|
|
41
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
42
|
+
while (1) switch (_context.prev = _context.next) {
|
|
43
|
+
case 0:
|
|
44
|
+
if (!drawer) {
|
|
45
|
+
_context.next = 7;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
name = upperFirst(drawer.key);
|
|
49
|
+
_context.next = 4;
|
|
50
|
+
return import("./".concat(name));
|
|
51
|
+
case 4:
|
|
52
|
+
_yield$import = _context.sent;
|
|
53
|
+
Comp = _yield$import.default;
|
|
54
|
+
return _context.abrupt("return", Comp);
|
|
55
|
+
case 7:
|
|
56
|
+
return _context.abrupt("return", null);
|
|
57
|
+
case 8:
|
|
58
|
+
case "end":
|
|
59
|
+
return _context.stop();
|
|
60
|
+
}
|
|
61
|
+
}, _callee);
|
|
62
|
+
}));
|
|
63
|
+
function loader() {
|
|
64
|
+
return _loader.apply(this, arguments);
|
|
65
|
+
}
|
|
66
|
+
return loader;
|
|
67
|
+
}()
|
|
68
|
+
});
|
|
69
|
+
}, [drawer]);
|
|
54
70
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
55
71
|
className: styles['lc-painter-ribbon'],
|
|
56
72
|
width: _WIDTH_,
|
|
@@ -93,50 +109,28 @@ var Ribbon = function Ribbon() {
|
|
|
93
109
|
onClick: function onClick() {
|
|
94
110
|
return setDrawer((drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key ? null : _DRAWER_I18N_);
|
|
95
111
|
}
|
|
96
|
-
}))), /*#__PURE__*/React.createElement(Drawer,
|
|
97
|
-
title: drawer ? formatMessage({
|
|
98
|
-
id: "luckda.lowcode.".concat(drawer.key),
|
|
99
|
-
label: drawer.title
|
|
100
|
-
}) : '',
|
|
101
|
-
width: (drawer === null || drawer === void 0 ? void 0 : drawer.width) || 0,
|
|
102
|
-
visible: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key,
|
|
103
|
-
onClose: function onClose() {
|
|
104
|
-
return setDrawer(null);
|
|
105
|
-
}
|
|
106
|
-
}, _DRAWER_PROPS, {
|
|
107
|
-
style: _objectSpread(_objectSpread({}, _DRAWER_PROPS.style), {}, {
|
|
108
|
-
display: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key ? 'block' : 'none'
|
|
109
|
-
})
|
|
110
|
-
}), /*#__PURE__*/React.createElement(Outline, {
|
|
111
|
-
open: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key
|
|
112
|
-
})), /*#__PURE__*/React.createElement(Drawer, _extends({
|
|
112
|
+
}))), /*#__PURE__*/React.createElement(Drawer, {
|
|
113
113
|
title: drawer ? formatMessage({
|
|
114
114
|
id: "luckda.lowcode.".concat(drawer.key),
|
|
115
115
|
label: drawer.title
|
|
116
116
|
}) : '',
|
|
117
|
+
placement: "left",
|
|
117
118
|
width: (drawer === null || drawer === void 0 ? void 0 : drawer.width) || 0,
|
|
118
|
-
visible:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
}, _DRAWER_PROPS, {
|
|
123
|
-
style: _objectSpread(_objectSpread({}, _DRAWER_PROPS.style), {}, {
|
|
124
|
-
display: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_COMPONENTS_.key ? 'block' : 'none'
|
|
125
|
-
})
|
|
126
|
-
}), /*#__PURE__*/React.createElement(Components, null)), /*#__PURE__*/React.createElement(Drawer, _extends({
|
|
127
|
-
title: drawer ? formatMessage({
|
|
128
|
-
id: "luckda.lowcode.".concat(drawer.key),
|
|
129
|
-
label: drawer.title
|
|
130
|
-
}) : '',
|
|
131
|
-
width: (drawer === null || drawer === void 0 ? void 0 : drawer.width) || 0,
|
|
132
|
-
visible: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key,
|
|
119
|
+
visible: !!drawer,
|
|
120
|
+
mask: false,
|
|
121
|
+
getContainer: false,
|
|
133
122
|
onClose: function onClose() {
|
|
134
123
|
return setDrawer(null);
|
|
124
|
+
},
|
|
125
|
+
style: {
|
|
126
|
+
position: 'absolute',
|
|
127
|
+
left: _WIDTH_
|
|
128
|
+
},
|
|
129
|
+
bodyStyle: {
|
|
130
|
+
overflowY: 'auto',
|
|
131
|
+
height: 'calc(100% - 55px)',
|
|
132
|
+
padding: 0
|
|
135
133
|
}
|
|
136
|
-
},
|
|
137
|
-
style: _objectSpread(_objectSpread({}, _DRAWER_PROPS.style), {}, {
|
|
138
|
-
display: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key ? 'block' : 'none'
|
|
139
|
-
})
|
|
140
|
-
}), /*#__PURE__*/React.createElement(I18n, null)));
|
|
134
|
+
}, Detail && /*#__PURE__*/React.createElement(Detail, null)));
|
|
141
135
|
};
|
|
142
136
|
export default Ribbon;
|
|
@@ -1,63 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React, { useState, useEffect } from 'react';
|
|
3
|
-
import { startsWith } from 'lodash';
|
|
1
|
+
import React from 'react';
|
|
4
2
|
import styles from "../style/panel-item.less";
|
|
5
|
-
import { Icon } from 'luck-design/antd';
|
|
6
3
|
|
|
7
4
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @component
|
|
13
|
-
* @example
|
|
14
|
-
* ```jsx
|
|
15
|
-
* <PanelItem
|
|
16
|
-
* label="属性名称"
|
|
17
|
-
* collapsed={false}
|
|
18
|
-
* addon={<div>额外内容</div>}
|
|
19
|
-
* >
|
|
20
|
-
* <input type="text" />
|
|
21
|
-
* </PanelItem>
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @param {Object} props 组件接收的参数。
|
|
25
|
-
* @param {string} props.label 显示的属性名称。如果标签以 `#` 开头,则不显示。
|
|
26
|
-
* @param {boolean} [props.collapsed=true] 初始是否折叠。默认为 `true`。
|
|
27
|
-
* @param {React.ReactNode} props.addon 当属性项展开时,可以在下方显示额外内容。
|
|
28
|
-
* @param {React.ReactNode} props.children 对应于属性名称的组件,可以是输入框、下拉菜单等 React 节点。
|
|
29
|
-
*
|
|
30
|
-
* @returns {React.Element} 渲染属性名称、对应的组件以及可选的额外内容。
|
|
5
|
+
* 属性面板属性行组件
|
|
6
|
+
* @param {string} label 属性名
|
|
7
|
+
* @param {React.ReactNode} component 属性组件
|
|
8
|
+
* @returns
|
|
31
9
|
*/
|
|
32
10
|
export default function (_ref) {
|
|
33
11
|
var label = _ref.label,
|
|
34
|
-
|
|
35
|
-
collapsed = _ref$collapsed === void 0 ? true : _ref$collapsed,
|
|
36
|
-
addon = _ref.addon,
|
|
37
|
-
children = _ref.children;
|
|
38
|
-
var _useState = useState(collapsed),
|
|
39
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
-
curClps = _useState2[0],
|
|
41
|
-
setCurClps = _useState2[1];
|
|
42
|
-
var HandleClick = function HandleClick() {
|
|
43
|
-
setCurClps(!curClps);
|
|
44
|
-
};
|
|
45
|
-
useEffect(function () {
|
|
46
|
-
setCurClps(collapsed);
|
|
47
|
-
}, [collapsed]);
|
|
12
|
+
component = _ref.component;
|
|
48
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
49
14
|
className: styles['lc-painter-components-panelitem']
|
|
50
|
-
}, /*#__PURE__*/React.createElement("
|
|
51
|
-
className: styles['panelrow']
|
|
52
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
53
16
|
className: styles['item-label']
|
|
54
|
-
},
|
|
55
|
-
className: styles['item-icon'],
|
|
56
|
-
type: !curClps ? 'down' : 'right',
|
|
57
|
-
onClick: HandleClick
|
|
58
|
-
}), label && !startsWith(label, '#') && /*#__PURE__*/React.createElement("span", null, label)), /*#__PURE__*/React.createElement("span", {
|
|
17
|
+
}, label), /*#__PURE__*/React.createElement("span", {
|
|
59
18
|
className: styles['item-component']
|
|
60
|
-
},
|
|
61
|
-
className: styles['addon']
|
|
62
|
-
}, addon));
|
|
19
|
+
}, component));
|
|
63
20
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
2
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
4
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
5
|
var _excluded = ["onValueChange", "rules", "value"];
|
|
7
6
|
import React, { forwardRef, useState, useEffect } from 'react';
|
|
8
7
|
import { Input, Tooltip } from 'luck-design/antd';
|
|
9
|
-
import classNames from 'classnames';
|
|
10
8
|
import styles from "../style/rule-input.less";
|
|
11
9
|
|
|
12
10
|
/**
|
|
@@ -87,14 +85,16 @@ export default /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
87
85
|
onValueChange(e, value);
|
|
88
86
|
} else {
|
|
89
87
|
setErr(error);
|
|
90
|
-
console.
|
|
88
|
+
console.log('err', error);
|
|
91
89
|
}
|
|
92
90
|
};
|
|
91
|
+
var className = styles['lc-painter-components-ruleinput'];
|
|
92
|
+
if (err) className += ' ' + styles['err'];
|
|
93
93
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
94
94
|
title: err,
|
|
95
95
|
visible: err
|
|
96
96
|
}, /*#__PURE__*/React.createElement(Input, _extends({
|
|
97
|
-
className:
|
|
97
|
+
className: className,
|
|
98
98
|
size: "small",
|
|
99
99
|
value: inputValue // 绑定输入值
|
|
100
100
|
,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import React
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
// import { history } from 'umi';
|
|
5
|
-
// import { formatMessage } from '@luck-design-biz/base/utils';
|
|
6
4
|
import EventBusProvider from "../engine/provider/EventBusProvider";
|
|
7
5
|
import ContextProvider from "../engine/provider/ContextProvider";
|
|
8
6
|
import Ribbon from "./Ribbon";
|
|
@@ -12,30 +10,6 @@ import { RUNTIME } from "../constants/index";
|
|
|
12
10
|
import styles from "./style/index.less";
|
|
13
11
|
var Painter = function Painter(_ref) {
|
|
14
12
|
var className = _ref.className;
|
|
15
|
-
// 修改后刷新提示功能,暂时关掉,等待提供数据对比进行判断
|
|
16
|
-
// useEffect(() => {
|
|
17
|
-
// const handleBeforeUnload = (event) => {
|
|
18
|
-
// event.preventDefault();
|
|
19
|
-
// event.returnValue = null;
|
|
20
|
-
// return null;
|
|
21
|
-
// };
|
|
22
|
-
|
|
23
|
-
// window.addEventListener('beforeunload', handleBeforeUnload);
|
|
24
|
-
|
|
25
|
-
// const unblock = history.block(() =>
|
|
26
|
-
// confirm(`${formatMessage({
|
|
27
|
-
// id: 'app.base.operate.comfire.reload', label: '重新加载此网站?'
|
|
28
|
-
// })}\n${formatMessage({
|
|
29
|
-
// id: 'app.base.operate.comfire.message.reload', label: '系统可能不会保存您所做的更改。'
|
|
30
|
-
// })}`)
|
|
31
|
-
// );
|
|
32
|
-
|
|
33
|
-
// return () => {
|
|
34
|
-
// unblock();
|
|
35
|
-
// window.removeEventListener('beforeunload', handleBeforeUnload);
|
|
36
|
-
// };
|
|
37
|
-
// }, []);
|
|
38
|
-
|
|
39
13
|
return /*#__PURE__*/React.createElement(EventBusProvider, {
|
|
40
14
|
runtime: RUNTIME.DESIGN
|
|
41
15
|
}, /*#__PURE__*/React.createElement(ContextProvider, null, /*#__PURE__*/React.createElement("div", {
|