@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
|
@@ -17,7 +17,32 @@
|
|
|
17
17
|
{
|
|
18
18
|
"name": "Dialog",
|
|
19
19
|
"triggerWord": "dialog",
|
|
20
|
-
"completions": [
|
|
20
|
+
"completions": [
|
|
21
|
+
{
|
|
22
|
+
"label": "open",
|
|
23
|
+
"kind": "property",
|
|
24
|
+
"insertText": "open",
|
|
25
|
+
"documentation": " /**\r\n * 弹窗打开状态\r\n * @property\r\n */\r"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"label": "doOpen",
|
|
29
|
+
"kind": "method",
|
|
30
|
+
"insertText": "doOpen",
|
|
31
|
+
"documentation": " /**\r\n * 打开弹窗\r\n * @method\r\n */\r"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "doClose",
|
|
35
|
+
"kind": "method",
|
|
36
|
+
"insertText": "doClose",
|
|
37
|
+
"documentation": " /**\r\n * 关闭弹窗\r\n * @method\r\n */\r"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"label": "setTitle",
|
|
41
|
+
"kind": "method",
|
|
42
|
+
"insertText": "setTitle(title)",
|
|
43
|
+
"documentation": " /**\r\n * 设置弹窗标题\r\n * @method\r\n * @param {stirng} title -标题\r\n */\r"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
21
46
|
},
|
|
22
47
|
{
|
|
23
48
|
"name": "Drawer",
|
|
@@ -52,7 +77,20 @@
|
|
|
52
77
|
{
|
|
53
78
|
"name": "Form",
|
|
54
79
|
"triggerWord": "form",
|
|
55
|
-
"completions": [
|
|
80
|
+
"completions": [
|
|
81
|
+
{
|
|
82
|
+
"label": "getInstance",
|
|
83
|
+
"kind": "method",
|
|
84
|
+
"insertText": "getInstance",
|
|
85
|
+
"documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"label": "submit",
|
|
89
|
+
"kind": "method",
|
|
90
|
+
"insertText": "submit",
|
|
91
|
+
"documentation": " /**\r\n * 提交表格数据\r\n * @method\r\n */\r"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
56
94
|
},
|
|
57
95
|
{
|
|
58
96
|
"name": "Iframe",
|
|
@@ -99,6 +137,11 @@
|
|
|
99
137
|
"triggerWord": "pageheader",
|
|
100
138
|
"completions": []
|
|
101
139
|
},
|
|
140
|
+
{
|
|
141
|
+
"name": "PageLayout",
|
|
142
|
+
"triggerWord": "pagelayout",
|
|
143
|
+
"completions": []
|
|
144
|
+
},
|
|
102
145
|
{
|
|
103
146
|
"name": "PageModal",
|
|
104
147
|
"triggerWord": "pagemodal",
|
|
@@ -117,7 +160,14 @@
|
|
|
117
160
|
{
|
|
118
161
|
"name": "Table",
|
|
119
162
|
"triggerWord": "table",
|
|
120
|
-
"completions": [
|
|
163
|
+
"completions": [
|
|
164
|
+
{
|
|
165
|
+
"label": "getInstance",
|
|
166
|
+
"kind": "method",
|
|
167
|
+
"insertText": "getInstance",
|
|
168
|
+
"documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
121
171
|
},
|
|
122
172
|
{
|
|
123
173
|
"name": "Tabs",
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
"key": "onMount",
|
|
95
95
|
"name": "组件首次渲染时",
|
|
96
96
|
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
-
"func": "(params)
|
|
97
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"key": "onUnmount",
|
|
101
101
|
"name": "组件卸载时",
|
|
102
102
|
"desc": "在组件卸载时,执行方法。",
|
|
103
|
-
"func": "(params)
|
|
103
|
+
"func": "function onUnmount(params) {\n\t\n}"
|
|
104
104
|
}
|
|
105
105
|
]
|
|
106
106
|
}
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"key": "onPageMount",
|
|
37
37
|
"name": "组件首次渲染时",
|
|
38
38
|
"desc": "在组件首次渲染时,执行方法",
|
|
39
|
-
"func": "(
|
|
39
|
+
"func": "function onPageMount()=>{\n\t\n}"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"key": "onPageUnmount",
|
|
43
43
|
"name": "组件卸载时",
|
|
44
44
|
"desc": "在组件卸载时,执行方法。",
|
|
45
|
-
"func": "(
|
|
45
|
+
"func": "function onPageUnmount()=>{\n\t\n}"
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "PageLayout",
|
|
3
|
+
"name": "页面布局容器",
|
|
4
|
+
"icon": "icon-pagelayout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
10
|
+
"display": "lr",
|
|
11
|
+
"advance": {
|
|
12
|
+
"events": {}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "PageLayout",
|
|
3
|
+
"name": "页面布局容器",
|
|
4
|
+
"icon": "icon-pagelayout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "displaySetting",
|
|
18
|
+
"name": "展现形式",
|
|
19
|
+
"type": "group",
|
|
20
|
+
"props": [
|
|
21
|
+
{
|
|
22
|
+
"key": "display",
|
|
23
|
+
"name": "#展现形式",
|
|
24
|
+
"type": "_PageLayoutDisplay",
|
|
25
|
+
"default": "lr"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
31
|
+
"advance": {
|
|
32
|
+
"events": [
|
|
33
|
+
{
|
|
34
|
+
"key": "onMount",
|
|
35
|
+
"name": "组件首次渲染时",
|
|
36
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
37
|
+
"func": "function onMount() {\n\t\n}"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "onUnmount",
|
|
41
|
+
"name": "组件卸载时",
|
|
42
|
+
"desc": "在组件卸载时,执行方法。",
|
|
43
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
"key": "onMount",
|
|
99
99
|
"name": "组件首次渲染时",
|
|
100
100
|
"desc": "在组件首次渲染时,执行方法",
|
|
101
|
-
"func": "(
|
|
101
|
+
"func": "function onMount(){\n\t\n}"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"key": "onUnmount",
|
|
105
105
|
"name": "组件卸载时",
|
|
106
106
|
"desc": "在组件卸载时,执行方法。",
|
|
107
|
-
"func": "(
|
|
107
|
+
"func": "function onUnmount()=>{\n\t\n}"
|
|
108
108
|
}
|
|
109
109
|
]
|
|
110
110
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"groupName": "布局",
|
|
7
7
|
"desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
|
|
8
8
|
"order": 1,
|
|
9
|
-
"css": "background-color: transparent",
|
|
9
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
10
10
|
"display": {
|
|
11
11
|
"type": "normal",
|
|
12
12
|
"split": "horizontal",
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
|
-
"css": "background-color: transparent",
|
|
34
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
35
35
|
"advance": {
|
|
36
36
|
"events": [
|
|
37
37
|
{
|
|
38
38
|
"key": "onMount",
|
|
39
39
|
"name": "组件首次渲染时",
|
|
40
40
|
"desc": "在组件首次渲染时,执行方法",
|
|
41
|
-
"func": "(
|
|
41
|
+
"func": "function onMount() {\n\t\n}"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"key": "onUnmount",
|
|
45
45
|
"name": "组件卸载时",
|
|
46
46
|
"desc": "在组件卸载时,执行方法。",
|
|
47
|
-
"func": "(
|
|
47
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"key": "onChange",
|
|
51
51
|
"name": "尺寸变化事件",
|
|
52
52
|
"desc": "在面板尺寸发生变化时,执行方法",
|
|
53
|
-
"func": "(value)
|
|
53
|
+
"func": "function onChange(value) {\n\t\n}"
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
}
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"key": "dataset",
|
|
18
18
|
"name": "数据集",
|
|
19
19
|
"type": "_DataSetSelector",
|
|
20
|
+
"component": "table",
|
|
20
21
|
"next": {
|
|
21
22
|
"name": "字段配置",
|
|
22
23
|
"props": [
|
|
23
24
|
{
|
|
24
25
|
"key": "fields",
|
|
25
26
|
"name": "#字段配置器",
|
|
26
|
-
"type": "_FieldsSetting"
|
|
27
|
-
"component": "table"
|
|
27
|
+
"type": "_FieldsSetting"
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
30
|
}
|
|
@@ -383,55 +383,61 @@
|
|
|
383
383
|
"key": "onMount",
|
|
384
384
|
"name": "组件首次渲染时",
|
|
385
385
|
"desc": "在组件首次渲染时,执行方法",
|
|
386
|
-
"func": "(params)
|
|
386
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"key": "onUnmount",
|
|
390
390
|
"name": "组件卸载时",
|
|
391
391
|
"desc": "在组件卸载时,执行方法。",
|
|
392
|
-
"func": "()
|
|
392
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
395
|
"key": "onRowClick",
|
|
396
396
|
"name": "行单击",
|
|
397
397
|
"desc": "单击表格行时,执行方法",
|
|
398
|
-
"func": "(data, rowIndex, params)
|
|
398
|
+
"func": "function onRowClick(data, rowIndex, params) {\n\t\n}"
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
"key": "onRowDoubleClick",
|
|
402
402
|
"name": "行双击",
|
|
403
403
|
"desc": "双击表格行时,执行方法",
|
|
404
|
-
"func": "(data, rowIndex, params)
|
|
404
|
+
"func": "function onRowDoubleClick(data, rowIndex, params) {\n\t\n}"
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"key": "onRowSelected",
|
|
408
408
|
"name": "行选择",
|
|
409
409
|
"desc": "选中行时,执行方法",
|
|
410
|
-
"func": "(data, isSelected, SelectedRows, params)
|
|
410
|
+
"func": "function onRowSelected(data, isSelected, SelectedRows, params) {\n\t\n}"
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
"key": "onRowSelectChange",
|
|
414
414
|
"name": "行选择变化",
|
|
415
415
|
"desc": "行选中发生变化时,执行方法",
|
|
416
|
-
"func": "(rows, nodes, params)
|
|
416
|
+
"func": "function onRowSelectChange(rows, nodes, params) {\n\t\n}"
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
"key": "onRowDragged",
|
|
420
420
|
"name": "行拖拽后",
|
|
421
421
|
"desc": "拖拽行使其顺序发生变化后,执行方法",
|
|
422
|
-
"func": "(toId, fromId, params)
|
|
422
|
+
"func": "function onRowDragged(toId, fromId, params) {\n\t\n}"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"key": "onPagePublicResourceChanged",
|
|
426
|
+
"name": "页面共享资源变化后",
|
|
427
|
+
"desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
|
|
428
|
+
"func": "function onPagePublicResourceChanged(resource, prevResource, instance) {\n\t\n}"
|
|
423
429
|
},
|
|
424
430
|
{
|
|
425
431
|
"key": "afterInit",
|
|
426
432
|
"name": "初始化后的回调",
|
|
427
433
|
"desc": "组件及数据加载完成后,执行方法",
|
|
428
|
-
"func": "(res, dispatch, props)
|
|
434
|
+
"func": "function afterInit(res, dispatch, props) {\n\t\n}"
|
|
429
435
|
},
|
|
430
436
|
{
|
|
431
437
|
"key": "afterQuery",
|
|
432
438
|
"name": "数据读取回调",
|
|
433
439
|
"desc": "读取数据源后执行方法,返回接口中原始数据",
|
|
434
|
-
"func": "(res)
|
|
440
|
+
"func": "function afterQuery(res) {\n\t\n}"
|
|
435
441
|
}
|
|
436
442
|
]
|
|
437
443
|
}
|
|
@@ -98,19 +98,19 @@
|
|
|
98
98
|
"key": "onMount",
|
|
99
99
|
"name": "组件首次渲染时",
|
|
100
100
|
"desc": "在组件首次渲染时,执行方法",
|
|
101
|
-
"func": "(
|
|
101
|
+
"func": "function onMount() {\n\t\n}"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"key": "onUnmount",
|
|
105
105
|
"name": "组件卸载时",
|
|
106
106
|
"desc": "在组件卸载时,执行方法。",
|
|
107
|
-
"func": "(
|
|
107
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"key": "onTabClick",
|
|
111
111
|
"name": "tab被点击的回调",
|
|
112
112
|
"desc": "当tab被点击时, 执行方法",
|
|
113
|
-
"func": "(tabKey, e)
|
|
113
|
+
"func": "function onTabClick(tabKey, e) {\n\t\n}"
|
|
114
114
|
}
|
|
115
115
|
]
|
|
116
116
|
}
|
|
@@ -17,7 +17,18 @@
|
|
|
17
17
|
"key": "dataset",
|
|
18
18
|
"name": "数据集",
|
|
19
19
|
"desc": "选择系统中的可用树形数据集",
|
|
20
|
-
"type": "_DataSetSelector"
|
|
20
|
+
"type": "_DataSetSelector",
|
|
21
|
+
"component": "tree",
|
|
22
|
+
"next": {
|
|
23
|
+
"name": "字段配置",
|
|
24
|
+
"props": [
|
|
25
|
+
{
|
|
26
|
+
"key": "fields",
|
|
27
|
+
"name": "#字段配置器",
|
|
28
|
+
"type": "_FieldsSetting"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
21
32
|
},
|
|
22
33
|
{
|
|
23
34
|
"key": "title",
|
|
@@ -119,6 +130,32 @@
|
|
|
119
130
|
}
|
|
120
131
|
]
|
|
121
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"key": "selectSetting",
|
|
135
|
+
"name": "选中设置",
|
|
136
|
+
"type": "group",
|
|
137
|
+
"props": [
|
|
138
|
+
{
|
|
139
|
+
"key": "cancelSelect",
|
|
140
|
+
"name": "取消选中",
|
|
141
|
+
"desc": "是否可以取消选中",
|
|
142
|
+
"type": "switch",
|
|
143
|
+
"default": true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "defaultSelect",
|
|
147
|
+
"name": "默认选中",
|
|
148
|
+
"desc": "返回默认选中的数据主键",
|
|
149
|
+
"type": "_JSEditor",
|
|
150
|
+
"defaultCode": "function defaultSelect(treeData) { \n return []; \n}",
|
|
151
|
+
"mustConfirm": true,
|
|
152
|
+
"wrapper": "collapse",
|
|
153
|
+
"wrapperProps": {
|
|
154
|
+
"suppressIcon": true
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
122
159
|
{
|
|
123
160
|
"key": "IconSetting",
|
|
124
161
|
"name": "图标设置",
|
|
@@ -193,6 +230,7 @@
|
|
|
193
230
|
"default": {
|
|
194
231
|
"todoList": []
|
|
195
232
|
},
|
|
233
|
+
"defaultCode": "function onActionClick(data) {\n\n}",
|
|
196
234
|
"suppressDisplay": true,
|
|
197
235
|
"suppressMax": true,
|
|
198
236
|
"suppressMore": true,
|
|
@@ -279,31 +317,49 @@
|
|
|
279
317
|
"key": "onMount",
|
|
280
318
|
"name": "组件首次渲染时",
|
|
281
319
|
"desc": "在组件首次渲染时,执行方法",
|
|
282
|
-
"func": "(params)
|
|
320
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
283
321
|
},
|
|
284
322
|
{
|
|
285
323
|
"key": "onUnmount",
|
|
286
324
|
"name": "组件卸载时",
|
|
287
325
|
"desc": "在组件卸载时,执行方法。",
|
|
288
|
-
"func": "()
|
|
326
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
289
327
|
},
|
|
290
328
|
{
|
|
291
329
|
"key": "processDataSource",
|
|
292
330
|
"name": "数据预处理",
|
|
293
331
|
"desc": "数据渲染前预处理",
|
|
294
|
-
"func": "(data)
|
|
332
|
+
"func": "function processDataSource(data) {\n\t\n}"
|
|
295
333
|
},
|
|
296
334
|
{
|
|
297
335
|
"key": "onDoubleClick",
|
|
298
336
|
"name": "双击事件",
|
|
299
337
|
"desc": "树节点双击事件",
|
|
300
|
-
"func": "(e, rowData)
|
|
338
|
+
"func": "function onDoubleClick(e, rowData) {\n\t\n}"
|
|
301
339
|
},
|
|
302
340
|
{
|
|
303
341
|
"key": "onCheck",
|
|
304
342
|
"name": "复选框选择事件",
|
|
305
343
|
"desc": "点击复选框触发",
|
|
306
|
-
"func": "(checkedKeys, e)
|
|
344
|
+
"func": "function onCheck(checkedKeys, e) {\n\t\n}"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"key": "onSelect",
|
|
348
|
+
"name": "选中事件",
|
|
349
|
+
"desc": "节点选中事件",
|
|
350
|
+
"func": "function onSelect(checkedKeys, e) {\n\t\n}"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"key": "onDrop",
|
|
354
|
+
"name": "拖拽事件",
|
|
355
|
+
"desc": "节点拖拽事件",
|
|
356
|
+
"func": "function onDrop(info, dragInfo) {\n\t\n}"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"key": "onPagePublicResourceChanged",
|
|
360
|
+
"name": "页面共享资源变化后",
|
|
361
|
+
"desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
|
|
362
|
+
"func": "function onPagePublicResourceChanged(resource, prevResource, instance) {\n\t\n}"
|
|
307
363
|
}
|
|
308
364
|
]
|
|
309
365
|
}
|
|
@@ -42,7 +42,8 @@ var useRemoteSource = exports.useRemoteSource = function useRemoteSource() {
|
|
|
42
42
|
var PRIVATE_KEYS = ['componentList', 'componentMap'];
|
|
43
43
|
var _default = exports.default = function _default(_ref) {
|
|
44
44
|
var children = _ref.children,
|
|
45
|
-
code = _ref.code
|
|
45
|
+
code = _ref.code,
|
|
46
|
+
debug = _ref.debug;
|
|
46
47
|
var eventBus = (0, _EventBusProvider.useLDEventBus)();
|
|
47
48
|
var _useTodo = (0, _useTodo3.default)(),
|
|
48
49
|
_useTodo2 = (0, _slicedToArray2.default)(_useTodo, 3),
|
|
@@ -57,6 +58,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
57
58
|
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
58
59
|
pagePublicResource = _useSetState2[0],
|
|
59
60
|
setPagePublicResource = _useSetState2[1];
|
|
61
|
+
var prevPagePublicResource = (0, _ahooks.usePrevious)(pagePublicResource);
|
|
60
62
|
|
|
61
63
|
/**
|
|
62
64
|
* 组件列表
|
|
@@ -118,6 +120,12 @@ var _default = exports.default = function _default(_ref) {
|
|
|
118
120
|
* return:object
|
|
119
121
|
*/
|
|
120
122
|
var getUrlParams = (0, _ahooks.useMemoizedFn)(function () {});
|
|
123
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
124
|
+
eventBus.$publisher(topics.PAGE_PUBLIC_RESOURCE_CHANGED, {
|
|
125
|
+
resource: pagePublicResource,
|
|
126
|
+
prevResource: prevPagePublicResource
|
|
127
|
+
});
|
|
128
|
+
}, [pagePublicResource]);
|
|
121
129
|
var ctx = new Proxy((0, _objectSpread2.default)({
|
|
122
130
|
_register: _register,
|
|
123
131
|
_unregister: _unregister,
|
|
@@ -128,6 +136,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
128
136
|
callBehavior: callBehavior,
|
|
129
137
|
topics: topics,
|
|
130
138
|
PRIMARY_KEY: window.appConfig.constraintKeys.PRIMARY,
|
|
139
|
+
PARENT_KEY: window.appConfig.constraintKeys.PARENT,
|
|
131
140
|
getElementById: getElementById,
|
|
132
141
|
/**
|
|
133
142
|
* @method
|
|
@@ -164,6 +173,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
164
173
|
value: ctx
|
|
165
174
|
}, /*#__PURE__*/_react.default.createElement(_RemoteSourceProvider.default, {
|
|
166
175
|
code: code,
|
|
167
|
-
runtime: eventBus.runtime
|
|
176
|
+
runtime: eventBus.runtime,
|
|
177
|
+
debug: debug
|
|
168
178
|
}, children));
|
|
169
179
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.RemoteSourceContext = void 0;
|
|
9
|
-
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
-
var
|
|
10
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
12
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -20,12 +19,13 @@ var _usePageDataStore2 = _interopRequireDefault(require("../tools/usePageDataSto
|
|
|
20
19
|
var _dataProcess = require("../tools/dataProcess");
|
|
21
20
|
var _apiUrl = require("../../constants/api-url");
|
|
22
21
|
var _constants = require("../../constants");
|
|
23
|
-
var
|
|
22
|
+
var _helper = require("../tools/helper");
|
|
24
23
|
var RemoteSourceContext = exports.RemoteSourceContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
25
24
|
var _default = exports.default = function _default(_ref) {
|
|
26
25
|
var children = _ref.children,
|
|
27
26
|
code = _ref.code,
|
|
28
|
-
runtime = _ref.runtime
|
|
27
|
+
runtime = _ref.runtime,
|
|
28
|
+
debug = _ref.debug;
|
|
29
29
|
var _usePageDataStore = (0, _usePageDataStore2.default)(function (state) {
|
|
30
30
|
return {
|
|
31
31
|
initialize: state.initialize,
|
|
@@ -52,7 +52,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
52
52
|
}
|
|
53
53
|
}, []);
|
|
54
54
|
(0, _ahooks.useUnmount)(function () {
|
|
55
|
-
reset();
|
|
55
|
+
!debug && reset();
|
|
56
56
|
setRuntime(prevRuntime.current);
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -114,8 +114,48 @@ var _default = exports.default = function _default(_ref) {
|
|
|
114
114
|
fetchAllSerialsLoading = _useRequest4.loading,
|
|
115
115
|
runFetchAllSerials = _useRequest4.run,
|
|
116
116
|
refreshSerials = _useRequest4.refreshAsync;
|
|
117
|
+
|
|
118
|
+
// 获取导入导出行为下拉数据
|
|
119
|
+
var _useRequest5 = (0, _ahooks.useRequest)(_apiUrl.fetchAllBehaviorEx, {
|
|
120
|
+
manual: true,
|
|
121
|
+
onSuccess: function onSuccess(_ref5) {
|
|
122
|
+
var code = _ref5.code,
|
|
123
|
+
data = _ref5.data;
|
|
124
|
+
if (code === 1) {
|
|
125
|
+
setRemoteSource({
|
|
126
|
+
impTypeList: data.map(function (item) {
|
|
127
|
+
return {
|
|
128
|
+
key: item.code,
|
|
129
|
+
value: item.code,
|
|
130
|
+
label: item.name
|
|
131
|
+
};
|
|
132
|
+
})
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
runFetchAllBehaviorImport = _useRequest5.run;
|
|
138
|
+
var _useRequest6 = (0, _ahooks.useRequest)(_apiUrl.fetchAllBehaviorEx, {
|
|
139
|
+
manual: true,
|
|
140
|
+
onSuccess: function onSuccess(_ref6) {
|
|
141
|
+
var code = _ref6.code,
|
|
142
|
+
data = _ref6.data;
|
|
143
|
+
if (code === 1) {
|
|
144
|
+
setRemoteSource({
|
|
145
|
+
expTypeList: data.map(function (item) {
|
|
146
|
+
return {
|
|
147
|
+
key: item.code,
|
|
148
|
+
value: item.code,
|
|
149
|
+
label: item.name
|
|
150
|
+
};
|
|
151
|
+
})
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}),
|
|
156
|
+
runFetchAllBehaviorExport = _useRequest6.run;
|
|
117
157
|
(0, _ahooks.useAsyncEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
118
|
-
var fetchPageDataRes, data, list, detail,
|
|
158
|
+
var fetchPageDataRes, data, list, detail, source;
|
|
119
159
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
120
160
|
while (1) switch (_context.prev = _context.next) {
|
|
121
161
|
case 0:
|
|
@@ -126,30 +166,33 @@ var _default = exports.default = function _default(_ref) {
|
|
|
126
166
|
case 2:
|
|
127
167
|
fetchPageDataRes = _context.sent;
|
|
128
168
|
if (!(fetchPageDataRes.code === 1)) {
|
|
129
|
-
_context.next =
|
|
169
|
+
_context.next = 14;
|
|
130
170
|
break;
|
|
131
171
|
}
|
|
132
172
|
data = fetchPageDataRes.data, list = fetchPageDataRes.list, detail = fetchPageDataRes.detail;
|
|
133
|
-
|
|
134
|
-
|
|
173
|
+
source = detail[list[0]].source;
|
|
174
|
+
(0, _helper.setLDMetaAttrs)(data);
|
|
135
175
|
_context.next = 9;
|
|
136
176
|
return runFetchModlueData(data.dataModelKey, {
|
|
137
177
|
moduleCode: data.moduleCode
|
|
138
178
|
});
|
|
139
179
|
case 9:
|
|
180
|
+
runFetchAllBehaviorImport({
|
|
181
|
+
behaviorMode: 'IMPORT',
|
|
182
|
+
moduleCode: data.moduleCode
|
|
183
|
+
});
|
|
184
|
+
runFetchAllBehaviorExport({
|
|
185
|
+
behaviorMode: 'EXPORT',
|
|
186
|
+
moduleCode: data.moduleCode
|
|
187
|
+
});
|
|
140
188
|
runFetchAllDataset({
|
|
141
189
|
dataModelKey: data.dataModelKey
|
|
142
190
|
});
|
|
143
191
|
runFetchAllSerials({
|
|
144
192
|
uid: data.moduleId
|
|
145
193
|
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
relationship: data
|
|
149
|
-
}, info)
|
|
150
|
-
});
|
|
151
|
-
initialize((0, _dataProcess.decompress)(source));
|
|
152
|
-
case 13:
|
|
194
|
+
!debug && initialize((0, _dataProcess.decompress)(source));
|
|
195
|
+
case 14:
|
|
153
196
|
case "end":
|
|
154
197
|
return _context.stop();
|
|
155
198
|
}
|
|
@@ -54,6 +54,10 @@ function decompress(compressedData) {
|
|
|
54
54
|
*/
|
|
55
55
|
function findNodeAndParent(id, current) {
|
|
56
56
|
var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
57
|
+
if (!id) return {
|
|
58
|
+
node: null,
|
|
59
|
+
parent: null
|
|
60
|
+
};
|
|
57
61
|
if (!parent && current.props.id === id) {
|
|
58
62
|
return {
|
|
59
63
|
node: current,
|