@luck-design-biz/luckda 0.0.24-2 → 0.0.24-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Builder/index.js +27 -22
- package/es/components/LdAutoForm/index.js +15 -5
- package/es/components/LdFormList/index.js +4 -1
- package/es/components/LdGrid/index.js +15 -18
- package/es/components/LdGridForm/index.js +12 -4
- package/es/helper/form.js +8 -2
- package/es/helper/ldBuilder.js +4 -1
- package/es/lowcode/constants/api-url.js +1 -292
- package/es/lowcode/constants/event-topics.js +1 -14
- package/es/lowcode/engine/meta/button.props.default.json +7 -15
- package/es/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/{lib/lowcode/engine/meta/button.props.json → es/lowcode/engine/meta/components/button.json} +103 -126
- package/es/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/es/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/es/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{lib/lowcode/engine/meta/iframe.props.json → es/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{lib/lowcode/engine/meta/image.props.json → es/lowcode/engine/meta/components/image.json} +112 -113
- package/{lib/lowcode/engine/meta/imex.props.json → es/lowcode/engine/meta/components/imex.json} +80 -81
- package/es/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/es/lowcode/engine/meta/{layout.props.json → components/layout.json} +106 -107
- package/{lib/lowcode/engine/meta/link.props.json → es/lowcode/engine/meta/components/link.json} +110 -111
- package/es/lowcode/engine/meta/{dialog.props.json → components/modal.json} +119 -120
- package/{lib/lowcode/engine/meta/section.props.json → es/lowcode/engine/meta/components/section.json} +106 -107
- package/{lib/lowcode/engine/meta/split.props.json → es/lowcode/engine/meta/components/split.json} +70 -71
- package/es/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{lib/lowcode/engine/meta/tabs.props.json → es/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{lib/lowcode/engine/meta/text.props.json → es/lowcode/engine/meta/components/text.json} +64 -65
- package/es/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/es/lowcode/engine/meta/components-list.json +121 -127
- package/es/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/es/lowcode/engine/meta/form.props.default.json +4 -12
- package/es/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/es/lowcode/engine/meta/image.props.default.json +7 -15
- package/es/lowcode/engine/meta/imex.props.default.json +3 -11
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/es/lowcode/engine/meta/layout.props.default.json +4 -12
- package/es/lowcode/engine/meta/link.props.default.json +5 -13
- package/es/lowcode/engine/meta/modal.props.default.json +11 -0
- package/es/lowcode/engine/meta/section.props.default.json +8 -16
- package/es/lowcode/engine/meta/split.props.default.json +4 -12
- package/es/lowcode/engine/meta/table.props.default.json +9 -29
- package/es/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/es/lowcode/engine/meta/text.props.default.json +3 -11
- package/es/lowcode/engine/meta/tree.props.default.json +8 -16
- package/es/lowcode/engine/provider/ContextProvider.js +41 -46
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +8 -85
- package/es/lowcode/engine/tools/helper.js +0 -68
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +1 -3
- package/es/lowcode/painter/Design.js +85 -40
- package/es/lowcode/painter/I18n.js +2 -202
- package/es/lowcode/painter/Outline.js +54 -63
- package/es/lowcode/painter/Panel.js +2 -239
- package/es/lowcode/painter/Ribbon.js +55 -61
- package/es/lowcode/painter/components/PanelItem.js +11 -83
- package/es/lowcode/painter/components/RuleInput.js +7 -9
- package/es/lowcode/painter/index.js +3 -33
- package/es/lowcode/painter/panel-section/LayoutRatio.js +49 -57
- package/es/lowcode/painter/panel-section/Radio.js +58 -0
- package/es/lowcode/painter/style/design.less +5 -116
- package/es/lowcode/painter/style/index.less +1 -0
- package/es/lowcode/painter/style/layout-ratio.less +1 -1
- package/es/lowcode/painter/style/outline.less +0 -2
- package/es/lowcode/painter/style/panel-item.less +12 -45
- package/es/lowcode/painter/style/panel.less +0 -124
- package/es/lowcode/painter/style/ribbon.less +0 -1
- package/es/lowcode/view/Canvas.js +70 -79
- package/es/lowcode/view/Page.js +28 -10
- package/es/lowcode/view/index.js +6 -5
- package/es/lowcode/view/lc-components/Box/index.js +5 -22
- package/es/lowcode/view/lc-components/Button/index.js +7 -75
- package/es/lowcode/view/lc-components/Dialog/index.js +11 -20
- package/es/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/es/lowcode/view/lc-components/Drawer/index.js +9 -22
- package/es/lowcode/view/lc-components/Layout/index.js +7 -40
- package/es/lowcode/view/lc-components/Table/index.js +9 -229
- package/es/lowcode/view/lc-components/Wrapper.js +23 -32
- package/es/lowcode/view/style/page.less +1 -0
- package/es/services.js +24 -7
- package/es/upload/Form/gridForm.js +5 -4
- package/es/upload/FormItem/index.js +4 -3
- package/es/utils/form.js +37 -3
- package/es/utils/grid.js +9 -8
- package/lib/components/Builder/index.js +25 -20
- package/lib/components/LdAutoForm/index.js +14 -4
- package/lib/components/LdFormList/index.js +5 -1
- package/lib/components/LdGrid/index.js +15 -18
- package/lib/components/LdGridForm/index.js +11 -3
- package/lib/helper/form.js +8 -2
- package/lib/helper/ldBuilder.js +4 -1
- package/lib/lowcode/constants/api-url.js +2 -294
- package/lib/lowcode/constants/event-topics.js +2 -15
- package/lib/lowcode/engine/meta/button.props.default.json +7 -15
- package/lib/lowcode/engine/meta/cardlist.props.default.json +9 -17
- package/{es/lowcode/engine/meta/button.props.json → lib/lowcode/engine/meta/components/button.json} +103 -126
- package/lib/lowcode/engine/meta/{cardlist.props.json → components/card-list.json} +142 -143
- package/lib/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -143
- package/lib/lowcode/engine/meta/{form.props.json → components/form.json} +115 -116
- package/{es/lowcode/engine/meta/iframe.props.json → lib/lowcode/engine/meta/components/iframe.json} +30 -31
- package/{es/lowcode/engine/meta/image.props.json → lib/lowcode/engine/meta/components/image.json} +112 -113
- package/{es/lowcode/engine/meta/imex.props.json → lib/lowcode/engine/meta/components/imex.json} +80 -81
- package/lib/lowcode/engine/meta/{jsx.props.json → components/jsx.json} +23 -24
- package/lib/lowcode/engine/meta/{layout.props.json → components/layout.json} +106 -107
- package/{es/lowcode/engine/meta/link.props.json → lib/lowcode/engine/meta/components/link.json} +110 -111
- package/lib/lowcode/engine/meta/{dialog.props.json → components/modal.json} +119 -120
- package/{es/lowcode/engine/meta/section.props.json → lib/lowcode/engine/meta/components/section.json} +106 -107
- package/{es/lowcode/engine/meta/split.props.json → lib/lowcode/engine/meta/components/split.json} +70 -71
- package/lib/lowcode/{view/lc-components/CardList/meta.json → engine/meta/components/table.json} +28 -11
- package/{es/lowcode/engine/meta/tabs.props.json → lib/lowcode/engine/meta/components/tabs.json} +139 -140
- package/{es/lowcode/engine/meta/text.props.json → lib/lowcode/engine/meta/components/text.json} +64 -65
- package/lib/lowcode/engine/meta/{tree.props.json → components/tree.json} +155 -156
- package/lib/lowcode/engine/meta/components-list.json +121 -127
- package/lib/lowcode/engine/meta/drawer.props.default.json +9 -17
- package/lib/lowcode/engine/meta/form.props.default.json +4 -12
- package/lib/lowcode/engine/meta/iframe.props.default.json +2 -10
- package/lib/lowcode/engine/meta/image.props.default.json +7 -15
- package/lib/lowcode/engine/meta/imex.props.default.json +3 -11
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -10
- package/lib/lowcode/engine/meta/layout.props.default.json +4 -12
- package/lib/lowcode/engine/meta/link.props.default.json +5 -13
- package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
- package/lib/lowcode/engine/meta/section.props.default.json +8 -16
- package/lib/lowcode/engine/meta/split.props.default.json +4 -12
- package/lib/lowcode/engine/meta/table.props.default.json +9 -29
- package/lib/lowcode/engine/meta/tabs.props.default.json +9 -17
- package/lib/lowcode/engine/meta/text.props.default.json +3 -11
- package/lib/lowcode/engine/meta/tree.props.default.json +8 -16
- package/lib/lowcode/engine/provider/ContextProvider.js +41 -46
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +8 -86
- package/lib/lowcode/engine/tools/helper.js +0 -70
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Design.js +84 -39
- package/lib/lowcode/painter/I18n.js +2 -203
- package/lib/lowcode/painter/Outline.js +53 -62
- package/lib/lowcode/painter/Panel.js +1 -238
- package/lib/lowcode/painter/Ribbon.js +64 -63
- package/lib/lowcode/painter/components/PanelItem.js +11 -84
- package/lib/lowcode/painter/components/RuleInput.js +7 -9
- package/lib/lowcode/painter/index.js +3 -35
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +48 -56
- package/lib/lowcode/painter/panel-section/Radio.js +65 -0
- package/lib/lowcode/painter/style/design.less +5 -116
- package/lib/lowcode/painter/style/index.less +1 -0
- package/lib/lowcode/painter/style/layout-ratio.less +1 -1
- package/lib/lowcode/painter/style/outline.less +0 -2
- package/lib/lowcode/painter/style/panel-item.less +12 -45
- package/lib/lowcode/painter/style/panel.less +0 -124
- package/lib/lowcode/painter/style/ribbon.less +0 -1
- package/lib/lowcode/view/Canvas.js +75 -84
- package/lib/lowcode/view/Page.js +27 -9
- package/lib/lowcode/view/index.js +6 -5
- package/lib/lowcode/view/lc-components/Box/index.js +6 -23
- package/lib/lowcode/view/lc-components/Button/index.js +8 -76
- package/lib/lowcode/view/lc-components/Dialog/index.js +11 -20
- package/lib/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/lib/lowcode/view/lc-components/Drawer/index.js +9 -22
- package/lib/lowcode/view/lc-components/Layout/index.js +8 -41
- package/lib/lowcode/view/lc-components/Table/index.js +8 -228
- package/lib/lowcode/view/lc-components/Wrapper.js +21 -30
- package/lib/lowcode/view/style/page.less +1 -0
- package/lib/services.js +25 -7
- package/lib/upload/Form/gridForm.js +5 -4
- package/lib/upload/FormItem/index.js +4 -3
- package/lib/utils/form.js +38 -3
- package/lib/utils/grid.js +11 -10
- package/package.json +6 -15
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -60
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -32
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -53
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -21
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -51
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -42
- package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -44
- package/es/lowcode/engine/meta/box.props.default.json +0 -12
- package/es/lowcode/engine/meta/box.props.json +0 -42
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/es/lowcode/engine/meta/table.props.json +0 -236
- package/es/lowcode/engine/tools/usePromiseState.js +0 -24
- package/es/lowcode/painter/DesignOperator.js +0 -271
- package/es/lowcode/painter/DesignToolbar.js +0 -91
- package/es/lowcode/painter/components/Collapse.js +0 -90
- package/es/lowcode/painter/components/ColorInput.js +0 -125
- package/es/lowcode/painter/components/ListEditor.js +0 -89
- package/es/lowcode/painter/components/NumberInput.js +0 -148
- package/es/lowcode/painter/components/PopConfirm.js +0 -23
- package/es/lowcode/painter/components/PopForm.js +0 -71
- package/es/lowcode/painter/components/SortBox.js +0 -92
- package/es/lowcode/painter/components/actions-editor/ActionEditor.js +0 -147
- package/es/lowcode/painter/components/actions-editor/index.js +0 -170
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -96
- package/es/lowcode/painter/components/code-editor/CssEditor.js +0 -41
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -87
- package/es/lowcode/painter/components/code-editor/JSEditor.js +0 -106
- package/es/lowcode/painter/components/code-editor/index.js +0 -2
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -39
- package/es/lowcode/painter/panel-section/DataSetSelector.js +0 -61
- package/es/lowcode/painter/panel-section/Icon.js +0 -48
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -134
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -61
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +0 -150
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -87
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -66
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -66
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +0 -296
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -543
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +0 -162
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -386
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -78
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -23
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -20
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -23
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -96
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +0 -60
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -50
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +0 -61
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -41
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -216
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +0 -53
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -148
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -16
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -51
- package/es/lowcode/painter/panel-section/StylePanel/index.js +0 -29
- package/es/lowcode/painter/panel-section/TabItems.js +0 -207
- package/es/lowcode/painter/panel-section/TableActions.js +0 -19
- package/es/lowcode/painter/panel-section/TableZebra.js +0 -14
- package/es/lowcode/painter/panel-section/WidthHeight.js +0 -39
- package/es/lowcode/painter/services/I18n.js +0 -85
- package/es/lowcode/painter/style/actions-editor.less +0 -16
- package/es/lowcode/painter/style/border-editor.less +0 -36
- package/es/lowcode/painter/style/border-radius-selector.less +0 -43
- package/es/lowcode/painter/style/border-selector.less +0 -40
- package/es/lowcode/painter/style/button-type.less +0 -5
- package/es/lowcode/painter/style/collapse.less +0 -22
- package/es/lowcode/painter/style/color-input.less +0 -19
- package/es/lowcode/painter/style/display.less +0 -17
- package/es/lowcode/painter/style/font-editor.less +0 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/es/lowcode/painter/style/icon-selector.less +0 -22
- package/es/lowcode/painter/style/icon.less +0 -11
- package/es/lowcode/painter/style/list-editor.less +0 -59
- package/es/lowcode/painter/style/number-input.less +0 -17
- package/es/lowcode/painter/style/pop-confirm.less +0 -10
- package/es/lowcode/painter/style/pop-form.less +0 -20
- package/es/lowcode/painter/style/style-panel.less +0 -37
- package/es/lowcode/painter/style/tabitems.less +0 -90
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -20
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Box/index.less +0 -15
- package/es/lowcode/view/lc-components/Box/meta.json +0 -42
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -21
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Button/meta.json +0 -127
- package/es/lowcode/view/lc-components/Button/style.less +0 -3
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -54
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -20
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Drawer/index.less +0 -7
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Form/meta.json +0 -117
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Image/meta.json +0 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -75
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -15
- package/es/lowcode/view/lc-components/Layout/index.less +0 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Link/meta.json +0 -112
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Section/meta.json +0 -108
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Split/meta.json +0 -72
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +0 -18
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Table/meta.json +0 -225
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Text/meta.json +0 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -9
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -157
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -73
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -38
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +0 -59
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -27
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -57
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -48
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -50
- package/lib/lowcode/engine/meta/box.props.default.json +0 -12
- package/lib/lowcode/engine/meta/box.props.json +0 -42
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -19
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +0 -29
- package/lib/lowcode/engine/meta/table.props.json +0 -236
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -31
- package/lib/lowcode/painter/DesignOperator.js +0 -278
- package/lib/lowcode/painter/DesignToolbar.js +0 -99
- package/lib/lowcode/painter/components/Collapse.js +0 -97
- package/lib/lowcode/painter/components/ColorInput.js +0 -132
- package/lib/lowcode/painter/components/ListEditor.js +0 -95
- package/lib/lowcode/painter/components/NumberInput.js +0 -155
- package/lib/lowcode/painter/components/PopConfirm.js +0 -29
- package/lib/lowcode/painter/components/PopForm.js +0 -77
- package/lib/lowcode/painter/components/SortBox.js +0 -99
- package/lib/lowcode/painter/components/actions-editor/ActionEditor.js +0 -155
- package/lib/lowcode/painter/components/actions-editor/index.js +0 -178
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -103
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +0 -48
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +0 -94
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +0 -117
- package/lib/lowcode/painter/components/code-editor/index.js +0 -20
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -46
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +0 -69
- package/lib/lowcode/painter/panel-section/Icon.js +0 -54
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -141
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +0 -68
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +0 -158
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +0 -95
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +0 -73
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +0 -73
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +0 -303
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -550
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +0 -170
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +0 -392
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +0 -85
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +0 -29
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +0 -26
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +0 -29
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +0 -103
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +0 -67
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +0 -57
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +0 -68
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +0 -48
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +0 -224
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +0 -59
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +0 -159
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +0 -22
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +0 -58
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +0 -35
- package/lib/lowcode/painter/panel-section/TabItems.js +0 -215
- package/lib/lowcode/painter/panel-section/TableActions.js +0 -26
- package/lib/lowcode/painter/panel-section/TableZebra.js +0 -21
- package/lib/lowcode/painter/panel-section/WidthHeight.js +0 -46
- package/lib/lowcode/painter/services/I18n.js +0 -95
- package/lib/lowcode/painter/style/actions-editor.less +0 -16
- package/lib/lowcode/painter/style/border-editor.less +0 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +0 -43
- package/lib/lowcode/painter/style/border-selector.less +0 -40
- package/lib/lowcode/painter/style/button-type.less +0 -5
- package/lib/lowcode/painter/style/collapse.less +0 -22
- package/lib/lowcode/painter/style/color-input.less +0 -19
- package/lib/lowcode/painter/style/display.less +0 -17
- package/lib/lowcode/painter/style/font-editor.less +0 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +0 -17
- package/lib/lowcode/painter/style/icon-selector.less +0 -22
- package/lib/lowcode/painter/style/icon.less +0 -11
- package/lib/lowcode/painter/style/list-editor.less +0 -59
- package/lib/lowcode/painter/style/number-input.less +0 -17
- package/lib/lowcode/painter/style/pop-confirm.less +0 -10
- package/lib/lowcode/painter/style/pop-form.less +0 -20
- package/lib/lowcode/painter/style/style-panel.less +0 -37
- package/lib/lowcode/painter/style/tabitems.less +0 -90
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -27
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Box/index.less +0 -15
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -42
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -28
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Button/meta.json +0 -127
- package/lib/lowcode/view/lc-components/Button/style.less +0 -3
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +0 -62
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -121
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +0 -27
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Drawer/index.less +0 -7
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -144
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Form/meta.json +0 -117
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -82
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -25
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -82
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -22
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -112
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -108
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -72
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +0 -25
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -225
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -141
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -157
|
@@ -1,243 +1,23 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["
|
|
2
|
+
var _excluded = ["id"];
|
|
5
3
|
import React, { useRef } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import { useMemoizedFn, useCreation, useUpdateEffect, useLatest } from 'ahooks';
|
|
8
|
-
import LdGrid from "../../../../components/LdGrid";
|
|
9
|
-
import classNames from 'classnames';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
10
5
|
import Wrapper from "../Wrapper";
|
|
11
|
-
import { omitBadProps } from "../../../engine/tools/helper";
|
|
12
|
-
import defaultMeta from "../../../engine/meta/table.props.default.json";
|
|
13
6
|
var LCTable = function LCTable(_ref) {
|
|
14
|
-
var
|
|
15
|
-
id = _ref.id,
|
|
16
|
-
className = _ref.className,
|
|
17
|
-
dataset = _ref.dataset,
|
|
18
|
-
width = _ref.width,
|
|
19
|
-
height = _ref.height,
|
|
20
|
-
bordered = _ref.bordered,
|
|
21
|
-
zebra = _ref.zebra,
|
|
22
|
-
autoLoad = _ref.autoLoad,
|
|
23
|
-
readOnly = _ref.readOnly,
|
|
24
|
-
suppressActions = _ref.suppressActions,
|
|
25
|
-
actionsColumnWidth = _ref.actionsColumnWidth,
|
|
26
|
-
actions = _ref.actions,
|
|
27
|
-
pagination = _ref.pagination,
|
|
28
|
-
pageSize = _ref.pageSize,
|
|
29
|
-
showSizeChanger = _ref.showSizeChanger,
|
|
30
|
-
showQuickJumper = _ref.showQuickJumper,
|
|
31
|
-
hideOnSinglePage = _ref.hideOnSinglePage,
|
|
32
|
-
paginationSimple = _ref.paginationSimple,
|
|
33
|
-
suppressPreset = _ref.suppressPreset,
|
|
7
|
+
var id = _ref.id,
|
|
34
8
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35
9
|
var ref = useRef();
|
|
36
|
-
var latestZebra = useLatest(zebra);
|
|
37
|
-
var _pagination = useCreation(function () {
|
|
38
|
-
return {
|
|
39
|
-
isFlow: !pagination,
|
|
40
|
-
pagination: pagination ? {
|
|
41
|
-
pageSize: pageSize,
|
|
42
|
-
pageSizeOptions: ["".concat(pageSize), "".concat(pageSize * 2), "".concat(pageSize * 3)],
|
|
43
|
-
showSizeChanger: showSizeChanger,
|
|
44
|
-
showQuickJumper: showQuickJumper,
|
|
45
|
-
hideOnSinglePage: hideOnSinglePage,
|
|
46
|
-
simple: paginationSimple
|
|
47
|
-
} : null
|
|
48
|
-
};
|
|
49
|
-
}, [pagination, pageSize, showSizeChanger, showQuickJumper, hideOnSinglePage, paginationSimple]);
|
|
50
|
-
var _actionsColumn = useCreation(function () {
|
|
51
|
-
return {
|
|
52
|
-
actionsColumn: suppressActions ? null : {
|
|
53
|
-
width: actionsColumnWidth,
|
|
54
|
-
maxCount: actions.max,
|
|
55
|
-
type: actions.type,
|
|
56
|
-
getActions: function getActions() {
|
|
57
|
-
return actions.todoList.map(function (_action) {
|
|
58
|
-
return {
|
|
59
|
-
title: _action.name,
|
|
60
|
-
action: function action(d) {
|
|
61
|
-
console.log('doAction', d, _action);
|
|
62
|
-
},
|
|
63
|
-
resource: _action.serial,
|
|
64
|
-
style: _action.riskLevel === 'default' ? null : {
|
|
65
|
-
color: {
|
|
66
|
-
danger: '#ff7875',
|
|
67
|
-
destroy: '#820014'
|
|
68
|
-
}[_action.riskLevel]
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}, [suppressActions, actionsColumnWidth, actions]);
|
|
76
|
-
useUpdateEffect(function () {
|
|
77
|
-
var itemsToUpdate = [];
|
|
78
|
-
ref.current.gridApi.api.forEachNode(function (rowNode) {
|
|
79
|
-
if (rowNode.rowIndex % 2 === 0) itemsToUpdate.push(rowNode.data);
|
|
80
|
-
});
|
|
81
|
-
ref.current.gridApi.api.updateRowData({
|
|
82
|
-
update: itemsToUpdate
|
|
83
|
-
});
|
|
84
|
-
}, [zebra]);
|
|
85
10
|
var getTargetDom = useMemoizedFn(function () {
|
|
86
|
-
return ref.current
|
|
11
|
+
return ref.current;
|
|
87
12
|
});
|
|
88
13
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
89
14
|
id: id,
|
|
90
15
|
getTargetDom: getTargetDom
|
|
91
|
-
}, /*#__PURE__*/React.createElement(
|
|
16
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
92
17
|
ref: ref,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
className: classNames(_defineProperty({}, className, !!className)),
|
|
98
|
-
ldId: id,
|
|
99
|
-
dataSetKey: dataset,
|
|
100
|
-
readOnly: readOnly,
|
|
101
|
-
suppressInit: !autoLoad,
|
|
102
|
-
getRowStyle: function getRowStyle(params) {
|
|
103
|
-
return latestZebra.current && params.node.rowIndex % 2 === 0 ? {
|
|
104
|
-
'background-color': latestZebra.current
|
|
105
|
-
} : {
|
|
106
|
-
'background-color': '#fff'
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
suppressPreset: suppressPreset
|
|
110
|
-
// operates={resources}
|
|
111
|
-
}, _pagination, _actionsColumn)));
|
|
112
|
-
};
|
|
113
|
-
LCTable.propTypes = {
|
|
114
|
-
/**
|
|
115
|
-
* @name 唯一标识
|
|
116
|
-
* @type string
|
|
117
|
-
* @disabled true
|
|
118
|
-
*/
|
|
119
|
-
id: PropTypes.string.isRequired,
|
|
120
|
-
/**
|
|
121
|
-
* @name 数据集
|
|
122
|
-
* @type _DataSetSelector
|
|
123
|
-
*/
|
|
124
|
-
dataset: PropTypes.string,
|
|
125
|
-
/**
|
|
126
|
-
* @name 自动加载
|
|
127
|
-
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
128
|
-
* @type switch
|
|
129
|
-
* @default true
|
|
130
|
-
*/
|
|
131
|
-
autoLoad: PropTypes.bool,
|
|
132
|
-
/**
|
|
133
|
-
* @name 只读
|
|
134
|
-
* @type switch
|
|
135
|
-
* @default false
|
|
136
|
-
*/
|
|
137
|
-
readOnly: PropTypes.bool,
|
|
138
|
-
/**
|
|
139
|
-
* @name 关闭预设
|
|
140
|
-
* @type switch
|
|
141
|
-
* @default false
|
|
142
|
-
*/
|
|
143
|
-
suppressPreset: PropTypes.bool,
|
|
144
|
-
/**
|
|
145
|
-
* @name 宽度
|
|
146
|
-
* @type _WidthHeight
|
|
147
|
-
* @default 100%
|
|
148
|
-
* @group styleSetting
|
|
149
|
-
*/
|
|
150
|
-
width: PropTypes.string,
|
|
151
|
-
/**
|
|
152
|
-
* @name 高度
|
|
153
|
-
* @type _WidthHeight
|
|
154
|
-
* @default 100%
|
|
155
|
-
* @group styleSetting
|
|
156
|
-
*/
|
|
157
|
-
height: PropTypes.string,
|
|
158
|
-
/**
|
|
159
|
-
* @name 边框线
|
|
160
|
-
* @type switch
|
|
161
|
-
* @default false
|
|
162
|
-
* @group styleSetting
|
|
163
|
-
*/
|
|
164
|
-
border: PropTypes.bool,
|
|
165
|
-
/**
|
|
166
|
-
* @name 斑马纹
|
|
167
|
-
* @type switch
|
|
168
|
-
* @default false
|
|
169
|
-
* @group styleSetting
|
|
170
|
-
*/
|
|
171
|
-
zebra: PropTypes.oneOfType[(PropTypes.bool, PropTypes.string)],
|
|
172
|
-
/**
|
|
173
|
-
* @name 开启分页
|
|
174
|
-
* @type switch
|
|
175
|
-
* @default true
|
|
176
|
-
* @group paginationSetting
|
|
177
|
-
*/
|
|
178
|
-
pagination: PropTypes.bool,
|
|
179
|
-
/**
|
|
180
|
-
* @name 每页条数
|
|
181
|
-
* @type number
|
|
182
|
-
* @default 30
|
|
183
|
-
* @group paginationSetting
|
|
184
|
-
*/
|
|
185
|
-
pageSize: PropTypes.number,
|
|
186
|
-
/**
|
|
187
|
-
* @name 分页器
|
|
188
|
-
* @type switch
|
|
189
|
-
* @default true
|
|
190
|
-
* @group paginationSetting
|
|
191
|
-
*/
|
|
192
|
-
showSizeChanger: PropTypes.bool,
|
|
193
|
-
/**
|
|
194
|
-
* @name 快速跳转
|
|
195
|
-
* @type switch
|
|
196
|
-
* @default true
|
|
197
|
-
* @group paginationSetting
|
|
198
|
-
*/
|
|
199
|
-
showQuickJumper: PropTypes.bool,
|
|
200
|
-
/**
|
|
201
|
-
* @name 单页无分页器
|
|
202
|
-
* @type switch
|
|
203
|
-
* @default false
|
|
204
|
-
* @group paginationSetting
|
|
205
|
-
*/
|
|
206
|
-
hideOnSinglePage: PropTypes.bool,
|
|
207
|
-
/**
|
|
208
|
-
* @name 简单模式
|
|
209
|
-
* @type switch
|
|
210
|
-
* @default false
|
|
211
|
-
* @group paginationSetting
|
|
212
|
-
*/
|
|
213
|
-
paginationSimple: PropTypes.bool,
|
|
214
|
-
/**
|
|
215
|
-
* @name 隐藏操作列
|
|
216
|
-
* @type switch
|
|
217
|
-
* @default false
|
|
218
|
-
* @groupNext actionsColumn
|
|
219
|
-
*/
|
|
220
|
-
suppressActions: PropTypes.bool,
|
|
221
|
-
/**
|
|
222
|
-
* @name 隐藏操作列
|
|
223
|
-
* @type number
|
|
224
|
-
* @default 160
|
|
225
|
-
* @groupNext actionsColumn
|
|
226
|
-
*/
|
|
227
|
-
actionsColumnWidth: PropTypes.number,
|
|
228
|
-
/**
|
|
229
|
-
* @name 最大显示数
|
|
230
|
-
* @type number
|
|
231
|
-
* @default 2
|
|
232
|
-
* @groupNext actionsColumn
|
|
233
|
-
*/
|
|
234
|
-
maxActionsCount: PropTypes.number,
|
|
235
|
-
/**
|
|
236
|
-
* @name 操作项
|
|
237
|
-
* @type _TableActions
|
|
238
|
-
* @groupNext actionsColumn
|
|
239
|
-
*/
|
|
240
|
-
actions: PropTypes.array
|
|
18
|
+
style: {
|
|
19
|
+
padding: 8
|
|
20
|
+
}
|
|
21
|
+
}, "LCTable-", id));
|
|
241
22
|
};
|
|
242
|
-
LCTable.defaultProps = omitBadProps(defaultMeta, ['actionsColumn']);
|
|
243
23
|
export default LCTable;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import { useEffect } from 'react';
|
|
3
|
-
import { useLatest, useCreation } from 'ahooks';
|
|
2
|
+
import { useEffect, useRef } from 'react';
|
|
4
3
|
import { useLDContext } from "../../engine/provider/ContextProvider";
|
|
5
|
-
import { findNodeAndParent
|
|
4
|
+
import { findNodeAndParent } from "../../engine/tools/dataProcess";
|
|
6
5
|
import { CELL_CLASS_NAME } from "../../constants";
|
|
7
6
|
var LCWrapper = function LCWrapper(_ref) {
|
|
8
7
|
var id = _ref.id,
|
|
@@ -10,37 +9,29 @@ var LCWrapper = function LCWrapper(_ref) {
|
|
|
10
9
|
getTargetDom = _ref.getTargetDom,
|
|
11
10
|
api = _ref.api;
|
|
12
11
|
var context = useLDContext();
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
getLevelNodes: function getLevelNodes() {
|
|
20
|
-
return getPathNodesById(_pageData.current, id);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}, []);
|
|
12
|
+
var _apiRef = useRef({
|
|
13
|
+
getSelfAndParentLCData: function getSelfAndParentLCData() {
|
|
14
|
+
return findNodeAndParent(id, context.pageData);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
24
17
|
useEffect(function () {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return api ? _objectSpread(_objectSpread({}, _api), api.current) : _api;
|
|
37
|
-
}
|
|
38
|
-
return Reflect.get(target, property, receiver);
|
|
18
|
+
var dom = getTargetDom();
|
|
19
|
+
if (dom) {
|
|
20
|
+
dom.setAttribute('id', id);
|
|
21
|
+
dom.classList.add(CELL_CLASS_NAME);
|
|
22
|
+
}
|
|
23
|
+
context.register(id, new Proxy({
|
|
24
|
+
dom: dom
|
|
25
|
+
}, {
|
|
26
|
+
get: function get(target, property, receiver) {
|
|
27
|
+
if (property === 'api') {
|
|
28
|
+
return api ? _objectSpread(_objectSpread({}, _apiRef.current), api.current) : _apiRef.current;
|
|
39
29
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
return Reflect.get(target, property, receiver);
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
context.$publisher(context.topics.COMPONENT_MOUNT, {
|
|
34
|
+
id: id
|
|
44
35
|
});
|
|
45
36
|
return function () {
|
|
46
37
|
context.unregister(id);
|
package/es/services.js
CHANGED
|
@@ -20,15 +20,32 @@ function _readModlue() {
|
|
|
20
20
|
}));
|
|
21
21
|
return _readModlue.apply(this, arguments);
|
|
22
22
|
}
|
|
23
|
-
export function
|
|
24
|
-
return
|
|
23
|
+
export function readUI(_x2) {
|
|
24
|
+
return _readUI.apply(this, arguments);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function _readUI() {
|
|
27
|
+
_readUI = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(get) {
|
|
28
28
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29
29
|
while (1) switch (_context2.prev = _context2.next) {
|
|
30
30
|
case 0:
|
|
31
|
-
return _context2.abrupt("return", request("".concat(api.LUCKDA_HOST, "/
|
|
31
|
+
return _context2.abrupt("return", request("".concat(api.LUCKDA_HOST, "/ui/builder/noAuthFetchModuleDataSetUI?").concat(stringify(get))));
|
|
32
|
+
case 1:
|
|
33
|
+
case "end":
|
|
34
|
+
return _context2.stop();
|
|
35
|
+
}
|
|
36
|
+
}, _callee2);
|
|
37
|
+
}));
|
|
38
|
+
return _readUI.apply(this, arguments);
|
|
39
|
+
}
|
|
40
|
+
export function readBehaviorCall(_x3, _x4) {
|
|
41
|
+
return _readBehaviorCall.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
function _readBehaviorCall() {
|
|
44
|
+
_readBehaviorCall = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(get, post) {
|
|
45
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
46
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
47
|
+
case 0:
|
|
48
|
+
return _context3.abrupt("return", request("".concat(api.LUCKDA_HOST, "/to/behavior/call?").concat(stringify(get)), {
|
|
32
49
|
method: 'POST',
|
|
33
50
|
body: post,
|
|
34
51
|
headers: {
|
|
@@ -37,9 +54,9 @@ function _readBehaviorCall() {
|
|
|
37
54
|
}));
|
|
38
55
|
case 1:
|
|
39
56
|
case "end":
|
|
40
|
-
return
|
|
57
|
+
return _context3.stop();
|
|
41
58
|
}
|
|
42
|
-
},
|
|
59
|
+
}, _callee3);
|
|
43
60
|
}));
|
|
44
61
|
return _readBehaviorCall.apply(this, arguments);
|
|
45
62
|
}
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["formId", "formRef", "showNote", "operates", "loading", "uploadUrl", "forbiddenTypes", "beforeUpload", "formMode", "onUploadChange", "zipName", "resetActions", "getUrl", "wrapperRef"];
|
|
5
|
+
var _excluded = ["formId", "formRef", "showNote", "operates", "loading", "uploadUrl", "supportTypes", "forbiddenTypes", "beforeUpload", "formMode", "onUploadChange", "zipName", "resetActions", "getUrl", "wrapperRef"];
|
|
6
6
|
import React, { useState, useRef, forwardRef } from 'react';
|
|
7
7
|
import { getDvaApp } from 'umi';
|
|
8
8
|
import { useMemoizedFn, useCreation } from 'ahooks';
|
|
@@ -55,6 +55,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
55
55
|
operates = _ref$operates === void 0 ? ['read', 'add', 'delete', 'download'] : _ref$operates,
|
|
56
56
|
loading = _ref.loading,
|
|
57
57
|
uploadUrl = _ref.uploadUrl,
|
|
58
|
+
supportTypes = _ref.supportTypes,
|
|
58
59
|
_ref$forbiddenTypes = _ref.forbiddenTypes,
|
|
59
60
|
forbiddenTypes = _ref$forbiddenTypes === void 0 ? [] : _ref$forbiddenTypes,
|
|
60
61
|
_beforeUpload = _ref.beforeUpload,
|
|
@@ -78,8 +79,8 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
78
79
|
var _getDvaApp$_store$get = (_getDvaApp = getDvaApp()) === null || _getDvaApp === void 0 ? void 0 : _getDvaApp._store.getState().user,
|
|
79
80
|
currentUser = _getDvaApp$_store$get.currentUser;
|
|
80
81
|
var supportUploadTypes = useCreation(function () {
|
|
81
|
-
return getSupportUploadTypes(forbiddenTypes);
|
|
82
|
-
}, [forbiddenTypes]);
|
|
82
|
+
return getSupportUploadTypes(forbiddenTypes, supportTypes);
|
|
83
|
+
}, [forbiddenTypes, supportTypes]);
|
|
83
84
|
|
|
84
85
|
// 下载
|
|
85
86
|
var downloadFile = function downloadFile(filenames, tag) {
|
|
@@ -377,7 +378,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
377
378
|
return _beforeUpload2({
|
|
378
379
|
file: file,
|
|
379
380
|
fileList: fileList,
|
|
380
|
-
|
|
381
|
+
forbiddenTypes: forbiddenTypes,
|
|
381
382
|
beforeUpload: _beforeUpload
|
|
382
383
|
});
|
|
383
384
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
4
|
+
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "supportTypes", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { BasicFormItem } from 'luck-design';
|
|
7
7
|
import { formatMessage, beforeUpload as _beforeUpload, getSupportUploadTypes } from '@luck-design-biz/base/utils';
|
|
@@ -35,6 +35,7 @@ function buildComponent(props) {
|
|
|
35
35
|
note = _props$note === void 0 ? '' : _props$note,
|
|
36
36
|
_props$config = props.config,
|
|
37
37
|
config = _props$config === void 0 ? {} : _props$config,
|
|
38
|
+
supportTypes = props.supportTypes,
|
|
38
39
|
forbiddenTypes = props.forbiddenTypes,
|
|
39
40
|
children = props.children,
|
|
40
41
|
dataFormat = props.dataFormat,
|
|
@@ -44,8 +45,8 @@ function buildComponent(props) {
|
|
|
44
45
|
return "".concat(window.appConfig.OSS_HOST_V3, "?moduleCode=").concat(moduleCode, "&behaviorKey=").concat(behaviorKey, "&bucket=").concat(bucket, "&tag=").concat(tag, "¬e=").concat(note);
|
|
45
46
|
};
|
|
46
47
|
var supportUploadTypes = useCreation(function () {
|
|
47
|
-
return getSupportUploadTypes(forbiddenTypes);
|
|
48
|
-
}, [forbiddenTypes]);
|
|
48
|
+
return getSupportUploadTypes(forbiddenTypes, supportTypes);
|
|
49
|
+
}, [forbiddenTypes, supportTypes]);
|
|
49
50
|
return /*#__PURE__*/React.createElement(BasicFormItem, _extends({
|
|
50
51
|
extra: "".concat(formatMessage({
|
|
51
52
|
id: 'app.upload.supportUpload',
|
package/es/utils/form.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
@@ -22,6 +23,7 @@ import * as formItemUtils from "../helper/FromItems";
|
|
|
22
23
|
* 根据动态表单配置项生成formItem
|
|
23
24
|
* @param {动态表单配置项} props
|
|
24
25
|
* @param {自定义动态表单配置项} customProps
|
|
26
|
+
* @param {formUi配置项} formUiPreset
|
|
25
27
|
* @returns <BasicForm name='' ... />
|
|
26
28
|
*/
|
|
27
29
|
export function getFormItem() {
|
|
@@ -30,9 +32,10 @@ export function getFormItem() {
|
|
|
30
32
|
property = _ref.property,
|
|
31
33
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
34
|
var customProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
35
|
+
var formUiPreset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
33
36
|
if (!property) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
34
37
|
if (property === 'sint' || property === 'number') props.opt_decimal = 0;
|
|
35
|
-
var _translator = translator(props),
|
|
38
|
+
var _translator = translator(_objectSpread(_objectSpread({}, props), formUiPreset)),
|
|
36
39
|
name = _translator.name,
|
|
37
40
|
translateProps = _objectWithoutProperties(_translator, _excluded2);
|
|
38
41
|
var _merge = merge(
|
|
@@ -40,6 +43,7 @@ export function getFormItem() {
|
|
|
40
43
|
translateProps, formatCustomProps(customProps)),
|
|
41
44
|
type = _merge.type,
|
|
42
45
|
_props = _objectWithoutProperties(_merge, _excluded3);
|
|
46
|
+
console.log('getFormItem', translateProps, _props);
|
|
43
47
|
if (customProps.renderBasicFormItem) {
|
|
44
48
|
var com = customProps.renderBasicFormItem(_props);
|
|
45
49
|
var comProps = merge(_props, com.props);
|
|
@@ -189,8 +193,12 @@ export var dataFormat = function dataFormat() {
|
|
|
189
193
|
/**
|
|
190
194
|
*
|
|
191
195
|
* @param formType
|
|
196
|
+
* @param comName
|
|
197
|
+
* @param property
|
|
192
198
|
* @param props
|
|
199
|
+
* @param formItemRewrite
|
|
193
200
|
* @param customProps
|
|
201
|
+
* @param gridUiPreset
|
|
194
202
|
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
195
203
|
*/
|
|
196
204
|
export var getFormColumn = function getFormColumn() {
|
|
@@ -203,9 +211,10 @@ export var getFormColumn = function getFormColumn() {
|
|
|
203
211
|
var _ref5 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
204
212
|
formItemRewrite = _ref5.formItemRewrite,
|
|
205
213
|
customProps = _objectWithoutProperties(_ref5, _excluded7);
|
|
214
|
+
var gridUiPreset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
206
215
|
var formItemType = comName || defaultComName[property];
|
|
207
216
|
if (formItemType === 'radio') formItemType = 'select';
|
|
208
|
-
var _translator2 = translator(props),
|
|
217
|
+
var _translator2 = translator(_objectSpread(_objectSpread({}, props), gridUiPreset)),
|
|
209
218
|
name = _translator2.name,
|
|
210
219
|
translateProps = _objectWithoutProperties(_translator2, _excluded8);
|
|
211
220
|
var _merge2 = merge(
|
|
@@ -216,7 +225,7 @@ export var getFormColumn = function getFormColumn() {
|
|
|
216
225
|
_props = _objectWithoutProperties(_merge2, _excluded9);
|
|
217
226
|
var columnRender = getColumnRender(name, formItemType, _props);
|
|
218
227
|
if (formType !== 'writer') _props.name = name;
|
|
219
|
-
return _objectSpread(_objectSpread({
|
|
228
|
+
return _objectSpread(_objectSpread(_objectSpread({}, _props), {}, {
|
|
220
229
|
title: translateProps.label,
|
|
221
230
|
editable: formType === 'writer' && {
|
|
222
231
|
required: _props.required || ((_props$config = _props.config) === null || _props$config === void 0 ? void 0 : _props$config.required)
|
|
@@ -245,4 +254,29 @@ export var getFormColumn = function getFormColumn() {
|
|
|
245
254
|
},
|
|
246
255
|
field: name
|
|
247
256
|
});
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* 合并两个数组,并且数据顺序以arr2为准
|
|
261
|
+
* @param arr1
|
|
262
|
+
* @param arr2
|
|
263
|
+
* @param rowKey
|
|
264
|
+
*/
|
|
265
|
+
export var mergeAndSort = function mergeAndSort(arr1, arr2, rowKey) {
|
|
266
|
+
// 将a2转换为一个Map,便于快速查找
|
|
267
|
+
var a2Map = new Map(arr2.map(function (item) {
|
|
268
|
+
return [item[rowKey], item];
|
|
269
|
+
}));
|
|
270
|
+
// 创建一个新的数组,按a2的顺序填充元素,同时包含a1中不在a2中的元素
|
|
271
|
+
var mergedArray = arr2.map(function (item) {
|
|
272
|
+
var a1Item = arr1.find(function (a1) {
|
|
273
|
+
return a1[rowKey] === item[rowKey];
|
|
274
|
+
});
|
|
275
|
+
return a1Item ? _objectSpread(_objectSpread({}, item), a1Item) : item;
|
|
276
|
+
});
|
|
277
|
+
// 将a1中未出现在a2中的元素追加到合并后的数组末尾
|
|
278
|
+
mergedArray.push.apply(mergedArray, _toConsumableArray(arr1.filter(function (a1Item) {
|
|
279
|
+
return !a2Map.has(a1Item[rowKey]);
|
|
280
|
+
})));
|
|
281
|
+
return mergedArray;
|
|
248
282
|
};
|
package/es/utils/grid.js
CHANGED
|
@@ -4,9 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
var _excluded = ["comName", "property"],
|
|
5
5
|
_excluded2 = ["name"],
|
|
6
6
|
_excluded3 = ["filter", "filterParams"];
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import { getDvaApp } from 'umi';
|
|
9
|
-
import { merge, isNil, isArray, includes, capitalize
|
|
8
|
+
import { merge, isNil, isArray, includes, capitalize } from 'lodash';
|
|
10
9
|
import { Switch, Tag } from 'luck-design/antd';
|
|
11
10
|
import moment from 'moment';
|
|
12
11
|
import UploadGridCell from "../upload/GridCell";
|
|
@@ -69,9 +68,9 @@ export function getColumnRender(name, type) {
|
|
|
69
68
|
break;
|
|
70
69
|
case 'region':
|
|
71
70
|
render = function render(text, record) {
|
|
72
|
-
return record["".concat(name, "_virtual")] ||
|
|
71
|
+
return record["".concat(name, "_virtual")] || text ? text.map(function (i) {
|
|
73
72
|
return i.name;
|
|
74
|
-
}).join('/') : undefined
|
|
73
|
+
}).join('/') : undefined;
|
|
75
74
|
};
|
|
76
75
|
break;
|
|
77
76
|
case 'upload':
|
|
@@ -115,11 +114,12 @@ export var getGridColumn = function getGridColumn() {
|
|
|
115
114
|
var customProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
116
115
|
var isTreeGrid = arguments.length > 2 ? arguments[2] : undefined;
|
|
117
116
|
var writable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
117
|
+
var gridUiPreset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
118
118
|
var _props$isVirtual = props.isVirtual,
|
|
119
119
|
isVirtual = _props$isVirtual === void 0 ? false : _props$isVirtual,
|
|
120
120
|
_props$extra = props.extra,
|
|
121
121
|
extra = _props$extra === void 0 ? {} : _props$extra;
|
|
122
|
-
var _translator = translator(props),
|
|
122
|
+
var _translator = translator(_objectSpread(_objectSpread({}, props), gridUiPreset)),
|
|
123
123
|
name = _translator.name,
|
|
124
124
|
translateProps = _objectWithoutProperties(_translator, _excluded2);
|
|
125
125
|
var _merge = merge(translateProps, formatCustomProps(customProps)),
|
|
@@ -127,11 +127,12 @@ export var getGridColumn = function getGridColumn() {
|
|
|
127
127
|
filterParams = _merge.filterParams,
|
|
128
128
|
_props = _objectWithoutProperties(_merge, _excluded3);
|
|
129
129
|
var _extra = JSON.parse(extra) || {};
|
|
130
|
-
var data = _objectSpread(_objectSpread({
|
|
130
|
+
var data = _objectSpread(_objectSpread({
|
|
131
|
+
headerAlign: getAlign(_extra, 'sheading_alignment_virtual'),
|
|
132
|
+
align: getAlign(_extra, 'scell_alignment_virtual')
|
|
133
|
+
}, _props), {}, {
|
|
131
134
|
field: name,
|
|
132
135
|
title: _props.label,
|
|
133
|
-
headerAlign: getAlign(_extra, 'sheading_alignment_virtual'),
|
|
134
|
-
align: getAlign(_extra, 'scell_alignment_virtual'),
|
|
135
136
|
render: _props.render || getColumnRender(name, comName || defaultComName[property], _props)
|
|
136
137
|
});
|
|
137
138
|
if (isTreeGrid || isVirtual || includes(['user', 'select', 'group', 'switch', 'color', 'region', 'file'], comName || defaultComName[property])) data.sortable = false;
|
|
@@ -19,7 +19,7 @@ var _action2 = require("../../helper/action");
|
|
|
19
19
|
var _utils = require("@luck-design-biz/base/utils");
|
|
20
20
|
var LuckDaContext = exports.LuckDaContext = /*#__PURE__*/(0, _react.createContext)();
|
|
21
21
|
var builder = function builder(WrappedComponent, moduleCode) {
|
|
22
|
-
var Component =
|
|
22
|
+
var Component = function Component(props) {
|
|
23
23
|
if (!moduleCode) return (0, _utils.formatMessage)({
|
|
24
24
|
id: 'luckda.paramMiss.moduleCode',
|
|
25
25
|
label: '缺少模块Key'
|
|
@@ -36,21 +36,28 @@ var builder = function builder(WrappedComponent, moduleCode) {
|
|
|
36
36
|
var _useRequest = (0, _ahooks.useRequest)(_services.readModlue, {
|
|
37
37
|
defaultParams: [{
|
|
38
38
|
moduleCode: moduleCode
|
|
39
|
-
}]
|
|
40
|
-
onSuccess: function onSuccess(res) {
|
|
41
|
-
var code = res.code,
|
|
42
|
-
data = res.data;
|
|
43
|
-
if (code === 1) {
|
|
44
|
-
setModuleData({
|
|
45
|
-
actions: data.actions || {},
|
|
46
|
-
dataSets: data.dataSets || {},
|
|
47
|
-
isTree: data.isTree || [],
|
|
48
|
-
resources: data.resources || []
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
39
|
+
}]
|
|
52
40
|
}),
|
|
53
|
-
|
|
41
|
+
loading1 = _useRequest.loading,
|
|
42
|
+
moduleResult = _useRequest.data;
|
|
43
|
+
var _useRequest2 = (0, _ahooks.useRequest)(_services.readUI, {
|
|
44
|
+
defaultParams: [{
|
|
45
|
+
moduleCode: moduleCode
|
|
46
|
+
}]
|
|
47
|
+
}),
|
|
48
|
+
loading2 = _useRequest2.loading,
|
|
49
|
+
uiResult = _useRequest2.data;
|
|
50
|
+
(0, _react.useEffect)(function () {
|
|
51
|
+
if (!loading1 && !loading2 && (moduleResult === null || moduleResult === void 0 ? void 0 : moduleResult.code) === 1 && (uiResult === null || uiResult === void 0 ? void 0 : uiResult.code) === 1) {
|
|
52
|
+
setModuleData({
|
|
53
|
+
actions: moduleResult.data.actions || {},
|
|
54
|
+
dataSets: moduleResult.data.dataSets || {},
|
|
55
|
+
isTree: moduleResult.data.isTree || [],
|
|
56
|
+
resources: moduleResult.data.resources || [],
|
|
57
|
+
moduleUiList: uiResult.data.moduleUiList || {}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}, [loading1, loading2, moduleResult, uiResult]);
|
|
54
61
|
var openPop = (0, _ahooks.useMemoizedFn)(function (ldId, params) {
|
|
55
62
|
setPops(function (prev) {
|
|
56
63
|
return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, prev), {}, (0, _defineProperty2.default)({}, ldId, (0, _objectSpread4.default)((0, _objectSpread4.default)({}, prev[ldId]), params)));
|
|
@@ -100,7 +107,7 @@ var builder = function builder(WrappedComponent, moduleCode) {
|
|
|
100
107
|
var _props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
101
108
|
fieldProps.current = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, fieldProps.current), _props);
|
|
102
109
|
};
|
|
103
|
-
if (
|
|
110
|
+
if (loading1 || loading2) return null;
|
|
104
111
|
if (!moduleData) return (0, _utils.formatMessage)({
|
|
105
112
|
id: 'luckda.module.loadFailed',
|
|
106
113
|
label: '模块信息加载失败'
|
|
@@ -118,9 +125,7 @@ var builder = function builder(WrappedComponent, moduleCode) {
|
|
|
118
125
|
setFieldProps: setFieldProps,
|
|
119
126
|
moduleCode: moduleCode
|
|
120
127
|
})
|
|
121
|
-
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, (0, _extends2.default)({
|
|
122
|
-
ref: ref
|
|
123
|
-
}, moduleData || {}, {
|
|
128
|
+
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, (0, _extends2.default)({}, moduleData || {}, {
|
|
124
129
|
doAction: doAction,
|
|
125
130
|
openPop: openPop,
|
|
126
131
|
closePop: closePop
|
|
@@ -136,7 +141,7 @@ var builder = function builder(WrappedComponent, moduleCode) {
|
|
|
136
141
|
}, pops[ldId])
|
|
137
142
|
});
|
|
138
143
|
}));
|
|
139
|
-
}
|
|
144
|
+
};
|
|
140
145
|
return Component;
|
|
141
146
|
};
|
|
142
147
|
var _default = exports.default = builder;
|