@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
|
@@ -14,100 +14,256 @@
|
|
|
14
14
|
"disabled": true
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"key": "
|
|
17
|
+
"key": "dataset",
|
|
18
18
|
"name": "数据集",
|
|
19
19
|
"desc": "选择系统中的可用树形数据集",
|
|
20
20
|
"type": "_DataSetSelector"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"key": "
|
|
24
|
-
"name": "
|
|
25
|
-
"desc": "
|
|
26
|
-
"type": "
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "lazyLoad",
|
|
31
|
-
"name": "懒加载",
|
|
32
|
-
"desc": "是否树形组件懒加载",
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"default": false
|
|
23
|
+
"key": "title",
|
|
24
|
+
"name": "标题",
|
|
25
|
+
"desc": "头部标题",
|
|
26
|
+
"type": "_I18nInput"
|
|
35
27
|
},
|
|
36
28
|
{
|
|
37
|
-
"key": "
|
|
38
|
-
"name": "
|
|
39
|
-
"desc": "
|
|
40
|
-
"type": "
|
|
29
|
+
"key": "readOnly",
|
|
30
|
+
"name": "是否只读",
|
|
31
|
+
"desc": "是否树形组件只读",
|
|
32
|
+
"type": "switch",
|
|
41
33
|
"default": false
|
|
42
34
|
},
|
|
43
35
|
{
|
|
44
36
|
"key": "draggable",
|
|
45
37
|
"name": "支持拖拽",
|
|
46
38
|
"desc": "是否支持拖拽",
|
|
47
|
-
"type": "
|
|
39
|
+
"type": "switch",
|
|
40
|
+
"default": true
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "asyncLoad",
|
|
44
|
+
"name": "异步加载",
|
|
45
|
+
"desc": "是否树形组件异步加载,需要设置数据集条件",
|
|
46
|
+
"type": "switch",
|
|
48
47
|
"default": false
|
|
49
48
|
},
|
|
50
49
|
{
|
|
51
|
-
"key": "
|
|
52
|
-
"name": "
|
|
53
|
-
"desc": "
|
|
54
|
-
"type": "
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
50
|
+
"key": "parentKey",
|
|
51
|
+
"name": "异步加载Key",
|
|
52
|
+
"desc": "树形组件异步加载时的过滤传参key",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"default": "iparentid"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "styleSetting",
|
|
58
|
+
"name": "风格和样式",
|
|
59
|
+
"type": "group",
|
|
60
|
+
"props": [
|
|
60
61
|
{
|
|
61
|
-
"
|
|
62
|
-
"
|
|
62
|
+
"key": "width",
|
|
63
|
+
"name": "宽度",
|
|
64
|
+
"type": "_WidthHeight",
|
|
65
|
+
"default": "100%"
|
|
63
66
|
},
|
|
64
67
|
{
|
|
65
|
-
"
|
|
66
|
-
"
|
|
68
|
+
"key": "height",
|
|
69
|
+
"name": "高度",
|
|
70
|
+
"type": "_WidthHeight",
|
|
71
|
+
"default": "100%"
|
|
67
72
|
},
|
|
68
73
|
{
|
|
69
|
-
"
|
|
70
|
-
"
|
|
74
|
+
"key": "showLine",
|
|
75
|
+
"name": "显示线",
|
|
76
|
+
"desc": "是否显示树组件的连接线",
|
|
77
|
+
"type": "switch",
|
|
78
|
+
"default": false
|
|
71
79
|
},
|
|
72
80
|
{
|
|
73
|
-
"
|
|
74
|
-
"
|
|
81
|
+
"key": "treeNodeTitle",
|
|
82
|
+
"name": "展示字段",
|
|
83
|
+
"desc": "展示字段的key",
|
|
84
|
+
"type": "_I18nInput",
|
|
85
|
+
"default": "sname"
|
|
75
86
|
},
|
|
76
87
|
{
|
|
77
|
-
"
|
|
78
|
-
"
|
|
88
|
+
"key": "defaultExpandDeep",
|
|
89
|
+
"name": "默认展开层级",
|
|
90
|
+
"desc": "默认展开多少层级",
|
|
91
|
+
"type": "select",
|
|
92
|
+
"options": [
|
|
93
|
+
{
|
|
94
|
+
"label": "不展开",
|
|
95
|
+
"value": "0"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"label": "1",
|
|
99
|
+
"value": "1"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"label": "2",
|
|
103
|
+
"value": "2"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"label": "3",
|
|
107
|
+
"value": "3"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"label": "4",
|
|
111
|
+
"value": "4"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"label": "全部",
|
|
115
|
+
"value": "all"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"default": "0"
|
|
79
119
|
}
|
|
80
|
-
]
|
|
81
|
-
"default": 1
|
|
120
|
+
]
|
|
82
121
|
},
|
|
83
122
|
{
|
|
84
|
-
"key": "
|
|
85
|
-
"name": "
|
|
86
|
-
"
|
|
87
|
-
"
|
|
123
|
+
"key": "IconSetting",
|
|
124
|
+
"name": "图标设置",
|
|
125
|
+
"type": "group",
|
|
126
|
+
"default": true,
|
|
127
|
+
"next": {
|
|
128
|
+
"name": "图标设置",
|
|
129
|
+
"props": [
|
|
130
|
+
{
|
|
131
|
+
"key": "showIcon",
|
|
132
|
+
"name": "显示图标",
|
|
133
|
+
"desc": "是否显示树组件的图标",
|
|
134
|
+
"type": "switch",
|
|
135
|
+
"default": true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "treeNodeIcon",
|
|
139
|
+
"name": "节点图标设置",
|
|
140
|
+
"type": "_IconConditionSelector",
|
|
141
|
+
"default": [],
|
|
142
|
+
"defaultCode": "function treeNodeIconRender(item) { \n return false; \n}",
|
|
143
|
+
"wrapper": "collapse",
|
|
144
|
+
"wrapperProps": { "suppressIcon": true }
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
88
148
|
},
|
|
89
149
|
{
|
|
90
150
|
"key": "actions",
|
|
91
151
|
"name": "操作项",
|
|
92
|
-
"desc": "
|
|
93
|
-
"type": "
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
152
|
+
"desc": "树节点操作项",
|
|
153
|
+
"type": "group",
|
|
154
|
+
"default": true,
|
|
155
|
+
"next": {
|
|
156
|
+
"name": "操作项",
|
|
157
|
+
"props": [
|
|
158
|
+
{
|
|
159
|
+
"key": "rootAdd",
|
|
160
|
+
"name": "根节点",
|
|
161
|
+
"desc": "根节点操作项",
|
|
162
|
+
"type": "group",
|
|
163
|
+
"props": [
|
|
164
|
+
{
|
|
165
|
+
"key": "showRootAdd",
|
|
166
|
+
"name": "是否显示",
|
|
167
|
+
"desc": "是否显示",
|
|
168
|
+
"type": "switch",
|
|
169
|
+
"default": true
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"key": "rootAddSetting",
|
|
173
|
+
"name": "根节点配置",
|
|
174
|
+
"desc": "根节点配置",
|
|
175
|
+
"type": "_TreeRootEditor",
|
|
176
|
+
"default": {}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"key": "actions",
|
|
182
|
+
"name": "节点操作项",
|
|
183
|
+
"type": "_ActionsEditor",
|
|
184
|
+
"default": {
|
|
185
|
+
"todoList": []
|
|
186
|
+
},
|
|
187
|
+
"suppressDisplay": true,
|
|
188
|
+
"suppressMax": true,
|
|
189
|
+
"suppressMore": true,
|
|
190
|
+
"wrapper": "collapse",
|
|
191
|
+
"wrapperProps": {
|
|
192
|
+
"suppressIcon": true
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
101
197
|
},
|
|
102
198
|
{
|
|
103
|
-
"key": "
|
|
104
|
-
"name": "
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
199
|
+
"key": "rowSelectionSetting",
|
|
200
|
+
"name": "节点控制器",
|
|
201
|
+
"type": "group",
|
|
202
|
+
"default": true,
|
|
203
|
+
"next": {
|
|
204
|
+
"name": "行选择器",
|
|
205
|
+
"props": [
|
|
206
|
+
{
|
|
207
|
+
"key": "doubleClickExpand",
|
|
208
|
+
"name": "双击收缩节点",
|
|
209
|
+
"type": "switch",
|
|
210
|
+
"default": true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"key": "checkable",
|
|
214
|
+
"name": "复选框",
|
|
215
|
+
"desc": "是否支持复选框选择",
|
|
216
|
+
"type": "switch",
|
|
217
|
+
"default": false
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"key": "treeNodeCheckable",
|
|
221
|
+
"name": "节点是否有复选框",
|
|
222
|
+
"type": "_JSEditor",
|
|
223
|
+
"defaultCode": "function treeNodeCheckable(item) { \n return true; \n}",
|
|
224
|
+
"mustConfirm": true,
|
|
225
|
+
"wrapper": "collapse",
|
|
226
|
+
"wrapperProps": {
|
|
227
|
+
"suppressIcon": true
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"key": "treeNodeDisableCheckbox",
|
|
232
|
+
"name": "节点复选框是否禁用",
|
|
233
|
+
"type": "_JSEditor",
|
|
234
|
+
"defaultCode": "function treeNodeDisableCheckbox(item) { \n return false; \n}",
|
|
235
|
+
"mustConfirm": true,
|
|
236
|
+
"wrapper": "collapse",
|
|
237
|
+
"wrapperProps": {
|
|
238
|
+
"suppressIcon": true
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"key": "treeNodeDisable",
|
|
243
|
+
"name": "节点是否禁用",
|
|
244
|
+
"type": "_JSEditor",
|
|
245
|
+
"defaultCode": "function treeNodeDisable(item) { \n return false; \n}",
|
|
246
|
+
"mustConfirm": true,
|
|
247
|
+
"wrapper": "collapse",
|
|
248
|
+
"wrapperProps": {
|
|
249
|
+
"suppressIcon": true
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"key": "onTreeNodeRender",
|
|
254
|
+
"name": "节点定制渲染",
|
|
255
|
+
"type": "_JSEditor",
|
|
256
|
+
"defaultCode": "function onTreeNodeRender(title, item) { \n return title; \n}",
|
|
257
|
+
"mustConfirm": true,
|
|
258
|
+
"wrapper": "collapse",
|
|
259
|
+
"wrapperProps": {
|
|
260
|
+
"suppressIcon": true
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
108
265
|
}
|
|
109
266
|
],
|
|
110
|
-
"style": {},
|
|
111
267
|
"advance": {
|
|
112
268
|
"events": [
|
|
113
269
|
{
|
|
@@ -120,7 +276,7 @@
|
|
|
120
276
|
"key": "onUnmount",
|
|
121
277
|
"name": "组件卸载时",
|
|
122
278
|
"desc": "在组件卸载时,执行方法。",
|
|
123
|
-
"func": "(
|
|
279
|
+
"func": "()=>{\n\t\n}"
|
|
124
280
|
},
|
|
125
281
|
{
|
|
126
282
|
"key": "processDataSource",
|
|
@@ -129,29 +285,17 @@
|
|
|
129
285
|
"func": "(data)=>{\n\t\n}"
|
|
130
286
|
},
|
|
131
287
|
{
|
|
132
|
-
"key": "
|
|
133
|
-
"name": "
|
|
134
|
-
"desc": "
|
|
135
|
-
"func": "(
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"key": "unSelectableNodes",
|
|
139
|
-
"name": "失活节点",
|
|
140
|
-
"desc": "不可选择的节点",
|
|
141
|
-
"func": "(data)=>{\n\t\n}"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"key": "onRightMenus",
|
|
145
|
-
"name": "定制渲染",
|
|
146
|
-
"desc": "返回为false时,该操作不可见",
|
|
147
|
-
"func": "(title, rowData)=>{\n\t\n}"
|
|
288
|
+
"key": "onDoubleClick",
|
|
289
|
+
"name": "双击事件",
|
|
290
|
+
"desc": "树节点双击事件",
|
|
291
|
+
"func": "(e, rowData)=>{\n\t\n}"
|
|
148
292
|
},
|
|
149
293
|
{
|
|
150
|
-
"key": "
|
|
151
|
-
"name": "
|
|
152
|
-
"desc": "
|
|
153
|
-
"func": "(
|
|
294
|
+
"key": "onCheck",
|
|
295
|
+
"name": "复选框选择事件",
|
|
296
|
+
"desc": "点击复选框触发",
|
|
297
|
+
"func": "(checkedKeys, e)=>{\n\t\n}"
|
|
154
298
|
}
|
|
155
299
|
]
|
|
156
300
|
}
|
|
157
|
-
}
|
|
301
|
+
}
|
|
@@ -6,20 +6,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
10
|
var _react = require("react");
|
|
10
11
|
var _ahooks = require("ahooks");
|
|
12
|
+
var _lodash = require("lodash");
|
|
11
13
|
var _ContextProvider = require("../../engine/provider/ContextProvider");
|
|
12
14
|
var _dataProcess = require("../../engine/tools/dataProcess");
|
|
13
15
|
var _constants = require("../../constants");
|
|
16
|
+
var _DragDropWrapper = _interopRequireDefault(require("../../painter/components/DragDrop/DragDropWrapper"));
|
|
14
17
|
var LCWrapper = function LCWrapper(_ref) {
|
|
15
18
|
var id = _ref.id,
|
|
19
|
+
displayName = _ref.displayName,
|
|
16
20
|
children = _ref.children,
|
|
17
21
|
getTargetDom = _ref.getTargetDom,
|
|
18
22
|
api = _ref.api;
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
var ctx = (0, _ContextProvider.useContext)();
|
|
24
|
+
var _usePageData = (0, _ContextProvider.usePageData)(),
|
|
25
|
+
_usePageData2 = (0, _slicedToArray2.default)(_usePageData, 1),
|
|
26
|
+
pageData = _usePageData2[0];
|
|
27
|
+
var _pageData = (0, _ahooks.useLatest)(pageData);
|
|
28
|
+
(0, _ahooks.useCreation)(function () {
|
|
29
|
+
var meta = displayName ? require("../../engine/meta/".concat(displayName.toLowerCase(), ".props.json")) : {};
|
|
30
|
+
var _api = {
|
|
31
|
+
self: children,
|
|
32
|
+
getSelfData: function getSelfData() {
|
|
33
|
+
return children.props;
|
|
34
|
+
},
|
|
35
|
+
getSelfDom: getTargetDom,
|
|
23
36
|
getSelfAndParentLCData: function getSelfAndParentLCData() {
|
|
24
37
|
return (0, _dataProcess.findNodeAndParent)(id, _pageData.current);
|
|
25
38
|
},
|
|
@@ -27,35 +40,39 @@ var LCWrapper = function LCWrapper(_ref) {
|
|
|
27
40
|
return (0, _dataProcess.getPathNodesById)(_pageData.current, id);
|
|
28
41
|
}
|
|
29
42
|
};
|
|
43
|
+
ctx._register(id, new Proxy({
|
|
44
|
+
meta: (0, _lodash.omit)(meta, ['props', 'css', 'advance'])
|
|
45
|
+
}, {
|
|
46
|
+
get: function get(target, property, receiver) {
|
|
47
|
+
if (property === 'api') {
|
|
48
|
+
return api ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _api), api.current) : _api;
|
|
49
|
+
}
|
|
50
|
+
return Reflect.get(target, property, receiver);
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
30
53
|
}, []);
|
|
31
54
|
(0, _react.useEffect)(function () {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
dom: dom
|
|
40
|
-
}, {
|
|
41
|
-
get: function get(target, property, receiver) {
|
|
42
|
-
if (property === 'api') {
|
|
43
|
-
return api ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _api), api.current) : _api;
|
|
44
|
-
}
|
|
45
|
-
return Reflect.get(target, property, receiver);
|
|
46
|
-
}
|
|
47
|
-
}));
|
|
48
|
-
context.$publisher(context.topics.COMPONENT_MOUNT, {
|
|
49
|
-
id: id
|
|
50
|
-
});
|
|
55
|
+
var dom = getTargetDom();
|
|
56
|
+
if (dom) {
|
|
57
|
+
dom.setAttribute('id', id);
|
|
58
|
+
dom.setAttribute(_constants.LC_COMPONENT_UNIT_KEY, _constants.LC_COMPONENT_UNIT);
|
|
59
|
+
}
|
|
60
|
+
ctx.$publisher(ctx.topics.COMPONENT_MOUNT, {
|
|
61
|
+
id: id
|
|
51
62
|
});
|
|
52
63
|
return function () {
|
|
53
|
-
|
|
54
|
-
|
|
64
|
+
ctx._unregister(id);
|
|
65
|
+
ctx.$publisher(ctx.topics.COMPONENT_UNMOUNT, {
|
|
55
66
|
id: id
|
|
56
67
|
});
|
|
57
68
|
};
|
|
58
69
|
}, []);
|
|
70
|
+
if (ctx.runtime === _constants.RUNTIME.DESIGN) {
|
|
71
|
+
return /*#__PURE__*/React.createElement(_DragDropWrapper.default, {
|
|
72
|
+
id: id,
|
|
73
|
+
getTargetDom: getTargetDom
|
|
74
|
+
}, children);
|
|
75
|
+
}
|
|
59
76
|
return children;
|
|
60
77
|
};
|
|
61
78
|
var _default = exports.default = LCWrapper;
|
package/lib/services.js
CHANGED
|
@@ -15,11 +15,13 @@ function readModlue(_x) {
|
|
|
15
15
|
return _readModlue.apply(this, arguments);
|
|
16
16
|
}
|
|
17
17
|
function _readModlue() {
|
|
18
|
-
_readModlue = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(
|
|
18
|
+
_readModlue = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(params) {
|
|
19
19
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
20
20
|
while (1) switch (_context.prev = _context.next) {
|
|
21
21
|
case 0:
|
|
22
|
-
return _context.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/ui/builder/noAuthFetchModule
|
|
22
|
+
return _context.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/ui/builder/noAuthFetchModule"), {
|
|
23
|
+
params: params
|
|
24
|
+
}));
|
|
23
25
|
case 1:
|
|
24
26
|
case "end":
|
|
25
27
|
return _context.stop();
|
|
@@ -36,7 +38,7 @@ function _readBehaviorCall() {
|
|
|
36
38
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
37
39
|
while (1) switch (_context2.prev = _context2.next) {
|
|
38
40
|
case 0:
|
|
39
|
-
return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.
|
|
41
|
+
return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/lowcode/to/behavior/call?").concat((0, _querystring.stringify)(get)), {
|
|
40
42
|
method: 'POST',
|
|
41
43
|
body: post,
|
|
42
44
|
headers: {
|
|
@@ -278,9 +278,6 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
278
278
|
|
|
279
279
|
// 预览
|
|
280
280
|
var resetActionsColumn = (0, _ahooks.useMemoizedFn)(function (data, index, _actions, params) {
|
|
281
|
-
if (resetActions) {
|
|
282
|
-
return resetActions(data, index, actionList, params);
|
|
283
|
-
}
|
|
284
281
|
var actions = _actions.filter(function (item) {
|
|
285
282
|
return item.wanted !== 'update' && item.wanted !== 'add';
|
|
286
283
|
});
|
|
@@ -321,6 +318,9 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
321
318
|
});
|
|
322
319
|
}
|
|
323
320
|
});
|
|
321
|
+
if (resetActions) {
|
|
322
|
+
return resetActions(data, index, actions, params);
|
|
323
|
+
}
|
|
324
324
|
return actions;
|
|
325
325
|
});
|
|
326
326
|
var handleBatchOperationsClick = (0, _ahooks.useMemoizedFn)(function (key, selectedRows, cb) {
|
|
@@ -388,6 +388,10 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
388
388
|
supportUploadTypes: supportUploadTypes,
|
|
389
389
|
beforeUpload: _beforeUpload
|
|
390
390
|
});
|
|
391
|
+
},
|
|
392
|
+
onChange: function onChange(e) {
|
|
393
|
+
handleUploadChange(e);
|
|
394
|
+
rest.onChange && rest.onChange(e);
|
|
391
395
|
}
|
|
392
396
|
})
|
|
393
397
|
}), /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, {
|
package/lib/utils/grid.js
CHANGED
|
@@ -138,8 +138,8 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
138
138
|
var data = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _props), {}, {
|
|
139
139
|
field: name,
|
|
140
140
|
title: _props.label,
|
|
141
|
-
headerAlign: getAlign(_extra, 'sheading_alignment_virtual'),
|
|
142
|
-
align: getAlign(_extra, 'scell_alignment_virtual'),
|
|
141
|
+
headerAlign: _props.headerAlign || getAlign(_extra, 'sheading_alignment_virtual'),
|
|
142
|
+
align: _props.align || getAlign(_extra, 'scell_alignment_virtual'),
|
|
143
143
|
render: _props.render || getColumnRender(name, comName || _form.defaultComName[property], _props)
|
|
144
144
|
});
|
|
145
145
|
if (isTreeGrid || isVirtual || (0, _lodash.includes)(['user', 'select', 'group', 'switch', 'color', 'region', 'file'], comName || _form.defaultComName[property])) data.sortable = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luck-design-biz/luckda",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25-2",
|
|
4
4
|
"description": "前端配置管理中心业务组件库",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "umi-test",
|
|
14
14
|
"test:coverage": "umi-test --coverage",
|
|
15
15
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'",
|
|
16
|
-
"meta": "node generateMeta.js"
|
|
16
|
+
"meta": "node ./scripts/generateMeta.js && node ./scripts/extractLocals.js && node ./scripts/generateAutoComplete.js"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"es",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@dnd-kit/core": "^6.1.0",
|
|
53
53
|
"@dnd-kit/sortable": "^8.0.0",
|
|
54
54
|
"@dnd-kit/utilities": "^3.2.2",
|
|
55
|
-
"ahooks": "^3.7.
|
|
55
|
+
"ahooks": "^3.7.11",
|
|
56
56
|
"classnames": "^2.3.1",
|
|
57
57
|
"lodash": "^4.17.11",
|
|
58
58
|
"lz-string": "^1.5.0",
|
|
@@ -70,13 +70,15 @@
|
|
|
70
70
|
"@ant-design/pro-cli": "^1.0.28",
|
|
71
71
|
"@babel/core": "^7.20.2",
|
|
72
72
|
"@babel/eslint-parser": "^7.19.1",
|
|
73
|
+
"@babel/parser": "^7.24.4",
|
|
73
74
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
74
75
|
"@babel/plugin-proposal-decorators": "^7.20.2",
|
|
75
76
|
"@babel/plugin-transform-strict-mode": "^7.18.6",
|
|
76
77
|
"@babel/polyfill": "^7.12.1",
|
|
77
|
-
"@
|
|
78
|
-
"@luck-design-biz/
|
|
79
|
-
"@luck-
|
|
78
|
+
"@babel/traverse": "^7.24.1",
|
|
79
|
+
"@luck-design-biz/base": "0.0.44",
|
|
80
|
+
"@luck-design-biz/bpm": "0.0.5",
|
|
81
|
+
"@luck-helper/ui-design": "0.0.6",
|
|
80
82
|
"@types/classnames": "^2.3.1",
|
|
81
83
|
"@types/express": "^4.17.14",
|
|
82
84
|
"@types/history": "^4.7.11",
|
|
@@ -92,6 +94,7 @@
|
|
|
92
94
|
"bpmn-js-properties-panel": "^0.35.0",
|
|
93
95
|
"chalk": "^3.0.0",
|
|
94
96
|
"check-prettier": "^1.0.3",
|
|
97
|
+
"comment-parser": "^1.4.1",
|
|
95
98
|
"compression-webpack-plugin": "^6.1.1",
|
|
96
99
|
"core-js": "^3.26.1",
|
|
97
100
|
"cross-env": "^6.0.3",
|
|
@@ -106,7 +109,9 @@
|
|
|
106
109
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
107
110
|
"express": "^4.18.2",
|
|
108
111
|
"father": "^4.3.1",
|
|
112
|
+
"fs-extra": "^11.2.0",
|
|
109
113
|
"gh-pages": "^2.2.0",
|
|
114
|
+
"glob": "^10.3.12",
|
|
110
115
|
"gm-crypt": "^0.0.2",
|
|
111
116
|
"husky": "^7.0.4",
|
|
112
117
|
"import-sort-cli": "^6.0.0",
|
|
@@ -116,7 +121,7 @@
|
|
|
116
121
|
"js-cookie": "^2.2.1",
|
|
117
122
|
"jsdom-global": "^3.0.2",
|
|
118
123
|
"lint-staged": "^11.2.6",
|
|
119
|
-
"luck-design": "0.1.
|
|
124
|
+
"luck-design": "0.1.76-2",
|
|
120
125
|
"monaco-editor-webpack-plugin": "6.*.*",
|
|
121
126
|
"node-fetch": "^2.6.7",
|
|
122
127
|
"nprogress": "^0.2.0",
|