@luck-design-biz/luckda 0.0.25-7 → 0.0.25-9
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/components/ComplexItem/service.js +21 -0
- package/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +7 -4
- package/es/components/LdAutoForm/index.js +18 -11
- package/es/components/LdFormList/index.js +14 -5
- package/es/components/LdGrid/index.js +19 -6
- package/es/components/LdGridForm/index.js +20 -9
- package/es/components/LdTree/index.js +30 -13
- package/es/helper/FromItems.js +177 -94
- package/es/helper/form.js +49 -11
- package/es/helper/props_config.js +17 -0
- package/es/locales/zh-CN.js +16 -11
- package/es/lowcode/constants/api-url.js +192 -28
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/constants/index.js +2 -1
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.json +3 -3
- package/es/lowcode/engine/meta/cardlist.props.json +13 -3
- package/es/lowcode/engine/meta/components-list.json +108 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +1 -0
- package/es/lowcode/engine/meta/dialog.props.json +12 -5
- package/es/lowcode/engine/meta/drawer.props.json +8 -20
- 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 +20 -0
- package/es/lowcode/engine/meta/form.props.json +15 -9
- 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/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.json +2 -2
- 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 +17 -11
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +1 -0
- package/es/lowcode/engine/meta/tree.props.json +62 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +13 -3
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +61 -18
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/helper.js +24 -2
- package/es/lowcode/engine/tools/usePageDataStore.js +4 -2
- package/es/lowcode/painter/Design.js +4 -4
- package/es/lowcode/painter/DesignOperator.js +103 -66
- package/es/lowcode/painter/DesignToolbar.js +15 -16
- package/es/lowcode/painter/Outline.js +10 -6
- package/es/lowcode/painter/Panel.js +60 -22
- package/es/lowcode/painter/components/ActionBindModal.js +33 -16
- package/es/lowcode/painter/components/AdvancePanel.js +37 -21
- package/es/lowcode/painter/components/AttrsPanel.js +16 -12
- package/es/lowcode/painter/components/FieldSelector.js +26 -13
- package/es/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- 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 +156 -24
- package/es/lowcode/painter/components/field-setting/index.js +32 -63
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +9 -15
- package/es/lowcode/painter/panel-section/DataSetSelector.js +29 -9
- package/es/lowcode/painter/panel-section/FieldsSetting.js +77 -33
- 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/SplitDisplay.js +25 -110
- 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/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +4 -2
- package/es/lowcode/view/Page.js +4 -4
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/es/lowcode/view/lc-components/Box/meta.json +3 -3
- package/es/lowcode/view/lc-components/Button/index.js +2 -6
- package/es/lowcode/view/lc-components/Button/meta.json +3 -3
- package/es/lowcode/view/lc-components/CardList/meta.json +13 -3
- package/es/lowcode/view/lc-components/Dialog/index.js +30 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +12 -5
- package/es/lowcode/view/lc-components/Drawer/meta.json +8 -20
- 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 +20 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/es/lowcode/view/lc-components/Form/index.js +188 -38
- package/es/lowcode/view/lc-components/Form/meta.json +15 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- 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/Layout/meta.json +2 -2
- package/es/lowcode/view/lc-components/Page/meta.json +2 -2
- 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/Section/meta.json +2 -2
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +11 -5
- package/es/lowcode/view/lc-components/Split/index.js +5 -9
- package/es/lowcode/view/lc-components/Split/meta.json +4 -4
- 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 +228 -24
- package/es/lowcode/view/lc-components/Table/meta.json +17 -11
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Tree/index.js +96 -29
- package/es/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/es/upload/FilesWall/index.js +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/gridForm.js +3 -2
- package/es/upload/FormItem/index.js +3 -5
- package/es/utils/form.js +16 -3
- package/es/utils/grid.js +8 -5
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/components/ComplexItem/service.js +28 -0
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +17 -10
- package/lib/components/LdFormList/index.js +13 -4
- package/lib/components/LdGrid/index.js +19 -6
- package/lib/components/LdGridForm/index.js +19 -8
- package/lib/components/LdTree/index.js +30 -13
- package/lib/helper/FromItems.js +175 -92
- package/lib/helper/form.js +47 -10
- package/lib/helper/props_config.js +23 -0
- package/lib/locales/zh-CN.js +16 -11
- package/lib/lowcode/constants/api-url.js +192 -28
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/constants/index.js +3 -2
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.json +3 -3
- package/lib/lowcode/engine/meta/cardlist.props.json +13 -3
- package/lib/lowcode/engine/meta/components-list.json +108 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +1 -0
- package/lib/lowcode/engine/meta/dialog.props.json +12 -5
- package/lib/lowcode/engine/meta/drawer.props.json +8 -20
- 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 +20 -0
- package/lib/lowcode/engine/meta/form.props.json +15 -9
- 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/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.json +2 -2
- 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 +17 -11
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +1 -0
- package/lib/lowcode/engine/meta/tree.props.json +62 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +12 -2
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +60 -17
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/helper.js +25 -1
- package/lib/lowcode/engine/tools/usePageDataStore.js +4 -2
- package/lib/lowcode/painter/Design.js +4 -4
- package/lib/lowcode/painter/DesignOperator.js +101 -64
- package/lib/lowcode/painter/DesignToolbar.js +14 -15
- package/lib/lowcode/painter/Outline.js +9 -5
- package/lib/lowcode/painter/Panel.js +59 -21
- package/lib/lowcode/painter/components/ActionBindModal.js +31 -14
- package/lib/lowcode/painter/components/AdvancePanel.js +36 -20
- package/lib/lowcode/painter/components/AttrsPanel.js +15 -11
- package/lib/lowcode/painter/components/FieldSelector.js +26 -13
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +5 -9
- 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 +153 -21
- package/lib/lowcode/painter/components/field-setting/index.js +32 -63
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +9 -15
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +29 -9
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +76 -32
- 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/SplitDisplay.js +24 -109
- 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/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +4 -2
- package/lib/lowcode/view/Page.js +4 -4
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Box/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Button/index.js +2 -6
- package/lib/lowcode/view/lc-components/Button/meta.json +3 -3
- package/lib/lowcode/view/lc-components/CardList/meta.json +13 -3
- package/lib/lowcode/view/lc-components/Dialog/index.js +32 -5
- package/lib/lowcode/view/lc-components/Dialog/meta.json +12 -5
- package/lib/lowcode/view/lc-components/Drawer/meta.json +8 -20
- 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 +20 -0
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/lib/lowcode/view/lc-components/Form/index.js +185 -35
- package/lib/lowcode/view/lc-components/Form/meta.json +15 -9
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- 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/Layout/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
- 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/Section/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +12 -6
- package/lib/lowcode/view/lc-components/Split/index.js +2 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
- 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 +226 -22
- package/lib/lowcode/view/lc-components/Table/meta.json +17 -11
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +4 -3
- package/lib/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Tree/index.js +93 -26
- package/lib/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/lib/upload/FilesWall/index.js +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/gridForm.js +3 -2
- package/lib/upload/FormItem/index.js +3 -5
- package/lib/utils/form.js +16 -3
- package/lib/utils/grid.js +8 -5
- package/package.json +3 -3
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
1
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
4
|
import { request } from '@luck-design-biz/base/utils';
|
|
4
5
|
import api from "@/services/ApiConfig";
|
|
5
|
-
import {
|
|
6
|
+
import { getLDMetaAttr } from "../engine/tools/helper";
|
|
6
7
|
|
|
7
8
|
// icon地址
|
|
8
9
|
export var ICONLIST_URL = '/public/icons/iconfont.json';
|
|
@@ -47,9 +48,9 @@ export function fetchDesignModlueData(_x2, _x3) {
|
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
50
|
* 获取preview时模块数据
|
|
50
|
-
* @param {*} dmCode
|
|
51
|
-
* @param {*} params
|
|
52
|
-
* @returns
|
|
51
|
+
* @param {*} dmCode
|
|
52
|
+
* @param {*} params
|
|
53
|
+
* @returns
|
|
53
54
|
*/
|
|
54
55
|
function _fetchDesignModlueData() {
|
|
55
56
|
_fetchDesignModlueData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, params) {
|
|
@@ -393,6 +394,12 @@ function _fetchAllBehavior() {
|
|
|
393
394
|
export function fetchAllSerials(_x19) {
|
|
394
395
|
return _fetchAllSerials.apply(this, arguments);
|
|
395
396
|
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* 读取导入导出数据源
|
|
400
|
+
* @param {{moduleCode, behaviorMode:[IMPORT, EXPORT]}} params
|
|
401
|
+
* @returns
|
|
402
|
+
*/
|
|
396
403
|
function _fetchAllSerials() {
|
|
397
404
|
_fetchAllSerials = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(params) {
|
|
398
405
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
@@ -409,8 +416,27 @@ function _fetchAllSerials() {
|
|
|
409
416
|
}));
|
|
410
417
|
return _fetchAllSerials.apply(this, arguments);
|
|
411
418
|
}
|
|
419
|
+
export function fetchAllBehaviorEx(_x20) {
|
|
420
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
421
|
+
}
|
|
422
|
+
function _fetchAllBehaviorEx() {
|
|
423
|
+
_fetchAllBehaviorEx = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
|
|
424
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
425
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
426
|
+
case 0:
|
|
427
|
+
return _context17.abrupt("return", request("".concat(API_PREFIX_PAGE, "/option/noAuthGetBehavior"), {
|
|
428
|
+
params: params
|
|
429
|
+
}));
|
|
430
|
+
case 1:
|
|
431
|
+
case "end":
|
|
432
|
+
return _context17.stop();
|
|
433
|
+
}
|
|
434
|
+
}, _callee17);
|
|
435
|
+
}));
|
|
436
|
+
return _fetchAllBehaviorEx.apply(this, arguments);
|
|
437
|
+
}
|
|
412
438
|
export function getBehaviorUrl() {
|
|
413
|
-
var mdCode =
|
|
439
|
+
var mdCode = getLDMetaAttr('dataModelKey');
|
|
414
440
|
return "".concat(api.API_HOST, "/").concat(mdCode, "/to/behavior/call");
|
|
415
441
|
}
|
|
416
442
|
|
|
@@ -420,7 +446,7 @@ export function getBehaviorUrl() {
|
|
|
420
446
|
* @param {*} data
|
|
421
447
|
* @returns
|
|
422
448
|
*/
|
|
423
|
-
export function fetchCallBehavior(
|
|
449
|
+
export function fetchCallBehavior(_x21, _x22) {
|
|
424
450
|
return _fetchCallBehavior.apply(this, arguments);
|
|
425
451
|
}
|
|
426
452
|
|
|
@@ -430,11 +456,11 @@ export function fetchCallBehavior(_x20, _x21) {
|
|
|
430
456
|
* @returns
|
|
431
457
|
*/
|
|
432
458
|
function _fetchCallBehavior() {
|
|
433
|
-
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
434
|
-
return _regeneratorRuntime().wrap(function
|
|
435
|
-
while (1) switch (
|
|
459
|
+
_fetchCallBehavior = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(params, data) {
|
|
460
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
461
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
436
462
|
case 0:
|
|
437
|
-
return
|
|
463
|
+
return _context18.abrupt("return", request(getBehaviorUrl(), {
|
|
438
464
|
method: 'POST',
|
|
439
465
|
data: data,
|
|
440
466
|
params: params,
|
|
@@ -444,54 +470,192 @@ function _fetchCallBehavior() {
|
|
|
444
470
|
}));
|
|
445
471
|
case 1:
|
|
446
472
|
case "end":
|
|
447
|
-
return
|
|
473
|
+
return _context18.stop();
|
|
448
474
|
}
|
|
449
|
-
},
|
|
475
|
+
}, _callee18);
|
|
450
476
|
}));
|
|
451
477
|
return _fetchCallBehavior.apply(this, arguments);
|
|
452
478
|
}
|
|
453
|
-
export function fetchClearCache(
|
|
479
|
+
export function fetchClearCache(_x23) {
|
|
454
480
|
return _fetchClearCache.apply(this, arguments);
|
|
455
481
|
}
|
|
456
482
|
|
|
457
483
|
/**
|
|
458
484
|
* 更新页面配置数据
|
|
459
|
-
* @param {*} data
|
|
460
|
-
* @returns
|
|
485
|
+
* @param {*} data
|
|
486
|
+
* @returns
|
|
461
487
|
*/
|
|
462
488
|
function _fetchClearCache() {
|
|
463
|
-
_fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
464
|
-
return _regeneratorRuntime().wrap(function
|
|
465
|
-
while (1) switch (
|
|
489
|
+
_fetchClearCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(params) {
|
|
490
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
491
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
466
492
|
case 0:
|
|
467
|
-
return
|
|
493
|
+
return _context19.abrupt("return", request("".concat(api.LUCKDA_HOST, "/cache/manage/noAuthModuleConfigClear"), {
|
|
468
494
|
params: params
|
|
469
495
|
}));
|
|
470
496
|
case 1:
|
|
471
497
|
case "end":
|
|
472
|
-
return
|
|
498
|
+
return _context19.stop();
|
|
473
499
|
}
|
|
474
|
-
},
|
|
500
|
+
}, _callee19);
|
|
475
501
|
}));
|
|
476
502
|
return _fetchClearCache.apply(this, arguments);
|
|
477
503
|
}
|
|
478
|
-
export function fetchUpdatePageData(
|
|
504
|
+
export function fetchUpdatePageData(_x24) {
|
|
479
505
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
480
506
|
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* 获取数据字典
|
|
510
|
+
* @param {{snamealias}} params
|
|
511
|
+
* @returns
|
|
512
|
+
*/
|
|
481
513
|
function _fetchUpdatePageData() {
|
|
482
|
-
_fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
483
|
-
return _regeneratorRuntime().wrap(function
|
|
484
|
-
while (1) switch (
|
|
514
|
+
_fetchUpdatePageData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(data) {
|
|
515
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
516
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
485
517
|
case 0:
|
|
486
|
-
return
|
|
518
|
+
return _context20.abrupt("return", request("".concat(API_PREFIX_PAGE, "/data/update"), {
|
|
487
519
|
method: 'POST',
|
|
488
520
|
data: data
|
|
489
521
|
}));
|
|
490
522
|
case 1:
|
|
491
523
|
case "end":
|
|
492
|
-
return
|
|
524
|
+
return _context20.stop();
|
|
493
525
|
}
|
|
494
|
-
},
|
|
526
|
+
}, _callee20);
|
|
495
527
|
}));
|
|
496
528
|
return _fetchUpdatePageData.apply(this, arguments);
|
|
529
|
+
}
|
|
530
|
+
export function fetchDataDic(_x25) {
|
|
531
|
+
return _fetchDataDic.apply(this, arguments);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* 导出excel
|
|
536
|
+
* @param {*} data
|
|
537
|
+
* @returns
|
|
538
|
+
*/
|
|
539
|
+
function _fetchDataDic() {
|
|
540
|
+
_fetchDataDic = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(params) {
|
|
541
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
542
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
543
|
+
case 0:
|
|
544
|
+
return _context21.abrupt("return", request("".concat(api.BASE_HOST, "/datadic/sysDatadic/noAuthReadAll"), {
|
|
545
|
+
params: params
|
|
546
|
+
}));
|
|
547
|
+
case 1:
|
|
548
|
+
case "end":
|
|
549
|
+
return _context21.stop();
|
|
550
|
+
}
|
|
551
|
+
}, _callee21);
|
|
552
|
+
}));
|
|
553
|
+
return _fetchDataDic.apply(this, arguments);
|
|
554
|
+
}
|
|
555
|
+
export function exportExcel(_x26, _x27) {
|
|
556
|
+
return _exportExcel.apply(this, arguments);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* 导入
|
|
561
|
+
* @param {*} params, data
|
|
562
|
+
* @returns
|
|
563
|
+
*/
|
|
564
|
+
function _exportExcel() {
|
|
565
|
+
_exportExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(params, data) {
|
|
566
|
+
var mdCode, FUNC_NAME;
|
|
567
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
568
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
569
|
+
case 0:
|
|
570
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
571
|
+
FUNC_NAME = params;
|
|
572
|
+
return _context22.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthExport").concat(FUNC_NAME), {
|
|
573
|
+
method: 'POST',
|
|
574
|
+
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
575
|
+
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
576
|
+
})
|
|
577
|
+
}));
|
|
578
|
+
case 3:
|
|
579
|
+
case "end":
|
|
580
|
+
return _context22.stop();
|
|
581
|
+
}
|
|
582
|
+
}, _callee22);
|
|
583
|
+
}));
|
|
584
|
+
return _exportExcel.apply(this, arguments);
|
|
585
|
+
}
|
|
586
|
+
export function uploadTemplate(_x28, _x29) {
|
|
587
|
+
return _uploadTemplate.apply(this, arguments);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// var successCount = 10;
|
|
591
|
+
// 获取导入进度数据
|
|
592
|
+
function _uploadTemplate() {
|
|
593
|
+
_uploadTemplate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(params, data) {
|
|
594
|
+
var mdCode, FUNC_NAME;
|
|
595
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
596
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
597
|
+
case 0:
|
|
598
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
599
|
+
FUNC_NAME = params;
|
|
600
|
+
return _context23.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthImport").concat(FUNC_NAME), {
|
|
601
|
+
method: 'POST',
|
|
602
|
+
data: data
|
|
603
|
+
}));
|
|
604
|
+
case 3:
|
|
605
|
+
case "end":
|
|
606
|
+
return _context23.stop();
|
|
607
|
+
}
|
|
608
|
+
}, _callee23);
|
|
609
|
+
}));
|
|
610
|
+
return _uploadTemplate.apply(this, arguments);
|
|
611
|
+
}
|
|
612
|
+
export function getFindexcelstate(_x30, _x31) {
|
|
613
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
614
|
+
}
|
|
615
|
+
function _getFindexcelstate() {
|
|
616
|
+
_getFindexcelstate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(params, data) {
|
|
617
|
+
var mdCode, FUNC_NAME;
|
|
618
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
619
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
620
|
+
case 0:
|
|
621
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
622
|
+
FUNC_NAME = params;
|
|
623
|
+
return _context24.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetProgress").concat(FUNC_NAME), {
|
|
624
|
+
method: 'POST',
|
|
625
|
+
data: _objectSpread(_objectSpread({}, data), {}, {
|
|
626
|
+
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST)
|
|
627
|
+
})
|
|
628
|
+
}));
|
|
629
|
+
case 3:
|
|
630
|
+
case "end":
|
|
631
|
+
return _context24.stop();
|
|
632
|
+
}
|
|
633
|
+
}, _callee24);
|
|
634
|
+
}));
|
|
635
|
+
return _getFindexcelstate.apply(this, arguments);
|
|
636
|
+
}
|
|
637
|
+
export function noAuthGetTemplateUrl(_x32) {
|
|
638
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
639
|
+
}
|
|
640
|
+
function _noAuthGetTemplateUrl() {
|
|
641
|
+
_noAuthGetTemplateUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(params) {
|
|
642
|
+
var mdCode;
|
|
643
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
644
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
645
|
+
case 0:
|
|
646
|
+
mdCode = getLDMetaAttr('dataModelKey');
|
|
647
|
+
return _context25.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/proxy/excel/noAuthGetTemplateUrl"), {
|
|
648
|
+
method: 'POST',
|
|
649
|
+
data: {
|
|
650
|
+
gatewayUrl: "".concat(window.location.origin).concat(api.API_HOST),
|
|
651
|
+
templateId: params
|
|
652
|
+
}
|
|
653
|
+
}));
|
|
654
|
+
case 2:
|
|
655
|
+
case "end":
|
|
656
|
+
return _context25.stop();
|
|
657
|
+
}
|
|
658
|
+
}, _callee25);
|
|
659
|
+
}));
|
|
660
|
+
return _noAuthGetTemplateUrl.apply(this, arguments);
|
|
497
661
|
}
|
|
@@ -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,11 +3,12 @@ export var RUNTIME = {
|
|
|
3
3
|
DESIGN: 'design',
|
|
4
4
|
PREVIEW: 'preview'
|
|
5
5
|
};
|
|
6
|
+
export var META_TAG_NAME = 'luckda-lcpage';
|
|
6
7
|
export var COOKIE_RUNTIME_KEY = 'Lowcode-Runtime';
|
|
7
8
|
export var COOKIE_VIRTUAL_ACCOUNT_KEY = 'Lowcode-Account';
|
|
8
|
-
export var DATA_MODEL_CODE_KEY = 'Lowcode-Data-Model-Code';
|
|
9
9
|
export var LC_COMPONENT_UNIT_KEY = 'luckda-unitmark';
|
|
10
10
|
export var LC_COMPONENT_UNIT = 'lc-component';
|
|
11
|
+
export var LC_FORMITEM_UNIT = 'lc-formitem';
|
|
11
12
|
export var LC_BUILDIN_UNIT_KEY = {
|
|
12
13
|
PAGE_ROOT: 'page_root',
|
|
13
14
|
PAGE_HEADER: 'page_header',
|
|
@@ -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
|
}
|
|
@@ -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",
|
|
@@ -1,4 +1,106 @@
|
|
|
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": "布局",
|
|
@@ -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": "分组",
|
|
@@ -71,6 +71,13 @@
|
|
|
71
71
|
"type": "switch",
|
|
72
72
|
"default": false
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"key": "destroyOnClose",
|
|
76
|
+
"name": "关闭销毁",
|
|
77
|
+
"desc": "关闭时销毁对话框里的子元素",
|
|
78
|
+
"type": "switch",
|
|
79
|
+
"default": true
|
|
80
|
+
},
|
|
74
81
|
{
|
|
75
82
|
"key": "mask",
|
|
76
83
|
"name": "显示遮罩",
|
|
@@ -119,31 +126,31 @@
|
|
|
119
126
|
"key": "onMount",
|
|
120
127
|
"name": "组件首次渲染时",
|
|
121
128
|
"desc": "在组件首次渲染时,执行方法",
|
|
122
|
-
"func": "()
|
|
129
|
+
"func": "function onMount() {\n\t\n}"
|
|
123
130
|
},
|
|
124
131
|
{
|
|
125
132
|
"key": "onUnmount",
|
|
126
133
|
"name": "组件卸载时",
|
|
127
134
|
"desc": "在组件卸载时,执行方法。",
|
|
128
|
-
"func": "()
|
|
135
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
129
136
|
},
|
|
130
137
|
{
|
|
131
138
|
"key": "onOpen",
|
|
132
139
|
"name": "对话框打开时",
|
|
133
140
|
"desc": "在对话框打开时,执行方法",
|
|
134
|
-
"func": "()
|
|
141
|
+
"func": "function onOpen() {\n\t\n}"
|
|
135
142
|
},
|
|
136
143
|
{
|
|
137
144
|
"key": "onClose",
|
|
138
145
|
"name": "对话框关闭时",
|
|
139
146
|
"desc": "在对话框打开时,执行方法,promise反馈false无法截断关闭",
|
|
140
|
-
"func": "()
|
|
147
|
+
"func": "function onClose() {\n\t\n}"
|
|
141
148
|
},
|
|
142
149
|
{
|
|
143
150
|
"key": "onOk",
|
|
144
151
|
"name": "确定按钮点击",
|
|
145
152
|
"desc": "点击确定按钮时,执行方法",
|
|
146
|
-
"func": "()
|
|
153
|
+
"func": "function onOk() {\n\t\n}"
|
|
147
154
|
}
|
|
148
155
|
]
|
|
149
156
|
}
|
|
@@ -100,43 +100,31 @@
|
|
|
100
100
|
"key": "onMount",
|
|
101
101
|
"name": "组件首次渲染时",
|
|
102
102
|
"desc": "在组件首次渲染时,执行方法",
|
|
103
|
-
"func": "(
|
|
103
|
+
"func": "function onMount() {\n\t\n}"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"key": "onUnmount",
|
|
107
107
|
"name": "组件卸载时",
|
|
108
108
|
"desc": "在组件卸载时,执行方法。",
|
|
109
|
-
"func": "(
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"key": "onMount",
|
|
113
|
-
"name": "组件首次渲染时",
|
|
114
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
115
|
-
"func": "(params)=>{\n\t\n}"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"key": "onUnmount",
|
|
119
|
-
"name": "组件卸载时",
|
|
120
|
-
"desc": "在组件卸载时,执行方法。",
|
|
121
|
-
"func": "(params)=>{\n\t\n}"
|
|
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
|
}
|