@luck-design-biz/luckda 0.0.25-11 → 0.0.25-13
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 +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 +0 -0
- package/es/components/LdAutoForm/index.js +26 -4
- 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 +6 -2
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +2 -1
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +6 -2
- 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/LdTree/index.js +27 -5
- package/es/components/LdTree/index.less +0 -0
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +1 -1
- package/es/helper/index.less +0 -0
- 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 -1
- package/es/locales/zh-CN.js +0 -4
- package/es/lowcode/constants/api-url.js +0 -0
- package/es/lowcode/constants/event-topics.js +1 -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 +53 -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 +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/launcher.js +5 -0
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- 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 +102 -102
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.json +1 -1
- 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 +2 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +86 -3
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +84 -1
- package/es/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielddate.props.json +84 -1
- package/es/lowcode/engine/meta/fielddict.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielddict.props.json +84 -1
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +84 -1
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +84 -1
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +85 -2
- package/es/lowcode/engine/meta/fieldradio.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +88 -4
- package/es/lowcode/engine/meta/fieldregion.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +88 -4
- package/es/lowcode/engine/meta/fieldselect.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +86 -3
- package/es/lowcode/engine/meta/fieldstring.props.default.json +2 -4
- package/es/lowcode/engine/meta/fieldstring.props.json +92 -13
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +85 -2
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +88 -5
- package/es/lowcode/engine/meta/fieldupload.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +85 -2
- package/es/lowcode/engine/meta/fielduser.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielduser.props.json +84 -1
- package/es/lowcode/engine/meta/fieldyear.props.default.json +2 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +85 -2
- package/es/lowcode/engine/meta/form.props.default.json +0 -0
- package/es/lowcode/engine/meta/form.props.json +22 -2
- 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 +4 -4
- 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 +6 -6
- 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 +1 -1
- package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/es/lowcode/engine/tools/dataProcess.js +0 -0
- package/es/lowcode/engine/tools/diff.js +0 -0
- package/es/lowcode/engine/tools/helper.js +60 -3
- package/es/lowcode/engine/tools/useCanvasRender.js +0 -0
- package/es/lowcode/engine/tools/usePageDataStore.js +10 -5
- package/es/lowcode/engine/tools/usePromiseState.js +0 -0
- package/es/lowcode/engine/tools/useTodo.js +0 -0
- package/es/lowcode/index.js +1 -4
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +4 -4
- package/es/lowcode/painter/DesignOperator.js +1 -1
- package/es/lowcode/painter/DesignToolbar.js +7 -4
- package/es/lowcode/painter/I18n.js +0 -0
- package/es/lowcode/painter/Outline.js +0 -0
- package/es/lowcode/painter/Panel.js +3 -2
- package/es/lowcode/painter/Ribbon.js +0 -0
- package/es/lowcode/painter/components/ActionBindModal.js +7 -1
- 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 +0 -0
- package/es/lowcode/painter/components/ColorInput.js +0 -0
- 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 +0 -0
- package/es/lowcode/painter/components/NumberInput.js +0 -0
- package/es/lowcode/painter/components/PanelItem.js +0 -0
- package/es/lowcode/painter/components/PopConfirm.js +0 -0
- package/es/lowcode/painter/components/PopForm.js +0 -0
- package/es/lowcode/painter/components/RuleInput.js +0 -1
- package/es/lowcode/painter/components/SortBox.js +0 -0
- package/es/lowcode/painter/components/TreeEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +24 -14
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +0 -0
- 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 +2 -53
- package/es/lowcode/painter/components/field-setting/index.js +0 -2
- 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 +3 -1
- 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 +36 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +7 -4
- package/es/lowcode/painter/panel-section/FieldsSetting.js +21 -51
- package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/es/lowcode/painter/panel-section/Icon.js +0 -0
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -0
- 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 +0 -0
- 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 +3 -2
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -0
- 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 +10 -2
- 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 +0 -0
- package/es/lowcode/painter/style/actions-editor.less +0 -0
- package/es/lowcode/painter/style/border-editor.less +0 -0
- package/es/lowcode/painter/style/border-radius-selector.less +0 -0
- package/es/lowcode/painter/style/border-selector.less +0 -0
- package/es/lowcode/painter/style/button-type.less +0 -0
- package/es/lowcode/painter/style/collapse.less +0 -0
- package/es/lowcode/painter/style/color-input.less +0 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +3 -0
- package/es/lowcode/painter/style/display.less +0 -0
- package/es/lowcode/painter/style/dragdrop.less +0 -0
- package/es/lowcode/painter/style/fields-setting.less +0 -0
- package/es/lowcode/painter/style/font-editor.less +0 -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 +0 -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/list-editor.less +0 -0
- package/es/lowcode/painter/style/number-input.less +0 -0
- package/es/lowcode/painter/style/outline.less +0 -0
- package/es/lowcode/painter/style/page-layout-display.less +0 -0
- package/es/lowcode/painter/style/panel-attrs.less +0 -0
- package/es/lowcode/painter/style/panel-item.less +0 -0
- package/es/lowcode/painter/style/panel.less +0 -0
- package/es/lowcode/painter/style/pop-confirm.less +0 -0
- package/es/lowcode/painter/style/pop-form.less +0 -0
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -0
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/painter/style/split-display.less +0 -0
- package/es/lowcode/painter/style/style-panel.less +0 -0
- package/es/lowcode/painter/style/tabitems.less +0 -0
- package/es/lowcode/painter/style/treedragdrop.less +0 -0
- package/es/lowcode/preview/index.js +0 -0
- package/es/lowcode/view/Canvas.js +20 -6
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +3 -4
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
- 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 +0 -0
- package/es/lowcode/view/lc-components/Box/index.less +0 -0
- package/es/lowcode/view/lc-components/Box/meta.json +1 -1
- 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 +0 -0
- package/es/lowcode/view/lc-components/Button/meta.json +0 -0
- package/es/lowcode/view/lc-components/Button/style.less +0 -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 +0 -0
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +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 +30 -6
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +1 -1
- 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 +3 -0
- package/es/lowcode/view/lc-components/Drawer/index.less +0 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/es/lowcode/view/lc-components/FieldColor/meta.json +86 -3
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldDate/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldDict/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +85 -2
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +88 -4
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +88 -4
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +86 -3
- package/es/lowcode/view/lc-components/FieldString/meta.json +92 -13
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +85 -2
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +88 -5
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +85 -2
- package/es/lowcode/view/lc-components/FieldUser/meta.json +84 -1
- package/es/lowcode/view/lc-components/FieldYear/meta.json +85 -2
- 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 +126 -22
- package/es/lowcode/view/lc-components/Form/index.less +0 -0
- package/es/lowcode/view/lc-components/Form/meta.json +15 -4
- 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 +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +4 -4
- package/es/lowcode/view/lc-components/ImEx/index.less +0 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/meta.json +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -0
- package/es/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +8 -11
- package/es/lowcode/view/lc-components/JSX/index.js +5 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +3 -1
- package/es/lowcode/view/lc-components/Layout/index.less +0 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Link/index.js +3 -0
- package/es/lowcode/view/lc-components/Link/meta.json +0 -0
- package/es/lowcode/view/lc-components/Page/meta.json +6 -6
- package/es/lowcode/view/lc-components/PageContent/index.js +3 -1
- package/es/lowcode/view/lc-components/PageContent/meta.json +0 -0
- package/es/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +0 -0
- package/es/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +0 -0
- 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 +3 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +0 -0
- 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 +6 -3
- package/es/lowcode/view/lc-components/Section/index.less +0 -0
- package/es/lowcode/view/lc-components/Section/meta.json +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +3 -0
- package/es/lowcode/view/lc-components/Split/meta.json +0 -0
- 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 +3 -1
- package/es/lowcode/view/lc-components/Table/index.js +25 -32
- package/es/lowcode/view/lc-components/Table/meta.json +0 -0
- 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 +2 -2
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +3 -0
- package/es/lowcode/view/lc-components/Text/meta.json +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.less +0 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/es/lowcode/view/lc-components/Wrapper.js +1 -0
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- package/es/lowcode/view/style/page.less +0 -0
- package/es/services.js +0 -0
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +0 -0
- package/es/upload/FilesWall/index.less +0 -0
- package/es/upload/Form/gridForm.js +0 -0
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +0 -0
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +0 -0
- package/es/utils/grid.js +2 -2
- 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 +0 -0
- package/lib/components/LdAutoForm/index.js +25 -3
- 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 +6 -2
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +2 -1
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +6 -2
- 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/LdTree/index.js +25 -3
- package/lib/components/LdTree/index.less +0 -0
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +1 -1
- package/lib/helper/index.less +0 -0
- 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 +1 -9
- package/lib/locales/zh-CN.js +0 -4
- package/lib/lowcode/constants/api-url.js +0 -0
- package/lib/lowcode/constants/event-topics.js +2 -1
- 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 +59 -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 +1 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/launcher.js +11 -0
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- 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 +102 -102
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.json +1 -1
- 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 +2 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +86 -3
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +84 -1
- package/lib/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +84 -1
- package/lib/lowcode/engine/meta/fielddict.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +85 -2
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +88 -4
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +88 -4
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +86 -3
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +2 -4
- package/lib/lowcode/engine/meta/fieldstring.props.json +92 -13
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +85 -2
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +88 -5
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +85 -2
- package/lib/lowcode/engine/meta/fielduser.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +84 -1
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +85 -2
- package/lib/lowcode/engine/meta/form.props.default.json +0 -0
- package/lib/lowcode/engine/meta/form.props.json +22 -2
- 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 +4 -4
- 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 +6 -6
- 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 +1 -1
- package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/lib/lowcode/engine/tools/dataProcess.js +0 -0
- package/lib/lowcode/engine/tools/diff.js +0 -0
- package/lib/lowcode/engine/tools/helper.js +61 -2
- package/lib/lowcode/engine/tools/useCanvasRender.js +0 -0
- package/lib/lowcode/engine/tools/usePageDataStore.js +9 -4
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -0
- package/lib/lowcode/engine/tools/useTodo.js +0 -0
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +4 -4
- package/lib/lowcode/painter/DesignOperator.js +1 -1
- package/lib/lowcode/painter/DesignToolbar.js +7 -4
- package/lib/lowcode/painter/I18n.js +0 -0
- package/lib/lowcode/painter/Outline.js +0 -0
- package/lib/lowcode/painter/Panel.js +3 -2
- package/lib/lowcode/painter/Ribbon.js +0 -0
- package/lib/lowcode/painter/components/ActionBindModal.js +6 -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 +0 -0
- package/lib/lowcode/painter/components/ColorInput.js +0 -0
- 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 +0 -0
- package/lib/lowcode/painter/components/NumberInput.js +0 -0
- package/lib/lowcode/painter/components/PanelItem.js +0 -0
- package/lib/lowcode/painter/components/PopConfirm.js +0 -0
- package/lib/lowcode/painter/components/PopForm.js +0 -0
- package/lib/lowcode/painter/components/RuleInput.js +0 -1
- package/lib/lowcode/painter/components/SortBox.js +0 -0
- package/lib/lowcode/painter/components/TreeEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +24 -14
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +0 -0
- 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 +2 -53
- package/lib/lowcode/painter/components/field-setting/index.js +0 -2
- 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 +3 -1
- 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 +43 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +7 -4
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +20 -50
- package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/lib/lowcode/painter/panel-section/Icon.js +0 -0
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -0
- 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 +0 -0
- 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 +3 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -0
- 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 +10 -2
- 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 +0 -0
- package/lib/lowcode/painter/style/actions-editor.less +0 -0
- package/lib/lowcode/painter/style/border-editor.less +0 -0
- package/lib/lowcode/painter/style/border-radius-selector.less +0 -0
- package/lib/lowcode/painter/style/border-selector.less +0 -0
- package/lib/lowcode/painter/style/button-type.less +0 -0
- package/lib/lowcode/painter/style/collapse.less +0 -0
- package/lib/lowcode/painter/style/color-input.less +0 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +3 -0
- package/lib/lowcode/painter/style/display.less +0 -0
- package/lib/lowcode/painter/style/dragdrop.less +0 -0
- package/lib/lowcode/painter/style/fields-setting.less +0 -0
- package/lib/lowcode/painter/style/font-editor.less +0 -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 +0 -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/list-editor.less +0 -0
- package/lib/lowcode/painter/style/number-input.less +0 -0
- package/lib/lowcode/painter/style/outline.less +0 -0
- package/lib/lowcode/painter/style/page-layout-display.less +0 -0
- package/lib/lowcode/painter/style/panel-attrs.less +0 -0
- package/lib/lowcode/painter/style/panel-item.less +0 -0
- package/lib/lowcode/painter/style/panel.less +0 -0
- package/lib/lowcode/painter/style/pop-confirm.less +0 -0
- package/lib/lowcode/painter/style/pop-form.less +0 -0
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -0
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/painter/style/split-display.less +0 -0
- package/lib/lowcode/painter/style/style-panel.less +0 -0
- package/lib/lowcode/painter/style/tabitems.less +0 -0
- package/lib/lowcode/painter/style/treedragdrop.less +0 -0
- package/lib/lowcode/preview/index.js +0 -0
- package/lib/lowcode/view/Canvas.js +20 -5
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +3 -4
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
- 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 +0 -0
- package/lib/lowcode/view/lc-components/Box/index.less +0 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +1 -1
- 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 +0 -0
- package/lib/lowcode/view/lc-components/Button/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Button/style.less +0 -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 +0 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +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 +29 -5
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +1 -1
- 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 +3 -0
- package/lib/lowcode/view/lc-components/Drawer/index.less +0 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +86 -3
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +85 -2
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +88 -4
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +88 -4
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +86 -3
- package/lib/lowcode/view/lc-components/FieldString/meta.json +92 -13
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +85 -2
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +88 -5
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +85 -2
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +84 -1
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +85 -2
- 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 +125 -21
- package/lib/lowcode/view/lc-components/Form/index.less +0 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +15 -4
- 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 +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +4 -4
- package/lib/lowcode/view/lc-components/ImEx/index.less +0 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -0
- package/lib/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +9 -12
- package/lib/lowcode/view/lc-components/JSX/index.js +5 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +3 -1
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Link/index.js +3 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Page/meta.json +6 -6
- package/lib/lowcode/view/lc-components/PageContent/index.js +2 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +0 -0
- package/lib/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +0 -0
- package/lib/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +0 -0
- 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 +3 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +0 -0
- 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 +6 -3
- package/lib/lowcode/view/lc-components/Section/index.less +0 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +3 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -0
- 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 +3 -1
- package/lib/lowcode/view/lc-components/Table/index.js +25 -32
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -0
- 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 +2 -2
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +3 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.less +0 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +1 -0
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- package/lib/lowcode/view/style/page.less +0 -0
- package/lib/services.js +0 -0
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +0 -0
- package/lib/upload/FilesWall/index.less +0 -0
- package/lib/upload/Form/gridForm.js +0 -0
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +0 -0
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +0 -0
- package/lib/utils/grid.js +2 -2
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +174 -175
- package/upload.js +0 -0
- package/utils.js +0 -0
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
"groupName": "表单项",
|
|
8
8
|
"order": 1,
|
|
9
9
|
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "fieldAliasName",
|
|
12
|
+
"name": "字段标题",
|
|
13
|
+
"type": "_I18nInput"
|
|
14
|
+
},
|
|
10
15
|
{
|
|
11
16
|
"key": "allowClear",
|
|
12
17
|
"name": "允许清除",
|
|
@@ -55,14 +60,92 @@
|
|
|
55
60
|
}
|
|
56
61
|
],
|
|
57
62
|
"default": null
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "generalSetting",
|
|
66
|
+
"name": "通用配置",
|
|
67
|
+
"type": "group",
|
|
68
|
+
"props": [
|
|
69
|
+
{
|
|
70
|
+
"key": "col",
|
|
71
|
+
"name": "占列数",
|
|
72
|
+
"type": "radio",
|
|
73
|
+
"repositioning": true,
|
|
74
|
+
"options": [
|
|
75
|
+
{
|
|
76
|
+
"label": "1",
|
|
77
|
+
"value": 1
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"label": "2",
|
|
81
|
+
"value": 2
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"label": "3",
|
|
85
|
+
"value": 3
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"label": "4",
|
|
89
|
+
"value": 4
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"default": 1
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"key": "row",
|
|
96
|
+
"name": "占行数",
|
|
97
|
+
"type": "radio",
|
|
98
|
+
"repositioning": true,
|
|
99
|
+
"options": [
|
|
100
|
+
{
|
|
101
|
+
"label": "1",
|
|
102
|
+
"value": 1
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"label": "2",
|
|
106
|
+
"value": 2
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"label": "3",
|
|
110
|
+
"value": 3
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"label": "4",
|
|
114
|
+
"value": 4
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"default": 1
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"key": "note",
|
|
121
|
+
"name": "字段注释",
|
|
122
|
+
"type": "_I18nInput"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"key": "tip",
|
|
126
|
+
"name": "长说明",
|
|
127
|
+
"type": "_I18nInput"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "placeholder",
|
|
131
|
+
"name": "默认提示",
|
|
132
|
+
"type": "_I18nInput"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
58
135
|
}
|
|
59
136
|
],
|
|
60
137
|
"advance": {
|
|
61
138
|
"events": [
|
|
62
139
|
{
|
|
63
|
-
"key": "
|
|
140
|
+
"key": "onValueChange",
|
|
64
141
|
"name": "数据变化事件",
|
|
65
142
|
"desc": "在数据变化事件时,执行方法",
|
|
143
|
+
"func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "onChange",
|
|
147
|
+
"name": "值变化事件(onChange)",
|
|
148
|
+
"desc": "原生onChange事件,在值发生变化时,执行方法",
|
|
66
149
|
"func": "function onChange(value, extra) {\n\t\n}"
|
|
67
150
|
},
|
|
68
151
|
{
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
"groupName": "表单项",
|
|
8
8
|
"order": 1,
|
|
9
9
|
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "fieldAliasName",
|
|
12
|
+
"name": "字段标题",
|
|
13
|
+
"type": "_I18nInput"
|
|
14
|
+
},
|
|
10
15
|
{
|
|
11
16
|
"key": "allowClear",
|
|
12
17
|
"name": "允许清除",
|
|
@@ -22,14 +27,92 @@
|
|
|
22
27
|
"wrapperProps": {
|
|
23
28
|
"suppressIcon": true
|
|
24
29
|
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"key": "generalSetting",
|
|
33
|
+
"name": "通用配置",
|
|
34
|
+
"type": "group",
|
|
35
|
+
"props": [
|
|
36
|
+
{
|
|
37
|
+
"key": "col",
|
|
38
|
+
"name": "占列数",
|
|
39
|
+
"type": "radio",
|
|
40
|
+
"repositioning": true,
|
|
41
|
+
"options": [
|
|
42
|
+
{
|
|
43
|
+
"label": "1",
|
|
44
|
+
"value": 1
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"label": "2",
|
|
48
|
+
"value": 2
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"label": "3",
|
|
52
|
+
"value": 3
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"label": "4",
|
|
56
|
+
"value": 4
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"default": 1
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"key": "row",
|
|
63
|
+
"name": "占行数",
|
|
64
|
+
"type": "radio",
|
|
65
|
+
"repositioning": true,
|
|
66
|
+
"options": [
|
|
67
|
+
{
|
|
68
|
+
"label": "1",
|
|
69
|
+
"value": 1
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"label": "2",
|
|
73
|
+
"value": 2
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"label": "3",
|
|
77
|
+
"value": 3
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"label": "4",
|
|
81
|
+
"value": 4
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"default": 1
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"key": "note",
|
|
88
|
+
"name": "字段注释",
|
|
89
|
+
"type": "_I18nInput"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"key": "tip",
|
|
93
|
+
"name": "长说明",
|
|
94
|
+
"type": "_I18nInput"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "placeholder",
|
|
98
|
+
"name": "默认提示",
|
|
99
|
+
"type": "_I18nInput"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
25
102
|
}
|
|
26
103
|
],
|
|
27
104
|
"advance": {
|
|
28
105
|
"events": [
|
|
29
106
|
{
|
|
30
|
-
"key": "
|
|
107
|
+
"key": "onValueChange",
|
|
31
108
|
"name": "数据变化事件",
|
|
32
|
-
"desc": "
|
|
109
|
+
"desc": "在数据变化事件时,执行方法",
|
|
110
|
+
"func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"key": "onChange",
|
|
114
|
+
"name": "值变化事件(onChange)",
|
|
115
|
+
"desc": "原生onChange事件,在值发生变化时,执行方法",
|
|
33
116
|
"func": "function onChange(date, dateString) {\n\t\n}"
|
|
34
117
|
}
|
|
35
118
|
]
|
|
File without changes
|
|
@@ -57,6 +57,26 @@
|
|
|
57
57
|
],
|
|
58
58
|
"default": "bottom"
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
"key": "getContainer",
|
|
62
|
+
"name": "挂载节点",
|
|
63
|
+
"desc": "指定功能区挂载的页面节点",
|
|
64
|
+
"type": "_ComponentSelector",
|
|
65
|
+
"filter": [
|
|
66
|
+
[
|
|
67
|
+
"id",
|
|
68
|
+
"page_root"
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
"meta.group",
|
|
72
|
+
"container"
|
|
73
|
+
],
|
|
74
|
+
[
|
|
75
|
+
"meta.group",
|
|
76
|
+
"build-in"
|
|
77
|
+
]
|
|
78
|
+
]
|
|
79
|
+
},
|
|
60
80
|
{
|
|
61
81
|
"key": "renderFormLeft",
|
|
62
82
|
"name": "按钮区域左侧渲染",
|
|
@@ -356,7 +376,7 @@
|
|
|
356
376
|
"name": "格式化数据",
|
|
357
377
|
"desc": "格式化单表提交数据",
|
|
358
378
|
"type": "_JSEditor",
|
|
359
|
-
"defaultCode": "function dataSourceFormat(values, submitData) { \n return submitData; \n}",
|
|
379
|
+
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
|
|
360
380
|
"mustConfirm": true,
|
|
361
381
|
"wrapper": "collapse",
|
|
362
382
|
"wrapperProps": {
|
|
@@ -482,7 +502,7 @@
|
|
|
482
502
|
"name": "格式化数据",
|
|
483
503
|
"desc": "格式化单表提交数据",
|
|
484
504
|
"type": "_JSEditor",
|
|
485
|
-
"defaultCode": "function dataSourceFormat(values, submitData) { \n return submitData; \n}",
|
|
505
|
+
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
|
|
486
506
|
"mustConfirm": true,
|
|
487
507
|
"wrapper": "collapse",
|
|
488
508
|
"wrapperProps": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
"completions": []
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
"name": "
|
|
102
|
-
"triggerWord": "
|
|
101
|
+
"name": "ImEx",
|
|
102
|
+
"triggerWord": "imex",
|
|
103
103
|
"completions": []
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
"name": "
|
|
107
|
-
"triggerWord": "
|
|
106
|
+
"name": "Image",
|
|
107
|
+
"triggerWord": "image",
|
|
108
108
|
"completions": []
|
|
109
109
|
},
|
|
110
110
|
{
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"events": [
|
|
35
35
|
{
|
|
36
36
|
"key": "onPageMount",
|
|
37
|
-
"name": "
|
|
38
|
-
"desc": "
|
|
39
|
-
"func": "function onPageMount()
|
|
37
|
+
"name": "页面首次渲染完成",
|
|
38
|
+
"desc": "在页面首次渲染完成时,执行方法",
|
|
39
|
+
"func": "function onPageMount(){\n\t\n}"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"key": "onPageUnmount",
|
|
43
|
-
"name": "
|
|
44
|
-
"desc": "
|
|
45
|
-
"func": "function onPageUnmount()
|
|
43
|
+
"name": "页面卸载时",
|
|
44
|
+
"desc": "在页面卸载时,执行方法。",
|
|
45
|
+
"func": "function onPageUnmount(){\n\t\n}"
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -173,7 +173,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
173
173
|
value: ctx
|
|
174
174
|
}, /*#__PURE__*/_react.default.createElement(_RemoteSourceProvider.default, {
|
|
175
175
|
code: code,
|
|
176
|
-
|
|
176
|
+
eventBus: eventBus,
|
|
177
177
|
debug: debug
|
|
178
178
|
}, children));
|
|
179
179
|
};
|
|
File without changes
|
|
@@ -13,18 +13,21 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _ahooks = require("ahooks");
|
|
16
|
+
var _launcher = _interopRequireDefault(require("../launcher"));
|
|
16
17
|
var _Builder = require("../../../components/Builder");
|
|
17
18
|
var _action2 = require("../../../helper/action");
|
|
18
19
|
var _usePageDataStore2 = _interopRequireDefault(require("../tools/usePageDataStore"));
|
|
20
|
+
var _ContextProvider = require("../provider/ContextProvider");
|
|
19
21
|
var _dataProcess = require("../tools/dataProcess");
|
|
20
22
|
var _apiUrl = require("../../constants/api-url");
|
|
21
23
|
var _constants = require("../../constants");
|
|
24
|
+
var _eventTopics = require("../../constants/event-topics");
|
|
22
25
|
var _helper = require("../tools/helper");
|
|
23
26
|
var RemoteSourceContext = exports.RemoteSourceContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
24
27
|
var _default = exports.default = function _default(_ref) {
|
|
25
28
|
var children = _ref.children,
|
|
26
29
|
code = _ref.code,
|
|
27
|
-
|
|
30
|
+
eventBus = _ref.eventBus,
|
|
28
31
|
debug = _ref.debug;
|
|
29
32
|
var _usePageDataStore = (0, _usePageDataStore2.default)(function (state) {
|
|
30
33
|
return {
|
|
@@ -36,6 +39,16 @@ var _default = exports.default = function _default(_ref) {
|
|
|
36
39
|
initialize = _usePageDataStore.initialize,
|
|
37
40
|
initializeModule = _usePageDataStore.initializeModule,
|
|
38
41
|
reset = _usePageDataStore.reset;
|
|
42
|
+
var _useTemporalStore = (0, _ContextProvider.useTemporalStore)(function (state) {
|
|
43
|
+
return {
|
|
44
|
+
pause: state.pause,
|
|
45
|
+
resume: state.resume,
|
|
46
|
+
clear: state.clear
|
|
47
|
+
};
|
|
48
|
+
}),
|
|
49
|
+
pause = _useTemporalStore.pause,
|
|
50
|
+
resume = _useTemporalStore.resume,
|
|
51
|
+
clear = _useTemporalStore.clear;
|
|
39
52
|
var _useSetState = (0, _ahooks.useSetState)({}),
|
|
40
53
|
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
41
54
|
remoteSource = _useSetState2[0],
|
|
@@ -46,13 +59,18 @@ var _default = exports.default = function _default(_ref) {
|
|
|
46
59
|
setRuntime = _useCookieState2[1];
|
|
47
60
|
var prevRuntime = (0, _react.useRef)(cookieRuntime);
|
|
48
61
|
(0, _ahooks.useCreation)(function () {
|
|
49
|
-
|
|
62
|
+
!debug && (0, _launcher.default)();
|
|
63
|
+
pause();
|
|
64
|
+
if (eventBus.runtime !== cookieRuntime) {
|
|
50
65
|
prevRuntime.current = cookieRuntime;
|
|
51
|
-
setRuntime(runtime);
|
|
66
|
+
setRuntime(eventBus.runtime);
|
|
52
67
|
}
|
|
53
68
|
}, []);
|
|
54
69
|
(0, _ahooks.useUnmount)(function () {
|
|
55
|
-
!debug
|
|
70
|
+
if (!debug) {
|
|
71
|
+
reset();
|
|
72
|
+
clear();
|
|
73
|
+
}
|
|
56
74
|
setRuntime(prevRuntime.current);
|
|
57
75
|
});
|
|
58
76
|
|
|
@@ -63,7 +81,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
63
81
|
fetchPageDataLoading = _useRequest.loading,
|
|
64
82
|
runFetchPageData = _useRequest.runAsync;
|
|
65
83
|
// 获取模块数据
|
|
66
|
-
var _useRequest2 = (0, _ahooks.useRequest)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.RUNTIME.DESIGN, _apiUrl.fetchDesignModlueData), _constants.RUNTIME.PREVIEW, _apiUrl.fetchPreviewModlueData), _constants.RUNTIME.LIVE, _apiUrl.fetchModlueData)[runtime], {
|
|
84
|
+
var _useRequest2 = (0, _ahooks.useRequest)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.RUNTIME.DESIGN, _apiUrl.fetchDesignModlueData), _constants.RUNTIME.PREVIEW, _apiUrl.fetchPreviewModlueData), _constants.RUNTIME.LIVE, _apiUrl.fetchModlueData)[eventBus.runtime], {
|
|
67
85
|
manual: true,
|
|
68
86
|
onSuccess: function onSuccess(_ref2) {
|
|
69
87
|
var code = _ref2.code,
|
|
@@ -166,7 +184,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
166
184
|
case 2:
|
|
167
185
|
fetchPageDataRes = _context.sent;
|
|
168
186
|
if (!(fetchPageDataRes.code === 1)) {
|
|
169
|
-
_context.next =
|
|
187
|
+
_context.next = 15;
|
|
170
188
|
break;
|
|
171
189
|
}
|
|
172
190
|
data = fetchPageDataRes.data, list = fetchPageDataRes.list, detail = fetchPageDataRes.detail;
|
|
@@ -191,8 +209,12 @@ var _default = exports.default = function _default(_ref) {
|
|
|
191
209
|
runFetchAllSerials({
|
|
192
210
|
uid: data.moduleId
|
|
193
211
|
});
|
|
194
|
-
!debug
|
|
195
|
-
|
|
212
|
+
if (!debug) {
|
|
213
|
+
initialize((0, _dataProcess.decompress)(source));
|
|
214
|
+
resume();
|
|
215
|
+
}
|
|
216
|
+
eventBus.$publisher(_eventTopics.PAGE_LOAD_MOUNT);
|
|
217
|
+
case 15:
|
|
196
218
|
case "end":
|
|
197
219
|
return _context.stop();
|
|
198
220
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -5,15 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.executeCode = executeCode;
|
|
8
|
+
exports.extractKeywords = extractKeywords;
|
|
8
9
|
exports.getCtx = getCtx;
|
|
9
10
|
exports.getFuncBody = getFuncBody;
|
|
10
11
|
exports.getLDMetaAttr = getLDMetaAttr;
|
|
11
12
|
exports.isColor = isColor;
|
|
12
13
|
exports.isPromise = isPromise;
|
|
13
14
|
exports.listReducer = listReducer;
|
|
15
|
+
exports.loadScript = loadScript;
|
|
14
16
|
exports.omitBadProps = omitBadProps;
|
|
15
17
|
exports.parseCSS = parseCSS;
|
|
16
18
|
exports.setLDMetaAttrs = setLDMetaAttrs;
|
|
19
|
+
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
17
20
|
var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct"));
|
|
18
21
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
19
22
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
@@ -135,8 +138,8 @@ function executeCode(context, code, argsName) {
|
|
|
135
138
|
throw new Error('executeCode参数不匹配');
|
|
136
139
|
}
|
|
137
140
|
var ctx = getCtx(context);
|
|
138
|
-
var func = (0, _construct2.default)(Function, (0, _toConsumableArray2.default)(argsName || []).concat(['ctx', getFuncBody(code)]));
|
|
139
|
-
return func.apply(void 0, args.concat([ctx]));
|
|
141
|
+
var func = (0, _construct2.default)(Function, (0, _toConsumableArray2.default)(argsName || []).concat(['ctx', 'window', getFuncBody(code)]));
|
|
142
|
+
return func.apply(void 0, args.concat([ctx, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, window.proxy), window)]));
|
|
140
143
|
}
|
|
141
144
|
function parseCSS(cssString) {
|
|
142
145
|
// 创建一个空对象来存储解析后的样式
|
|
@@ -183,4 +186,60 @@ function getLDMetaAttr(name) {
|
|
|
183
186
|
});
|
|
184
187
|
}
|
|
185
188
|
return params.get(name);
|
|
189
|
+
}
|
|
190
|
+
function extractKeywords(obj, keys) {
|
|
191
|
+
var keywords = [];
|
|
192
|
+
function recurse(currentObj) {
|
|
193
|
+
if ((0, _typeof2.default)(currentObj) !== 'object' || currentObj === null) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
for (var key in currentObj) {
|
|
197
|
+
var _iterator = (0, _createForOfIteratorHelper2.default)(keys),
|
|
198
|
+
_step;
|
|
199
|
+
try {
|
|
200
|
+
tag: for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
201
|
+
var triggerKey = _step.value;
|
|
202
|
+
var flag = (0, _lodash.isString)(triggerKey) ? key === triggerKey : (0, _lodash.has)(currentObj[key], triggerKey);
|
|
203
|
+
if (flag) {
|
|
204
|
+
var keyword = (0, _lodash.isString)(triggerKey) ? currentObj[triggerKey] : (0, _lodash.get)(currentObj[key], triggerKey);
|
|
205
|
+
keywords.push({
|
|
206
|
+
label: keyword,
|
|
207
|
+
kind: 'property',
|
|
208
|
+
insertText: keyword,
|
|
209
|
+
documentation: JSON.stringify(currentObj)
|
|
210
|
+
});
|
|
211
|
+
break tag;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
} catch (err) {
|
|
215
|
+
_iterator.e(err);
|
|
216
|
+
} finally {
|
|
217
|
+
_iterator.f();
|
|
218
|
+
}
|
|
219
|
+
recurse(currentObj[key]);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
recurse(obj);
|
|
223
|
+
return keywords;
|
|
224
|
+
}
|
|
225
|
+
function loadScript(path) {
|
|
226
|
+
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
227
|
+
var script = document.querySelector("script[src=\"".concat(path, "\"]"));
|
|
228
|
+
if (!script) {
|
|
229
|
+
var newScript = document.createElement('script');
|
|
230
|
+
newScript.src = path;
|
|
231
|
+
Object.keys(props).forEach(function (key) {
|
|
232
|
+
newScript[key] = props[key];
|
|
233
|
+
});
|
|
234
|
+
newScript.setAttribute('data-status', 'loading');
|
|
235
|
+
document.body.appendChild(newScript);
|
|
236
|
+
return {
|
|
237
|
+
ref: newScript,
|
|
238
|
+
status: 'loading'
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
return {
|
|
242
|
+
ref: script,
|
|
243
|
+
status: script.getAttribute('data-status') || 'ready'
|
|
244
|
+
};
|
|
186
245
|
}
|
|
File without changes
|
|
@@ -172,7 +172,7 @@ var usePageDataStore = (0, _zustand.create)()((0, _immer.immer)((0, _middleware.
|
|
|
172
172
|
};
|
|
173
173
|
},
|
|
174
174
|
equality: function equality(pastState, newState) {
|
|
175
|
-
return
|
|
175
|
+
return (0, _fastDeepEqual.default)(pastState, newState);
|
|
176
176
|
},
|
|
177
177
|
handleSet: function handleSet(_handleSet2) {
|
|
178
178
|
return (0, _lodash.debounce)(function (state) {
|
|
@@ -244,7 +244,11 @@ var modifyNode = exports.modifyNode = function modifyNode(id, data) {
|
|
|
244
244
|
target = _ref3.target;
|
|
245
245
|
if (!target) return;
|
|
246
246
|
(0, _lodash.forOwn)((0, _lodash.omit)(data, ['id', 'parentId', 'component', 'buildIn']), function (_val, _key) {
|
|
247
|
-
(0, _lodash.
|
|
247
|
+
if ((0, _lodash.isNil)(_val)) {
|
|
248
|
+
(0, _lodash.unset)(target.props, _key, _val);
|
|
249
|
+
} else {
|
|
250
|
+
(0, _lodash.set)(target.props, _key, _val);
|
|
251
|
+
}
|
|
248
252
|
});
|
|
249
253
|
});
|
|
250
254
|
};
|
|
@@ -318,13 +322,14 @@ var getCanUndoAndRedo = exports.getCanUndoAndRedo = function getCanUndoAndRedo()
|
|
|
318
322
|
};
|
|
319
323
|
};
|
|
320
324
|
var useTemporalStore = exports.useTemporalStore = function useTemporalStore(selector) {
|
|
325
|
+
var _temp$pastStates, _temp$futureStates;
|
|
321
326
|
var temp = (0, _zustand.useStore)(usePageDataStore.temporal, selector);
|
|
322
327
|
if (!temp) return {
|
|
323
328
|
canUndo: false,
|
|
324
329
|
canRedo: false
|
|
325
330
|
};
|
|
326
|
-
var canUndo = !!temp.pastStates.length;
|
|
327
|
-
var canRedo = !!temp.futureStates.length;
|
|
331
|
+
var canUndo = !!((_temp$pastStates = temp.pastStates) !== null && _temp$pastStates !== void 0 && _temp$pastStates.length);
|
|
332
|
+
var canRedo = !!((_temp$futureStates = temp.futureStates) !== null && _temp$futureStates !== void 0 && _temp$futureStates.length);
|
|
328
333
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, temp), {}, {
|
|
329
334
|
canUndo: canUndo,
|
|
330
335
|
canRedo: canRedo
|
|
File without changes
|
|
File without changes
|
package/lib/lowcode/index.js
CHANGED
|
@@ -22,10 +22,6 @@ Object.defineProperty(exports, "View", {
|
|
|
22
22
|
return _view.default;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
exports.default = launcher;
|
|
26
25
|
var _painter = _interopRequireDefault(require("./painter"));
|
|
27
26
|
var _view = _interopRequireDefault(require("./view"));
|
|
28
|
-
var _preview = _interopRequireDefault(require("./preview"));
|
|
29
|
-
// export * as dataProcess from './engine/tools/dataProcess';
|
|
30
|
-
|
|
31
|
-
function launcher() {}
|
|
27
|
+
var _preview = _interopRequireDefault(require("./preview"));
|
|
File without changes
|