@luck-design-biz/luckda 0.0.25-1 → 0.0.25-11
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/ComplexItem/index.js +92 -0
- package/es/{lowcode/painter/services/toolbar.js → components/ComplexItem/service.js} +7 -11
- package/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +7 -4
- package/es/components/LdAutoForm/index.js +34 -11
- package/es/components/LdFormList/index.js +39 -23
- package/es/components/LdGrid/index.js +21 -7
- package/es/components/LdGridForm/index.js +32 -11
- package/es/components/LdTree/index.js +33 -15
- package/es/helper/FromItems.js +177 -94
- package/es/helper/form.js +55 -14
- package/es/helper/props_config.js +17 -0
- package/es/locales/zh-CN.js +26 -11
- package/es/lowcode/constants/api-url.js +354 -104
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/constants/index.js +4 -2
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +5 -2
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +5 -2
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +4 -4
- package/es/lowcode/engine/meta/button.props.json +4 -4
- package/es/lowcode/engine/meta/cardlist.props.json +14 -4
- package/es/lowcode/engine/meta/components-list.json +109 -1
- package/es/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/es/lowcode/engine/meta/dialog.props.json +80 -43
- package/es/lowcode/engine/meta/drawer.props.json +9 -21
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +63 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/es/lowcode/engine/meta/fielddate.props.json +47 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +14 -0
- package/es/lowcode/engine/meta/fielddict.props.json +44 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +48 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +62 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +31 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +13 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +49 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielduser.props.json +82 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/es/lowcode/engine/meta/form.props.default.json +4 -5
- package/es/lowcode/engine/meta/form.props.json +44 -35
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.default.json +8 -1
- package/es/lowcode/engine/meta/imex.props.json +54 -22
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/link.props.json +1 -1
- package/es/lowcode/engine/meta/page.props.json +2 -2
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.default.json +4 -6
- package/es/lowcode/engine/meta/section.props.json +52 -49
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +4 -4
- package/es/lowcode/engine/meta/table.props.json +19 -13
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.default.json +2 -0
- package/es/lowcode/engine/meta/tree.props.json +71 -8
- package/es/lowcode/engine/provider/ContextProvider/index.js +21 -35
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +89 -37
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/diff.js +60 -0
- package/es/lowcode/engine/tools/helper.js +47 -26
- package/es/lowcode/engine/tools/useCanvasRender.js +8 -9
- package/es/lowcode/engine/tools/usePageDataStore.js +331 -0
- package/es/lowcode/engine/tools/usePromiseState.js +8 -10
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/painter/Design.js +41 -6
- package/es/lowcode/painter/DesignOperator.js +112 -88
- package/es/lowcode/painter/DesignToolbar.js +280 -36
- package/es/lowcode/painter/Outline.js +12 -10
- package/es/lowcode/painter/Panel.js +84 -46
- package/es/lowcode/painter/components/ActionBindModal.js +38 -27
- package/es/lowcode/painter/components/AdvancePanel.js +37 -21
- package/es/lowcode/painter/components/AttrsPanel.js +45 -34
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/es/lowcode/painter/components/FieldSelector.js +26 -13
- package/es/lowcode/painter/components/ListEditor.js +8 -2
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/es/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
- package/es/lowcode/painter/components/field-setting/SettingUI.js +182 -31
- package/es/lowcode/painter/components/field-setting/index.js +40 -61
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/index.js +1 -28
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +25 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +55 -28
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/DataSetSelector.js +30 -7
- package/es/lowcode/painter/panel-section/FieldsSetting.js +124 -55
- package/es/lowcode/painter/panel-section/I18nInput.js +20 -0
- package/es/lowcode/painter/panel-section/ImpExp.js +99 -14
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +108 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +95 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/es/lowcode/painter/panel-section/SplitDisplay.js +25 -110
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +1 -1
- package/es/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/es/lowcode/painter/panel-section/TableTopFilter.js +23 -13
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/es/lowcode/painter/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/design.less +11 -4
- package/es/lowcode/painter/style/list-editor.less +36 -0
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +1 -1
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +20 -5
- package/es/lowcode/view/Canvas.js +6 -7
- package/es/lowcode/view/Page.js +5 -6
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Box/meta.json +4 -4
- package/es/lowcode/view/lc-components/Button/index.js +2 -6
- package/es/lowcode/view/lc-components/Button/meta.json +4 -4
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +14 -4
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -12
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +119 -19
- package/es/lowcode/view/lc-components/Dialog/meta.json +73 -43
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +9 -21
- package/es/lowcode/view/lc-components/FieldColor/meta.json +63 -0
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +39 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +45 -0
- package/es/lowcode/view/lc-components/FieldDict/meta.json +44 -0
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +44 -0
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +73 -0
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +48 -0
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +20 -0
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +26 -0
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +58 -0
- package/es/lowcode/view/lc-components/FieldString/meta.json +62 -0
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +31 -0
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +49 -0
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +71 -0
- package/es/lowcode/view/lc-components/FieldUser/meta.json +82 -0
- package/es/lowcode/view/lc-components/FieldYear/meta.json +35 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +61 -9
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/es/lowcode/view/lc-components/Form/index.js +401 -66
- package/es/lowcode/view/lc-components/Form/meta.json +44 -35
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +470 -11
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +2 -2
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +13 -21
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Link/meta.json +1 -1
- package/es/lowcode/view/lc-components/Page/meta.json +2 -2
- package/es/lowcode/view/lc-components/PageContent/index.js +8 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/es/lowcode/view/lc-components/PageHeader/index.js +5 -6
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +63 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +32 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +12 -15
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +25 -2
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Section/index.js +114 -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 +19 -22
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Split/index.js +7 -11
- package/es/lowcode/view/lc-components/Split/meta.json +4 -4
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +78 -57
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +420 -0
- package/es/lowcode/view/lc-components/Table/index.js +294 -47
- package/es/lowcode/view/lc-components/Table/meta.json +19 -13
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -20
- package/es/lowcode/view/lc-components/Tabs/index.js +27 -12
- package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Text/meta.json +2 -2
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tree/index.js +103 -29
- package/es/lowcode/view/lc-components/Tree/meta.json +71 -9
- package/es/lowcode/view/lc-components/Wrapper.js +10 -12
- package/es/services.js +0 -24
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +422 -0
- package/es/upload/FilesWall/index.less +74 -0
- package/es/upload/Form/gridForm.js +10 -5
- package/es/upload/Form/index.js +2 -1
- package/es/upload/FormItem/index.js +8 -9
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +16 -3
- package/es/utils/grid.js +8 -5
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/{lowcode/painter/services/toolbar.js → components/ComplexItem/service.js} +8 -12
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +33 -10
- package/lib/components/LdFormList/index.js +38 -22
- package/lib/components/LdGrid/index.js +21 -7
- package/lib/components/LdGridForm/index.js +30 -9
- package/lib/components/LdTree/index.js +33 -15
- package/lib/helper/FromItems.js +175 -92
- package/lib/helper/form.js +53 -13
- package/lib/helper/props_config.js +23 -0
- package/lib/locales/zh-CN.js +26 -11
- package/lib/lowcode/constants/api-url.js +355 -104
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/constants/index.js +5 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +7 -4
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +3 -2
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +6 -3
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +4 -4
- package/lib/lowcode/engine/meta/button.props.json +4 -4
- package/lib/lowcode/engine/meta/cardlist.props.json +14 -4
- package/lib/lowcode/engine/meta/components-list.json +109 -1
- package/lib/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/lib/lowcode/engine/meta/dialog.props.json +80 -43
- package/lib/lowcode/engine/meta/drawer.props.json +9 -21
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +63 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +39 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +47 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +44 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +44 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +73 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +48 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +20 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +26 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +58 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +62 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +31 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +13 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +49 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +71 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +82 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +12 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +37 -0
- package/lib/lowcode/engine/meta/form.props.default.json +4 -5
- package/lib/lowcode/engine/meta/form.props.json +44 -35
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
- package/lib/lowcode/engine/meta/imex.props.json +54 -22
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/link.props.json +1 -1
- package/lib/lowcode/engine/meta/page.props.json +2 -2
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.default.json +4 -6
- package/lib/lowcode/engine/meta/section.props.json +52 -49
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +4 -4
- package/lib/lowcode/engine/meta/table.props.json +19 -13
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.default.json +2 -0
- package/lib/lowcode/engine/meta/tree.props.json +71 -8
- package/lib/lowcode/engine/provider/ContextProvider/index.js +37 -35
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +86 -34
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/diff.js +67 -0
- package/lib/lowcode/engine/tools/helper.js +48 -25
- package/lib/lowcode/engine/tools/useCanvasRender.js +6 -7
- package/lib/lowcode/engine/tools/usePageDataStore.js +338 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +6 -8
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/painter/Design.js +39 -4
- package/lib/lowcode/painter/DesignOperator.js +109 -85
- package/lib/lowcode/painter/DesignToolbar.js +277 -33
- package/lib/lowcode/painter/Outline.js +10 -8
- package/lib/lowcode/painter/Panel.js +82 -44
- package/lib/lowcode/painter/components/ActionBindModal.js +36 -25
- package/lib/lowcode/painter/components/AdvancePanel.js +36 -20
- package/lib/lowcode/painter/components/AttrsPanel.js +44 -33
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +5 -2
- package/lib/lowcode/painter/components/FieldSelector.js +26 -13
- package/lib/lowcode/painter/components/ListEditor.js +8 -2
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +13 -3
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +179 -28
- package/lib/lowcode/painter/components/field-setting/index.js +40 -61
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/index.js +1 -30
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +32 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +7 -4
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +4 -3
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +53 -25
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +30 -7
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +121 -52
- package/lib/lowcode/painter/panel-section/I18nInput.js +27 -0
- package/lib/lowcode/painter/panel-section/ImpExp.js +99 -13
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +114 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +103 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +24 -109
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +5 -4
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +22 -12
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +2 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/design.less +11 -4
- package/lib/lowcode/painter/style/list-editor.less +36 -0
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +1 -1
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +21 -5
- package/lib/lowcode/view/Canvas.js +5 -6
- package/lib/lowcode/view/Page.js +5 -6
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Box/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Button/index.js +2 -6
- package/lib/lowcode/view/lc-components/Button/meta.json +4 -4
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +14 -4
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -11
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/index.js +119 -19
- package/lib/lowcode/view/lc-components/Dialog/meta.json +73 -43
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +9 -21
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +63 -0
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +39 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +45 -0
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +44 -0
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +44 -0
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +73 -0
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +48 -0
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +20 -0
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +26 -0
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +58 -0
- package/lib/lowcode/view/lc-components/FieldString/meta.json +62 -0
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +31 -0
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +49 -0
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +71 -0
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +82 -0
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +35 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +58 -7
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/lib/lowcode/view/lc-components/Form/index.js +396 -61
- package/lib/lowcode/view/lc-components/Form/meta.json +44 -35
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/index.js +468 -9
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +2 -2
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +11 -19
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Link/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
- package/lib/lowcode/view/lc-components/PageContent/index.js +7 -8
- package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/lib/lowcode/view/lc-components/PageHeader/index.js +4 -5
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +71 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +40 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +11 -14
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +25 -2
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Section/index.js +113 -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 +18 -21
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js +4 -8
- package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +75 -55
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +428 -0
- package/lib/lowcode/view/lc-components/Table/index.js +292 -45
- package/lib/lowcode/view/lc-components/Table/meta.json +19 -13
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +9 -18
- package/lib/lowcode/view/lc-components/Tabs/index.js +26 -11
- package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +100 -26
- package/lib/lowcode/view/lc-components/Tree/meta.json +71 -9
- package/lib/lowcode/view/lc-components/Wrapper.js +11 -12
- package/lib/services.js +0 -25
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +429 -0
- package/lib/upload/FilesWall/index.less +74 -0
- package/lib/upload/Form/gridForm.js +10 -5
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/FormItem/index.js +8 -9
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +16 -3
- package/lib/utils/grid.js +8 -5
- package/package.json +175 -171
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export var COMPONENT_MOUNT = 'component-mount';
|
|
5
5
|
// 组件的卸载事件
|
|
6
6
|
export var COMPONENT_UNMOUNT = 'component-unmount';
|
|
7
|
+
// 页面公共资源变化事件
|
|
8
|
+
export var PAGE_PUBLIC_RESOURCE_CHANGED = 'page-pubilc-resource-changed';
|
|
7
9
|
|
|
8
10
|
/******************************** 通用Topic结束 ********************************/
|
|
9
11
|
|
|
@@ -3,10 +3,12 @@ export var RUNTIME = {
|
|
|
3
3
|
DESIGN: 'design',
|
|
4
4
|
PREVIEW: 'preview'
|
|
5
5
|
};
|
|
6
|
-
export var
|
|
7
|
-
export var
|
|
6
|
+
export var META_TAG_NAME = 'luckda-lcpage';
|
|
7
|
+
export var COOKIE_RUNTIME_KEY = 'Lowcode-Runtime';
|
|
8
|
+
export var COOKIE_VIRTUAL_ACCOUNT_KEY = 'Lowcode-Account';
|
|
8
9
|
export var LC_COMPONENT_UNIT_KEY = 'luckda-unitmark';
|
|
9
10
|
export var LC_COMPONENT_UNIT = 'lc-component';
|
|
11
|
+
export var LC_FORMITEM_UNIT = 'lc-formitem';
|
|
10
12
|
export var LC_BUILDIN_UNIT_KEY = {
|
|
11
13
|
PAGE_ROOT: 'page_root',
|
|
12
14
|
PAGE_HEADER: 'page_header',
|
|
@@ -6,15 +6,18 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
6
6
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
7
7
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
8
8
|
var _excluded = ["options", "onChange"];
|
|
9
|
+
import React from 'react';
|
|
9
10
|
import { Select } from 'luck-design/antd';
|
|
10
11
|
import Strategy from "./Strategy";
|
|
11
12
|
var _TYPE_ = 'select';
|
|
12
13
|
var SelectComp = function SelectComp(_ref) {
|
|
13
14
|
var options = _ref.options,
|
|
14
|
-
|
|
15
|
+
_onChange = _ref.onChange,
|
|
15
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
17
|
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
17
|
-
onChange: onChange
|
|
18
|
+
onChange: function onChange(val) {
|
|
19
|
+
return _onChange(val);
|
|
20
|
+
},
|
|
18
21
|
getPopupContainer: function getPopupContainer() {
|
|
19
22
|
return document.getElementById('lc-design-workspace');
|
|
20
23
|
}
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
3
3
|
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
-
import { useRef } from 'react';
|
|
6
|
+
import React, { useRef } from 'react';
|
|
7
7
|
import { Input } from 'luck-design/antd';
|
|
8
8
|
import { debounce } from 'lodash';
|
|
9
9
|
import Strategy from "./Strategy";
|
|
@@ -3,17 +3,20 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
3
3
|
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
4
4
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import React from 'react';
|
|
6
7
|
import { Switch } from 'luck-design/antd';
|
|
7
8
|
import Strategy from "./Strategy";
|
|
8
9
|
var _TYPE_ = 'switch';
|
|
9
10
|
var SwitchComp = function SwitchComp(_ref) {
|
|
10
11
|
var defaultValue = _ref.defaultValue,
|
|
11
|
-
|
|
12
|
+
_onChange = _ref.onChange,
|
|
12
13
|
size = _ref.size;
|
|
13
14
|
return /*#__PURE__*/React.createElement(Switch, {
|
|
14
15
|
defaultChecked: defaultValue,
|
|
15
16
|
size: size,
|
|
16
|
-
onChange: onChange
|
|
17
|
+
onChange: function onChange(val) {
|
|
18
|
+
return _onChange(val);
|
|
19
|
+
}
|
|
17
20
|
});
|
|
18
21
|
};
|
|
19
22
|
var SelectStrategy = /*#__PURE__*/function (_Strategy) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"component": "Box",
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "盒子",
|
|
4
4
|
"desc": "盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。",
|
|
5
5
|
"icon": "icon-box",
|
|
6
6
|
"group": "container",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"key": "onMount",
|
|
22
22
|
"name": "组件首次渲染时",
|
|
23
23
|
"desc": "在组件首次渲染时,执行方法",
|
|
24
|
-
"func": "(params)
|
|
24
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"key": "onUnmount",
|
|
28
28
|
"name": "组件卸载时",
|
|
29
29
|
"desc": "在组件卸载时,执行方法。",
|
|
30
|
-
"func": "(params)
|
|
30
|
+
"func": "function onUnmount(params) {\n\t\n}"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"key": "onClick",
|
|
34
34
|
"name": "点击事件",
|
|
35
35
|
"desc": "点击文本时,执行方法",
|
|
36
|
-
"func": "(e)
|
|
36
|
+
"func": "function onClick(e) {\n\t\n}"
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
39
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{
|
|
17
17
|
"key": "title",
|
|
18
18
|
"name": "标题",
|
|
19
|
-
"type": "
|
|
19
|
+
"type": "_I18nInput",
|
|
20
20
|
"repositioning": true,
|
|
21
21
|
"default": "按钮"
|
|
22
22
|
},
|
|
@@ -108,19 +108,19 @@
|
|
|
108
108
|
"key": "onMount",
|
|
109
109
|
"name": "组件首次渲染时",
|
|
110
110
|
"desc": "在组件首次渲染时,执行方法",
|
|
111
|
-
"func": "(
|
|
111
|
+
"func": "function onMount() {\n\t\n}"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"key": "onUnmount",
|
|
115
115
|
"name": "组件卸载时",
|
|
116
116
|
"desc": "在组件卸载时,执行方法。",
|
|
117
|
-
"func": "(
|
|
117
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"key": "onClick",
|
|
121
121
|
"name": "点击事件",
|
|
122
122
|
"desc": "点击文本时,执行方法",
|
|
123
|
-
"func": "(e)
|
|
123
|
+
"func": "function onClick(e) {\n\t\n}"
|
|
124
124
|
}
|
|
125
125
|
]
|
|
126
126
|
}
|
|
@@ -15,9 +15,19 @@
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"key": "dataset",
|
|
18
|
-
"name": "
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"name": "数据集",
|
|
19
|
+
"type": "_DataSetSelector",
|
|
20
|
+
"component": "table",
|
|
21
|
+
"next": {
|
|
22
|
+
"name": "字段配置",
|
|
23
|
+
"props": [
|
|
24
|
+
{
|
|
25
|
+
"key": "fields",
|
|
26
|
+
"name": "#字段配置器",
|
|
27
|
+
"type": "_FieldsSetting"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
21
31
|
},
|
|
22
32
|
{
|
|
23
33
|
"key": "autoLoad",
|
|
@@ -57,7 +67,7 @@
|
|
|
57
67
|
"key": "actionTitle",
|
|
58
68
|
"name": "操作列标题",
|
|
59
69
|
"desc": "操作列的标题",
|
|
60
|
-
"type": "
|
|
70
|
+
"type": "_I18nInput",
|
|
61
71
|
"default": "操作列"
|
|
62
72
|
},
|
|
63
73
|
{
|
|
@@ -1,11 +1,113 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"group": "field",
|
|
4
|
+
"groupName": "表单项",
|
|
5
|
+
"components": [
|
|
6
|
+
{
|
|
7
|
+
"component": "FieldColor",
|
|
8
|
+
"name": "颜色",
|
|
9
|
+
"desc": "颜色类型表单项",
|
|
10
|
+
"icon": "icon-fieldstring"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"component": "FieldComplex",
|
|
14
|
+
"name": "复合",
|
|
15
|
+
"desc": "复合类型表单项",
|
|
16
|
+
"icon": "icon-fieldstring"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"component": "FieldDate",
|
|
20
|
+
"name": "日期",
|
|
21
|
+
"desc": "日期类型表单项",
|
|
22
|
+
"icon": "icon-fieldstring"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"component": "FieldDict",
|
|
26
|
+
"name": "数据字典",
|
|
27
|
+
"desc": "数据字典类型表单项",
|
|
28
|
+
"icon": "icon-fieldstring"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"component": "FieldEditor",
|
|
32
|
+
"name": "富文本",
|
|
33
|
+
"desc": "富文本类型表单项",
|
|
34
|
+
"icon": "icon-fieldstring"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"component": "FieldGroup",
|
|
38
|
+
"name": "组维度",
|
|
39
|
+
"desc": "组维度类型表单项",
|
|
40
|
+
"icon": "icon-fieldstring"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"component": "FieldNumber",
|
|
44
|
+
"name": "数字",
|
|
45
|
+
"desc": "数字类型表单项",
|
|
46
|
+
"icon": "icon-fieldstring"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"component": "FieldRadio",
|
|
50
|
+
"name": "单选组件",
|
|
51
|
+
"desc": "圆形单选表单项",
|
|
52
|
+
"icon": "icon-fieldstring"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"component": "FieldRegion",
|
|
56
|
+
"name": "省市区选择",
|
|
57
|
+
"desc": "省市区级联选择表单项",
|
|
58
|
+
"icon": "icon-fieldstring"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"component": "FieldSelect",
|
|
62
|
+
"name": "下拉选择器",
|
|
63
|
+
"desc": "下拉选择器,支持单选、多选、tag标签选择",
|
|
64
|
+
"icon": "icon-fieldstring"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"component": "FieldString",
|
|
68
|
+
"name": "字符串",
|
|
69
|
+
"desc": "字符串类型表单项",
|
|
70
|
+
"icon": "icon-fieldstring"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"component": "FieldSwitch",
|
|
74
|
+
"name": "开关",
|
|
75
|
+
"desc": "开关类型表单项",
|
|
76
|
+
"icon": "icon-fieldstring"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"component": "FieldTextarea",
|
|
80
|
+
"name": "文本框",
|
|
81
|
+
"desc": "文本框类型表单项",
|
|
82
|
+
"icon": "icon-fieldstring"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"component": "FieldUpload",
|
|
86
|
+
"name": "附件上传",
|
|
87
|
+
"desc": "附件上传表单项",
|
|
88
|
+
"icon": "icon-fieldstring"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"component": "FieldUser",
|
|
92
|
+
"name": "用户",
|
|
93
|
+
"desc": "用户类型表单项",
|
|
94
|
+
"icon": "icon-fieldstring"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"component": "FieldYear",
|
|
98
|
+
"name": "年份选择",
|
|
99
|
+
"desc": "年份选择表单项",
|
|
100
|
+
"icon": "icon-fieldstring"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
2
104
|
{
|
|
3
105
|
"group": "container",
|
|
4
106
|
"groupName": "布局",
|
|
5
107
|
"components": [
|
|
6
108
|
{
|
|
7
109
|
"component": "Box",
|
|
8
|
-
"name": "
|
|
110
|
+
"name": "盒子",
|
|
9
111
|
"desc": "盒子是一个用于包裹其他组件的包装器,是一个单纯的容器组件,可以对其设置样式达到想要的效果。",
|
|
10
112
|
"icon": "icon-box"
|
|
11
113
|
},
|
|
@@ -15,6 +117,12 @@
|
|
|
15
117
|
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
16
118
|
"icon": "icon-layout"
|
|
17
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"component": "PageLayout",
|
|
122
|
+
"name": "页面布局容器",
|
|
123
|
+
"desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
|
|
124
|
+
"icon": "icon-pagelayout"
|
|
125
|
+
},
|
|
18
126
|
{
|
|
19
127
|
"component": "Section",
|
|
20
128
|
"name": "分组",
|
|
@@ -8,13 +8,19 @@
|
|
|
8
8
|
"order": 1,
|
|
9
9
|
"title": "对话框",
|
|
10
10
|
"width": "700px",
|
|
11
|
-
"height": "
|
|
12
|
-
"fullScreen": false,
|
|
13
|
-
"fullable": true,
|
|
11
|
+
"height": "50vh",
|
|
14
12
|
"defaultOpen": false,
|
|
15
|
-
"
|
|
16
|
-
"
|
|
13
|
+
"destroyOnClose": true,
|
|
14
|
+
"mask": true,
|
|
15
|
+
"okText": "确定",
|
|
16
|
+
"cancelText": "取消",
|
|
17
17
|
"footer": true,
|
|
18
|
+
"btnGroup": {
|
|
19
|
+
"display": "button",
|
|
20
|
+
"max": 2,
|
|
21
|
+
"moreText": "操作",
|
|
22
|
+
"todoList": []
|
|
23
|
+
},
|
|
18
24
|
"advance": {
|
|
19
25
|
"events": {}
|
|
20
26
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"props": [
|
|
10
10
|
{
|
|
11
11
|
"key": "id",
|
|
12
|
-
"
|
|
12
|
+
"name": "唯一标识",
|
|
13
13
|
"type": "string",
|
|
14
14
|
"disabled": true
|
|
15
15
|
},
|
|
@@ -17,70 +17,107 @@
|
|
|
17
17
|
"key": "title",
|
|
18
18
|
"name": "标题",
|
|
19
19
|
"desc": "对话框左上角的标题",
|
|
20
|
-
"type": "
|
|
20
|
+
"type": "_I18nInput",
|
|
21
21
|
"default": "对话框"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"key": "width",
|
|
25
|
-
"name": "
|
|
26
|
-
"
|
|
27
|
-
"
|
|
25
|
+
"name": "对话框宽度",
|
|
26
|
+
"type": "_WidthHeight",
|
|
27
|
+
"options": [
|
|
28
|
+
{
|
|
29
|
+
"label": "px",
|
|
30
|
+
"value": "px"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"label": "%",
|
|
34
|
+
"value": "%"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "vw",
|
|
38
|
+
"value": "vw"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"label": "A",
|
|
42
|
+
"value": "auto"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
28
45
|
"default": "700px"
|
|
29
46
|
},
|
|
30
47
|
{
|
|
31
48
|
"key": "height",
|
|
32
|
-
"name": "
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"default": true
|
|
49
|
+
"name": "内容区高度",
|
|
50
|
+
"type": "_WidthHeight",
|
|
51
|
+
"options": [
|
|
52
|
+
{
|
|
53
|
+
"label": "px",
|
|
54
|
+
"value": "px"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"label": "vh",
|
|
58
|
+
"value": "vh"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"label": "A",
|
|
62
|
+
"value": "auto"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"default": "50vh"
|
|
50
66
|
},
|
|
51
67
|
{
|
|
52
68
|
"key": "defaultOpen",
|
|
53
69
|
"name": "默认显示",
|
|
54
70
|
"desc": "默认是否显示",
|
|
55
|
-
"type": "
|
|
71
|
+
"type": "switch",
|
|
56
72
|
"default": false
|
|
57
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"key": "destroyOnClose",
|
|
76
|
+
"name": "关闭销毁",
|
|
77
|
+
"desc": "关闭时销毁对话框里的子元素",
|
|
78
|
+
"type": "switch",
|
|
79
|
+
"default": true
|
|
80
|
+
},
|
|
58
81
|
{
|
|
59
82
|
"key": "mask",
|
|
60
83
|
"name": "显示遮罩",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"default": false
|
|
84
|
+
"type": "switch",
|
|
85
|
+
"default": true
|
|
64
86
|
},
|
|
65
87
|
{
|
|
66
|
-
"key": "
|
|
67
|
-
"name": "
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
88
|
+
"key": "okText",
|
|
89
|
+
"name": "确认文字",
|
|
90
|
+
"type": "_I18nInput",
|
|
91
|
+
"default": "确定"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "cancelText",
|
|
95
|
+
"name": "取消文字",
|
|
96
|
+
"type": "_I18nInput",
|
|
97
|
+
"default": "取消"
|
|
71
98
|
},
|
|
72
99
|
{
|
|
73
100
|
"key": "footer",
|
|
74
|
-
"name": "
|
|
101
|
+
"name": "显示footer",
|
|
75
102
|
"desc": "是否显示底部按钮区域",
|
|
76
|
-
"type": "
|
|
103
|
+
"type": "switch",
|
|
77
104
|
"default": true
|
|
78
105
|
},
|
|
79
106
|
{
|
|
80
107
|
"key": "btnGroup",
|
|
81
108
|
"name": "按钮组",
|
|
82
109
|
"desc": "底部按钮区域的按钮组(参考按钮配置)",
|
|
83
|
-
"type": "
|
|
110
|
+
"type": "_ActionsEditor",
|
|
111
|
+
"default": {
|
|
112
|
+
"display": "button",
|
|
113
|
+
"max": 2,
|
|
114
|
+
"moreText": "操作",
|
|
115
|
+
"todoList": []
|
|
116
|
+
},
|
|
117
|
+
"wrapper": "collapse",
|
|
118
|
+
"wrapperProps": {
|
|
119
|
+
"suppressIcon": true
|
|
120
|
+
}
|
|
84
121
|
}
|
|
85
122
|
],
|
|
86
123
|
"advance": {
|
|
@@ -89,31 +126,31 @@
|
|
|
89
126
|
"key": "onMount",
|
|
90
127
|
"name": "组件首次渲染时",
|
|
91
128
|
"desc": "在组件首次渲染时,执行方法",
|
|
92
|
-
"func": "(
|
|
129
|
+
"func": "function onMount() {\n\t\n}"
|
|
93
130
|
},
|
|
94
131
|
{
|
|
95
132
|
"key": "onUnmount",
|
|
96
133
|
"name": "组件卸载时",
|
|
97
134
|
"desc": "在组件卸载时,执行方法。",
|
|
98
|
-
"func": "(
|
|
135
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
99
136
|
},
|
|
100
137
|
{
|
|
101
138
|
"key": "onOpen",
|
|
102
139
|
"name": "对话框打开时",
|
|
103
140
|
"desc": "在对话框打开时,执行方法",
|
|
104
|
-
"func": "(
|
|
141
|
+
"func": "function onOpen() {\n\t\n}"
|
|
105
142
|
},
|
|
106
143
|
{
|
|
107
144
|
"key": "onClose",
|
|
108
145
|
"name": "对话框关闭时",
|
|
109
146
|
"desc": "在对话框打开时,执行方法,promise反馈false无法截断关闭",
|
|
110
|
-
"func": "(
|
|
147
|
+
"func": "function onClose() {\n\t\n}"
|
|
111
148
|
},
|
|
112
149
|
{
|
|
113
|
-
"key": "
|
|
114
|
-
"name": "
|
|
115
|
-
"desc": "
|
|
116
|
-
"func": "(
|
|
150
|
+
"key": "onOk",
|
|
151
|
+
"name": "确定按钮点击",
|
|
152
|
+
"desc": "点击确定按钮时,执行方法",
|
|
153
|
+
"func": "function onOk() {\n\t\n}"
|
|
117
154
|
}
|
|
118
155
|
]
|
|
119
156
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"key": "title",
|
|
18
18
|
"name": "标题",
|
|
19
19
|
"desc": "抽屉左上角的标题",
|
|
20
|
-
"type": "
|
|
20
|
+
"type": "_I18nInput",
|
|
21
21
|
"default": "抽屉"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
@@ -100,43 +100,31 @@
|
|
|
100
100
|
"key": "onMount",
|
|
101
101
|
"name": "组件首次渲染时",
|
|
102
102
|
"desc": "在组件首次渲染时,执行方法",
|
|
103
|
-
"func": "(
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"key": "onUnmount",
|
|
107
|
-
"name": "组件卸载时",
|
|
108
|
-
"desc": "在组件卸载时,执行方法。",
|
|
109
|
-
"func": "(params)=>{\n\t\n}"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"key": "onMount",
|
|
113
|
-
"name": "组件首次渲染时",
|
|
114
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
115
|
-
"func": "(params)=>{\n\t\n}"
|
|
103
|
+
"func": "function onMount() {\n\t\n}"
|
|
116
104
|
},
|
|
117
105
|
{
|
|
118
106
|
"key": "onUnmount",
|
|
119
107
|
"name": "组件卸载时",
|
|
120
108
|
"desc": "在组件卸载时,执行方法。",
|
|
121
|
-
"func": "(
|
|
109
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
122
110
|
},
|
|
123
111
|
{
|
|
124
112
|
"key": "onOpen",
|
|
125
113
|
"name": "抽屉打开时",
|
|
126
114
|
"desc": "在抽屉打开时,执行方法",
|
|
127
|
-
"func": "(
|
|
115
|
+
"func": "function onOpen() {\n\t\n}"
|
|
128
116
|
},
|
|
129
117
|
{
|
|
130
118
|
"key": "onClose",
|
|
131
119
|
"name": "抽屉关闭时",
|
|
132
120
|
"desc": "在抽屉打开时,执行方法,promise反馈false无法截断关闭",
|
|
133
|
-
"func": "(
|
|
121
|
+
"func": "function onClose() {\n\t\n}"
|
|
134
122
|
},
|
|
135
123
|
{
|
|
136
|
-
"key": "
|
|
137
|
-
"name": "
|
|
138
|
-
"desc": "
|
|
139
|
-
"func": "(
|
|
124
|
+
"key": "onOk",
|
|
125
|
+
"name": "确定按钮点击",
|
|
126
|
+
"desc": "点击确定按钮时,执行方法",
|
|
127
|
+
"func": "function onOk() {\n\t\n}"
|
|
140
128
|
}
|
|
141
129
|
]
|
|
142
130
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "FieldColor",
|
|
3
|
+
"name": "颜色",
|
|
4
|
+
"group": "field",
|
|
5
|
+
"desc": "颜色类型表单项",
|
|
6
|
+
"icon": "icon-fieldstring",
|
|
7
|
+
"groupName": "表单项",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "enableAlpha",
|
|
12
|
+
"name": "启用透明度",
|
|
13
|
+
"type": "switch",
|
|
14
|
+
"default": false
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "placement",
|
|
18
|
+
"name": "弹出层位置",
|
|
19
|
+
"type": "select",
|
|
20
|
+
"options": [
|
|
21
|
+
{
|
|
22
|
+
"label": "左上",
|
|
23
|
+
"value": "topLeft"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "右上",
|
|
27
|
+
"value": "topRight"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"label": "左下",
|
|
31
|
+
"value": "bottomLeft"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "右下",
|
|
35
|
+
"value": "bottomRight"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"default": "topLeft"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"advance": {
|
|
42
|
+
"events": [
|
|
43
|
+
{
|
|
44
|
+
"key": "onChange",
|
|
45
|
+
"name": "色值变化事件",
|
|
46
|
+
"desc": "在色值变化时,执行方法",
|
|
47
|
+
"func": "function onChange(colors) {\n\t\n}"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"key": "onOpen",
|
|
51
|
+
"name": "打开面板事件",
|
|
52
|
+
"desc": "在打开面板时,执行方法",
|
|
53
|
+
"func": "function onOpen(colors) {\n\t\n}"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"key": "onClose",
|
|
57
|
+
"name": "关闭面板事件",
|
|
58
|
+
"desc": "关闭面板时,执行方法",
|
|
59
|
+
"func": "function onClose(colors) {\n\t\n}"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|