@luck-design-biz/luckda 0.0.24-2 → 0.0.25-2
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/es/components/Builder/index.js +6 -4
- package/es/components/IconFont/index.js +5 -0
- package/es/components/LDActions/index.js +133 -0
- package/es/components/LDActions/index.less +65 -0
- package/es/components/LdAutoForm/index.js +1 -1
- package/es/components/LdCom/index.js +2 -1
- package/es/components/LdFormList/index.js +15 -10
- package/es/components/LdGrid/index.js +14 -8
- package/es/components/LdGridForm/index.js +5 -4
- package/es/components/LdRuntimeCom/index.js +20 -7
- package/es/components/LdTree/index.js +112 -31
- package/es/components/LdTree/index.less +6 -1
- package/es/helper/ldBuilder.js +28 -12
- package/es/helper/ldComBuild.js +29 -14
- package/es/index.js +1 -0
- package/es/locales/zh-CN.js +230 -0
- package/es/lowcode/constants/api-url.js +464 -262
- package/es/lowcode/constants/event-topics.js +4 -0
- package/es/lowcode/constants/index.js +31 -2
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/meta/box.props.default.json +4 -3
- package/es/lowcode/engine/meta/box.props.json +2 -4
- package/es/lowcode/engine/meta/button.props.default.json +5 -2
- package/es/lowcode/engine/meta/button.props.json +9 -9
- package/es/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/es/lowcode/engine/meta/cardlist.props.json +2 -3
- package/es/lowcode/engine/meta/components-list.json +1 -1
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +1 -2
- package/es/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/es/lowcode/engine/meta/drawer.props.json +1 -2
- package/es/lowcode/engine/meta/form.props.default.json +52 -4
- package/es/lowcode/engine/meta/form.props.json +596 -64
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/es/lowcode/engine/meta/iframe.props.json +1 -1
- package/es/lowcode/engine/meta/image.props.default.json +5 -2
- package/es/lowcode/engine/meta/image.props.json +3 -3
- package/es/lowcode/engine/meta/imex.props.default.json +5 -2
- package/es/lowcode/engine/meta/imex.props.json +2 -2
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +152 -26
- package/es/lowcode/engine/meta/jsx.props.default.json +2 -1
- package/es/lowcode/engine/meta/jsx.props.json +10 -5
- package/es/lowcode/engine/meta/layout.props.default.json +5 -2
- package/es/lowcode/engine/meta/layout.props.json +1 -2
- package/es/lowcode/engine/meta/link.props.default.json +5 -2
- package/es/lowcode/engine/meta/link.props.json +3 -3
- package/es/lowcode/engine/meta/local/local.zh-cn.js +97 -0
- package/es/lowcode/engine/meta/page.props.default.json +12 -0
- package/es/lowcode/engine/meta/page.props.json +49 -0
- package/es/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/es/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/es/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/es/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/es/lowcode/engine/meta/pageheader.props.json +7 -0
- package/es/lowcode/engine/meta/section.props.default.json +7 -6
- package/es/lowcode/engine/meta/section.props.json +52 -49
- package/es/lowcode/engine/meta/split.props.default.json +9 -4
- package/es/lowcode/engine/meta/split.props.json +14 -29
- package/es/lowcode/engine/meta/table.props.default.json +23 -3
- package/es/lowcode/engine/meta/table.props.json +257 -55
- package/es/lowcode/engine/meta/tabs.props.default.json +16 -9
- package/es/lowcode/engine/meta/tabs.props.json +57 -81
- package/es/lowcode/engine/meta/text.props.default.json +5 -2
- package/es/lowcode/engine/meta/text.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +20 -7
- package/es/lowcode/engine/meta/tree.props.json +225 -79
- package/es/lowcode/engine/provider/ContextProvider/index.js +177 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +174 -0
- package/es/lowcode/engine/tools/dataProcess.js +64 -2
- package/es/lowcode/engine/tools/helper.js +97 -18
- package/es/lowcode/engine/tools/useCanvasRender.js +73 -0
- package/es/lowcode/engine/tools/usePromiseState.js +23 -12
- package/es/lowcode/engine/tools/useTodo.js +78 -0
- package/es/lowcode/index.js +1 -0
- package/es/lowcode/painter/Components.js +47 -21
- package/es/lowcode/painter/Design.js +34 -2
- package/es/lowcode/painter/DesignOperator.js +48 -31
- package/es/lowcode/painter/DesignToolbar.js +324 -16
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +31 -26
- package/es/lowcode/painter/Panel.js +99 -142
- package/es/lowcode/painter/Ribbon.js +1 -1
- package/es/lowcode/painter/components/ActionBindModal.js +293 -0
- package/es/lowcode/painter/components/AdvancePanel.js +140 -0
- package/es/lowcode/painter/components/AttrsPanel.js +145 -0
- package/es/lowcode/painter/components/Collapse.js +20 -9
- package/es/lowcode/painter/components/ColorInput.js +5 -3
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +137 -0
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +50 -0
- package/es/lowcode/painter/components/DragDrop/Overlay.js +8 -0
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +67 -0
- package/es/lowcode/painter/components/FieldSelector.js +44 -0
- package/es/lowcode/painter/components/ListEditor.js +26 -11
- package/es/lowcode/painter/components/PanelItem.js +1 -1
- package/es/lowcode/painter/components/PopConfirm.js +10 -3
- package/es/lowcode/painter/components/SortBox.js +11 -4
- package/es/lowcode/painter/components/TreeEditor.js +13 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +14 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +25 -14
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +41 -0
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +154 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +126 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +287 -0
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +290 -0
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +63 -0
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +116 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +438 -0
- package/es/lowcode/painter/components/field-setting/index.js +373 -0
- package/es/lowcode/painter/index.js +3 -28
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +101 -0
- package/es/lowcode/painter/{components/actions-editor → panel-section/ActionsEditor}/index.js +74 -13
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +27 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +45 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +235 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +115 -43
- package/es/lowcode/painter/panel-section/FieldsSetting.js +329 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +20 -0
- package/es/lowcode/painter/panel-section/Icon.js +14 -14
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +111 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +5 -2
- package/es/lowcode/painter/panel-section/ImpExp.js +91 -0
- package/es/lowcode/painter/panel-section/JSEditor.js +49 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +6 -7
- package/es/lowcode/painter/panel-section/SerialsSelector.js +44 -0
- package/es/lowcode/painter/panel-section/SplitDisplay.js +248 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -22
- package/es/lowcode/painter/panel-section/TabItems.js +46 -30
- package/es/lowcode/painter/panel-section/TableTopFilter.js +306 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +66 -6
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +78 -0
- package/es/lowcode/painter/style/action-bind-modal.less +102 -0
- package/es/lowcode/painter/style/collapse.less +6 -0
- package/es/lowcode/painter/style/components.less +5 -4
- package/es/lowcode/painter/style/design.less +7 -4
- package/es/lowcode/painter/style/dragdrop.less +10 -0
- package/es/lowcode/painter/style/fields-setting.less +25 -0
- package/es/lowcode/painter/style/impexp.less +7 -0
- package/es/lowcode/painter/style/list-editor.less +36 -0
- package/es/lowcode/painter/style/panel-attrs.less +43 -0
- package/es/lowcode/painter/style/panel.less +6 -37
- package/es/lowcode/painter/style/pop-confirm.less +9 -2
- package/es/lowcode/painter/style/split-display.less +28 -0
- package/es/lowcode/painter/style/treedragdrop.less +19 -0
- package/es/lowcode/preview/index.js +27 -0
- package/es/lowcode/view/Canvas.js +34 -139
- package/es/lowcode/view/Loading.js +6 -2
- package/es/lowcode/view/Page.js +16 -14
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Box/index.js +11 -2
- package/es/lowcode/view/lc-components/Box/index.less +0 -1
- package/es/lowcode/view/lc-components/Box/meta.json +2 -4
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +8 -10
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +3 -6
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +6 -0
- package/es/lowcode/view/lc-components/Button/index.js +43 -20
- package/es/lowcode/view/lc-components/Button/meta.json +9 -9
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/CardList/index.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +2 -3
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +16 -24
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +1 -2
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +4 -2
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +17 -0
- package/es/lowcode/view/lc-components/Drawer/index.less +3 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +1 -2
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +93 -2
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Form/index.js +290 -13
- package/es/lowcode/view/lc-components/Form/index.less +5 -0
- package/es/lowcode/view/lc-components/Form/meta.json +546 -64
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +1 -1
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +2 -2
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Image/index.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +3 -3
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/JSX/index.js +19 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +8 -5
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +23 -22
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +3 -8
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Layout/index.js +1 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +1 -2
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Link/index.js +1 -0
- package/es/lowcode/view/lc-components/Link/meta.json +3 -3
- package/es/lowcode/view/lc-components/Page/meta.json +49 -0
- package/es/lowcode/view/lc-components/PageContent/index.js +53 -0
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageFooter/index.js +38 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageHeader/index.js +40 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +23 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Section/index.js +115 -24
- package/es/lowcode/view/lc-components/Section/index.less +7 -0
- package/es/lowcode/view/lc-components/Section/meta.json +48 -49
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +57 -2
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Split/index.js +46 -7
- package/es/lowcode/view/lc-components/Split/meta.json +10 -29
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +41 -4
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +96 -0
- package/es/lowcode/view/lc-components/Table/index.js +365 -48
- package/es/lowcode/view/lc-components/Table/meta.json +229 -55
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +70 -2
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +113 -10
- package/es/lowcode/view/lc-components/Tabs/meta.json +53 -81
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +9 -0
- package/es/lowcode/view/lc-components/Text/index.js +1 -0
- package/es/lowcode/view/lc-components/Text/meta.json +3 -3
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +63 -3
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +26 -0
- package/es/lowcode/view/lc-components/Tree/index.js +323 -8
- package/es/lowcode/view/lc-components/Tree/index.less +5 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +224 -80
- package/es/lowcode/view/lc-components/Wrapper.js +44 -27
- package/es/lowcode/view/style/page.less +3 -0
- package/es/services.js +5 -3
- package/es/upload/Form/gridForm.js +7 -3
- package/es/utils/grid.js +2 -2
- package/lib/components/Builder/index.js +4 -1
- package/lib/components/IconFont/index.js +11 -0
- package/lib/components/LDActions/index.js +141 -0
- package/lib/components/LDActions/index.less +65 -0
- package/lib/components/LdAutoForm/index.js +1 -1
- package/lib/components/LdCom/index.js +2 -1
- package/lib/components/LdFormList/index.js +14 -9
- package/lib/components/LdGrid/index.js +13 -7
- package/lib/components/LdGridForm/index.js +4 -3
- package/lib/components/LdRuntimeCom/index.js +21 -8
- package/lib/components/LdTree/index.js +112 -31
- package/lib/components/LdTree/index.less +6 -1
- package/lib/helper/ldBuilder.js +28 -12
- package/lib/helper/ldComBuild.js +27 -12
- package/lib/index.js +8 -0
- package/lib/locales/zh-CN.js +236 -0
- package/lib/lowcode/constants/api-url.js +465 -263
- package/lib/lowcode/constants/event-topics.js +5 -1
- package/lib/lowcode/constants/index.js +32 -3
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/meta/box.props.default.json +4 -3
- package/lib/lowcode/engine/meta/box.props.json +2 -4
- package/lib/lowcode/engine/meta/button.props.default.json +5 -2
- package/lib/lowcode/engine/meta/button.props.json +9 -9
- package/lib/lowcode/engine/meta/cardlist.props.default.json +4 -2
- package/lib/lowcode/engine/meta/cardlist.props.json +2 -3
- package/lib/lowcode/engine/meta/components-list.json +1 -1
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +1 -2
- package/lib/lowcode/engine/meta/drawer.props.default.json +4 -2
- package/lib/lowcode/engine/meta/drawer.props.json +1 -2
- package/lib/lowcode/engine/meta/form.props.default.json +52 -4
- package/lib/lowcode/engine/meta/form.props.json +596 -64
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/lib/lowcode/engine/meta/iframe.props.json +1 -1
- package/lib/lowcode/engine/meta/image.props.default.json +5 -2
- package/lib/lowcode/engine/meta/image.props.json +3 -3
- package/lib/lowcode/engine/meta/imex.props.default.json +5 -2
- package/lib/lowcode/engine/meta/imex.props.json +2 -2
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +152 -26
- package/lib/lowcode/engine/meta/jsx.props.default.json +2 -1
- package/lib/lowcode/engine/meta/jsx.props.json +10 -5
- package/lib/lowcode/engine/meta/layout.props.default.json +5 -2
- package/lib/lowcode/engine/meta/layout.props.json +1 -2
- package/lib/lowcode/engine/meta/link.props.default.json +5 -2
- package/lib/lowcode/engine/meta/link.props.json +3 -3
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +103 -0
- package/lib/lowcode/engine/meta/page.props.default.json +12 -0
- package/lib/lowcode/engine/meta/page.props.json +49 -0
- package/lib/lowcode/engine/meta/pagecontent.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagecontent.props.json +7 -0
- package/lib/lowcode/engine/meta/pagefooter.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pagefooter.props.json +7 -0
- package/lib/lowcode/engine/meta/pageheader.props.default.json +6 -0
- package/lib/lowcode/engine/meta/pageheader.props.json +7 -0
- package/lib/lowcode/engine/meta/section.props.default.json +7 -6
- package/lib/lowcode/engine/meta/section.props.json +52 -49
- package/lib/lowcode/engine/meta/split.props.default.json +9 -4
- package/lib/lowcode/engine/meta/split.props.json +14 -29
- package/lib/lowcode/engine/meta/table.props.default.json +23 -3
- package/lib/lowcode/engine/meta/table.props.json +257 -55
- package/lib/lowcode/engine/meta/tabs.props.default.json +16 -9
- package/lib/lowcode/engine/meta/tabs.props.json +57 -81
- package/lib/lowcode/engine/meta/text.props.default.json +5 -2
- package/lib/lowcode/engine/meta/text.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +20 -7
- package/lib/lowcode/engine/meta/tree.props.json +225 -79
- package/lib/lowcode/engine/provider/ContextProvider/index.js +185 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +182 -0
- package/lib/lowcode/engine/tools/dataProcess.js +64 -1
- package/lib/lowcode/engine/tools/helper.js +101 -17
- package/lib/lowcode/engine/tools/useCanvasRender.js +88 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +22 -12
- package/lib/lowcode/engine/tools/useTodo.js +85 -0
- package/lib/lowcode/index.js +7 -0
- package/lib/lowcode/painter/Components.js +46 -20
- package/lib/lowcode/painter/Design.js +32 -0
- package/lib/lowcode/painter/DesignOperator.js +45 -28
- package/lib/lowcode/painter/DesignToolbar.js +321 -13
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +29 -24
- package/lib/lowcode/painter/Panel.js +96 -139
- package/lib/lowcode/painter/Ribbon.js +1 -1
- package/lib/lowcode/painter/components/ActionBindModal.js +300 -0
- package/lib/lowcode/painter/components/AdvancePanel.js +148 -0
- package/lib/lowcode/painter/components/AttrsPanel.js +153 -0
- package/lib/lowcode/painter/components/Collapse.js +20 -9
- package/lib/lowcode/painter/components/ColorInput.js +5 -3
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +146 -0
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +57 -0
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +15 -0
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +75 -0
- package/lib/lowcode/painter/components/FieldSelector.js +52 -0
- package/lib/lowcode/painter/components/ListEditor.js +25 -10
- package/lib/lowcode/painter/components/PanelItem.js +1 -1
- package/lib/lowcode/painter/components/PopConfirm.js +10 -3
- package/lib/lowcode/painter/components/SortBox.js +12 -5
- package/lib/lowcode/painter/components/TreeEditor.js +20 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +14 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +25 -14
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +48 -0
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +161 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +133 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +295 -0
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +298 -0
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +70 -0
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +123 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +446 -0
- package/lib/lowcode/painter/components/field-setting/index.js +380 -0
- package/lib/lowcode/painter/index.js +3 -30
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
- package/lib/lowcode/painter/{components/actions-editor → panel-section/ActionsEditor}/ActionEditor.js +20 -66
- package/lib/lowcode/painter/{components/actions-editor → panel-section/ActionsEditor}/index.js +71 -10
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +34 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +52 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +242 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +112 -40
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +337 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +27 -0
- package/lib/lowcode/painter/panel-section/Icon.js +16 -14
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +119 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +5 -2
- package/lib/lowcode/painter/panel-section/ImpExp.js +98 -0
- package/lib/lowcode/painter/panel-section/JSEditor.js +57 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +5 -6
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +51 -0
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +256 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +3 -23
- package/lib/lowcode/painter/panel-section/TabItems.js +45 -29
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +314 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +67 -6
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +86 -0
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -0
- package/lib/lowcode/painter/style/collapse.less +6 -0
- package/lib/lowcode/painter/style/components.less +5 -4
- package/lib/lowcode/painter/style/design.less +7 -4
- package/lib/lowcode/painter/style/dragdrop.less +10 -0
- package/lib/lowcode/painter/style/fields-setting.less +25 -0
- package/lib/lowcode/painter/style/impexp.less +7 -0
- package/lib/lowcode/painter/style/list-editor.less +36 -0
- package/lib/lowcode/painter/style/panel-attrs.less +43 -0
- package/lib/lowcode/painter/style/panel.less +6 -37
- package/lib/lowcode/painter/style/pop-confirm.less +9 -2
- package/lib/lowcode/painter/style/split-display.less +28 -0
- package/lib/lowcode/painter/style/treedragdrop.less +19 -0
- package/lib/lowcode/preview/index.js +35 -0
- package/lib/lowcode/view/Canvas.js +32 -145
- package/lib/lowcode/view/Loading.js +6 -2
- package/lib/lowcode/view/Page.js +12 -10
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Box/index.js +11 -2
- package/lib/lowcode/view/lc-components/Box/index.less +0 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +2 -4
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +8 -10
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +3 -6
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +13 -0
- package/lib/lowcode/view/lc-components/Button/index.js +41 -18
- package/lib/lowcode/view/lc-components/Button/meta.json +9 -9
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +1 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +2 -3
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +15 -24
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +1 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +1 -2
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +4 -2
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +17 -0
- package/lib/lowcode/view/lc-components/Drawer/index.less +3 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +1 -2
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +94 -2
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Form/index.js +289 -12
- package/lib/lowcode/view/lc-components/Form/index.less +5 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +546 -64
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +1 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +1 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +1 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Image/index.js +1 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +3 -3
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +19 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +8 -5
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +24 -22
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +3 -8
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +1 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +1 -2
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Link/index.js +1 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Page/meta.json +49 -0
- package/lib/lowcode/view/lc-components/PageContent/index.js +61 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageFooter/index.js +46 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageHeader/index.js +48 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +30 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +31 -2
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Section/index.js +114 -23
- package/lib/lowcode/view/lc-components/Section/index.less +7 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +48 -49
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +58 -2
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Split/index.js +45 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +10 -29
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +43 -5
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +104 -0
- package/lib/lowcode/view/lc-components/Table/index.js +364 -47
- package/lib/lowcode/view/lc-components/Table/meta.json +229 -55
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +71 -2
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +112 -9
- package/lib/lowcode/view/lc-components/Tabs/meta.json +53 -81
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +16 -0
- package/lib/lowcode/view/lc-components/Text/index.js +1 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +64 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +33 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +321 -6
- package/lib/lowcode/view/lc-components/Tree/index.less +5 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +224 -80
- package/lib/lowcode/view/lc-components/Wrapper.js +42 -25
- package/lib/lowcode/view/style/page.less +3 -0
- package/lib/services.js +5 -3
- package/lib/upload/Form/gridForm.js +7 -3
- package/lib/utils/grid.js +2 -2
- package/package.json +12 -7
- package/es/lowcode/engine/provider/ContextProvider.js +0 -169
- package/es/lowcode/painter/components/actions-editor/ActionEditor.js +0 -147
- package/es/lowcode/painter/panel-section/TableActions.js +0 -19
- package/lib/lowcode/engine/provider/ContextProvider.js +0 -177
- package/lib/lowcode/painter/panel-section/TableActions.js +0 -26
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import React, { useReducer, useState } from 'react';
|
|
4
|
+
import { useMemoizedFn, useRequest, useDebounceFn, useCreation, useMap } from 'ahooks';
|
|
5
|
+
import { Ellipsis } from 'luck-design';
|
|
6
|
+
import { Spin, Input, Tooltip, Icon, Checkbox, Drawer } from 'luck-design/antd';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { reduce, unionBy, isEqual, pick } from 'lodash';
|
|
9
|
+
import { formatMessage, suid } from '@luck-design-biz/base/utils';
|
|
10
|
+
import { useContext } from "../../engine/provider/ContextProvider";
|
|
11
|
+
import { SortBox, SortItem } from "../components/SortBox";
|
|
12
|
+
import { ListEditor, ListEditorItem } from "../components/ListEditor";
|
|
13
|
+
import FieldSetting from "../components/field-setting";
|
|
14
|
+
import BatchSetting from "../components/field-setting/BatchSetting";
|
|
15
|
+
import { fetchFieldsByDataset, fetchUpdateFieldAttrs } from "../../constants/api-url";
|
|
16
|
+
import { listReducer } from "../../engine/tools/helper";
|
|
17
|
+
import styles from "../style/fields-setting.less";
|
|
18
|
+
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.fieldsSetting';
|
|
19
|
+
var _PICK_KEYS_ = ['id', 'uid', 'field', 'width', 'align', 'headerAlign', 'pinned', 'tip', 'col', 'row', 'note', 'placeholder'];
|
|
20
|
+
var Header = styled.div.withConfig({
|
|
21
|
+
displayName: "Header",
|
|
22
|
+
componentId: "luckda-6530__sc-gcwvp1-0"
|
|
23
|
+
})(["width:100%;display:flex;align-items:center;font-size:12px;font-weight:bold;"]);
|
|
24
|
+
var FieldKey = styled(Ellipsis).withConfig({
|
|
25
|
+
displayName: "FieldKey",
|
|
26
|
+
componentId: "luckda-6530__sc-gcwvp1-1"
|
|
27
|
+
})(["width:80px;margin-left:4px;"]);
|
|
28
|
+
var FieldsSetting = function FieldsSetting(_ref) {
|
|
29
|
+
var component = _ref.component,
|
|
30
|
+
pageinfo = _ref.pageinfo,
|
|
31
|
+
datasetUid = _ref.datasetUid,
|
|
32
|
+
nodeId = _ref.nodeId,
|
|
33
|
+
defaultValue = _ref.defaultValue,
|
|
34
|
+
onChange = _ref.onChange;
|
|
35
|
+
var ctx = useContext();
|
|
36
|
+
var _useReducer = useReducer(listReducer, []),
|
|
37
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
38
|
+
fields = _useReducer2[0],
|
|
39
|
+
dispatch = _useReducer2[1];
|
|
40
|
+
var _useState = useState(null),
|
|
41
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
42
|
+
fieldId = _useState2[0],
|
|
43
|
+
setFieldId = _useState2[1];
|
|
44
|
+
var _useMap = useMap([]),
|
|
45
|
+
_useMap2 = _slicedToArray(_useMap, 2),
|
|
46
|
+
checkedFields = _useMap2[0],
|
|
47
|
+
_useMap2$ = _useMap2[1],
|
|
48
|
+
set = _useMap2$.set,
|
|
49
|
+
remove = _useMap2$.remove;
|
|
50
|
+
var _useState3 = useState(void 0),
|
|
51
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
52
|
+
drawerType = _useState4[0],
|
|
53
|
+
setDrawerType = _useState4[1];
|
|
54
|
+
var fieldData = useCreation(function () {
|
|
55
|
+
return fields.find(function (_ref2) {
|
|
56
|
+
var uid = _ref2.uid;
|
|
57
|
+
return uid === fieldId;
|
|
58
|
+
});
|
|
59
|
+
}, [fieldId, fields]);
|
|
60
|
+
var _useRequest = useRequest(fetchFieldsByDataset, {
|
|
61
|
+
defaultParams: [{
|
|
62
|
+
datasetUid: datasetUid,
|
|
63
|
+
moduleUid: pageinfo.relationship.moduleId
|
|
64
|
+
}],
|
|
65
|
+
onSuccess: function onSuccess(_ref3) {
|
|
66
|
+
var code = _ref3.code,
|
|
67
|
+
list = _ref3.list,
|
|
68
|
+
detail = _ref3.detail;
|
|
69
|
+
if (code === 1) {
|
|
70
|
+
var _fields = unionBy(reduce(defaultValue, function (ret, _val) {
|
|
71
|
+
if (list.includes(_val.uid) || _val._type === 'divider') {
|
|
72
|
+
ret.push(_val);
|
|
73
|
+
}
|
|
74
|
+
return ret;
|
|
75
|
+
}, []), list.map(function (id) {
|
|
76
|
+
var _fieldData = detail[id];
|
|
77
|
+
var extraAttr = JSON.parse(_fieldData.extraAttr || '{}');
|
|
78
|
+
var alignMapping = {
|
|
79
|
+
0: 'left',
|
|
80
|
+
1: 'center',
|
|
81
|
+
2: 'right'
|
|
82
|
+
};
|
|
83
|
+
return {
|
|
84
|
+
uid: id,
|
|
85
|
+
field: detail[id].field,
|
|
86
|
+
align: alignMapping[extraAttr.scell_alignment],
|
|
87
|
+
headerAlign: alignMapping[extraAttr.sheading_alignment]
|
|
88
|
+
};
|
|
89
|
+
}), 'uid');
|
|
90
|
+
if (!isEqual(_fields, defaultValue)) {
|
|
91
|
+
onChange(_fields);
|
|
92
|
+
}
|
|
93
|
+
dispatch({
|
|
94
|
+
type: 'init',
|
|
95
|
+
payload: _fields.map(function (_field) {
|
|
96
|
+
return _objectSpread(_objectSpread({}, detail[_field.uid]), _field);
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}),
|
|
102
|
+
loading = _useRequest.loading;
|
|
103
|
+
var handleChange = useMemoizedFn(function (newFields) {
|
|
104
|
+
onChange(newFields.map(function (_fieldData) {
|
|
105
|
+
return _fieldData._type === 'divider' ? _fieldData : pick(_fieldData, _PICK_KEYS_);
|
|
106
|
+
}));
|
|
107
|
+
});
|
|
108
|
+
var _useRequest2 = useRequest(fetchUpdateFieldAttrs, {
|
|
109
|
+
manual: true
|
|
110
|
+
}),
|
|
111
|
+
runUpdateFieldAttrs = _useRequest2.runAsync;
|
|
112
|
+
var _useDebounceFn = useDebounceFn(function (field, value) {
|
|
113
|
+
var _pageinfo$relationshi = pageinfo.relationship,
|
|
114
|
+
moduleId = _pageinfo$relationshi.moduleId,
|
|
115
|
+
dataModelKey = _pageinfo$relationshi.dataModelKey;
|
|
116
|
+
runUpdateFieldAttrs({
|
|
117
|
+
dataModelKey: dataModelKey,
|
|
118
|
+
datasetBusinessUids: [field.uid],
|
|
119
|
+
fieldAliasName: value,
|
|
120
|
+
moduleDatasetUid: datasetUid,
|
|
121
|
+
moduleUid: moduleId,
|
|
122
|
+
scope: 'FIELD_ALIAS_NAME',
|
|
123
|
+
uid: field.uid
|
|
124
|
+
}).then(function () {
|
|
125
|
+
if (component === 'table') {
|
|
126
|
+
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
127
|
+
var col = gridApi.columnApi.getColumn(field.field);
|
|
128
|
+
col.colDef.headerName = value;
|
|
129
|
+
gridApi.api.refreshHeader();
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}, {
|
|
133
|
+
wait: 500
|
|
134
|
+
}),
|
|
135
|
+
run = _useDebounceFn.run;
|
|
136
|
+
var handleSortChange = useMemoizedFn(function (sortItems, fromIndex, toIndex) {
|
|
137
|
+
dispatch({
|
|
138
|
+
type: 'sort',
|
|
139
|
+
payload: sortItems,
|
|
140
|
+
callback: function callback(newFields) {
|
|
141
|
+
if (component === 'table') {
|
|
142
|
+
var gridApi = ctx.componentMap.get(nodeId).api.self.ref.current.gridApi;
|
|
143
|
+
gridApi.columnApi.moveColumnByIndex(fromIndex, toIndex);
|
|
144
|
+
}
|
|
145
|
+
handleChange(newFields);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
var handleAliasChange = useMemoizedFn(function (field, value) {
|
|
150
|
+
dispatch({
|
|
151
|
+
type: 'edit',
|
|
152
|
+
payload: {
|
|
153
|
+
id: field.uid,
|
|
154
|
+
data: {
|
|
155
|
+
fieldAliasName: value
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
run(field, value);
|
|
160
|
+
});
|
|
161
|
+
var handleFieldCheckChange = useMemoizedFn(function (e) {
|
|
162
|
+
var _e$target = e.target,
|
|
163
|
+
checked = _e$target.checked,
|
|
164
|
+
data = _e$target.data;
|
|
165
|
+
if (checked) {
|
|
166
|
+
set(data.uid, data);
|
|
167
|
+
} else {
|
|
168
|
+
remove(data.uid, data);
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
var handleBatchSetting = useMemoizedFn(function () {
|
|
172
|
+
setDrawerType('batch');
|
|
173
|
+
});
|
|
174
|
+
var handleAddFormDivider = useMemoizedFn(function (index) {
|
|
175
|
+
var groupId = "group_".concat(suid());
|
|
176
|
+
dispatch({
|
|
177
|
+
type: 'insert',
|
|
178
|
+
payload: {
|
|
179
|
+
index: index,
|
|
180
|
+
data: {
|
|
181
|
+
uid: groupId,
|
|
182
|
+
id: groupId,
|
|
183
|
+
field: 'divider',
|
|
184
|
+
fieldAliasName: 'Group',
|
|
185
|
+
_type: 'divider'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
callback: handleChange
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
var renderItemRight = useMemoizedFn(function (field) {
|
|
192
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
193
|
+
key: field.uid,
|
|
194
|
+
style: {
|
|
195
|
+
display: 'flex',
|
|
196
|
+
alignItems: 'center'
|
|
197
|
+
}
|
|
198
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
199
|
+
value: field.fieldAliasName,
|
|
200
|
+
size: "small",
|
|
201
|
+
style: {
|
|
202
|
+
flex: 1
|
|
203
|
+
},
|
|
204
|
+
onChange: function onChange(e) {
|
|
205
|
+
return handleAliasChange(field, e.target.value);
|
|
206
|
+
}
|
|
207
|
+
}), field._type !== 'divider' && /*#__PURE__*/React.createElement(Tooltip, {
|
|
208
|
+
title: formatMessage({
|
|
209
|
+
id: 'luckda.lowcode.painter.edit',
|
|
210
|
+
label: '编辑'
|
|
211
|
+
})
|
|
212
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
213
|
+
type: "edit",
|
|
214
|
+
style: {
|
|
215
|
+
margin: '0 4px',
|
|
216
|
+
cursor: 'pointer'
|
|
217
|
+
},
|
|
218
|
+
onClick: function onClick() {
|
|
219
|
+
setFieldId(field.uid);
|
|
220
|
+
setDrawerType('single');
|
|
221
|
+
}
|
|
222
|
+
})));
|
|
223
|
+
});
|
|
224
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Spin, {
|
|
225
|
+
spinning: loading
|
|
226
|
+
}, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement("div", {
|
|
227
|
+
style: {
|
|
228
|
+
width: 116,
|
|
229
|
+
paddingLeft: 40
|
|
230
|
+
}
|
|
231
|
+
}, formatMessage({
|
|
232
|
+
id: "".concat(_I18N_PREFIX_, ".field"),
|
|
233
|
+
label: '数据字段'
|
|
234
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
235
|
+
style: {
|
|
236
|
+
flex: 1,
|
|
237
|
+
paddingLeft: 20
|
|
238
|
+
}
|
|
239
|
+
}, formatMessage({
|
|
240
|
+
id: "".concat(_I18N_PREFIX_, ".title"),
|
|
241
|
+
label: '标题'
|
|
242
|
+
}))), /*#__PURE__*/React.createElement(SortBox, {
|
|
243
|
+
datas: fields.map(function (_ref4) {
|
|
244
|
+
var uid = _ref4.uid;
|
|
245
|
+
return uid;
|
|
246
|
+
}),
|
|
247
|
+
onChange: handleSortChange
|
|
248
|
+
}, /*#__PURE__*/React.createElement(ListEditor, {
|
|
249
|
+
style: {
|
|
250
|
+
marginTop: 8
|
|
251
|
+
},
|
|
252
|
+
suppressAdd: checkedFields.size === 0,
|
|
253
|
+
addText: formatMessage({
|
|
254
|
+
id: "".concat(_I18N_PREFIX_, ".batch"),
|
|
255
|
+
label: '批量设置'
|
|
256
|
+
}),
|
|
257
|
+
addIcon: "unordered-list",
|
|
258
|
+
handleAdd: handleBatchSetting,
|
|
259
|
+
addBtnProps: {
|
|
260
|
+
disabled: drawerType === 'batch'
|
|
261
|
+
}
|
|
262
|
+
}, fields.map(function (field, index) {
|
|
263
|
+
return /*#__PURE__*/React.createElement(SortItem, {
|
|
264
|
+
key: field.uid,
|
|
265
|
+
id: field.uid
|
|
266
|
+
}, /*#__PURE__*/React.createElement(ListEditorItem, {
|
|
267
|
+
left: /*#__PURE__*/React.createElement(React.Fragment, null, field._type !== 'divider' ? /*#__PURE__*/React.createElement(Checkbox, {
|
|
268
|
+
disabled: drawerType === 'batch',
|
|
269
|
+
data: field,
|
|
270
|
+
onChange: handleFieldCheckChange
|
|
271
|
+
}) : null, /*#__PURE__*/React.createElement(FieldKey, {
|
|
272
|
+
tooltip: true,
|
|
273
|
+
lines: 1,
|
|
274
|
+
style: field._type === 'divider' ? {
|
|
275
|
+
paddingLeft: 16
|
|
276
|
+
} : null
|
|
277
|
+
}, field.field)),
|
|
278
|
+
right: renderItemRight(field),
|
|
279
|
+
item: field,
|
|
280
|
+
dispatch: dispatch,
|
|
281
|
+
onAddLine: component === 'form' ? function () {
|
|
282
|
+
return handleAddFormDivider(index);
|
|
283
|
+
} : false
|
|
284
|
+
}));
|
|
285
|
+
})))), !!drawerType ? /*#__PURE__*/React.createElement(Drawer, {
|
|
286
|
+
visible: true,
|
|
287
|
+
width: 280,
|
|
288
|
+
mask: false,
|
|
289
|
+
onClose: function onClose() {
|
|
290
|
+
return setDrawerType(void 0);
|
|
291
|
+
},
|
|
292
|
+
title: drawerType === 'single' ? fieldData.fieldAliasName : formatMessage({
|
|
293
|
+
id: "".concat(_I18N_PREFIX_, ".batch"),
|
|
294
|
+
label: '批量设置'
|
|
295
|
+
}),
|
|
296
|
+
getContainer: function getContainer() {
|
|
297
|
+
return document.getElementById('lc-design-workspace');
|
|
298
|
+
},
|
|
299
|
+
destroyOnClose: true,
|
|
300
|
+
className: styles['lc-painter-panel-field-setting-drawer'],
|
|
301
|
+
style: {
|
|
302
|
+
position: 'absolute',
|
|
303
|
+
transform: 'none',
|
|
304
|
+
right: 320,
|
|
305
|
+
zIndex: 1001
|
|
306
|
+
}
|
|
307
|
+
}, drawerType === 'single' ? /*#__PURE__*/React.createElement(FieldSetting, {
|
|
308
|
+
key: fieldId,
|
|
309
|
+
dispatch: dispatch,
|
|
310
|
+
nodeId: nodeId,
|
|
311
|
+
fieldData: fieldData,
|
|
312
|
+
dataModelKey: pageinfo.relationship.dataModelKey,
|
|
313
|
+
moduleId: pageinfo.relationship.moduleId,
|
|
314
|
+
datasetId: datasetUid,
|
|
315
|
+
component: component,
|
|
316
|
+
onAliasChange: handleAliasChange,
|
|
317
|
+
onChange: handleChange
|
|
318
|
+
}) : null, drawerType === 'batch' ? /*#__PURE__*/React.createElement(BatchSetting, {
|
|
319
|
+
dispatch: dispatch,
|
|
320
|
+
nodeId: nodeId,
|
|
321
|
+
fieldsData: checkedFields,
|
|
322
|
+
dataModelKey: pageinfo.relationship.dataModelKey,
|
|
323
|
+
moduleId: pageinfo.relationship.moduleId,
|
|
324
|
+
datasetId: datasetUid,
|
|
325
|
+
component: component,
|
|
326
|
+
onChange: handleChange
|
|
327
|
+
}) : null) : null);
|
|
328
|
+
};
|
|
329
|
+
export default FieldsSetting;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useDebounceFn } from 'ahooks';
|
|
3
|
+
import { Input } from 'luck-design/antd';
|
|
4
|
+
var I18nInput = function I18nInput(_ref) {
|
|
5
|
+
var defaultValue = _ref.defaultValue,
|
|
6
|
+
onChange = _ref.onChange,
|
|
7
|
+
size = _ref.size;
|
|
8
|
+
var _useDebounceFn = useDebounceFn(onChange, {
|
|
9
|
+
wait: 400
|
|
10
|
+
}),
|
|
11
|
+
run = _useDebounceFn.run;
|
|
12
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
13
|
+
defaultValue: defaultValue,
|
|
14
|
+
onChange: function onChange(e) {
|
|
15
|
+
return run(e.target.value);
|
|
16
|
+
},
|
|
17
|
+
size: size
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export default I18nInput;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
3
|
import styles from "../style/icon.less";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import IconFont from "../../../components/IconFont";
|
|
6
5
|
/**
|
|
7
6
|
* 一个简单的图标选择器组件,展示了一个图标并允许用户点击选择。
|
|
8
7
|
* 该组件使用了`Icon.createFromIconfontCN`来创建一个可以从Iconfont.cn加载图标的`IconFont`组件。
|
|
@@ -14,7 +13,7 @@ import { ICONLIST_JS } from "../../constants/api-url";
|
|
|
14
13
|
* <IconSelector
|
|
15
14
|
* field="iconField"
|
|
16
15
|
* onSelect={({ field }) => console.log(`Selected icon field: ${field}`)}
|
|
17
|
-
*
|
|
16
|
+
* defaultValue="icon-example"
|
|
18
17
|
* />
|
|
19
18
|
* ```
|
|
20
19
|
*
|
|
@@ -22,26 +21,27 @@ import { ICONLIST_JS } from "../../constants/api-url";
|
|
|
22
21
|
* @param {string} props.field 用于识别选择的图标字段的标识符。
|
|
23
22
|
* @param {Function} props.onSelect 当图标被点击时触发的回调函数。
|
|
24
23
|
* 接收一个对象参数,该对象包含`field`字段。
|
|
25
|
-
* @param {string} [props.
|
|
24
|
+
* @param {string} [props.defaultValue='iconyingyongguanli'] 初始化时图标的类型,
|
|
26
25
|
* 默认为'iconyingyongguanli'。
|
|
27
26
|
*
|
|
28
27
|
* @returns {React.Element} 渲染的React元素。
|
|
29
28
|
*/
|
|
30
29
|
export default function (_ref) {
|
|
31
|
-
var
|
|
32
|
-
onSelect = _ref.onSelect,
|
|
33
|
-
value = _ref.value,
|
|
30
|
+
var defaultValue = _ref.defaultValue,
|
|
34
31
|
next = _ref.next;
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
var _useState = useState(defaultValue),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
val = _useState2[0],
|
|
35
|
+
setVal = _useState2[1];
|
|
38
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
39
37
|
className: styles['lc-painter-panel-section-icon'],
|
|
40
38
|
onClick: function onClick() {
|
|
41
|
-
return next(
|
|
39
|
+
return next({
|
|
40
|
+
onSelect: setVal
|
|
41
|
+
});
|
|
42
42
|
}
|
|
43
43
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
44
|
-
type:
|
|
44
|
+
type: val !== null && val !== void 0 ? val : 'iconyingyongguanli'
|
|
45
45
|
}), /*#__PURE__*/React.createElement("span", {
|
|
46
46
|
className: styles['selecor']
|
|
47
47
|
}, "\u8BF7\u9009\u62E9 >"));
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { cloneDeep } from 'lodash';
|
|
5
|
+
import { useMemoizedFn } from 'ahooks';
|
|
6
|
+
import { Tooltip, Icon } from 'luck-design/antd';
|
|
7
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
8
|
+
import { ListEditor, ListEditorItem } from "../components/ListEditor";
|
|
9
|
+
import PopConfirm from "../components/PopConfirm";
|
|
10
|
+
import IconChoice from "./Icon";
|
|
11
|
+
import IconSelector from "./IconSelector";
|
|
12
|
+
import JSEditor from "./JSEditor";
|
|
13
|
+
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.iconConditionSelector';
|
|
14
|
+
var IconConditionSelector = function IconConditionSelector(_ref) {
|
|
15
|
+
var defaultValue = _ref.defaultValue,
|
|
16
|
+
onChange = _ref.onChange,
|
|
17
|
+
defaultCode = _ref.defaultCode;
|
|
18
|
+
var _useState = useState(cloneDeep(defaultValue)),
|
|
19
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
20
|
+
list = _useState2[0],
|
|
21
|
+
setList = _useState2[1];
|
|
22
|
+
var handleChange = useMemoizedFn(function (type, index, value) {
|
|
23
|
+
var _list = cloneDeep(list);
|
|
24
|
+
switch (type) {
|
|
25
|
+
case 'icon':
|
|
26
|
+
_list[index] = _objectSpread(_objectSpread({}, _list[index]), {}, {
|
|
27
|
+
icon: "icon".concat(value)
|
|
28
|
+
});
|
|
29
|
+
break;
|
|
30
|
+
case 'code':
|
|
31
|
+
_list[index] = _objectSpread(_objectSpread({}, _list[index]), {}, {
|
|
32
|
+
condition: value
|
|
33
|
+
});
|
|
34
|
+
break;
|
|
35
|
+
case 'delete':
|
|
36
|
+
_list.splice(index, 1);
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
;
|
|
40
|
+
}
|
|
41
|
+
setList(_list);
|
|
42
|
+
onChange(_list);
|
|
43
|
+
});
|
|
44
|
+
var renderItemRight = useMemoizedFn(function (item, index) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
46
|
+
title: formatMessage({
|
|
47
|
+
id: 'luckda.lowcode.painter.bindCondition',
|
|
48
|
+
label: '绑定条件'
|
|
49
|
+
})
|
|
50
|
+
}, /*#__PURE__*/React.createElement(JSEditor, {
|
|
51
|
+
mustConfirm: true,
|
|
52
|
+
defaultCode: defaultCode,
|
|
53
|
+
onChange: function onChange(value) {
|
|
54
|
+
return handleChange('code', index, value);
|
|
55
|
+
}
|
|
56
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
57
|
+
type: "paper-clip",
|
|
58
|
+
style: {
|
|
59
|
+
marginRight: '8px',
|
|
60
|
+
cursor: 'pointer'
|
|
61
|
+
}
|
|
62
|
+
}))), /*#__PURE__*/React.createElement(Tooltip, {
|
|
63
|
+
title: formatMessage({
|
|
64
|
+
id: 'luckda.lowcode.painter.delete',
|
|
65
|
+
label: '删除'
|
|
66
|
+
})
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
68
|
+
type: "delete",
|
|
69
|
+
style: {
|
|
70
|
+
marginRight: '8px',
|
|
71
|
+
cursor: 'pointer'
|
|
72
|
+
},
|
|
73
|
+
onClick: function onClick() {
|
|
74
|
+
return handleChange('delete', index);
|
|
75
|
+
}
|
|
76
|
+
})));
|
|
77
|
+
});
|
|
78
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
79
|
+
style: {
|
|
80
|
+
width: '100%',
|
|
81
|
+
padding: '0 16px'
|
|
82
|
+
}
|
|
83
|
+
}, /*#__PURE__*/React.createElement(ListEditor, {
|
|
84
|
+
addText: formatMessage({
|
|
85
|
+
id: "".concat(_I18N_PREFIX_, ".add"),
|
|
86
|
+
label: '添加条件'
|
|
87
|
+
}),
|
|
88
|
+
handleAdd: function handleAdd() {
|
|
89
|
+
var _list = list.concat([{}]);
|
|
90
|
+
setList(_list);
|
|
91
|
+
onChange(_list);
|
|
92
|
+
}
|
|
93
|
+
}, list.map(function (item, index) {
|
|
94
|
+
return /*#__PURE__*/React.createElement(ListEditorItem, {
|
|
95
|
+
sortable: false,
|
|
96
|
+
left: /*#__PURE__*/React.createElement(PopConfirm, {
|
|
97
|
+
placement: "left",
|
|
98
|
+
title: /*#__PURE__*/React.createElement(IconSelector, {
|
|
99
|
+
value: item.icon,
|
|
100
|
+
onChange: function onChange(value) {
|
|
101
|
+
return handleChange('icon', index, value['font_class']);
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
}, /*#__PURE__*/React.createElement(IconChoice, {
|
|
105
|
+
value: item.icon
|
|
106
|
+
})),
|
|
107
|
+
right: renderItemRight(item, index)
|
|
108
|
+
});
|
|
109
|
+
})));
|
|
110
|
+
};
|
|
111
|
+
export default IconConditionSelector;
|
|
@@ -28,7 +28,8 @@ var Search = Input.Search;
|
|
|
28
28
|
* @param {Function} props.onChange 当图标被选中时触发的回调函数,接受选中图标的信息作为参数
|
|
29
29
|
*/
|
|
30
30
|
export default function (_ref) {
|
|
31
|
-
var onChange = _ref.onChange
|
|
31
|
+
var onChange = _ref.onChange,
|
|
32
|
+
onSelect = _ref.onSelect;
|
|
32
33
|
var _useState = useState(null),
|
|
33
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34
35
|
iconData = _useState2[0],
|
|
@@ -102,7 +103,9 @@ export default function (_ref) {
|
|
|
102
103
|
return [];
|
|
103
104
|
}, [iconData, searchTerm]);
|
|
104
105
|
var handleClick = useMemoizedFn(function (icon) {
|
|
105
|
-
|
|
106
|
+
var _iconfont = "".concat(iconData.css_prefix_text).concat(icon.font_class);
|
|
107
|
+
onSelect(_iconfont);
|
|
108
|
+
onChange(_iconfont);
|
|
106
109
|
});
|
|
107
110
|
return /*#__PURE__*/React.createElement("div", {
|
|
108
111
|
className: styles['lc-painter-panel-section-iconselector']
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useMemoizedFn, useSetState, useUpdateEffect } from 'ahooks';
|
|
4
|
+
import { Checkbox, Row, Col, Input } from 'luck-design/antd';
|
|
5
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
6
|
+
import { isString } from 'lodash';
|
|
7
|
+
import styles from "../style/impexp.less";
|
|
8
|
+
var _I18N_PREFIX_ = 'luckda.lowcode.painter.panel-section.impexp';
|
|
9
|
+
var ImpExp = function ImpExp(_ref) {
|
|
10
|
+
var defaultValue = _ref.defaultValue,
|
|
11
|
+
onChange = _ref.onChange;
|
|
12
|
+
var _useSetState = useSetState(defaultValue || {}),
|
|
13
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
14
|
+
state = _useSetState2[0],
|
|
15
|
+
setState = _useSetState2[1];
|
|
16
|
+
useUpdateEffect(function () {
|
|
17
|
+
onChange(state);
|
|
18
|
+
}, [state]);
|
|
19
|
+
var handleCheckboxChange = useMemoizedFn(function (e) {
|
|
20
|
+
if (e.target.value === 'import') {
|
|
21
|
+
setState({
|
|
22
|
+
import: e.target.checked
|
|
23
|
+
});
|
|
24
|
+
} else if (e.target.value === 'export') {
|
|
25
|
+
setState({
|
|
26
|
+
export: e.target.checked
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var handleInputChange = useMemoizedFn(function (field, e) {
|
|
31
|
+
var value = e.target.value.trim();
|
|
32
|
+
var _val = value === '' ? true : value;
|
|
33
|
+
console.log(_val);
|
|
34
|
+
if (field === 'import') {
|
|
35
|
+
setState({
|
|
36
|
+
import: _val
|
|
37
|
+
});
|
|
38
|
+
} else if (field === 'export') {
|
|
39
|
+
setState({
|
|
40
|
+
export: _val
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
45
|
+
gutter: [0, 8],
|
|
46
|
+
className: styles['lc-painter-panel-section-impexp']
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
48
|
+
span: 6
|
|
49
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
50
|
+
value: "import",
|
|
51
|
+
checked: !!state.import,
|
|
52
|
+
onChange: handleCheckboxChange
|
|
53
|
+
}, formatMessage({
|
|
54
|
+
id: 'luckda.lowcode.painter.import',
|
|
55
|
+
label: '导入'
|
|
56
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
57
|
+
span: 18
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
59
|
+
size: "small",
|
|
60
|
+
value: isString(state.import) ? state.import : '',
|
|
61
|
+
onChange: function onChange(e) {
|
|
62
|
+
return handleInputChange('import', e);
|
|
63
|
+
},
|
|
64
|
+
placeholder: formatMessage({
|
|
65
|
+
id: "".concat(_I18N_PREFIX_, ".impUrl.placeholder"),
|
|
66
|
+
label: '请输入模版ID或自定义接口'
|
|
67
|
+
})
|
|
68
|
+
})), /*#__PURE__*/React.createElement(Col, {
|
|
69
|
+
span: 6
|
|
70
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
71
|
+
value: "export",
|
|
72
|
+
checked: state.export,
|
|
73
|
+
onChange: handleCheckboxChange
|
|
74
|
+
}, formatMessage({
|
|
75
|
+
id: 'luckda.lowcode.painter.export',
|
|
76
|
+
label: '导出'
|
|
77
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
78
|
+
span: 18
|
|
79
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
80
|
+
size: "small",
|
|
81
|
+
value: isString(state.export) ? state.export : '',
|
|
82
|
+
onChange: function onChange(e) {
|
|
83
|
+
return handleInputChange('export', e);
|
|
84
|
+
},
|
|
85
|
+
placeholder: formatMessage({
|
|
86
|
+
id: "".concat(_I18N_PREFIX_, ".expUrl.placeholder"),
|
|
87
|
+
label: '请输入自定义接口'
|
|
88
|
+
})
|
|
89
|
+
})));
|
|
90
|
+
};
|
|
91
|
+
export default ImpExp;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { useMemoizedFn } from 'ahooks';
|
|
3
|
+
import { Button } from 'luck-design/antd';
|
|
4
|
+
import { debounce } from 'lodash';
|
|
5
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
6
|
+
import PopConfirm from "../components/PopConfirm";
|
|
7
|
+
import FullScreenEditor from "../components/code-editor/FullScreenEditor";
|
|
8
|
+
import JSEditor from "../components/code-editor/JSEditor";
|
|
9
|
+
var _JSEditor = function _JSEditor(_ref) {
|
|
10
|
+
var defaultValue = _ref.defaultValue,
|
|
11
|
+
defaultCode = _ref.defaultCode,
|
|
12
|
+
onChange = _ref.onChange,
|
|
13
|
+
mustConfirm = _ref.mustConfirm,
|
|
14
|
+
children = _ref.children;
|
|
15
|
+
var editorRef = useRef();
|
|
16
|
+
var handleCodeChange = useRef(debounce(function (code) {
|
|
17
|
+
if (!mustConfirm) onChange(code);
|
|
18
|
+
}, 400));
|
|
19
|
+
var handleConfirm = useMemoizedFn(function () {
|
|
20
|
+
onChange(editorRef.current.editor.getValue());
|
|
21
|
+
});
|
|
22
|
+
var handleEditorLoad = useMemoizedFn(function () {
|
|
23
|
+
editorRef.current.editor.setValue(defaultValue || defaultCode);
|
|
24
|
+
});
|
|
25
|
+
return /*#__PURE__*/React.createElement(PopConfirm, {
|
|
26
|
+
placement: "left",
|
|
27
|
+
title: /*#__PURE__*/React.createElement(FullScreenEditor, {
|
|
28
|
+
ref: editorRef,
|
|
29
|
+
EditorComponent: JSEditor,
|
|
30
|
+
width: "600px",
|
|
31
|
+
height: "400px",
|
|
32
|
+
onChange: handleCodeChange.current,
|
|
33
|
+
onLoad: handleEditorLoad
|
|
34
|
+
}),
|
|
35
|
+
showBtn: mustConfirm,
|
|
36
|
+
onConfirm: handleConfirm
|
|
37
|
+
}, children !== null && children !== void 0 ? children : /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
style: {
|
|
39
|
+
padding: '0 16px'
|
|
40
|
+
}
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
42
|
+
block: true,
|
|
43
|
+
size: "small"
|
|
44
|
+
}, formatMessage({
|
|
45
|
+
id: 'luckda.lowcode.painter.panel-section.style-panel.sourceedit',
|
|
46
|
+
label: '源码编辑'
|
|
47
|
+
}))));
|
|
48
|
+
};
|
|
49
|
+
export default _JSEditor;
|