@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
|
@@ -81,15 +81,15 @@ var Design = function Design() {
|
|
|
81
81
|
onLangChange: handleLangChange
|
|
82
82
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
83
83
|
className: _design.default['lc-painter-design-workspace']
|
|
84
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_DesignOperator.default, {
|
|
85
|
+
canvas: simulatorRef
|
|
86
|
+
}), /*#__PURE__*/_react.default.createElement(_antd.ConfigProvider, {
|
|
85
87
|
locale: ((_localeInfo$locale = _umi.localeInfo[locale]) === null || _localeInfo$locale === void 0 ? void 0 : _localeInfo$locale.antd) || {}
|
|
86
88
|
}, /*#__PURE__*/_react.default.createElement(_umi.RawIntlProvider, {
|
|
87
89
|
value: intl
|
|
88
90
|
}, /*#__PURE__*/_react.default.createElement(_Page.default, {
|
|
89
91
|
ref: simulatorRef,
|
|
90
92
|
className: _design.default['lc-painter-design-simulator']
|
|
91
|
-
}
|
|
92
|
-
canvas: simulatorRef
|
|
93
|
-
}))))));
|
|
93
|
+
})))));
|
|
94
94
|
};
|
|
95
95
|
var _default = exports.default = Design;
|
|
@@ -26,7 +26,7 @@ var getOperatorStyle = function getOperatorStyle(canvas, cellNode) {
|
|
|
26
26
|
cellNodeTop = _cellNode$getBounding.top;
|
|
27
27
|
return {
|
|
28
28
|
left: "".concat(cellNodeLeft - pageLeft, "px"),
|
|
29
|
-
top: "".concat(
|
|
29
|
+
top: "".concat(cellNodeTop - pageTop, "px"),
|
|
30
30
|
width: "".concat(cellNode.offsetWidth, "px"),
|
|
31
31
|
height: "".concat(cellNode.offsetHeight, "px")
|
|
32
32
|
};
|
|
@@ -289,7 +289,8 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
289
289
|
margin: '0 4px 0 2px'
|
|
290
290
|
},
|
|
291
291
|
onClick: function onClick() {
|
|
292
|
-
|
|
292
|
+
setShowPreview(true);
|
|
293
|
+
context.$publisher(context.topics.COMPONENT_ACTIVE, null);
|
|
293
294
|
}
|
|
294
295
|
}, (0, _utils.formatMessage)({
|
|
295
296
|
id: 'luckda.lowcode.design.toolbar.preview',
|
|
@@ -299,7 +300,8 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
299
300
|
type: "primary",
|
|
300
301
|
style: {
|
|
301
302
|
fontSize: 12,
|
|
302
|
-
padding: '0 7px 0 0'
|
|
303
|
+
padding: '0 7px 0 0',
|
|
304
|
+
marginLeft: 2
|
|
303
305
|
}
|
|
304
306
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
305
307
|
style: {
|
|
@@ -388,8 +390,9 @@ var DesignToolbar = function DesignToolbar(_ref) {
|
|
|
388
390
|
})))),
|
|
389
391
|
placement: "bottom",
|
|
390
392
|
height: "94vh",
|
|
391
|
-
footer: false
|
|
392
|
-
zIndex
|
|
393
|
+
footer: false
|
|
394
|
+
// zIndex={3000}
|
|
395
|
+
,
|
|
393
396
|
headerStyle: {
|
|
394
397
|
padding: '0 48px 0 24px'
|
|
395
398
|
},
|
|
File without changes
|
|
File without changes
|
|
@@ -111,13 +111,14 @@ var Panel = function Panel() {
|
|
|
111
111
|
before(handleChange);
|
|
112
112
|
}
|
|
113
113
|
task(targetId, newValue).then(function () {
|
|
114
|
+
var _id = (0, _lodash.isNil)(activeNode.$target) ? activeNode.node.id : activeNode.$target.id;
|
|
114
115
|
context.$publisher(context.topics.COMPONENT_MODIFY, {
|
|
115
|
-
id:
|
|
116
|
+
id: _id,
|
|
116
117
|
oldValue: oldValue,
|
|
117
118
|
newValue: newValue
|
|
118
119
|
});
|
|
119
120
|
if (repositioning) context.$publisher(context.topics.COMPONENT_REPOSITIONING, {
|
|
120
|
-
id:
|
|
121
|
+
id: _id
|
|
121
122
|
});
|
|
122
123
|
});
|
|
123
124
|
});
|
|
File without changes
|
|
@@ -16,6 +16,7 @@ var _lodash = require("lodash");
|
|
|
16
16
|
var _utils = require("@luck-design-biz/base/utils");
|
|
17
17
|
var _ContextProvider = require("../../engine/provider/ContextProvider");
|
|
18
18
|
var _JSEditor = _interopRequireDefault(require("./code-editor/JSEditor"));
|
|
19
|
+
var _helper = require("../../engine/tools/helper");
|
|
19
20
|
var _actionBindModal = _interopRequireDefault(require("../style/action-bind-modal.less"));
|
|
20
21
|
var _I18N_PREFIX_ = 'luckda.lowcode.painter.actionBindModal';
|
|
21
22
|
var _ACTION_CATEGORY_ = [{
|
|
@@ -72,6 +73,10 @@ var ActionBindModal = function ActionBindModal(_ref) {
|
|
|
72
73
|
searchValue = _useState6[0],
|
|
73
74
|
setSearchValue = _useState6[1];
|
|
74
75
|
var latestActiveKey = (0, _ahooks.useLatest)(activeKey);
|
|
76
|
+
var pageData = (0, _ContextProvider.useGet)();
|
|
77
|
+
var keywords = (0, _ahooks.useCreation)(function () {
|
|
78
|
+
return (0, _helper.extractKeywords)(pageData, ['id', ['dataset', 'code'], 'field']);
|
|
79
|
+
}, []);
|
|
75
80
|
var options = (0, _ahooks.useCreation)(function () {
|
|
76
81
|
if (category === 'page-action') {
|
|
77
82
|
return (0, _lodash.reduce)(module.actions, function (ret, actionName, actionKey) {
|
|
@@ -302,6 +307,7 @@ var ActionBindModal = function ActionBindModal(_ref) {
|
|
|
302
307
|
className: _actionBindModal.default['code-box']
|
|
303
308
|
}, activeKey ? /*#__PURE__*/_react.default.createElement(_JSEditor.default, {
|
|
304
309
|
ref: editorRef,
|
|
310
|
+
keywords: keywords,
|
|
305
311
|
onChange: handleEditorValueChange
|
|
306
312
|
}) : (0, _utils.formatMessage)({
|
|
307
313
|
id: "".concat(_I18N_PREFIX_, ".noActionSelected"),
|
|
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
|
|
@@ -9,6 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
12
13
|
var _interopRequireWildcard2 = _interopRequireDefault(require("@babel/runtime/helpers/interopRequireWildcard"));
|
|
13
14
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
14
15
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
@@ -16,7 +17,7 @@ var _react = _interopRequireWildcard3(require("react"));
|
|
|
16
17
|
var monaco = _interopRequireWildcard3(require("monaco-editor"));
|
|
17
18
|
var _lodash = require("lodash");
|
|
18
19
|
var _BaseEditor = _interopRequireDefault(require("./BaseEditor"));
|
|
19
|
-
var _excluded = ["children"];
|
|
20
|
+
var _excluded = ["children", "keywords"];
|
|
20
21
|
function capitalizeFirstLetter(string) {
|
|
21
22
|
if ((0, _lodash.isNil)(string)) return null;
|
|
22
23
|
if (string.length === 0) {
|
|
@@ -24,18 +25,24 @@ function capitalizeFirstLetter(string) {
|
|
|
24
25
|
}
|
|
25
26
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
26
27
|
}
|
|
27
|
-
var _provideCompletionItems = function provideCompletionItems(monaco, model, position, module) {
|
|
28
|
+
var _provideCompletionItems = function provideCompletionItems(monaco, model, position, module, ctx) {
|
|
28
29
|
var textUntilPosition = model.getValueInRange({
|
|
29
30
|
startLineNumber: 1,
|
|
30
31
|
startColumn: 1,
|
|
31
32
|
endLineNumber: position.lineNumber,
|
|
32
33
|
endColumn: position.column
|
|
33
34
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
var match;
|
|
36
|
+
if (module.triggerWord) {
|
|
37
|
+
// 正则表达式匹配以 triggerWord 开头的任何单词
|
|
38
|
+
var pattern = new RegExp('\\b' + module.triggerWord + '[\\w.]*', 'i');
|
|
39
|
+
match = textUntilPosition.match(pattern);
|
|
40
|
+
} else {
|
|
41
|
+
var _pattern = new RegExp('\\b[a-zA-Z][\\w.]*', 'i');
|
|
42
|
+
match = ["'", '"'].includes(ctx.triggerCharacter) && textUntilPosition.match(_pattern);
|
|
43
|
+
}
|
|
38
44
|
if (match) {
|
|
45
|
+
var _module$completions;
|
|
39
46
|
var word = model.getWordUntilPosition(position);
|
|
40
47
|
var range = {
|
|
41
48
|
startLineNumber: position.lineNumber,
|
|
@@ -43,7 +50,7 @@ var _provideCompletionItems = function provideCompletionItems(monaco, model, pos
|
|
|
43
50
|
startColumn: word.startColumn,
|
|
44
51
|
endColumn: word.endColumn
|
|
45
52
|
};
|
|
46
|
-
return module.completions.map(function (completion) {
|
|
53
|
+
return (_module$completions = module.completions) === null || _module$completions === void 0 ? void 0 : _module$completions.map(function (completion) {
|
|
47
54
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, completion), {}, {
|
|
48
55
|
range: range,
|
|
49
56
|
kind: monaco.languages.CompletionItemKind[capitalizeFirstLetter(completion.kind)]
|
|
@@ -53,7 +60,7 @@ var _provideCompletionItems = function provideCompletionItems(monaco, model, pos
|
|
|
53
60
|
return [];
|
|
54
61
|
};
|
|
55
62
|
var setupAutocomplete = /*#__PURE__*/function () {
|
|
56
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(monaco) {
|
|
63
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(monaco, keywords) {
|
|
57
64
|
var autoCompleteModules;
|
|
58
65
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
59
66
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -65,19 +72,21 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
65
72
|
case 2:
|
|
66
73
|
autoCompleteModules = _context.sent;
|
|
67
74
|
monaco.languages.registerCompletionItemProvider('javascript', {
|
|
68
|
-
provideCompletionItems: function provideCompletionItems(model, position) {
|
|
75
|
+
provideCompletionItems: function provideCompletionItems(model, position, ctx) {
|
|
69
76
|
var allCompletionItems = [];
|
|
70
77
|
|
|
71
78
|
// 从所有模块收集补全项
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
[{
|
|
80
|
+
completions: keywords
|
|
81
|
+
}].concat((0, _toConsumableArray2.default)(autoCompleteModules.default)).forEach(function (module) {
|
|
82
|
+
var items = _provideCompletionItems(monaco, model, position, module, ctx);
|
|
74
83
|
allCompletionItems = allCompletionItems.concat(items);
|
|
75
84
|
});
|
|
76
85
|
return {
|
|
77
86
|
suggestions: allCompletionItems
|
|
78
87
|
};
|
|
79
88
|
},
|
|
80
|
-
triggerCharacters: ['.'] // 当用户输入点号时触发补全
|
|
89
|
+
triggerCharacters: ['.', "'", '"'] // 当用户输入点号时触发补全
|
|
81
90
|
});
|
|
82
91
|
case 4:
|
|
83
92
|
case "end":
|
|
@@ -85,7 +94,7 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
85
94
|
}
|
|
86
95
|
}, _callee);
|
|
87
96
|
}));
|
|
88
|
-
return function setupAutocomplete(_x) {
|
|
97
|
+
return function setupAutocomplete(_x, _x2) {
|
|
89
98
|
return _ref.apply(this, arguments);
|
|
90
99
|
};
|
|
91
100
|
}();
|
|
@@ -113,9 +122,10 @@ var setupAutocomplete = /*#__PURE__*/function () {
|
|
|
113
122
|
*/
|
|
114
123
|
var JSEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
115
124
|
var children = _ref2.children,
|
|
125
|
+
keywords = _ref2.keywords,
|
|
116
126
|
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
117
127
|
(0, _react.useEffect)(function () {
|
|
118
|
-
setupAutocomplete(monaco);
|
|
128
|
+
setupAutocomplete(monaco, keywords);
|
|
119
129
|
}, []);
|
|
120
130
|
return /*#__PURE__*/_react.default.createElement(_BaseEditor.default, (0, _extends2.default)({
|
|
121
131
|
ref: ref
|
|
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
|
|
@@ -324,7 +324,7 @@ var SettingUI = function SettingUI(_ref) {
|
|
|
324
324
|
onChange: function onChange(val) {
|
|
325
325
|
return run('tip', val);
|
|
326
326
|
}
|
|
327
|
-
}))), component === 'form' && /*#__PURE__*/_react.default.createElement(
|
|
327
|
+
}))), component === 'form' && /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
328
328
|
label: (0, _utils.formatMessage)({
|
|
329
329
|
id: "".concat(_I18N_PREFIX_, ".fieldColumn"),
|
|
330
330
|
label: '占列数'
|
|
@@ -342,58 +342,7 @@ var SettingUI = function SettingUI(_ref) {
|
|
|
342
342
|
value: 3
|
|
343
343
|
}, "3"), /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
344
344
|
value: 4
|
|
345
|
-
}, "4"))), /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
346
|
-
label: (0, _utils.formatMessage)({
|
|
347
|
-
id: "".concat(_I18N_PREFIX_, ".fieldRow"),
|
|
348
|
-
label: '占行数'
|
|
349
|
-
})
|
|
350
|
-
}, /*#__PURE__*/_react.default.createElement(StyledRadio, {
|
|
351
|
-
defaultValue: fieldData.row,
|
|
352
|
-
onChange: function onChange(e) {
|
|
353
|
-
return run('row', e.target.value);
|
|
354
|
-
}
|
|
355
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
356
|
-
value: 1
|
|
357
|
-
}, "1"), /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
358
|
-
value: 2
|
|
359
|
-
}, "2"), /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
360
|
-
value: 3
|
|
361
|
-
}, "3"), /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
362
|
-
value: 4
|
|
363
|
-
}, "4"))), /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
364
|
-
label: (0, _utils.formatMessage)({
|
|
365
|
-
id: "".concat(_I18N_PREFIX_, ".fieldNote"),
|
|
366
|
-
label: '字段注释'
|
|
367
|
-
})
|
|
368
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
369
|
-
defaultValue: fieldData.note,
|
|
370
|
-
onChange: function onChange(e) {
|
|
371
|
-
return runDebounce('note', e.target.value);
|
|
372
|
-
},
|
|
373
|
-
size: "small"
|
|
374
|
-
})), /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
375
|
-
label: (0, _utils.formatMessage)({
|
|
376
|
-
id: "".concat(_I18N_PREFIX_, ".fieldTip"),
|
|
377
|
-
label: '长说明'
|
|
378
|
-
})
|
|
379
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
380
|
-
defaultValue: fieldData.tip,
|
|
381
|
-
onChange: function onChange(e) {
|
|
382
|
-
return runDebounce('tip', e.target.value);
|
|
383
|
-
},
|
|
384
|
-
size: "small"
|
|
385
|
-
})), /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
386
|
-
label: (0, _utils.formatMessage)({
|
|
387
|
-
id: "".concat(_I18N_PREFIX_, ".placeholder"),
|
|
388
|
-
label: '默认提示'
|
|
389
|
-
})
|
|
390
|
-
}, /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
391
|
-
defaultValue: fieldData.placeholder,
|
|
392
|
-
onChange: function onChange(e) {
|
|
393
|
-
return runDebounce('placeholder', e.target.value);
|
|
394
|
-
},
|
|
395
|
-
size: "small"
|
|
396
|
-
}))), !isBatch ? /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
345
|
+
}, "4"))), !isBatch ? /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
397
346
|
label: (0, _utils.formatMessage)({
|
|
398
347
|
id: "".concat(_I18N_PREFIX_, ".isEqual"),
|
|
399
348
|
label: '唯一校验'
|
|
@@ -11,8 +11,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _ahooks = require("ahooks");
|
|
14
|
-
var _antd = require("luck-design/antd");
|
|
15
|
-
var _utils = require("@luck-design-biz/base/utils");
|
|
16
14
|
var _lodash = require("lodash");
|
|
17
15
|
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
18
16
|
var _SettingUI = _interopRequireDefault(require("./SettingUI"));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -36,7 +36,8 @@ var _DISPLAY_OPTIONS_ = [{
|
|
|
36
36
|
value: 'text'
|
|
37
37
|
}];
|
|
38
38
|
var ActionsEditor = function ActionsEditor(_ref) {
|
|
39
|
-
var
|
|
39
|
+
var nodeId = _ref.nodeId,
|
|
40
|
+
defaultValue = _ref.defaultValue,
|
|
40
41
|
onChange = _ref.onChange,
|
|
41
42
|
suppressDisplay = _ref.suppressDisplay,
|
|
42
43
|
suppressMax = _ref.suppressMax,
|
|
@@ -225,6 +226,7 @@ var ActionsEditor = function ActionsEditor(_ref) {
|
|
|
225
226
|
}));
|
|
226
227
|
})))), /*#__PURE__*/_react.default.createElement(_ActionBindModal.default, {
|
|
227
228
|
event: action,
|
|
229
|
+
nodeId: nodeId,
|
|
228
230
|
defaultCode: defaultCode,
|
|
229
231
|
onComfirm: function onComfirm(actionPool) {
|
|
230
232
|
return handleValueChange('action', (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(action, ['key'])), {}, {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _antd = require("luck-design/antd");
|
|
11
|
+
var _lodash = require("lodash");
|
|
12
|
+
var _ContextProvider = require("../../engine/provider/ContextProvider");
|
|
13
|
+
var ComponentSelector = function ComponentSelector(_ref) {
|
|
14
|
+
var nodeId = _ref.nodeId,
|
|
15
|
+
defaultValue = _ref.defaultValue,
|
|
16
|
+
_onChange = _ref.onChange,
|
|
17
|
+
filter = _ref.filter;
|
|
18
|
+
var ctx = (0, _ContextProvider.useContext)();
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Select, {
|
|
20
|
+
size: "small",
|
|
21
|
+
allowClear: true,
|
|
22
|
+
defaultValue: defaultValue,
|
|
23
|
+
onChange: function onChange(val) {
|
|
24
|
+
return _onChange(val);
|
|
25
|
+
}
|
|
26
|
+
}, (0, _lodash.reduce)(ctx.componentList, function (ret, _ref2) {
|
|
27
|
+
var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
|
|
28
|
+
compId = _ref3[0],
|
|
29
|
+
comp = _ref3[1];
|
|
30
|
+
if (compId !== nodeId && (!filter || filter.find(function (_ref4) {
|
|
31
|
+
var _ref5 = (0, _slicedToArray2.default)(_ref4, 2),
|
|
32
|
+
key = _ref5[0],
|
|
33
|
+
val = _ref5[1];
|
|
34
|
+
return (0, _lodash.get)(comp, key) === val;
|
|
35
|
+
}))) {
|
|
36
|
+
ret.push( /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
37
|
+
value: compId
|
|
38
|
+
}, comp.meta.name || compId));
|
|
39
|
+
}
|
|
40
|
+
return ret;
|
|
41
|
+
}, []));
|
|
42
|
+
};
|
|
43
|
+
var _default = exports.default = ComponentSelector;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -89,9 +90,11 @@ var DataSetSelector = function DataSetSelector(_ref) {
|
|
|
89
90
|
onChange(_ds, function (exe) {
|
|
90
91
|
var dsFields = res.data.dataSets[value];
|
|
91
92
|
exe(fieldsKey, dsFields.map(function (f) {
|
|
92
|
-
var
|
|
93
|
-
|
|
93
|
+
var restProps = {
|
|
94
|
+
fieldAliasName: f.fieldAliasName
|
|
95
|
+
};
|
|
94
96
|
if (['table', 'tableForm'].includes(component)) {
|
|
97
|
+
var _extra = JSON.parse(f.extra || '{}');
|
|
95
98
|
var alignMapping = {
|
|
96
99
|
0: 'left',
|
|
97
100
|
1: 'center',
|
|
@@ -100,10 +103,10 @@ var DataSetSelector = function DataSetSelector(_ref) {
|
|
|
100
103
|
restProps.align = alignMapping[_extra.scell_alignment];
|
|
101
104
|
restProps.headerAlign = alignMapping[_extra.sheading_alignment];
|
|
102
105
|
}
|
|
103
|
-
return {
|
|
106
|
+
return (0, _objectSpread2.default)({
|
|
104
107
|
uid: f.uid,
|
|
105
108
|
field: f.field
|
|
106
|
-
};
|
|
109
|
+
}, restProps);
|
|
107
110
|
}));
|
|
108
111
|
});
|
|
109
112
|
setCurrentDataset(_ds);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -24,9 +23,8 @@ var _BatchSetting = _interopRequireDefault(require("../components/field-setting/
|
|
|
24
23
|
var _apiUrl = require("../../constants/api-url");
|
|
25
24
|
var _helper = require("../../engine/tools/helper");
|
|
26
25
|
var _fieldsSetting = _interopRequireDefault(require("../style/fields-setting.less"));
|
|
27
|
-
var _excluded = ["fieldAliasName"];
|
|
28
26
|
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.fieldsSetting';
|
|
29
|
-
var _PICK_KEYS_ = ['id', 'uid', 'field', 'width', 'align', 'headerAlign', 'pinned', 'tip', 'col', 'row', 'note', 'placeholder', '
|
|
27
|
+
var _PICK_KEYS_ = ['id', 'uid', 'field', 'width', 'align', 'headerAlign', 'pinned', 'tip', 'col', 'row', 'note', 'placeholder', 'fieldAliasName'];
|
|
30
28
|
var Header = _styledComponents.default.div.withConfig({
|
|
31
29
|
displayName: "Header",
|
|
32
30
|
componentId: "luckda-6530__sc-gcwvp1-0"
|
|
@@ -97,9 +95,11 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
97
95
|
return ret;
|
|
98
96
|
}, []), list.map(function (id) {
|
|
99
97
|
var _fieldData = detail[id];
|
|
100
|
-
var
|
|
101
|
-
|
|
98
|
+
var restProps = {
|
|
99
|
+
fieldAliasName: _fieldData.fieldAliasName
|
|
100
|
+
};
|
|
102
101
|
if (['table', 'tableForm'].includes(component)) {
|
|
102
|
+
var extra = JSON.parse(_fieldData.extra || '{}');
|
|
103
103
|
var alignMapping = {
|
|
104
104
|
0: 'left',
|
|
105
105
|
1: 'center',
|
|
@@ -131,46 +131,6 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
131
131
|
return _fieldData._type === 'divider' ? _fieldData : (0, _lodash.pick)(_fieldData, _PICK_KEYS_);
|
|
132
132
|
}));
|
|
133
133
|
});
|
|
134
|
-
var _useRequest2 = (0, _ahooks.useRequest)(_apiUrl.fetchUpdateFieldAttrs, {
|
|
135
|
-
manual: true
|
|
136
|
-
}),
|
|
137
|
-
runUpdateFieldAttrs = _useRequest2.runAsync;
|
|
138
|
-
var _useDebounceFn = (0, _ahooks.useDebounceFn)(function (field, value) {
|
|
139
|
-
var _getLDMetaAttr = (0, _helper.getLDMetaAttr)(['moduleId', 'dataModelKey']),
|
|
140
|
-
_getLDMetaAttr2 = (0, _slicedToArray2.default)(_getLDMetaAttr, 2),
|
|
141
|
-
moduleId = _getLDMetaAttr2[0],
|
|
142
|
-
dataModelKey = _getLDMetaAttr2[1];
|
|
143
|
-
runUpdateFieldAttrs({
|
|
144
|
-
dataModelKey: dataModelKey,
|
|
145
|
-
datasetBusinessUids: [field.uid],
|
|
146
|
-
fieldAliasName: value,
|
|
147
|
-
moduleDatasetUid: datasetUid,
|
|
148
|
-
moduleUid: moduleId,
|
|
149
|
-
scope: 'FIELD_ALIAS_NAME',
|
|
150
|
-
uid: field.uid
|
|
151
|
-
}).then(function () {
|
|
152
|
-
if (component === 'table') {
|
|
153
|
-
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
154
|
-
var col = gridApi.columnApi.getColumn(field.field);
|
|
155
|
-
col.colDef.headerName = value;
|
|
156
|
-
gridApi.api.refreshHeader();
|
|
157
|
-
} else if (['form', 'tableForm'].includes(component)) {
|
|
158
|
-
handleChange((0, _lodash.reduce)(fields, function (ret, _ref4) {
|
|
159
|
-
var fieldAliasName = _ref4.fieldAliasName,
|
|
160
|
-
_field = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
161
|
-
if (fieldAliasName) {
|
|
162
|
-
ret.push((0, _objectSpread2.default)({
|
|
163
|
-
aliasName: fieldAliasName
|
|
164
|
-
}, _field));
|
|
165
|
-
}
|
|
166
|
-
return ret;
|
|
167
|
-
}, []));
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
}, {
|
|
171
|
-
wait: 500
|
|
172
|
-
}),
|
|
173
|
-
run = _useDebounceFn.run;
|
|
174
134
|
var handleSortChange = (0, _ahooks.useMemoizedFn)(function (sortItems, fromIndex, toIndex) {
|
|
175
135
|
dispatch({
|
|
176
136
|
type: 'sort',
|
|
@@ -192,9 +152,19 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
192
152
|
data: {
|
|
193
153
|
fieldAliasName: value
|
|
194
154
|
}
|
|
155
|
+
},
|
|
156
|
+
callback: function callback(newFields) {
|
|
157
|
+
if (component === 'table') {
|
|
158
|
+
setTimeout(function () {
|
|
159
|
+
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
160
|
+
var col = gridApi.columnApi.getColumn(field.field);
|
|
161
|
+
col.colDef.headerName = value;
|
|
162
|
+
gridApi.api.refreshHeader();
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
handleChange(newFields);
|
|
195
166
|
}
|
|
196
167
|
});
|
|
197
|
-
run(field, value);
|
|
198
168
|
});
|
|
199
169
|
var handleFieldCheckChange = (0, _ahooks.useMemoizedFn)(function (e) {
|
|
200
170
|
var _e$target = e.target,
|
|
@@ -228,7 +198,7 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
228
198
|
uid: groupId,
|
|
229
199
|
id: groupId,
|
|
230
200
|
field: 'divider',
|
|
231
|
-
|
|
201
|
+
fieldName: 'Group',
|
|
232
202
|
_type: 'divider'
|
|
233
203
|
}
|
|
234
204
|
},
|
|
@@ -295,8 +265,8 @@ var FieldsSetting = function FieldsSetting(_ref) {
|
|
|
295
265
|
id: "".concat(_I18N_PREFIX_, ".title"),
|
|
296
266
|
label: '标题'
|
|
297
267
|
}))), /*#__PURE__*/_react.default.createElement(_SortBox.SortBox, {
|
|
298
|
-
datas: fields.map(function (
|
|
299
|
-
var uid =
|
|
268
|
+
datas: fields.map(function (_ref4) {
|
|
269
|
+
var uid = _ref4.uid;
|
|
300
270
|
return uid;
|
|
301
271
|
}),
|
|
302
272
|
onChange: handleSortChange
|
|
@@ -19,7 +19,8 @@ var I18nInput = function I18nInput(_ref) {
|
|
|
19
19
|
return /*#__PURE__*/_react.default.createElement(_antd.Input, {
|
|
20
20
|
defaultValue: defaultValue,
|
|
21
21
|
onChange: function onChange(e) {
|
|
22
|
-
|
|
22
|
+
var _e$target$value;
|
|
23
|
+
return run((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim());
|
|
23
24
|
},
|
|
24
25
|
size: size
|
|
25
26
|
});
|
|
File without changes
|
|
File without changes
|