@luck-design-biz/luckda 1.0.2-13 → 1.0.2-14
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/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/Builder/index.js +13 -10
- package/es/components/LDActions/index.less +70 -70
- package/es/components/LdAutoForm/index.js +5 -4
- package/es/components/LdCom/index.js +3 -2
- package/es/components/LdFormList/index.js +4 -3
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.js +5 -4
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.less +42 -42
- package/es/helper/FromItems.js +64 -5
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +5 -4
- package/es/helper/ldComBuild.js +16 -11
- package/es/locales/zh-CN.js +41 -5
- package/es/lowcode/constants/api-url.js +309 -261
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/constants/index.js +5 -4
- package/es/lowcode/engine/meta/components-list.json +12 -6
- package/es/lowcode/engine/meta/fielddate.props.default.json +1 -0
- package/es/lowcode/engine/meta/fielddate.props.json +48 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +35 -30
- package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/es/lowcode/engine/meta/proxy.props.json +66 -0
- package/es/lowcode/engine/provider/ContextProvider/index.js +87 -49
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +49 -43
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +11 -5
- package/es/lowcode/engine/provider/ContextProvider/useTodo.js +2 -4
- package/es/lowcode/engine/provider/EventBusProvider.js +14 -4
- package/es/lowcode/engine/provider/PageProxyProvider.js +95 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/helper.js +25 -1
- package/es/lowcode/engine/tools/initDS.js +4 -4
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +129 -27
- package/es/lowcode/painter/DesignToolbar.js +88 -173
- package/es/lowcode/painter/components/AdvancePanel.js +28 -10
- package/es/lowcode/painter/components/Collapse.js +26 -26
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/TipIcon.js +12 -4
- package/es/lowcode/painter/components/TreeEditor.js +10 -10
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/field-setting/SettingUI.js +56 -4
- package/es/lowcode/painter/components/field-setting/index.js +24 -1
- package/es/lowcode/painter/components/shortcut-modal/KeyIcon.js +11 -0
- package/es/lowcode/painter/components/shortcut-modal/index.js +208 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +10 -19
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
- package/es/lowcode/painter/panel-section/ConditionCheck.js +0 -1
- package/es/lowcode/painter/panel-section/DataSetSelector.js +6 -3
- package/es/lowcode/painter/panel-section/FieldsSetting.js +1 -1
- package/es/lowcode/painter/panel-section/Icon.js +23 -23
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
- package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +7 -4
- package/es/lowcode/painter/panel-section/JSEditor/index.js +15 -5
- package/es/lowcode/painter/panel-section/JSEditor/index.less +4 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/ProxyLinker.js +137 -0
- package/es/lowcode/painter/panel-section/ProxyParams.js +28 -0
- package/es/lowcode/painter/panel-section/ProxyParamsSetter.js +240 -0
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/es/lowcode/painter/style/action-bind-modal.less +104 -104
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +28 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +91 -91
- package/es/lowcode/painter/style/design.less +178 -178
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +56 -56
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/history.less +46 -46
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +97 -97
- package/es/lowcode/painter/style/number-input.less +19 -19
- package/es/lowcode/painter/style/outline.less +30 -30
- package/es/lowcode/painter/style/page-layout-display.less +27 -27
- package/es/lowcode/painter/style/page-vars.less +25 -25
- package/es/lowcode/painter/style/panel-attrs.less +47 -47
- package/es/lowcode/painter/style/panel-item.less +55 -54
- package/es/lowcode/painter/style/panel.less +100 -100
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +7 -7
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/split-display.less +18 -18
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/painter/svg/code.svg +3 -3
- package/es/lowcode/painter/svg/expect.svg +9 -9
- package/es/lowcode/preview/DebugTool.js +78 -0
- package/es/lowcode/preview/DebugToolDetail.js +103 -0
- package/es/lowcode/preview/index.js +10 -17
- package/es/lowcode/preview/useDebugSettings.js +62 -0
- package/es/lowcode/view/Canvas.js +5 -1
- package/es/lowcode/view/Page.js +8 -3
- package/es/lowcode/view/lc-components/Box/index.js +4 -4
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/index.js +33 -33
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/index.js +126 -123
- package/es/lowcode/view/lc-components/CardList/meta.json +332 -332
- package/es/lowcode/view/lc-components/Dialog/index.js +14 -13
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/es/lowcode/view/lc-components/Dialog/meta.json +224 -224
- package/es/lowcode/view/lc-components/Drawer/index.js +15 -13
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/es/lowcode/view/lc-components/FieldDate/meta.json +188 -140
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +137 -137
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +166 -166
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/es/lowcode/view/lc-components/FieldYear/meta.json +128 -128
- package/es/lowcode/view/lc-components/Form/index.js +23 -20
- package/es/lowcode/view/lc-components/Form/meta.json +629 -629
- package/es/lowcode/view/lc-components/GroupTree/index.js +23 -23
- package/es/lowcode/view/lc-components/GroupTree/index.less +11 -11
- package/es/lowcode/view/lc-components/GroupTree/meta.json +82 -82
- package/es/lowcode/view/lc-components/Iframe/meta.json +31 -31
- package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +134 -134
- package/es/lowcode/view/lc-components/Image/index.less +27 -27
- package/es/lowcode/view/lc-components/Image/meta.json +149 -149
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/es/lowcode/view/lc-components/JSX/meta.json +29 -29
- package/es/lowcode/view/lc-components/Layout/index.js +16 -16
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/es/lowcode/view/lc-components/Link/index.less +15 -15
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Page/meta.json +61 -61
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/es/lowcode/view/lc-components/Proxy/FunctionDesign.js +17 -0
- package/es/lowcode/view/lc-components/Proxy/FunctionLive.js +23 -0
- package/es/lowcode/view/lc-components/Proxy/FunctionPreview.js +23 -0
- package/es/lowcode/view/lc-components/Proxy/index.js +42 -0
- package/es/lowcode/view/lc-components/Proxy/index.less +5 -0
- package/es/lowcode/view/lc-components/Proxy/meta.json +66 -0
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +108 -108
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/index.js +156 -149
- package/es/lowcode/view/lc-components/Table/meta.json +443 -443
- package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/meta.json +56 -56
- package/es/lowcode/view/lc-components/Tree/index.js +99 -96
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +353 -353
- package/es/lowcode/view/lc-components/Wrapper.js +7 -1
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +98 -98
- package/es/lowcode/view/style/page.less +7 -7
- package/es/upload/FilesWall/index.js +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +15 -15
- package/es/utils/form.js +21 -21
- package/lib/components/Builder/index.js +13 -10
- package/lib/components/LDActions/index.less +70 -70
- package/lib/components/LdAutoForm/index.js +3 -2
- package/lib/components/LdCom/index.js +3 -2
- package/lib/components/LdFormList/index.js +3 -2
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.js +3 -2
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.less +42 -42
- package/lib/helper/FromItems.js +64 -5
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +4 -4
- package/lib/helper/ldComBuild.js +14 -9
- package/lib/locales/zh-CN.js +41 -5
- package/lib/lowcode/constants/api-url.js +309 -260
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/constants/index.js +6 -5
- package/lib/lowcode/engine/meta/components-list.json +12 -6
- package/lib/lowcode/engine/meta/fielddate.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +48 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +35 -30
- package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/lib/lowcode/engine/meta/proxy.props.json +66 -0
- package/lib/lowcode/engine/provider/ContextProvider/index.js +87 -49
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +50 -44
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +10 -4
- package/lib/lowcode/engine/provider/ContextProvider/useTodo.js +1 -3
- package/lib/lowcode/engine/provider/EventBusProvider.js +14 -4
- package/lib/lowcode/engine/provider/PageProxyProvider.js +103 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/helper.js +25 -0
- package/lib/lowcode/engine/tools/initDS.js +4 -4
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +126 -24
- package/lib/lowcode/painter/DesignToolbar.js +84 -169
- package/lib/lowcode/painter/components/AdvancePanel.js +27 -9
- package/lib/lowcode/painter/components/Collapse.js +26 -26
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/TipIcon.js +12 -4
- package/lib/lowcode/painter/components/TreeEditor.js +10 -10
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +55 -3
- package/lib/lowcode/painter/components/field-setting/index.js +24 -1
- package/lib/lowcode/painter/components/shortcut-modal/KeyIcon.js +18 -0
- package/lib/lowcode/painter/components/shortcut-modal/index.js +215 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +9 -18
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
- package/lib/lowcode/painter/panel-section/ConditionCheck.js +0 -1
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +6 -3
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +1 -1
- package/lib/lowcode/painter/panel-section/Icon.js +23 -23
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
- package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +7 -4
- package/lib/lowcode/painter/panel-section/JSEditor/index.js +14 -4
- package/lib/lowcode/painter/panel-section/JSEditor/index.less +4 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/ProxyLinker.js +145 -0
- package/lib/lowcode/painter/panel-section/ProxyParams.js +35 -0
- package/lib/lowcode/painter/panel-section/ProxyParamsSetter.js +248 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/lib/lowcode/painter/style/action-bind-modal.less +104 -104
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +28 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +91 -91
- package/lib/lowcode/painter/style/design.less +178 -178
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +56 -56
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/history.less +46 -46
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +97 -97
- package/lib/lowcode/painter/style/number-input.less +19 -19
- package/lib/lowcode/painter/style/outline.less +30 -30
- package/lib/lowcode/painter/style/page-layout-display.less +27 -27
- package/lib/lowcode/painter/style/page-vars.less +25 -25
- package/lib/lowcode/painter/style/panel-attrs.less +47 -47
- package/lib/lowcode/painter/style/panel-item.less +55 -54
- package/lib/lowcode/painter/style/panel.less +100 -100
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +7 -7
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/split-display.less +18 -18
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/painter/svg/code.svg +3 -3
- package/lib/lowcode/painter/svg/expect.svg +9 -9
- package/lib/lowcode/preview/DebugTool.js +86 -0
- package/lib/lowcode/preview/DebugToolDetail.js +111 -0
- package/lib/lowcode/preview/index.js +10 -18
- package/lib/lowcode/preview/useDebugSettings.js +69 -0
- package/lib/lowcode/view/Canvas.js +5 -1
- package/lib/lowcode/view/Page.js +8 -3
- package/lib/lowcode/view/lc-components/Box/index.js +4 -4
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/index.js +33 -33
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/index.js +126 -123
- package/lib/lowcode/view/lc-components/CardList/meta.json +332 -332
- package/lib/lowcode/view/lc-components/Dialog/index.js +14 -13
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/lib/lowcode/view/lc-components/Dialog/meta.json +224 -224
- package/lib/lowcode/view/lc-components/Drawer/index.js +15 -13
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +188 -140
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +137 -137
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +166 -166
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +128 -128
- package/lib/lowcode/view/lc-components/Form/index.js +23 -20
- package/lib/lowcode/view/lc-components/Form/meta.json +629 -629
- package/lib/lowcode/view/lc-components/GroupTree/index.js +23 -23
- package/lib/lowcode/view/lc-components/GroupTree/index.less +11 -11
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +82 -82
- package/lib/lowcode/view/lc-components/Iframe/meta.json +31 -31
- package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -134
- package/lib/lowcode/view/lc-components/Image/index.less +27 -27
- package/lib/lowcode/view/lc-components/Image/meta.json +149 -149
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/lib/lowcode/view/lc-components/JSX/meta.json +29 -29
- package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Link/index.less +15 -15
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +61 -61
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/lib/lowcode/view/lc-components/Proxy/FunctionDesign.js +24 -0
- package/lib/lowcode/view/lc-components/Proxy/FunctionLive.js +30 -0
- package/lib/lowcode/view/lc-components/Proxy/FunctionPreview.js +30 -0
- package/lib/lowcode/view/lc-components/Proxy/index.js +50 -0
- package/lib/lowcode/view/lc-components/Proxy/index.less +5 -0
- package/lib/lowcode/view/lc-components/Proxy/meta.json +66 -0
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -108
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/index.js +156 -149
- package/lib/lowcode/view/lc-components/Table/meta.json +443 -443
- package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
- package/lib/lowcode/view/lc-components/Tree/index.js +99 -96
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +353 -353
- package/lib/lowcode/view/lc-components/Wrapper.js +6 -0
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +98 -98
- package/lib/lowcode/view/style/page.less +7 -7
- package/lib/upload/FilesWall/index.js +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +15 -15
- package/lib/utils/form.js +21 -21
- package/lowcode.js +1 -1
- package/package.json +175 -175
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -32,6 +32,8 @@ export var COMPONENT_DRAG_OVER = 'component-drag-over';
|
|
|
32
32
|
export var COMPONENT_DRAG_END = 'component-drag-end';
|
|
33
33
|
// 保存事件
|
|
34
34
|
export var DESIGN_OPERATE_SAVE = 'design-operate-save';
|
|
35
|
+
// 快捷键触发事件
|
|
36
|
+
export var DESIGN_SHORTCUT_EMIT = 'desdign-shortcut-emit';
|
|
35
37
|
|
|
36
38
|
/******************************* Design Topic结束 *******************************/
|
|
37
39
|
|
|
@@ -5,10 +5,11 @@ export var RUNTIME = {
|
|
|
5
5
|
};
|
|
6
6
|
export var META_TAG_NAME = 'luckda-lcpage';
|
|
7
7
|
export var COOKIE_VIRTUAL_ACCOUNT_KEY = 'Lowcode-Account';
|
|
8
|
-
export var LC_RUNTIME_KEY = '
|
|
9
|
-
export var LC_COMPONENT_UNIT_KEY = '
|
|
10
|
-
export var
|
|
11
|
-
export var
|
|
8
|
+
export var LC_RUNTIME_KEY = 'LD-Runtime';
|
|
9
|
+
export var LC_COMPONENT_UNIT_KEY = 'LD-__unitmark';
|
|
10
|
+
export var LC_PAGEPROXY_KEY = 'LD-__pageproxy';
|
|
11
|
+
export var LC_COMPONENT_UNIT = 'LD-__component';
|
|
12
|
+
export var LC_FORMITEM_UNIT = 'LD-__formitem';
|
|
12
13
|
export var LC_BUILDIN_UNIT_KEY = {
|
|
13
14
|
PAGE_ROOT: 'page_root',
|
|
14
15
|
PAGE_HEADER: 'page_header',
|
|
@@ -69,18 +69,18 @@
|
|
|
69
69
|
"desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
|
|
70
70
|
"icon": "icon-iframe"
|
|
71
71
|
},
|
|
72
|
-
{
|
|
73
|
-
"component": "Image",
|
|
74
|
-
"name": "图片",
|
|
75
|
-
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
76
|
-
"icon": "icon-image"
|
|
77
|
-
},
|
|
78
72
|
{
|
|
79
73
|
"component": "ImEx",
|
|
80
74
|
"name": "导入导出",
|
|
81
75
|
"desc": "支持导入导出数据的按钮组件。",
|
|
82
76
|
"icon": "icon-imex"
|
|
83
77
|
},
|
|
78
|
+
{
|
|
79
|
+
"component": "Image",
|
|
80
|
+
"name": "图片",
|
|
81
|
+
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
82
|
+
"icon": "icon-image"
|
|
83
|
+
},
|
|
84
84
|
{
|
|
85
85
|
"component": "JSX",
|
|
86
86
|
"name": "jsx代码段",
|
|
@@ -123,6 +123,12 @@
|
|
|
123
123
|
"desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
|
|
124
124
|
"icon": "icon-tree"
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
"component": "Proxy",
|
|
128
|
+
"name": "页面代理",
|
|
129
|
+
"desc": "用于代理其他页面的内容,用于实现已有页面的服用。",
|
|
130
|
+
"icon": "icon-proxy"
|
|
131
|
+
},
|
|
126
132
|
{
|
|
127
133
|
"component": "Table",
|
|
128
134
|
"name": "表格",
|
|
@@ -29,6 +29,54 @@
|
|
|
29
29
|
"name": "日期格式",
|
|
30
30
|
"type": "string"
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"key": "format",
|
|
34
|
+
"name": "日期格式",
|
|
35
|
+
"type": "select",
|
|
36
|
+
"options": [
|
|
37
|
+
{
|
|
38
|
+
"label": "年-月-日 时:分:秒",
|
|
39
|
+
"value": "YYYY-MM-DD HH:mm:ss"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"label": "年-月-日 时:分",
|
|
43
|
+
"value": "YYYY-MM-DD HH:mm"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"label": "年-月-日 时",
|
|
47
|
+
"value": "YYYY-MM-DD HH"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"label": "年-月-日",
|
|
51
|
+
"value": "YYYY-MM-DD"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "年-月",
|
|
55
|
+
"value": "YYYY-MM"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "年",
|
|
59
|
+
"value": "YYYY"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"label": "时:分:秒",
|
|
63
|
+
"value": "HH:mm:ss"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"label": "时:分",
|
|
67
|
+
"value": "HH:mm"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"label": "分:秒",
|
|
71
|
+
"value": "mm:ss"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"label": "年-周",
|
|
75
|
+
"value": "YYYY-wo"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"default": 16
|
|
79
|
+
},
|
|
32
80
|
{
|
|
33
81
|
"key": "disabledDate",
|
|
34
82
|
"name": "不可选日期",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"label": "getInstance",
|
|
18
18
|
"kind": "method",
|
|
19
19
|
"insertText": "getInstance",
|
|
20
|
-
"documentation": " /**\
|
|
20
|
+
"documentation": " /**\n * 获取表格实例\n * @method\n */"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"label": "refresh",
|
|
24
24
|
"kind": "method",
|
|
25
25
|
"insertText": "refresh",
|
|
26
|
-
"documentation": " /**\
|
|
26
|
+
"documentation": " /**\n * 刷新表格\n * @method\n */"
|
|
27
27
|
}
|
|
28
28
|
]
|
|
29
29
|
},
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
"label": "open",
|
|
36
36
|
"kind": "property",
|
|
37
37
|
"insertText": "open",
|
|
38
|
-
"documentation": " /**\
|
|
38
|
+
"documentation": " /**\n * 弹窗打开状态\n * @property\n */"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"label": "doOpen",
|
|
42
42
|
"kind": "method",
|
|
43
43
|
"insertText": "doOpen",
|
|
44
|
-
"documentation": " /**\
|
|
44
|
+
"documentation": " /**\n * 打开弹窗\n * @method\n */"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"label": "doClose",
|
|
48
48
|
"kind": "method",
|
|
49
49
|
"insertText": "doClose",
|
|
50
|
-
"documentation": " /**\
|
|
50
|
+
"documentation": " /**\n * 关闭弹窗\n * @method\n */"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"label": "setTitle",
|
|
54
54
|
"kind": "method",
|
|
55
55
|
"insertText": "setTitle(title)",
|
|
56
|
-
"documentation": " /**\
|
|
56
|
+
"documentation": " /**\n * 设置弹窗标题\n * @method\n * @param {stirng} title -标题\n */"
|
|
57
57
|
}
|
|
58
58
|
]
|
|
59
59
|
},
|
|
@@ -65,25 +65,25 @@
|
|
|
65
65
|
"label": "open",
|
|
66
66
|
"kind": "property",
|
|
67
67
|
"insertText": "open",
|
|
68
|
-
"documentation": " /**\
|
|
68
|
+
"documentation": " /**\n * 弹窗打开状态\n * @property\n */"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"label": "doOpen",
|
|
72
72
|
"kind": "method",
|
|
73
73
|
"insertText": "doOpen",
|
|
74
|
-
"documentation": " /**\
|
|
74
|
+
"documentation": " /**\n * 打开弹窗\n * @method\n */"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"label": "doClose",
|
|
78
78
|
"kind": "method",
|
|
79
79
|
"insertText": "doClose",
|
|
80
|
-
"documentation": " /**\
|
|
80
|
+
"documentation": " /**\n * 关闭弹窗\n * @method\n */"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"label": "setTitle",
|
|
84
84
|
"kind": "method",
|
|
85
85
|
"insertText": "setTitle(title)",
|
|
86
|
-
"documentation": " /**\
|
|
86
|
+
"documentation": " /**\n * 设置弹窗标题\n * @method\n * @param {stirng} title -标题\n */"
|
|
87
87
|
}
|
|
88
88
|
]
|
|
89
89
|
},
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
"label": "getInstance",
|
|
96
96
|
"kind": "method",
|
|
97
97
|
"insertText": "getInstance",
|
|
98
|
-
"documentation": " /**\
|
|
98
|
+
"documentation": " /**\n * 获取表格实例\n * @method\n */"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"label": "submit",
|
|
102
102
|
"kind": "method",
|
|
103
103
|
"insertText": "submit",
|
|
104
|
-
"documentation": " /**\
|
|
104
|
+
"documentation": " /**\n * 提交表格数据\n * @method\n */"
|
|
105
105
|
}
|
|
106
106
|
]
|
|
107
107
|
},
|
|
@@ -116,13 +116,13 @@
|
|
|
116
116
|
"completions": []
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
"name": "
|
|
120
|
-
"triggerWord": "
|
|
119
|
+
"name": "ImEx",
|
|
120
|
+
"triggerWord": "imex",
|
|
121
121
|
"completions": []
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"triggerWord": "
|
|
124
|
+
"name": "Image",
|
|
125
|
+
"triggerWord": "image",
|
|
126
126
|
"completions": []
|
|
127
127
|
},
|
|
128
128
|
{
|
|
@@ -165,6 +165,11 @@
|
|
|
165
165
|
"triggerWord": "pagemodal",
|
|
166
166
|
"completions": []
|
|
167
167
|
},
|
|
168
|
+
{
|
|
169
|
+
"name": "Proxy",
|
|
170
|
+
"triggerWord": "proxy",
|
|
171
|
+
"completions": []
|
|
172
|
+
},
|
|
168
173
|
{
|
|
169
174
|
"name": "Section",
|
|
170
175
|
"triggerWord": "section",
|
|
@@ -183,13 +188,13 @@
|
|
|
183
188
|
"label": "getInstance",
|
|
184
189
|
"kind": "method",
|
|
185
190
|
"insertText": "getInstance",
|
|
186
|
-
"documentation": " /**\
|
|
191
|
+
"documentation": " /**\n * 获取表格实例\n * @method\n */"
|
|
187
192
|
},
|
|
188
193
|
{
|
|
189
194
|
"label": "refresh",
|
|
190
195
|
"kind": "method",
|
|
191
196
|
"insertText": "refresh",
|
|
192
|
-
"documentation": " /**\
|
|
197
|
+
"documentation": " /**\n * 刷新表格\n * @method\n */"
|
|
193
198
|
}
|
|
194
199
|
]
|
|
195
200
|
},
|
|
@@ -216,73 +221,73 @@
|
|
|
216
221
|
"label": "loading",
|
|
217
222
|
"kind": "property",
|
|
218
223
|
"insertText": "loading",
|
|
219
|
-
"documentation": " /**\
|
|
224
|
+
"documentation": " /**\n * @property {boolean} loading - loading状态\n */"
|
|
220
225
|
},
|
|
221
226
|
{
|
|
222
227
|
"label": "topics",
|
|
223
228
|
"kind": "property",
|
|
224
229
|
"insertText": "topics",
|
|
225
|
-
"documentation": " /**\
|
|
230
|
+
"documentation": " /**\n * @property {object} topics - 内置的事件话题\n */"
|
|
226
231
|
},
|
|
227
232
|
{
|
|
228
233
|
"label": "API_PREFIX",
|
|
229
234
|
"kind": "property",
|
|
230
235
|
"insertText": "API_PREFIX",
|
|
231
|
-
"documentation": " /**\
|
|
236
|
+
"documentation": " /**\n * @property {object} topics - service api前缀\n */"
|
|
232
237
|
},
|
|
233
238
|
{
|
|
234
239
|
"label": "PRIMARY_KEY",
|
|
235
240
|
"kind": "property",
|
|
236
241
|
"insertText": "PRIMARY_KEY",
|
|
237
|
-
"documentation": " /**\
|
|
242
|
+
"documentation": " /**\n * @property {string} PRIMARY_KEY - 主键key\n */"
|
|
238
243
|
},
|
|
239
244
|
{
|
|
240
245
|
"label": "PARENT_KEY",
|
|
241
246
|
"kind": "property",
|
|
242
247
|
"insertText": "PARENT_KEY",
|
|
243
|
-
"documentation": " /**\
|
|
248
|
+
"documentation": " /**\n * @property {string} PARENT_KEY - 树组件主键key\n */"
|
|
244
249
|
},
|
|
245
250
|
{
|
|
246
251
|
"label": "getElementById",
|
|
247
252
|
"kind": "method",
|
|
248
253
|
"insertText": "getElementById(compId)",
|
|
249
|
-
"documentation": " /**\
|
|
254
|
+
"documentation": " /**\n * @method - 根据组件ID获取实例\n * @param {string} compId - 组件ID\n * @return {object} target - 组件实例\n */"
|
|
250
255
|
},
|
|
251
256
|
{
|
|
252
257
|
"label": "getParentElementById",
|
|
253
258
|
"kind": "method",
|
|
254
259
|
"insertText": "getParentElementById(compId)",
|
|
255
|
-
"documentation": " /**\
|
|
260
|
+
"documentation": " /**\n * @method - 根据组件ID获取父组件实例\n * @param {string} compId - 组件ID\n * @return {object} target - 父组件实例\n */"
|
|
256
261
|
},
|
|
257
262
|
{
|
|
258
263
|
"label": "doAction",
|
|
259
264
|
"kind": "method",
|
|
260
265
|
"insertText": "doAction(actionPool, args)",
|
|
261
|
-
"documentation": " /**\
|
|
266
|
+
"documentation": " /**\n * @method - 执行行为池\n * @param {object} actionPool - 行为池\n * @param {object} args - 参数\n */"
|
|
262
267
|
},
|
|
263
268
|
{
|
|
264
269
|
"label": "want",
|
|
265
270
|
"kind": "method",
|
|
266
271
|
"insertText": "want",
|
|
267
|
-
"documentation": " /**\
|
|
272
|
+
"documentation": " /**\n * @method - 是否有权限\n * @return {string} wanted - 期望的资源串\n */"
|
|
268
273
|
},
|
|
269
274
|
{
|
|
270
275
|
"label": "getBehaviorUrl",
|
|
271
276
|
"kind": "method",
|
|
272
277
|
"insertText": "getBehaviorUrl",
|
|
273
|
-
"documentation": " /**\
|
|
278
|
+
"documentation": " /**\n * @method - 获取执行行为请求的接口URL\n * @return {string} BEHAVIOR_URL - 执行行为请求的接口URL\n */"
|
|
274
279
|
},
|
|
275
280
|
{
|
|
276
281
|
"label": "utils",
|
|
277
282
|
"kind": "property",
|
|
278
283
|
"insertText": "utils",
|
|
279
|
-
"documentation": " /**\
|
|
284
|
+
"documentation": " /**\n * @property {Utils} 工具类\n */"
|
|
280
285
|
},
|
|
281
286
|
{
|
|
282
287
|
"label": "router",
|
|
283
288
|
"kind": "property",
|
|
284
289
|
"insertText": "router",
|
|
285
|
-
"documentation": " /**\
|
|
290
|
+
"documentation": " /**\n * @property {Router} router - 路由\n */"
|
|
286
291
|
}
|
|
287
292
|
]
|
|
288
293
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Proxy",
|
|
3
|
+
"name": "页面代理",
|
|
4
|
+
"desc": "用于代理其他页面的内容,用于实现已有页面的服用。",
|
|
5
|
+
"icon": "icon-proxy",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 6,
|
|
9
|
+
"css": "width: 100%; height: 100%; background-color: transparent;",
|
|
10
|
+
"destroyOnUnmount": false,
|
|
11
|
+
"proxyParams": [],
|
|
12
|
+
"advance": {
|
|
13
|
+
"events": {}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Proxy",
|
|
3
|
+
"name": "页面代理",
|
|
4
|
+
"desc": "用于代理其他页面的内容,用于实现已有页面的服用。",
|
|
5
|
+
"icon": "icon-proxy",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 6,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "destroyOnUnmount",
|
|
18
|
+
"name": "卸载时销毁",
|
|
19
|
+
"type": "switch",
|
|
20
|
+
"default": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "proxyCode",
|
|
24
|
+
"name": "页面编码",
|
|
25
|
+
"type": "_ProxyLinker"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "proxyParams",
|
|
29
|
+
"name": "页面参数",
|
|
30
|
+
"type": "_ProxyParams",
|
|
31
|
+
"wrapper": "collapse",
|
|
32
|
+
"wrapperProps": {
|
|
33
|
+
"suppressIcon": true
|
|
34
|
+
},
|
|
35
|
+
"next": {
|
|
36
|
+
"name": "页面参数对象",
|
|
37
|
+
"autoClose": true,
|
|
38
|
+
"props": [
|
|
39
|
+
{
|
|
40
|
+
"key": "proxyParams",
|
|
41
|
+
"name": "#页面参数对象",
|
|
42
|
+
"type": "_ProxyParamsSetter",
|
|
43
|
+
"default": []
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"css": "width: 100%; height: 100%; background-color: transparent;",
|
|
50
|
+
"advance": {
|
|
51
|
+
"events": [
|
|
52
|
+
{
|
|
53
|
+
"key": "onMount",
|
|
54
|
+
"name": "组件首次渲染完成",
|
|
55
|
+
"desc": "在组件首次渲染完成时,执行方法",
|
|
56
|
+
"func": "function onPageMount(){\n\t\n}"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "onUnmount",
|
|
60
|
+
"name": "组件卸载时",
|
|
61
|
+
"desc": "在组件卸载时,执行方法。",
|
|
62
|
+
"func": "function onPageUnmount(){\n\t\n}"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
1
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
4
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
6
|
import React, { createContext, useContext as useReactContext, useRef } from 'react';
|
|
4
7
|
import { useMemoizedFn } from 'ahooks';
|
|
@@ -60,10 +63,27 @@ export default (function (_ref) {
|
|
|
60
63
|
if (index !== -1) {
|
|
61
64
|
_componentList.current.splice(index, 1);
|
|
62
65
|
}
|
|
63
|
-
;
|
|
64
66
|
});
|
|
65
|
-
var _initRemoteApiMap = useMemoizedFn(function (_apiMap) {
|
|
66
|
-
|
|
67
|
+
var _initRemoteApiMap = useMemoizedFn(function (_apiMap, append) {
|
|
68
|
+
if (append) {
|
|
69
|
+
_remoteApiMap.current = new Map([].concat(_toConsumableArray(_remoteApiMap.current), _toConsumableArray(_apiMap)));
|
|
70
|
+
} else {
|
|
71
|
+
_remoteApiMap.current = _apiMap;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
var _deleteRemoteApis = useMemoizedFn(function (keys) {
|
|
75
|
+
var _iterator = _createForOfIteratorHelper(keys),
|
|
76
|
+
_step;
|
|
77
|
+
try {
|
|
78
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
79
|
+
var key = _step.value;
|
|
80
|
+
_remoteApiMap.current.delete(key);
|
|
81
|
+
}
|
|
82
|
+
} catch (err) {
|
|
83
|
+
_iterator.e(err);
|
|
84
|
+
} finally {
|
|
85
|
+
_iterator.f();
|
|
86
|
+
}
|
|
67
87
|
});
|
|
68
88
|
var getElementById = useMemoizedFn(function (compId) {
|
|
69
89
|
var _componentList$curren;
|
|
@@ -101,76 +121,77 @@ export default (function (_ref) {
|
|
|
101
121
|
_register: _register,
|
|
102
122
|
_unregister: _unregister,
|
|
103
123
|
_initRemoteApiMap: _initRemoteApiMap,
|
|
104
|
-
|
|
105
|
-
|
|
124
|
+
_deleteRemoteApis: _deleteRemoteApis,
|
|
125
|
+
/**
|
|
126
|
+
* @property {boolean} loading - loading状态
|
|
106
127
|
*/
|
|
107
128
|
loading: loading,
|
|
108
|
-
/**
|
|
109
|
-
* @property {object} topics - 内置的事件话题
|
|
129
|
+
/**
|
|
130
|
+
* @property {object} topics - 内置的事件话题
|
|
110
131
|
*/
|
|
111
132
|
topics: topics,
|
|
112
|
-
/**
|
|
113
|
-
* @property {object} topics - service api前缀
|
|
133
|
+
/**
|
|
134
|
+
* @property {object} topics - service api前缀
|
|
114
135
|
*/
|
|
115
136
|
API_PREFIX: API_PREFIX,
|
|
116
|
-
/**
|
|
117
|
-
* @property {string} PRIMARY_KEY - 主键key
|
|
137
|
+
/**
|
|
138
|
+
* @property {string} PRIMARY_KEY - 主键key
|
|
118
139
|
*/
|
|
119
140
|
PRIMARY_KEY: window.appConfig.constraintKeys.PRIMARY,
|
|
120
|
-
/**
|
|
121
|
-
* @property {string} PARENT_KEY - 树组件主键key
|
|
141
|
+
/**
|
|
142
|
+
* @property {string} PARENT_KEY - 树组件主键key
|
|
122
143
|
*/
|
|
123
144
|
PARENT_KEY: window.appConfig.constraintKeys.PARENT,
|
|
124
|
-
/**
|
|
125
|
-
* @method - 根据组件ID获取实例
|
|
126
|
-
* @param {string} compId - 组件ID
|
|
127
|
-
* @return {object} target - 组件实例
|
|
145
|
+
/**
|
|
146
|
+
* @method - 根据组件ID获取实例
|
|
147
|
+
* @param {string} compId - 组件ID
|
|
148
|
+
* @return {object} target - 组件实例
|
|
128
149
|
*/
|
|
129
150
|
$: getElementById,
|
|
130
|
-
/**
|
|
131
|
-
* @method - 根据组件ID获取父组件实例
|
|
132
|
-
* @param {string} compId - 组件ID
|
|
133
|
-
* @return {object} target - 父组件实例
|
|
151
|
+
/**
|
|
152
|
+
* @method - 根据组件ID获取父组件实例
|
|
153
|
+
* @param {string} compId - 组件ID
|
|
154
|
+
* @return {object} target - 父组件实例
|
|
134
155
|
*/
|
|
135
156
|
$$: getParentElementById,
|
|
136
|
-
/**
|
|
137
|
-
* @method - 执行行为池
|
|
138
|
-
* @param {object} actionPool - 行为池
|
|
139
|
-
* @param {object} args - 参数
|
|
157
|
+
/**
|
|
158
|
+
* @method - 执行行为池
|
|
159
|
+
* @param {object} actionPool - 行为池
|
|
160
|
+
* @param {object} args - 参数
|
|
140
161
|
*/
|
|
141
162
|
doAction: function doAction(actionPool, args) {
|
|
142
163
|
return todo(this, actionPool, args);
|
|
143
164
|
},
|
|
144
|
-
/**
|
|
145
|
-
* @method - 是否有权限
|
|
146
|
-
* @return {string} wanted - 期望的资源串
|
|
165
|
+
/**
|
|
166
|
+
* @method - 是否有权限
|
|
167
|
+
* @return {string} wanted - 期望的资源串
|
|
147
168
|
*/
|
|
148
169
|
want: want,
|
|
149
|
-
/**
|
|
150
|
-
* @method - 获取执行行为请求的接口URL
|
|
151
|
-
* @return {string} BEHAVIOR_URL - 执行行为请求的接口URL
|
|
170
|
+
/**
|
|
171
|
+
* @method - 获取执行行为请求的接口URL
|
|
172
|
+
* @return {string} BEHAVIOR_URL - 执行行为请求的接口URL
|
|
152
173
|
*/
|
|
153
174
|
getBehaviorUrl: getBehaviorUrl,
|
|
154
|
-
/**
|
|
155
|
-
* @typedef {Object} Utils
|
|
156
|
-
* @property {function(type, props): void} dialog - 弹出对话框
|
|
157
|
-
* @property {function({ moduleCode, datasetCode, behaviorKey }, params, data): Promise} callBehavior - 执行行为
|
|
158
|
-
* @property {function(type, value, formatOrSeparator): string} formatter - 常用的 formatter 函数用于进行事件、金额、手机号等 format
|
|
159
|
-
* @property {function(when, type): string} getDateTimeRange - 获取当前或指定日期的开始结束区间时间戳
|
|
175
|
+
/**
|
|
176
|
+
* @typedef {Object} Utils
|
|
177
|
+
* @property {function(type, props): void} dialog - 弹出对话框
|
|
178
|
+
* @property {function({ moduleCode, datasetCode, behaviorKey }, params, data): Promise} callBehavior - 执行行为
|
|
179
|
+
* @property {function(type, value, formatOrSeparator): string} formatter - 常用的 formatter 函数用于进行事件、金额、手机号等 format
|
|
180
|
+
* @property {function(when, type): string} getDateTimeRange - 获取当前或指定日期的开始结束区间时间戳
|
|
160
181
|
*/
|
|
161
|
-
/**
|
|
162
|
-
* @property {Utils} 工具类
|
|
182
|
+
/**
|
|
183
|
+
* @property {Utils} 工具类
|
|
163
184
|
*/
|
|
164
185
|
utils: utils,
|
|
165
|
-
/**
|
|
166
|
-
* @typedef {Object} Router
|
|
167
|
-
* @property {function(path, params): void} push - 跳转
|
|
168
|
-
* @property {function(path, state): void} replace - 替换
|
|
169
|
-
* @property {function{}: object} getQuery - 获取URL参数
|
|
170
|
-
* @property {function(params): string} stringifyQuery - 序列化 URL 参数
|
|
186
|
+
/**
|
|
187
|
+
* @typedef {Object} Router
|
|
188
|
+
* @property {function(path, params): void} push - 跳转
|
|
189
|
+
* @property {function(path, state): void} replace - 替换
|
|
190
|
+
* @property {function{}: object} getQuery - 获取URL参数
|
|
191
|
+
* @property {function(params): string} stringifyQuery - 序列化 URL 参数
|
|
171
192
|
*/
|
|
172
|
-
/**
|
|
173
|
-
* @property {Router} router - 路由
|
|
193
|
+
/**
|
|
194
|
+
* @property {Router} router - 路由
|
|
174
195
|
*/
|
|
175
196
|
router: router
|
|
176
197
|
}, eventBus), {
|
|
@@ -179,9 +200,26 @@ export default (function (_ref) {
|
|
|
179
200
|
var _privateGetter$curren;
|
|
180
201
|
return (_privateGetter$curren = _privateGetter.current) === null || _privateGetter$curren === void 0 ? void 0 : _privateGetter$curren[property]();
|
|
181
202
|
} else if (property === 'state') {
|
|
182
|
-
|
|
203
|
+
var state = getState();
|
|
204
|
+
return new Proxy(Object.assign({}, state), {
|
|
205
|
+
get: function get(stateTarget, stateProperty, stateReceiver) {
|
|
206
|
+
return Reflect.get(stateTarget, stateProperty, stateReceiver);
|
|
207
|
+
},
|
|
208
|
+
set: function set(stateTarget, stateProperty, stateReceiver) {
|
|
209
|
+
setState(_defineProperty({}, stateProperty, stateReceiver));
|
|
210
|
+
return true;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
183
213
|
} else if (property === 'global') {
|
|
184
|
-
return global.current
|
|
214
|
+
return new Proxy(Object.assign({}, global.current), {
|
|
215
|
+
get: function get(globalTarget, globalProperty, globalReceiver) {
|
|
216
|
+
return Reflect.get(globalTarget, globalProperty, globalReceiver);
|
|
217
|
+
},
|
|
218
|
+
set: function set(globalTarget, globalProperty, globalReceiver) {
|
|
219
|
+
setGlobal(_defineProperty({}, globalProperty, globalReceiver));
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
185
223
|
}
|
|
186
224
|
return Reflect.get(target, property, receiver);
|
|
187
225
|
},
|