@luck-design-biz/luckda 0.0.25-21 → 0.0.25-22
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 +21 -21
- package/README.md +40 -40
- package/es/components/Builder/index.js +0 -0
- package/es/components/ComplexItem/index.js +0 -0
- package/es/components/ComplexItem/service.js +0 -0
- package/es/components/IconFont/index.js +0 -0
- package/es/components/LDActions/index.js +0 -0
- package/es/components/LDActions/index.less +68 -68
- package/es/components/LdAutoForm/index.js +0 -0
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +0 -0
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +0 -0
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdTree/index.js +36 -14
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +0 -0
- package/es/helper/ldComBuild.js +0 -0
- package/es/helper/props_config.js +0 -0
- package/es/index.js +0 -0
- package/es/locales/zh-CN.js +0 -0
- package/es/lowcode/constants/api-url.js +109 -84
- package/es/lowcode/constants/event-topics.js +0 -0
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -0
- package/es/lowcode/engine/launcher.js +0 -0
- package/es/lowcode/engine/meta/box.props.default.json +0 -0
- package/es/lowcode/engine/meta/box.props.json +0 -0
- package/es/lowcode/engine/meta/button.props.default.json +0 -0
- package/es/lowcode/engine/meta/button.props.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.json +0 -0
- package/es/lowcode/engine/meta/components-list.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.json +0 -0
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +13 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +13 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +3 -0
- package/es/lowcode/engine/meta/fielddate.props.json +13 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +3 -0
- package/es/lowcode/engine/meta/fielddict.props.json +13 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +13 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +13 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +13 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +13 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +13 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +13 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +13 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +13 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +13 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +13 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +3 -0
- package/es/lowcode/engine/meta/fielduser.props.json +13 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +3 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +13 -0
- package/es/lowcode/engine/meta/form.props.default.json +0 -0
- package/es/lowcode/engine/meta/form.props.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.json +0 -0
- package/es/lowcode/engine/meta/image.props.default.json +0 -0
- package/es/lowcode/engine/meta/image.props.json +0 -0
- package/es/lowcode/engine/meta/imex.props.default.json +0 -0
- package/es/lowcode/engine/meta/imex.props.json +0 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +20 -20
- package/es/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/es/lowcode/engine/meta/jsx.props.json +0 -0
- package/es/lowcode/engine/meta/layout.props.default.json +0 -0
- package/es/lowcode/engine/meta/layout.props.json +0 -0
- package/es/lowcode/engine/meta/link.props.default.json +0 -0
- package/es/lowcode/engine/meta/link.props.json +0 -0
- package/es/lowcode/engine/meta/page.props.default.json +0 -0
- package/es/lowcode/engine/meta/page.props.json +0 -0
- package/es/lowcode/engine/meta/pagecontent.props.default.json +0 -0
- package/es/lowcode/engine/meta/pagecontent.props.json +0 -0
- package/es/lowcode/engine/meta/pagefooter.props.default.json +0 -0
- package/es/lowcode/engine/meta/pagefooter.props.json +0 -0
- package/es/lowcode/engine/meta/pageheader.props.default.json +0 -0
- package/es/lowcode/engine/meta/pageheader.props.json +0 -0
- package/es/lowcode/engine/meta/pagelayout.props.default.json +0 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +0 -0
- package/es/lowcode/engine/meta/section.props.default.json +0 -0
- package/es/lowcode/engine/meta/section.props.json +0 -0
- package/es/lowcode/engine/meta/split.props.default.json +0 -0
- package/es/lowcode/engine/meta/split.props.json +0 -0
- package/es/lowcode/engine/meta/table.props.default.json +0 -0
- package/es/lowcode/engine/meta/table.props.json +0 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/es/lowcode/engine/meta/tabs.props.json +0 -0
- package/es/lowcode/engine/meta/text.props.default.json +0 -0
- package/es/lowcode/engine/meta/text.props.json +0 -0
- package/es/lowcode/engine/meta/tree.props.default.json +0 -0
- package/es/lowcode/engine/meta/tree.props.json +0 -0
- package/es/lowcode/engine/provider/ContextProvider/index.js +63 -56
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +0 -0
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/diff.js +0 -0
- package/es/lowcode/engine/tools/helper.js +0 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +0 -0
- package/es/lowcode/engine/tools/useCombinedRefs.js +0 -0
- package/es/lowcode/engine/tools/usePageDataStore.js +0 -0
- package/es/lowcode/engine/tools/usePromiseState.js +0 -0
- package/es/lowcode/engine/tools/useTodo.js +0 -0
- package/es/lowcode/index.js +0 -0
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +0 -0
- package/es/lowcode/painter/DesignOperator.js +0 -0
- package/es/lowcode/painter/DesignToolbar.js +7 -8
- package/es/lowcode/painter/I18n.js +0 -0
- package/es/lowcode/painter/Outline.js +0 -0
- package/es/lowcode/painter/Panel.js +0 -0
- package/es/lowcode/painter/Ribbon.js +0 -0
- package/es/lowcode/painter/components/ActionBindModal.js +0 -0
- package/es/lowcode/painter/components/AdvancePanel.js +0 -0
- package/es/lowcode/painter/components/AttrsPanel.js +0 -0
- package/es/lowcode/painter/components/Collapse.js +26 -26
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +0 -0
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -0
- package/es/lowcode/painter/components/DragDrop/Overlay.js +0 -0
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -0
- package/es/lowcode/painter/components/FieldSelector.js +0 -0
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/PreviewIframe.js +0 -0
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/TreeEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +54 -33
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/index.js +0 -0
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +0 -0
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -0
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -0
- package/es/lowcode/painter/components/field-setting/index.js +0 -0
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +0 -0
- package/es/lowcode/painter/index.js +0 -0
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +0 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +0 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +0 -0
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/es/lowcode/painter/panel-section/ComponentSelector.js +0 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +0 -0
- package/es/lowcode/painter/panel-section/FieldState.js +62 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +0 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +0 -0
- package/es/lowcode/painter/panel-section/Icon.js +23 -23
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/es/lowcode/painter/panel-section/ImpExp.js +0 -0
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +0 -0
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +0 -0
- package/es/lowcode/painter/panel-section/SplitDisplay.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/es/lowcode/painter/panel-section/TabItems.js +0 -0
- package/es/lowcode/painter/panel-section/TableTopFilter.js +0 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +0 -0
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +0 -0
- package/es/lowcode/painter/panel-section/WidthHeight.js +0 -0
- package/es/lowcode/painter/services/I18n.js +0 -0
- package/es/lowcode/painter/style/action-bind-modal.less +102 -102
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +28 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +91 -91
- package/es/lowcode/painter/style/design.less +159 -159
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +10 -10
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +95 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/page-layout-display.less +27 -27
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/split-display.less +18 -18
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/painter/style/treedragdrop.less +19 -19
- package/es/lowcode/preview/index.js +0 -0
- package/es/lowcode/view/Canvas.js +0 -0
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +0 -0
- package/es/lowcode/view/index.js +0 -0
- 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 +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +4 -4
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Button/index.js +33 -33
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- 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 +0 -0
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +153 -153
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +13 -13
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +150 -150
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +12 -12
- package/es/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +131 -131
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -146
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +133 -122
- package/es/lowcode/view/lc-components/FieldDate/meta.json +139 -128
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -127
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -127
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -156
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +142 -131
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -104
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -110
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -141
- package/es/lowcode/view/lc-components/FieldString/meta.json +152 -141
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -114
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -132
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -154
- package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -165
- package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -118
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Form/index.js +71 -48
- package/es/lowcode/view/lc-components/Form/index.less +4 -4
- package/es/lowcode/view/lc-components/Form/meta.json +610 -610
- 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 +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
- 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 +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +113 -113
- 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 +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/meta.json +114 -114
- 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 +0 -0
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +16 -16
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- 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 +0 -0
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Page/meta.json +55 -55
- package/es/lowcode/view/lc-components/PageContent/index.js +0 -0
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +0 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +0 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +0 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -47
- package/es/lowcode/view/lc-components/PageModal/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +107 -107
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +0 -0
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +0 -0
- package/es/lowcode/view/lc-components/Table/index.js +144 -144
- package/es/lowcode/view/lc-components/Table/meta.json +450 -450
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- 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 +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +4 -4
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/es/lowcode/view/lc-components/Wrapper.js +0 -0
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +84 -84
- package/es/lowcode/view/style/page.less +7 -7
- package/es/services.js +0 -0
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/gridForm.js +0 -0
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +15 -15
- 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 +21 -21
- package/es/utils/grid.js +0 -0
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +0 -0
- package/lib/components/ComplexItem/index.js +0 -0
- package/lib/components/ComplexItem/service.js +0 -0
- package/lib/components/IconFont/index.js +0 -0
- package/lib/components/LDActions/index.js +0 -0
- package/lib/components/LDActions/index.less +68 -68
- package/lib/components/LdAutoForm/index.js +0 -0
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +0 -0
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +0 -0
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdTree/index.js +34 -12
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +0 -0
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/helper/props_config.js +0 -0
- package/lib/index.js +0 -0
- package/lib/locales/zh-CN.js +0 -0
- package/lib/lowcode/constants/api-url.js +109 -84
- package/lib/lowcode/constants/event-topics.js +0 -0
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -0
- package/lib/lowcode/engine/launcher.js +0 -0
- package/lib/lowcode/engine/meta/box.props.default.json +0 -0
- package/lib/lowcode/engine/meta/box.props.json +0 -0
- package/lib/lowcode/engine/meta/button.props.default.json +0 -0
- package/lib/lowcode/engine/meta/button.props.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +0 -0
- package/lib/lowcode/engine/meta/components-list.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.json +0 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +13 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +13 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +13 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +13 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +3 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +13 -0
- package/lib/lowcode/engine/meta/form.props.default.json +0 -0
- package/lib/lowcode/engine/meta/form.props.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.json +0 -0
- package/lib/lowcode/engine/meta/image.props.default.json +0 -0
- package/lib/lowcode/engine/meta/image.props.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.json +0 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +20 -20
- package/lib/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/lib/lowcode/engine/meta/jsx.props.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.json +0 -0
- package/lib/lowcode/engine/meta/link.props.default.json +0 -0
- package/lib/lowcode/engine/meta/link.props.json +0 -0
- package/lib/lowcode/engine/meta/page.props.default.json +0 -0
- package/lib/lowcode/engine/meta/page.props.json +0 -0
- package/lib/lowcode/engine/meta/pagecontent.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pagecontent.props.json +0 -0
- package/lib/lowcode/engine/meta/pagefooter.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pagefooter.props.json +0 -0
- package/lib/lowcode/engine/meta/pageheader.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pageheader.props.json +0 -0
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +0 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +0 -0
- package/lib/lowcode/engine/meta/section.props.default.json +0 -0
- package/lib/lowcode/engine/meta/section.props.json +0 -0
- package/lib/lowcode/engine/meta/split.props.default.json +0 -0
- package/lib/lowcode/engine/meta/split.props.json +0 -0
- package/lib/lowcode/engine/meta/table.props.default.json +0 -0
- package/lib/lowcode/engine/meta/table.props.json +0 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tabs.props.json +0 -0
- package/lib/lowcode/engine/meta/text.props.default.json +0 -0
- package/lib/lowcode/engine/meta/text.props.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.json +0 -0
- package/lib/lowcode/engine/provider/ContextProvider/index.js +63 -56
- package/lib/lowcode/engine/provider/ContextProvider/{usePageState.js → usePageVar.js} +21 -4
- package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +0 -0
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/diff.js +0 -0
- package/lib/lowcode/engine/tools/helper.js +0 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +0 -0
- package/lib/lowcode/engine/tools/useCombinedRefs.js +0 -0
- package/lib/lowcode/engine/tools/usePageDataStore.js +0 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -0
- package/lib/lowcode/engine/tools/useTodo.js +0 -0
- package/lib/lowcode/index.js +0 -0
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +0 -0
- package/lib/lowcode/painter/DesignOperator.js +0 -0
- package/lib/lowcode/painter/DesignToolbar.js +6 -7
- package/lib/lowcode/painter/I18n.js +0 -0
- package/lib/lowcode/painter/Outline.js +0 -0
- package/lib/lowcode/painter/Panel.js +0 -0
- package/lib/lowcode/painter/Ribbon.js +0 -0
- package/lib/lowcode/painter/components/ActionBindModal.js +0 -0
- package/lib/lowcode/painter/components/AdvancePanel.js +0 -0
- package/lib/lowcode/painter/components/AttrsPanel.js +0 -0
- package/lib/lowcode/painter/components/Collapse.js +26 -26
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +0 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -0
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +0 -0
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -0
- package/lib/lowcode/painter/components/FieldSelector.js +0 -0
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/PreviewIframe.js +0 -0
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/TreeEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +54 -33
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/index.js +0 -0
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +0 -0
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -0
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -0
- package/lib/lowcode/painter/components/field-setting/index.js +0 -0
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +0 -0
- package/lib/lowcode/painter/index.js +0 -0
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +0 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +0 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +0 -0
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/lib/lowcode/painter/panel-section/ComponentSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/FieldState.js +70 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +0 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +0 -0
- package/lib/lowcode/painter/panel-section/Icon.js +23 -23
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/lib/lowcode/painter/panel-section/ImpExp.js +0 -0
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -0
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/lib/lowcode/painter/panel-section/TabItems.js +0 -0
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +0 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +0 -0
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +0 -0
- package/lib/lowcode/painter/panel-section/WidthHeight.js +0 -0
- package/lib/lowcode/painter/services/I18n.js +0 -0
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +28 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +91 -91
- package/lib/lowcode/painter/style/design.less +159 -159
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +10 -10
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +95 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/page-layout-display.less +27 -27
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/split-display.less +18 -18
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/painter/style/treedragdrop.less +19 -19
- package/lib/lowcode/preview/index.js +0 -0
- package/lib/lowcode/view/Canvas.js +0 -0
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +0 -0
- package/lib/lowcode/view/index.js +0 -0
- 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 +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +4 -4
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Button/index.js +33 -33
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- 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 +0 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +153 -153
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +13 -13
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +150 -150
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +12 -12
- package/lib/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/lib/lowcode/view/lc-components/Drawer/meta.json +131 -131
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -146
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +133 -122
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +139 -128
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -127
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -127
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -156
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +142 -131
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -104
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -110
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -141
- package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -141
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -114
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -132
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -154
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -165
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -118
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Form/index.js +70 -47
- package/lib/lowcode/view/lc-components/Form/index.less +4 -4
- package/lib/lowcode/view/lc-components/Form/meta.json +610 -610
- 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 +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
- 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 +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +113 -113
- 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 +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
- 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 +0 -0
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- 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 +0 -0
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +55 -55
- package/lib/lowcode/view/lc-components/PageContent/index.js +0 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +0 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +0 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +0 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -47
- package/lib/lowcode/view/lc-components/PageModal/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +0 -0
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +0 -0
- package/lib/lowcode/view/lc-components/Table/index.js +144 -144
- package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- 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 +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +4 -4
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/lib/lowcode/view/lc-components/Wrapper.js +0 -0
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +84 -84
- package/lib/lowcode/view/style/page.less +7 -7
- package/lib/services.js +0 -0
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/gridForm.js +0 -0
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +15 -15
- 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 +21 -21
- package/lib/utils/grid.js +0 -0
- package/lib/utils/index.js +0 -0
- package/lowcode.js +1 -1
- package/package.json +173 -173
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
- package/es/lowcode/engine/meta/fielddatadic.props.json +0 -73
- package/es/lowcode/engine/provider/ContextProvider/usePageState.js +0 -21
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +0 -16
- package/lib/lowcode/engine/meta/fielddatadic.props.json +0 -73
|
@@ -19,7 +19,7 @@ var _ahooks = require("ahooks");
|
|
|
19
19
|
var _diff2 = _interopRequireDefault(require("../../tools/diff"));
|
|
20
20
|
var _EventBusProvider = require("../EventBusProvider");
|
|
21
21
|
var _RemoteSourceProvider = _interopRequireWildcard(require("../RemoteSourceProvider"));
|
|
22
|
-
var
|
|
22
|
+
var _usePageVar2 = _interopRequireDefault(require("./usePageVar"));
|
|
23
23
|
var _useTodo3 = _interopRequireDefault(require("../../tools/useTodo"));
|
|
24
24
|
var topics = _interopRequireWildcard(require("../../../constants/event-topics"));
|
|
25
25
|
var _usePageDataStore = require("../../tools/usePageDataStore");
|
|
@@ -52,17 +52,19 @@ var _default = exports.default = function _default(_ref) {
|
|
|
52
52
|
callBehavior = _useTodo2[1],
|
|
53
53
|
loading = _useTodo2[2];
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
55
|
+
/**
|
|
56
|
+
* 页面状态
|
|
57
57
|
*/
|
|
58
|
-
var
|
|
59
|
-
state =
|
|
60
|
-
prevState =
|
|
61
|
-
setState =
|
|
62
|
-
getState =
|
|
58
|
+
var _usePageVar = (0, _usePageVar2.default)(null, null),
|
|
59
|
+
state = _usePageVar.state,
|
|
60
|
+
prevState = _usePageVar.prevState,
|
|
61
|
+
setState = _usePageVar.setState,
|
|
62
|
+
getState = _usePageVar.getState,
|
|
63
|
+
global = _usePageVar.global,
|
|
64
|
+
setGlobal = _usePageVar.setGlobal;
|
|
63
65
|
|
|
64
|
-
/**
|
|
65
|
-
* 组件列表
|
|
66
|
+
/**
|
|
67
|
+
* 组件列表
|
|
66
68
|
*/
|
|
67
69
|
var _componentList = (0, _react.useRef)([]);
|
|
68
70
|
var _privateGetter = (0, _react.useRef)({
|
|
@@ -74,18 +76,18 @@ var _default = exports.default = function _default(_ref) {
|
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
|
|
77
|
-
/**
|
|
78
|
-
* 注册组件
|
|
79
|
-
* id:string 组件id
|
|
80
|
-
* component:ReactNode 组件
|
|
79
|
+
/**
|
|
80
|
+
* 注册组件
|
|
81
|
+
* id:string 组件id
|
|
82
|
+
* component:ReactNode 组件
|
|
81
83
|
*/
|
|
82
84
|
var _register = (0, _ahooks.useMemoizedFn)(function (id, component) {
|
|
83
85
|
_componentList.current.push([id, component]);
|
|
84
86
|
});
|
|
85
87
|
|
|
86
|
-
/**
|
|
87
|
-
* 注销组件
|
|
88
|
-
* id:string 组件id
|
|
88
|
+
/**
|
|
89
|
+
* 注销组件
|
|
90
|
+
* id:string 组件id
|
|
89
91
|
*/
|
|
90
92
|
var _unregister = (0, _ahooks.useMemoizedFn)(function (id) {
|
|
91
93
|
_componentList.current = _componentList.current.filter(function (_ref2) {
|
|
@@ -95,10 +97,10 @@ var _default = exports.default = function _default(_ref) {
|
|
|
95
97
|
});
|
|
96
98
|
});
|
|
97
99
|
|
|
98
|
-
/**
|
|
99
|
-
* 根据组件id获取组件
|
|
100
|
-
* compId:string 组件id
|
|
101
|
-
* return:ReactNode
|
|
100
|
+
/**
|
|
101
|
+
* 根据组件id获取组件
|
|
102
|
+
* compId:string 组件id
|
|
103
|
+
* return:ReactNode
|
|
102
104
|
*/
|
|
103
105
|
var getElementById = (0, _ahooks.useMemoizedFn)(function (compId) {
|
|
104
106
|
var _componentList$curren;
|
|
@@ -109,10 +111,10 @@ var _default = exports.default = function _default(_ref) {
|
|
|
109
111
|
})) === null || _componentList$curren === void 0 ? void 0 : _componentList$curren[1];
|
|
110
112
|
});
|
|
111
113
|
|
|
112
|
-
/**
|
|
113
|
-
* 根据组件id获取父组件
|
|
114
|
-
* compId:string 组件id
|
|
115
|
-
* return:ReactNode
|
|
114
|
+
/**
|
|
115
|
+
* 根据组件id获取父组件
|
|
116
|
+
* compId:string 组件id
|
|
117
|
+
* return:ReactNode
|
|
116
118
|
*/
|
|
117
119
|
var getParentElement = (0, _ahooks.useMemoizedFn)(function (compId) {
|
|
118
120
|
var compMap = new Map(_componentList.current);
|
|
@@ -122,9 +124,9 @@ var _default = exports.default = function _default(_ref) {
|
|
|
122
124
|
return compMap(_parentId);
|
|
123
125
|
});
|
|
124
126
|
|
|
125
|
-
/**
|
|
126
|
-
* 获取url参数
|
|
127
|
-
* return:object
|
|
127
|
+
/**
|
|
128
|
+
* 获取url参数
|
|
129
|
+
* return:object
|
|
128
130
|
*/
|
|
129
131
|
var getUrlParams = (0, _ahooks.useMemoizedFn)(function () {
|
|
130
132
|
return _umi.history.location.query;
|
|
@@ -140,53 +142,53 @@ var _default = exports.default = function _default(_ref) {
|
|
|
140
142
|
var ctx = new Proxy((0, _objectSpread2.default)({
|
|
141
143
|
_register: _register,
|
|
142
144
|
_unregister: _unregister,
|
|
143
|
-
/**
|
|
144
|
-
* @property {boolean} loading - loading状态
|
|
145
|
+
/**
|
|
146
|
+
* @property {boolean} loading - loading状态
|
|
145
147
|
*/
|
|
146
148
|
loading: loading,
|
|
147
|
-
/**
|
|
148
|
-
* @property {object} history - 当前路由信息
|
|
149
|
+
/**
|
|
150
|
+
* @property {object} history - 当前路由信息
|
|
149
151
|
*/
|
|
150
152
|
history: _umi.history,
|
|
151
|
-
/**
|
|
152
|
-
* @method - 执行行为接口
|
|
153
|
-
* @param {object} evns - moduleCode: 模块编码,datasetCode:数据集编码,behaviorKey:行为key
|
|
154
|
-
* @param {object} params - 链接参数
|
|
155
|
-
* @param {object} data - body参数
|
|
153
|
+
/**
|
|
154
|
+
* @method - 执行行为接口
|
|
155
|
+
* @param {object} evns - moduleCode: 模块编码,datasetCode:数据集编码,behaviorKey:行为key
|
|
156
|
+
* @param {object} params - 链接参数
|
|
157
|
+
* @param {object} data - body参数
|
|
156
158
|
*/
|
|
157
159
|
callBehavior: callBehavior,
|
|
158
|
-
/**
|
|
159
|
-
* @property {object} topics - 内置的事件话题
|
|
160
|
+
/**
|
|
161
|
+
* @property {object} topics - 内置的事件话题
|
|
160
162
|
*/
|
|
161
163
|
topics: topics,
|
|
162
|
-
/**
|
|
163
|
-
* @property {string} PRIMARY_KEY - 主键key
|
|
164
|
+
/**
|
|
165
|
+
* @property {string} PRIMARY_KEY - 主键key
|
|
164
166
|
*/
|
|
165
167
|
PRIMARY_KEY: window.appConfig.constraintKeys.PRIMARY,
|
|
166
168
|
PARENT_KEY: window.appConfig.constraintKeys.PARENT,
|
|
167
|
-
/**
|
|
168
|
-
* @method - 根据组件ID获取实例
|
|
169
|
-
* @param {string} compId - 组件ID
|
|
170
|
-
* @return {object} target - 组件实例
|
|
169
|
+
/**
|
|
170
|
+
* @method - 根据组件ID获取实例
|
|
171
|
+
* @param {string} compId - 组件ID
|
|
172
|
+
* @return {object} target - 组件实例
|
|
171
173
|
*/
|
|
172
174
|
getElementById: getElementById,
|
|
173
|
-
/**
|
|
174
|
-
* @method - 根据组件ID获取父组件实例
|
|
175
|
-
* @param {string} compId - 组件ID
|
|
176
|
-
* @return {object} target - 父组件实例
|
|
175
|
+
/**
|
|
176
|
+
* @method - 根据组件ID获取父组件实例
|
|
177
|
+
* @param {string} compId - 组件ID
|
|
178
|
+
* @return {object} target - 父组件实例
|
|
177
179
|
*/
|
|
178
180
|
getParentElement: getParentElement,
|
|
179
|
-
/**
|
|
180
|
-
* @method - 执行行为池
|
|
181
|
-
* @param {object} actionPool - 行为池
|
|
182
|
-
* @param {object} args - 参数
|
|
181
|
+
/**
|
|
182
|
+
* @method - 执行行为池
|
|
183
|
+
* @param {object} actionPool - 行为池
|
|
184
|
+
* @param {object} args - 参数
|
|
183
185
|
*/
|
|
184
186
|
doAction: function doAction(actionPool, args) {
|
|
185
187
|
return todo(this, actionPool, args);
|
|
186
188
|
},
|
|
187
|
-
/**
|
|
188
|
-
* @method - 获取URL参数
|
|
189
|
-
* @return {object} params - url参数
|
|
189
|
+
/**
|
|
190
|
+
* @method - 获取URL参数
|
|
191
|
+
* @return {object} params - url参数
|
|
190
192
|
*/
|
|
191
193
|
getUrlParams: getUrlParams
|
|
192
194
|
}, eventBus), {
|
|
@@ -196,6 +198,8 @@ var _default = exports.default = function _default(_ref) {
|
|
|
196
198
|
return (_privateGetter$curren = _privateGetter.current) === null || _privateGetter$curren === void 0 ? void 0 : _privateGetter$curren[property]();
|
|
197
199
|
} else if (property === 'state') {
|
|
198
200
|
return getState();
|
|
201
|
+
} else if (property === 'global') {
|
|
202
|
+
return global.current;
|
|
199
203
|
}
|
|
200
204
|
return Reflect.get(target, property, receiver);
|
|
201
205
|
},
|
|
@@ -205,6 +209,9 @@ var _default = exports.default = function _default(_ref) {
|
|
|
205
209
|
} else if (property === 'state') {
|
|
206
210
|
setState(receiver);
|
|
207
211
|
return true;
|
|
212
|
+
} else if (property === 'global') {
|
|
213
|
+
setGlobal(receiver);
|
|
214
|
+
return true;
|
|
208
215
|
} else {
|
|
209
216
|
return Reflect.set(target, property, receiver);
|
|
210
217
|
}
|
|
@@ -7,9 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _react = require("react");
|
|
10
11
|
var _ahooks = require("ahooks");
|
|
11
|
-
var
|
|
12
|
-
|
|
12
|
+
var _lodash = require("lodash");
|
|
13
|
+
var usePageVar = function usePageVar(defaultState, defaultGlobal) {
|
|
14
|
+
var globalRef = (0, _react.useRef)(defaultGlobal);
|
|
15
|
+
var _useGetState = (0, _ahooks.useGetState)(defaultState),
|
|
13
16
|
_useGetState2 = (0, _slicedToArray2.default)(_useGetState, 3),
|
|
14
17
|
state = _useGetState2[0],
|
|
15
18
|
setState = _useGetState2[1],
|
|
@@ -18,11 +21,25 @@ var usePageState = function usePageState(defaultValue) {
|
|
|
18
21
|
var setPageState = (0, _ahooks.useMemoizedFn)(function (newState) {
|
|
19
22
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, prevState), newState));
|
|
20
23
|
});
|
|
24
|
+
var setGlobal = (0, _ahooks.useMemoizedFn)(function (newGlobal) {
|
|
25
|
+
if ((0, _lodash.isNil)(globalRef.current)) {
|
|
26
|
+
globalRef.current = {};
|
|
27
|
+
}
|
|
28
|
+
if ((0, _lodash.isString)(newGlobal)) {
|
|
29
|
+
globalRef.current[newGlobal] = newGlobal;
|
|
30
|
+
} else if ((0, _lodash.isObject)(newGlobal)) {
|
|
31
|
+
(0, _lodash.forOwn)(newGlobal, function (value, key) {
|
|
32
|
+
globalRef.current[key] = value;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
21
36
|
return {
|
|
22
37
|
state: state,
|
|
23
38
|
prevState: prevState,
|
|
24
39
|
setState: setPageState,
|
|
25
|
-
getState: getState
|
|
40
|
+
getState: getState,
|
|
41
|
+
global: globalRef,
|
|
42
|
+
setGlobal: setGlobal
|
|
26
43
|
};
|
|
27
44
|
};
|
|
28
|
-
var _default = exports.default =
|
|
45
|
+
var _default = exports.default = usePageVar;
|
|
File without changes
|
|
File without changes
|
|
@@ -20,10 +20,10 @@ var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime
|
|
|
20
20
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
21
21
|
var LZString = _interopRequireWildcard(require("lz-string"));
|
|
22
22
|
var _constants = require("../../constants");
|
|
23
|
-
/**
|
|
24
|
-
* 数据压缩
|
|
25
|
-
* @param {JSON} data
|
|
26
|
-
* @returns 加密后的字符串
|
|
23
|
+
/**
|
|
24
|
+
* 数据压缩
|
|
25
|
+
* @param {JSON} data
|
|
26
|
+
* @returns 加密后的字符串
|
|
27
27
|
*/
|
|
28
28
|
function compress(data) {
|
|
29
29
|
// 将对象转换为JSON字符串
|
|
@@ -32,10 +32,10 @@ function compress(data) {
|
|
|
32
32
|
return LZString.compressToBase64(jsonString);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* 数据解压
|
|
37
|
-
* @param {string} compressedData
|
|
38
|
-
* @returns {json}
|
|
35
|
+
/**
|
|
36
|
+
* 数据解压
|
|
37
|
+
* @param {string} compressedData
|
|
38
|
+
* @returns {json}
|
|
39
39
|
*/
|
|
40
40
|
function decompress(compressedData) {
|
|
41
41
|
// 使用LZ-String解压数据
|
|
@@ -44,13 +44,13 @@ function decompress(compressedData) {
|
|
|
44
44
|
return JSON.parse(jsonString);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
/**
|
|
48
|
-
* 查找指定ID的节点及其父节点。
|
|
49
|
-
*
|
|
50
|
-
* @param {string} id - 要查找的节点ID。
|
|
51
|
-
* @param {Object} current - 当前遍历的JSON对象。
|
|
52
|
-
* @param {Object|null} parent - 当前节点的父节点。
|
|
53
|
-
* @returns {{node: Object|null, parent: Object|null}} 查找结果,包含节点和其父节点。
|
|
47
|
+
/**
|
|
48
|
+
* 查找指定ID的节点及其父节点。
|
|
49
|
+
*
|
|
50
|
+
* @param {string} id - 要查找的节点ID。
|
|
51
|
+
* @param {Object} current - 当前遍历的JSON对象。
|
|
52
|
+
* @param {Object|null} parent - 当前节点的父节点。
|
|
53
|
+
* @returns {{node: Object|null, parent: Object|null}} 查找结果,包含节点和其父节点。
|
|
54
54
|
*/
|
|
55
55
|
function findNodeAndParent(id, current) {
|
|
56
56
|
var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
@@ -84,13 +84,13 @@ function findNodeAndParent(id, current) {
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
/**
|
|
88
|
-
* 对指定的JSON结构进行节点的添加、修改或删除操作。
|
|
89
|
-
*
|
|
90
|
-
* @param {Object} json - 要操作的JSON对象。
|
|
91
|
-
* @param {string|null} path - 要操作的节点路径,使用'/'分隔。
|
|
92
|
-
* @param {string} id - 操作节点的唯一标识符。
|
|
93
|
-
* @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
|
|
87
|
+
/**
|
|
88
|
+
* 对指定的JSON结构进行节点的添加、修改或删除操作。
|
|
89
|
+
*
|
|
90
|
+
* @param {Object} json - 要操作的JSON对象。
|
|
91
|
+
* @param {string|null} path - 要操作的节点路径,使用'/'分隔。
|
|
92
|
+
* @param {string} id - 操作节点的唯一标识符。
|
|
93
|
+
* @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
|
|
94
94
|
*/
|
|
95
95
|
function process(json, path, id, data) {
|
|
96
96
|
if (!json) {
|
|
@@ -156,25 +156,25 @@ function process(json, path, id, data) {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
/**
|
|
160
|
-
* 对指定的JSON结构进行节点的添加操作。
|
|
161
|
-
*
|
|
162
|
-
* @param {Object} json - 要操作的JSON对象。
|
|
163
|
-
* @param {string} parentId - 父节点的唯一标识符。
|
|
164
|
-
* @param {string} id - 操作节点的唯一标识符。
|
|
165
|
-
* @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
|
|
159
|
+
/**
|
|
160
|
+
* 对指定的JSON结构进行节点的添加操作。
|
|
161
|
+
*
|
|
162
|
+
* @param {Object} json - 要操作的JSON对象。
|
|
163
|
+
* @param {string} parentId - 父节点的唯一标识符。
|
|
164
|
+
* @param {string} id - 操作节点的唯一标识符。
|
|
165
|
+
* @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
|
|
166
166
|
*/
|
|
167
167
|
function add(json, parentId, id, data) {
|
|
168
168
|
process(json, getPathById(json, parentId), id, data);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
/**
|
|
172
|
-
* 移动指定的节点到另一个节点的指定位置。
|
|
173
|
-
*
|
|
174
|
-
* @param {Object} json - 要操作的JSON对象。
|
|
175
|
-
* @param {string} sid - 被移动的节点id
|
|
176
|
-
* @param {string} tid - 目标节点id
|
|
177
|
-
* @param {string} action - 'left': 往节点前面插入,'right':往节点后面插,'inside':往节点子节点插
|
|
171
|
+
/**
|
|
172
|
+
* 移动指定的节点到另一个节点的指定位置。
|
|
173
|
+
*
|
|
174
|
+
* @param {Object} json - 要操作的JSON对象。
|
|
175
|
+
* @param {string} sid - 被移动的节点id
|
|
176
|
+
* @param {string} tid - 目标节点id
|
|
177
|
+
* @param {string} action - 'left': 往节点前面插入,'right':往节点后面插,'inside':往节点子节点插
|
|
178
178
|
*/
|
|
179
179
|
function move(json, sid, tid, action) {
|
|
180
180
|
// 验证节点存在性
|
|
@@ -230,34 +230,34 @@ function move(json, sid, tid, action) {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
/**
|
|
234
|
-
* 对指定的JSON结构进行节点的修改操作。
|
|
235
|
-
*
|
|
236
|
-
* @param {Object} json - 要操作的JSON对象。
|
|
237
|
-
* @param {string} id - 操作节点的唯一标识符。
|
|
238
|
-
* @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
|
|
233
|
+
/**
|
|
234
|
+
* 对指定的JSON结构进行节点的修改操作。
|
|
235
|
+
*
|
|
236
|
+
* @param {Object} json - 要操作的JSON对象。
|
|
237
|
+
* @param {string} id - 操作节点的唯一标识符。
|
|
238
|
+
* @param {Object|null} data - 要添加或修改的数据。如果为null,表示删除操作。
|
|
239
239
|
*/
|
|
240
240
|
function modifyById(json, id, data) {
|
|
241
241
|
process(json, null, id, data);
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
/**
|
|
245
|
-
* 删除指定id的节点。
|
|
246
|
-
*
|
|
247
|
-
* @param {Object} json - JSON对象。
|
|
248
|
-
* @param {string} id - 要删除的节点ID。
|
|
244
|
+
/**
|
|
245
|
+
* 删除指定id的节点。
|
|
246
|
+
*
|
|
247
|
+
* @param {Object} json - JSON对象。
|
|
248
|
+
* @param {string} id - 要删除的节点ID。
|
|
249
249
|
*/
|
|
250
250
|
function deleteById(json, id) {
|
|
251
251
|
process(json, null, id);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
/**
|
|
255
|
-
* 根据ID在给定的JSON结构中查找节点的路径。
|
|
256
|
-
*
|
|
257
|
-
* @param {Object} json - 要搜索的JSON对象。
|
|
258
|
-
* @param {string} id - 要查找的节点ID。
|
|
259
|
-
* @param {string} currentPath - 当前递归到的路径,用于构建返回的路径字符串。
|
|
260
|
-
* @returns {string|null} 如果找到节点,返回节点的路径;否则返回null。
|
|
254
|
+
/**
|
|
255
|
+
* 根据ID在给定的JSON结构中查找节点的路径。
|
|
256
|
+
*
|
|
257
|
+
* @param {Object} json - 要搜索的JSON对象。
|
|
258
|
+
* @param {string} id - 要查找的节点ID。
|
|
259
|
+
* @param {string} currentPath - 当前递归到的路径,用于构建返回的路径字符串。
|
|
260
|
+
* @returns {string|null} 如果找到节点,返回节点的路径;否则返回null。
|
|
261
261
|
*/
|
|
262
262
|
function getPathById(json, id) {
|
|
263
263
|
var currentPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
@@ -277,28 +277,28 @@ function getPathById(json, id) {
|
|
|
277
277
|
return null;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
/**
|
|
281
|
-
* 在给定的JSON结构中搜索具有特定id的节点,并返回包含该节点及其所有父节点的props属性的路径数组。
|
|
282
|
-
*
|
|
283
|
-
* @param {Object} data - 待搜索的JSON对象,它代表了一个复杂的树状结构,每个节点都可能有props和children属性。
|
|
284
|
-
* @param {string} targetId - 需要找到的目标节点的id。
|
|
285
|
-
* @returns {Array<Object>} 一个包含目标节点及其所有父节点的props属性的数组。如果未找到目标节点,则返回空数组。
|
|
286
|
-
*
|
|
287
|
-
* @example
|
|
288
|
-
* const data = {
|
|
289
|
-
* props: {
|
|
290
|
-
* id: 'page_root',
|
|
291
|
-
* type: 'Page',
|
|
292
|
-
* name: '页面',
|
|
293
|
-
* hasHeder: true,
|
|
294
|
-
* hasFooter: true,
|
|
295
|
-
* },
|
|
296
|
-
* // ...其他节点
|
|
297
|
-
* };
|
|
298
|
-
*
|
|
299
|
-
* const path = getPathNodesById(data, 'form_jknbjkun');
|
|
300
|
-
* console.log(path);
|
|
301
|
-
* // 输出目标节点及其所有父节点的props属性的数组
|
|
280
|
+
/**
|
|
281
|
+
* 在给定的JSON结构中搜索具有特定id的节点,并返回包含该节点及其所有父节点的props属性的路径数组。
|
|
282
|
+
*
|
|
283
|
+
* @param {Object} data - 待搜索的JSON对象,它代表了一个复杂的树状结构,每个节点都可能有props和children属性。
|
|
284
|
+
* @param {string} targetId - 需要找到的目标节点的id。
|
|
285
|
+
* @returns {Array<Object>} 一个包含目标节点及其所有父节点的props属性的数组。如果未找到目标节点,则返回空数组。
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* const data = {
|
|
289
|
+
* props: {
|
|
290
|
+
* id: 'page_root',
|
|
291
|
+
* type: 'Page',
|
|
292
|
+
* name: '页面',
|
|
293
|
+
* hasHeder: true,
|
|
294
|
+
* hasFooter: true,
|
|
295
|
+
* },
|
|
296
|
+
* // ...其他节点
|
|
297
|
+
* };
|
|
298
|
+
*
|
|
299
|
+
* const path = getPathNodesById(data, 'form_jknbjkun');
|
|
300
|
+
* console.log(path);
|
|
301
|
+
* // 输出目标节点及其所有父节点的props属性的数组
|
|
302
302
|
*/
|
|
303
303
|
function getPathNodesById(data, targetId) {
|
|
304
304
|
// 初始化结果数组
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/lowcode/index.js
CHANGED
|
File without changes
|
|
@@ -95,8 +95,8 @@ var CompItem = function CompItem(_ref2) {
|
|
|
95
95
|
}, /*#__PURE__*/_react.default.createElement("span", null, item.name)));
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
/**
|
|
99
|
-
* 组件清单
|
|
98
|
+
/**
|
|
99
|
+
* 组件清单
|
|
100
100
|
*/
|
|
101
101
|
var Components = function Components(_ref3) {
|
|
102
102
|
var _ref3$dataset = _ref3.dataset,
|
|
File without changes
|
|
File without changes
|
|
@@ -26,7 +26,6 @@ var _constants = require("../constants");
|
|
|
26
26
|
var _design = _interopRequireDefault(require("./style/design.less"));
|
|
27
27
|
var _apiUrl = require("../constants/api-url");
|
|
28
28
|
var _helper = require("../engine/tools/helper");
|
|
29
|
-
var _services = require("@luck-design-biz/base/lib/sys/services");
|
|
30
29
|
var _excluded = ["key", "label"];
|
|
31
30
|
var DesignToolbar = function DesignToolbar(_ref) {
|
|
32
31
|
var locale = _ref.locale,
|
|
@@ -176,19 +175,19 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
176
175
|
});
|
|
177
176
|
var _useDebounceFn = (0, _ahooks.useDebounceFn)( /*#__PURE__*/function () {
|
|
178
177
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(value) {
|
|
179
|
-
var _yield$
|
|
178
|
+
var _yield$fetchSearchUse, code, list, detail;
|
|
180
179
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
181
180
|
while (1) switch (_context2.prev = _context2.next) {
|
|
182
181
|
case 0:
|
|
183
182
|
_context2.next = 2;
|
|
184
|
-
return (0,
|
|
183
|
+
return (0, _apiUrl.fetchSearchUser)({
|
|
185
184
|
sname: value
|
|
186
185
|
});
|
|
187
186
|
case 2:
|
|
188
|
-
_yield$
|
|
189
|
-
code = _yield$
|
|
190
|
-
list = _yield$
|
|
191
|
-
detail = _yield$
|
|
187
|
+
_yield$fetchSearchUse = _context2.sent;
|
|
188
|
+
code = _yield$fetchSearchUse.code;
|
|
189
|
+
list = _yield$fetchSearchUse.list;
|
|
190
|
+
detail = _yield$fetchSearchUse.detail;
|
|
192
191
|
if (code === 1) {
|
|
193
192
|
setUserOptions(list.map(function (id) {
|
|
194
193
|
var item = detail[id];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,32 +11,32 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _ahooks = require("ahooks");
|
|
12
12
|
var _collapse = _interopRequireDefault(require("../style/collapse.less"));
|
|
13
13
|
var _antd = require("luck-design/antd");
|
|
14
|
-
/**
|
|
15
|
-
* Collapse 组件是一个可折叠区域的实现,用于显示或隐藏内容。它支持自定义标签、描述以及默认的折叠状态。
|
|
16
|
-
* 该组件还可以通过 `next` 函数来自定义点击操作,而不是简单地切换折叠状态。
|
|
17
|
-
* 提供的工具提示可以显示额外信息,如字段名和描述,以帮助用户更好地理解折叠内容的作用。
|
|
18
|
-
*
|
|
19
|
-
* @component
|
|
20
|
-
* @example
|
|
21
|
-
* <Collapse
|
|
22
|
-
* field="exampleField"
|
|
23
|
-
* label="示例标签"
|
|
24
|
-
* desc="这是一个用于演示的折叠组件"
|
|
25
|
-
* defaultCollapsed={true}
|
|
26
|
-
* next={() => console.log('Custom next function executed')}
|
|
27
|
-
* >
|
|
28
|
-
* <p>这里是可折叠的内容</p>
|
|
29
|
-
* </Collapse>
|
|
30
|
-
*
|
|
31
|
-
* @param {Object} props - 组件的属性。
|
|
32
|
-
* @param {React.ReactNode} children - 折叠区域展开时显示的内容。
|
|
33
|
-
* @param {string} [props.field] - 与折叠内容相关联的字段名。
|
|
34
|
-
* @param {string} props.label - 折叠区域的标签名称。
|
|
35
|
-
* @param {string} [props.desc] - 关于折叠内容的描述信息。
|
|
36
|
-
* @param {boolean} [props.defaultCollapsed=false] - 折叠区域的默认状态。如果为 true,则默认为折叠状态。
|
|
37
|
-
* @param {Function} [props.next] - 点击操作的自定义函数。如果提供,点击时将执行此函数,而不是切换折叠状态。
|
|
38
|
-
*
|
|
39
|
-
* @returns {ReactElement} 返回一个 React 元素,表示一个具有可折叠功能的容器。
|
|
14
|
+
/**
|
|
15
|
+
* Collapse 组件是一个可折叠区域的实现,用于显示或隐藏内容。它支持自定义标签、描述以及默认的折叠状态。
|
|
16
|
+
* 该组件还可以通过 `next` 函数来自定义点击操作,而不是简单地切换折叠状态。
|
|
17
|
+
* 提供的工具提示可以显示额外信息,如字段名和描述,以帮助用户更好地理解折叠内容的作用。
|
|
18
|
+
*
|
|
19
|
+
* @component
|
|
20
|
+
* @example
|
|
21
|
+
* <Collapse
|
|
22
|
+
* field="exampleField"
|
|
23
|
+
* label="示例标签"
|
|
24
|
+
* desc="这是一个用于演示的折叠组件"
|
|
25
|
+
* defaultCollapsed={true}
|
|
26
|
+
* next={() => console.log('Custom next function executed')}
|
|
27
|
+
* >
|
|
28
|
+
* <p>这里是可折叠的内容</p>
|
|
29
|
+
* </Collapse>
|
|
30
|
+
*
|
|
31
|
+
* @param {Object} props - 组件的属性。
|
|
32
|
+
* @param {React.ReactNode} children - 折叠区域展开时显示的内容。
|
|
33
|
+
* @param {string} [props.field] - 与折叠内容相关联的字段名。
|
|
34
|
+
* @param {string} props.label - 折叠区域的标签名称。
|
|
35
|
+
* @param {string} [props.desc] - 关于折叠内容的描述信息。
|
|
36
|
+
* @param {boolean} [props.defaultCollapsed=false] - 折叠区域的默认状态。如果为 true,则默认为折叠状态。
|
|
37
|
+
* @param {Function} [props.next] - 点击操作的自定义函数。如果提供,点击时将执行此函数,而不是切换折叠状态。
|
|
38
|
+
*
|
|
39
|
+
* @returns {ReactElement} 返回一个 React 元素,表示一个具有可折叠功能的容器。
|
|
40
40
|
*/
|
|
41
41
|
function _default(_ref) {
|
|
42
42
|
var children = _ref.children,
|