@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
|
@@ -14,100 +14,256 @@
|
|
|
14
14
|
"disabled": true
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"key": "
|
|
17
|
+
"key": "dataset",
|
|
18
18
|
"name": "数据集",
|
|
19
19
|
"desc": "选择系统中的可用树形数据集",
|
|
20
20
|
"type": "_DataSetSelector"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"key": "
|
|
24
|
-
"name": "
|
|
25
|
-
"desc": "
|
|
26
|
-
"type": "
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "lazyLoad",
|
|
31
|
-
"name": "懒加载",
|
|
32
|
-
"desc": "是否树形组件懒加载",
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"default": false
|
|
23
|
+
"key": "title",
|
|
24
|
+
"name": "标题",
|
|
25
|
+
"desc": "头部标题",
|
|
26
|
+
"type": "string"
|
|
35
27
|
},
|
|
36
28
|
{
|
|
37
|
-
"key": "
|
|
38
|
-
"name": "
|
|
39
|
-
"desc": "
|
|
40
|
-
"type": "
|
|
29
|
+
"key": "readOnly",
|
|
30
|
+
"name": "是否只读",
|
|
31
|
+
"desc": "是否树形组件只读",
|
|
32
|
+
"type": "switch",
|
|
41
33
|
"default": false
|
|
42
34
|
},
|
|
43
35
|
{
|
|
44
36
|
"key": "draggable",
|
|
45
37
|
"name": "支持拖拽",
|
|
46
38
|
"desc": "是否支持拖拽",
|
|
47
|
-
"type": "
|
|
39
|
+
"type": "switch",
|
|
40
|
+
"default": true
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "asyncLoad",
|
|
44
|
+
"name": "异步加载",
|
|
45
|
+
"desc": "是否树形组件异步加载,需要设置数据集条件",
|
|
46
|
+
"type": "switch",
|
|
48
47
|
"default": false
|
|
49
48
|
},
|
|
50
49
|
{
|
|
51
|
-
"key": "
|
|
52
|
-
"name": "
|
|
53
|
-
"desc": "
|
|
54
|
-
"type": "
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
"key": "parentKey",
|
|
51
|
+
"name": "异步加载Key",
|
|
52
|
+
"desc": "树形组件异步加载时的过滤传参key",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"default": "iparentid"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "styleSetting",
|
|
58
|
+
"name": "风格和样式",
|
|
59
|
+
"type": "group",
|
|
60
|
+
"props": [
|
|
60
61
|
{
|
|
61
|
-
"
|
|
62
|
-
"
|
|
62
|
+
"key": "width",
|
|
63
|
+
"name": "宽度",
|
|
64
|
+
"type": "_WidthHeight",
|
|
65
|
+
"default": "100%"
|
|
63
66
|
},
|
|
64
67
|
{
|
|
65
|
-
"
|
|
66
|
-
"
|
|
68
|
+
"key": "height",
|
|
69
|
+
"name": "高度",
|
|
70
|
+
"type": "_WidthHeight",
|
|
71
|
+
"default": "100%"
|
|
67
72
|
},
|
|
68
73
|
{
|
|
69
|
-
"
|
|
70
|
-
"
|
|
74
|
+
"key": "showLine",
|
|
75
|
+
"name": "显示线",
|
|
76
|
+
"desc": "是否显示树组件的连接线",
|
|
77
|
+
"type": "switch",
|
|
78
|
+
"default": false
|
|
71
79
|
},
|
|
72
80
|
{
|
|
73
|
-
"
|
|
74
|
-
"
|
|
81
|
+
"key": "treeNodeTitle",
|
|
82
|
+
"name": "展示字段",
|
|
83
|
+
"desc": "展示字段的key",
|
|
84
|
+
"type": "string",
|
|
85
|
+
"default": "sname"
|
|
75
86
|
},
|
|
76
87
|
{
|
|
77
|
-
"
|
|
78
|
-
"
|
|
88
|
+
"key": "defaultExpandDeep",
|
|
89
|
+
"name": "默认展开层级",
|
|
90
|
+
"desc": "默认展开多少层级",
|
|
91
|
+
"type": "select",
|
|
92
|
+
"options": [
|
|
93
|
+
{
|
|
94
|
+
"label": "不展开",
|
|
95
|
+
"value": "0"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"label": "1",
|
|
99
|
+
"value": "1"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"label": "2",
|
|
103
|
+
"value": "2"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"label": "3",
|
|
107
|
+
"value": "3"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"label": "4",
|
|
111
|
+
"value": "4"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"label": "全部",
|
|
115
|
+
"value": "all"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"default": "0"
|
|
79
119
|
}
|
|
80
|
-
]
|
|
81
|
-
"default": 1
|
|
120
|
+
]
|
|
82
121
|
},
|
|
83
122
|
{
|
|
84
|
-
"key": "
|
|
85
|
-
"name": "
|
|
86
|
-
"
|
|
87
|
-
"
|
|
123
|
+
"key": "IconSetting",
|
|
124
|
+
"name": "图标设置",
|
|
125
|
+
"type": "group",
|
|
126
|
+
"default": true,
|
|
127
|
+
"next": {
|
|
128
|
+
"name": "图标设置",
|
|
129
|
+
"props": [
|
|
130
|
+
{
|
|
131
|
+
"key": "showIcon",
|
|
132
|
+
"name": "显示图标",
|
|
133
|
+
"desc": "是否显示树组件的图标",
|
|
134
|
+
"type": "switch",
|
|
135
|
+
"default": true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "treeNodeIcon",
|
|
139
|
+
"name": "节点图标设置",
|
|
140
|
+
"type": "_IconConditionSelector",
|
|
141
|
+
"default": [],
|
|
142
|
+
"defaultCode": "function treeNodeIconRender(item) { \n return false; \n}",
|
|
143
|
+
"wrapper": "collapse",
|
|
144
|
+
"wrapperProps": { "suppressIcon": true }
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
88
148
|
},
|
|
89
149
|
{
|
|
90
150
|
"key": "actions",
|
|
91
151
|
"name": "操作项",
|
|
92
|
-
"desc": "
|
|
93
|
-
"type": "
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
152
|
+
"desc": "树节点操作项",
|
|
153
|
+
"type": "group",
|
|
154
|
+
"default": true,
|
|
155
|
+
"next": {
|
|
156
|
+
"name": "操作项",
|
|
157
|
+
"props": [
|
|
158
|
+
{
|
|
159
|
+
"key": "rootAdd",
|
|
160
|
+
"name": "根节点",
|
|
161
|
+
"desc": "根节点操作项",
|
|
162
|
+
"type": "group",
|
|
163
|
+
"props": [
|
|
164
|
+
{
|
|
165
|
+
"key": "showRootAdd",
|
|
166
|
+
"name": "是否显示",
|
|
167
|
+
"desc": "是否显示",
|
|
168
|
+
"type": "switch",
|
|
169
|
+
"default": true
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"key": "rootAddSetting",
|
|
173
|
+
"name": "根节点配置",
|
|
174
|
+
"desc": "根节点配置",
|
|
175
|
+
"type": "_TreeRootEditor",
|
|
176
|
+
"default": {}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"key": "actions",
|
|
182
|
+
"name": "节点操作项",
|
|
183
|
+
"type": "_ActionsEditor",
|
|
184
|
+
"default": {
|
|
185
|
+
"todoList": []
|
|
186
|
+
},
|
|
187
|
+
"suppressDisplay": true,
|
|
188
|
+
"suppressMax": true,
|
|
189
|
+
"suppressMore": true,
|
|
190
|
+
"wrapper": "collapse",
|
|
191
|
+
"wrapperProps": {
|
|
192
|
+
"suppressIcon": true
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
101
197
|
},
|
|
102
198
|
{
|
|
103
|
-
"key": "
|
|
104
|
-
"name": "
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
199
|
+
"key": "rowSelectionSetting",
|
|
200
|
+
"name": "节点控制器",
|
|
201
|
+
"type": "group",
|
|
202
|
+
"default": true,
|
|
203
|
+
"next": {
|
|
204
|
+
"name": "行选择器",
|
|
205
|
+
"props": [
|
|
206
|
+
{
|
|
207
|
+
"key": "doubleClickExpand",
|
|
208
|
+
"name": "双击收缩节点",
|
|
209
|
+
"type": "switch",
|
|
210
|
+
"default": true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"key": "checkable",
|
|
214
|
+
"name": "复选框",
|
|
215
|
+
"desc": "是否支持复选框选择",
|
|
216
|
+
"type": "switch",
|
|
217
|
+
"default": false
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"key": "treeNodeCheckable",
|
|
221
|
+
"name": "节点是否有复选框",
|
|
222
|
+
"type": "_JSEditor",
|
|
223
|
+
"defaultCode": "function treeNodeCheckable(item) { \n return true; \n}",
|
|
224
|
+
"mustConfirm": true,
|
|
225
|
+
"wrapper": "collapse",
|
|
226
|
+
"wrapperProps": {
|
|
227
|
+
"suppressIcon": true
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"key": "treeNodeDisableCheckbox",
|
|
232
|
+
"name": "节点复选框是否禁用",
|
|
233
|
+
"type": "_JSEditor",
|
|
234
|
+
"defaultCode": "function treeNodeDisableCheckbox(item) { \n return false; \n}",
|
|
235
|
+
"mustConfirm": true,
|
|
236
|
+
"wrapper": "collapse",
|
|
237
|
+
"wrapperProps": {
|
|
238
|
+
"suppressIcon": true
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"key": "treeNodeDisable",
|
|
243
|
+
"name": "节点是否禁用",
|
|
244
|
+
"type": "_JSEditor",
|
|
245
|
+
"defaultCode": "function treeNodeDisable(item) { \n return false; \n}",
|
|
246
|
+
"mustConfirm": true,
|
|
247
|
+
"wrapper": "collapse",
|
|
248
|
+
"wrapperProps": {
|
|
249
|
+
"suppressIcon": true
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"key": "onTreeNodeRender",
|
|
254
|
+
"name": "节点定制渲染",
|
|
255
|
+
"type": "_JSEditor",
|
|
256
|
+
"defaultCode": "function onTreeNodeRender(title, item) { \n return title; \n}",
|
|
257
|
+
"mustConfirm": true,
|
|
258
|
+
"wrapper": "collapse",
|
|
259
|
+
"wrapperProps": {
|
|
260
|
+
"suppressIcon": true
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
108
265
|
}
|
|
109
266
|
],
|
|
110
|
-
"style": {},
|
|
111
267
|
"advance": {
|
|
112
268
|
"events": [
|
|
113
269
|
{
|
|
@@ -120,7 +276,7 @@
|
|
|
120
276
|
"key": "onUnmount",
|
|
121
277
|
"name": "组件卸载时",
|
|
122
278
|
"desc": "在组件卸载时,执行方法。",
|
|
123
|
-
"func": "(
|
|
279
|
+
"func": "()=>{\n\t\n}"
|
|
124
280
|
},
|
|
125
281
|
{
|
|
126
282
|
"key": "processDataSource",
|
|
@@ -129,29 +285,17 @@
|
|
|
129
285
|
"func": "(data)=>{\n\t\n}"
|
|
130
286
|
},
|
|
131
287
|
{
|
|
132
|
-
"key": "
|
|
133
|
-
"name": "
|
|
134
|
-
"desc": "
|
|
135
|
-
"func": "(
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"key": "unSelectableNodes",
|
|
139
|
-
"name": "失活节点",
|
|
140
|
-
"desc": "不可选择的节点",
|
|
141
|
-
"func": "(data)=>{\n\t\n}"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"key": "onRightMenus",
|
|
145
|
-
"name": "定制渲染",
|
|
146
|
-
"desc": "返回为false时,该操作不可见",
|
|
147
|
-
"func": "(title, rowData)=>{\n\t\n}"
|
|
288
|
+
"key": "onDoubleClick",
|
|
289
|
+
"name": "双击事件",
|
|
290
|
+
"desc": "树节点双击事件",
|
|
291
|
+
"func": "(e, rowData)=>{\n\t\n}"
|
|
148
292
|
},
|
|
149
293
|
{
|
|
150
|
-
"key": "
|
|
151
|
-
"name": "
|
|
152
|
-
"desc": "
|
|
153
|
-
"func": "(
|
|
294
|
+
"key": "onCheck",
|
|
295
|
+
"name": "复选框选择事件",
|
|
296
|
+
"desc": "点击复选框触发",
|
|
297
|
+
"func": "(checkedKeys, e)=>{\n\t\n}"
|
|
154
298
|
}
|
|
155
299
|
]
|
|
156
300
|
}
|
|
157
|
-
}
|
|
301
|
+
}
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
3
|
import { useEffect } from 'react';
|
|
3
4
|
import { useLatest, useCreation } from 'ahooks';
|
|
4
|
-
import {
|
|
5
|
+
import { omit } from 'lodash';
|
|
6
|
+
import { useContext, usePageData } from "../../engine/provider/ContextProvider";
|
|
5
7
|
import { findNodeAndParent, getPathNodesById } from "../../engine/tools/dataProcess";
|
|
6
|
-
import {
|
|
8
|
+
import { LC_COMPONENT_UNIT_KEY, LC_COMPONENT_UNIT, RUNTIME } from "../../constants";
|
|
9
|
+
import DragDropWrapper from "../../painter/components/DragDrop/DragDropWrapper";
|
|
7
10
|
var LCWrapper = function LCWrapper(_ref) {
|
|
8
11
|
var id = _ref.id,
|
|
12
|
+
displayName = _ref.displayName,
|
|
9
13
|
children = _ref.children,
|
|
10
14
|
getTargetDom = _ref.getTargetDom,
|
|
11
15
|
api = _ref.api;
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
var ctx = useContext();
|
|
17
|
+
var _usePageData = usePageData(),
|
|
18
|
+
_usePageData2 = _slicedToArray(_usePageData, 1),
|
|
19
|
+
pageData = _usePageData2[0];
|
|
20
|
+
var _pageData = useLatest(pageData);
|
|
21
|
+
useCreation(function () {
|
|
22
|
+
var meta = displayName ? require("../../engine/meta/".concat(displayName.toLowerCase(), ".props.json")) : {};
|
|
23
|
+
var _api = {
|
|
24
|
+
self: children,
|
|
25
|
+
getSelfData: function getSelfData() {
|
|
26
|
+
return children.props;
|
|
27
|
+
},
|
|
28
|
+
getSelfDom: getTargetDom,
|
|
16
29
|
getSelfAndParentLCData: function getSelfAndParentLCData() {
|
|
17
30
|
return findNodeAndParent(id, _pageData.current);
|
|
18
31
|
},
|
|
@@ -20,35 +33,39 @@ var LCWrapper = function LCWrapper(_ref) {
|
|
|
20
33
|
return getPathNodesById(_pageData.current, id);
|
|
21
34
|
}
|
|
22
35
|
};
|
|
36
|
+
ctx._register(id, new Proxy({
|
|
37
|
+
meta: omit(meta, ['props', 'css', 'advance'])
|
|
38
|
+
}, {
|
|
39
|
+
get: function get(target, property, receiver) {
|
|
40
|
+
if (property === 'api') {
|
|
41
|
+
return api ? _objectSpread(_objectSpread({}, _api), api.current) : _api;
|
|
42
|
+
}
|
|
43
|
+
return Reflect.get(target, property, receiver);
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
23
46
|
}, []);
|
|
24
47
|
useEffect(function () {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
dom: dom
|
|
33
|
-
}, {
|
|
34
|
-
get: function get(target, property, receiver) {
|
|
35
|
-
if (property === 'api') {
|
|
36
|
-
return api ? _objectSpread(_objectSpread({}, _api), api.current) : _api;
|
|
37
|
-
}
|
|
38
|
-
return Reflect.get(target, property, receiver);
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
41
|
-
context.$publisher(context.topics.COMPONENT_MOUNT, {
|
|
42
|
-
id: id
|
|
43
|
-
});
|
|
48
|
+
var dom = getTargetDom();
|
|
49
|
+
if (dom) {
|
|
50
|
+
dom.setAttribute('id', id);
|
|
51
|
+
dom.setAttribute(LC_COMPONENT_UNIT_KEY, LC_COMPONENT_UNIT);
|
|
52
|
+
}
|
|
53
|
+
ctx.$publisher(ctx.topics.COMPONENT_MOUNT, {
|
|
54
|
+
id: id
|
|
44
55
|
});
|
|
45
56
|
return function () {
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
ctx._unregister(id);
|
|
58
|
+
ctx.$publisher(ctx.topics.COMPONENT_UNMOUNT, {
|
|
48
59
|
id: id
|
|
49
60
|
});
|
|
50
61
|
};
|
|
51
62
|
}, []);
|
|
63
|
+
if (ctx.runtime === RUNTIME.DESIGN) {
|
|
64
|
+
return /*#__PURE__*/React.createElement(DragDropWrapper, {
|
|
65
|
+
id: id,
|
|
66
|
+
getTargetDom: getTargetDom
|
|
67
|
+
}, children);
|
|
68
|
+
}
|
|
52
69
|
return children;
|
|
53
70
|
};
|
|
54
71
|
export default LCWrapper;
|
|
File without changes
|
|
File without changes
|
package/es/services.js
CHANGED
|
@@ -7,11 +7,13 @@ export function readModlue(_x) {
|
|
|
7
7
|
return _readModlue.apply(this, arguments);
|
|
8
8
|
}
|
|
9
9
|
function _readModlue() {
|
|
10
|
-
_readModlue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(
|
|
10
|
+
_readModlue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
11
11
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12
12
|
while (1) switch (_context.prev = _context.next) {
|
|
13
13
|
case 0:
|
|
14
|
-
return _context.abrupt("return", request("".concat(api.LUCKDA_HOST, "/ui/builder/noAuthFetchModule
|
|
14
|
+
return _context.abrupt("return", request("".concat(api.LUCKDA_HOST, "/ui/builder/noAuthFetchModule"), {
|
|
15
|
+
params: params
|
|
16
|
+
}));
|
|
15
17
|
case 1:
|
|
16
18
|
case "end":
|
|
17
19
|
return _context.stop();
|
|
@@ -28,7 +30,7 @@ function _readBehaviorCall() {
|
|
|
28
30
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29
31
|
while (1) switch (_context2.prev = _context2.next) {
|
|
30
32
|
case 0:
|
|
31
|
-
return _context2.abrupt("return", request("".concat(api.
|
|
33
|
+
return _context2.abrupt("return", request("".concat(api.API_HOST, "/lowcode/to/behavior/call?").concat(stringify(get)), {
|
|
32
34
|
method: 'POST',
|
|
33
35
|
body: post,
|
|
34
36
|
headers: {
|
|
File without changes
|
package/es/upload/Form/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/upload/index.js
CHANGED
|
File without changes
|
package/es/utils/action.js
CHANGED
|
File without changes
|
package/es/utils/form.js
CHANGED
|
File without changes
|
package/es/utils/grid.js
CHANGED
|
@@ -130,8 +130,8 @@ export var getGridColumn = function getGridColumn() {
|
|
|
130
130
|
var data = _objectSpread(_objectSpread({}, _props), {}, {
|
|
131
131
|
field: name,
|
|
132
132
|
title: _props.label,
|
|
133
|
-
headerAlign: getAlign(_extra, 'sheading_alignment_virtual'),
|
|
134
|
-
align: getAlign(_extra, 'scell_alignment_virtual'),
|
|
133
|
+
headerAlign: _props.headerAlign || getAlign(_extra, 'sheading_alignment_virtual'),
|
|
134
|
+
align: _props.align || getAlign(_extra, 'scell_alignment_virtual'),
|
|
135
135
|
render: _props.render || getColumnRender(name, comName || defaultComName[property], _props)
|
|
136
136
|
});
|
|
137
137
|
if (isTreeGrid || isVirtual || includes(['user', 'select', 'group', 'switch', 'color', 'region', 'file'], comName || defaultComName[property])) data.sortable = false;
|
package/es/utils/index.js
CHANGED
|
File without changes
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = exports.LuckDaContext = void 0;
|
|
8
|
+
exports.useLDCtx = exports.default = exports.LuckDaContext = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _objectSpread4 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
@@ -18,8 +18,11 @@ var _services = require("../../services");
|
|
|
18
18
|
var _action2 = require("../../helper/action");
|
|
19
19
|
var _utils = require("@luck-design-biz/base/utils");
|
|
20
20
|
var LuckDaContext = exports.LuckDaContext = /*#__PURE__*/(0, _react.createContext)();
|
|
21
|
+
var useLDCtx = exports.useLDCtx = function useLDCtx() {
|
|
22
|
+
return (0, _react.useContext)(LuckDaContext);
|
|
23
|
+
};
|
|
21
24
|
var builder = function builder(WrappedComponent, moduleCode) {
|
|
22
|
-
var Component = function
|
|
25
|
+
var Component = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
23
26
|
if (!moduleCode) return (0, _utils.formatMessage)({
|
|
24
27
|
id: 'luckda.paramMiss.moduleCode',
|
|
25
28
|
label: '缺少模块Key'
|
|
@@ -118,7 +121,9 @@ var builder = function builder(WrappedComponent, moduleCode) {
|
|
|
118
121
|
setFieldProps: setFieldProps,
|
|
119
122
|
moduleCode: moduleCode
|
|
120
123
|
})
|
|
121
|
-
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, (0, _extends2.default)({
|
|
124
|
+
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, (0, _extends2.default)({
|
|
125
|
+
ref: ref
|
|
126
|
+
}, moduleData || {}, {
|
|
122
127
|
doAction: doAction,
|
|
123
128
|
openPop: openPop,
|
|
124
129
|
closePop: closePop
|
|
@@ -134,7 +139,7 @@ var builder = function builder(WrappedComponent, moduleCode) {
|
|
|
134
139
|
}, pops[ldId])
|
|
135
140
|
});
|
|
136
141
|
}));
|
|
137
|
-
};
|
|
142
|
+
});
|
|
138
143
|
return Component;
|
|
139
144
|
};
|
|
140
145
|
var _default = exports.default = builder;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _antd = require("luck-design/antd");
|
|
8
|
+
var _apiUrl = require("../../lowcode/constants/api-url");
|
|
9
|
+
var _default = exports.default = _antd.Icon.createFromIconfontCN({
|
|
10
|
+
scriptUrl: _apiUrl.ICONLIST_JS
|
|
11
|
+
});
|