@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
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Section",
|
|
3
|
+
"name": "分组",
|
|
4
|
+
"icon": "icon-section",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "分组组件用于将相关组件或内容进行分组和组织。使用户能够轻松创建具有分组效果的界面,并根据需要进行定制。s",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "fieldId",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"desc": "组件的唯一标识符,不能够与其它组件重名,不能够为空,且只能够使用以字母开头的,下划线以及数字的组合",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"disabled": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "collapse",
|
|
19
|
+
"name": "折叠",
|
|
20
|
+
"desc": "是否采用折叠分组",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"key": "showHeader",
|
|
26
|
+
"name": "显示头部",
|
|
27
|
+
"desc": "表示是否分组显示头部(仅在非折叠情况下有效)",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": true
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"key": "title",
|
|
33
|
+
"name": "分组标题",
|
|
34
|
+
"desc": "表示分组标题的名称",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"default": "分组"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"key": "icon",
|
|
40
|
+
"name": "图标",
|
|
41
|
+
"desc": "用于设置分组标题前面的图标",
|
|
42
|
+
"type": "Icon"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"key": "tooltip",
|
|
46
|
+
"name": "用户提示",
|
|
47
|
+
"desc": "用于设置分组的用户提示",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"key": "subtitle",
|
|
52
|
+
"name": "副标题插槽",
|
|
53
|
+
"desc": "分组副标题的插槽内容",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "extra",
|
|
58
|
+
"name": "扩展区域插槽",
|
|
59
|
+
"desc": "分组扩展区域的插槽内容",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"key": "showHeaderDivider",
|
|
64
|
+
"name": "头部分割线",
|
|
65
|
+
"desc": "是否展示头部分割线(仅在非折叠情况下有效)",
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"key": "showBorder",
|
|
71
|
+
"name": "显示边框",
|
|
72
|
+
"desc": "是否展示分组边框(仅在非折叠情况下有效)",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"key": "withMargin",
|
|
78
|
+
"name": "外边距",
|
|
79
|
+
"desc": "是否展示外边距",
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"default": false
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"key": "withPadding",
|
|
85
|
+
"name": "内边距",
|
|
86
|
+
"desc": "是否展示内边距",
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": true
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"style": {},
|
|
92
|
+
"advance": {
|
|
93
|
+
"events": [
|
|
94
|
+
{
|
|
95
|
+
"key": "onMount",
|
|
96
|
+
"name": "组件首次渲染时",
|
|
97
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
98
|
+
"func": "(params)=>{\n\t\n}"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "onUnmount",
|
|
102
|
+
"name": "组件卸载时",
|
|
103
|
+
"desc": "在组件卸载时,执行方法。",
|
|
104
|
+
"func": "(params)=>{\n\t\n}"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import Index from "./index";
|
|
4
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
7
|
+
return /*#__PURE__*/React.createElement(Index, props, children);
|
|
8
|
+
};
|
|
9
|
+
export default FunctionDesign;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import Index from "./index";
|
|
4
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
7
|
+
return /*#__PURE__*/React.createElement(Index, props, children);
|
|
8
|
+
};
|
|
9
|
+
export default FunctionLive;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id", "children"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCSplit = function LCSplit(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
var ref = useRef();
|
|
11
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
12
|
+
return ref.current;
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
15
|
+
id: id,
|
|
16
|
+
getTargetDom: getTargetDom
|
|
17
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
ref: ref
|
|
19
|
+
}, "LCSplit", children));
|
|
20
|
+
};
|
|
21
|
+
export default LCSplit;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Split",
|
|
3
|
+
"name": "分割面板容器",
|
|
4
|
+
"icon": "icon-split",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "fieldId",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"desc": "组件的唯一标识符,不能够与其它组件重名,不能够为空,且只能够使用以字母开头的,下划线以及数字的组合",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"disabled": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "display",
|
|
19
|
+
"name": "展现形式",
|
|
20
|
+
"desc": "表示分割面板容器的展现形式",
|
|
21
|
+
"type": "_SplitDisplay",
|
|
22
|
+
"default": "normal"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"key": "split",
|
|
26
|
+
"name": "分割方向",
|
|
27
|
+
"desc": "分割面板容器的分割方向(仅display为normal时有效)",
|
|
28
|
+
"type": "radio",
|
|
29
|
+
"options": [
|
|
30
|
+
{
|
|
31
|
+
"label": "垂直",
|
|
32
|
+
"value": "vertical"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "水平",
|
|
36
|
+
"value": "horizontal"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"default": "vertical"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"key": "ratio",
|
|
43
|
+
"name": "比率",
|
|
44
|
+
"desc": "表示分割面板容器所占比例的比率(仅display为normal时有效)",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"default": "1:3"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"style": {},
|
|
50
|
+
"advance": {
|
|
51
|
+
"events": [
|
|
52
|
+
{
|
|
53
|
+
"key": "onMount",
|
|
54
|
+
"name": "组件首次渲染时",
|
|
55
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
56
|
+
"func": "(params)=>{\n\t\n}"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "onUnmount",
|
|
60
|
+
"name": "组件卸载时",
|
|
61
|
+
"desc": "在组件卸载时,执行方法。",
|
|
62
|
+
"func": "(params)=>{\n\t\n}"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "onChange",
|
|
66
|
+
"name": "尺寸变化事件",
|
|
67
|
+
"desc": "在面板尺寸发生变化时,执行方法",
|
|
68
|
+
"func": "(value)=>{\n\t\n}"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["children", "className"];
|
|
5
|
+
import Index from "./index";
|
|
6
|
+
import classNames from 'classnames';
|
|
7
|
+
import { CELL_CLASS_NAME } from "../../../constants/index";
|
|
8
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
9
|
+
var children = _ref.children,
|
|
10
|
+
className = _ref.className,
|
|
11
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
return /*#__PURE__*/React.createElement(Index, _extends({
|
|
13
|
+
className: classNames(CELL_CLASS_NAME, _defineProperty({}, className, !!className))
|
|
14
|
+
}, props), children);
|
|
15
|
+
};
|
|
16
|
+
export default FunctionDesign;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import Index from "./index";
|
|
4
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
7
|
+
return /*#__PURE__*/React.createElement(Index, props, children);
|
|
8
|
+
};
|
|
9
|
+
export default FunctionLive;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["id", "doAction", "className", "dataset"];
|
|
4
|
+
import React, { useRef } from 'react';
|
|
5
|
+
import { useMemoizedFn } from 'ahooks';
|
|
6
|
+
import { ldModuleBuild, LdGrid } from '@luck-design-biz/luckda';
|
|
7
|
+
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import Wrapper from "../Wrapper";
|
|
10
|
+
var LCTable = function LCTable(_ref) {
|
|
11
|
+
var id = _ref.id,
|
|
12
|
+
doAction = _ref.doAction,
|
|
13
|
+
className = _ref.className,
|
|
14
|
+
dataset = _ref.dataset,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
var ref = useRef();
|
|
17
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
18
|
+
return ref.current.wrapperRef.current;
|
|
19
|
+
});
|
|
20
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
21
|
+
id: id,
|
|
22
|
+
getTargetDom: getTargetDom
|
|
23
|
+
}, /*#__PURE__*/React.createElement(LdGrid, {
|
|
24
|
+
ref: ref,
|
|
25
|
+
id: id,
|
|
26
|
+
className: classNames(_defineProperty({}, className, !!className)),
|
|
27
|
+
height: "100%"
|
|
28
|
+
/**
|
|
29
|
+
* @description 组件唯一key,项目全局唯一
|
|
30
|
+
* @require true
|
|
31
|
+
* @default -
|
|
32
|
+
*/,
|
|
33
|
+
ldId: id
|
|
34
|
+
/**
|
|
35
|
+
* @description 数据集key(可传树形数据集,传树形数据集自动转为树形表格)
|
|
36
|
+
* @require true
|
|
37
|
+
* @default -
|
|
38
|
+
*/,
|
|
39
|
+
dataSetKey: dataset
|
|
40
|
+
/**
|
|
41
|
+
* @description 批量配置项
|
|
42
|
+
* @require false
|
|
43
|
+
* @default -
|
|
44
|
+
*/,
|
|
45
|
+
batchOperations: [{
|
|
46
|
+
key: 'delete',
|
|
47
|
+
title: formatMessage({
|
|
48
|
+
id: 'app.base.operate.delete'
|
|
49
|
+
}),
|
|
50
|
+
resource: 'delete'
|
|
51
|
+
}]
|
|
52
|
+
/**
|
|
53
|
+
* @description 批量操作方法
|
|
54
|
+
* @require false
|
|
55
|
+
* @default -
|
|
56
|
+
*/,
|
|
57
|
+
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows) {}
|
|
58
|
+
/**
|
|
59
|
+
* @description 同gridList的actionsColumn,getActions的返回值可配置resource
|
|
60
|
+
* @require false
|
|
61
|
+
* @default -
|
|
62
|
+
*/,
|
|
63
|
+
actionsColumn: {
|
|
64
|
+
getActions: function getActions(data) {
|
|
65
|
+
return [{
|
|
66
|
+
title: formatMessage({
|
|
67
|
+
id: 'app.base.operate.update'
|
|
68
|
+
}),
|
|
69
|
+
action: function action() {},
|
|
70
|
+
resource: 'update'
|
|
71
|
+
}, {
|
|
72
|
+
title: formatMessage({
|
|
73
|
+
id: 'app.base.operate.delete'
|
|
74
|
+
}),
|
|
75
|
+
style: {
|
|
76
|
+
color: 'var(--luck-color-danger)'
|
|
77
|
+
},
|
|
78
|
+
action: function action() {},
|
|
79
|
+
resource: 'delete'
|
|
80
|
+
}];
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
rowSelection: "multiple"
|
|
84
|
+
/* ----------------------------其他可用配置开始 !!!不使用请删除!!!------------------------------ */
|
|
85
|
+
/**
|
|
86
|
+
* @description 是否只读
|
|
87
|
+
* @require false
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
// readOnly={false}
|
|
91
|
+
/**
|
|
92
|
+
* @description 抑制初始化自动加载数据
|
|
93
|
+
* @require false
|
|
94
|
+
* @default -
|
|
95
|
+
*/
|
|
96
|
+
// suppressInit={true}
|
|
97
|
+
/**
|
|
98
|
+
* @description 初始化后的回调
|
|
99
|
+
* @require false
|
|
100
|
+
* @default -
|
|
101
|
+
*/
|
|
102
|
+
// afterInit={(res, dispatch, props)=>console.log(res, dispatch, props)}
|
|
103
|
+
/**
|
|
104
|
+
* @description 获取过滤条件
|
|
105
|
+
* @require false
|
|
106
|
+
* @default -
|
|
107
|
+
*/
|
|
108
|
+
// readFilter={(params, filters)=>{}}
|
|
109
|
+
/**
|
|
110
|
+
* @description columns中的字段的覆写
|
|
111
|
+
* @require false
|
|
112
|
+
* @default -
|
|
113
|
+
*/
|
|
114
|
+
// columnsRewrite={[{
|
|
115
|
+
// field:'事例', // 必填,用于匹配覆写元素
|
|
116
|
+
// title:'demo',
|
|
117
|
+
// }]}
|
|
118
|
+
/**
|
|
119
|
+
* @description columns中的字段的完全自定义,优先级大于columnsRewrite
|
|
120
|
+
* @require false
|
|
121
|
+
* @default -
|
|
122
|
+
*/
|
|
123
|
+
// columnsReset={[]}
|
|
124
|
+
/**
|
|
125
|
+
* @description 格式化表格数据
|
|
126
|
+
* @require false
|
|
127
|
+
* @default -
|
|
128
|
+
*/
|
|
129
|
+
// formatDataSource={(list, detail) => list.map(i => ({ ...detail[i], demo: 'test' }))}
|
|
130
|
+
/**
|
|
131
|
+
* @description 同树形表格getDataPath用法,用于构建树形表格层级关系
|
|
132
|
+
* @require false
|
|
133
|
+
* @default data =>data.sidcc?.substring(1, data.sidcc.length - 1).split(‘/‘)
|
|
134
|
+
*/
|
|
135
|
+
// getDataPath={data =>data.sidcc?.substring(1, data.sidcc.length - 1).split(‘/‘)}
|
|
136
|
+
/**
|
|
137
|
+
* @description 复写model参数
|
|
138
|
+
* @require false
|
|
139
|
+
* @default -
|
|
140
|
+
*/
|
|
141
|
+
// overModel={{ unclosableSet: ['ilinkno'] }}
|
|
142
|
+
/**
|
|
143
|
+
* @description 读取数据源后的回调,返回所有接口中所有
|
|
144
|
+
* @require false
|
|
145
|
+
* @default -
|
|
146
|
+
*/
|
|
147
|
+
// afterQuery={(res) => console.log('afterQuery', res)}
|
|
148
|
+
|
|
149
|
+
// ... gridTable组件的其他可用属性
|
|
150
|
+
/* ----------------------------其他可用配置结束 !!!不使用请删除!!!------------------------------ */
|
|
151
|
+
}));
|
|
152
|
+
};
|
|
153
|
+
export default ldModuleBuild(LCTable, 'moduleWmsMaterialsData' /* 模块key,对应配置管理中心模块key */);
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Table",
|
|
3
|
+
"name": "表格",
|
|
4
|
+
"desc": "用于展示和管理数据,实现数据的可视化和交互。用户可以根据配置数据集和表格属性,快速构建表格。",
|
|
5
|
+
"icon": "icon-table",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "dataset",
|
|
18
|
+
"name": "数据集",
|
|
19
|
+
"type": "_DataSetSelector"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "autoLoad",
|
|
23
|
+
"name": "自动加载",
|
|
24
|
+
"desc": "首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭",
|
|
25
|
+
"type": "switch",
|
|
26
|
+
"default": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "readOnly",
|
|
30
|
+
"name": "只读",
|
|
31
|
+
"type": "switch",
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"key": "pagination",
|
|
36
|
+
"name": "分页",
|
|
37
|
+
"type": "group",
|
|
38
|
+
"props": [
|
|
39
|
+
{
|
|
40
|
+
"key": "isFlow",
|
|
41
|
+
"name": "是否流式",
|
|
42
|
+
"desc": "是否流式(不分页)",
|
|
43
|
+
"type": "switch",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"key": "defaultPageSize",
|
|
48
|
+
"name": "默认分页数",
|
|
49
|
+
"desc": "isFlow为false时设置,默认单页分页数",
|
|
50
|
+
"type": "number",
|
|
51
|
+
"default": 30
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"key": "actionsColumn",
|
|
57
|
+
"name": "操作列",
|
|
58
|
+
"type": "group",
|
|
59
|
+
"props": [
|
|
60
|
+
{
|
|
61
|
+
"key": "actionTitle",
|
|
62
|
+
"name": "操作列标题",
|
|
63
|
+
"desc": "操作列的标题",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"default": "操作列"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"key": "actionWidth",
|
|
69
|
+
"name": "操作列宽度",
|
|
70
|
+
"desc": "操作列宽度设置",
|
|
71
|
+
"type": "number",
|
|
72
|
+
"default": 100
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "actionHidden",
|
|
76
|
+
"name": "操作列是否隐藏",
|
|
77
|
+
"desc": "操作列是否隐藏",
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"default": false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "maxWebShownActionCount",
|
|
83
|
+
"name": "操作列最大展示数",
|
|
84
|
+
"desc": "操作列最大展示数,超出最大数变为最大展示数-1+更多",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"default": 2
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"key": "actions",
|
|
90
|
+
"name": "操作项",
|
|
91
|
+
"desc": "单行操作项",
|
|
92
|
+
"type": "_ActionSelector"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "batchOperations",
|
|
98
|
+
"name": "批量操作",
|
|
99
|
+
"desc": "批量操作配置",
|
|
100
|
+
"type": "_CardListActionSelector"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"key": "batchActions",
|
|
104
|
+
"name": "批量操作项",
|
|
105
|
+
"desc": "批量操作项",
|
|
106
|
+
"type": "_ActionSelector"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"key": "rowStyle",
|
|
110
|
+
"name": "行样式",
|
|
111
|
+
"desc": "向行添加 CSS 样式",
|
|
112
|
+
"type": "_CSSEditor"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"key": "cellStyle",
|
|
116
|
+
"name": "行样式",
|
|
117
|
+
"desc": "向行添加 CSS 样式",
|
|
118
|
+
"type": "_CSSEditor"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"style": {},
|
|
122
|
+
"advance": {
|
|
123
|
+
"events": [
|
|
124
|
+
{
|
|
125
|
+
"key": "onMount",
|
|
126
|
+
"name": "组件首次渲染时",
|
|
127
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
128
|
+
"func": "(params)=>{\n\t\n}"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "onUnmount",
|
|
132
|
+
"name": "组件卸载时",
|
|
133
|
+
"desc": "在组件卸载时,执行方法。",
|
|
134
|
+
"func": "(params)=>{\n\t\n}"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "onBatchOperationsClick",
|
|
138
|
+
"name": "批量操作点击",
|
|
139
|
+
"desc": "点击操作的回调函数",
|
|
140
|
+
"func": "(key, selectedRows)=>{\n\t\n}"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"key": "onActionClick",
|
|
144
|
+
"name": "操作列点击",
|
|
145
|
+
"desc": "点击操作的回调函数",
|
|
146
|
+
"func": "(itemData)=>{\n\t\n}"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"key": "actionRender",
|
|
150
|
+
"name": "操作列定制渲染",
|
|
151
|
+
"desc": "返回为false时,该操作不可见",
|
|
152
|
+
"func": "(title, rowData)=>{\n\t\n}"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"key": "onRowClick",
|
|
156
|
+
"name": "行单击",
|
|
157
|
+
"desc": "单击表格行时,执行方法",
|
|
158
|
+
"func": "(data, rowIndex, params)=>{\n\t\n}"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"key": "onRowDoubleClick",
|
|
162
|
+
"name": "行双击",
|
|
163
|
+
"desc": "双击表格行时,执行方法",
|
|
164
|
+
"func": "(data, rowIndex, params)=>{\n\t\n}"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"key": "onCellRender",
|
|
168
|
+
"name": "单元格渲染",
|
|
169
|
+
"desc": "当单元格渲染时,执行方法",
|
|
170
|
+
"func": "(data,rowIndex,column,params)=>{\n\t\n}"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import Index from "./index";
|
|
4
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
7
|
+
return /*#__PURE__*/React.createElement(Index, props, children);
|
|
8
|
+
};
|
|
9
|
+
export default FunctionDesign;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import Index from "./index";
|
|
4
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
5
|
+
var children = _ref.children,
|
|
6
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
7
|
+
return /*#__PURE__*/React.createElement(Index, props, children);
|
|
8
|
+
};
|
|
9
|
+
export default FunctionLive;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["id", "children"];
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import Wrapper from "../Wrapper";
|
|
6
|
+
var LCTabs = function LCTabs(_ref) {
|
|
7
|
+
var id = _ref.id,
|
|
8
|
+
children = _ref.children,
|
|
9
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
|
+
var ref = useRef();
|
|
11
|
+
var getTargetDom = useMemoizedFn(function () {
|
|
12
|
+
return ref.current;
|
|
13
|
+
});
|
|
14
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
15
|
+
id: id,
|
|
16
|
+
getTargetDom: getTargetDom
|
|
17
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
ref: ref
|
|
19
|
+
}, "LCTabs", children));
|
|
20
|
+
};
|
|
21
|
+
export default LCTabs;
|