@luck-design-biz/luckda 0.0.25 → 0.0.26
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 +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +24 -17
- package/es/components/LdAutoForm/index.js +15 -5
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +4 -1
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +18 -27
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +12 -4
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +0 -0
- package/es/components/LdTree/index.js +5 -32
- package/es/components/LdTree/index.less +1 -6
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +8 -2
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +4 -1
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -1
- package/es/lowcode/constants/api-url.js +1 -351
- package/es/lowcode/constants/event-topics.js +1 -14
- package/es/lowcode/constants/index.js +1 -3
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/meta/button.props.default.json +7 -15
- package/es/lowcode/engine/meta/cardlist.props.default.json +9 -16
- package/{lib/lowcode/engine/meta/button.props.json → es/lowcode/engine/meta/components/button.json} +103 -126
- package/{lib/lowcode/engine/meta/cardlist.props.json → es/lowcode/engine/meta/components/card-list.json} +142 -142
- package/es/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -142
- package/{lib/lowcode/engine/meta/form.props.json → es/lowcode/engine/meta/components/form.json} +115 -115
- 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/{lib/lowcode/engine/meta/jsx.props.json → es/lowcode/engine/meta/components/jsx.json} +23 -24
- package/es/lowcode/engine/meta/{layout.props.json → components/layout.json} +106 -107
- package/es/lowcode/engine/meta/{link.props.json → components/link.json} +110 -111
- package/{lib/lowcode/engine/meta/dialog.props.json → es/lowcode/engine/meta/components/modal.json} +119 -119
- package/es/lowcode/engine/meta/{section.props.json → 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} +30 -12
- package/{lib/lowcode/engine/meta/tabs.props.json → es/lowcode/engine/meta/components/tabs.json} +139 -139
- package/{lib/lowcode/engine/meta/text.props.json → es/lowcode/engine/meta/components/text.json} +64 -65
- package/{lib/lowcode/engine/meta/tree.props.json → es/lowcode/engine/meta/components/tree.json} +155 -202
- package/es/lowcode/engine/meta/components-list.json +121 -127
- package/es/lowcode/engine/meta/drawer.props.default.json +9 -16
- package/es/lowcode/engine/meta/form.props.default.json +4 -11
- 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 -45
- package/es/lowcode/engine/meta/tabs.props.default.json +9 -16
- package/es/lowcode/engine/meta/text.props.default.json +3 -11
- package/es/lowcode/engine/meta/tree.props.default.json +8 -21
- package/es/lowcode/engine/provider/ContextProvider.js +164 -0
- 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 -96
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +1 -3
- package/es/lowcode/painter/Components.js +0 -0
- 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 -156
- 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/components.less +0 -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 -93
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -1
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/view/Canvas.js +70 -79
- package/es/lowcode/view/Loading.js +0 -0
- 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 +8 -41
- package/es/lowcode/view/lc-components/Button/index.js +7 -75
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- 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 -38
- package/es/lowcode/view/lc-components/Form/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +7 -40
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Table/index.js +11 -451
- package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +6 -77
- package/es/lowcode/view/lc-components/Wrapper.js +24 -33
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- 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/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +4 -3
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +37 -3
- package/es/utils/grid.js +9 -7
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +22 -15
- package/lib/components/LdAutoForm/index.js +14 -4
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +5 -1
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +17 -26
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +11 -3
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdRuntimeCom/index.js +0 -0
- package/lib/components/LdTree/index.js +4 -31
- package/lib/components/LdTree/index.less +1 -6
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +8 -2
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +4 -1
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -8
- package/lib/lowcode/constants/api-url.js +2 -353
- package/lib/lowcode/constants/event-topics.js +2 -15
- package/lib/lowcode/constants/index.js +2 -4
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/meta/button.props.default.json +7 -15
- package/lib/lowcode/engine/meta/cardlist.props.default.json +9 -16
- package/{es/lowcode/engine/meta/button.props.json → lib/lowcode/engine/meta/components/button.json} +103 -126
- package/{es/lowcode/engine/meta/cardlist.props.json → lib/lowcode/engine/meta/components/card-list.json} +142 -142
- package/lib/lowcode/engine/meta/{drawer.props.json → components/drawer.json} +142 -142
- package/{es/lowcode/engine/meta/form.props.json → lib/lowcode/engine/meta/components/form.json} +115 -115
- 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/{es/lowcode/engine/meta/jsx.props.json → lib/lowcode/engine/meta/components/jsx.json} +23 -24
- package/lib/lowcode/engine/meta/{layout.props.json → components/layout.json} +106 -107
- package/lib/lowcode/engine/meta/{link.props.json → components/link.json} +110 -111
- package/{es/lowcode/engine/meta/dialog.props.json → lib/lowcode/engine/meta/components/modal.json} +119 -119
- package/lib/lowcode/engine/meta/{section.props.json → 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} +30 -12
- package/{es/lowcode/engine/meta/tabs.props.json → lib/lowcode/engine/meta/components/tabs.json} +139 -139
- package/{es/lowcode/engine/meta/text.props.json → lib/lowcode/engine/meta/components/text.json} +64 -65
- package/{es/lowcode/engine/meta/tree.props.json → lib/lowcode/engine/meta/components/tree.json} +155 -202
- package/lib/lowcode/engine/meta/components-list.json +121 -127
- package/lib/lowcode/engine/meta/drawer.props.default.json +9 -16
- package/lib/lowcode/engine/meta/form.props.default.json +4 -11
- 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 -45
- package/lib/lowcode/engine/meta/tabs.props.default.json +9 -16
- package/lib/lowcode/engine/meta/text.props.default.json +3 -11
- package/lib/lowcode/engine/meta/tree.props.default.json +8 -21
- package/lib/lowcode/engine/provider/ContextProvider.js +172 -0
- 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 -101
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +0 -0
- 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 +2 -156
- 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/components.less +0 -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 -93
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -1
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/view/Canvas.js +75 -84
- package/lib/lowcode/view/Loading.js +0 -0
- 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 +7 -39
- package/lib/lowcode/view/lc-components/Button/index.js +8 -76
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- 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 -38
- package/lib/lowcode/view/lc-components/Form/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +8 -41
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Table/index.js +11 -451
- package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +6 -77
- package/lib/lowcode/view/lc-components/Wrapper.js +24 -32
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- 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/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +4 -3
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +38 -3
- package/lib/utils/grid.js +8 -6
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +8 -22
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/components/LDActions/index.js +0 -130
- package/es/components/LDActions/index.less +0 -48
- package/es/locales/zh-CN.js +0 -151
- package/es/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -32
- 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 -46
- package/es/lowcode/engine/meta/box.props.default.json +0 -10
- package/es/lowcode/engine/meta/box.props.json +0 -40
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -18
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +0 -135
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/es/lowcode/engine/meta/table.props.json +0 -411
- package/es/lowcode/engine/provider/ContextProvider/index.js +0 -199
- package/es/lowcode/engine/tools/usePromiseState.js +0 -25
- package/es/lowcode/painter/DesignOperator.js +0 -271
- package/es/lowcode/painter/DesignToolbar.js +0 -91
- package/es/lowcode/painter/components/ActionBindModal.js +0 -180
- package/es/lowcode/painter/components/AdvancePanel.js +0 -68
- package/es/lowcode/painter/components/AttrsPanel.js +0 -134
- package/es/lowcode/painter/components/Collapse.js +0 -95
- package/es/lowcode/painter/components/ColorInput.js +0 -125
- package/es/lowcode/painter/components/FieldSelector.js +0 -44
- package/es/lowcode/painter/components/ListEditor.js +0 -91
- package/es/lowcode/painter/components/NumberInput.js +0 -148
- package/es/lowcode/painter/components/PopConfirm.js +0 -30
- package/es/lowcode/painter/components/PopForm.js +0 -71
- package/es/lowcode/painter/components/SortBox.js +0 -92
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -108
- 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 -117
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +0 -41
- package/es/lowcode/painter/components/code-editor/index.js +0 -2
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -154
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +0 -198
- 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/ImpExp.js +0 -91
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -48
- 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/TableTopFilter.js +0 -306
- 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/action-bind-modal.less +0 -99
- 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/impexp.less +0 -7
- 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/panel-attrs.less +0 -43
- package/es/lowcode/painter/style/pop-confirm.less +0 -17
- 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 -14
- package/es/lowcode/view/lc-components/Box/meta.json +0 -40
- 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 -120
- 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 -143
- 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 -116
- 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 -72
- 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 -51
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +0 -96
- package/es/lowcode/view/lc-components/Table/meta.json +0 -372
- 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 -140
- 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 -54
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -9
- package/es/lowcode/view/lc-components/Tree/index.less +0 -2
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -199
- package/lib/components/LDActions/index.js +0 -138
- package/lib/components/LDActions/index.less +0 -48
- package/lib/locales/zh-CN.js +0 -157
- package/lib/lowcode/engine/factory/panel-item-factory/CheckboxStrategy.js +0 -38
- 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 -52
- package/lib/lowcode/engine/meta/box.props.default.json +0 -10
- package/lib/lowcode/engine/meta/box.props.json +0 -40
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -18
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +0 -135
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
- package/lib/lowcode/engine/meta/table.props.json +0 -411
- package/lib/lowcode/engine/provider/ContextProvider/index.js +0 -207
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -32
- package/lib/lowcode/painter/DesignOperator.js +0 -278
- package/lib/lowcode/painter/DesignToolbar.js +0 -99
- package/lib/lowcode/painter/components/ActionBindModal.js +0 -188
- package/lib/lowcode/painter/components/AdvancePanel.js +0 -76
- package/lib/lowcode/painter/components/AttrsPanel.js +0 -142
- package/lib/lowcode/painter/components/Collapse.js +0 -102
- package/lib/lowcode/painter/components/ColorInput.js +0 -132
- package/lib/lowcode/painter/components/FieldSelector.js +0 -52
- package/lib/lowcode/painter/components/ListEditor.js +0 -97
- package/lib/lowcode/painter/components/NumberInput.js +0 -155
- package/lib/lowcode/painter/components/PopConfirm.js +0 -36
- package/lib/lowcode/painter/components/PopForm.js +0 -77
- package/lib/lowcode/painter/components/SortBox.js +0 -99
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -115
- 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 -128
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +0 -48
- package/lib/lowcode/painter/components/code-editor/index.js +0 -20
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +0 -162
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +0 -206
- 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/ImpExp.js +0 -98
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -56
- 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/TableTopFilter.js +0 -314
- 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/action-bind-modal.less +0 -99
- 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/impexp.less +0 -7
- 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/panel-attrs.less +0 -43
- package/lib/lowcode/painter/style/pop-confirm.less +0 -17
- 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 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -40
- 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 -120
- 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 -143
- 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 -116
- 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 -79
- 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 -59
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +0 -104
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -372
- 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 -140
- 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 -62
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -16
- package/lib/lowcode/view/lc-components/Tree/index.less +0 -2
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -199
|
@@ -6,94 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
11
|
var _ahooks = require("ahooks");
|
|
15
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
16
12
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
17
|
-
var
|
|
18
|
-
var _constants = require("../../../constants");
|
|
19
|
-
var _helper = require("../../../engine/tools/helper");
|
|
20
|
-
var _treePropsDefault = _interopRequireDefault(require("../../../engine/meta/tree.props.default.json"));
|
|
21
|
-
var _index2 = _interopRequireDefault(require("./index.less"));
|
|
22
|
-
var _excluded = ["context", "id", "className", "dataset", "width", "height", "showLine", "defaultExpandDeep", "editable"];
|
|
13
|
+
var _excluded = ["id"];
|
|
23
14
|
var LCTree = function LCTree(_ref) {
|
|
24
|
-
var
|
|
25
|
-
id = _ref.id,
|
|
26
|
-
className = _ref.className,
|
|
27
|
-
dataset = _ref.dataset,
|
|
28
|
-
width = _ref.width,
|
|
29
|
-
height = _ref.height,
|
|
30
|
-
showLine = _ref.showLine,
|
|
31
|
-
defaultExpandDeep = _ref.defaultExpandDeep,
|
|
32
|
-
editable = _ref.editable,
|
|
15
|
+
var id = _ref.id,
|
|
33
16
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
34
|
-
var boxRef = (0, _react.useRef)();
|
|
35
17
|
var ref = (0, _react.useRef)();
|
|
36
18
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
37
|
-
return
|
|
19
|
+
return ref.current;
|
|
38
20
|
});
|
|
39
21
|
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
40
22
|
id: id,
|
|
41
23
|
getTargetDom: getTargetDom
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
43
|
-
ref: ref
|
|
44
|
-
|
|
45
|
-
width: width,
|
|
46
|
-
height: height,
|
|
47
|
-
id: id,
|
|
48
|
-
ldId: id,
|
|
49
|
-
className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _index2.default['runtime-tree'], context.runtime === _constants.RUNTIME.DESIGN), className, !!className)),
|
|
50
|
-
dataSetKey: dataset,
|
|
51
|
-
showLine: showLine,
|
|
52
|
-
readOnly: !editable,
|
|
53
|
-
defaultExpandDeep: defaultExpandDeep === 'all' ? defaultExpandDeep : Number(defaultExpandDeep) // 可以为数字或者“all”
|
|
54
|
-
}, props)));
|
|
55
|
-
};
|
|
56
|
-
LCTree.propTypes = {
|
|
57
|
-
/**
|
|
58
|
-
* @name 唯一标识
|
|
59
|
-
* @type string
|
|
60
|
-
* @disabled true
|
|
61
|
-
*/
|
|
62
|
-
id: _propTypes.default.string.isRequired,
|
|
63
|
-
/**
|
|
64
|
-
* @name 数据集
|
|
65
|
-
* @type _DataSetSelector
|
|
66
|
-
*/
|
|
67
|
-
dataset: _propTypes.default.string,
|
|
68
|
-
/**
|
|
69
|
-
* @name 支持编辑
|
|
70
|
-
* @type switch
|
|
71
|
-
* @default true
|
|
72
|
-
*/
|
|
73
|
-
editable: _propTypes.default.bool,
|
|
74
|
-
/**
|
|
75
|
-
* @name 宽度
|
|
76
|
-
* @type _WidthHeight
|
|
77
|
-
* @default 100%
|
|
78
|
-
* @group styleSetting
|
|
79
|
-
*/
|
|
80
|
-
width: _propTypes.default.string,
|
|
81
|
-
/**
|
|
82
|
-
* @name 高度
|
|
83
|
-
* @type _WidthHeight
|
|
84
|
-
* @default 100%
|
|
85
|
-
* @group styleSetting
|
|
86
|
-
*/
|
|
87
|
-
height: _propTypes.default.string,
|
|
88
|
-
/**
|
|
89
|
-
* @name 操作项
|
|
90
|
-
* @type _TableActions
|
|
91
|
-
* @groupNext actionsColumn
|
|
92
|
-
* @default { "todoList": []}
|
|
93
|
-
*/
|
|
94
|
-
actions: _propTypes.default.shape({
|
|
95
|
-
todoList: _propTypes.default.array
|
|
96
|
-
})
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
ref: ref
|
|
26
|
+
}, "LCTree"));
|
|
97
27
|
};
|
|
98
|
-
LCTree.defaultProps = (0, _helper.omitBadProps)(_treePropsDefault.default);
|
|
99
28
|
var _default = exports.default = LCTree;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
8
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _ahooks = require("ahooks");
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _ContextProvider = require("../../engine/provider/ContextProvider");
|
|
12
12
|
var _dataProcess = require("../../engine/tools/dataProcess");
|
|
13
13
|
var _constants = require("../../constants");
|
|
@@ -17,40 +17,32 @@ var LCWrapper = function LCWrapper(_ref) {
|
|
|
17
17
|
getTargetDom = _ref.getTargetDom,
|
|
18
18
|
api = _ref.api;
|
|
19
19
|
var context = (0, _ContextProvider.useLDContext)();
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
getLevelNodes: function getLevelNodes() {
|
|
27
|
-
return (0, _dataProcess.getPathNodesById)(_pageData.current, id);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}, []);
|
|
20
|
+
var _apiRef = (0, _react.useRef)({
|
|
21
|
+
getSelfAndParentLCData: function getSelfAndParentLCData() {
|
|
22
|
+
return (0, _dataProcess.findNodeAndParent)(id, context.pageData);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
31
25
|
(0, _react.useEffect)(function () {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return api ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _api), api.current) : _api;
|
|
44
|
-
}
|
|
45
|
-
return Reflect.get(target, property, receiver);
|
|
26
|
+
var dom = getTargetDom();
|
|
27
|
+
if (dom) {
|
|
28
|
+
dom.setAttribute('id', id);
|
|
29
|
+
dom.classList.add(_constants.CELL_CLASS_NAME);
|
|
30
|
+
}
|
|
31
|
+
context.register(id, new Proxy({
|
|
32
|
+
dom: dom
|
|
33
|
+
}, {
|
|
34
|
+
get: function get(target, property, receiver) {
|
|
35
|
+
if (property === 'api') {
|
|
36
|
+
return api ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _apiRef.current), api.current) : _apiRef.current;
|
|
46
37
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
return Reflect.get(target, property, receiver);
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
context.$publisher(context.topics.COMPONENT_MOUNT, {
|
|
42
|
+
id: id
|
|
51
43
|
});
|
|
52
44
|
return function () {
|
|
53
|
-
context.
|
|
45
|
+
context.unregister(id);
|
|
54
46
|
context.$publisher(context.topics.COMPONENT_UNMOUNT, {
|
|
55
47
|
id: id
|
|
56
48
|
});
|
|
File without changes
|
|
File without changes
|
package/lib/services.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.readBehaviorCall = readBehaviorCall;
|
|
8
8
|
exports.readModlue = readModlue;
|
|
9
|
+
exports.readUI = readUI;
|
|
9
10
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
10
11
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
12
|
var _querystring = require("querystring");
|
|
@@ -28,15 +29,32 @@ function _readModlue() {
|
|
|
28
29
|
}));
|
|
29
30
|
return _readModlue.apply(this, arguments);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
32
|
+
function readUI(_x2) {
|
|
33
|
+
return _readUI.apply(this, arguments);
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
35
|
+
function _readUI() {
|
|
36
|
+
_readUI = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(get) {
|
|
36
37
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
37
38
|
while (1) switch (_context2.prev = _context2.next) {
|
|
38
39
|
case 0:
|
|
39
|
-
return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/
|
|
40
|
+
return _context2.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/ui/builder/noAuthFetchModuleDataSetUI?").concat((0, _querystring.stringify)(get))));
|
|
41
|
+
case 1:
|
|
42
|
+
case "end":
|
|
43
|
+
return _context2.stop();
|
|
44
|
+
}
|
|
45
|
+
}, _callee2);
|
|
46
|
+
}));
|
|
47
|
+
return _readUI.apply(this, arguments);
|
|
48
|
+
}
|
|
49
|
+
function readBehaviorCall(_x3, _x4) {
|
|
50
|
+
return _readBehaviorCall.apply(this, arguments);
|
|
51
|
+
}
|
|
52
|
+
function _readBehaviorCall() {
|
|
53
|
+
_readBehaviorCall = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3(get, post) {
|
|
54
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
|
|
55
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
56
|
+
case 0:
|
|
57
|
+
return _context3.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.LUCKDA_HOST, "/to/behavior/call?").concat((0, _querystring.stringify)(get)), {
|
|
40
58
|
method: 'POST',
|
|
41
59
|
body: post,
|
|
42
60
|
headers: {
|
|
@@ -45,9 +63,9 @@ function _readBehaviorCall() {
|
|
|
45
63
|
}));
|
|
46
64
|
case 1:
|
|
47
65
|
case "end":
|
|
48
|
-
return
|
|
66
|
+
return _context3.stop();
|
|
49
67
|
}
|
|
50
|
-
},
|
|
68
|
+
}, _callee3);
|
|
51
69
|
}));
|
|
52
70
|
return _readBehaviorCall.apply(this, arguments);
|
|
53
71
|
}
|
|
@@ -20,7 +20,7 @@ var _luckDesign = require("luck-design");
|
|
|
20
20
|
var _ApiConfig = _interopRequireDefault(require("@/services/ApiConfig"));
|
|
21
21
|
var _FormList = require("@luck-design-biz/base/FormList");
|
|
22
22
|
var _utils = require("@luck-design-biz/base/utils");
|
|
23
|
-
var _excluded = ["formId", "formRef", "showNote", "operates", "loading", "uploadUrl", "forbiddenTypes", "beforeUpload", "formMode", "onUploadChange", "zipName", "resetActions", "getUrl", "wrapperRef"];
|
|
23
|
+
var _excluded = ["formId", "formRef", "showNote", "operates", "loading", "uploadUrl", "supportTypes", "forbiddenTypes", "beforeUpload", "formMode", "onUploadChange", "zipName", "resetActions", "getUrl", "wrapperRef"];
|
|
24
24
|
var columns = [{
|
|
25
25
|
field: 'name',
|
|
26
26
|
title: '附件名称'
|
|
@@ -63,6 +63,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
63
63
|
operates = _ref$operates === void 0 ? ['read', 'add', 'delete', 'download'] : _ref$operates,
|
|
64
64
|
loading = _ref.loading,
|
|
65
65
|
uploadUrl = _ref.uploadUrl,
|
|
66
|
+
supportTypes = _ref.supportTypes,
|
|
66
67
|
_ref$forbiddenTypes = _ref.forbiddenTypes,
|
|
67
68
|
forbiddenTypes = _ref$forbiddenTypes === void 0 ? [] : _ref$forbiddenTypes,
|
|
68
69
|
_beforeUpload = _ref.beforeUpload,
|
|
@@ -86,8 +87,8 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
86
87
|
var _getDvaApp$_store$get = (_getDvaApp = (0, _umi.getDvaApp)()) === null || _getDvaApp === void 0 ? void 0 : _getDvaApp._store.getState().user,
|
|
87
88
|
currentUser = _getDvaApp$_store$get.currentUser;
|
|
88
89
|
var supportUploadTypes = (0, _ahooks.useCreation)(function () {
|
|
89
|
-
return (0, _utils.getSupportUploadTypes)(forbiddenTypes);
|
|
90
|
-
}, [forbiddenTypes]);
|
|
90
|
+
return (0, _utils.getSupportUploadTypes)(forbiddenTypes, supportTypes);
|
|
91
|
+
}, [forbiddenTypes, supportTypes]);
|
|
91
92
|
|
|
92
93
|
// 下载
|
|
93
94
|
var downloadFile = function downloadFile(filenames, tag) {
|
|
@@ -385,7 +386,7 @@ var UploadGridForm = function UploadGridForm(_ref) {
|
|
|
385
386
|
return (0, _utils.beforeUpload)({
|
|
386
387
|
file: file,
|
|
387
388
|
fileList: fileList,
|
|
388
|
-
|
|
389
|
+
forbiddenTypes: forbiddenTypes,
|
|
389
390
|
beforeUpload: _beforeUpload
|
|
390
391
|
});
|
|
391
392
|
}
|
package/lib/upload/Form/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _luckDesign = require("luck-design");
|
|
13
13
|
var _utils = require("@luck-design-biz/base/utils");
|
|
14
14
|
var _ahooks = require("ahooks");
|
|
15
|
-
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
15
|
+
var _excluded = ["uploadUrl", "moduleCode", "bucket", "tag", "note", "config", "supportTypes", "forbiddenTypes", "children", "dataFormat", "listType"];
|
|
16
16
|
/**
|
|
17
17
|
* 表单类型富文本上传
|
|
18
18
|
* 是否实体字段: 是
|
|
@@ -41,6 +41,7 @@ function buildComponent(props) {
|
|
|
41
41
|
note = _props$note === void 0 ? '' : _props$note,
|
|
42
42
|
_props$config = props.config,
|
|
43
43
|
config = _props$config === void 0 ? {} : _props$config,
|
|
44
|
+
supportTypes = props.supportTypes,
|
|
44
45
|
forbiddenTypes = props.forbiddenTypes,
|
|
45
46
|
children = props.children,
|
|
46
47
|
dataFormat = props.dataFormat,
|
|
@@ -50,8 +51,8 @@ function buildComponent(props) {
|
|
|
50
51
|
return "".concat(window.appConfig.OSS_HOST_V3, "?moduleCode=").concat(moduleCode, "&behaviorKey=").concat(behaviorKey, "&bucket=").concat(bucket, "&tag=").concat(tag, "¬e=").concat(note);
|
|
51
52
|
};
|
|
52
53
|
var supportUploadTypes = (0, _ahooks.useCreation)(function () {
|
|
53
|
-
return (0, _utils.getSupportUploadTypes)(forbiddenTypes);
|
|
54
|
-
}, [forbiddenTypes]);
|
|
54
|
+
return (0, _utils.getSupportUploadTypes)(forbiddenTypes, supportTypes);
|
|
55
|
+
}, [forbiddenTypes, supportTypes]);
|
|
55
56
|
return /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, (0, _extends2.default)({
|
|
56
57
|
extra: "".concat((0, _utils.formatMessage)({
|
|
57
58
|
id: 'app.upload.supportUpload',
|
|
File without changes
|
package/lib/upload/index.js
CHANGED
|
File without changes
|
package/lib/utils/action.js
CHANGED
|
File without changes
|
package/lib/utils/form.js
CHANGED
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.getFormColumn = exports.formItemDataFormat = exports.dataFormat = void 0;
|
|
9
9
|
exports.getFormItem = getFormItem;
|
|
10
|
+
exports.mergeAndSort = void 0;
|
|
11
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
13
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
@@ -30,6 +32,7 @@ var _excluded = ["comName", "property"],
|
|
|
30
32
|
* 根据动态表单配置项生成formItem
|
|
31
33
|
* @param {动态表单配置项} props
|
|
32
34
|
* @param {自定义动态表单配置项} customProps
|
|
35
|
+
* @param {formUi配置项} formUiPreset
|
|
33
36
|
* @returns <BasicForm name='' ... />
|
|
34
37
|
*/
|
|
35
38
|
function getFormItem() {
|
|
@@ -38,9 +41,10 @@ function getFormItem() {
|
|
|
38
41
|
property = _ref.property,
|
|
39
42
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
40
43
|
var customProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
44
|
+
var formUiPreset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
41
45
|
if (!property) return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
42
46
|
if (property === 'sint' || property === 'number') props.opt_decimal = 0;
|
|
43
|
-
var _translator = (0, _form.translator)(props),
|
|
47
|
+
var _translator = (0, _form.translator)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), formUiPreset)),
|
|
44
48
|
name = _translator.name,
|
|
45
49
|
translateProps = (0, _objectWithoutProperties2.default)(_translator, _excluded2);
|
|
46
50
|
var _merge = (0, _lodash.merge)(
|
|
@@ -48,6 +52,7 @@ function getFormItem() {
|
|
|
48
52
|
translateProps, (0, _form.formatCustomProps)(customProps)),
|
|
49
53
|
type = _merge.type,
|
|
50
54
|
_props = (0, _objectWithoutProperties2.default)(_merge, _excluded3);
|
|
55
|
+
console.log('getFormItem', translateProps, _props);
|
|
51
56
|
if (customProps.renderBasicFormItem) {
|
|
52
57
|
var com = customProps.renderBasicFormItem(_props);
|
|
53
58
|
var comProps = (0, _lodash.merge)(_props, com.props);
|
|
@@ -197,8 +202,12 @@ var dataFormat = exports.dataFormat = function dataFormat() {
|
|
|
197
202
|
/**
|
|
198
203
|
*
|
|
199
204
|
* @param formType
|
|
205
|
+
* @param comName
|
|
206
|
+
* @param property
|
|
200
207
|
* @param props
|
|
208
|
+
* @param formItemRewrite
|
|
201
209
|
* @param customProps
|
|
210
|
+
* @param gridUiPreset
|
|
202
211
|
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
203
212
|
*/
|
|
204
213
|
var getFormColumn = exports.getFormColumn = function getFormColumn() {
|
|
@@ -211,9 +220,10 @@ var getFormColumn = exports.getFormColumn = function getFormColumn() {
|
|
|
211
220
|
var _ref5 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
212
221
|
formItemRewrite = _ref5.formItemRewrite,
|
|
213
222
|
customProps = (0, _objectWithoutProperties2.default)(_ref5, _excluded7);
|
|
223
|
+
var gridUiPreset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
214
224
|
var formItemType = comName || _form.defaultComName[property];
|
|
215
225
|
if (formItemType === 'radio') formItemType = 'select';
|
|
216
|
-
var _translator2 = (0, _form.translator)(props),
|
|
226
|
+
var _translator2 = (0, _form.translator)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), gridUiPreset)),
|
|
217
227
|
name = _translator2.name,
|
|
218
228
|
translateProps = (0, _objectWithoutProperties2.default)(_translator2, _excluded8);
|
|
219
229
|
var _merge2 = (0, _lodash.merge)(
|
|
@@ -224,7 +234,7 @@ var getFormColumn = exports.getFormColumn = function getFormColumn() {
|
|
|
224
234
|
_props = (0, _objectWithoutProperties2.default)(_merge2, _excluded9);
|
|
225
235
|
var columnRender = (0, _grid.getColumnRender)(name, formItemType, _props);
|
|
226
236
|
if (formType !== 'writer') _props.name = name;
|
|
227
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
237
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _props), {}, {
|
|
228
238
|
title: translateProps.label,
|
|
229
239
|
editable: formType === 'writer' && {
|
|
230
240
|
required: _props.required || ((_props$config = _props.config) === null || _props$config === void 0 ? void 0 : _props$config.required)
|
|
@@ -253,4 +263,29 @@ var getFormColumn = exports.getFormColumn = function getFormColumn() {
|
|
|
253
263
|
},
|
|
254
264
|
field: name
|
|
255
265
|
});
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* 合并两个数组,并且数据顺序以arr2为准
|
|
270
|
+
* @param arr1
|
|
271
|
+
* @param arr2
|
|
272
|
+
* @param rowKey
|
|
273
|
+
*/
|
|
274
|
+
var mergeAndSort = exports.mergeAndSort = function mergeAndSort(arr1, arr2, rowKey) {
|
|
275
|
+
// 将a2转换为一个Map,便于快速查找
|
|
276
|
+
var a2Map = new Map(arr2.map(function (item) {
|
|
277
|
+
return [item[rowKey], item];
|
|
278
|
+
}));
|
|
279
|
+
// 创建一个新的数组,按a2的顺序填充元素,同时包含a1中不在a2中的元素
|
|
280
|
+
var mergedArray = arr2.map(function (item) {
|
|
281
|
+
var a1Item = arr1.find(function (a1) {
|
|
282
|
+
return a1[rowKey] === item[rowKey];
|
|
283
|
+
});
|
|
284
|
+
return a1Item ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), a1Item) : item;
|
|
285
|
+
});
|
|
286
|
+
// 将a1中未出现在a2中的元素追加到合并后的数组末尾
|
|
287
|
+
mergedArray.push.apply(mergedArray, (0, _toConsumableArray2.default)(arr1.filter(function (a1Item) {
|
|
288
|
+
return !a2Map.has(a1Item[rowKey]);
|
|
289
|
+
})));
|
|
290
|
+
return mergedArray;
|
|
256
291
|
};
|
package/lib/utils/grid.js
CHANGED
|
@@ -77,9 +77,9 @@ function getColumnRender(name, type) {
|
|
|
77
77
|
break;
|
|
78
78
|
case 'region':
|
|
79
79
|
render = function render(text, record) {
|
|
80
|
-
return record["".concat(name, "_virtual")] ||
|
|
80
|
+
return record["".concat(name, "_virtual")] || text ? text.map(function (i) {
|
|
81
81
|
return i.name;
|
|
82
|
-
}).join('/') : undefined
|
|
82
|
+
}).join('/') : undefined;
|
|
83
83
|
};
|
|
84
84
|
break;
|
|
85
85
|
case 'upload':
|
|
@@ -123,11 +123,12 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
123
123
|
var customProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
124
124
|
var isTreeGrid = arguments.length > 2 ? arguments[2] : undefined;
|
|
125
125
|
var writable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
126
|
+
var gridUiPreset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
126
127
|
var _props$isVirtual = props.isVirtual,
|
|
127
128
|
isVirtual = _props$isVirtual === void 0 ? false : _props$isVirtual,
|
|
128
129
|
_props$extra = props.extra,
|
|
129
130
|
extra = _props$extra === void 0 ? {} : _props$extra;
|
|
130
|
-
var _translator = (0, _form.translator)(props),
|
|
131
|
+
var _translator = (0, _form.translator)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), gridUiPreset)),
|
|
131
132
|
name = _translator.name,
|
|
132
133
|
translateProps = (0, _objectWithoutProperties2.default)(_translator, _excluded2);
|
|
133
134
|
var _merge = (0, _lodash.merge)(translateProps, (0, _form.formatCustomProps)(customProps)),
|
|
@@ -135,11 +136,12 @@ var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
|
135
136
|
filterParams = _merge.filterParams,
|
|
136
137
|
_props = (0, _objectWithoutProperties2.default)(_merge, _excluded3);
|
|
137
138
|
var _extra = JSON.parse(extra) || {};
|
|
138
|
-
var data = (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
139
|
+
var data = (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
140
|
+
headerAlign: getAlign(_extra, 'sheading_alignment_virtual'),
|
|
141
|
+
align: getAlign(_extra, 'scell_alignment_virtual')
|
|
142
|
+
}, _props), {}, {
|
|
139
143
|
field: name,
|
|
140
144
|
title: _props.label,
|
|
141
|
-
headerAlign: getAlign(_extra, 'sheading_alignment_virtual'),
|
|
142
|
-
align: getAlign(_extra, 'scell_alignment_virtual'),
|
|
143
145
|
render: _props.render || getColumnRender(name, comName || _form.defaultComName[property], _props)
|
|
144
146
|
});
|
|
145
147
|
if (isTreeGrid || isVirtual || (0, _lodash.includes)(['user', 'select', 'group', 'switch', 'color', 'region', 'file'], comName || _form.defaultComName[property])) data.sortable = false;
|
package/lib/utils/index.js
CHANGED
|
File without changes
|
package/lowcode.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luck-design-biz/luckda",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "前端配置管理中心业务组件库",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
7
7
|
"build": "umi build",
|
|
8
|
-
"build-biz": "
|
|
8
|
+
"build-biz": "father build",
|
|
9
9
|
"async": "npm run build-biz && yalc push",
|
|
10
10
|
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
|
|
11
11
|
"release": "npm run build-biz && npm publish",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "umi-test",
|
|
14
14
|
"test:coverage": "umi-test --coverage",
|
|
15
15
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'",
|
|
16
|
-
"meta": "node
|
|
16
|
+
"meta": "node generateMeta.js"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"es",
|
|
@@ -46,39 +46,29 @@
|
|
|
46
46
|
"**/*.{js,ts,jsx,tsx}": "npm run lint-staged:js"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@ahooksjs/use-url-state": "^3.5.1",
|
|
50
49
|
"@babel/runtime": "^7.18.9",
|
|
51
50
|
"@babel/standalone": "^7.24.0",
|
|
52
|
-
"@dnd-kit/core": "^6.1.0",
|
|
53
|
-
"@dnd-kit/sortable": "^8.0.0",
|
|
54
|
-
"@dnd-kit/utilities": "^3.2.2",
|
|
55
51
|
"ahooks": "^3.7.0",
|
|
56
52
|
"classnames": "^2.3.1",
|
|
57
53
|
"lodash": "^4.17.11",
|
|
58
54
|
"lz-string": "^1.5.0",
|
|
59
55
|
"moment": "^2.24.0",
|
|
60
|
-
"monaco-editor": "0.30.*",
|
|
61
|
-
"postcss": "^8.4.38",
|
|
62
56
|
"prop-types": "^15.8.1",
|
|
63
57
|
"querystring": "^0.2.0",
|
|
64
|
-
"react": "^16.12.0"
|
|
65
|
-
"react-color": "^2.19.3",
|
|
66
|
-
"styled-components": "^6.1.8"
|
|
58
|
+
"react": "^16.12.0"
|
|
67
59
|
},
|
|
68
60
|
"devDependencies": {
|
|
69
61
|
"@amap/amap-jsapi-loader": "^0.0.7",
|
|
70
62
|
"@ant-design/pro-cli": "^1.0.28",
|
|
71
63
|
"@babel/core": "^7.20.2",
|
|
72
64
|
"@babel/eslint-parser": "^7.19.1",
|
|
73
|
-
"@babel/parser": "^7.24.4",
|
|
74
65
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
75
66
|
"@babel/plugin-proposal-decorators": "^7.20.2",
|
|
76
67
|
"@babel/plugin-transform-strict-mode": "^7.18.6",
|
|
77
68
|
"@babel/polyfill": "^7.12.1",
|
|
78
|
-
"@
|
|
79
|
-
"@luck-design-biz/
|
|
80
|
-
"@luck-design
|
|
81
|
-
"@luck-helper/ui-design": "0.0.6",
|
|
69
|
+
"@luck-design-biz/base": "0.0.47",
|
|
70
|
+
"@luck-design-biz/bpm": "0.0.3",
|
|
71
|
+
"@luck-helper/ui-design": "0.0.4",
|
|
82
72
|
"@types/classnames": "^2.3.1",
|
|
83
73
|
"@types/express": "^4.17.14",
|
|
84
74
|
"@types/history": "^4.7.11",
|
|
@@ -94,7 +84,6 @@
|
|
|
94
84
|
"bpmn-js-properties-panel": "^0.35.0",
|
|
95
85
|
"chalk": "^3.0.0",
|
|
96
86
|
"check-prettier": "^1.0.3",
|
|
97
|
-
"comment-parser": "^1.4.1",
|
|
98
87
|
"compression-webpack-plugin": "^6.1.1",
|
|
99
88
|
"core-js": "^3.26.1",
|
|
100
89
|
"cross-env": "^6.0.3",
|
|
@@ -109,9 +98,7 @@
|
|
|
109
98
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
110
99
|
"express": "^4.18.2",
|
|
111
100
|
"father": "^4.3.1",
|
|
112
|
-
"fs-extra": "^11.2.0",
|
|
113
101
|
"gh-pages": "^2.2.0",
|
|
114
|
-
"glob": "^10.3.12",
|
|
115
102
|
"gm-crypt": "^0.0.2",
|
|
116
103
|
"husky": "^7.0.4",
|
|
117
104
|
"import-sort-cli": "^6.0.0",
|
|
@@ -121,8 +108,7 @@
|
|
|
121
108
|
"js-cookie": "^2.2.1",
|
|
122
109
|
"jsdom-global": "^3.0.2",
|
|
123
110
|
"lint-staged": "^11.2.6",
|
|
124
|
-
"luck-design": "0.1.
|
|
125
|
-
"monaco-editor-webpack-plugin": "6.*.*",
|
|
111
|
+
"luck-design": "0.1.78",
|
|
126
112
|
"node-fetch": "^2.6.7",
|
|
127
113
|
"nprogress": "^0.2.0",
|
|
128
114
|
"only-allow": "^1.1.1",
|
package/upload.js
CHANGED
|
File without changes
|
package/utils.js
CHANGED
|
File without changes
|