@luck-design-biz/luckda 0.0.23 → 0.0.24-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Builder/index.js +6 -4
- package/es/components/LdFormList/index.js +1 -4
- package/es/components/LdGrid/index.js +12 -3
- package/es/lowcode/constants/api-url.js +292 -1
- package/es/lowcode/constants/event-topics.js +14 -1
- 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/NumberStrategy.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 +53 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +51 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +42 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +44 -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 +15 -7
- package/es/lowcode/engine/meta/{components/button.json → button.props.json} +126 -103
- package/es/lowcode/engine/meta/cardlist.props.default.json +17 -9
- package/es/lowcode/engine/meta/{components/card-list.json → cardlist.props.json} +143 -142
- package/es/lowcode/engine/meta/components-list.json +127 -121
- package/es/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/{lib/lowcode/engine/meta/components/modal.json → es/lowcode/engine/meta/dialog.props.json} +120 -119
- package/es/lowcode/engine/meta/drawer.props.default.json +17 -9
- package/{lib/lowcode/engine/meta/components/drawer.json → es/lowcode/engine/meta/drawer.props.json} +143 -142
- package/es/lowcode/engine/meta/form.props.default.json +12 -4
- package/{lib/lowcode/engine/meta/components/form.json → es/lowcode/engine/meta/form.props.json} +116 -115
- package/es/lowcode/engine/meta/iframe.props.default.json +10 -2
- package/es/lowcode/engine/meta/{components/iframe.json → iframe.props.json} +31 -30
- package/es/lowcode/engine/meta/image.props.default.json +15 -7
- package/es/lowcode/engine/meta/{components/image.json → image.props.json} +113 -112
- package/es/lowcode/engine/meta/imex.props.default.json +11 -3
- package/{lib/lowcode/engine/meta/components/imex.json → es/lowcode/engine/meta/imex.props.json} +81 -80
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +10 -1
- package/es/lowcode/engine/meta/{components/jsx.json → jsx.props.json} +24 -23
- package/es/lowcode/engine/meta/layout.props.default.json +12 -4
- package/{lib/lowcode/engine/meta/components/layout.json → es/lowcode/engine/meta/layout.props.json} +107 -106
- package/es/lowcode/engine/meta/link.props.default.json +13 -5
- package/{lib/lowcode/engine/meta/components/link.json → es/lowcode/engine/meta/link.props.json} +111 -110
- package/es/lowcode/engine/meta/section.props.default.json +16 -8
- package/{lib/lowcode/engine/meta/components/section.json → es/lowcode/engine/meta/section.props.json} +107 -106
- package/es/lowcode/engine/meta/split.props.default.json +12 -4
- package/es/lowcode/engine/meta/{components/split.json → split.props.json} +71 -70
- package/es/lowcode/engine/meta/table.props.default.json +29 -9
- package/es/lowcode/engine/meta/table.props.json +236 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +17 -9
- package/es/lowcode/engine/meta/{components/tabs.json → tabs.props.json} +140 -139
- package/es/lowcode/engine/meta/text.props.default.json +11 -3
- package/{lib/lowcode/engine/meta/components/text.json → es/lowcode/engine/meta/text.props.json} +65 -64
- package/es/lowcode/engine/meta/tree.props.default.json +16 -8
- package/es/lowcode/engine/meta/{components/tree.json → tree.props.json} +156 -155
- package/es/lowcode/engine/provider/ContextProvider.js +46 -41
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +85 -8
- package/es/lowcode/engine/tools/helper.js +68 -0
- package/es/lowcode/engine/tools/usePromiseState.js +24 -0
- package/es/lowcode/index.js +3 -1
- package/es/lowcode/painter/Design.js +40 -85
- package/es/lowcode/painter/DesignOperator.js +271 -0
- package/es/lowcode/painter/DesignToolbar.js +91 -0
- package/es/lowcode/painter/I18n.js +202 -2
- package/es/lowcode/painter/Outline.js +63 -54
- package/es/lowcode/painter/Panel.js +239 -2
- package/es/lowcode/painter/Ribbon.js +61 -55
- package/es/lowcode/painter/components/Collapse.js +90 -0
- package/es/lowcode/painter/components/ColorInput.js +125 -0
- package/es/lowcode/painter/components/ListEditor.js +89 -0
- package/es/lowcode/painter/components/NumberInput.js +148 -0
- package/es/lowcode/painter/components/PanelItem.js +83 -11
- package/es/lowcode/painter/components/PopConfirm.js +23 -0
- package/es/lowcode/painter/components/PopForm.js +71 -0
- package/es/lowcode/painter/components/RuleInput.js +9 -7
- package/es/lowcode/painter/components/SortBox.js +92 -0
- package/es/lowcode/painter/components/actions-editor/ActionEditor.js +147 -0
- package/es/lowcode/painter/components/actions-editor/index.js +170 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +96 -0
- package/es/lowcode/painter/components/code-editor/CssEditor.js +41 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +87 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +106 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -0
- package/es/lowcode/painter/index.js +33 -3
- package/es/lowcode/painter/panel-section/ButtonType.js +39 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +61 -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 +57 -49
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +61 -0
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +150 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +87 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +66 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +66 -0
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +296 -0
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +543 -0
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +162 -0
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +386 -0
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +78 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +23 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +20 -0
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +23 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +96 -0
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +60 -0
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +50 -0
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +61 -0
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +41 -0
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +216 -0
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +53 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +148 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +16 -0
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +51 -0
- package/es/lowcode/painter/panel-section/StylePanel/index.js +29 -0
- package/es/lowcode/painter/panel-section/TabItems.js +207 -0
- package/es/lowcode/painter/panel-section/TableActions.js +19 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +14 -0
- package/es/lowcode/painter/panel-section/WidthHeight.js +39 -0
- package/es/lowcode/painter/services/I18n.js +85 -0
- package/es/lowcode/painter/style/actions-editor.less +16 -0
- package/es/lowcode/painter/style/border-editor.less +36 -0
- package/es/lowcode/painter/style/border-radius-selector.less +43 -0
- package/es/lowcode/painter/style/border-selector.less +40 -0
- package/es/lowcode/painter/style/button-type.less +5 -0
- package/es/lowcode/painter/style/collapse.less +22 -0
- package/es/lowcode/painter/style/color-input.less +19 -0
- package/es/lowcode/painter/style/design.less +116 -5
- package/es/lowcode/painter/style/display.less +17 -0
- package/es/lowcode/painter/style/font-editor.less +9 -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 +0 -1
- package/es/lowcode/painter/style/layout-ratio.less +1 -1
- package/es/lowcode/painter/style/list-editor.less +59 -0
- package/es/lowcode/painter/style/number-input.less +17 -0
- package/es/lowcode/painter/style/outline.less +2 -0
- package/es/lowcode/painter/style/panel-item.less +45 -12
- package/es/lowcode/painter/style/panel.less +124 -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/ribbon.less +1 -0
- package/es/lowcode/painter/style/style-panel.less +37 -0
- package/es/lowcode/painter/style/tabitems.less +90 -0
- package/es/lowcode/view/Canvas.js +79 -70
- package/es/lowcode/view/Page.js +10 -28
- package/es/lowcode/view/index.js +5 -6
- 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 +22 -5
- 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 +75 -7
- package/es/lowcode/view/lc-components/Button/meta.json +127 -0
- package/es/lowcode/view/lc-components/Button/style.less +3 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +9 -0
- package/{lib/lowcode/engine/meta/components/table.json → es/lowcode/view/lc-components/CardList/meta.json} +11 -28
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +54 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +20 -11
- package/es/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +20 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +22 -9
- package/es/lowcode/view/lc-components/Drawer/index.less +7 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +144 -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/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/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/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/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/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 +40 -7
- 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/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/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/meta.json +72 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +18 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Table/index.js +229 -9
- package/es/lowcode/view/lc-components/Table/meta.json +225 -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/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/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/meta.json +157 -0
- package/es/lowcode/view/lc-components/Wrapper.js +32 -23
- package/es/lowcode/view/style/page.less +0 -1
- package/es/upload/Form/gridForm.js +1 -1
- package/es/utils/grid.js +4 -3
- package/lib/components/Builder/index.js +5 -3
- package/lib/components/LdFormList/index.js +1 -5
- package/lib/components/LdGrid/index.js +12 -3
- package/lib/lowcode/constants/api-url.js +294 -2
- package/lib/lowcode/constants/event-topics.js +15 -2
- 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/NumberStrategy.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 +59 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +57 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +48 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +50 -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 +15 -7
- package/lib/lowcode/engine/meta/{components/button.json → button.props.json} +126 -103
- package/lib/lowcode/engine/meta/cardlist.props.default.json +17 -9
- package/lib/lowcode/engine/meta/{components/card-list.json → cardlist.props.json} +143 -142
- package/lib/lowcode/engine/meta/components-list.json +127 -121
- package/lib/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/{es/lowcode/engine/meta/components/modal.json → lib/lowcode/engine/meta/dialog.props.json} +120 -119
- package/lib/lowcode/engine/meta/drawer.props.default.json +17 -9
- package/{es/lowcode/engine/meta/components/drawer.json → lib/lowcode/engine/meta/drawer.props.json} +143 -142
- package/lib/lowcode/engine/meta/form.props.default.json +12 -4
- package/{es/lowcode/engine/meta/components/form.json → lib/lowcode/engine/meta/form.props.json} +116 -115
- package/lib/lowcode/engine/meta/iframe.props.default.json +10 -2
- package/lib/lowcode/engine/meta/{components/iframe.json → iframe.props.json} +31 -30
- package/lib/lowcode/engine/meta/image.props.default.json +15 -7
- package/lib/lowcode/engine/meta/{components/image.json → image.props.json} +113 -112
- package/lib/lowcode/engine/meta/imex.props.default.json +11 -3
- package/{es/lowcode/engine/meta/components/imex.json → lib/lowcode/engine/meta/imex.props.json} +81 -80
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +10 -1
- package/lib/lowcode/engine/meta/{components/jsx.json → jsx.props.json} +24 -23
- package/lib/lowcode/engine/meta/layout.props.default.json +12 -4
- package/{es/lowcode/engine/meta/components/layout.json → lib/lowcode/engine/meta/layout.props.json} +107 -106
- package/lib/lowcode/engine/meta/link.props.default.json +13 -5
- package/{es/lowcode/engine/meta/components/link.json → lib/lowcode/engine/meta/link.props.json} +111 -110
- package/lib/lowcode/engine/meta/section.props.default.json +16 -8
- package/{es/lowcode/engine/meta/components/section.json → lib/lowcode/engine/meta/section.props.json} +107 -106
- package/lib/lowcode/engine/meta/split.props.default.json +12 -4
- package/lib/lowcode/engine/meta/{components/split.json → split.props.json} +71 -70
- package/lib/lowcode/engine/meta/table.props.default.json +29 -9
- package/lib/lowcode/engine/meta/table.props.json +236 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +17 -9
- package/lib/lowcode/engine/meta/{components/tabs.json → tabs.props.json} +140 -139
- package/lib/lowcode/engine/meta/text.props.default.json +11 -3
- package/{es/lowcode/engine/meta/components/text.json → lib/lowcode/engine/meta/text.props.json} +65 -64
- package/lib/lowcode/engine/meta/tree.props.default.json +16 -8
- package/lib/lowcode/engine/meta/{components/tree.json → tree.props.json} +156 -155
- package/lib/lowcode/engine/provider/ContextProvider.js +46 -41
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +86 -8
- package/lib/lowcode/engine/tools/helper.js +70 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +31 -0
- package/lib/lowcode/index.js +5 -1
- package/lib/lowcode/painter/Design.js +39 -84
- package/lib/lowcode/painter/DesignOperator.js +278 -0
- package/lib/lowcode/painter/DesignToolbar.js +99 -0
- package/lib/lowcode/painter/I18n.js +203 -2
- package/lib/lowcode/painter/Outline.js +62 -53
- package/lib/lowcode/painter/Panel.js +238 -1
- package/lib/lowcode/painter/Ribbon.js +63 -64
- package/lib/lowcode/painter/components/Collapse.js +97 -0
- package/lib/lowcode/painter/components/ColorInput.js +132 -0
- package/lib/lowcode/painter/components/ListEditor.js +95 -0
- package/lib/lowcode/painter/components/NumberInput.js +155 -0
- package/lib/lowcode/painter/components/PanelItem.js +84 -11
- package/lib/lowcode/painter/components/PopConfirm.js +29 -0
- package/lib/lowcode/painter/components/PopForm.js +77 -0
- package/lib/lowcode/painter/components/RuleInput.js +9 -7
- package/lib/lowcode/painter/components/SortBox.js +99 -0
- package/lib/lowcode/painter/components/actions-editor/ActionEditor.js +155 -0
- package/lib/lowcode/painter/components/actions-editor/index.js +178 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +103 -0
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +48 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +94 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +117 -0
- package/lib/lowcode/painter/components/code-editor/index.js +20 -0
- package/lib/lowcode/painter/index.js +35 -3
- package/lib/lowcode/painter/panel-section/ButtonType.js +46 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +69 -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 +56 -48
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +68 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +158 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +95 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +73 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +73 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +303 -0
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +550 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +170 -0
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +392 -0
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +85 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +29 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +26 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +29 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +103 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +67 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +57 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +68 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +48 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +224 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +59 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +159 -0
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +22 -0
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +58 -0
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +35 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +215 -0
- package/lib/lowcode/painter/panel-section/TableActions.js +26 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +21 -0
- package/lib/lowcode/painter/panel-section/WidthHeight.js +46 -0
- package/lib/lowcode/painter/services/I18n.js +95 -0
- package/lib/lowcode/painter/style/actions-editor.less +16 -0
- package/lib/lowcode/painter/style/border-editor.less +36 -0
- package/lib/lowcode/painter/style/border-radius-selector.less +43 -0
- package/lib/lowcode/painter/style/border-selector.less +40 -0
- package/lib/lowcode/painter/style/button-type.less +5 -0
- package/lib/lowcode/painter/style/collapse.less +22 -0
- package/lib/lowcode/painter/style/color-input.less +19 -0
- package/lib/lowcode/painter/style/design.less +116 -5
- package/lib/lowcode/painter/style/display.less +17 -0
- package/lib/lowcode/painter/style/font-editor.less +9 -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 +0 -1
- package/lib/lowcode/painter/style/layout-ratio.less +1 -1
- package/lib/lowcode/painter/style/list-editor.less +59 -0
- package/lib/lowcode/painter/style/number-input.less +17 -0
- package/lib/lowcode/painter/style/outline.less +2 -0
- package/lib/lowcode/painter/style/panel-item.less +45 -12
- package/lib/lowcode/painter/style/panel.less +124 -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/ribbon.less +1 -0
- package/lib/lowcode/painter/style/style-panel.less +37 -0
- package/lib/lowcode/painter/style/tabitems.less +90 -0
- package/lib/lowcode/view/Canvas.js +84 -75
- package/lib/lowcode/view/Page.js +9 -27
- package/lib/lowcode/view/index.js +5 -6
- 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 +23 -6
- 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 +76 -8
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -0
- package/lib/lowcode/view/lc-components/Button/style.less +3 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +16 -0
- package/{es/lowcode/engine/meta/components/table.json → lib/lowcode/view/lc-components/CardList/meta.json} +11 -28
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +62 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +20 -11
- package/lib/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +27 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +22 -9
- package/lib/lowcode/view/lc-components/Drawer/index.less +7 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -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/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/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/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/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/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 +41 -8
- 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/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/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/meta.json +72 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +25 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Table/index.js +228 -8
- package/lib/lowcode/view/lc-components/Table/meta.json +225 -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/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/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/meta.json +157 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +30 -21
- package/lib/lowcode/view/style/page.less +0 -1
- package/lib/upload/Form/gridForm.js +1 -1
- package/lib/utils/grid.js +6 -5
- package/package.json +15 -6
- package/es/lowcode/engine/meta/modal.props.default.json +0 -11
- package/es/lowcode/engine/tools/lcid.js +0 -16
- package/es/lowcode/painter/panel-section/Radio.js +0 -58
- package/lib/lowcode/engine/meta/modal.props.default.json +0 -11
- package/lib/lowcode/engine/tools/lcid.js +0 -22
- package/lib/lowcode/painter/panel-section/Radio.js +0 -65
|
@@ -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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _index2 = require("../../../constants/index");
|
|
14
|
+
var _excluded = ["children", "className", "suppressPreset"];
|
|
15
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
16
|
+
var children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
suppressPreset = _ref.suppressPreset,
|
|
19
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
20
|
+
return /*#__PURE__*/React.createElement(_index.default, (0, _extends2.default)({
|
|
21
|
+
className: (0, _classnames.default)(_index2.CELL_CLASS_NAME, (0, _defineProperty2.default)({}, className, !!className)),
|
|
22
|
+
suppressPreset: true
|
|
23
|
+
}, props), children);
|
|
24
|
+
};
|
|
25
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|
|
@@ -6,26 +6,246 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
14
|
var _ahooks = require("ahooks");
|
|
15
|
+
var _LdGrid = _interopRequireDefault(require("../../../../components/LdGrid"));
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
17
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
13
|
-
var
|
|
18
|
+
var _helper = require("../../../engine/tools/helper");
|
|
19
|
+
var _tablePropsDefault = _interopRequireDefault(require("../../../engine/meta/table.props.default.json"));
|
|
20
|
+
var _excluded = ["context", "id", "className", "dataset", "width", "height", "bordered", "zebra", "autoLoad", "readOnly", "suppressActions", "actionsColumnWidth", "actions", "pagination", "pageSize", "showSizeChanger", "showQuickJumper", "hideOnSinglePage", "paginationSimple", "suppressPreset"];
|
|
14
21
|
var LCTable = function LCTable(_ref) {
|
|
15
|
-
var
|
|
22
|
+
var context = _ref.context,
|
|
23
|
+
id = _ref.id,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
dataset = _ref.dataset,
|
|
26
|
+
width = _ref.width,
|
|
27
|
+
height = _ref.height,
|
|
28
|
+
bordered = _ref.bordered,
|
|
29
|
+
zebra = _ref.zebra,
|
|
30
|
+
autoLoad = _ref.autoLoad,
|
|
31
|
+
readOnly = _ref.readOnly,
|
|
32
|
+
suppressActions = _ref.suppressActions,
|
|
33
|
+
actionsColumnWidth = _ref.actionsColumnWidth,
|
|
34
|
+
actions = _ref.actions,
|
|
35
|
+
pagination = _ref.pagination,
|
|
36
|
+
pageSize = _ref.pageSize,
|
|
37
|
+
showSizeChanger = _ref.showSizeChanger,
|
|
38
|
+
showQuickJumper = _ref.showQuickJumper,
|
|
39
|
+
hideOnSinglePage = _ref.hideOnSinglePage,
|
|
40
|
+
paginationSimple = _ref.paginationSimple,
|
|
41
|
+
suppressPreset = _ref.suppressPreset,
|
|
16
42
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
17
43
|
var ref = (0, _react.useRef)();
|
|
44
|
+
var latestZebra = (0, _ahooks.useLatest)(zebra);
|
|
45
|
+
var _pagination = (0, _ahooks.useCreation)(function () {
|
|
46
|
+
return {
|
|
47
|
+
isFlow: !pagination,
|
|
48
|
+
pagination: pagination ? {
|
|
49
|
+
pageSize: pageSize,
|
|
50
|
+
pageSizeOptions: ["".concat(pageSize), "".concat(pageSize * 2), "".concat(pageSize * 3)],
|
|
51
|
+
showSizeChanger: showSizeChanger,
|
|
52
|
+
showQuickJumper: showQuickJumper,
|
|
53
|
+
hideOnSinglePage: hideOnSinglePage,
|
|
54
|
+
simple: paginationSimple
|
|
55
|
+
} : null
|
|
56
|
+
};
|
|
57
|
+
}, [pagination, pageSize, showSizeChanger, showQuickJumper, hideOnSinglePage, paginationSimple]);
|
|
58
|
+
var _actionsColumn = (0, _ahooks.useCreation)(function () {
|
|
59
|
+
return {
|
|
60
|
+
actionsColumn: suppressActions ? null : {
|
|
61
|
+
width: actionsColumnWidth,
|
|
62
|
+
maxCount: actions.max,
|
|
63
|
+
type: actions.type,
|
|
64
|
+
getActions: function getActions() {
|
|
65
|
+
return actions.todoList.map(function (_action) {
|
|
66
|
+
return {
|
|
67
|
+
title: _action.name,
|
|
68
|
+
action: function action(d) {
|
|
69
|
+
console.log('doAction', d, _action);
|
|
70
|
+
},
|
|
71
|
+
resource: _action.serial,
|
|
72
|
+
style: _action.riskLevel === 'default' ? null : {
|
|
73
|
+
color: {
|
|
74
|
+
danger: '#ff7875',
|
|
75
|
+
destroy: '#820014'
|
|
76
|
+
}[_action.riskLevel]
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}, [suppressActions, actionsColumnWidth, actions]);
|
|
84
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
85
|
+
var itemsToUpdate = [];
|
|
86
|
+
ref.current.gridApi.api.forEachNode(function (rowNode) {
|
|
87
|
+
if (rowNode.rowIndex % 2 === 0) itemsToUpdate.push(rowNode.data);
|
|
88
|
+
});
|
|
89
|
+
ref.current.gridApi.api.updateRowData({
|
|
90
|
+
update: itemsToUpdate
|
|
91
|
+
});
|
|
92
|
+
}, [zebra]);
|
|
18
93
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
19
|
-
return ref.current;
|
|
94
|
+
return ref.current.wrapperRef.current;
|
|
20
95
|
});
|
|
21
96
|
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
22
97
|
id: id,
|
|
23
98
|
getTargetDom: getTargetDom
|
|
24
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
99
|
+
}, /*#__PURE__*/_react.default.createElement(_LdGrid.default, (0, _extends2.default)({
|
|
25
100
|
ref: ref,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
101
|
+
width: width,
|
|
102
|
+
height: height,
|
|
103
|
+
bordered: bordered,
|
|
104
|
+
id: id,
|
|
105
|
+
className: (0, _classnames.default)((0, _defineProperty2.default)({}, className, !!className)),
|
|
106
|
+
ldId: id,
|
|
107
|
+
dataSetKey: dataset,
|
|
108
|
+
readOnly: readOnly,
|
|
109
|
+
suppressInit: !autoLoad,
|
|
110
|
+
getRowStyle: function getRowStyle(params) {
|
|
111
|
+
return latestZebra.current && params.node.rowIndex % 2 === 0 ? {
|
|
112
|
+
'background-color': latestZebra.current
|
|
113
|
+
} : {
|
|
114
|
+
'background-color': '#fff'
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
suppressPreset: suppressPreset
|
|
118
|
+
// operates={resources}
|
|
119
|
+
}, _pagination, _actionsColumn)));
|
|
120
|
+
};
|
|
121
|
+
LCTable.propTypes = {
|
|
122
|
+
/**
|
|
123
|
+
* @name 唯一标识
|
|
124
|
+
* @type string
|
|
125
|
+
* @disabled true
|
|
126
|
+
*/
|
|
127
|
+
id: _propTypes.default.string.isRequired,
|
|
128
|
+
/**
|
|
129
|
+
* @name 数据集
|
|
130
|
+
* @type _DataSetSelector
|
|
131
|
+
*/
|
|
132
|
+
dataset: _propTypes.default.string,
|
|
133
|
+
/**
|
|
134
|
+
* @name 自动加载
|
|
135
|
+
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
136
|
+
* @type switch
|
|
137
|
+
* @default true
|
|
138
|
+
*/
|
|
139
|
+
autoLoad: _propTypes.default.bool,
|
|
140
|
+
/**
|
|
141
|
+
* @name 只读
|
|
142
|
+
* @type switch
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
readOnly: _propTypes.default.bool,
|
|
146
|
+
/**
|
|
147
|
+
* @name 关闭预设
|
|
148
|
+
* @type switch
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
suppressPreset: _propTypes.default.bool,
|
|
152
|
+
/**
|
|
153
|
+
* @name 宽度
|
|
154
|
+
* @type _WidthHeight
|
|
155
|
+
* @default 100%
|
|
156
|
+
* @group styleSetting
|
|
157
|
+
*/
|
|
158
|
+
width: _propTypes.default.string,
|
|
159
|
+
/**
|
|
160
|
+
* @name 高度
|
|
161
|
+
* @type _WidthHeight
|
|
162
|
+
* @default 100%
|
|
163
|
+
* @group styleSetting
|
|
164
|
+
*/
|
|
165
|
+
height: _propTypes.default.string,
|
|
166
|
+
/**
|
|
167
|
+
* @name 边框线
|
|
168
|
+
* @type switch
|
|
169
|
+
* @default false
|
|
170
|
+
* @group styleSetting
|
|
171
|
+
*/
|
|
172
|
+
border: _propTypes.default.bool,
|
|
173
|
+
/**
|
|
174
|
+
* @name 斑马纹
|
|
175
|
+
* @type switch
|
|
176
|
+
* @default false
|
|
177
|
+
* @group styleSetting
|
|
178
|
+
*/
|
|
179
|
+
zebra: _propTypes.default.oneOfType[(_propTypes.default.bool, _propTypes.default.string)],
|
|
180
|
+
/**
|
|
181
|
+
* @name 开启分页
|
|
182
|
+
* @type switch
|
|
183
|
+
* @default true
|
|
184
|
+
* @group paginationSetting
|
|
185
|
+
*/
|
|
186
|
+
pagination: _propTypes.default.bool,
|
|
187
|
+
/**
|
|
188
|
+
* @name 每页条数
|
|
189
|
+
* @type number
|
|
190
|
+
* @default 30
|
|
191
|
+
* @group paginationSetting
|
|
192
|
+
*/
|
|
193
|
+
pageSize: _propTypes.default.number,
|
|
194
|
+
/**
|
|
195
|
+
* @name 分页器
|
|
196
|
+
* @type switch
|
|
197
|
+
* @default true
|
|
198
|
+
* @group paginationSetting
|
|
199
|
+
*/
|
|
200
|
+
showSizeChanger: _propTypes.default.bool,
|
|
201
|
+
/**
|
|
202
|
+
* @name 快速跳转
|
|
203
|
+
* @type switch
|
|
204
|
+
* @default true
|
|
205
|
+
* @group paginationSetting
|
|
206
|
+
*/
|
|
207
|
+
showQuickJumper: _propTypes.default.bool,
|
|
208
|
+
/**
|
|
209
|
+
* @name 单页无分页器
|
|
210
|
+
* @type switch
|
|
211
|
+
* @default false
|
|
212
|
+
* @group paginationSetting
|
|
213
|
+
*/
|
|
214
|
+
hideOnSinglePage: _propTypes.default.bool,
|
|
215
|
+
/**
|
|
216
|
+
* @name 简单模式
|
|
217
|
+
* @type switch
|
|
218
|
+
* @default false
|
|
219
|
+
* @group paginationSetting
|
|
220
|
+
*/
|
|
221
|
+
paginationSimple: _propTypes.default.bool,
|
|
222
|
+
/**
|
|
223
|
+
* @name 隐藏操作列
|
|
224
|
+
* @type switch
|
|
225
|
+
* @default false
|
|
226
|
+
* @groupNext actionsColumn
|
|
227
|
+
*/
|
|
228
|
+
suppressActions: _propTypes.default.bool,
|
|
229
|
+
/**
|
|
230
|
+
* @name 隐藏操作列
|
|
231
|
+
* @type number
|
|
232
|
+
* @default 160
|
|
233
|
+
* @groupNext actionsColumn
|
|
234
|
+
*/
|
|
235
|
+
actionsColumnWidth: _propTypes.default.number,
|
|
236
|
+
/**
|
|
237
|
+
* @name 最大显示数
|
|
238
|
+
* @type number
|
|
239
|
+
* @default 2
|
|
240
|
+
* @groupNext actionsColumn
|
|
241
|
+
*/
|
|
242
|
+
maxActionsCount: _propTypes.default.number,
|
|
243
|
+
/**
|
|
244
|
+
* @name 操作项
|
|
245
|
+
* @type _TableActions
|
|
246
|
+
* @groupNext actionsColumn
|
|
247
|
+
*/
|
|
248
|
+
actions: _propTypes.default.array
|
|
30
249
|
};
|
|
250
|
+
LCTable.defaultProps = (0, _helper.omitBadProps)(_tablePropsDefault.default, ['actionsColumn']);
|
|
31
251
|
var _default = exports.default = LCTable;
|
|
@@ -0,0 +1,225 @@
|
|
|
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": "suppressPreset",
|
|
36
|
+
"name": "关闭预设",
|
|
37
|
+
"type": "switch",
|
|
38
|
+
"default": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "actionsColumn",
|
|
42
|
+
"name": "操作列",
|
|
43
|
+
"type": "group",
|
|
44
|
+
"default": true,
|
|
45
|
+
"next": {
|
|
46
|
+
"name": "操作列",
|
|
47
|
+
"props": [
|
|
48
|
+
{
|
|
49
|
+
"key": "suppressActions",
|
|
50
|
+
"name": "隐藏操作列",
|
|
51
|
+
"type": "switch",
|
|
52
|
+
"default": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"key": "actionsColumnWidth",
|
|
56
|
+
"name": "列宽",
|
|
57
|
+
"type": "_WidthHeight",
|
|
58
|
+
"options": [{ "label": "px", "value": "px" }],
|
|
59
|
+
"convertInt": true,
|
|
60
|
+
"default": 160
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"key": "actions",
|
|
64
|
+
"name": "#操作项",
|
|
65
|
+
"desc": "单行操作项",
|
|
66
|
+
"type": "_TableActions",
|
|
67
|
+
"default": {"display": "text", "max": 2, "todoList": []},
|
|
68
|
+
"panelItem": { "suppressPadding": true }
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "styleSetting",
|
|
75
|
+
"name": "风格和样式",
|
|
76
|
+
"type": "group",
|
|
77
|
+
"props": [
|
|
78
|
+
{
|
|
79
|
+
"key": "width",
|
|
80
|
+
"name": "宽度",
|
|
81
|
+
"type": "_WidthHeight",
|
|
82
|
+
"default": "100%"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"key": "height",
|
|
86
|
+
"name": "高度",
|
|
87
|
+
"type": "_WidthHeight",
|
|
88
|
+
"default": "100%"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"key": "zebra",
|
|
92
|
+
"name": "斑马纹",
|
|
93
|
+
"type": "_TableZebra",
|
|
94
|
+
"default": false
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "bordered",
|
|
98
|
+
"name": "边框线",
|
|
99
|
+
"type": "switch",
|
|
100
|
+
"default": false
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"key": "paginationSetting",
|
|
106
|
+
"name": "分页设置",
|
|
107
|
+
"type": "group",
|
|
108
|
+
"props": [
|
|
109
|
+
{
|
|
110
|
+
"key": "pagination",
|
|
111
|
+
"name": "开启分页",
|
|
112
|
+
"type": "switch",
|
|
113
|
+
"default": true
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"key": "showSizeChanger",
|
|
117
|
+
"name": "分页器",
|
|
118
|
+
"type": "switch",
|
|
119
|
+
"default": true
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"key": "showQuickJumper",
|
|
123
|
+
"name": "快速跳转",
|
|
124
|
+
"type": "switch",
|
|
125
|
+
"default": true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"key": "hideOnSinglePage",
|
|
129
|
+
"name": "单页无分页器",
|
|
130
|
+
"desc": "只有一页时隐藏分页器",
|
|
131
|
+
"type": "switch",
|
|
132
|
+
"default": false
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"key": "paginationSimple",
|
|
136
|
+
"name": "简单分页",
|
|
137
|
+
"type": "switch",
|
|
138
|
+
"default": false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"key": "pageSize",
|
|
142
|
+
"name": "每页条数",
|
|
143
|
+
"type": "number",
|
|
144
|
+
"default": 30
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"key": "batchOperations",
|
|
150
|
+
"name": "批量操作",
|
|
151
|
+
"desc": "批量操作配置",
|
|
152
|
+
"type": "_CardListActionSelector"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"key": "batchActions",
|
|
156
|
+
"name": "批量操作项",
|
|
157
|
+
"desc": "批量操作项",
|
|
158
|
+
"type": "_ActionSelector"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"key": "rowStyle",
|
|
162
|
+
"name": "行样式",
|
|
163
|
+
"desc": "向行添加 CSS 样式",
|
|
164
|
+
"type": "_CSSEditor"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"key": "cellStyle",
|
|
168
|
+
"name": "行样式",
|
|
169
|
+
"desc": "向行添加 CSS 样式",
|
|
170
|
+
"type": "_CSSEditor"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"advance": {
|
|
174
|
+
"events": [
|
|
175
|
+
{
|
|
176
|
+
"key": "onMount",
|
|
177
|
+
"name": "组件首次渲染时",
|
|
178
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
179
|
+
"func": "(params)=>{\n\t\n}"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"key": "onUnmount",
|
|
183
|
+
"name": "组件卸载时",
|
|
184
|
+
"desc": "在组件卸载时,执行方法。",
|
|
185
|
+
"func": "(params)=>{\n\t\n}"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"key": "onBatchOperationsClick",
|
|
189
|
+
"name": "批量操作点击",
|
|
190
|
+
"desc": "点击操作的回调函数",
|
|
191
|
+
"func": "(key, selectedRows)=>{\n\t\n}"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"key": "onActionClick",
|
|
195
|
+
"name": "操作列点击",
|
|
196
|
+
"desc": "点击操作的回调函数",
|
|
197
|
+
"func": "(itemData)=>{\n\t\n}"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"key": "actionRender",
|
|
201
|
+
"name": "操作列定制渲染",
|
|
202
|
+
"desc": "返回为false时,该操作不可见",
|
|
203
|
+
"func": "(title, rowData)=>{\n\t\n}"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"key": "onRowClick",
|
|
207
|
+
"name": "行单击",
|
|
208
|
+
"desc": "单击表格行时,执行方法",
|
|
209
|
+
"func": "(data, rowIndex, params)=>{\n\t\n}"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"key": "onRowDoubleClick",
|
|
213
|
+
"name": "行双击",
|
|
214
|
+
"desc": "双击表格行时,执行方法",
|
|
215
|
+
"func": "(data, rowIndex, params)=>{\n\t\n}"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"key": "onCellRender",
|
|
219
|
+
"name": "单元格渲染",
|
|
220
|
+
"desc": "当单元格渲染时,执行方法",
|
|
221
|
+
"func": "(data,rowIndex,column,params)=>{\n\t\n}"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|