@luck-design-biz/luckda 0.0.24-1 → 0.0.25-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +11 -7
- package/es/components/IconFont/index.js +5 -0
- package/es/components/LDActions/index.js +133 -0
- package/es/components/LDActions/index.less +65 -0
- package/es/components/LdAutoForm/index.js +1 -1
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +2 -1
- package/es/components/LdFormList/index.js +15 -10
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +26 -11
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +5 -4
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +20 -7
- package/es/components/LdTree/index.js +112 -31
- package/es/components/LdTree/index.less +6 -1
- 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 +28 -12
- package/es/helper/ldComBuild.js +29 -14
- package/es/index.js +1 -0
- package/es/locales/zh-CN.js +221 -0
- package/es/lowcode/constants/api-url.js +409 -1
- package/es/lowcode/constants/event-topics.js +8 -4
- package/es/lowcode/constants/index.js +30 -2
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +32 -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 +4 -0
- package/es/lowcode/engine/meta/box.props.default.json +3 -2
- package/es/lowcode/engine/meta/box.props.json +1 -3
- package/es/lowcode/engine/meta/button.props.default.json +5 -2
- package/es/lowcode/engine/meta/button.props.json +15 -10
- package/es/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/es/lowcode/engine/meta/cardlist.props.json +1 -2
- package/es/lowcode/engine/meta/components-list.json +6 -6
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +0 -1
- package/es/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/es/lowcode/engine/meta/drawer.props.json +0 -1
- package/es/lowcode/engine/meta/form.props.default.json +53 -4
- package/es/lowcode/engine/meta/form.props.json +584 -55
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/es/lowcode/engine/meta/iframe.props.json +1 -1
- package/es/lowcode/engine/meta/image.props.default.json +5 -2
- package/es/lowcode/engine/meta/image.props.json +1 -1
- package/es/lowcode/engine/meta/imex.props.default.json +5 -2
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +155 -29
- package/es/lowcode/engine/meta/jsx.props.default.json +2 -1
- package/es/lowcode/engine/meta/jsx.props.json +10 -5
- package/es/lowcode/engine/meta/layout.props.default.json +5 -2
- package/es/lowcode/engine/meta/layout.props.json +1 -2
- package/es/lowcode/engine/meta/link.props.default.json +5 -2
- package/es/lowcode/engine/meta/link.props.json +2 -2
- package/es/lowcode/engine/meta/local/local.zh-cn.js +97 -0
- package/es/lowcode/engine/meta/page.props.default.json +12 -0
- package/es/lowcode/engine/meta/page.props.json +49 -0
- package/es/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/es/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/es/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/es/lowcode/engine/meta/pageheader.props.json +7 -0
- package/es/lowcode/engine/meta/section.props.default.json +5 -2
- package/es/lowcode/engine/meta/section.props.json +1 -1
- package/es/lowcode/engine/meta/split.props.default.json +9 -4
- package/es/lowcode/engine/meta/split.props.json +14 -29
- package/es/lowcode/engine/meta/table.props.default.json +40 -2
- package/es/lowcode/engine/meta/table.props.json +347 -83
- package/es/lowcode/engine/meta/tabs.props.default.json +16 -9
- package/es/lowcode/engine/meta/tabs.props.json +57 -81
- package/es/lowcode/engine/meta/text.props.default.json +5 -2
- package/es/lowcode/engine/meta/text.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.default.json +20 -7
- package/es/lowcode/engine/meta/tree.props.json +225 -79
- package/es/lowcode/engine/provider/ContextProvider/index.js +169 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +161 -0
- package/es/lowcode/engine/tools/dataProcess.js +67 -3
- package/es/lowcode/engine/tools/helper.js +145 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +75 -0
- package/es/lowcode/engine/tools/usePromiseState.js +8 -6
- package/es/lowcode/engine/tools/useTodo.js +78 -0
- package/es/lowcode/index.js +4 -1
- package/es/lowcode/painter/Components.js +47 -21
- package/es/lowcode/painter/Design.js +27 -304
- package/es/lowcode/painter/DesignOperator.js +290 -0
- package/es/lowcode/painter/DesignToolbar.js +162 -0
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +54 -45
- package/es/lowcode/painter/Panel.js +102 -106
- package/es/lowcode/painter/Ribbon.js +1 -1
- package/es/lowcode/painter/components/ActionBindModal.js +293 -0
- package/es/lowcode/painter/components/AdvancePanel.js +140 -0
- package/es/lowcode/painter/components/AttrsPanel.js +145 -0
- package/es/lowcode/painter/components/Collapse.js +81 -11
- package/es/lowcode/painter/components/ColorInput.js +127 -0
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +137 -0
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +47 -0
- package/es/lowcode/painter/components/DragDrop/Overlay.js +8 -0
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +67 -0
- package/es/lowcode/painter/components/FieldSelector.js +44 -0
- package/es/lowcode/painter/components/{TabEditor.js → ListEditor.js} +32 -22
- 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 +14 -4
- 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 +11 -4
- package/es/lowcode/painter/components/TreeEditor.js +13 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +56 -66
- 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 +44 -11
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +41 -0
- package/es/lowcode/painter/components/code-editor/index.js +0 -0
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +144 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +126 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +287 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +290 -0
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +63 -0
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +116 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +419 -0
- package/es/lowcode/painter/components/field-setting/index.js +363 -0
- package/es/lowcode/painter/index.js +9 -3
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +101 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +231 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +24 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +44 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +202 -0
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +133 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +308 -0
- package/es/lowcode/painter/panel-section/Icon.js +14 -14
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +111 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +5 -2
- package/es/lowcode/painter/panel-section/ImpExp.js +91 -0
- package/es/lowcode/painter/panel-section/JSEditor.js +49 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +8 -8
- package/es/lowcode/painter/panel-section/SerialsSelector.js +44 -0
- package/es/lowcode/painter/panel-section/SplitDisplay.js +248 -0
- 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 +44 -12
- 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 +56 -29
- 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 +52 -66
- package/es/lowcode/painter/panel-section/TableTopFilter.js +306 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +74 -0
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +78 -0
- package/es/lowcode/painter/panel-section/WidthHeight.js +39 -0
- package/es/lowcode/painter/services/I18n.js +0 -0
- package/es/lowcode/painter/services/toolbar.js +25 -0
- package/es/lowcode/painter/style/action-bind-modal.less +102 -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 +8 -1
- package/es/lowcode/painter/style/color-input.less +19 -0
- package/es/lowcode/painter/style/components.less +5 -4
- package/es/lowcode/painter/style/design.less +9 -3
- package/es/lowcode/painter/style/display.less +0 -0
- package/es/lowcode/painter/style/dragdrop.less +10 -0
- package/es/lowcode/painter/style/fields-setting.less +25 -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/impexp.less +7 -0
- package/es/lowcode/painter/style/index.less +0 -0
- package/es/lowcode/painter/style/layout-ratio.less +0 -0
- package/es/lowcode/painter/style/{tabeditor.less → 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-attrs.less +43 -0
- package/es/lowcode/painter/style/panel-item.less +11 -1
- package/es/lowcode/painter/style/panel.less +5 -49
- package/es/lowcode/painter/style/pop-confirm.less +9 -2
- 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/split-display.less +28 -0
- package/es/lowcode/painter/style/style-panel.less +32 -0
- package/es/lowcode/painter/style/tabitems.less +0 -0
- package/es/lowcode/painter/style/treedragdrop.less +19 -0
- package/es/lowcode/preview/index.js +14 -0
- package/es/lowcode/view/Canvas.js +33 -137
- package/es/lowcode/view/Loading.js +6 -2
- package/es/lowcode/view/Page.js +18 -231
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Box/index.js +13 -4
- package/es/lowcode/view/lc-components/Box/index.less +0 -1
- package/es/lowcode/view/lc-components/Box/meta.json +1 -3
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +8 -10
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +3 -6
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +6 -0
- package/es/lowcode/view/lc-components/Button/index.js +50 -24
- package/es/lowcode/view/lc-components/Button/meta.json +15 -10
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/CardList/index.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +1 -2
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +42 -3
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +22 -23
- package/es/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -1
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +15 -2
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +36 -22
- package/es/lowcode/view/lc-components/Drawer/index.less +10 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -1
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +31 -2
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Form/index.js +114 -8
- package/es/lowcode/view/lc-components/Form/index.less +5 -0
- package/es/lowcode/view/lc-components/Form/meta.json +534 -55
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +1 -1
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +1 -1
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Image/index.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +1 -1
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/JSX/index.js +19 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +8 -5
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +19 -17
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +3 -8
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Layout/index.js +1 -0
- package/es/lowcode/view/lc-components/Layout/index.less +0 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +1 -2
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Link/index.js +1 -0
- package/es/lowcode/view/lc-components/Link/meta.json +2 -2
- package/es/lowcode/view/lc-components/Page/meta.json +49 -0
- package/es/lowcode/view/lc-components/PageContent/index.js +53 -0
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageFooter/index.js +38 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageHeader/index.js +40 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +23 -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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Section/index.js +1 -0
- package/es/lowcode/view/lc-components/Section/meta.json +1 -1
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +59 -2
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Split/index.js +46 -7
- package/es/lowcode/view/lc-components/Split/meta.json +10 -29
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +42 -3
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +96 -0
- package/es/lowcode/view/lc-components/Table/index.js +545 -139
- package/es/lowcode/view/lc-components/Table/meta.json +308 -83
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +72 -2
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +113 -10
- package/es/lowcode/view/lc-components/Tabs/meta.json +53 -81
- 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/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Text/index.js +1 -0
- package/es/lowcode/view/lc-components/Text/meta.json +1 -1
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +63 -3
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +26 -0
- package/es/lowcode/view/lc-components/Tree/index.js +323 -8
- package/es/lowcode/view/lc-components/Tree/index.less +5 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +224 -80
- package/es/lowcode/view/lc-components/Wrapper.js +44 -27
- 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 +3 -0
- package/es/services.js +5 -3
- 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 +2 -2
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +9 -4
- package/lib/components/IconFont/index.js +11 -0
- package/lib/components/LDActions/index.js +141 -0
- package/lib/components/LDActions/index.less +65 -0
- package/lib/components/LdAutoForm/index.js +1 -1
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +2 -1
- package/lib/components/LdFormList/index.js +14 -9
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +25 -10
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +4 -3
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdRuntimeCom/index.js +21 -8
- package/lib/components/LdTree/index.js +112 -31
- package/lib/components/LdTree/index.less +6 -1
- 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 +28 -12
- package/lib/helper/ldComBuild.js +27 -12
- package/lib/index.js +8 -0
- package/lib/locales/zh-CN.js +227 -0
- package/lib/lowcode/constants/api-url.js +411 -1
- package/lib/lowcode/constants/event-topics.js +9 -5
- package/lib/lowcode/constants/index.js +31 -3
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +38 -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 +4 -0
- package/lib/lowcode/engine/meta/box.props.default.json +3 -2
- package/lib/lowcode/engine/meta/box.props.json +1 -3
- package/lib/lowcode/engine/meta/button.props.default.json +5 -2
- package/lib/lowcode/engine/meta/button.props.json +15 -10
- package/lib/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/lib/lowcode/engine/meta/cardlist.props.json +1 -2
- package/lib/lowcode/engine/meta/components-list.json +6 -6
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +0 -1
- package/lib/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/lib/lowcode/engine/meta/drawer.props.json +0 -1
- package/lib/lowcode/engine/meta/form.props.default.json +53 -4
- package/lib/lowcode/engine/meta/form.props.json +584 -55
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/lib/lowcode/engine/meta/iframe.props.json +1 -1
- package/lib/lowcode/engine/meta/image.props.default.json +5 -2
- package/lib/lowcode/engine/meta/image.props.json +1 -1
- package/lib/lowcode/engine/meta/imex.props.default.json +5 -2
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +155 -29
- package/lib/lowcode/engine/meta/jsx.props.default.json +2 -1
- package/lib/lowcode/engine/meta/jsx.props.json +10 -5
- package/lib/lowcode/engine/meta/layout.props.default.json +5 -2
- package/lib/lowcode/engine/meta/layout.props.json +1 -2
- package/lib/lowcode/engine/meta/link.props.default.json +5 -2
- package/lib/lowcode/engine/meta/link.props.json +2 -2
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +103 -0
- package/lib/lowcode/engine/meta/page.props.default.json +12 -0
- package/lib/lowcode/engine/meta/page.props.json +49 -0
- package/lib/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/lib/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/lib/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pageheader.props.json +7 -0
- package/lib/lowcode/engine/meta/section.props.default.json +5 -2
- package/lib/lowcode/engine/meta/section.props.json +1 -1
- package/lib/lowcode/engine/meta/split.props.default.json +9 -4
- package/lib/lowcode/engine/meta/split.props.json +14 -29
- package/lib/lowcode/engine/meta/table.props.default.json +40 -2
- package/lib/lowcode/engine/meta/table.props.json +347 -83
- package/lib/lowcode/engine/meta/tabs.props.default.json +16 -9
- package/lib/lowcode/engine/meta/tabs.props.json +57 -81
- package/lib/lowcode/engine/meta/text.props.default.json +5 -2
- package/lib/lowcode/engine/meta/text.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.default.json +20 -7
- package/lib/lowcode/engine/meta/tree.props.json +225 -79
- package/lib/lowcode/engine/provider/ContextProvider/index.js +177 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +169 -0
- package/lib/lowcode/engine/tools/dataProcess.js +68 -3
- package/lib/lowcode/engine/tools/helper.js +152 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +90 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +7 -5
- package/lib/lowcode/engine/tools/useTodo.js +85 -0
- package/lib/lowcode/index.js +12 -1
- package/lib/lowcode/painter/Components.js +46 -20
- package/lib/lowcode/painter/Design.js +24 -300
- package/lib/lowcode/painter/DesignOperator.js +297 -0
- package/lib/lowcode/painter/DesignToolbar.js +170 -0
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +52 -43
- package/lib/lowcode/painter/Panel.js +98 -102
- package/lib/lowcode/painter/Ribbon.js +1 -1
- package/lib/lowcode/painter/components/ActionBindModal.js +300 -0
- package/lib/lowcode/painter/components/AdvancePanel.js +148 -0
- package/lib/lowcode/painter/components/AttrsPanel.js +153 -0
- package/lib/lowcode/painter/components/Collapse.js +79 -10
- package/lib/lowcode/painter/components/ColorInput.js +134 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +146 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +54 -0
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +15 -0
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +75 -0
- package/lib/lowcode/painter/components/FieldSelector.js +52 -0
- package/lib/lowcode/painter/components/{TabEditor.js → ListEditor.js} +33 -23
- 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 +14 -4
- 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 +12 -5
- package/lib/lowcode/painter/components/TreeEditor.js +20 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +54 -65
- 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 +44 -11
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +48 -0
- package/lib/lowcode/painter/components/code-editor/index.js +0 -0
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +151 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +133 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +295 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +298 -0
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +70 -0
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +123 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +427 -0
- package/lib/lowcode/painter/components/field-setting/index.js +370 -0
- package/lib/lowcode/painter/index.js +9 -3
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +109 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +239 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +31 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +51 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +208 -0
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +141 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +316 -0
- package/lib/lowcode/painter/panel-section/Icon.js +16 -14
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +119 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +5 -2
- package/lib/lowcode/painter/panel-section/ImpExp.js +98 -0
- package/lib/lowcode/painter/panel-section/JSEditor.js +57 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +7 -7
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +51 -0
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +256 -0
- 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 +42 -11
- 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 +57 -30
- 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 +51 -65
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +314 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +82 -0
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +86 -0
- package/lib/lowcode/painter/panel-section/WidthHeight.js +46 -0
- package/lib/lowcode/painter/services/I18n.js +0 -0
- package/lib/lowcode/painter/services/toolbar.js +32 -0
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -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 +8 -1
- package/lib/lowcode/painter/style/color-input.less +19 -0
- package/lib/lowcode/painter/style/components.less +5 -4
- package/lib/lowcode/painter/style/design.less +9 -3
- package/lib/lowcode/painter/style/display.less +0 -0
- package/lib/lowcode/painter/style/dragdrop.less +10 -0
- package/lib/lowcode/painter/style/fields-setting.less +25 -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/impexp.less +7 -0
- package/lib/lowcode/painter/style/index.less +0 -0
- package/lib/lowcode/painter/style/layout-ratio.less +0 -0
- package/lib/lowcode/painter/style/{tabeditor.less → 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-attrs.less +43 -0
- package/lib/lowcode/painter/style/panel-item.less +11 -1
- package/lib/lowcode/painter/style/panel.less +5 -49
- package/lib/lowcode/painter/style/pop-confirm.less +9 -2
- 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/split-display.less +28 -0
- package/lib/lowcode/painter/style/style-panel.less +32 -0
- package/lib/lowcode/painter/style/tabitems.less +0 -0
- package/lib/lowcode/painter/style/treedragdrop.less +19 -0
- package/lib/lowcode/preview/index.js +21 -0
- package/lib/lowcode/view/Canvas.js +31 -143
- package/lib/lowcode/view/Loading.js +6 -2
- package/lib/lowcode/view/Page.js +14 -227
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Box/index.js +13 -4
- package/lib/lowcode/view/lc-components/Box/index.less +0 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -3
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +8 -10
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +3 -6
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +13 -0
- package/lib/lowcode/view/lc-components/Button/index.js +48 -22
- package/lib/lowcode/view/lc-components/Button/meta.json +15 -10
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +1 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +1 -2
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +42 -3
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +21 -22
- package/lib/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +15 -2
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +35 -21
- package/lib/lowcode/view/lc-components/Drawer/index.less +10 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -1
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +32 -2
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Form/index.js +113 -7
- package/lib/lowcode/view/lc-components/Form/index.less +5 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +534 -55
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +1 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +1 -1
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +1 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +1 -1
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Image/index.js +1 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +1 -1
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +19 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +8 -5
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +21 -18
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +3 -8
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +1 -0
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +1 -2
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Link/index.js +1 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Page/meta.json +49 -0
- package/lib/lowcode/view/lc-components/PageContent/index.js +61 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageFooter/index.js +46 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageHeader/index.js +48 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +30 -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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Section/index.js +1 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +60 -2
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Split/index.js +45 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +10 -29
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +44 -4
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +104 -0
- package/lib/lowcode/view/lc-components/Table/index.js +544 -138
- package/lib/lowcode/view/lc-components/Table/meta.json +308 -83
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +73 -2
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +112 -9
- package/lib/lowcode/view/lc-components/Tabs/meta.json +53 -81
- 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/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Text/index.js +1 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +64 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +33 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +321 -6
- package/lib/lowcode/view/lc-components/Tree/index.less +5 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +224 -80
- package/lib/lowcode/view/lc-components/Wrapper.js +42 -25
- 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 +3 -0
- package/lib/services.js +5 -3
- 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 +2 -2
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +15 -8
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/engine/provider/ContextProvider.js +0 -157
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +0 -48
- package/es/lowcode/view/lc-components/Drawer/style.less +0 -7
- package/lib/lowcode/engine/provider/ContextProvider.js +0 -165
- package/lib/lowcode/view/lc-components/Drawer/style.less +0 -7
|
@@ -1,143 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
3
|
-
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { usePageData } from "../engine/provider/ContextProvider";
|
|
7
|
+
import PageHeader from "./lc-components/PageHeader";
|
|
8
|
+
import PageContent from "./lc-components/PageContent";
|
|
9
|
+
import PageFooter from "./lc-components/PageFooter";
|
|
10
|
+
import PageModal from "./lc-components/PageModal";
|
|
11
|
+
import { LC_BUILDIN_UNIT_KEY } from "../constants";
|
|
15
12
|
import styles from "./style/canvas.less";
|
|
16
|
-
var
|
|
13
|
+
var PageRoot = styled.div.withConfig({
|
|
14
|
+
displayName: "PageRoot",
|
|
15
|
+
componentId: "luckda-6530__sc-mchzyx-0"
|
|
16
|
+
})(["", ""], function (props) {
|
|
17
|
+
return props.$css;
|
|
18
|
+
});
|
|
17
19
|
var Canvas = function Canvas(_ref) {
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
27
|
-
content = _useState4[0],
|
|
28
|
-
setContent = _useState4[1];
|
|
29
|
-
var _useState5 = useState(null),
|
|
30
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
31
|
-
footer = _useState6[0],
|
|
32
|
-
setFooter = _useState6[1];
|
|
33
|
-
var _useState7 = useState(null),
|
|
34
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
35
|
-
modal = _useState8[0],
|
|
36
|
-
setModal = _useState8[1];
|
|
37
|
-
var render = useMemoizedFn(function (_ref2) {
|
|
38
|
-
var props = _ref2.props,
|
|
39
|
-
children = _ref2.children,
|
|
40
|
-
childrenMap = _objectWithoutProperties(_ref2, _excluded);
|
|
41
|
-
if (props && !PAGE_CELL.includes(props.id)) {
|
|
42
|
-
var id = props.id,
|
|
43
|
-
component = props.component,
|
|
44
|
-
name = props.name,
|
|
45
|
-
desc = props.desc,
|
|
46
|
-
icon = props.icon,
|
|
47
|
-
group = props.group,
|
|
48
|
-
groupName = props.groupName,
|
|
49
|
-
order = props.order,
|
|
50
|
-
rest = _objectWithoutProperties(props, _excluded2);
|
|
51
|
-
if (!dynamicCompMap.current[component]) {
|
|
52
|
-
dynamicCompMap.current[component] = dynamic({
|
|
53
|
-
loader: function () {
|
|
54
|
-
var _loader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
55
|
-
var _runtime, _yield$import, _Comp;
|
|
56
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
57
|
-
while (1) switch (_context.prev = _context.next) {
|
|
58
|
-
case 0:
|
|
59
|
-
_runtime = upperFirst(context.runtime);
|
|
60
|
-
_context.next = 3;
|
|
61
|
-
return import("./lc-components/".concat(component, "/Function").concat(_runtime));
|
|
62
|
-
case 3:
|
|
63
|
-
_yield$import = _context.sent;
|
|
64
|
-
_Comp = _yield$import.default;
|
|
65
|
-
return _context.abrupt("return", _Comp);
|
|
66
|
-
case 6:
|
|
67
|
-
case "end":
|
|
68
|
-
return _context.stop();
|
|
69
|
-
}
|
|
70
|
-
}, _callee);
|
|
71
|
-
}));
|
|
72
|
-
function loader() {
|
|
73
|
-
return _loader.apply(this, arguments);
|
|
74
|
-
}
|
|
75
|
-
return loader;
|
|
76
|
-
}()
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
var Comp = dynamicCompMap.current[component];
|
|
80
|
-
return /*#__PURE__*/React.createElement(Comp, _extends({
|
|
81
|
-
key: id,
|
|
82
|
-
id: id,
|
|
83
|
-
context: context
|
|
84
|
-
}, rest), (children || []).map(function (_id) {
|
|
85
|
-
return render(childrenMap[_id]);
|
|
86
|
-
}));
|
|
87
|
-
}
|
|
88
|
-
return (children || []).map(function (_id) {
|
|
89
|
-
return render(childrenMap[_id]);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
useDeepCompareLayoutEffect(function () {
|
|
93
|
-
setHeader(render(dataSource[CELL_KEY.PAGE_HEADER]));
|
|
94
|
-
}, [dataSource[CELL_KEY.PAGE_HEADER]]);
|
|
95
|
-
useDeepCompareLayoutEffect(function () {
|
|
96
|
-
setContent(render(dataSource[CELL_KEY.PAGE_CONTENT]));
|
|
97
|
-
}, [dataSource[CELL_KEY.PAGE_CONTENT]]);
|
|
98
|
-
useDeepCompareLayoutEffect(function () {
|
|
99
|
-
setFooter(render(dataSource[CELL_KEY.PAGE_FOOTER]));
|
|
100
|
-
}, [dataSource[CELL_KEY.PAGE_FOOTER]]);
|
|
101
|
-
useDeepCompareLayoutEffect(function () {
|
|
102
|
-
var pageModal = reduce(dataSource.children, function (result, _id) {
|
|
103
|
-
if (!PAGE_CELL.includes(_id)) {
|
|
104
|
-
result[_id] = dataSource[_id];
|
|
105
|
-
if (!result.children) {
|
|
106
|
-
result.children = [];
|
|
107
|
-
}
|
|
108
|
-
result.children.push(_id);
|
|
109
|
-
}
|
|
110
|
-
return result;
|
|
111
|
-
}, {});
|
|
112
|
-
setModal(render(pageModal));
|
|
113
|
-
}, [dataSource.children]);
|
|
114
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
var className = _ref.className;
|
|
21
|
+
var _usePageData = usePageData(['props.css', 'props.enableHeader', 'props.enableFooter']),
|
|
22
|
+
_usePageData2 = _slicedToArray(_usePageData, 1),
|
|
23
|
+
_usePageData2$ = _slicedToArray(_usePageData2[0], 3),
|
|
24
|
+
pagerootCss = _usePageData2$[0],
|
|
25
|
+
enableHeader = _usePageData2$[1],
|
|
26
|
+
enableFooter = _usePageData2$[2];
|
|
27
|
+
return /*#__PURE__*/React.createElement(PageRoot, {
|
|
115
28
|
id: "page-canvas",
|
|
116
|
-
className: styles['lc-view-canvas']
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}, header), /*#__PURE__*/React.createElement(Box, {
|
|
126
|
-
key: CELL_KEY.PAGE_CONTENT,
|
|
127
|
-
id: CELL_KEY.PAGE_CONTENT,
|
|
128
|
-
style: {
|
|
129
|
-
width: '100%',
|
|
130
|
-
height: 'calc(100% - 120px)',
|
|
131
|
-
backgroundColor: 'transparent'
|
|
132
|
-
}
|
|
133
|
-
}, content), /*#__PURE__*/React.createElement(Box, {
|
|
134
|
-
key: CELL_KEY.PAGE_FOOTER,
|
|
135
|
-
id: CELL_KEY.PAGE_FOOTER,
|
|
136
|
-
style: {
|
|
137
|
-
width: '100%',
|
|
138
|
-
height: 80,
|
|
139
|
-
backgroundColor: '#69c0ff'
|
|
140
|
-
}
|
|
141
|
-
}, footer), modal);
|
|
29
|
+
className: classNames(styles['lc-view-canvas'], _defineProperty({}, className, !!className)),
|
|
30
|
+
$css: pagerootCss
|
|
31
|
+
}, enableHeader ? /*#__PURE__*/React.createElement(PageHeader, {
|
|
32
|
+
key: LC_BUILDIN_UNIT_KEY.PAGE_HEADER
|
|
33
|
+
}) : null, /*#__PURE__*/React.createElement(PageContent, {
|
|
34
|
+
key: LC_BUILDIN_UNIT_KEY.PAGE_CONTENT
|
|
35
|
+
}), enableFooter ? /*#__PURE__*/React.createElement(PageFooter, {
|
|
36
|
+
key: LC_BUILDIN_UNIT_KEY.PAGE_FOOTER
|
|
37
|
+
}) : null, /*#__PURE__*/React.createElement(PageModal, null));
|
|
142
38
|
};
|
|
143
39
|
export default Canvas;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import styles from "./style/loading.less";
|
|
4
|
-
var Loading = function Loading() {
|
|
5
|
+
var Loading = function Loading(_ref) {
|
|
6
|
+
var className = _ref.className,
|
|
7
|
+
style = _ref.style;
|
|
5
8
|
return /*#__PURE__*/React.createElement("div", {
|
|
6
|
-
className: styles['lc-painter-loading']
|
|
9
|
+
className: classNames(styles['lc-painter-loading'], _defineProperty({}, className, !!className)),
|
|
10
|
+
style: style
|
|
7
11
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8
12
|
className: styles['cube']
|
|
9
13
|
}, /*#__PURE__*/React.createElement("div", {
|
package/es/lowcode/view/Page.js
CHANGED
|
@@ -1,252 +1,39 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["
|
|
6
|
-
import React, { useRef,
|
|
7
|
-
import { useMemoizedFn
|
|
4
|
+
var _excluded = ["className"];
|
|
5
|
+
import React, { useRef, forwardRef } from 'react';
|
|
6
|
+
import { useMemoizedFn } from 'ahooks';
|
|
8
7
|
import classNames from 'classnames';
|
|
9
|
-
import {
|
|
8
|
+
import { isNil } from 'lodash';
|
|
9
|
+
import styled from 'styled-components';
|
|
10
|
+
import { useRemoteSource } from "../engine/provider/ContextProvider";
|
|
10
11
|
import Loading from "./Loading";
|
|
11
12
|
import Wrapper from "./lc-components/Wrapper";
|
|
12
13
|
import Canvas from "./Canvas";
|
|
13
|
-
import {
|
|
14
|
-
import { CELL_KEY } from "../constants";
|
|
14
|
+
import { LC_BUILDIN_UNIT_KEY } from "../constants";
|
|
15
15
|
import styles from "./style/page.less";
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
resolve(data);
|
|
21
|
-
}, 400);
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
var d = {
|
|
25
|
-
props: {
|
|
26
|
-
id: 'page_root',
|
|
27
|
-
group: 'build-in',
|
|
28
|
-
component: 'Page',
|
|
29
|
-
name: '页面',
|
|
30
|
-
hasHeder: true,
|
|
31
|
-
hasFooter: true
|
|
32
|
-
},
|
|
33
|
-
children: ['page_header', 'page_content', 'page_footer', 'dialog_ms2o9hj0', 'drawer_ou79jw8c'],
|
|
34
|
-
page_header: {
|
|
35
|
-
props: {
|
|
36
|
-
id: 'page_header',
|
|
37
|
-
parentId: 'page_root',
|
|
38
|
-
group: 'build-in',
|
|
39
|
-
component: 'PageHeader',
|
|
40
|
-
name: '页面头',
|
|
41
|
-
fixed: false
|
|
42
|
-
},
|
|
43
|
-
children: ['text_kju78bvs'],
|
|
44
|
-
text_kju78bvs: {
|
|
45
|
-
props: {
|
|
46
|
-
id: 'text_kju78bvs',
|
|
47
|
-
parentId: 'page_header',
|
|
48
|
-
group: 'basic',
|
|
49
|
-
component: 'Text',
|
|
50
|
-
name: '文本'
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
page_content: {
|
|
55
|
-
props: {
|
|
56
|
-
id: 'page_content',
|
|
57
|
-
parentId: 'page_root',
|
|
58
|
-
group: 'build-in',
|
|
59
|
-
component: 'PageContent',
|
|
60
|
-
name: '页面内容'
|
|
61
|
-
},
|
|
62
|
-
children: ['layout_OL4gi6mr'],
|
|
63
|
-
layout_OL4gi6mr: {
|
|
64
|
-
props: {
|
|
65
|
-
component: 'Layout',
|
|
66
|
-
name: '布局容器',
|
|
67
|
-
icon: 'icon-layout',
|
|
68
|
-
group: 'container',
|
|
69
|
-
groupName: '布局',
|
|
70
|
-
desc: '布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。',
|
|
71
|
-
order: 1,
|
|
72
|
-
style: {},
|
|
73
|
-
columnRatio: '12:3:9',
|
|
74
|
-
columnSpacing: 16,
|
|
75
|
-
lineSpacing: 16,
|
|
76
|
-
id: 'layout_OL4gi6mr'
|
|
77
|
-
},
|
|
78
|
-
children: ['box_xFuKLKBI', 'box_jeVHiHZV', 'box_5KLx4rGb'],
|
|
79
|
-
box_xFuKLKBI: {
|
|
80
|
-
props: {
|
|
81
|
-
component: 'Box',
|
|
82
|
-
name: '容器',
|
|
83
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
84
|
-
icon: 'icon-box',
|
|
85
|
-
group: 'container',
|
|
86
|
-
groupName: '布局',
|
|
87
|
-
order: 3,
|
|
88
|
-
style: {
|
|
89
|
-
gridColumn: 'span 12',
|
|
90
|
-
height: 'auto'
|
|
91
|
-
},
|
|
92
|
-
id: 'box_xFuKLKBI'
|
|
93
|
-
},
|
|
94
|
-
children: ['button_okj2n87x', 'text_nmu9wqqw'],
|
|
95
|
-
button_okj2n87x: {
|
|
96
|
-
props: {
|
|
97
|
-
id: 'button_okj2n87x',
|
|
98
|
-
parentId: 'box_ihj2n8cv',
|
|
99
|
-
group: 'basic',
|
|
100
|
-
component: 'Button',
|
|
101
|
-
name: '按钮',
|
|
102
|
-
title: '这是一个按钮',
|
|
103
|
-
type: 'primary',
|
|
104
|
-
size: 'large'
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
text_nmu9wqqw: {
|
|
108
|
-
props: {
|
|
109
|
-
id: 'text_nmu9wqqw',
|
|
110
|
-
parentId: 'box_ihj2n8cv',
|
|
111
|
-
group: 'basic',
|
|
112
|
-
component: 'Text',
|
|
113
|
-
name: '文本'
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
box_jeVHiHZV: {
|
|
118
|
-
props: {
|
|
119
|
-
component: 'Box',
|
|
120
|
-
name: '容器',
|
|
121
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
122
|
-
icon: 'icon-box',
|
|
123
|
-
group: 'container',
|
|
124
|
-
groupName: '布局',
|
|
125
|
-
order: 3,
|
|
126
|
-
style: {
|
|
127
|
-
gridColumn: 'span 3',
|
|
128
|
-
height: '60px'
|
|
129
|
-
},
|
|
130
|
-
id: 'box_jeVHiHZV'
|
|
131
|
-
},
|
|
132
|
-
children: ['tree_hh2b87qs'],
|
|
133
|
-
tree_hh2b87qs: {
|
|
134
|
-
props: {
|
|
135
|
-
id: 'tree_hh2b87qs',
|
|
136
|
-
parentId: 'box_diam9dis',
|
|
137
|
-
group: 'advance',
|
|
138
|
-
component: 'Tree',
|
|
139
|
-
name: '树'
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
box_5KLx4rGb: {
|
|
144
|
-
props: {
|
|
145
|
-
component: 'Box',
|
|
146
|
-
name: '容器',
|
|
147
|
-
desc: '盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。',
|
|
148
|
-
icon: 'icon-box',
|
|
149
|
-
group: 'container',
|
|
150
|
-
groupName: '布局',
|
|
151
|
-
order: 3,
|
|
152
|
-
style: {
|
|
153
|
-
gridColumn: 'span 9',
|
|
154
|
-
height: '360px'
|
|
155
|
-
},
|
|
156
|
-
id: 'box_5KLx4rGb'
|
|
157
|
-
},
|
|
158
|
-
children: ['table_diam9dis'],
|
|
159
|
-
table_diam9dis: {
|
|
160
|
-
props: {
|
|
161
|
-
id: 'table_diam9dis',
|
|
162
|
-
parentId: 'box_s0j3j08t',
|
|
163
|
-
group: 'advance',
|
|
164
|
-
component: 'Table',
|
|
165
|
-
name: '列表',
|
|
166
|
-
dataset: 'dsWmsMaterialsData'
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
page_footer: {
|
|
173
|
-
props: {
|
|
174
|
-
id: 'page_footer',
|
|
175
|
-
parentId: 'page_root',
|
|
176
|
-
group: 'build-in',
|
|
177
|
-
component: 'PageFooter',
|
|
178
|
-
name: '页面尾'
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
dialog_ms2o9hj0: {
|
|
182
|
-
props: {
|
|
183
|
-
id: 'dialog_ms2o9hj0',
|
|
184
|
-
parentId: 'page_root',
|
|
185
|
-
group: 'basic',
|
|
186
|
-
component: 'Dialog',
|
|
187
|
-
name: '对话框'
|
|
188
|
-
},
|
|
189
|
-
children: ['form_gyusku8j'],
|
|
190
|
-
form_gyusku8j: {
|
|
191
|
-
props: {
|
|
192
|
-
id: 'form_gyusku8j',
|
|
193
|
-
parentId: 'dialog_ms2o9hj0',
|
|
194
|
-
group: 'advance',
|
|
195
|
-
component: 'Form',
|
|
196
|
-
name: '表单'
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
drawer_ou79jw8c: {
|
|
201
|
-
props: {
|
|
202
|
-
id: 'drawer_ou79jw8c',
|
|
203
|
-
parentId: 'page_root',
|
|
204
|
-
group: 'basic',
|
|
205
|
-
component: 'Drawer',
|
|
206
|
-
name: '抽屉'
|
|
207
|
-
},
|
|
208
|
-
children: ['form_jknbjkun'],
|
|
209
|
-
form_jknbjkun: {
|
|
210
|
-
props: {
|
|
211
|
-
id: 'form_jknbjkun',
|
|
212
|
-
parentId: 'drawer_ou79jw8c',
|
|
213
|
-
group: 'advance',
|
|
214
|
-
component: 'Form',
|
|
215
|
-
name: '表单'
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
};
|
|
16
|
+
var Masker = styled.div.withConfig({
|
|
17
|
+
displayName: "Masker",
|
|
18
|
+
componentId: "luckda-6530__sc-yswm45-0"
|
|
19
|
+
})(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:2400;background:rgba(0,0,0,0.45);cursor:none;"]);
|
|
220
20
|
var LCPage = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
221
|
-
var
|
|
222
|
-
className = _ref2.className,
|
|
21
|
+
var className = _ref2.className,
|
|
223
22
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
224
23
|
var _ref = useRef(null);
|
|
225
24
|
var _rootRef = ref || _ref;
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
loading = _useBoolean2[0],
|
|
230
|
-
setFalse = _useBoolean2[1].setFalse;
|
|
231
|
-
useEffect(function () {
|
|
232
|
-
context._pageCode.current = pageCode;
|
|
233
|
-
mock(pageCode).then(function (pageData) {
|
|
234
|
-
// context._setPageData(decompress(pageData));
|
|
235
|
-
context._setPageData(d);
|
|
236
|
-
setFalse();
|
|
237
|
-
});
|
|
238
|
-
}, []);
|
|
25
|
+
var _useRemoteSource = useRemoteSource(),
|
|
26
|
+
loading = _useRemoteSource.loading,
|
|
27
|
+
pageData = _useRemoteSource.pageData;
|
|
239
28
|
var getTargetDom = useMemoizedFn(function () {
|
|
240
29
|
return _rootRef.current;
|
|
241
30
|
});
|
|
242
31
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
243
|
-
id:
|
|
32
|
+
id: LC_BUILDIN_UNIT_KEY.PAGE_ROOT,
|
|
244
33
|
getTargetDom: getTargetDom
|
|
245
34
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
246
35
|
ref: _rootRef,
|
|
247
|
-
className: classNames(styles['lc-view-page'], _defineProperty({}, className, !!className))
|
|
248
|
-
}, props),
|
|
249
|
-
dataSource: context.pageData
|
|
250
|
-
})));
|
|
36
|
+
className: classNames(styles['lc-view-page'], _defineProperty(_defineProperty({}, styles.isloading, loading), className, !!className))
|
|
37
|
+
}, props), isNil(pageData) ? null : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Canvas, null), loading ? /*#__PURE__*/React.createElement(Masker, null, /*#__PURE__*/React.createElement(Loading, null)) : null)));
|
|
251
38
|
});
|
|
252
39
|
export default LCPage;
|
package/es/lowcode/view/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
2
|
+
var _excluded = ["code"];
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import EventBusProvider from "../engine/provider/EventBusProvider";
|
|
6
5
|
import ContextProvider from "../engine/provider/ContextProvider";
|
|
7
6
|
import Page from "./Page";
|
|
8
7
|
import { RUNTIME } from "../constants/index";
|
|
9
8
|
var View = function View(_ref) {
|
|
10
|
-
var
|
|
9
|
+
var code = _ref.code,
|
|
11
10
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
11
|
return /*#__PURE__*/React.createElement(EventBusProvider, {
|
|
13
12
|
runtime: RUNTIME.LIVE
|
|
14
|
-
}, /*#__PURE__*/React.createElement(ContextProvider,
|
|
15
|
-
|
|
16
|
-
}, props)))
|
|
13
|
+
}, /*#__PURE__*/React.createElement(ContextProvider, {
|
|
14
|
+
code: code
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Page, props)));
|
|
17
16
|
};
|
|
18
17
|
export default View;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import Index from "./index";
|
|
4
|
+
var FunctionPreview = function FunctionPreview(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
7
|
+
return /*#__PURE__*/React.createElement(Index, props, children);
|
|
8
|
+
};
|
|
9
|
+
export default FunctionPreview;
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
2
|
import React, { useRef } from 'react';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import { useMemoizedFn } from 'ahooks';
|
|
6
5
|
import classNames from 'classnames';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
7
|
import Wrapper from "../Wrapper";
|
|
8
8
|
import styles from "./index.less";
|
|
9
|
+
import { omitBadProps } from "../../../engine/tools/helper";
|
|
9
10
|
import defaultMeta from "../../../engine/meta/box.props.default.json";
|
|
11
|
+
var Box = styled.div.withConfig({
|
|
12
|
+
displayName: "Box",
|
|
13
|
+
componentId: "luckda-6530__sc-19se5zf-0"
|
|
14
|
+
})(["", ""], function (props) {
|
|
15
|
+
return props.$css;
|
|
16
|
+
});
|
|
10
17
|
var LCBox = function LCBox(_ref) {
|
|
11
18
|
var id = _ref.id,
|
|
12
19
|
children = _ref.children,
|
|
13
20
|
className = _ref.className,
|
|
21
|
+
css = _ref.css,
|
|
14
22
|
style = _ref.style;
|
|
15
23
|
var ref = useRef();
|
|
16
24
|
var getTargetDom = useMemoizedFn(function () {
|
|
@@ -18,12 +26,13 @@ var LCBox = function LCBox(_ref) {
|
|
|
18
26
|
});
|
|
19
27
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
20
28
|
id: id,
|
|
29
|
+
displayName: "Box",
|
|
21
30
|
getTargetDom: getTargetDom
|
|
22
|
-
}, /*#__PURE__*/React.createElement(
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
23
32
|
ref: ref,
|
|
24
33
|
className: classNames(styles['lc-component-box'], _defineProperty({}, className, !!className)),
|
|
25
34
|
style: style,
|
|
26
|
-
|
|
35
|
+
$css: css
|
|
27
36
|
}, children));
|
|
28
37
|
};
|
|
29
38
|
LCBox.propTypes = {
|
|
@@ -34,5 +43,5 @@ LCBox.propTypes = {
|
|
|
34
43
|
*/
|
|
35
44
|
id: PropTypes.string.isRequired
|
|
36
45
|
};
|
|
37
|
-
LCBox.defaultProps =
|
|
46
|
+
LCBox.defaultProps = omitBadProps(defaultMeta);
|
|
38
47
|
export default LCBox;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["
|
|
4
|
+
var _excluded = ["className"];
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { useMemoizedFn } from 'ahooks';
|
|
6
7
|
import classNames from 'classnames';
|
|
7
8
|
import Index from "./index";
|
|
8
|
-
import
|
|
9
|
+
import styles from "./style.less";
|
|
9
10
|
var FunctionDesign = function FunctionDesign(_ref) {
|
|
10
|
-
var
|
|
11
|
-
children = _ref.children,
|
|
12
|
-
context = _ref.context,
|
|
13
|
-
className = _ref.className,
|
|
11
|
+
var className = _ref.className,
|
|
14
12
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
var handleClick = useMemoizedFn(function () {});
|
|
15
14
|
return /*#__PURE__*/React.createElement(Index, _extends({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, props), children);
|
|
15
|
+
className: classNames(styles['runtime-button'], _defineProperty({}, className, !!className)),
|
|
16
|
+
onClick: handleClick
|
|
17
|
+
}, props));
|
|
20
18
|
};
|
|
21
19
|
export default FunctionDesign;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
var _excluded = ["children"];
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import Index from "./index";
|
|
4
|
-
var FunctionLive = function FunctionLive(
|
|
5
|
-
|
|
6
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
7
|
-
return /*#__PURE__*/React.createElement(Index, props, children);
|
|
3
|
+
var FunctionLive = function FunctionLive(props) {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Index, props);
|
|
8
5
|
};
|
|
9
6
|
export default FunctionLive;
|