@luck-design-biz/luckda 0.0.22 → 0.0.24-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +40 -49
- package/es/components/Builder/index.js +4 -4
- package/es/components/LdAutoForm/index.js +7 -9
- package/es/components/LdCard/index.js +5 -6
- package/es/components/LdCard/model.js +1 -1
- package/es/components/LdCom/index.js +2 -2
- package/es/components/LdFormList/index.js +15 -16
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +11 -12
- package/es/components/LdGrid/model.js +1 -1
- package/es/components/LdGridForm/index.js +10 -10
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdInfoPanel/index.js +2 -2
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +42 -0
- package/es/components/LdTree/index.js +3 -4
- package/es/components/LdTree/index.less +36 -36
- package/es/helper/FromItems.js +1 -1
- package/es/helper/action.js +8 -8
- package/es/helper/form.js +16 -16
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +1 -1
- package/es/helper/ldComBuild.js +4 -4
- package/es/index.js +10 -9
- package/es/lowcode/constants/api-url.js +3 -0
- package/es/lowcode/constants/event-topics.js +36 -0
- package/es/lowcode/constants/index.js +12 -0
- package/es/lowcode/engine/factory/DataFactory.js +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +60 -0
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +50 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +50 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +42 -0
- package/es/lowcode/engine/meta/box.props.default.json +12 -0
- package/es/lowcode/engine/meta/box.props.json +42 -0
- package/es/lowcode/engine/meta/button.props.default.json +16 -0
- package/es/lowcode/engine/meta/button.props.json +122 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/es/lowcode/engine/meta/cardlist.props.json +144 -0
- package/es/lowcode/engine/meta/components-list.json +128 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/es/lowcode/engine/meta/dialog.props.json +121 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/es/lowcode/engine/meta/drawer.props.json +144 -0
- package/es/lowcode/engine/meta/form.props.default.json +13 -0
- package/es/lowcode/engine/meta/form.props.json +117 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/es/lowcode/engine/meta/iframe.props.json +32 -0
- package/es/lowcode/engine/meta/image.props.default.json +16 -0
- package/es/lowcode/engine/meta/image.props.json +114 -0
- package/es/lowcode/engine/meta/imex.props.default.json +12 -0
- package/es/lowcode/engine/meta/imex.props.json +82 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/es/lowcode/engine/meta/jsx.props.json +25 -0
- package/es/lowcode/engine/meta/layout.props.default.json +13 -0
- package/es/lowcode/engine/meta/layout.props.json +108 -0
- package/es/lowcode/engine/meta/link.props.default.json +14 -0
- package/es/lowcode/engine/meta/link.props.json +112 -0
- package/es/lowcode/engine/meta/section.props.default.json +17 -0
- package/es/lowcode/engine/meta/section.props.json +108 -0
- package/es/lowcode/engine/meta/split.props.default.json +13 -0
- package/es/lowcode/engine/meta/split.props.json +72 -0
- package/es/lowcode/engine/meta/table.props.default.json +12 -0
- package/es/lowcode/engine/meta/table.props.json +174 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/es/lowcode/engine/meta/tabs.props.json +141 -0
- package/es/lowcode/engine/meta/text.props.default.json +12 -0
- package/es/lowcode/engine/meta/text.props.json +66 -0
- package/es/lowcode/engine/meta/tree.props.default.json +17 -0
- package/es/lowcode/engine/meta/tree.props.json +157 -0
- package/es/lowcode/engine/provider/ContextProvider.js +157 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
- package/es/lowcode/engine/tools/dataProcess.js +263 -0
- package/es/lowcode/engine/tools/helper.js +4 -0
- package/es/lowcode/engine/tools/usePromiseState.js +24 -0
- package/es/lowcode/index.js +3 -0
- package/es/lowcode/painter/Components.js +104 -0
- package/es/lowcode/painter/Design.js +329 -0
- package/es/lowcode/painter/I18n.js +205 -0
- package/es/lowcode/painter/Outline.js +207 -0
- package/es/lowcode/painter/Panel.js +207 -0
- package/es/lowcode/painter/Ribbon.js +142 -0
- package/es/lowcode/painter/components/Collapse.js +31 -0
- package/es/lowcode/painter/components/NumberInput.js +93 -0
- package/es/lowcode/painter/components/PanelItem.js +63 -0
- package/es/lowcode/painter/components/PopConfirm.js +20 -0
- package/es/lowcode/painter/components/PopForm.js +71 -0
- package/es/lowcode/painter/components/RuleInput.js +105 -0
- package/es/lowcode/painter/components/SortBox.js +92 -0
- package/es/lowcode/painter/components/TabEditor.js +88 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +118 -0
- package/es/lowcode/painter/components/code-editor/CssEditor.js +14 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +64 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +84 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -0
- package/es/lowcode/painter/index.js +45 -0
- package/es/lowcode/painter/panel-section/ButtonType.js +39 -0
- package/es/lowcode/painter/panel-section/Icon.js +48 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +134 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +130 -0
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +292 -0
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +543 -0
- package/es/lowcode/painter/panel-section/StylePanel/Height.js +48 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +64 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +101 -0
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +48 -0
- package/es/lowcode/painter/panel-section/StylePanel/index.js +12 -0
- package/es/lowcode/painter/panel-section/TabItems.js +237 -0
- package/es/lowcode/painter/services/I18n.js +85 -0
- package/es/lowcode/painter/style/button-type.less +5 -0
- package/es/lowcode/painter/style/collapse.less +21 -0
- package/es/lowcode/painter/style/components.less +90 -0
- package/es/lowcode/painter/style/design.less +142 -0
- package/es/lowcode/painter/style/display.less +17 -0
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -0
- package/es/lowcode/painter/style/icon-selector.less +22 -0
- package/es/lowcode/painter/style/icon.less +11 -0
- package/es/lowcode/painter/style/index.less +6 -0
- package/es/lowcode/painter/style/layout-ratio.less +51 -0
- package/es/lowcode/painter/style/number-input.less +17 -0
- package/es/lowcode/painter/style/outline.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +44 -0
- package/es/lowcode/painter/style/panel.less +142 -0
- package/es/lowcode/painter/style/pop-confirm.less +10 -0
- package/es/lowcode/painter/style/pop-form.less +20 -0
- package/es/lowcode/painter/style/radio.less +24 -0
- package/es/lowcode/painter/style/ribbon.less +5 -0
- package/es/lowcode/painter/style/rule-input.less +13 -0
- package/es/lowcode/painter/style/style-panel.less +5 -0
- package/es/lowcode/painter/style/tabeditor.less +90 -0
- package/es/lowcode/painter/style/tabitems.less +90 -0
- package/es/lowcode/view/Canvas.js +143 -0
- package/es/lowcode/view/Loading.js +23 -0
- package/es/lowcode/view/Page.js +252 -0
- package/es/lowcode/view/index.js +18 -0
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +20 -0
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Box/index.js +38 -0
- package/es/lowcode/view/lc-components/Box/index.less +15 -0
- package/es/lowcode/view/lc-components/Box/meta.json +42 -0
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +21 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Button/index.js +102 -0
- package/es/lowcode/view/lc-components/Button/meta.json +122 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/CardList/index.js +20 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +61 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +62 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/es/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Form/index.js +20 -0
- package/es/lowcode/view/lc-components/Form/meta.json +117 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Image/index.js +20 -0
- package/es/lowcode/view/lc-components/Image/meta.json +114 -0
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/JSX/index.js +20 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +75 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +15 -0
- package/es/lowcode/view/lc-components/Layout/index.js +57 -0
- package/es/lowcode/view/lc-components/Layout/index.less +5 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Link/index.js +20 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Section/index.js +34 -0
- package/es/lowcode/view/lc-components/Section/meta.json +108 -0
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Split/index.js +21 -0
- package/es/lowcode/view/lc-components/Split/meta.json +72 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +16 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Table/index.js +153 -0
- package/es/lowcode/view/lc-components/Table/meta.json +174 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
- package/es/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Text/index.js +23 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -0
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Tree/index.js +20 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/es/lowcode/view/lc-components/Wrapper.js +54 -0
- package/es/lowcode/view/style/canvas.less +5 -0
- package/es/lowcode/view/style/loading.less +84 -0
- package/es/lowcode/view/style/page.less +5 -0
- package/es/services.js +1 -1
- package/es/upload/Form/gridForm.js +30 -8
- package/es/upload/Form/index.js +1 -1
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +30 -18
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +3 -3
- package/es/utils/action.js +1 -1
- package/es/utils/form.js +26 -26
- package/es/utils/grid.js +26 -29
- package/es/utils/index.js +3 -3
- package/lib/components/Builder/index.js +3 -5
- package/lib/components/LdAutoForm/index.js +5 -8
- package/lib/components/LdCard/index.js +5 -7
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +6 -11
- package/lib/components/LdFormList/index.js +10 -12
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +10 -12
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +6 -7
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdInfoPanel/index.js +2 -3
- package/lib/components/LdPop/index.js +2 -4
- package/lib/components/LdRuntimeCom/index.js +49 -0
- package/lib/components/LdTree/index.js +2 -4
- package/lib/components/LdTree/index.less +36 -36
- package/lib/helper/FromItems.js +15 -29
- package/lib/helper/action.js +9 -11
- package/lib/helper/form.js +18 -20
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +1 -2
- package/lib/helper/ldComBuild.js +7 -11
- package/lib/index.js +9 -1
- package/lib/lowcode/constants/api-url.js +9 -0
- package/lib/lowcode/constants/event-topics.js +42 -0
- package/lib/lowcode/constants/index.js +18 -0
- package/lib/lowcode/engine/factory/DataFactory.js +3 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +73 -0
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +56 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +56 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +48 -0
- package/lib/lowcode/engine/meta/box.props.default.json +12 -0
- package/lib/lowcode/engine/meta/box.props.json +42 -0
- package/lib/lowcode/engine/meta/button.props.default.json +16 -0
- package/lib/lowcode/engine/meta/button.props.json +122 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +144 -0
- package/lib/lowcode/engine/meta/components-list.json +128 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/lib/lowcode/engine/meta/dialog.props.json +121 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/lib/lowcode/engine/meta/drawer.props.json +144 -0
- package/lib/lowcode/engine/meta/form.props.default.json +13 -0
- package/lib/lowcode/engine/meta/form.props.json +117 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/lib/lowcode/engine/meta/iframe.props.json +32 -0
- package/lib/lowcode/engine/meta/image.props.default.json +16 -0
- package/lib/lowcode/engine/meta/image.props.json +114 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +12 -0
- package/lib/lowcode/engine/meta/imex.props.json +82 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/lib/lowcode/engine/meta/jsx.props.json +25 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +13 -0
- package/lib/lowcode/engine/meta/layout.props.json +108 -0
- package/lib/lowcode/engine/meta/link.props.default.json +14 -0
- package/lib/lowcode/engine/meta/link.props.json +112 -0
- package/lib/lowcode/engine/meta/section.props.default.json +17 -0
- package/lib/lowcode/engine/meta/section.props.json +108 -0
- package/lib/lowcode/engine/meta/split.props.default.json +13 -0
- package/lib/lowcode/engine/meta/split.props.json +72 -0
- package/lib/lowcode/engine/meta/table.props.default.json +12 -0
- package/lib/lowcode/engine/meta/table.props.json +174 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/lib/lowcode/engine/meta/tabs.props.json +141 -0
- package/lib/lowcode/engine/meta/text.props.default.json +12 -0
- package/lib/lowcode/engine/meta/text.props.json +66 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +17 -0
- package/lib/lowcode/engine/meta/tree.props.json +157 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +165 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
- package/lib/lowcode/engine/tools/dataProcess.js +277 -0
- package/lib/lowcode/engine/tools/helper.js +11 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +31 -0
- package/lib/lowcode/index.js +20 -0
- package/lib/lowcode/painter/Components.js +112 -0
- package/lib/lowcode/painter/Design.js +336 -0
- package/lib/lowcode/painter/I18n.js +213 -0
- package/lib/lowcode/painter/Outline.js +215 -0
- package/lib/lowcode/painter/Panel.js +215 -0
- package/lib/lowcode/painter/Ribbon.js +150 -0
- package/lib/lowcode/painter/components/Collapse.js +39 -0
- package/lib/lowcode/painter/components/NumberInput.js +101 -0
- package/lib/lowcode/painter/components/PanelItem.js +70 -0
- package/lib/lowcode/painter/components/PopConfirm.js +26 -0
- package/lib/lowcode/painter/components/PopForm.js +77 -0
- package/lib/lowcode/painter/components/RuleInput.js +112 -0
- package/lib/lowcode/painter/components/SortBox.js +99 -0
- package/lib/lowcode/painter/components/TabEditor.js +94 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +126 -0
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +22 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +72 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +95 -0
- package/lib/lowcode/painter/components/code-editor/index.js +20 -0
- package/lib/lowcode/painter/index.js +54 -0
- package/lib/lowcode/painter/panel-section/ButtonType.js +46 -0
- package/lib/lowcode/painter/panel-section/Icon.js +54 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +141 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +138 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +299 -0
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +550 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Height.js +55 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +72 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +112 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Width.js +55 -0
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +19 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +245 -0
- package/lib/lowcode/painter/services/I18n.js +95 -0
- package/lib/lowcode/painter/style/button-type.less +5 -0
- package/lib/lowcode/painter/style/collapse.less +21 -0
- package/lib/lowcode/painter/style/components.less +90 -0
- package/lib/lowcode/painter/style/design.less +142 -0
- package/lib/lowcode/painter/style/display.less +17 -0
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -0
- package/lib/lowcode/painter/style/icon-selector.less +22 -0
- package/lib/lowcode/painter/style/icon.less +11 -0
- package/lib/lowcode/painter/style/index.less +6 -0
- package/lib/lowcode/painter/style/layout-ratio.less +51 -0
- package/lib/lowcode/painter/style/number-input.less +17 -0
- package/lib/lowcode/painter/style/outline.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +44 -0
- package/lib/lowcode/painter/style/panel.less +142 -0
- package/lib/lowcode/painter/style/pop-confirm.less +10 -0
- package/lib/lowcode/painter/style/pop-form.less +20 -0
- package/lib/lowcode/painter/style/radio.less +24 -0
- package/lib/lowcode/painter/style/ribbon.less +5 -0
- package/lib/lowcode/painter/style/rule-input.less +13 -0
- package/lib/lowcode/painter/style/style-panel.less +5 -0
- package/lib/lowcode/painter/style/tabeditor.less +90 -0
- package/lib/lowcode/painter/style/tabitems.less +90 -0
- package/lib/lowcode/view/Canvas.js +158 -0
- package/lib/lowcode/view/Loading.js +30 -0
- package/lib/lowcode/view/Page.js +260 -0
- package/lib/lowcode/view/index.js +25 -0
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +27 -0
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Box/index.js +46 -0
- package/lib/lowcode/view/lc-components/Box/index.less +15 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +42 -0
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +28 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Button/index.js +110 -0
- package/lib/lowcode/view/lc-components/Button/meta.json +122 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +69 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +70 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Form/index.js +28 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +117 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Image/index.js +28 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +82 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +22 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +65 -0
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Link/index.js +28 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Section/index.js +42 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Split/index.js +29 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +23 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Table/index.js +161 -0
- package/lib/lowcode/view/lc-components/Table/meta.json +174 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
- package/lib/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Text/index.js +31 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +61 -0
- package/lib/lowcode/view/style/canvas.less +5 -0
- package/lib/lowcode/view/style/loading.less +84 -0
- package/lib/lowcode/view/style/page.less +5 -0
- package/lib/services.js +0 -0
- package/lib/upload/Form/gridForm.js +28 -7
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +30 -19
- package/lib/upload/GridCell/index.js +1 -2
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +26 -29
- package/lib/utils/grid.js +22 -26
- package/lib/utils/index.js +0 -0
- package/lowcode.js +1 -0
- package/package.json +164 -78
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/README.zh-CN.md +0 -51
package/lib/utils/form.js
CHANGED
|
@@ -26,11 +26,11 @@ var _excluded = ["comName", "property"],
|
|
|
26
26
|
_excluded7 = ["formItemRewrite"],
|
|
27
27
|
_excluded8 = ["name"],
|
|
28
28
|
_excluded9 = ["type", "name"];
|
|
29
|
-
/**
|
|
30
|
-
* 根据动态表单配置项生成formItem
|
|
31
|
-
* @param {动态表单配置项} props
|
|
32
|
-
* @param {自定义动态表单配置项} customProps
|
|
33
|
-
* @returns <BasicForm name='' ... />
|
|
29
|
+
/**
|
|
30
|
+
* 根据动态表单配置项生成formItem
|
|
31
|
+
* @param {动态表单配置项} props
|
|
32
|
+
* @param {自定义动态表单配置项} customProps
|
|
33
|
+
* @returns <BasicForm name='' ... />
|
|
34
34
|
*/
|
|
35
35
|
function getFormItem() {
|
|
36
36
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -63,13 +63,13 @@ function getFormItem() {
|
|
|
63
63
|
}));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
/**
|
|
67
|
-
* 根据后端返回数据组装表单数据
|
|
68
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
69
|
-
* @param {对象---后端返回的未处理数据} values
|
|
70
|
-
* @returns
|
|
66
|
+
/**
|
|
67
|
+
* 根据后端返回数据组装表单数据
|
|
68
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
69
|
+
* @param {对象---后端返回的未处理数据} values
|
|
70
|
+
* @returns
|
|
71
71
|
*/
|
|
72
|
-
var formItemDataFormat = function formItemDataFormat() {
|
|
72
|
+
var formItemDataFormat = exports.formItemDataFormat = function formItemDataFormat() {
|
|
73
73
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
74
74
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
75
75
|
var omitValues = {};
|
|
@@ -105,7 +105,7 @@ var formItemDataFormat = function formItemDataFormat() {
|
|
|
105
105
|
result[name] = values[name] ? JSON.parse(values[name]) : undefined;
|
|
106
106
|
break;
|
|
107
107
|
case 'year':
|
|
108
|
-
result[name] = values[
|
|
108
|
+
result[name] = values[name] ? (0, _moment.default)(values[name], 'YYYY') : undefined;
|
|
109
109
|
break;
|
|
110
110
|
case 'radio':
|
|
111
111
|
result[name] = values[name];
|
|
@@ -131,14 +131,13 @@ var formItemDataFormat = function formItemDataFormat() {
|
|
|
131
131
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, omitValues), data);
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
/**
|
|
135
|
-
* 数据格式化
|
|
136
|
-
* @param {数组---动态表单配置参数列表} propsList
|
|
137
|
-
* @param {对象---表单获取到的未处理数据} values
|
|
138
|
-
* @returns
|
|
134
|
+
/**
|
|
135
|
+
* 数据格式化
|
|
136
|
+
* @param {数组---动态表单配置参数列表} propsList
|
|
137
|
+
* @param {对象---表单获取到的未处理数据} values
|
|
138
|
+
* @returns
|
|
139
139
|
*/
|
|
140
|
-
exports.
|
|
141
|
-
var dataFormat = function dataFormat() {
|
|
140
|
+
var dataFormat = exports.dataFormat = function dataFormat() {
|
|
142
141
|
var propsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
143
142
|
var _values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
144
143
|
// 姚小川说:冗余字段后端处理,不需要前端传给后端
|
|
@@ -195,15 +194,14 @@ var dataFormat = function dataFormat() {
|
|
|
195
194
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, values), data);
|
|
196
195
|
};
|
|
197
196
|
|
|
198
|
-
/**
|
|
199
|
-
*
|
|
200
|
-
* @param formType
|
|
201
|
-
* @param props
|
|
202
|
-
* @param customProps
|
|
203
|
-
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @param formType
|
|
200
|
+
* @param props
|
|
201
|
+
* @param customProps
|
|
202
|
+
* @returns {*&{field: *, editable: (false|{required: *}), renderBasicFormItem: ((function(): (*))|*), title, render: *}}
|
|
204
203
|
*/
|
|
205
|
-
exports.
|
|
206
|
-
var getFormColumn = function getFormColumn() {
|
|
204
|
+
var getFormColumn = exports.getFormColumn = function getFormColumn() {
|
|
207
205
|
var _props$config;
|
|
208
206
|
var formType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'grid';
|
|
209
207
|
var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
@@ -255,5 +253,4 @@ var getFormColumn = function getFormColumn() {
|
|
|
255
253
|
},
|
|
256
254
|
field: name
|
|
257
255
|
});
|
|
258
|
-
};
|
|
259
|
-
exports.getFormColumn = getFormColumn;
|
|
256
|
+
};
|
package/lib/utils/grid.js
CHANGED
|
@@ -36,7 +36,7 @@ function getColumnRender(name, type) {
|
|
|
36
36
|
case 'textarea':
|
|
37
37
|
render = function render(text, record) {
|
|
38
38
|
var _props$config;
|
|
39
|
-
return record["".concat(name, "_virtual")] || ((
|
|
39
|
+
return record["".concat(name, "_virtual")] || ((_props$config = props.config) !== null && _props$config !== void 0 && _props$config.precision && text ? Number(text).toFixed(props.config.precision) : text);
|
|
40
40
|
};
|
|
41
41
|
break;
|
|
42
42
|
case 'date':
|
|
@@ -45,8 +45,8 @@ function getColumnRender(name, type) {
|
|
|
45
45
|
};
|
|
46
46
|
break;
|
|
47
47
|
case 'year':
|
|
48
|
-
render = function render(text
|
|
49
|
-
return
|
|
48
|
+
render = function render(text) {
|
|
49
|
+
return text;
|
|
50
50
|
};
|
|
51
51
|
break;
|
|
52
52
|
case 'user':
|
|
@@ -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")] || text ? text.map(function (i) {
|
|
80
|
+
return record["".concat(name, "_virtual")] || (text ? ((0, _lodash.isString)(text) ? JSON.parse(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':
|
|
@@ -115,7 +115,7 @@ var getAlign = function getAlign(extraData, alignClass) {
|
|
|
115
115
|
return 'left';
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
var getGridColumn = function getGridColumn() {
|
|
118
|
+
var getGridColumn = exports.getGridColumn = function getGridColumn() {
|
|
119
119
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
120
120
|
comName = _ref.comName,
|
|
121
121
|
property = _ref.property,
|
|
@@ -183,14 +183,14 @@ var getGridColumn = function getGridColumn() {
|
|
|
183
183
|
data.filter = 'select';
|
|
184
184
|
data.filterParams = {
|
|
185
185
|
options: function options() {
|
|
186
|
-
var _getDvaApp
|
|
187
|
-
return (_getDvaApp = (0, _umi.getDvaApp)()) === null || _getDvaApp === void 0
|
|
186
|
+
var _getDvaApp;
|
|
187
|
+
return (_getDvaApp = (0, _umi.getDvaApp)()) === null || _getDvaApp === void 0 || (_getDvaApp = _getDvaApp._store) === null || _getDvaApp === void 0 ? void 0 : _getDvaApp.dispatch({
|
|
188
188
|
type: 'global/getUser'
|
|
189
189
|
});
|
|
190
190
|
},
|
|
191
191
|
searchData: function searchData(str) {
|
|
192
|
-
var _getDvaApp2
|
|
193
|
-
return (_getDvaApp2 = (0, _umi.getDvaApp)()) === null || _getDvaApp2 === void 0
|
|
192
|
+
var _getDvaApp2;
|
|
193
|
+
return (_getDvaApp2 = (0, _umi.getDvaApp)()) === null || _getDvaApp2 === void 0 || (_getDvaApp2 = _getDvaApp2._store) === null || _getDvaApp2 === void 0 ? void 0 : _getDvaApp2.dispatch({
|
|
194
194
|
type: "global/getUser",
|
|
195
195
|
payload: str
|
|
196
196
|
});
|
|
@@ -205,8 +205,8 @@ var getGridColumn = function getGridColumn() {
|
|
|
205
205
|
if (_props.alias) {
|
|
206
206
|
data.filterParams = {
|
|
207
207
|
options: function options() {
|
|
208
|
-
var _getDvaApp3
|
|
209
|
-
return (_getDvaApp3 = (0, _umi.getDvaApp)()) === null || _getDvaApp3 === void 0
|
|
208
|
+
var _getDvaApp3;
|
|
209
|
+
return (_getDvaApp3 = (0, _umi.getDvaApp)()) === null || _getDvaApp3 === void 0 || (_getDvaApp3 = _getDvaApp3._store) === null || _getDvaApp3 === void 0 ? void 0 : _getDvaApp3.dispatch({
|
|
210
210
|
type: 'global/getDatadic',
|
|
211
211
|
payload: {
|
|
212
212
|
snamealias: _props.alias
|
|
@@ -221,8 +221,8 @@ var getGridColumn = function getGridColumn() {
|
|
|
221
221
|
data.filter = 'treeSelect';
|
|
222
222
|
data.filterParams = {
|
|
223
223
|
options: function options() {
|
|
224
|
-
var _getDvaApp4
|
|
225
|
-
return (_getDvaApp4 = (0, _umi.getDvaApp)()) === null || _getDvaApp4 === void 0
|
|
224
|
+
var _getDvaApp4;
|
|
225
|
+
return (_getDvaApp4 = (0, _umi.getDvaApp)()) === null || _getDvaApp4 === void 0 || (_getDvaApp4 = _getDvaApp4._store) === null || _getDvaApp4 === void 0 ? void 0 : _getDvaApp4.dispatch({
|
|
226
226
|
type: 'global/readGroup',
|
|
227
227
|
payload: {
|
|
228
228
|
sclassKey: _props.sclassKey
|
|
@@ -230,8 +230,8 @@ var getGridColumn = function getGridColumn() {
|
|
|
230
230
|
});
|
|
231
231
|
},
|
|
232
232
|
searchData: function searchData(str) {
|
|
233
|
-
var _getDvaApp5
|
|
234
|
-
return (_getDvaApp5 = (0, _umi.getDvaApp)()) === null || _getDvaApp5 === void 0
|
|
233
|
+
var _getDvaApp5;
|
|
234
|
+
return (_getDvaApp5 = (0, _umi.getDvaApp)()) === null || _getDvaApp5 === void 0 || (_getDvaApp5 = _getDvaApp5._store) === null || _getDvaApp5 === void 0 ? void 0 : _getDvaApp5.dispatch({
|
|
235
235
|
type: 'global/readGroup',
|
|
236
236
|
payload: {
|
|
237
237
|
sclassKey: _props.sclassKey,
|
|
@@ -263,8 +263,7 @@ var getGridColumn = function getGridColumn() {
|
|
|
263
263
|
case 'date':
|
|
264
264
|
formItemProps = {
|
|
265
265
|
dataFormat: function dataFormat(value) {
|
|
266
|
-
|
|
267
|
-
return _ref2 = {}, (0, _defineProperty2.default)(_ref2, name, value ? (0, _moment.default)(value).valueOf() : undefined), (0, _defineProperty2.default)(_ref2, "".concat(name, "_virtual"), value ? (0, _moment.default)(value).format('YYYY-MM-DD HH:mm:ss') : undefined), _ref2;
|
|
266
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)({}, name, value ? (0, _moment.default)(value).valueOf() : undefined), "".concat(name, "_virtual"), value ? (0, _moment.default)(value).format('YYYY-MM-DD HH:mm:ss') : undefined);
|
|
268
267
|
},
|
|
269
268
|
inputFormat: function inputFormat(value, record, params) {
|
|
270
269
|
return (0, _moment.default)(record["".concat(name, "_virtual")], 'YYYY-MM-DD HH:mm:ss');
|
|
@@ -277,12 +276,11 @@ var getGridColumn = function getGridColumn() {
|
|
|
277
276
|
if (translateProps.multiple) {
|
|
278
277
|
formItemProps = {
|
|
279
278
|
dataFormat: function dataFormat(value) {
|
|
280
|
-
|
|
281
|
-
return _ref3 = {}, (0, _defineProperty2.default)(_ref3, name, value.map(function (v) {
|
|
279
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)({}, name, value.map(function (v) {
|
|
282
280
|
return v.value || v.key;
|
|
283
|
-
}).join(',')),
|
|
281
|
+
}).join(',')), "".concat(name, "_virtual"), value.map(function (v) {
|
|
284
282
|
return v.label;
|
|
285
|
-
}).join(','))
|
|
283
|
+
}).join(','));
|
|
286
284
|
},
|
|
287
285
|
inputFormat: function inputFormat(value, record, params) {
|
|
288
286
|
return (0, _defineProperty2.default)({}, name, (0, _form.splitStrToObj)(value, record["".concat(name, "_virtual")]));
|
|
@@ -291,8 +289,7 @@ var getGridColumn = function getGridColumn() {
|
|
|
291
289
|
} else {
|
|
292
290
|
formItemProps = {
|
|
293
291
|
dataFormat: function dataFormat(value) {
|
|
294
|
-
|
|
295
|
-
return _ref5 = {}, (0, _defineProperty2.default)(_ref5, name, value ? value.value || value.key : undefined), (0, _defineProperty2.default)(_ref5, "".concat(name, "_virtual"), value ? value.label : undefined), _ref5;
|
|
292
|
+
return (0, _defineProperty2.default)((0, _defineProperty2.default)({}, name, value ? value.value || value.key : undefined), "".concat(name, "_virtual"), value ? value.label : undefined);
|
|
296
293
|
},
|
|
297
294
|
inputFormat: function inputFormat(value, record, params) {
|
|
298
295
|
return (0, _defineProperty2.default)({}, name, !(0, _lodash.isNil)(value) ? {
|
|
@@ -309,5 +306,4 @@ var getGridColumn = function getGridColumn() {
|
|
|
309
306
|
}
|
|
310
307
|
}
|
|
311
308
|
return data;
|
|
312
|
-
};
|
|
313
|
-
exports.getGridColumn = getGridColumn;
|
|
309
|
+
};
|
package/lib/utils/index.js
CHANGED
|
File without changes
|
package/lowcode.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./es/lowcode');
|
package/package.json
CHANGED
|
@@ -1,78 +1,164 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@luck-design-biz/luckda",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"build": "father
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"test
|
|
14
|
-
"
|
|
15
|
-
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
},
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@luck-design-biz/luckda",
|
|
3
|
+
"version": "0.0.24-1",
|
|
4
|
+
"description": "前端配置管理中心业务组件库",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",
|
|
7
|
+
"build": "umi build",
|
|
8
|
+
"build-biz": "npm run meta && father build",
|
|
9
|
+
"async": "npm run build-biz && yalc push",
|
|
10
|
+
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
|
|
11
|
+
"release": "npm run build-biz && npm publish",
|
|
12
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
13
|
+
"test": "umi-test",
|
|
14
|
+
"test:coverage": "umi-test --coverage",
|
|
15
|
+
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e js,jsx,less --debug -x 'tnpm run async'",
|
|
16
|
+
"meta": "node generateMeta.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"es",
|
|
20
|
+
"lib",
|
|
21
|
+
"utils.js",
|
|
22
|
+
"upload.js",
|
|
23
|
+
"lowcode.js"
|
|
24
|
+
],
|
|
25
|
+
"main": "lib/index.js",
|
|
26
|
+
"module": "es/index.js",
|
|
27
|
+
"gitHooks": {
|
|
28
|
+
"pre-commit": "lint-staged"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=16",
|
|
32
|
+
"pnpm": ">=7.14.0"
|
|
33
|
+
},
|
|
34
|
+
"license": "MIT",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/xieyt203/luck-biz-components.git",
|
|
38
|
+
"branch": "main"
|
|
39
|
+
},
|
|
40
|
+
"lint-staged": {
|
|
41
|
+
"**/*.less": "stylelint --syntax less",
|
|
42
|
+
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
|
43
|
+
"prettier --write",
|
|
44
|
+
"git add"
|
|
45
|
+
],
|
|
46
|
+
"**/*.{js,ts,jsx,tsx}": "npm run lint-staged:js"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@ahooksjs/use-url-state": "^3.5.1",
|
|
50
|
+
"@babel/runtime": "^7.18.9",
|
|
51
|
+
"@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
|
+
"ahooks": "^3.7.0",
|
|
56
|
+
"classnames": "^2.3.1",
|
|
57
|
+
"lodash": "^4.17.11",
|
|
58
|
+
"lz-string": "^1.5.0",
|
|
59
|
+
"moment": "^2.24.0",
|
|
60
|
+
"monaco-editor": "0.30.*",
|
|
61
|
+
"postcss": "^8.4.38",
|
|
62
|
+
"prop-types": "^15.8.1",
|
|
63
|
+
"querystring": "^0.2.0",
|
|
64
|
+
"react": "^16.12.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@amap/amap-jsapi-loader": "^0.0.7",
|
|
68
|
+
"@ant-design/pro-cli": "^1.0.28",
|
|
69
|
+
"@babel/core": "^7.20.2",
|
|
70
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
71
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
72
|
+
"@babel/plugin-proposal-decorators": "^7.20.2",
|
|
73
|
+
"@babel/plugin-transform-strict-mode": "^7.18.6",
|
|
74
|
+
"@babel/polyfill": "^7.12.1",
|
|
75
|
+
"@luck-design-biz/base": "0.0.41-1",
|
|
76
|
+
"@luck-design-biz/bpm": "0.0.3",
|
|
77
|
+
"@luck-helper/ui-design": "0.0.5",
|
|
78
|
+
"@types/classnames": "^2.3.1",
|
|
79
|
+
"@types/express": "^4.17.14",
|
|
80
|
+
"@types/history": "^4.7.11",
|
|
81
|
+
"@types/lodash": "^4.14.189",
|
|
82
|
+
"@types/qs": "^6.9.7",
|
|
83
|
+
"@types/react": "^16.14.34",
|
|
84
|
+
"@types/react-dom": "^16.9.17",
|
|
85
|
+
"@types/react-helmet": "^5.0.20",
|
|
86
|
+
"@umijs/fabric": "^2.14.0",
|
|
87
|
+
"@umijs/plugin-qiankun": "^2.41.0",
|
|
88
|
+
"@umijs/preset-react": "~1.8.31",
|
|
89
|
+
"bpmn-js": "^7.5.0",
|
|
90
|
+
"bpmn-js-properties-panel": "^0.35.0",
|
|
91
|
+
"chalk": "^3.0.0",
|
|
92
|
+
"check-prettier": "^1.0.3",
|
|
93
|
+
"compression-webpack-plugin": "^6.1.1",
|
|
94
|
+
"core-js": "^3.26.1",
|
|
95
|
+
"cross-env": "^6.0.3",
|
|
96
|
+
"cross-port-killer": "^1.4.0",
|
|
97
|
+
"cross-var": "^1.1.0",
|
|
98
|
+
"d3-selection": "^1.4.2",
|
|
99
|
+
"dry-dry": "^0.4.0",
|
|
100
|
+
"enzyme": "^3.11.0",
|
|
101
|
+
"eslint": "^7.32.0",
|
|
102
|
+
"eslint-plugin-babel": "^5.3.1",
|
|
103
|
+
"eslint-plugin-react": "^7.31.10",
|
|
104
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
105
|
+
"express": "^4.18.2",
|
|
106
|
+
"father": "^4.3.1",
|
|
107
|
+
"gh-pages": "^2.2.0",
|
|
108
|
+
"gm-crypt": "^0.0.2",
|
|
109
|
+
"husky": "^7.0.4",
|
|
110
|
+
"import-sort-cli": "^6.0.0",
|
|
111
|
+
"import-sort-parser-babylon": "^6.0.0",
|
|
112
|
+
"import-sort-parser-typescript": "^6.0.0",
|
|
113
|
+
"import-sort-style-module": "^6.0.0",
|
|
114
|
+
"js-cookie": "^2.2.1",
|
|
115
|
+
"jsdom-global": "^3.0.2",
|
|
116
|
+
"lint-staged": "^11.2.6",
|
|
117
|
+
"luck-design": "0.1.73-1",
|
|
118
|
+
"monaco-editor-webpack-plugin": "6.*.*",
|
|
119
|
+
"node-fetch": "^2.6.7",
|
|
120
|
+
"nprogress": "^0.2.0",
|
|
121
|
+
"only-allow": "^1.1.1",
|
|
122
|
+
"prettier": "^2.7.1",
|
|
123
|
+
"pro-download": "1.0.1",
|
|
124
|
+
"promise-sequential": "^1.1.1",
|
|
125
|
+
"qrcode.react": "^1.0.1",
|
|
126
|
+
"qs": "^6.11.0",
|
|
127
|
+
"raphael": "^2.3.0",
|
|
128
|
+
"react-copy-to-clipboard": "^5.1.0",
|
|
129
|
+
"react-device-detect": "^1.17.0",
|
|
130
|
+
"react-dnd": "^9.5.1",
|
|
131
|
+
"react-dnd-html5-backend": "^9.5.1",
|
|
132
|
+
"react-dom": "^16.14.0",
|
|
133
|
+
"react-helmet": "^5.2.1",
|
|
134
|
+
"react-iframe": "^1.8.5",
|
|
135
|
+
"react-loading": "^2.0.3",
|
|
136
|
+
"react-viewer": "^3.2.2",
|
|
137
|
+
"resizable": "^1.2.1",
|
|
138
|
+
"slash2": "^2.0.0",
|
|
139
|
+
"stylelint": "^13.13.1",
|
|
140
|
+
"umi": "^3.5.35",
|
|
141
|
+
"umi-types": "^0.5.14",
|
|
142
|
+
"yorkie": "2.0.0"
|
|
143
|
+
},
|
|
144
|
+
"peerDependencies": {
|
|
145
|
+
"@luck-design-biz/base": ">= 0.0.10",
|
|
146
|
+
"@luck-design-biz/bpm": ">= 0.0.1",
|
|
147
|
+
"luck-design": ">=0.1.51",
|
|
148
|
+
"uuid": "^9.0.1"
|
|
149
|
+
},
|
|
150
|
+
"pnpm": {
|
|
151
|
+
"overrides": {
|
|
152
|
+
"immer": "^2.1.1"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"bugs": {
|
|
156
|
+
"url": "https://github.com/xieyt203/luck-biz-components/issues"
|
|
157
|
+
},
|
|
158
|
+
"homepage": "https://github.com/xieyt203/luck-biz-components#readme",
|
|
159
|
+
"directories": {
|
|
160
|
+
"doc": "docs",
|
|
161
|
+
"lib": "lib"
|
|
162
|
+
},
|
|
163
|
+
"author": ""
|
|
164
|
+
}
|
package/upload.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./es/upload');
|
|
1
|
+
module.exports = require('./es/upload');
|
package/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./es/utils');
|
|
1
|
+
module.exports = require('./es/utils');
|
package/README.zh-CN.md
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# 🌟 Dumi Template
|
|
2
|
-
|
|
3
|
-
为组件开发场景而生的文档模板
|
|
4
|
-
|
|
5
|
-
[English](./README.md) | 简体中文
|
|
6
|
-
|
|
7
|
-
## 🚀 如何使用?
|
|
8
|
-
|
|
9
|
-

|
|
10
|
-
|
|
11
|
-
## ✨ 在线预览
|
|
12
|
-
|
|
13
|
-
https://umijs.github.io/luck-biz-components/
|
|
14
|
-
|
|
15
|
-
## 📒 目录介绍
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
├── docs 文档存放路径
|
|
19
|
-
│ ├── index.md 首页展示
|
|
20
|
-
│ └── **.** 网站目录文档
|
|
21
|
-
├── src 组件主目录
|
|
22
|
-
│ ├── index.ts 组件注册
|
|
23
|
-
│ └── Foo 组件开发
|
|
24
|
-
├── .eslintrc.js eslint 配置
|
|
25
|
-
├── .fatherrc.ts father 配置
|
|
26
|
-
├── .umirc.ts dumi 配置
|
|
27
|
-
└── tsconfig.json typescript 配置
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
其余文件可自行查阅了解。
|
|
31
|
-
|
|
32
|
-
## 🤖 命令介绍
|
|
33
|
-
|
|
34
|
-
| 名称 | 描述 | 备注 |
|
|
35
|
-
| ----------------------- | -------------- | -------------------------------------------------------------------- |
|
|
36
|
-
| `npm run start` | 项目启动 | 使用 [dumi](https://github.com/umijs/dumi),组件开发和文档开发在一起 |
|
|
37
|
-
| `npm run test` | 组件测试 | - |
|
|
38
|
-
| `npm run test:coverage` | 代码覆盖率查看 | - |
|
|
39
|
-
| `npm run prettier` | 代码美化 | - |
|
|
40
|
-
| `npm run build` | 组件打包 | 使用 [father](https://github.com/umijs/father) 工具 |
|
|
41
|
-
| `npm run release` | 组件打包发布 | - |
|
|
42
|
-
| `npm run docs:build` | 文档打包 | - |
|
|
43
|
-
| `npm run docs:deploy` | 文档发布 | 这里默认是使用了 GitHub Pages |
|
|
44
|
-
| `npm run deploy` | 文档打包发布 | - |
|
|
45
|
-
|
|
46
|
-
## 交流群
|
|
47
|
-
|
|
48
|
-
<div>
|
|
49
|
-
<img data-type="dingtalk" src="https://gw.alipayobjects.com/zos/bmw-prod/ce3439e7-3bf9-4031-b823-6473439ec9e6/kxkiis4c_w1004_h1346.jpeg" width="300" />
|
|
50
|
-
<img data-type="wechat" src="https://gw.alipayobjects.com/zos/bmw-prod/c18bc2a5-719a-48ca-b225-c79ef88bfb43/k7m10ymd_w1004_h1346.jpeg" width="300" />
|
|
51
|
-
</div>
|