@luck-design-biz/luckda 0.0.24-1 → 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/LICENSE +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +6 -4
- package/es/components/LdAutoForm/index.js +0 -0
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +0 -0
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +12 -3
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +0 -0
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +0 -0
- package/es/components/LdTree/index.js +0 -0
- package/es/components/LdTree/index.less +0 -0
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +0 -0
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +0 -0
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -0
- package/es/lowcode/constants/api-url.js +291 -1
- package/es/lowcode/constants/event-topics.js +4 -4
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -1
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +12 -11
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +11 -1
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/meta/box.props.default.json +0 -0
- package/es/lowcode/engine/meta/box.props.json +0 -0
- package/es/lowcode/engine/meta/button.props.default.json +0 -0
- package/es/lowcode/engine/meta/button.props.json +7 -2
- package/es/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.json +0 -0
- package/es/lowcode/engine/meta/components-list.json +6 -6
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.json +0 -0
- package/es/lowcode/engine/meta/form.props.default.json +0 -0
- package/es/lowcode/engine/meta/form.props.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.json +0 -0
- package/es/lowcode/engine/meta/image.props.default.json +0 -0
- package/es/lowcode/engine/meta/image.props.json +0 -0
- package/es/lowcode/engine/meta/imex.props.default.json +0 -0
- package/es/lowcode/engine/meta/imex.props.json +0 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +28 -28
- package/es/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/es/lowcode/engine/meta/jsx.props.json +0 -0
- package/es/lowcode/engine/meta/layout.props.default.json +0 -0
- package/es/lowcode/engine/meta/layout.props.json +0 -0
- package/es/lowcode/engine/meta/link.props.default.json +0 -0
- package/es/lowcode/engine/meta/link.props.json +0 -0
- package/es/lowcode/engine/meta/section.props.default.json +0 -0
- package/es/lowcode/engine/meta/section.props.json +0 -0
- package/es/lowcode/engine/meta/split.props.default.json +0 -0
- package/es/lowcode/engine/meta/split.props.json +0 -0
- package/es/lowcode/engine/meta/table.props.default.json +20 -2
- package/es/lowcode/engine/meta/table.props.json +99 -37
- package/es/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/es/lowcode/engine/meta/tabs.props.json +0 -0
- package/es/lowcode/engine/meta/text.props.default.json +0 -0
- package/es/lowcode/engine/meta/text.props.json +0 -0
- package/es/lowcode/engine/meta/tree.props.default.json +0 -0
- package/es/lowcode/engine/meta/tree.props.json +0 -0
- package/es/lowcode/engine/provider/ContextProvider.js +40 -28
- package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/es/lowcode/engine/tools/dataProcess.js +5 -3
- package/es/lowcode/engine/tools/helper.js +68 -0
- package/es/lowcode/engine/tools/usePromiseState.js +0 -0
- package/es/lowcode/index.js +3 -1
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +27 -304
- package/es/lowcode/painter/DesignOperator.js +271 -0
- package/es/lowcode/painter/DesignToolbar.js +91 -0
- package/es/lowcode/painter/I18n.js +0 -0
- package/es/lowcode/painter/Outline.js +31 -27
- package/es/lowcode/painter/Panel.js +71 -33
- package/es/lowcode/painter/Ribbon.js +0 -0
- package/es/lowcode/painter/components/Collapse.js +67 -8
- package/es/lowcode/painter/components/ColorInput.js +125 -0
- package/es/lowcode/painter/components/{TabEditor.js → ListEditor.js} +17 -16
- package/es/lowcode/painter/components/NumberInput.js +72 -17
- package/es/lowcode/painter/components/PanelItem.js +40 -11
- package/es/lowcode/painter/components/PopConfirm.js +4 -1
- package/es/lowcode/painter/components/PopForm.js +0 -0
- package/es/lowcode/painter/components/RuleInput.js +5 -3
- package/es/lowcode/painter/components/SortBox.js +0 -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 +42 -64
- package/es/lowcode/painter/components/code-editor/CssEditor.js +27 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +37 -14
- package/es/lowcode/painter/components/code-editor/JSEditor.js +22 -0
- package/es/lowcode/painter/components/code-editor/index.js +0 -0
- package/es/lowcode/painter/index.js +6 -2
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +61 -0
- package/es/lowcode/painter/panel-section/Icon.js +0 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +2 -1
- 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 +15 -11
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -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 +42 -10
- 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 +55 -8
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +16 -0
- package/es/lowcode/painter/panel-section/StylePanel/{Height.js → WidthHeight.js} +23 -20
- package/es/lowcode/painter/panel-section/StylePanel/index.js +17 -0
- package/es/lowcode/painter/panel-section/TabItems.js +7 -37
- 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 +0 -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 +0 -0
- package/es/lowcode/painter/style/collapse.less +2 -1
- package/es/lowcode/painter/style/color-input.less +19 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +7 -0
- package/es/lowcode/painter/style/display.less +0 -0
- package/es/lowcode/painter/style/font-editor.less +9 -0
- package/es/lowcode/painter/style/fullscreen-editor.less +0 -0
- package/es/lowcode/painter/style/icon-selector.less +0 -0
- package/es/lowcode/painter/style/icon.less +0 -0
- package/es/lowcode/painter/style/index.less +0 -0
- package/es/lowcode/painter/style/layout-ratio.less +0 -0
- package/{lib/lowcode/painter/style/tabeditor.less → es/lowcode/painter/style/list-editor.less} +9 -40
- package/es/lowcode/painter/style/number-input.less +0 -0
- package/es/lowcode/painter/style/outline.less +0 -0
- package/es/lowcode/painter/style/panel-item.less +11 -1
- package/es/lowcode/painter/style/panel.less +3 -16
- package/es/lowcode/painter/style/pop-confirm.less +0 -0
- package/es/lowcode/painter/style/pop-form.less +0 -0
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -0
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/painter/style/style-panel.less +32 -0
- package/es/lowcode/painter/style/tabitems.less +0 -0
- package/es/lowcode/view/Canvas.js +16 -15
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +10 -225
- package/es/lowcode/view/index.js +5 -6
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +2 -2
- package/es/lowcode/view/lc-components/Box/index.less +0 -0
- package/es/lowcode/view/lc-components/Box/meta.json +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Button/index.js +10 -7
- package/es/lowcode/view/lc-components/Button/meta.json +7 -2
- package/es/lowcode/view/lc-components/Button/style.less +3 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +48 -3
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +21 -23
- package/es/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +13 -2
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +19 -22
- package/es/lowcode/view/lc-components/Drawer/{style.less → index.less} +1 -1
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Form/index.js +0 -0
- package/es/lowcode/view/lc-components/Form/meta.json +0 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/meta.json +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.less +0 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Link/meta.json +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/meta.json +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/meta.json +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +4 -2
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Table/index.js +222 -132
- package/es/lowcode/view/lc-components/Table/meta.json +88 -37
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/meta.json +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/es/lowcode/view/lc-components/Wrapper.js +0 -0
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- package/es/lowcode/view/style/page.less +0 -0
- package/es/services.js +0 -0
- package/es/upload/Form/gridForm.js +0 -0
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +0 -0
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +0 -0
- package/es/utils/grid.js +0 -0
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +5 -3
- package/lib/components/LdAutoForm/index.js +0 -0
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +0 -0
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +12 -3
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +0 -0
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdRuntimeCom/index.js +0 -0
- package/lib/components/LdTree/index.js +0 -0
- package/lib/components/LdTree/index.less +0 -0
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +0 -0
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +0 -0
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -0
- package/lib/lowcode/constants/api-url.js +293 -2
- package/lib/lowcode/constants/event-topics.js +5 -5
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -1
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +11 -10
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +11 -1
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/meta/box.props.default.json +0 -0
- package/lib/lowcode/engine/meta/box.props.json +0 -0
- package/lib/lowcode/engine/meta/button.props.default.json +0 -0
- package/lib/lowcode/engine/meta/button.props.json +7 -2
- package/lib/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +0 -0
- package/lib/lowcode/engine/meta/components-list.json +6 -6
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.json +0 -0
- package/lib/lowcode/engine/meta/form.props.default.json +0 -0
- package/lib/lowcode/engine/meta/form.props.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.json +0 -0
- package/lib/lowcode/engine/meta/image.props.default.json +0 -0
- package/lib/lowcode/engine/meta/image.props.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.json +0 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +28 -28
- package/lib/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/lib/lowcode/engine/meta/jsx.props.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.json +0 -0
- package/lib/lowcode/engine/meta/link.props.default.json +0 -0
- package/lib/lowcode/engine/meta/link.props.json +0 -0
- package/lib/lowcode/engine/meta/section.props.default.json +0 -0
- package/lib/lowcode/engine/meta/section.props.json +0 -0
- package/lib/lowcode/engine/meta/split.props.default.json +0 -0
- package/lib/lowcode/engine/meta/split.props.json +0 -0
- package/lib/lowcode/engine/meta/table.props.default.json +20 -2
- package/lib/lowcode/engine/meta/table.props.json +99 -37
- package/lib/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tabs.props.json +0 -0
- package/lib/lowcode/engine/meta/text.props.default.json +0 -0
- package/lib/lowcode/engine/meta/text.props.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.json +0 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +40 -28
- package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/lib/lowcode/engine/tools/dataProcess.js +5 -3
- package/lib/lowcode/engine/tools/helper.js +70 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -0
- package/lib/lowcode/index.js +5 -1
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +24 -300
- package/lib/lowcode/painter/DesignOperator.js +278 -0
- package/lib/lowcode/painter/DesignToolbar.js +99 -0
- package/lib/lowcode/painter/I18n.js +0 -0
- package/lib/lowcode/painter/Outline.js +31 -27
- package/lib/lowcode/painter/Panel.js +71 -33
- package/lib/lowcode/painter/Ribbon.js +0 -0
- package/lib/lowcode/painter/components/Collapse.js +65 -7
- package/lib/lowcode/painter/components/ColorInput.js +132 -0
- package/lib/lowcode/painter/components/{TabEditor.js → ListEditor.js} +19 -18
- package/lib/lowcode/painter/components/NumberInput.js +70 -16
- package/lib/lowcode/painter/components/PanelItem.js +40 -11
- package/lib/lowcode/painter/components/PopConfirm.js +4 -1
- package/lib/lowcode/painter/components/PopForm.js +0 -0
- package/lib/lowcode/painter/components/RuleInput.js +5 -3
- package/lib/lowcode/painter/components/SortBox.js +0 -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 +40 -63
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +26 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +35 -13
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +22 -0
- package/lib/lowcode/painter/components/code-editor/index.js +0 -0
- package/lib/lowcode/painter/index.js +6 -2
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +69 -0
- package/lib/lowcode/painter/panel-section/Icon.js +0 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +2 -1
- 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 +15 -11
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -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 +40 -9
- 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/{Width.js → Size.js} +39 -35
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +55 -8
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +22 -0
- package/lib/lowcode/painter/panel-section/StylePanel/{Height.js → WidthHeight.js} +22 -19
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +16 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +7 -37
- 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 +0 -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 +0 -0
- package/lib/lowcode/painter/style/collapse.less +2 -1
- package/lib/lowcode/painter/style/color-input.less +19 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +7 -0
- package/lib/lowcode/painter/style/display.less +0 -0
- package/lib/lowcode/painter/style/font-editor.less +9 -0
- package/lib/lowcode/painter/style/fullscreen-editor.less +0 -0
- package/lib/lowcode/painter/style/icon-selector.less +0 -0
- package/lib/lowcode/painter/style/icon.less +0 -0
- package/lib/lowcode/painter/style/index.less +0 -0
- package/lib/lowcode/painter/style/layout-ratio.less +0 -0
- package/{es/lowcode/painter/style/tabeditor.less → lib/lowcode/painter/style/list-editor.less} +9 -40
- package/lib/lowcode/painter/style/number-input.less +0 -0
- package/lib/lowcode/painter/style/outline.less +0 -0
- package/lib/lowcode/painter/style/panel-item.less +11 -1
- package/lib/lowcode/painter/style/panel.less +3 -16
- package/lib/lowcode/painter/style/pop-confirm.less +0 -0
- package/lib/lowcode/painter/style/pop-form.less +0 -0
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -0
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/painter/style/style-panel.less +32 -0
- package/lib/lowcode/painter/style/tabitems.less +0 -0
- package/lib/lowcode/view/Canvas.js +16 -15
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +9 -224
- package/lib/lowcode/view/index.js +5 -6
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +2 -2
- package/lib/lowcode/view/lc-components/Box/index.less +0 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Button/index.js +10 -7
- package/lib/lowcode/view/lc-components/Button/meta.json +7 -2
- package/lib/lowcode/view/lc-components/Button/style.less +3 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +49 -3
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +20 -22
- package/lib/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +13 -2
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +18 -21
- package/lib/lowcode/view/lc-components/Drawer/{style.less → index.less} +1 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Form/index.js +0 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +4 -2
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Table/index.js +221 -131
- package/lib/lowcode/view/lc-components/Table/meta.json +88 -37
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +0 -0
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- package/lib/lowcode/view/style/page.less +0 -0
- package/lib/services.js +0 -0
- package/lib/upload/Form/gridForm.js +0 -0
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +0 -0
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +0 -0
- package/lib/utils/grid.js +0 -0
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +7 -5
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +0 -48
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleProvider } from "./StyleContext";
|
|
3
3
|
import MainPanel from "./MainPanel";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* StylePanel 组件是一个 React 组件,用于提供样式设置主面板。
|
|
7
|
+
* 该组件通过 StyleProvider 将样式变更和当前样式值传递给其子组件。
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @example
|
|
11
|
+
* const handleChange = (newValue) => console.log(newValue);
|
|
12
|
+
* const initialValue = "dark";
|
|
13
|
+
* <StylePanel onChange={handleChange} value={initialValue} />
|
|
14
|
+
*
|
|
15
|
+
* @param {Object} props - 组件的属性。
|
|
16
|
+
* @param {Function} props.onChange - 当样式变更时调用的函数,该函数接受新的样式值作为参数。
|
|
17
|
+
* @param {any} props.value - 样式字符串
|
|
18
|
+
*
|
|
19
|
+
* @returns {ReactElement} 返回一个 React 元素,其中包含了 StyleProvider 和 MainPanel 组件。
|
|
20
|
+
*/
|
|
4
21
|
var StylePanel = function StylePanel(_ref) {
|
|
5
22
|
var onChange = _ref.onChange,
|
|
6
23
|
value = _ref.value;
|
|
@@ -1,50 +1,19 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
-
import
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
3
|
import React, { useRef, useReducer, useEffect } from 'react';
|
|
5
4
|
import { Radio, Icon, Tooltip, Input } from 'luck-design/antd';
|
|
6
5
|
import { formatMessage, suid } from '@luck-design-biz/base/utils';
|
|
7
6
|
import { Segmented } from '@luck-helper/ui-design';
|
|
8
7
|
import styles from "../style/tabitems.less";
|
|
9
8
|
import { SortBox, SortItem } from "../components/SortBox";
|
|
10
|
-
import {
|
|
9
|
+
import { ListEditor, ListEditorItem } from "../components/ListEditor";
|
|
11
10
|
import PopConfirm from "../components/PopConfirm";
|
|
12
11
|
import { PopForm, PopFormItem, PopFormItemLeft, PopFormItemRight } from "../components/PopForm";
|
|
13
|
-
|
|
14
|
-
switch (action.type) {
|
|
15
|
-
case 'add':
|
|
16
|
-
return [].concat(_toConsumableArray(state), [action.payload]);
|
|
17
|
-
case 'delete':
|
|
18
|
-
return state.filter(function (item) {
|
|
19
|
-
return item.id !== action.payload;
|
|
20
|
-
});
|
|
21
|
-
case 'edit':
|
|
22
|
-
return state.map(function (item) {
|
|
23
|
-
return item.id === action.payload.id ? _objectSpread(_objectSpread({}, item), action.payload.data) : item;
|
|
24
|
-
});
|
|
25
|
-
case 'active':
|
|
26
|
-
return state.map(function (item) {
|
|
27
|
-
item.active = false;
|
|
28
|
-
return item.id === action.payload.id ? _objectSpread(_objectSpread({}, item), action.payload.data) : item;
|
|
29
|
-
});
|
|
30
|
-
case 'new':
|
|
31
|
-
return _toConsumableArray(action.payload);
|
|
32
|
-
case 'sort':
|
|
33
|
-
var sortItems = action.payload;
|
|
34
|
-
var newItems = state.sort(function (a, b) {
|
|
35
|
-
var indexA = sortItems.indexOf(a.id);
|
|
36
|
-
var indexB = sortItems.indexOf(b.id);
|
|
37
|
-
return indexA - indexB;
|
|
38
|
-
});
|
|
39
|
-
return _toConsumableArray(newItems);
|
|
40
|
-
default:
|
|
41
|
-
throw new Error();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
12
|
+
import { listReducer } from "../../engine/tools/helper";
|
|
44
13
|
var TabItems = function TabItems(_ref) {
|
|
45
14
|
var options = _ref.options,
|
|
46
15
|
onChange = _ref.onChange;
|
|
47
|
-
var _useReducer = useReducer(
|
|
16
|
+
var _useReducer = useReducer(listReducer, options),
|
|
48
17
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
49
18
|
items = _useReducer2[0],
|
|
50
19
|
dispatch = _useReducer2[1];
|
|
@@ -79,12 +48,13 @@ var TabItems = function TabItems(_ref) {
|
|
|
79
48
|
return item.id;
|
|
80
49
|
}),
|
|
81
50
|
onChange: handleSortChange
|
|
82
|
-
}, /*#__PURE__*/React.createElement(
|
|
51
|
+
}, /*#__PURE__*/React.createElement(ListEditor, {
|
|
83
52
|
handleAdd: handleAdd
|
|
84
53
|
}, items.map(function (item) {
|
|
85
54
|
return /*#__PURE__*/React.createElement(SortItem, {
|
|
55
|
+
key: item.id,
|
|
86
56
|
id: item.id
|
|
87
|
-
}, /*#__PURE__*/React.createElement(
|
|
57
|
+
}, /*#__PURE__*/React.createElement(ListEditorItem, {
|
|
88
58
|
left: /*#__PURE__*/React.createElement(TabItemLeft, {
|
|
89
59
|
item: item,
|
|
90
60
|
dispatch: dispatch
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
3
|
+
import Colllapse from "../components/Collapse";
|
|
4
|
+
import ActionsEditor from "../components/actions-editor";
|
|
5
|
+
var TableActions = function TableActions(_ref) {
|
|
6
|
+
var defaultValue = _ref.defaultValue,
|
|
7
|
+
onChange = _ref.onChange;
|
|
8
|
+
return /*#__PURE__*/React.createElement(Colllapse, {
|
|
9
|
+
field: "test",
|
|
10
|
+
label: formatMessage({
|
|
11
|
+
id: 'luckda.lowcode.painter.panel-section.tableActions',
|
|
12
|
+
label: '表格操作'
|
|
13
|
+
})
|
|
14
|
+
}, /*#__PURE__*/React.createElement(ActionsEditor, {
|
|
15
|
+
defaultValue: defaultValue,
|
|
16
|
+
onChange: onChange
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
export default TableActions;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { isString } from 'lodash';
|
|
3
|
+
import ColorInput from "../components/ColorInput";
|
|
4
|
+
var TableZebra = function TableZebra(_ref) {
|
|
5
|
+
var defaultValue = _ref.defaultValue,
|
|
6
|
+
_onChange = _ref.onChange;
|
|
7
|
+
return /*#__PURE__*/React.createElement(ColorInput, {
|
|
8
|
+
value: isString(defaultValue) ? defaultValue : void 0,
|
|
9
|
+
onChange: function onChange(value) {
|
|
10
|
+
_onChange(value || false);
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export default TableZebra;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
3
|
+
import NumberInput from "../components/NumberInput";
|
|
4
|
+
var units = [{
|
|
5
|
+
label: 'px',
|
|
6
|
+
value: 'px'
|
|
7
|
+
}, {
|
|
8
|
+
label: '%',
|
|
9
|
+
value: '%'
|
|
10
|
+
}, {
|
|
11
|
+
label: 'A',
|
|
12
|
+
value: 'auto'
|
|
13
|
+
}];
|
|
14
|
+
var WidthHeight = function WidthHeight(_ref) {
|
|
15
|
+
var defaultValue = _ref.defaultValue,
|
|
16
|
+
size = _ref.size,
|
|
17
|
+
onChange = _ref.onChange,
|
|
18
|
+
_ref$options = _ref.options,
|
|
19
|
+
options = _ref$options === void 0 ? units : _ref$options,
|
|
20
|
+
convertInt = _ref.convertInt,
|
|
21
|
+
_ref$min = _ref.min,
|
|
22
|
+
min = _ref$min === void 0 ? 0 : _ref$min,
|
|
23
|
+
_ref$max = _ref.max,
|
|
24
|
+
max = _ref$max === void 0 ? 10000 : _ref$max;
|
|
25
|
+
return /*#__PURE__*/React.createElement(NumberInput, {
|
|
26
|
+
options: options,
|
|
27
|
+
defaultValue: defaultValue,
|
|
28
|
+
size: size,
|
|
29
|
+
min: min,
|
|
30
|
+
max: max,
|
|
31
|
+
convertInt: convertInt,
|
|
32
|
+
onChange: onChange,
|
|
33
|
+
placeholder: formatMessage({
|
|
34
|
+
id: 'luckda.lowcode.painter.panel-section.width-height',
|
|
35
|
+
label: '请输入数值'
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
export default WidthHeight;
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.lc-painter-panel-section-components-actionsEditor {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.action-pool-selector {
|
|
6
|
+
width: 100%;
|
|
7
|
+
:global(.ant-select-selection) {
|
|
8
|
+
padding-right: 18px;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.action-pool-coder {
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: 4px;
|
|
14
|
+
top: 6px;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.lc-painter-panel-section-style-panel-border-editor {
|
|
2
|
+
.border-editor-wrapper {
|
|
3
|
+
display: flex;
|
|
4
|
+
|
|
5
|
+
.wrapper-left {
|
|
6
|
+
width: 40%;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.wrapper-right {
|
|
13
|
+
flex: 1;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-end;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.editor-item {
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
width: 100%;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 4px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wrapper-right-single {
|
|
29
|
+
flex: 1;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
align-items: flex-end;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.lc-painter-panel-section-style-panel-border-radius-selector {
|
|
2
|
+
.selector-box {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 16px;
|
|
6
|
+
.selector-row {
|
|
7
|
+
width: 22px;
|
|
8
|
+
display: flex;
|
|
9
|
+
|
|
10
|
+
&.b-left {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
align-content: flex-start;
|
|
14
|
+
}
|
|
15
|
+
&.b-center {
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
&.b-right {
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
align-content: flex-start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.selector-wrapper {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
padding: 4px;
|
|
29
|
+
border-radius: 3px;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
user-select: none;
|
|
32
|
+
|
|
33
|
+
&.selector-over {
|
|
34
|
+
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.selector-item {
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.lc-painter-panel-section-style-panel-border-selector {
|
|
2
|
+
.selector-box {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 16px;
|
|
6
|
+
.selector-row {
|
|
7
|
+
width: 22px;
|
|
8
|
+
display: flex;
|
|
9
|
+
|
|
10
|
+
&.b-left {
|
|
11
|
+
justify-content: flex-start;
|
|
12
|
+
}
|
|
13
|
+
&.b-center {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
gap: 4px;
|
|
17
|
+
}
|
|
18
|
+
&.b-right {
|
|
19
|
+
justify-content: flex-end;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.selector-wrapper {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
padding: 4px;
|
|
26
|
+
border-radius: 3px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
user-select: none;
|
|
29
|
+
|
|
30
|
+
&.selector-over {
|
|
31
|
+
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.selector-item {
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.lc-painter-components-color-input {
|
|
2
|
+
.color-input-wrap {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.color-input {
|
|
7
|
+
text-indent: 20px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.color-display{
|
|
11
|
+
width: 16px;
|
|
12
|
+
height: 16px;
|
|
13
|
+
border-radius: 3px;
|
|
14
|
+
position: absolute;
|
|
15
|
+
left: 4px;
|
|
16
|
+
top: 4px;
|
|
17
|
+
border: 1px solid rgba(31, 56, 88, .3);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
File without changes
|
|
@@ -96,6 +96,13 @@
|
|
|
96
96
|
border: 1px dashed var(--ant-primary-color);
|
|
97
97
|
background-color: color-mix(in sRGB, var(--ant-primary-color), transparent 95%);
|
|
98
98
|
.box();
|
|
99
|
+
|
|
100
|
+
&-name{
|
|
101
|
+
position: absolute;
|
|
102
|
+
color: var(--ant-primary-color);
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
line-height: 20px;
|
|
105
|
+
}
|
|
99
106
|
}
|
|
100
107
|
|
|
101
108
|
&-selector {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{lib/lowcode/painter/style/tabeditor.less → es/lowcode/painter/style/list-editor.less}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.lc-painter-panel-section-components-
|
|
1
|
+
.lc-painter-panel-section-components-listeditor {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
|
|
6
|
-
.
|
|
6
|
+
.list-box {
|
|
7
7
|
width: 100%;
|
|
8
|
-
.
|
|
8
|
+
.list-item {
|
|
9
9
|
height: 28px;
|
|
10
10
|
background: #fff;
|
|
11
11
|
border: 1px solid #e5e6e8;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
font-size: 12px;
|
|
18
18
|
gap: 2px;
|
|
19
19
|
|
|
20
|
-
.
|
|
20
|
+
.list-item-left {
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
padding: 0 4px;
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
.list-item-right {
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
padding: 0 4px;
|
|
34
34
|
gap: 4px;
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.list-item-action {
|
|
37
37
|
cursor: pointer;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.
|
|
43
|
+
.list-actions {
|
|
44
44
|
width: 100%;
|
|
45
|
-
.
|
|
45
|
+
.list-action {
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
height: 28px;
|
|
48
48
|
background: #fff;
|
|
@@ -53,38 +53,7 @@
|
|
|
53
53
|
align-items: center;
|
|
54
54
|
font-size: 12px;
|
|
55
55
|
gap: 4px;
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.lc-painter-panel-section-tabitems-editor {
|
|
61
|
-
width: 240px;
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
gap: 8px;
|
|
65
|
-
.item {
|
|
66
|
-
display: flex;
|
|
67
|
-
gap: 2px;
|
|
68
|
-
align-items: center;
|
|
69
|
-
font-size: 12px;
|
|
70
|
-
|
|
71
|
-
.left {
|
|
72
|
-
width: 55px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.right {
|
|
76
|
-
flex: 1;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.lc-painter-panel-section-tabitems-popconfirm {
|
|
82
|
-
:global {
|
|
83
|
-
.ant-popover-message-title {
|
|
84
|
-
padding: 0;
|
|
85
|
-
}
|
|
86
|
-
.ant-popover-buttons{
|
|
87
|
-
display: none;
|
|
56
|
+
border-style: dashed;
|
|
88
57
|
}
|
|
89
58
|
}
|
|
90
59
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
.lc-painter-components-panelitem {
|
|
2
2
|
padding: 0 16px;
|
|
3
3
|
|
|
4
|
+
&:not(:last-child) {
|
|
5
|
+
margin-bottom: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
.panelrow {
|
|
5
9
|
display: flex;
|
|
6
10
|
justify-content: space-between;
|
|
7
11
|
align-items: center;
|
|
8
12
|
min-height: 28px;
|
|
9
|
-
margin-bottom: 4px;
|
|
10
13
|
|
|
11
14
|
.item-label {
|
|
12
15
|
font-size: 12px;
|
|
@@ -32,7 +35,11 @@
|
|
|
32
35
|
.item-component > *:not(.ant-switch) {
|
|
33
36
|
flex-grow: 1;
|
|
34
37
|
}
|
|
38
|
+
.panel-pointer {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
35
41
|
}
|
|
42
|
+
|
|
36
43
|
.addon {
|
|
37
44
|
background-color: rgba(31, 56, 88, 0.04);
|
|
38
45
|
min-height: 20px;
|
|
@@ -42,3 +49,6 @@
|
|
|
42
49
|
border-radius: 6px;
|
|
43
50
|
}
|
|
44
51
|
}
|
|
52
|
+
.lc-painter-components-panelitem.no-padding {
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
@@ -116,27 +116,14 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
&-content.showNext {
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
}
|
|
119
122
|
:global {
|
|
120
123
|
.ant-select .ant-btn {
|
|
121
124
|
width: 170px !important;
|
|
122
125
|
height: 20px;
|
|
123
126
|
line-height: 16px;
|
|
124
127
|
}
|
|
125
|
-
.rc-segmented {
|
|
126
|
-
border-radius: 6px;
|
|
127
|
-
.rc-segmented-thumb {
|
|
128
|
-
border-radius: 6px;
|
|
129
|
-
}
|
|
130
|
-
.rc-segmented-item {
|
|
131
|
-
flex: 1;
|
|
132
|
-
border-radius: 6px;
|
|
133
|
-
min-height: 24px !important;
|
|
134
|
-
padding: 4px 6px !important;
|
|
135
|
-
.rc-segmented-item-label {
|
|
136
|
-
line-height: 16px !important;
|
|
137
|
-
font-size: 12px;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
128
|
}
|
|
142
129
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
.lc-painter-panel-section-style-panel {
|
|
2
|
+
height: 100%;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
|
|
5
|
+
.style-panel {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 6px;
|
|
9
|
+
}
|
|
10
|
+
|
|
2
11
|
.style-editor {
|
|
3
12
|
margin-bottom: 8px;
|
|
13
|
+
padding-left: 12px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.label-over {
|
|
17
|
+
color: #006cff;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.row {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 4px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.row:not(:last-child) {
|
|
27
|
+
margin-bottom: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.svg-label {
|
|
31
|
+
width: 20px;
|
|
32
|
+
height: 20px;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: flex-end;
|
|
4
36
|
}
|
|
5
37
|
}
|
|
File without changes
|
|
@@ -14,8 +14,7 @@ import Box from "./lc-components/Box";
|
|
|
14
14
|
import { CELL_KEY } from "../constants";
|
|
15
15
|
import styles from "./style/canvas.less";
|
|
16
16
|
var PAGE_CELL = [CELL_KEY.PAGE_HEADER, CELL_KEY.PAGE_CONTENT, CELL_KEY.PAGE_FOOTER];
|
|
17
|
-
var Canvas = function Canvas(
|
|
18
|
-
var dataSource = _ref.dataSource;
|
|
17
|
+
var Canvas = function Canvas() {
|
|
19
18
|
var dynamicCompMap = useRef({});
|
|
20
19
|
var context = useLDContext();
|
|
21
20
|
var _useState = useState(null),
|
|
@@ -34,10 +33,10 @@ var Canvas = function Canvas(_ref) {
|
|
|
34
33
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
35
34
|
modal = _useState8[0],
|
|
36
35
|
setModal = _useState8[1];
|
|
37
|
-
var render = useMemoizedFn(function (
|
|
38
|
-
var props =
|
|
39
|
-
children =
|
|
40
|
-
childrenMap = _objectWithoutProperties(
|
|
36
|
+
var render = useMemoizedFn(function (_ref) {
|
|
37
|
+
var props = _ref.props,
|
|
38
|
+
children = _ref.children,
|
|
39
|
+
childrenMap = _objectWithoutProperties(_ref, _excluded);
|
|
41
40
|
if (props && !PAGE_CELL.includes(props.id)) {
|
|
42
41
|
var id = props.id,
|
|
43
42
|
component = props.component,
|
|
@@ -90,18 +89,18 @@ var Canvas = function Canvas(_ref) {
|
|
|
90
89
|
});
|
|
91
90
|
});
|
|
92
91
|
useDeepCompareLayoutEffect(function () {
|
|
93
|
-
setHeader(render(
|
|
94
|
-
}, [
|
|
92
|
+
setHeader(render(context.pageData[CELL_KEY.PAGE_HEADER]));
|
|
93
|
+
}, [context.pageData[CELL_KEY.PAGE_HEADER]]);
|
|
95
94
|
useDeepCompareLayoutEffect(function () {
|
|
96
|
-
setContent(render(
|
|
97
|
-
}, [
|
|
95
|
+
setContent(render(context.pageData[CELL_KEY.PAGE_CONTENT]));
|
|
96
|
+
}, [context.pageData[CELL_KEY.PAGE_CONTENT]]);
|
|
98
97
|
useDeepCompareLayoutEffect(function () {
|
|
99
|
-
setFooter(render(
|
|
100
|
-
}, [
|
|
98
|
+
setFooter(render(context.pageData[CELL_KEY.PAGE_FOOTER]));
|
|
99
|
+
}, [context.pageData[CELL_KEY.PAGE_FOOTER]]);
|
|
101
100
|
useDeepCompareLayoutEffect(function () {
|
|
102
|
-
var pageModal = reduce(
|
|
101
|
+
var pageModal = reduce(context.pageData.children, function (result, _id) {
|
|
103
102
|
if (!PAGE_CELL.includes(_id)) {
|
|
104
|
-
result[_id] =
|
|
103
|
+
result[_id] = context.pageData[_id];
|
|
105
104
|
if (!result.children) {
|
|
106
105
|
result.children = [];
|
|
107
106
|
}
|
|
@@ -110,7 +109,9 @@ var Canvas = function Canvas(_ref) {
|
|
|
110
109
|
return result;
|
|
111
110
|
}, {});
|
|
112
111
|
setModal(render(pageModal));
|
|
113
|
-
}, [
|
|
112
|
+
}, [context.pageData.children, context.pageData.children.map(function (_id) {
|
|
113
|
+
return context.pageData[_id];
|
|
114
|
+
})]);
|
|
114
115
|
return /*#__PURE__*/React.createElement("div", {
|
|
115
116
|
id: "page-canvas",
|
|
116
117
|
className: styles['lc-view-canvas']
|
|
File without changes
|