@luck-design-biz/luckda 0.0.23 → 0.0.24-2
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/es/components/Builder/index.js +6 -4
- package/es/components/LdFormList/index.js +1 -4
- package/es/components/LdGrid/index.js +12 -3
- package/es/lowcode/constants/api-url.js +292 -1
- package/es/lowcode/constants/event-topics.js +14 -1
- 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/NumberStrategy.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 +53 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +51 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +42 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +44 -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} +126 -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 +29 -9
- package/es/lowcode/engine/meta/table.props.json +236 -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 +46 -41
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +85 -8
- package/es/lowcode/engine/tools/helper.js +68 -0
- package/es/lowcode/engine/tools/usePromiseState.js +24 -0
- package/es/lowcode/index.js +3 -1
- package/es/lowcode/painter/Design.js +40 -85
- package/es/lowcode/painter/DesignOperator.js +271 -0
- package/es/lowcode/painter/DesignToolbar.js +91 -0
- package/es/lowcode/painter/I18n.js +202 -2
- package/es/lowcode/painter/Outline.js +63 -54
- package/es/lowcode/painter/Panel.js +239 -2
- package/es/lowcode/painter/Ribbon.js +61 -55
- package/es/lowcode/painter/components/Collapse.js +90 -0
- package/es/lowcode/painter/components/ColorInput.js +125 -0
- package/es/lowcode/painter/components/ListEditor.js +89 -0
- package/es/lowcode/painter/components/NumberInput.js +148 -0
- package/es/lowcode/painter/components/PanelItem.js +83 -11
- package/es/lowcode/painter/components/PopConfirm.js +23 -0
- package/es/lowcode/painter/components/PopForm.js +71 -0
- package/es/lowcode/painter/components/RuleInput.js +9 -7
- package/es/lowcode/painter/components/SortBox.js +92 -0
- package/es/lowcode/painter/components/actions-editor/ActionEditor.js +147 -0
- package/es/lowcode/painter/components/actions-editor/index.js +170 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +96 -0
- package/es/lowcode/painter/components/code-editor/CssEditor.js +41 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +87 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +106 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -0
- package/es/lowcode/painter/index.js +33 -3
- package/es/lowcode/painter/panel-section/ButtonType.js +39 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +61 -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 +57 -49
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +61 -0
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +150 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +87 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +66 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +66 -0
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +296 -0
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +543 -0
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +162 -0
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +386 -0
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +78 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +23 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +20 -0
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +23 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +96 -0
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +60 -0
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +50 -0
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +61 -0
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +41 -0
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +216 -0
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +53 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +148 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +16 -0
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +51 -0
- package/es/lowcode/painter/panel-section/StylePanel/index.js +29 -0
- package/es/lowcode/painter/panel-section/TabItems.js +207 -0
- package/es/lowcode/painter/panel-section/TableActions.js +19 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +14 -0
- package/es/lowcode/painter/panel-section/WidthHeight.js +39 -0
- package/es/lowcode/painter/services/I18n.js +85 -0
- package/es/lowcode/painter/style/actions-editor.less +16 -0
- package/es/lowcode/painter/style/border-editor.less +36 -0
- package/es/lowcode/painter/style/border-radius-selector.less +43 -0
- package/es/lowcode/painter/style/border-selector.less +40 -0
- package/es/lowcode/painter/style/button-type.less +5 -0
- package/es/lowcode/painter/style/collapse.less +22 -0
- package/es/lowcode/painter/style/color-input.less +19 -0
- package/es/lowcode/painter/style/design.less +116 -5
- package/es/lowcode/painter/style/display.less +17 -0
- package/es/lowcode/painter/style/font-editor.less +9 -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/list-editor.less +59 -0
- 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 +45 -12
- package/es/lowcode/painter/style/panel.less +124 -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/ribbon.less +1 -0
- package/es/lowcode/painter/style/style-panel.less +37 -0
- package/es/lowcode/painter/style/tabitems.less +90 -0
- package/es/lowcode/view/Canvas.js +79 -70
- package/es/lowcode/view/Page.js +10 -28
- package/es/lowcode/view/index.js +5 -6
- 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 +75 -7
- package/es/lowcode/view/lc-components/Button/meta.json +127 -0
- package/es/lowcode/view/lc-components/Button/style.less +3 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +9 -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 +54 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +20 -11
- package/es/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +20 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +22 -9
- package/es/lowcode/view/lc-components/Drawer/index.less +7 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +144 -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/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/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/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/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/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/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/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/meta.json +72 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +18 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Table/index.js +229 -9
- package/es/lowcode/view/lc-components/Table/meta.json +225 -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/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/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/meta.json +157 -0
- package/es/lowcode/view/lc-components/Wrapper.js +32 -23
- package/es/lowcode/view/style/page.less +0 -1
- package/es/upload/Form/gridForm.js +1 -1
- package/es/utils/grid.js +4 -3
- package/lib/components/Builder/index.js +5 -3
- package/lib/components/LdFormList/index.js +1 -5
- package/lib/components/LdGrid/index.js +12 -3
- package/lib/lowcode/constants/api-url.js +294 -2
- package/lib/lowcode/constants/event-topics.js +15 -2
- 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/NumberStrategy.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 +59 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +57 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +48 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +50 -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} +126 -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 +29 -9
- package/lib/lowcode/engine/meta/table.props.json +236 -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 +46 -41
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +86 -8
- package/lib/lowcode/engine/tools/helper.js +70 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +31 -0
- package/lib/lowcode/index.js +5 -1
- package/lib/lowcode/painter/Design.js +39 -84
- package/lib/lowcode/painter/DesignOperator.js +278 -0
- package/lib/lowcode/painter/DesignToolbar.js +99 -0
- package/lib/lowcode/painter/I18n.js +203 -2
- package/lib/lowcode/painter/Outline.js +62 -53
- package/lib/lowcode/painter/Panel.js +238 -1
- package/lib/lowcode/painter/Ribbon.js +63 -64
- package/lib/lowcode/painter/components/Collapse.js +97 -0
- package/lib/lowcode/painter/components/ColorInput.js +132 -0
- package/lib/lowcode/painter/components/ListEditor.js +95 -0
- package/lib/lowcode/painter/components/NumberInput.js +155 -0
- package/lib/lowcode/painter/components/PanelItem.js +84 -11
- package/lib/lowcode/painter/components/PopConfirm.js +29 -0
- package/lib/lowcode/painter/components/PopForm.js +77 -0
- package/lib/lowcode/painter/components/RuleInput.js +9 -7
- package/lib/lowcode/painter/components/SortBox.js +99 -0
- package/lib/lowcode/painter/components/actions-editor/ActionEditor.js +155 -0
- package/lib/lowcode/painter/components/actions-editor/index.js +178 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +103 -0
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +48 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +94 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +117 -0
- package/lib/lowcode/painter/components/code-editor/index.js +20 -0
- package/lib/lowcode/painter/index.js +35 -3
- package/lib/lowcode/painter/panel-section/ButtonType.js +46 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +69 -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 +56 -48
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +68 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +158 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +95 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +73 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +73 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +303 -0
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +550 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +170 -0
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +392 -0
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +85 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +29 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +26 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +29 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +103 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +67 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +57 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +68 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +48 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +224 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +59 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +159 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +22 -0
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +58 -0
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +35 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +215 -0
- package/lib/lowcode/painter/panel-section/TableActions.js +26 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +21 -0
- package/lib/lowcode/painter/panel-section/WidthHeight.js +46 -0
- package/lib/lowcode/painter/services/I18n.js +95 -0
- package/lib/lowcode/painter/style/actions-editor.less +16 -0
- package/lib/lowcode/painter/style/border-editor.less +36 -0
- package/lib/lowcode/painter/style/border-radius-selector.less +43 -0
- package/lib/lowcode/painter/style/border-selector.less +40 -0
- package/lib/lowcode/painter/style/button-type.less +5 -0
- package/lib/lowcode/painter/style/collapse.less +22 -0
- package/lib/lowcode/painter/style/color-input.less +19 -0
- package/lib/lowcode/painter/style/design.less +116 -5
- package/lib/lowcode/painter/style/display.less +17 -0
- package/lib/lowcode/painter/style/font-editor.less +9 -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/list-editor.less +59 -0
- 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 +45 -12
- package/lib/lowcode/painter/style/panel.less +124 -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/ribbon.less +1 -0
- package/lib/lowcode/painter/style/style-panel.less +37 -0
- package/lib/lowcode/painter/style/tabitems.less +90 -0
- package/lib/lowcode/view/Canvas.js +84 -75
- package/lib/lowcode/view/Page.js +9 -27
- package/lib/lowcode/view/index.js +5 -6
- 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 +76 -8
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -0
- package/lib/lowcode/view/lc-components/Button/style.less +3 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +16 -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 +62 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +20 -11
- package/lib/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +27 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +22 -9
- package/lib/lowcode/view/lc-components/Drawer/index.less +7 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -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/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/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/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/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/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/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/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/meta.json +72 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +25 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Table/index.js +228 -8
- package/lib/lowcode/view/lc-components/Table/meta.json +225 -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/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/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/meta.json +157 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +30 -21
- package/lib/lowcode/view/style/page.less +0 -1
- package/lib/upload/Form/gridForm.js +1 -1
- package/lib/utils/grid.js +6 -5
- package/package.json +15 -6
- 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
|
@@ -23,10 +23,8 @@ var _outline = _interopRequireDefault(require("./style/outline.less"));
|
|
|
23
23
|
var _excluded = ["props", "children"];
|
|
24
24
|
var TreeNode = _antd.Tree.TreeNode;
|
|
25
25
|
var PAGE_CELL = [_constants.CELL_KEY.PAGE_HEADER, _constants.CELL_KEY.PAGE_CONTENT, _constants.CELL_KEY.PAGE_FOOTER];
|
|
26
|
-
var Outline = function Outline() {
|
|
27
|
-
var
|
|
28
|
-
var pageTreeRef = (0, _react.useRef)();
|
|
29
|
-
var openModal = (0, _react.useRef)(void 0);
|
|
26
|
+
var Outline = function Outline(_ref) {
|
|
27
|
+
var open = _ref.open;
|
|
30
28
|
var clickBySelf = (0, _react.useRef)(false);
|
|
31
29
|
var context = (0, _ContextProvider.useLDContext)();
|
|
32
30
|
var _useState = (0, _react.useState)(null),
|
|
@@ -45,6 +43,8 @@ var Outline = function Outline() {
|
|
|
45
43
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
46
44
|
pageExpandedKeys = _useState8[0],
|
|
47
45
|
setPageExpandedKeys = _useState8[1];
|
|
46
|
+
var latestModalExpandedKeysRef = (0, _ahooks.useLatest)(modalExpandedKeys);
|
|
47
|
+
var lastPageExpandedKeysRef = (0, _ahooks.useLatest)(pageExpandedKeys);
|
|
48
48
|
(0, _react.useEffect)(function () {
|
|
49
49
|
var _id = context.$subscriber(context.topics.COMPONENT_ACTIVE).on(function (payload) {
|
|
50
50
|
setSelectedKey(payload.id);
|
|
@@ -52,36 +52,35 @@ var Outline = function Outline() {
|
|
|
52
52
|
clickBySelf.current = false;
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
var _split = (0, _lodash.split)((0, _dataProcess.getPathById)(context.pageData, payload.id), '/'),
|
|
56
|
+
_split2 = (0, _slicedToArray2.default)(_split, 1),
|
|
57
|
+
_root = _split2[0];
|
|
58
|
+
if (!PAGE_CELL.includes(_root)) {
|
|
59
|
+
setModalExpandedKeys((0, _lodash.uniq)([].concat((0, _toConsumableArray2.default)(latestModalExpandedKeysRef.current), (0, _toConsumableArray2.default)((0, _lodash.split)((0, _dataProcess.getPathById)(context.pageData, payload.id), '/')))));
|
|
60
|
+
} else {
|
|
61
|
+
setPageExpandedKeys((0, _lodash.uniq)([].concat((0, _toConsumableArray2.default)(lastPageExpandedKeysRef.current), (0, _toConsumableArray2.default)((0, _lodash.split)((0, _dataProcess.getPathById)(context.pageData, payload.id), '/')))));
|
|
62
|
+
}
|
|
56
63
|
}).watch();
|
|
57
64
|
return function () {
|
|
58
65
|
context.$unsubscriber(context.topics.COMPONENT_ACTIVE, _id);
|
|
59
66
|
};
|
|
60
|
-
}, []);
|
|
61
|
-
var handleSelect = function
|
|
67
|
+
}, [context.pageData]);
|
|
68
|
+
var handleSelect = (0, _ahooks.useMemoizedFn)(function (_key) {
|
|
62
69
|
clickBySelf.current = true;
|
|
63
70
|
context.$publisher(context.topics.COMPONENT_ACTIVE, _key ? {
|
|
64
|
-
id: _key
|
|
65
|
-
cellNode: context.componentMap.get(_key).dom
|
|
71
|
+
id: _key
|
|
66
72
|
} : null);
|
|
67
|
-
};
|
|
68
|
-
var handleOpenModal = (0, _ahooks.useMemoizedFn)(function (_key) {
|
|
69
|
-
var _comp = context.componentMap.get(_key);
|
|
70
|
-
var _prevComp = openModal.current ? context.componentMap.get(openModal.current) : null;
|
|
71
|
-
_prevComp === null || _prevComp === void 0 || _prevComp.api.doClose();
|
|
72
|
-
_comp.api.doOpen();
|
|
73
|
-
openModal.current = _key;
|
|
74
73
|
});
|
|
75
|
-
var render = (0, _ahooks.useMemoizedFn)(function (
|
|
76
|
-
var props =
|
|
77
|
-
children =
|
|
78
|
-
childrenMap = (0, _objectWithoutProperties2.default)(
|
|
74
|
+
var render = (0, _ahooks.useMemoizedFn)(function (_ref2) {
|
|
75
|
+
var props = _ref2.props,
|
|
76
|
+
children = _ref2.children,
|
|
77
|
+
childrenMap = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
79
78
|
if (props) {
|
|
80
79
|
return /*#__PURE__*/_react.default.createElement(TreeNode, {
|
|
81
80
|
icon: /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
82
81
|
type: "layout"
|
|
83
82
|
}),
|
|
84
|
-
title: props.
|
|
83
|
+
title: props.name,
|
|
85
84
|
key: props.id
|
|
86
85
|
}, (children === null || children === void 0 ? void 0 : children.length) && children.map(function (_id) {
|
|
87
86
|
return render(childrenMap[_id]);
|
|
@@ -92,6 +91,9 @@ var Outline = function Outline() {
|
|
|
92
91
|
});
|
|
93
92
|
});
|
|
94
93
|
(0, _ahooks.useDeepCompareLayoutEffect)(function () {
|
|
94
|
+
if (!context.pageData) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
95
97
|
var _reduce = (0, _lodash.reduce)(context.pageData.children, function (result, _id) {
|
|
96
98
|
var resultKey = PAGE_CELL.includes(_id) ? 'page' : 'modal';
|
|
97
99
|
result[resultKey][_id] = context.pageData[_id];
|
|
@@ -132,7 +134,7 @@ var Outline = function Outline() {
|
|
|
132
134
|
type: "inner",
|
|
133
135
|
hoverable: true,
|
|
134
136
|
title: (0, _utils.formatMessage)({
|
|
135
|
-
id: 'luckda.lowcode.
|
|
137
|
+
id: 'luckda.lowcode.modal',
|
|
136
138
|
label: '模态视图层'
|
|
137
139
|
}),
|
|
138
140
|
style: {
|
|
@@ -142,7 +144,6 @@ var Outline = function Outline() {
|
|
|
142
144
|
padding: 0
|
|
143
145
|
}
|
|
144
146
|
}, /*#__PURE__*/_react.default.createElement(_antd.Tree, {
|
|
145
|
-
ref: modalTreeRef,
|
|
146
147
|
showLine: true,
|
|
147
148
|
showIcon: true,
|
|
148
149
|
blockNode: true,
|
|
@@ -150,41 +151,51 @@ var Outline = function Outline() {
|
|
|
150
151
|
type: "down"
|
|
151
152
|
}),
|
|
152
153
|
selectedKeys: [selectedKey],
|
|
153
|
-
onSelect: function onSelect(
|
|
154
|
-
var
|
|
155
|
-
_key =
|
|
156
|
-
var selected =
|
|
157
|
-
node =
|
|
154
|
+
onSelect: function onSelect(_ref3, _ref4) {
|
|
155
|
+
var _ref5 = (0, _slicedToArray2.default)(_ref3, 1),
|
|
156
|
+
_key = _ref5[0];
|
|
157
|
+
var selected = _ref4.selected,
|
|
158
|
+
node = _ref4.node;
|
|
158
159
|
if (selected && node.props.pos.split('-').length === 2) {
|
|
159
|
-
|
|
160
|
+
// 选中节点是模态视图,则打开模态视图组件
|
|
161
|
+
context.$publisher(context.topics.COMPONENT_MODAL_TOGGLE, {
|
|
162
|
+
toggle: true,
|
|
163
|
+
id: _key
|
|
164
|
+
});
|
|
160
165
|
handleSelect(_key);
|
|
161
166
|
} else if (!selected && node.props.pos.split('-').length === 2) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
167
|
+
// 取消选中节点是模态视图,则关闭模态视图
|
|
168
|
+
context.$publisher(context.topics.COMPONENT_MODAL_TOGGLE, {
|
|
169
|
+
toggle: false,
|
|
170
|
+
id: _key
|
|
171
|
+
});
|
|
165
172
|
handleSelect(null);
|
|
166
173
|
} else {
|
|
174
|
+
// 选中节点是模态视图下的子组件,则打开该组件的模态视图组件
|
|
167
175
|
handleSelect(node.props.eventKey);
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
parentModal =
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
var _split3 = (0, _lodash.split)((0, _dataProcess.getPathById)(context.pageData, node.props.eventKey), '/'),
|
|
177
|
+
_split4 = (0, _slicedToArray2.default)(_split3, 1),
|
|
178
|
+
parentModal = _split4[0];
|
|
179
|
+
context.$publisher(context.topics.COMPONENT_MODAL_TOGGLE, {
|
|
180
|
+
toggle: true,
|
|
181
|
+
id: parentModal
|
|
182
|
+
});
|
|
174
183
|
}
|
|
175
184
|
},
|
|
176
185
|
expandedKeys: modalExpandedKeys,
|
|
177
|
-
onExpand: function onExpand(_keys,
|
|
178
|
-
var expanded =
|
|
179
|
-
node =
|
|
186
|
+
onExpand: function onExpand(_keys, _ref6) {
|
|
187
|
+
var expanded = _ref6.expanded,
|
|
188
|
+
node = _ref6.node;
|
|
180
189
|
if (expanded && node.props.pos.split('-').length === 2) {
|
|
181
190
|
handleSelect(null);
|
|
182
|
-
|
|
191
|
+
context.$publisher(context.topics.COMPONENT_MODAL_TOGGLE, {
|
|
192
|
+
toggle: true,
|
|
193
|
+
id: node.props.eventKey
|
|
194
|
+
});
|
|
183
195
|
}
|
|
184
196
|
setModalExpandedKeys(_keys);
|
|
185
197
|
}
|
|
186
|
-
}, pageAndModal === null || pageAndModal === void 0 ? void 0 : pageAndModal.modal)), /*#__PURE__*/_react.default.createElement(_antd.Tree, {
|
|
187
|
-
ref: pageTreeRef,
|
|
198
|
+
}, pageAndModal === null || pageAndModal === void 0 ? void 0 : pageAndModal.modal)), open && /*#__PURE__*/_react.default.createElement(_antd.Tree, {
|
|
188
199
|
showLine: true,
|
|
189
200
|
showIcon: true,
|
|
190
201
|
blockNode: true,
|
|
@@ -192,15 +203,13 @@ var Outline = function Outline() {
|
|
|
192
203
|
type: "down"
|
|
193
204
|
}),
|
|
194
205
|
selectedKeys: [selectedKey],
|
|
195
|
-
onSelect: function onSelect(
|
|
196
|
-
var
|
|
197
|
-
_key =
|
|
198
|
-
var node =
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
openModal.current = void 0;
|
|
203
|
-
}
|
|
206
|
+
onSelect: function onSelect(_ref7, _ref8) {
|
|
207
|
+
var _ref9 = (0, _slicedToArray2.default)(_ref7, 1),
|
|
208
|
+
_key = _ref9[0];
|
|
209
|
+
var node = _ref8.node;
|
|
210
|
+
context.$publisher(context.topics.COMPONENT_MODAL_TOGGLE, {
|
|
211
|
+
toggle: false
|
|
212
|
+
});
|
|
204
213
|
handleSelect(node.props.eventKey);
|
|
205
214
|
},
|
|
206
215
|
expandedKeys: pageExpandedKeys,
|
|
@@ -6,11 +6,248 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
+
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
var _ahooks = require("ahooks");
|
|
16
|
+
var _antd = require("luck-design/antd");
|
|
17
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
18
|
+
var _lodash = require("lodash");
|
|
19
|
+
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
20
|
+
var _PanelItem = _interopRequireDefault(require("./components/PanelItem"));
|
|
21
|
+
var _panelItemFactory = _interopRequireDefault(require("../engine/factory/panel-item-factory"));
|
|
22
|
+
var _dataProcess = require("../engine/tools/dataProcess");
|
|
10
23
|
var _panel = _interopRequireDefault(require("./style/panel.less"));
|
|
24
|
+
var _StylePanel = _interopRequireDefault(require("./panel-section/StylePanel"));
|
|
25
|
+
var _excluded = ["type", "key", "name", "desc", "default", "props", "panelItem", "next", "repositioning"];
|
|
26
|
+
var _TAB_LIST_ = [{
|
|
27
|
+
title: '属性',
|
|
28
|
+
key: 'attrs'
|
|
29
|
+
}, {
|
|
30
|
+
title: '样式',
|
|
31
|
+
key: 'styles'
|
|
32
|
+
}, {
|
|
33
|
+
title: '高级',
|
|
34
|
+
key: 'advance'
|
|
35
|
+
}];
|
|
11
36
|
var Panel = function Panel() {
|
|
37
|
+
var _nextRef$current, _nextRef$current2;
|
|
38
|
+
var activeTabRef = (0, _react.useRef)(null);
|
|
39
|
+
var underLineRef = (0, _react.useRef)(null);
|
|
40
|
+
var nextRef = (0, _react.useRef)(null);
|
|
41
|
+
var factory = (0, _react.useRef)(new _panelItemFactory.default());
|
|
42
|
+
var _useState = (0, _react.useState)(null),
|
|
43
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
44
|
+
activeNode = _useState2[0],
|
|
45
|
+
setActiveNode = _useState2[1];
|
|
46
|
+
var _useState3 = (0, _react.useState)('attrs'),
|
|
47
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
48
|
+
activeTabKey = _useState4[0],
|
|
49
|
+
setActiveTabKey = _useState4[1];
|
|
50
|
+
var _useBoolean = (0, _ahooks.useBoolean)(false),
|
|
51
|
+
_useBoolean2 = (0, _slicedToArray2.default)(_useBoolean, 2),
|
|
52
|
+
open = _useBoolean2[0],
|
|
53
|
+
_useBoolean2$ = _useBoolean2[1],
|
|
54
|
+
setTrue = _useBoolean2$.setTrue,
|
|
55
|
+
setFalse = _useBoolean2$.setFalse;
|
|
56
|
+
var context = (0, _ContextProvider.useLDContext)();
|
|
57
|
+
var handleChange = (0, _ahooks.useMemoizedFn)(function (field, value, repositioning) {
|
|
58
|
+
var component = context.componentMap.get(activeNode.node.id);
|
|
59
|
+
var _component$api$getSel = component.api.getSelfAndParentLCData(),
|
|
60
|
+
node = _component$api$getSel.node;
|
|
61
|
+
var cloneData = (0, _lodash.cloneDeep)(context.pageData);
|
|
62
|
+
(0, _dataProcess.modifyById)(cloneData, activeNode.node.id, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, node.props), {}, (0, _defineProperty2.default)({}, field, value)));
|
|
63
|
+
context._setPageData(cloneData).then(function (newData) {
|
|
64
|
+
context.$publisher(context.topics.COMPONENT_MODIFY, {
|
|
65
|
+
id: activeNode.node.id,
|
|
66
|
+
pageData: (0, _lodash.cloneDeep)(newData)
|
|
67
|
+
});
|
|
68
|
+
if (repositioning) context.$publisher(context.topics.COMPONENT_REPOSITIONING, {
|
|
69
|
+
id: activeNode.node.id
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
if (nextRef.current.autoClose) {
|
|
73
|
+
setFalse();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var handleStyleChange = (0, _ahooks.useMemoizedFn)(function (newStyle, newCss) {
|
|
77
|
+
console.log('style', newStyle, newCss);
|
|
78
|
+
// setCss(newCss);
|
|
79
|
+
});
|
|
80
|
+
var goNext = (0, _ahooks.useMemoizedFn)(function (_next) {
|
|
81
|
+
if (!_next) return;
|
|
82
|
+
nextRef.current = {
|
|
83
|
+
name: _next.name,
|
|
84
|
+
autoClose: _next.autoClose,
|
|
85
|
+
NextComp: renderPanelItems(_next.props)
|
|
86
|
+
};
|
|
87
|
+
setTrue();
|
|
88
|
+
});
|
|
89
|
+
var renderPanelItems = (0, _ahooks.useMemoizedFn)(function (items) {
|
|
90
|
+
return items.map(function (_ref) {
|
|
91
|
+
var type = _ref.type,
|
|
92
|
+
key = _ref.key,
|
|
93
|
+
name = _ref.name,
|
|
94
|
+
desc = _ref.desc,
|
|
95
|
+
defaultValue = _ref.default,
|
|
96
|
+
props = _ref.props,
|
|
97
|
+
panelItem = _ref.panelItem,
|
|
98
|
+
_next2 = _ref.next,
|
|
99
|
+
repositioning = _ref.repositioning,
|
|
100
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
101
|
+
var Comp = factory.current.getPanelItemFor((0, _lodash.startsWith)(type, '_') ? 'dynamic' : type, type);
|
|
102
|
+
if (type === 'group') {
|
|
103
|
+
return /*#__PURE__*/_react.default.createElement(Comp, {
|
|
104
|
+
key: key,
|
|
105
|
+
field: key,
|
|
106
|
+
label: name,
|
|
107
|
+
next: _next2 ? function () {
|
|
108
|
+
return goNext(_next2);
|
|
109
|
+
} : null,
|
|
110
|
+
defaultCollapsed: defaultValue,
|
|
111
|
+
desc: desc
|
|
112
|
+
}, renderPanelItems(props || []));
|
|
113
|
+
}
|
|
114
|
+
var _context$componentMap = context.componentMap.get(activeNode.node.id).api.getSelfAndParentLCData(),
|
|
115
|
+
node = _context$componentMap.node;
|
|
116
|
+
return /*#__PURE__*/_react.default.createElement(_PanelItem.default, (0, _extends2.default)({
|
|
117
|
+
key: key,
|
|
118
|
+
field: key,
|
|
119
|
+
label: name,
|
|
120
|
+
desc: desc
|
|
121
|
+
}, panelItem), Comp && /*#__PURE__*/_react.default.createElement(Comp, (0, _extends2.default)({
|
|
122
|
+
defaultValue: (0, _lodash.isNil)(node.props[key]) ? defaultValue : node.props[key],
|
|
123
|
+
next: function next() {
|
|
124
|
+
return goNext(_next2);
|
|
125
|
+
},
|
|
126
|
+
onChange: function onChange(value) {
|
|
127
|
+
return handleChange(key, value, repositioning);
|
|
128
|
+
},
|
|
129
|
+
size: "small"
|
|
130
|
+
}, rest)));
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
var PropsComps = (0, _ahooks.useCreation)(function () {
|
|
134
|
+
setActiveTabKey('attrs');
|
|
135
|
+
var _meta;
|
|
136
|
+
try {
|
|
137
|
+
_meta = require("../engine/meta/".concat(activeNode.node.component.toLowerCase(), ".props.json"));
|
|
138
|
+
} catch (e) {
|
|
139
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
140
|
+
}
|
|
141
|
+
return renderPanelItems(_meta.props);
|
|
142
|
+
}, [activeNode]);
|
|
143
|
+
(0, _react.useEffect)(function () {
|
|
144
|
+
if (!open) {
|
|
145
|
+
nextRef.current = null;
|
|
146
|
+
}
|
|
147
|
+
}, [open]);
|
|
148
|
+
(0, _react.useEffect)(function () {
|
|
149
|
+
var _id = context.$subscriber(context.topics.COMPONENT_ACTIVE).on(function (payload) {
|
|
150
|
+
setFalse();
|
|
151
|
+
if (!payload.id) {
|
|
152
|
+
setActiveNode(null);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
var component = context.componentMap.get(payload.id);
|
|
156
|
+
var _component$api$getSel2 = component.api.getSelfAndParentLCData(),
|
|
157
|
+
node = _component$api$getSel2.node;
|
|
158
|
+
var levelNodes = (0, _lodash.takeRight)(component.api.getLevelNodes(), 4);
|
|
159
|
+
setActiveNode({
|
|
160
|
+
node: node.props,
|
|
161
|
+
level: levelNodes
|
|
162
|
+
});
|
|
163
|
+
}).watch();
|
|
164
|
+
return function () {
|
|
165
|
+
context.$unsubscriber(context.topics.COMPONENT_ACTIVE, _id);
|
|
166
|
+
};
|
|
167
|
+
}, []);
|
|
168
|
+
(0, _react.useLayoutEffect)(function () {
|
|
169
|
+
underLineRef.current.style.left = "".concat(activeTabRef.current.offsetLeft + activeTabRef.current.offsetWidth / 2 - 10, "px");
|
|
170
|
+
}, [activeTabKey, !!activeNode]);
|
|
12
171
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
13
172
|
className: _panel.default['lc-painter-panel']
|
|
14
|
-
}, "
|
|
173
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
174
|
+
className: (0, _classnames.default)(_panel.default['lc-painter-panel-topbar'], (0, _defineProperty2.default)({}, _panel.default.hidden, !activeNode))
|
|
175
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Breadcrumb, {
|
|
176
|
+
separator: ">",
|
|
177
|
+
style: {
|
|
178
|
+
fontSize: 12
|
|
179
|
+
}
|
|
180
|
+
}, activeNode === null || activeNode === void 0 ? void 0 : activeNode.level.map(function (_ref2) {
|
|
181
|
+
var id = _ref2.id,
|
|
182
|
+
name = _ref2.name;
|
|
183
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Breadcrumb.Item, {
|
|
184
|
+
key: id,
|
|
185
|
+
className: (0, _classnames.default)((0, _defineProperty2.default)({}, _panel.default['active-node-level'], id !== activeNode.node.id)),
|
|
186
|
+
onMouseEnter: function onMouseEnter() {
|
|
187
|
+
if (id === activeNode.node.id) return;
|
|
188
|
+
context.$publisher(context.topics.COMPONENT_HOVER, {
|
|
189
|
+
id: id
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
onMouseLeave: function onMouseLeave() {
|
|
193
|
+
if (id === activeNode.node.id) return;
|
|
194
|
+
context.$publisher(context.topics.COMPONENT_HOVER, null);
|
|
195
|
+
},
|
|
196
|
+
onClick: function onClick() {
|
|
197
|
+
if (id === activeNode.node.id) return;
|
|
198
|
+
context.$publisher(context.topics.COMPONENT_ACTIVE, {
|
|
199
|
+
id: id
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}, name);
|
|
203
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
204
|
+
className: (0, _classnames.default)(_panel.default['lc-painter-panel-tabbar'], (0, _defineProperty2.default)({}, _panel.default.hidden, !activeNode))
|
|
205
|
+
}, /*#__PURE__*/_react.default.createElement("ul", {
|
|
206
|
+
className: _panel.default.headerList
|
|
207
|
+
}, (activeNode !== null && activeNode !== void 0 && activeNode.node.style ? _TAB_LIST_ : [_TAB_LIST_[0], _TAB_LIST_[2]]).map(function (_item) {
|
|
208
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
209
|
+
key: _item.key,
|
|
210
|
+
ref: activeTabKey === _item.key ? activeTabRef : null,
|
|
211
|
+
className: (0, _classnames.default)((0, _defineProperty2.default)({}, _panel.default.actived, activeTabKey === _item.key)),
|
|
212
|
+
onClick: function onClick() {
|
|
213
|
+
return setActiveTabKey(_item.key);
|
|
214
|
+
}
|
|
215
|
+
}, _item.title);
|
|
216
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
217
|
+
ref: underLineRef,
|
|
218
|
+
className: _panel.default.underline
|
|
219
|
+
})), activeTabKey === _TAB_LIST_[0].key && /*#__PURE__*/_react.default.createElement("div", {
|
|
220
|
+
className: (0, _classnames.default)(_panel.default['lc-painter-panel-content'], (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _panel.default.hidden, !activeNode), _panel.default.showNext, open))
|
|
221
|
+
}, PropsComps, /*#__PURE__*/_react.default.createElement(_antd.Drawer, {
|
|
222
|
+
visible: open,
|
|
223
|
+
width: 320,
|
|
224
|
+
mask: false,
|
|
225
|
+
closable: false,
|
|
226
|
+
getContainer: false,
|
|
227
|
+
destroyOnClose: true,
|
|
228
|
+
style: {
|
|
229
|
+
position: 'absolute'
|
|
230
|
+
},
|
|
231
|
+
bodyStyle: {
|
|
232
|
+
padding: 0,
|
|
233
|
+
height: '100%'
|
|
234
|
+
}
|
|
235
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
236
|
+
className: _panel.default['next-content']
|
|
237
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
238
|
+
className: _panel.default['next-content-header'],
|
|
239
|
+
onClick: setFalse
|
|
240
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
241
|
+
type: "left"
|
|
242
|
+
}), (_nextRef$current = nextRef.current) === null || _nextRef$current === void 0 ? void 0 : _nextRef$current.name, /*#__PURE__*/_react.default.createElement(_antd.Icon, {
|
|
243
|
+
type: "close"
|
|
244
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
245
|
+
className: _panel.default['next-content-body']
|
|
246
|
+
}, (_nextRef$current2 = nextRef.current) === null || _nextRef$current2 === void 0 ? void 0 : _nextRef$current2.NextComp)))), activeTabKey === _TAB_LIST_[1].key && /*#__PURE__*/_react.default.createElement(_StylePanel.default, {
|
|
247
|
+
onChange: handleStyleChange,
|
|
248
|
+
value: activeNode === null || activeNode === void 0 ? void 0 : activeNode.node.style
|
|
249
|
+
}), activeTabKey === _TAB_LIST_[2].key && /*#__PURE__*/_react.default.createElement("div", null, "\u9AD8\u7EA7\u9762\u677F"), /*#__PURE__*/_react.default.createElement("div", {
|
|
250
|
+
className: (0, _classnames.default)(_panel.default['lc-painter-panel-empty'], (0, _defineProperty2.default)({}, _panel.default.hidden, !!activeNode))
|
|
251
|
+
}, "\u8BF7\u5728\u5DE6\u4FA7\u753B\u5E03\u9009\u4E2D\u8282\u70B9"));
|
|
15
252
|
};
|
|
16
253
|
var _default = exports.default = Panel;
|
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
-
var _react =
|
|
14
|
-
var _ahooks = require("ahooks");
|
|
15
|
-
var _umi = require("umi");
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
16
13
|
var _luckDesign = require("luck-design");
|
|
17
14
|
var _antd = require("luck-design/antd");
|
|
15
|
+
var _Outline = _interopRequireDefault(require("./Outline"));
|
|
16
|
+
var _Components = _interopRequireDefault(require("./Components"));
|
|
17
|
+
var _I18n = _interopRequireDefault(require("./I18n"));
|
|
18
18
|
var _utils = require("@luck-design-biz/base/utils");
|
|
19
|
-
var _lodash = require("lodash");
|
|
20
19
|
var _ribbon = _interopRequireDefault(require("./style/ribbon.less"));
|
|
21
20
|
var _WIDTH_ = 48;
|
|
21
|
+
var _DRAWER_PROPS = {
|
|
22
|
+
placement: 'left',
|
|
23
|
+
mask: false,
|
|
24
|
+
getContainer: false,
|
|
25
|
+
zIndex: 10000,
|
|
26
|
+
headerStyle: {
|
|
27
|
+
borderBottom: 'none'
|
|
28
|
+
},
|
|
29
|
+
style: {
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
left: _WIDTH_
|
|
32
|
+
},
|
|
33
|
+
bodyStyle: {
|
|
34
|
+
overflowY: 'auto',
|
|
35
|
+
height: 'calc(100% - 55px)',
|
|
36
|
+
padding: 0
|
|
37
|
+
}
|
|
38
|
+
};
|
|
22
39
|
var _DRAWER_OUTLINE_ = {
|
|
23
40
|
width: 300,
|
|
24
41
|
key: 'outline',
|
|
@@ -29,7 +46,7 @@ var _DRAWER_COMPONENTS_ = {
|
|
|
29
46
|
width: 310,
|
|
30
47
|
key: 'components',
|
|
31
48
|
title: '组件',
|
|
32
|
-
fix:
|
|
49
|
+
fix: true
|
|
33
50
|
};
|
|
34
51
|
var _DRAWER_I18N_ = {
|
|
35
52
|
width: 450,
|
|
@@ -42,46 +59,6 @@ var Ribbon = function Ribbon() {
|
|
|
42
59
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
43
60
|
drawer = _useState2[0],
|
|
44
61
|
setDrawer = _useState2[1];
|
|
45
|
-
var Detail = (0, _ahooks.useCreation)(function () {
|
|
46
|
-
return (0, _umi.dynamic)({
|
|
47
|
-
loader: function () {
|
|
48
|
-
var _loader = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
49
|
-
var name, _yield$import, Comp;
|
|
50
|
-
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
51
|
-
while (1) switch (_context.prev = _context.next) {
|
|
52
|
-
case 0:
|
|
53
|
-
if (!drawer) {
|
|
54
|
-
_context.next = 7;
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
name = (0, _lodash.upperFirst)(drawer.key);
|
|
58
|
-
_context.next = 4;
|
|
59
|
-
return function (specifier) {
|
|
60
|
-
return new Promise(function (r) {
|
|
61
|
-
return r(specifier);
|
|
62
|
-
}).then(function (s) {
|
|
63
|
-
return (0, _interopRequireWildcard2.default)(require(s));
|
|
64
|
-
});
|
|
65
|
-
}("./".concat(name));
|
|
66
|
-
case 4:
|
|
67
|
-
_yield$import = _context.sent;
|
|
68
|
-
Comp = _yield$import.default;
|
|
69
|
-
return _context.abrupt("return", Comp);
|
|
70
|
-
case 7:
|
|
71
|
-
return _context.abrupt("return", null);
|
|
72
|
-
case 8:
|
|
73
|
-
case "end":
|
|
74
|
-
return _context.stop();
|
|
75
|
-
}
|
|
76
|
-
}, _callee);
|
|
77
|
-
}));
|
|
78
|
-
function loader() {
|
|
79
|
-
return _loader.apply(this, arguments);
|
|
80
|
-
}
|
|
81
|
-
return loader;
|
|
82
|
-
}()
|
|
83
|
-
});
|
|
84
|
-
}, [drawer]);
|
|
85
62
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_luckDesign.Box, {
|
|
86
63
|
className: _ribbon.default['lc-painter-ribbon'],
|
|
87
64
|
width: _WIDTH_,
|
|
@@ -124,28 +101,50 @@ var Ribbon = function Ribbon() {
|
|
|
124
101
|
onClick: function onClick() {
|
|
125
102
|
return setDrawer((drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key ? null : _DRAWER_I18N_);
|
|
126
103
|
}
|
|
127
|
-
}))), /*#__PURE__*/_react.default.createElement(_antd.Drawer, {
|
|
104
|
+
}))), /*#__PURE__*/_react.default.createElement(_antd.Drawer, (0, _extends2.default)({
|
|
128
105
|
title: drawer ? (0, _utils.formatMessage)({
|
|
129
106
|
id: "luckda.lowcode.".concat(drawer.key),
|
|
130
107
|
label: drawer.title
|
|
131
108
|
}) : '',
|
|
132
|
-
placement: "left",
|
|
133
109
|
width: (drawer === null || drawer === void 0 ? void 0 : drawer.width) || 0,
|
|
134
|
-
visible:
|
|
135
|
-
mask: false,
|
|
136
|
-
getContainer: false,
|
|
110
|
+
visible: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key,
|
|
137
111
|
onClose: function onClose() {
|
|
138
112
|
return setDrawer(null);
|
|
139
|
-
},
|
|
140
|
-
style: {
|
|
141
|
-
position: 'absolute',
|
|
142
|
-
left: _WIDTH_
|
|
143
|
-
},
|
|
144
|
-
bodyStyle: {
|
|
145
|
-
overflowY: 'auto',
|
|
146
|
-
height: 'calc(100% - 55px)',
|
|
147
|
-
padding: 0
|
|
148
113
|
}
|
|
149
|
-
},
|
|
114
|
+
}, _DRAWER_PROPS, {
|
|
115
|
+
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _DRAWER_PROPS.style), {}, {
|
|
116
|
+
display: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key ? 'block' : 'none'
|
|
117
|
+
})
|
|
118
|
+
}), /*#__PURE__*/_react.default.createElement(_Outline.default, {
|
|
119
|
+
open: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_OUTLINE_.key
|
|
120
|
+
})), /*#__PURE__*/_react.default.createElement(_antd.Drawer, (0, _extends2.default)({
|
|
121
|
+
title: drawer ? (0, _utils.formatMessage)({
|
|
122
|
+
id: "luckda.lowcode.".concat(drawer.key),
|
|
123
|
+
label: drawer.title
|
|
124
|
+
}) : '',
|
|
125
|
+
width: (drawer === null || drawer === void 0 ? void 0 : drawer.width) || 0,
|
|
126
|
+
visible: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_COMPONENTS_.key,
|
|
127
|
+
onClose: function onClose() {
|
|
128
|
+
return setDrawer(null);
|
|
129
|
+
}
|
|
130
|
+
}, _DRAWER_PROPS, {
|
|
131
|
+
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _DRAWER_PROPS.style), {}, {
|
|
132
|
+
display: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_COMPONENTS_.key ? 'block' : 'none'
|
|
133
|
+
})
|
|
134
|
+
}), /*#__PURE__*/_react.default.createElement(_Components.default, null)), /*#__PURE__*/_react.default.createElement(_antd.Drawer, (0, _extends2.default)({
|
|
135
|
+
title: drawer ? (0, _utils.formatMessage)({
|
|
136
|
+
id: "luckda.lowcode.".concat(drawer.key),
|
|
137
|
+
label: drawer.title
|
|
138
|
+
}) : '',
|
|
139
|
+
width: (drawer === null || drawer === void 0 ? void 0 : drawer.width) || 0,
|
|
140
|
+
visible: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key,
|
|
141
|
+
onClose: function onClose() {
|
|
142
|
+
return setDrawer(null);
|
|
143
|
+
}
|
|
144
|
+
}, _DRAWER_PROPS, {
|
|
145
|
+
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _DRAWER_PROPS.style), {}, {
|
|
146
|
+
display: (drawer === null || drawer === void 0 ? void 0 : drawer.key) === _DRAWER_I18N_.key ? 'block' : 'none'
|
|
147
|
+
})
|
|
148
|
+
}), /*#__PURE__*/_react.default.createElement(_I18n.default, null)));
|
|
150
149
|
};
|
|
151
150
|
var _default = exports.default = Ribbon;
|