@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
|
@@ -3,10 +3,10 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
|
-
var _excluded = ["columns", "resources", "actions", "doAction", "wrapperRef", "ldId", "dataSetKey", "defaultParmas", "moduleCode", "readOnly", "title", "rowKey", "treeNodeTitle", "unselectableNodes", "rightMenus", "defaultExpandDeep", "draggable", "onDrop", "className", "treeClassName", "rootAdd", "suppressInit", "afterQuery", "afterInit", "isTree", "service", "dataToTreeFormat"],
|
|
6
|
+
var _excluded = ["columns", "resources", "actions", "doAction", "wrapperRef", "ldId", "dataSetKey", "defaultParmas", "moduleCode", "readOnly", "title", "rowKey", "treeNodeTitle", "unselectableNodes", "rightMenus", "defaultExpandDeep", "draggable", "onDrop", "className", "treeClassName", "rootAdd", "suppressInit", "afterQuery", "afterInit", "isTree", "service", "dataToTreeFormat", "boxRef", "doubleClickExpand", "onNodeDoubleClick", "width", "height", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "treeNodeIcon", "asyncLoad", "parentKey", "onMount", "onUnmount", "onDataSetChange", "onTreeNodeRender"],
|
|
7
7
|
_excluded2 = ["onClick"];
|
|
8
|
-
import React, { useState, useRef, useImperativeHandle, forwardRef } from 'react';
|
|
9
|
-
import { isFunction, isNumber, transform, includes, remove, cloneDeep,
|
|
8
|
+
import React, { useState, useRef, useImperativeHandle, forwardRef, useLayoutEffect } from 'react';
|
|
9
|
+
import { isFunction, isNumber, transform, includes, remove, cloneDeep, isNil } from 'lodash';
|
|
10
10
|
import { useRequest, useMemoizedFn, useCreation } from 'ahooks';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import classNames from 'classnames';
|
|
@@ -17,6 +17,7 @@ import { TreeBox } from '@luck-design-biz/base';
|
|
|
17
17
|
import ldBuilder from "../../helper/ldBuilder";
|
|
18
18
|
import { behaviorCall } from "../../utils";
|
|
19
19
|
import styles from "./index.less";
|
|
20
|
+
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
20
21
|
var LdTree = function LdTree(_ref) {
|
|
21
22
|
var columns = _ref.columns,
|
|
22
23
|
resources = _ref.resources,
|
|
@@ -45,9 +46,24 @@ var LdTree = function LdTree(_ref) {
|
|
|
45
46
|
isTree = _ref.isTree,
|
|
46
47
|
service = _ref.service,
|
|
47
48
|
dataToTreeFormat = _ref.dataToTreeFormat,
|
|
49
|
+
boxRef = _ref.boxRef,
|
|
50
|
+
doubleClickExpand = _ref.doubleClickExpand,
|
|
51
|
+
onNodeDoubleClick = _ref.onNodeDoubleClick,
|
|
52
|
+
width = _ref.width,
|
|
53
|
+
height = _ref.height,
|
|
54
|
+
treeNodeCheckable = _ref.treeNodeCheckable,
|
|
55
|
+
treeNodeDisableCheckbox = _ref.treeNodeDisableCheckbox,
|
|
56
|
+
treeNodeDisable = _ref.treeNodeDisable,
|
|
57
|
+
treeNodeIcon = _ref.treeNodeIcon,
|
|
58
|
+
asyncLoad = _ref.asyncLoad,
|
|
59
|
+
parentKey = _ref.parentKey,
|
|
60
|
+
onMount = _ref.onMount,
|
|
61
|
+
onUnmount = _ref.onUnmount,
|
|
62
|
+
onDataSetChange = _ref.onDataSetChange,
|
|
63
|
+
onTreeNodeRender = _ref.onTreeNodeRender,
|
|
48
64
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
49
65
|
if (!includes(isTree, dataSetKey)) return formatMessage({
|
|
50
|
-
id: 'luckda.ldTree.
|
|
66
|
+
id: 'luckda.ldTree.notTrees',
|
|
51
67
|
label: '此数据集非树形数据集,请选择树形数据集'
|
|
52
68
|
});
|
|
53
69
|
var _useState = useState(null),
|
|
@@ -59,11 +75,15 @@ var LdTree = function LdTree(_ref) {
|
|
|
59
75
|
defaultExpandedProps = _useState4[0],
|
|
60
76
|
setDefaultExpandedProps = _useState4[1];
|
|
61
77
|
var treeRef = useRef(null);
|
|
62
|
-
var defaultParams =
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
78
|
+
var defaultParams = useCreation(function () {
|
|
79
|
+
var _params = [_objectSpread({
|
|
80
|
+
moduleCode: moduleCode,
|
|
81
|
+
datasetCode: dataSetKey,
|
|
82
|
+
behaviorKey: 'readTree'
|
|
83
|
+
}, _defaultParmas)];
|
|
84
|
+
if (asyncLoad) _params[0][parentKey] = 0;
|
|
85
|
+
return _params;
|
|
86
|
+
}, []);
|
|
67
87
|
var _useRequest = useRequest(service || behaviorCall, {
|
|
68
88
|
// 获取树数据源
|
|
69
89
|
defaultParams: defaultParams,
|
|
@@ -99,14 +119,24 @@ var LdTree = function LdTree(_ref) {
|
|
|
99
119
|
loading = _useRequest.loading,
|
|
100
120
|
run = _useRequest.run,
|
|
101
121
|
params = _useRequest.params;
|
|
122
|
+
var onLdQuery = useMemoizedFn(function () {
|
|
123
|
+
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
124
|
+
run(_objectSpread(_objectSpread(_objectSpread({}, params[0]), _params), defaultParams[0]));
|
|
125
|
+
});
|
|
102
126
|
useImperativeHandle(wrapperRef, function () {
|
|
103
127
|
return _objectSpread(_objectSpread({}, treeRef.current), {}, {
|
|
104
|
-
onLdQuery:
|
|
105
|
-
var _params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
106
|
-
run(_objectSpread(_objectSpread(_objectSpread({}, params[0]), _params), defaultParams[0]));
|
|
107
|
-
}
|
|
128
|
+
onLdQuery: onLdQuery
|
|
108
129
|
});
|
|
109
130
|
});
|
|
131
|
+
useLayoutEffect(function () {
|
|
132
|
+
onMount && onMount(_objectSpread(_objectSpread({}, params[0]), defaultParams[0]));
|
|
133
|
+
return function () {
|
|
134
|
+
onUnmount && onUnmount();
|
|
135
|
+
};
|
|
136
|
+
}, []);
|
|
137
|
+
useLayoutEffect(function () {
|
|
138
|
+
onDataSetChange && onDataSetChange(onLdQuery);
|
|
139
|
+
}, [dataSetKey]);
|
|
110
140
|
var handleMenuClick = function handleMenuClick(menu, data) {
|
|
111
141
|
var onClick = menu.onClick,
|
|
112
142
|
other = _objectWithoutProperties(menu, _excluded2);
|
|
@@ -119,7 +149,8 @@ var LdTree = function LdTree(_ref) {
|
|
|
119
149
|
return handleMenuClick(menu, data);
|
|
120
150
|
},
|
|
121
151
|
className: styles.rightMenu,
|
|
122
|
-
key: menu.key
|
|
152
|
+
key: menu.key,
|
|
153
|
+
style: menu.style
|
|
123
154
|
}, menu.name || '');
|
|
124
155
|
});
|
|
125
156
|
};
|
|
@@ -139,11 +170,23 @@ var LdTree = function LdTree(_ref) {
|
|
|
139
170
|
type: "more"
|
|
140
171
|
}));
|
|
141
172
|
};
|
|
173
|
+
var handleNodeDoubleClick = useMemoizedFn(function (e) {
|
|
174
|
+
var switcher = e.currentTarget.closest('li').querySelector('.ant-tree-switcher');
|
|
175
|
+
switcher.click();
|
|
176
|
+
});
|
|
177
|
+
var handleDoubleClick = useMemoizedFn(function (e, rowData) {
|
|
178
|
+
if (doubleClickExpand) handleNodeDoubleClick(e);
|
|
179
|
+
if (onNodeDoubleClick) onNodeDoubleClick(e, rowData);
|
|
180
|
+
});
|
|
142
181
|
var renderTitleNode = function renderTitleNode(data, unSelectable) {
|
|
143
182
|
var nodeTitle = isFunction(treeNodeTitle) ? treeNodeTitle(data) : data[treeNodeTitle];
|
|
183
|
+
if (onTreeNodeRender) nodeTitle = onTreeNodeRender(nodeTitle, data);
|
|
144
184
|
return /*#__PURE__*/React.createElement("div", {
|
|
145
185
|
className: styles.nodeTitle,
|
|
146
|
-
key: data[rowKey]
|
|
186
|
+
key: data[rowKey],
|
|
187
|
+
onDoubleClick: function onDoubleClick(e) {
|
|
188
|
+
return handleDoubleClick(e, data);
|
|
189
|
+
}
|
|
147
190
|
}, /*#__PURE__*/React.createElement("div", {
|
|
148
191
|
title: nodeTitle,
|
|
149
192
|
className: classNames(_defineProperty({}, styles.nodeTitleDisabled, unSelectable))
|
|
@@ -153,21 +196,24 @@ var LdTree = function LdTree(_ref) {
|
|
|
153
196
|
return data.map(function (item) {
|
|
154
197
|
// 判断是否可选择
|
|
155
198
|
var unSelectable = isFunction(unselectableNodes) ? unselectableNodes(item) : unselectableNodes.includes(item[rowKey]);
|
|
156
|
-
|
|
157
|
-
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, {
|
|
158
|
-
isLeaf: false,
|
|
159
|
-
title: renderTitleNode(item, unSelectable),
|
|
160
|
-
key: item[rowKey],
|
|
161
|
-
dataRef: item,
|
|
162
|
-
selectable: !unSelectable
|
|
163
|
-
}, renderTreeNodes(item.children));
|
|
164
|
-
}
|
|
165
|
-
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, {
|
|
199
|
+
var props = {
|
|
166
200
|
title: renderTitleNode(item, unSelectable),
|
|
167
201
|
key: item[rowKey],
|
|
168
202
|
dataRef: item,
|
|
169
|
-
selectable: !unSelectable
|
|
170
|
-
|
|
203
|
+
selectable: !unSelectable,
|
|
204
|
+
checkable: treeNodeCheckable && treeNodeCheckable(item),
|
|
205
|
+
disableCheckbox: treeNodeDisableCheckbox && treeNodeDisableCheckbox(item),
|
|
206
|
+
disabled: treeNodeDisable && treeNodeDisable(item)
|
|
207
|
+
};
|
|
208
|
+
if (treeNodeIcon && !isNil(treeNodeIcon(item))) props.icon = treeNodeIcon(item);
|
|
209
|
+
if (!item.isleaf) {
|
|
210
|
+
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, _extends({
|
|
211
|
+
isLeaf: false
|
|
212
|
+
}, props), renderTreeNodes(item.children || []));
|
|
213
|
+
}
|
|
214
|
+
return /*#__PURE__*/React.createElement(LuckTree.TreeNode, _extends({
|
|
215
|
+
isLeaf: true
|
|
216
|
+
}, props));
|
|
171
217
|
});
|
|
172
218
|
});
|
|
173
219
|
var handleDrop = useMemoizedFn(function (info) {
|
|
@@ -179,19 +225,51 @@ var LdTree = function LdTree(_ref) {
|
|
|
179
225
|
return handleMenuClick(rootAdd);
|
|
180
226
|
} : null;
|
|
181
227
|
}, [readOnly, rootAdd, resources]);
|
|
228
|
+
var onLoadData = useMemoizedFn(function (treeNode) {
|
|
229
|
+
return new Promise(function (resolve) {
|
|
230
|
+
console.log('treeNode.props.children', treeNode.props.children);
|
|
231
|
+
if (treeNode.props.isLeaf) {
|
|
232
|
+
resolve();
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
(service || behaviorCall)(_objectSpread(_objectSpread({}, params[0]), {}, _defineProperty({}, parentKey, treeNode.props.dataRef[window.appConfig.constraintKeys.PRIMARY]))).then(function (res) {
|
|
236
|
+
console.log(res);
|
|
237
|
+
});
|
|
238
|
+
// setTimeout(() => {
|
|
239
|
+
// treeNode.props.dataRef.children = [
|
|
240
|
+
// { title: 'Child Node', key: `${treeNode.props.eventKey}-0` },
|
|
241
|
+
// { title: 'Child Node', key: `${treeNode.props.eventKey}-1` },
|
|
242
|
+
// ];
|
|
243
|
+
// this.setState({
|
|
244
|
+
// treeData: [...this.state.treeData],
|
|
245
|
+
// });
|
|
246
|
+
// resolve();
|
|
247
|
+
// }, 1000);
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
var asyncLoadData = useCreation(function () {
|
|
251
|
+
return asyncLoad ? {
|
|
252
|
+
loadData: onLoadData
|
|
253
|
+
} : {};
|
|
254
|
+
}, []);
|
|
182
255
|
return /*#__PURE__*/React.createElement(TreeBox, {
|
|
183
256
|
suppressTitle: !title,
|
|
184
257
|
title: title,
|
|
185
258
|
loading: loading,
|
|
186
259
|
id: ldId,
|
|
187
260
|
onAdd: onAdd,
|
|
188
|
-
className: className
|
|
261
|
+
className: className,
|
|
262
|
+
ref: boxRef,
|
|
263
|
+
style: {
|
|
264
|
+
width: width,
|
|
265
|
+
height: height
|
|
266
|
+
}
|
|
189
267
|
}, dataSource && /*#__PURE__*/React.createElement(LuckTree, _extends({
|
|
190
268
|
blockNode: true,
|
|
191
269
|
className: classNames(styles.tree, _defineProperty({}, className, !!treeClassName)),
|
|
192
270
|
draggable: !readOnly && draggable,
|
|
193
271
|
onDrop: handleDrop
|
|
194
|
-
}, defaultExpandedProps, props, {
|
|
272
|
+
}, asyncLoadData, defaultExpandedProps, props, {
|
|
195
273
|
ref: treeRef
|
|
196
274
|
}), renderTreeNodes(dataSource)));
|
|
197
275
|
};
|
|
@@ -223,7 +301,9 @@ Index.propTypes = {
|
|
|
223
301
|
// 行为
|
|
224
302
|
suppressInit: PropTypes.bool,
|
|
225
303
|
// 抑制初始化
|
|
226
|
-
afterInit: PropTypes.func
|
|
304
|
+
afterInit: PropTypes.func,
|
|
305
|
+
// 初始化后
|
|
306
|
+
parentKey: PropTypes.string
|
|
227
307
|
};
|
|
228
308
|
Index.defaultProps = {
|
|
229
309
|
readOnly: false,
|
|
@@ -238,7 +318,8 @@ Index.defaultProps = {
|
|
|
238
318
|
return [];
|
|
239
319
|
},
|
|
240
320
|
suppressInit: false,
|
|
241
|
-
defaultParmas: {}
|
|
321
|
+
defaultParmas: {},
|
|
322
|
+
parentKey: 'iparentid'
|
|
242
323
|
};
|
|
243
324
|
export default /*#__PURE__*/forwardRef(function (props, ref) {
|
|
244
325
|
return /*#__PURE__*/React.createElement(Index, _extends({
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
width: 100%;
|
|
6
|
+
user-select: none;
|
|
6
7
|
|
|
7
8
|
div {
|
|
8
9
|
flex: 1;
|
|
@@ -10,9 +11,11 @@
|
|
|
10
11
|
white-space: nowrap;
|
|
11
12
|
text-overflow: ellipsis;
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
div.nodeTitleDisabled {
|
|
14
16
|
color: var(--luck-text-color-disabled);
|
|
15
17
|
}
|
|
18
|
+
|
|
16
19
|
div.nodeTitleDisabled:hover {
|
|
17
20
|
cursor: not-allowed;
|
|
18
21
|
}
|
|
@@ -24,13 +27,15 @@
|
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
}
|
|
30
|
+
|
|
27
31
|
.classTreeOperates {
|
|
28
32
|
:global(.ant-popover-inner-content) {
|
|
29
33
|
padding: 0;
|
|
30
34
|
}
|
|
35
|
+
|
|
31
36
|
.rightMenu {
|
|
32
37
|
display: block;
|
|
33
38
|
padding: 4px 8px;
|
|
34
39
|
color: var(--luck-text-color-);
|
|
35
40
|
}
|
|
36
|
-
}
|
|
41
|
+
}
|
package/es/helper/ldBuilder.js
CHANGED
|
@@ -5,7 +5,10 @@ import { formatMessage } from '@luck-design-biz/base/utils';
|
|
|
5
5
|
var builder = function builder(wrapped) {
|
|
6
6
|
var LdCom = function LdCom(props) {
|
|
7
7
|
var ldId = props.ldId,
|
|
8
|
-
dataSetKey = props.dataSetKey
|
|
8
|
+
dataSetKey = props.dataSetKey,
|
|
9
|
+
wrapper = props.wrapper,
|
|
10
|
+
className = props.className,
|
|
11
|
+
style = props.style;
|
|
9
12
|
var _ref = useContext(LuckDaContext) || {},
|
|
10
13
|
resources = _ref.resources,
|
|
11
14
|
actions = _ref.actions,
|
|
@@ -16,22 +19,35 @@ var builder = function builder(wrapped) {
|
|
|
16
19
|
doAction = _ref.doAction,
|
|
17
20
|
moduleCode = _ref.moduleCode; // 读存储的模块信息,包括行为、行为执行方法、数据集
|
|
18
21
|
|
|
19
|
-
if (!ldId) return
|
|
22
|
+
if (!ldId) return /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
ref: wrapper,
|
|
24
|
+
className: className,
|
|
25
|
+
style: style
|
|
26
|
+
}, formatMessage({
|
|
20
27
|
id: 'luckda.paramMiss.ldId',
|
|
21
28
|
label: '配置项缺少组件唯一标识(ldId)'
|
|
22
|
-
});
|
|
23
|
-
if (!dataSetKey) return
|
|
29
|
+
}));
|
|
30
|
+
if (!dataSetKey) return /*#__PURE__*/React.createElement("span", {
|
|
31
|
+
ref: wrapper,
|
|
32
|
+
className: className,
|
|
33
|
+
style: style
|
|
34
|
+
}, formatMessage({
|
|
24
35
|
id: 'luckda.paramMiss.dataSetKey',
|
|
25
36
|
label: '缺少数据集(dataSetKey)'
|
|
26
|
-
});
|
|
27
|
-
if (!dataSets[dataSetKey]) return "".concat(formatMessage({
|
|
28
|
-
// 待获取数据源
|
|
29
|
-
id: 'luckda.module.miss',
|
|
30
|
-
label: '该模块下缺少'
|
|
31
|
-
})).concat(dataSetKey).concat(formatMessage({
|
|
32
|
-
id: 'luckda.parmas.dataSet',
|
|
33
|
-
label: '数据集'
|
|
34
37
|
}));
|
|
38
|
+
if (!dataSets[dataSetKey])
|
|
39
|
+
// 待获取数据源
|
|
40
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
41
|
+
ref: wrapper,
|
|
42
|
+
className: className,
|
|
43
|
+
style: style
|
|
44
|
+
}, formatMessage({
|
|
45
|
+
id: 'luckda.module.miss',
|
|
46
|
+
label: '该模块下缺少'
|
|
47
|
+
}), dataSetKey, formatMessage({
|
|
48
|
+
id: 'luckda.parmas.dataSet',
|
|
49
|
+
label: '数据集'
|
|
50
|
+
}));
|
|
35
51
|
var wrappedProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
36
52
|
columns: dataSets[dataSetKey],
|
|
37
53
|
isTree: isTree,
|
package/es/helper/ldComBuild.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["
|
|
5
|
-
|
|
6
|
-
import {
|
|
4
|
+
var _excluded = ["$css"],
|
|
5
|
+
_excluded2 = ["className", "$css"];
|
|
6
|
+
import React, { useContext, forwardRef } from 'react';
|
|
7
|
+
import { useCreation } from 'ahooks';
|
|
8
|
+
import { includes, intersectionWith, isNil } from 'lodash';
|
|
7
9
|
import { ChildrenUtil } from '@luck-design-biz/base/utils';
|
|
8
10
|
import { LuckDaContext } from "../components/Builder";
|
|
9
11
|
import classNames from 'classnames';
|
|
@@ -15,12 +17,23 @@ export var getResources = function getResources() {
|
|
|
15
17
|
return resources;
|
|
16
18
|
};
|
|
17
19
|
export var ldComBuilder = function ldComBuilder(Com) {
|
|
18
|
-
var Component = function
|
|
19
|
-
var
|
|
20
|
+
var Component = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
21
|
+
var $css = _ref2.$css,
|
|
22
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
20
23
|
var resources = getResources();
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
var hasResources = useCreation(function () {
|
|
25
|
+
return isNil(props === null || props === void 0 ? void 0 : props.resource) || includes(resources, props.resource);
|
|
26
|
+
}, [props === null || props === void 0 ? void 0 : props.resource, resources]);
|
|
27
|
+
if (hasResources) {
|
|
28
|
+
return /*#__PURE__*/React.createElement(Com, _extends({}, props, {
|
|
29
|
+
ref: ref
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
return props.serialEffect === 'hidden' ? /*#__PURE__*/React.createElement(React.Fragment, null) : /*#__PURE__*/React.createElement(Com, _extends({}, props, {
|
|
33
|
+
disabled: true,
|
|
34
|
+
ref: ref
|
|
35
|
+
}));
|
|
36
|
+
});
|
|
24
37
|
return Component;
|
|
25
38
|
};
|
|
26
39
|
export var filterOptions = function filterOptions(options) {
|
|
@@ -31,18 +44,20 @@ export var filterOptions = function filterOptions(options) {
|
|
|
31
44
|
});
|
|
32
45
|
};
|
|
33
46
|
export var deepFilterCom = function deepFilterCom(Com, childMark) {
|
|
34
|
-
var Component = function
|
|
35
|
-
var className =
|
|
36
|
-
|
|
47
|
+
var Component = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
48
|
+
var className = _ref3.className,
|
|
49
|
+
$css = _ref3.$css,
|
|
50
|
+
props = _objectWithoutProperties(_ref3, _excluded2);
|
|
37
51
|
var resources = getResources();
|
|
38
52
|
var com = /*#__PURE__*/React.createElement(Com, _extends({}, props, {
|
|
39
|
-
className: classNames(styles.ldLabs, _defineProperty({}, className, !!className))
|
|
53
|
+
className: classNames(styles.ldLabs, _defineProperty({}, className, !!className)),
|
|
54
|
+
ref: ref
|
|
40
55
|
}));
|
|
41
56
|
return ChildrenUtil.deepFilter(com, function (child) {
|
|
42
57
|
var _child$props;
|
|
43
58
|
var data = !childMark(child) || !(child !== null && child !== void 0 && (_child$props = child.props) !== null && _child$props !== void 0 && _child$props.resource) || includes(resources, child.props.resource);
|
|
44
59
|
return data;
|
|
45
60
|
});
|
|
46
|
-
};
|
|
61
|
+
});
|
|
47
62
|
return Component;
|
|
48
63
|
};
|
package/es/index.js
CHANGED
|
@@ -6,5 +6,6 @@ export { default as buildLdAutoForm } from "./components/LdAutoForm";
|
|
|
6
6
|
export { default as buildLdGridForm } from "./components/LdGridForm";
|
|
7
7
|
export { default as LdInfoPanel } from "./components/LdInfoPanel";
|
|
8
8
|
export { default as LdCard } from "./components/LdCard";
|
|
9
|
+
export { default as LDActions } from "./components/LDActions";
|
|
9
10
|
export { default as LdRuntimeCom } from "./components/LdRuntimeCom";
|
|
10
11
|
export * from "./components/LdCom";
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"luckda.lowcode.painter.panel.attrs": "属性",
|
|
3
|
+
"luckda.lowcode.painter.panel.css": "样式",
|
|
4
|
+
"luckda.lowcode.painter.panel.advance": "高级",
|
|
5
|
+
"luckda.lowcode.painter.panel.empty": "请在左侧画布选中节点",
|
|
6
|
+
"luckda.lowcode.page": "页面",
|
|
7
|
+
"luckda.lowcode.modal": "模态视图层",
|
|
8
|
+
"luckda.lowcode.painter.I18n.search": "搜索文案",
|
|
9
|
+
"luckda.lowcode.painter.I18n.add": "新增文案",
|
|
10
|
+
"luckda.lowcode.design.toolbar.clear.tip": "清除提示",
|
|
11
|
+
"luckda.lowcode.design.toolbar.clear": "清除缓存",
|
|
12
|
+
"luckda.lowcode.error.pagedata": "页面数据错误",
|
|
13
|
+
"luckda.lowcode.design.toolbar.pageAttrs": "页面属性",
|
|
14
|
+
"luckda.lowcode.design.toolbar.preview": "预览",
|
|
15
|
+
"luckda.lowcode.design.toolbar.save": "保存",
|
|
16
|
+
"luckda.lowcode.design.toolbar.pagePreview": "页面预览",
|
|
17
|
+
"luckda.lowcode.design.toolbar.selectUser": "请选择模拟登录人",
|
|
18
|
+
"app.base.operate.comfire.leave": "离开当前页面?",
|
|
19
|
+
"app.base.operate.comfire.message.leave": "系统可能不会保存您所做的更改。",
|
|
20
|
+
"luckda.lowcode.painter.components.search": "搜索组件",
|
|
21
|
+
"ccm.dev.page.set.components.base": "基础组件",
|
|
22
|
+
"ccm.dev.page.set.components.custom": "自定义组件",
|
|
23
|
+
"luckda.lowcode.painter.panel-section.width-height": "请输入数值",
|
|
24
|
+
"luckda.lowcode.painter.tree.rootAdd": "根节点新增",
|
|
25
|
+
"luckda.lowcode.painter.edit": "编辑",
|
|
26
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.label": "名称",
|
|
27
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.label.placeholder": "请输入过滤项名称",
|
|
28
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.value": "值",
|
|
29
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.value.placeholder": "请输入过滤项值",
|
|
30
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.field": "字段",
|
|
31
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.field.placeholder": "请选择过滤字段",
|
|
32
|
+
"luckda.lowcode.painter.delete": "删除",
|
|
33
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.nil": "关闭过滤器",
|
|
34
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.dict": "数据字典",
|
|
35
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.dict.placeholder": "请输入接口地址",
|
|
36
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.custom": "自定义项",
|
|
37
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.add": "添加过滤项",
|
|
38
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.customApi": "自定义接口",
|
|
39
|
+
"luckda.lowcode.painter.panel-section.tableTopFilter.customApi.tip": "接口返回数据格式必须是: {mainInfo:{options:[{value: string,label: stirng}], field: string}}",
|
|
40
|
+
"luckda.lowcode.painter.hidden": "隐藏",
|
|
41
|
+
"luckda.lowcode.painter.disable": "禁用",
|
|
42
|
+
"luckda.lowcode.painter.panel-section.tabsitems.editor.tabname": "名称",
|
|
43
|
+
"luckda.lowcode.painter.panel-section.tabsitems.editor.tabname.placeholder": "请输入标签名称",
|
|
44
|
+
"luckda.lowcode.painter.panel-section.tabsitems.editor.id": "编号",
|
|
45
|
+
"luckda.lowcode.painter.panel-section.tabsitems.editor.destory": "隐藏销毁",
|
|
46
|
+
"luckda.lowcode.painter.panel-section.tabsitems.editor.serial": "资源串",
|
|
47
|
+
"luckda.lowcode.painter.panel-section.tabsitems.editor.serial.placeholder": "请输入资源串名称",
|
|
48
|
+
"luckda.lowcode.painter.panel-section.tabsitems.editor.serialEffect": "越权效果",
|
|
49
|
+
"luckda.lowcode.painter.panel-section.splitdisplay.splitVertical": "横向",
|
|
50
|
+
"luckda.lowcode.painter.panel-section.splitdisplay.splitHorizontal": "纵向",
|
|
51
|
+
"luckda.lowcode.painter.panel-section.splitdisplay.err": "必须是数字或者数字加:号的组合",
|
|
52
|
+
"luckda.lowcode.painter.panel-section.splitdisplay.fastTo": "收缩方向",
|
|
53
|
+
"luckda.lowcode.painter.panel-section.splitdisplay.split": "分割方向",
|
|
54
|
+
"luckda.lowcode.painter.panel-section.splitdisplay.ratio": "列比例",
|
|
55
|
+
"luckda.lowcode.painter.panel-section.Layoutratio.placeholder": "请输入列比例",
|
|
56
|
+
"luckda.lowcode.painter.panel-section.Layoutratio.err": "必须是数字或者数字加:号的组合",
|
|
57
|
+
"luckda.lowcode.painter.panel-section.Layoutratio.label": "列比例",
|
|
58
|
+
"luckda.lowcode.painter.panel-section.style-panel.sourceedit": "源码编辑",
|
|
59
|
+
"luckda.lowcode.painter.import": "导入",
|
|
60
|
+
"luckda.lowcode.painter.panel-section.impexp.impUrl.placeholder": "请输入模版ID或自定义接口",
|
|
61
|
+
"luckda.lowcode.painter.export": "导出",
|
|
62
|
+
"luckda.lowcode.painter.panel-section.impexp.expUrl.placeholder": "请输入自定义接口",
|
|
63
|
+
"luckda.lowcode.painter.bindCondition": "绑定条件",
|
|
64
|
+
"luckda.lowcode.painter.panel-section.iconConditionSelector.add": "添加条件",
|
|
65
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.field": "数据字段",
|
|
66
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.title": "标题",
|
|
67
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.batch": "批量设置",
|
|
68
|
+
"luckda.lowcode.painter.panel-section.style-panel.box-shadow": "阴影",
|
|
69
|
+
"luckda.lowcode.painter.panel-section.style-panel.box-shadow.big": "大",
|
|
70
|
+
"luckda.lowcode.painter.panel-section.style-panel.box-shadow.middle": "中",
|
|
71
|
+
"luckda.lowcode.painter.panel-section.style-panel.box-shadow.small": "小",
|
|
72
|
+
"luckda.lowcode.painter.panel-section.style-panel.box-shadow.none": "无",
|
|
73
|
+
"luckda.lowcode.painter.panel-section.style-panel.box-shadow.custom": "自定义",
|
|
74
|
+
"luckda.lowcode.painter.panel-section.style-panel.box-shadow.detail.color": "颜色",
|
|
75
|
+
"luckda.lowcode.painter.panel-section.style-panel.cursor": "鼠标手势",
|
|
76
|
+
"luckda.lowcode.painter.panel-section.style-panel.padding.top": "上边距",
|
|
77
|
+
"luckda.lowcode.painter.panel-section.style-panel.padding.right": "右边距",
|
|
78
|
+
"luckda.lowcode.painter.panel-section.style-panel.padding.down": "下边距",
|
|
79
|
+
"luckda.lowcode.painter.panel-section.style-panel.padding.left": "左边距",
|
|
80
|
+
"luckda.lowcode.painter.panel-section.style-panel.opacity": "透明度",
|
|
81
|
+
"luckda.lowcode.painter.panel-section.style-panel.opacity.ph": "透明度",
|
|
82
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.top": "上间距",
|
|
83
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.right": "右间距",
|
|
84
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.down": "下间距",
|
|
85
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.left": "左间距",
|
|
86
|
+
"luckda.lowcode.painter.panel-section.style-panel.group-name": "样式设置",
|
|
87
|
+
"luckda.lowcode.painter.panel-section.style-panel.width": "请输入宽高度",
|
|
88
|
+
"luckda.lowcode.painter.panel-section.style-panel.display": "显示",
|
|
89
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.superbig": "超大(24px)",
|
|
90
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.big": "大(20px)",
|
|
91
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.middle": "中(16px)",
|
|
92
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.small": "小(12px)",
|
|
93
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.supersmall": "超小(8px)",
|
|
94
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.none": "无(0px)",
|
|
95
|
+
"luckda.lowcode.painter.panel-section.style-panel.margin.default": "默认",
|
|
96
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.weight": "字重",
|
|
97
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.style": "样式",
|
|
98
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.color": "字体颜色",
|
|
99
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.size": "字体大小",
|
|
100
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.size.ph": "字体大小",
|
|
101
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.line-height.ph": "行高",
|
|
102
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.align": "对齐",
|
|
103
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.align.left": "左对齐",
|
|
104
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.align.center": "自适应",
|
|
105
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.style.none": "无",
|
|
106
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.style.underline": "下划线",
|
|
107
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.style.line-through": "中划线",
|
|
108
|
+
"luckda.lowcode.painter.panel-section.style-panel.font": "文字",
|
|
109
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.h1": "一级标题",
|
|
110
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.h2": "二级标题",
|
|
111
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.h3": "三级标题",
|
|
112
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.paragraph": "段落",
|
|
113
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.default": "无",
|
|
114
|
+
"luckda.lowcode.painter.panel-section.style-panel.font.custom": "自定义",
|
|
115
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.block": "块",
|
|
116
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.inline-block": "行内块",
|
|
117
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.inline": "行内",
|
|
118
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.flex": "弹性",
|
|
119
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.direct.row": "方向:横向",
|
|
120
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.direct.column": "方向:纵向反转",
|
|
121
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.align-items.flex-start": "交叉轴:起始对齐",
|
|
122
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.align-items.center": "交叉轴:居中",
|
|
123
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.align-items.flex-end": "交叉轴:终点对齐",
|
|
124
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.align-items.stretch": "交叉轴:拉伸",
|
|
125
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.align-items.baseline": "交叉轴:基线",
|
|
126
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.justify.flex-start": "水平轴:起始对齐",
|
|
127
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.justify.center": "水平轴:居中对齐",
|
|
128
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.justify.flex-end": "水平轴:结束对齐",
|
|
129
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.justify.space-between": "水平轴:两端对齐",
|
|
130
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.justify.space-around": "水平轴:均匀对齐,项目周围间隔相等",
|
|
131
|
+
"luckda.lowcode.painter.panel-section.style-panel.display.justify.space-evenly": "水平轴:均匀分布,所有项目与容器边缘的间隔相等",
|
|
132
|
+
"luckda.lowcode.painter.panel-section.style-panel.border-radius": " 圆角",
|
|
133
|
+
"luckda.lowcode.painter.panel-section.style-panel.border-radius.width": "半径",
|
|
134
|
+
"luckda.lowcode.painter.panel-section.style-panel.border-radius.width.ph": "半径",
|
|
135
|
+
"luckda.lowcode.painter.panel-section.style-panel.border": "边框",
|
|
136
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.style": "边框",
|
|
137
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.style.none": "无",
|
|
138
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.style.solid": "实线条",
|
|
139
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.style.dotted": "点线",
|
|
140
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.style.dashed": "虚线",
|
|
141
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.width": "线宽",
|
|
142
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.width.ph": "线宽",
|
|
143
|
+
"luckda.lowcode.painter.panel-section.style-panel.border.color": "颜色",
|
|
144
|
+
"luckda.lowcode.painter.panel-section.style-panel.background": "背景",
|
|
145
|
+
"luckda.lowcode.painter.panel-section.blocksEditor.auto": "表单",
|
|
146
|
+
"luckda.lowcode.painter.panel-section.blocksEditor.grid": "表格",
|
|
147
|
+
"luckda.lowcode.painter.panel-section.blocksEditor.writer": "行内编辑表格",
|
|
148
|
+
"luckda.lowcode.painter.panel-section.blocksEditor.uploadForm": "附件列表",
|
|
149
|
+
"luckda.lowcode.painter.panel-section.blocksEditor.blank": "空白区",
|
|
150
|
+
"luckda.lowcode.painter.panel-section.blocksEditor.addBlock": "新增区块",
|
|
151
|
+
"luckda.lowcode.painter.panel-section.actionsEditor.button": "按钮",
|
|
152
|
+
"luckda.lowcode.painter.panel-section.actionsEditor.text": "文本",
|
|
153
|
+
"luckda.lowcode.painter.bindAction": "绑定动作",
|
|
154
|
+
"luckda.lowcode.painter.panel-section.actionsEditor.display": "展现形式",
|
|
155
|
+
"luckda.lowcode.painter.panel-section.actionsEditor.max": "最大显示数",
|
|
156
|
+
"luckda.lowcode.painter.panel-section.actionsEditor.moreText": "更多显示文字",
|
|
157
|
+
"luckda.lowcode.painter.panel-section.actionsEditor.add": "添加操作",
|
|
158
|
+
"luckda.lowcode.painter.panel-section.actionEditor.default": "一般",
|
|
159
|
+
"luckda.lowcode.painter.panel-section.actionEditor.primary": "重要",
|
|
160
|
+
"luckda.lowcode.painter.panel-section.actionEditor.danger": "危险",
|
|
161
|
+
"luckda.lowcode.painter.panel-section.actionEditor.destroy": "毁灭",
|
|
162
|
+
"luckda.lowcode.painter.panel-section.actionEditor.name": "名称",
|
|
163
|
+
"luckda.lowcode.painter.panel-section.actionEditor.name.placeholder": "请输入行为名称",
|
|
164
|
+
"luckda.lowcode.painter.panel-section.actionEditor.serial": "资源串",
|
|
165
|
+
"luckda.lowcode.painter.panel-section.actionEditor.serialEffect": "越权效果",
|
|
166
|
+
"luckda.lowcode.painter.panel-section.actionEditor.riskLevel": "风险等级",
|
|
167
|
+
"luckda.lowcode.painter.panel-section.components.listeditor.add": "添加一项",
|
|
168
|
+
"luckda.lowcode.painter.panel-section.field-selector.placeholder": "请选择字段",
|
|
169
|
+
"luckda.lowcode.painter.advancePanel.events": "事件",
|
|
170
|
+
"luckda.lowcode.painter.advancePanel.addEventAction": "添加事件动作",
|
|
171
|
+
"luckda.lowcode.painter.actionBindModal.pageActions": "页面行为",
|
|
172
|
+
"luckda.lowcode.painter.actionBindModal.trigger": "触发器",
|
|
173
|
+
"luckda.lowcode.painter.actionBindModal.custom": "自定义动作",
|
|
174
|
+
"luckda.lowcode.painter.actionBindModal.coding": "动作编写",
|
|
175
|
+
"luckda.lowcode.painter.actionBindModal.bind": "绑定动作",
|
|
176
|
+
"luckda.lowcode.painter.actionBindModal.search": "搜索",
|
|
177
|
+
"luckda.lowcode.painter.actionBindModal.params": "配置参数",
|
|
178
|
+
"luckda.lowcode.painter.actionBindModal.params.info": "请勿随意修改配置参数结构和参数名称,参数异常可能会导致请求失败",
|
|
179
|
+
"luckda.lowcode.painter.actionBindModal.noActionSelected": "请在右侧选择行为项",
|
|
180
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.align.left": "居左",
|
|
181
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.align.center": "居中",
|
|
182
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.align.right": "居右",
|
|
183
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.none": "不固定",
|
|
184
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.left": "左",
|
|
185
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.right": "右",
|
|
186
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.width": "列宽",
|
|
187
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.align": "内容对齐",
|
|
188
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.headerAlign": "表头对齐",
|
|
189
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.pinned": "固定列",
|
|
190
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.tip": "过长提示",
|
|
191
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldColumn": "占列数",
|
|
192
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldRow": "占行数",
|
|
193
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldNote": "字段注释",
|
|
194
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldTip": "长说明",
|
|
195
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.placeholder": "默认提示",
|
|
196
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.isEqual": "唯一校验",
|
|
197
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.required": "是否必填",
|
|
198
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.display": "是否显示",
|
|
199
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.writable": "是否可写",
|
|
200
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.readonly": "是否只读",
|
|
201
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue": "默认值",
|
|
202
|
+
"luckda.lowcode.painter.settingTo": "设置为",
|
|
203
|
+
"luckda.lowcode.painter.setting": "设置",
|
|
204
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.rules": "校验规则",
|
|
205
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.addRules": "添加校验规则",
|
|
206
|
+
"luckda.lowcode.painter.delete.tip": "确定删除吗?",
|
|
207
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue.assign": "赋值事件",
|
|
208
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue.message.assign": "请选择赋值事件",
|
|
209
|
+
"luckda.lowcode.painter.expression": "表达式",
|
|
210
|
+
"luckda.lowcode.painter.message.expression": "请输入表达式",
|
|
211
|
+
"luckda.lowcode.painter.reset.tip": "确定重置吗?",
|
|
212
|
+
"luckda.lowcode.painter.reset": "重置",
|
|
213
|
+
"luckda.lowcode.painter.save": "保存",
|
|
214
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.attrs.conditionList": "条件列表",
|
|
215
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.attrs.settingCondition": "配置条件",
|
|
216
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.attrs.usergroup": "选择分组",
|
|
217
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.attrs.message.usergroup": "请选择登录人分组",
|
|
218
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.attrs.params": "参数名称",
|
|
219
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.attrs.message.params": "请输入参数名称",
|
|
220
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.attrs.contrary": "取反",
|
|
221
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.verifyType": "校验规则",
|
|
222
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyType": "请选择校验规则",
|
|
223
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.verifyScope": "校验类型",
|
|
224
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyScope": "请选择校验类型",
|
|
225
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.frontend": "前端",
|
|
226
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.backend": "后端",
|
|
227
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.errorMsg": "错误提示",
|
|
228
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.errorMsg": "请输入错误提示",
|
|
229
|
+
"luckda.lowcode.painter.components.fullscreen.tip": "全屏"
|
|
230
|
+
};
|