@luck-design-biz/luckda 0.0.25-8 → 0.0.25-af-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 -40
- package/es/components/Builder/index.js +4 -6
- package/es/components/ComplexItem/index.js +92 -0
- package/es/components/ComplexItem/service.js +21 -0
- package/es/components/LDActions/index.js +15 -16
- package/es/components/LDActions/index.less +48 -68
- package/es/components/LdAutoForm/index.js +9 -27
- package/es/components/LdCom/index.js +1 -2
- package/es/components/LdFormList/index.js +31 -51
- package/es/components/LdGrid/index.js +16 -23
- package/es/components/LdGridForm/index.js +7 -20
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdRuntimeCom/index.js +11 -24
- package/es/components/LdTree/index.js +40 -112
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/FromItems.js +23 -1
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +44 -30
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +12 -28
- package/es/helper/ldComBuild.js +14 -29
- package/es/locales/zh-CN.js +19 -104
- package/es/lowcode/constants/api-url.js +324 -555
- package/es/lowcode/constants/event-topics.js +0 -6
- package/es/lowcode/constants/index.js +4 -31
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +2 -5
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +2 -5
- package/es/lowcode/engine/meta/box.props.default.json +2 -5
- package/es/lowcode/engine/meta/box.props.json +4 -4
- package/es/lowcode/engine/meta/button.props.default.json +1 -4
- package/es/lowcode/engine/meta/button.props.json +9 -9
- package/es/lowcode/engine/meta/cardlist.props.default.json +1 -4
- package/es/lowcode/engine/meta/cardlist.props.json +1 -1
- package/es/lowcode/engine/meta/components-list.json +7 -13
- package/es/lowcode/engine/meta/dialog.props.default.json +6 -14
- package/es/lowcode/engine/meta/dialog.props.json +43 -73
- package/es/lowcode/engine/meta/drawer.props.default.json +1 -4
- package/es/lowcode/engine/meta/drawer.props.json +21 -9
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +142 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +19 -0
- package/es/lowcode/engine/meta/fielddate.props.json +145 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/es/lowcode/engine/meta/fielddict.props.json +140 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +18 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +140 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +169 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +117 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +123 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +19 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +154 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +20 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +167 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +21 -0
- package/es/lowcode/engine/meta/fielduser.props.json +178 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +133 -0
- package/es/lowcode/engine/meta/form.props.default.json +3 -52
- package/es/lowcode/engine/meta/form.props.json +63 -602
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +89 -0
- package/es/lowcode/engine/meta/image.props.default.json +1 -4
- package/es/lowcode/engine/meta/image.props.json +2 -2
- package/es/lowcode/engine/meta/imex.props.default.json +2 -12
- package/es/lowcode/engine/meta/imex.props.json +22 -54
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +13 -83
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/es/lowcode/engine/meta/jsx.props.json +5 -10
- package/es/lowcode/engine/meta/layout.props.default.json +1 -4
- package/es/lowcode/engine/meta/layout.props.json +3 -2
- package/es/lowcode/engine/meta/link.props.default.json +1 -4
- package/es/lowcode/engine/meta/link.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +18 -6
- package/es/lowcode/engine/meta/pagelayout.props.default.json +3 -1
- package/es/lowcode/engine/meta/pagelayout.props.json +13 -1
- package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/es/lowcode/engine/meta/proxy.props.json +66 -0
- package/es/lowcode/engine/meta/section.props.default.json +6 -7
- package/es/lowcode/engine/meta/section.props.json +49 -52
- package/es/lowcode/engine/meta/split.props.default.json +4 -9
- package/es/lowcode/engine/meta/split.props.json +32 -17
- package/es/lowcode/engine/meta/table.props.default.json +1 -5
- package/es/lowcode/engine/meta/table.props.json +34 -67
- package/es/lowcode/engine/meta/tabs.props.default.json +8 -16
- package/es/lowcode/engine/meta/tabs.props.json +80 -57
- package/es/lowcode/engine/meta/text.props.default.json +1 -4
- package/es/lowcode/engine/meta/text.props.json +2 -2
- package/es/lowcode/engine/meta/tree.props.default.json +6 -16
- package/es/lowcode/engine/meta/tree.props.json +58 -214
- package/es/lowcode/engine/provider/ContextProvider/index.js +115 -70
- package/es/lowcode/engine/tools/dataProcess.js +71 -137
- package/es/lowcode/engine/tools/helper.js +20 -70
- package/es/lowcode/engine/tools/usePromiseState.js +9 -8
- package/es/lowcode/index.js +0 -1
- package/es/lowcode/painter/Components.js +23 -49
- package/es/lowcode/painter/Design.js +2 -34
- package/es/lowcode/painter/DesignOperator.js +37 -43
- package/es/lowcode/painter/DesignToolbar.js +16 -289
- package/es/lowcode/painter/I18n.js +2 -2
- package/es/lowcode/painter/Outline.js +26 -29
- package/es/lowcode/painter/Panel.js +26 -67
- package/es/lowcode/painter/components/ActionBindModal.js +62 -181
- package/es/lowcode/painter/components/AdvancePanel.js +11 -88
- package/es/lowcode/painter/components/AttrsPanel.js +41 -61
- package/es/lowcode/painter/components/Collapse.js +29 -35
- package/es/lowcode/painter/components/ColorInput.js +27 -29
- package/es/lowcode/painter/components/ListEditor.js +33 -46
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +25 -25
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +26 -33
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +34 -35
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/index.js +28 -3
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +69 -16
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +6 -39
- package/es/lowcode/painter/panel-section/ButtonType.js +2 -4
- package/es/lowcode/painter/panel-section/DataSetSelector.js +43 -118
- package/es/lowcode/painter/panel-section/Icon.js +35 -35
- package/es/lowcode/painter/panel-section/IconSelector.js +18 -21
- package/es/lowcode/painter/panel-section/ImpExp.js +6 -93
- package/es/lowcode/painter/panel-section/JSEditor.js +2 -3
- package/es/lowcode/painter/panel-section/LayoutRatio.js +28 -27
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +24 -4
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +16 -22
- package/es/lowcode/painter/panel-section/TabItems.js +30 -46
- package/es/lowcode/painter/panel-section/TableZebra.js +6 -66
- package/es/lowcode/painter/style/action-bind-modal.less +99 -102
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +22 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +90 -91
- package/es/lowcode/painter/style/design.less +149 -152
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +59 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/view/Canvas.js +139 -33
- package/es/lowcode/view/Loading.js +2 -6
- package/es/lowcode/view/Page.js +14 -15
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Box/index.js +17 -10
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +10 -8
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +6 -3
- package/es/lowcode/view/lc-components/Button/index.js +53 -72
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/CardList/index.js +0 -1
- package/es/lowcode/view/lc-components/CardList/meta.json +143 -143
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +27 -12
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Dialog/index.js +19 -115
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +120 -143
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -5
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Drawer/index.js +12 -13
- package/es/lowcode/view/lc-components/Drawer/index.less +6 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +143 -131
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -83
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Form/index.js +13 -382
- package/es/lowcode/view/lc-components/Form/meta.json +116 -605
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -1
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +3 -9
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/ImEx/index.js +9 -260
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -114
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Image/index.js +0 -1
- package/es/lowcode/view/lc-components/Image/meta.json +114 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/JSX/index.js +6 -19
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -28
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +24 -21
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +8 -3
- package/es/lowcode/view/lc-components/Layout/index.js +16 -17
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -107
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Link/index.js +0 -1
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +2 -25
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Section/index.js +24 -115
- package/es/lowcode/view/lc-components/Section/meta.json +108 -107
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +2 -56
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Split/index.js +7 -42
- package/es/lowcode/view/lc-components/Split/meta.json +72 -53
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +3 -7
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Table/index.js +217 -399
- package/es/lowcode/view/lc-components/Table/meta.json +372 -405
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -63
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Tabs/index.js +10 -115
- package/es/lowcode/view/lc-components/Tabs/meta.json +140 -113
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -1
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Text/index.js +0 -1
- package/es/lowcode/view/lc-components/Text/meta.json +66 -66
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +6 -22
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -1
- package/es/lowcode/view/lc-components/Tree/index.js +51 -344
- package/es/lowcode/view/lc-components/Tree/index.less +1 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +199 -356
- package/es/lowcode/view/lc-components/Wrapper.js +32 -47
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +84 -84
- package/es/lowcode/view/style/page.less +5 -8
- package/es/services.js +26 -4
- package/es/upload/Form/gridForm.js +3 -7
- package/es/upload/Form/index.js +1 -2
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +20 -18
- package/es/upload/index.js +1 -2
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +22 -21
- package/es/utils/grid.js +3 -2
- package/lib/components/Builder/index.js +1 -4
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/components/ComplexItem/service.js +28 -0
- package/lib/components/LDActions/index.js +14 -15
- package/lib/components/LDActions/index.less +48 -68
- package/lib/components/LdAutoForm/index.js +8 -26
- package/lib/components/LdCom/index.js +1 -2
- package/lib/components/LdFormList/index.js +29 -49
- package/lib/components/LdGrid/index.js +16 -23
- package/lib/components/LdGridForm/index.js +6 -19
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdRuntimeCom/index.js +12 -25
- package/lib/components/LdTree/index.js +41 -113
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/FromItems.js +24 -2
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +43 -29
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +12 -28
- package/lib/helper/ldComBuild.js +12 -27
- package/lib/locales/zh-CN.js +19 -104
- package/lib/lowcode/constants/api-url.js +325 -559
- package/lib/lowcode/constants/event-topics.js +1 -7
- package/lib/lowcode/constants/index.js +5 -32
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -7
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +3 -6
- package/lib/lowcode/engine/meta/box.props.default.json +2 -5
- package/lib/lowcode/engine/meta/box.props.json +4 -4
- package/lib/lowcode/engine/meta/button.props.default.json +1 -4
- package/lib/lowcode/engine/meta/button.props.json +9 -9
- package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -4
- package/lib/lowcode/engine/meta/cardlist.props.json +1 -1
- package/lib/lowcode/engine/meta/components-list.json +7 -13
- package/lib/lowcode/engine/meta/dialog.props.default.json +6 -14
- package/lib/lowcode/engine/meta/dialog.props.json +43 -73
- package/lib/lowcode/engine/meta/drawer.props.default.json +1 -4
- package/lib/lowcode/engine/meta/drawer.props.json +21 -9
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +159 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +142 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +145 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +140 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +140 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +169 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +117 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +123 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +19 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +154 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +154 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +145 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +20 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +167 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +21 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +178 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +133 -0
- package/lib/lowcode/engine/meta/form.props.default.json +3 -52
- package/lib/lowcode/engine/meta/form.props.json +63 -602
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
- package/lib/lowcode/engine/meta/image.props.default.json +1 -4
- package/lib/lowcode/engine/meta/image.props.json +2 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -12
- package/lib/lowcode/engine/meta/imex.props.json +22 -54
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +13 -83
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/lib/lowcode/engine/meta/jsx.props.json +5 -10
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -4
- package/lib/lowcode/engine/meta/layout.props.json +3 -2
- package/lib/lowcode/engine/meta/link.props.default.json +1 -4
- package/lib/lowcode/engine/meta/link.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +18 -6
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +3 -1
- package/lib/lowcode/engine/meta/pagelayout.props.json +13 -1
- package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
- package/lib/lowcode/engine/meta/proxy.props.json +66 -0
- package/lib/lowcode/engine/meta/section.props.default.json +6 -7
- package/lib/lowcode/engine/meta/section.props.json +49 -52
- package/lib/lowcode/engine/meta/split.props.default.json +4 -9
- package/lib/lowcode/engine/meta/split.props.json +32 -17
- package/lib/lowcode/engine/meta/table.props.default.json +1 -5
- package/lib/lowcode/engine/meta/table.props.json +34 -67
- package/lib/lowcode/engine/meta/tabs.props.default.json +8 -16
- package/lib/lowcode/engine/meta/tabs.props.json +80 -57
- package/lib/lowcode/engine/meta/text.props.default.json +1 -4
- package/lib/lowcode/engine/meta/text.props.json +2 -2
- package/lib/lowcode/engine/meta/tree.props.default.json +6 -16
- package/lib/lowcode/engine/meta/tree.props.json +58 -214
- package/lib/lowcode/engine/provider/ContextProvider/index.js +114 -85
- package/lib/lowcode/engine/tools/dataProcess.js +70 -137
- package/lib/lowcode/engine/tools/helper.js +20 -72
- package/lib/lowcode/engine/tools/usePromiseState.js +7 -6
- package/lib/lowcode/index.js +0 -7
- package/lib/lowcode/painter/Components.js +22 -48
- package/lib/lowcode/painter/Design.js +0 -32
- package/lib/lowcode/painter/DesignOperator.js +34 -40
- package/lib/lowcode/painter/DesignToolbar.js +13 -286
- package/lib/lowcode/painter/I18n.js +1 -1
- package/lib/lowcode/painter/Outline.js +24 -27
- package/lib/lowcode/painter/Panel.js +25 -66
- package/lib/lowcode/painter/components/ActionBindModal.js +58 -176
- package/lib/lowcode/painter/components/AdvancePanel.js +9 -86
- package/lib/lowcode/painter/components/AttrsPanel.js +39 -59
- package/lib/lowcode/painter/components/Collapse.js +29 -35
- package/lib/lowcode/painter/components/ColorInput.js +27 -29
- package/lib/lowcode/painter/components/ListEditor.js +32 -45
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +25 -25
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +27 -34
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +34 -35
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/index.js +30 -3
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +67 -14
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +4 -37
- package/lib/lowcode/painter/panel-section/ButtonType.js +2 -4
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +40 -115
- package/lib/lowcode/painter/panel-section/Icon.js +35 -37
- package/lib/lowcode/painter/panel-section/IconSelector.js +18 -21
- package/lib/lowcode/painter/panel-section/ImpExp.js +5 -92
- package/lib/lowcode/painter/panel-section/JSEditor.js +2 -3
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +27 -26
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +29 -10
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +16 -22
- package/lib/lowcode/painter/panel-section/TabItems.js +29 -45
- package/lib/lowcode/painter/panel-section/TableZebra.js +6 -67
- package/lib/lowcode/painter/style/action-bind-modal.less +99 -102
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +22 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +90 -91
- package/lib/lowcode/painter/style/design.less +149 -152
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +59 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/view/Canvas.js +145 -31
- package/lib/lowcode/view/Loading.js +2 -6
- package/lib/lowcode/view/Page.js +10 -11
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Box/index.js +15 -9
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +10 -8
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +6 -3
- package/lib/lowcode/view/lc-components/Button/index.js +51 -70
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +143 -143
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +27 -11
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Dialog/index.js +19 -115
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +120 -143
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +3 -6
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Drawer/index.js +12 -13
- package/lib/lowcode/view/lc-components/Drawer/index.less +6 -9
- package/lib/lowcode/view/lc-components/Drawer/meta.json +143 -131
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -83
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Form/index.js +12 -381
- package/lib/lowcode/view/lc-components/Form/meta.json +116 -605
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -1
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +3 -9
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/ImEx/index.js +7 -257
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -114
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Image/index.js +0 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/JSX/index.js +6 -19
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -28
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +24 -22
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +8 -3
- package/lib/lowcode/view/lc-components/Layout/index.js +16 -17
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Link/index.js +0 -1
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -25
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Section/index.js +23 -114
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +2 -57
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Split/index.js +6 -41
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -53
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +3 -7
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Table/index.js +214 -396
- package/lib/lowcode/view/lc-components/Table/meta.json +372 -405
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +2 -64
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +9 -114
- package/lib/lowcode/view/lc-components/Tabs/meta.json +140 -113
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +1 -2
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Text/index.js +0 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +5 -21
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +1 -2
- package/lib/lowcode/view/lc-components/Tree/index.js +48 -341
- package/lib/lowcode/view/lc-components/Tree/index.less +1 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +199 -356
- package/lib/lowcode/view/lc-components/Wrapper.js +30 -46
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +84 -84
- package/lib/lowcode/view/style/page.less +5 -8
- package/lib/services.js +27 -4
- package/lib/upload/Form/gridForm.js +3 -7
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +20 -18
- package/lib/upload/index.js +1 -8
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +22 -21
- package/lib/utils/grid.js +3 -2
- package/lowcode.js +1 -1
- package/package.json +171 -172
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/components/IconFont/index.js +0 -5
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +0 -219
- package/es/lowcode/engine/tools/useCanvasRender.js +0 -74
- package/es/lowcode/engine/tools/usePageDataStore.js +0 -176
- package/es/lowcode/engine/tools/useTodo.js +0 -88
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +0 -137
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -50
- package/es/lowcode/painter/components/DragDrop/Overlay.js +0 -8
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -67
- package/es/lowcode/painter/components/TreeEditor.js +0 -13
- package/es/lowcode/painter/components/field-setting/BatchSetting.js +0 -154
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -108
- package/es/lowcode/painter/components/field-setting/CheckRules.js +0 -101
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +0 -287
- package/es/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -290
- package/es/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -63
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -136
- package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -570
- package/es/lowcode/painter/components/field-setting/index.js +0 -342
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +0 -53
- package/es/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -25
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +0 -27
- package/es/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -45
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +0 -232
- package/es/lowcode/painter/panel-section/FieldsSetting.js +0 -374
- package/es/lowcode/painter/panel-section/I18nInput.js +0 -20
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -111
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +0 -109
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -95
- package/es/lowcode/painter/panel-section/SerialsSelector.js +0 -46
- package/es/lowcode/painter/panel-section/SplitDisplay.js +0 -163
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +0 -78
- package/es/lowcode/painter/style/dragdrop.less +0 -10
- package/es/lowcode/painter/style/fields-setting.less +0 -25
- package/es/lowcode/painter/style/page-layout-display.less +0 -28
- package/es/lowcode/painter/style/split-display.less +0 -19
- package/es/lowcode/painter/style/treedragdrop.less +0 -19
- package/es/lowcode/preview/index.js +0 -29
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Button/FunctionPreview.js +0 -6
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +0 -17
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/ImEx/index.less +0 -7
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Page/meta.json +0 -49
- package/es/lowcode/view/lc-components/PageContent/index.js +0 -52
- package/es/lowcode/view/lc-components/PageContent/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +0 -35
- package/es/lowcode/view/lc-components/PageFooter/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +0 -39
- package/es/lowcode/view/lc-components/PageHeader/meta.json +0 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -63
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -10
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/PageLayout/index.js +0 -32
- package/es/lowcode/view/lc-components/PageLayout/meta.json +0 -47
- package/es/lowcode/view/lc-components/PageModal/index.js +0 -20
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Section/index.less +0 -7
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +0 -138
- package/es/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +0 -10
- package/es/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -26
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +0 -422
- package/es/upload/FilesWall/index.less +0 -74
- package/lib/components/IconFont/index.js +0 -11
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +0 -227
- package/lib/lowcode/engine/tools/useCanvasRender.js +0 -89
- package/lib/lowcode/engine/tools/usePageDataStore.js +0 -183
- package/lib/lowcode/engine/tools/useTodo.js +0 -95
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +0 -146
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +0 -57
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +0 -15
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +0 -75
- package/lib/lowcode/painter/components/TreeEditor.js +0 -20
- package/lib/lowcode/painter/components/field-setting/BatchSetting.js +0 -161
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +0 -116
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +0 -108
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +0 -295
- package/lib/lowcode/painter/components/field-setting/FieldAttrsModal.js +0 -298
- package/lib/lowcode/painter/components/field-setting/FieldDefaultValue.js +0 -70
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +0 -144
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -578
- package/lib/lowcode/painter/components/field-setting/index.js +0 -349
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +0 -59
- package/lib/lowcode/painter/panel-section/ActionsColumnWidth.js +0 -32
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +0 -34
- package/lib/lowcode/painter/panel-section/BlocksEditor/BlockEditorItem.js +0 -52
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +0 -239
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +0 -382
- package/lib/lowcode/painter/panel-section/I18nInput.js +0 -27
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -119
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -115
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +0 -103
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +0 -53
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +0 -171
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +0 -86
- package/lib/lowcode/painter/style/dragdrop.less +0 -10
- package/lib/lowcode/painter/style/fields-setting.less +0 -25
- package/lib/lowcode/painter/style/page-layout-display.less +0 -28
- package/lib/lowcode/painter/style/split-display.less +0 -19
- package/lib/lowcode/painter/style/treedragdrop.less +0 -19
- package/lib/lowcode/preview/index.js +0 -37
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Button/FunctionPreview.js +0 -13
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +0 -24
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/ImEx/index.less +0 -7
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Page/meta.json +0 -49
- package/lib/lowcode/view/lc-components/PageContent/index.js +0 -60
- package/lib/lowcode/view/lc-components/PageContent/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +0 -43
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +0 -47
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +0 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +0 -71
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +0 -17
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/PageLayout/index.js +0 -40
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +0 -47
- package/lib/lowcode/view/lc-components/PageModal/index.js +0 -27
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Section/index.less +0 -7
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +0 -145
- package/lib/lowcode/view/lc-components/Tabs/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +0 -17
- package/lib/lowcode/view/lc-components/Tree/FunctionPreview.js +0 -33
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +0 -429
- package/lib/upload/FilesWall/index.less +0 -74
|
@@ -2,13 +2,13 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
-
var _excluded = ["type", "key", "
|
|
5
|
+
var _excluded = ["type", "key", "name", "desc", "default", "props", "wrapper", "wrapperProps", "next", "repositioning"];
|
|
6
6
|
import React, { useRef, useEffect } from 'react';
|
|
7
7
|
import { useBoolean, useCreation, useMemoizedFn } from 'ahooks';
|
|
8
8
|
import { Drawer, Icon } from 'luck-design/antd';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
|
-
import { startsWith, isNil
|
|
11
|
-
import {
|
|
10
|
+
import { startsWith, isNil } from 'lodash';
|
|
11
|
+
import { useLDContext } from "../../engine/provider/ContextProvider";
|
|
12
12
|
import PanelItemFactory from "../../engine/factory/panel-item-factory";
|
|
13
13
|
import PanelItem from "./PanelItem";
|
|
14
14
|
import Collapse from "./Collapse";
|
|
@@ -16,7 +16,7 @@ import styles from "../style/panel-attrs.less";
|
|
|
16
16
|
var AttrsPanel = function AttrsPanel(_ref) {
|
|
17
17
|
var _nextRef$current2, _nextRef$current3;
|
|
18
18
|
var meta = _ref.meta,
|
|
19
|
-
|
|
19
|
+
value = _ref.value,
|
|
20
20
|
onChange = _ref.onChange;
|
|
21
21
|
var nextRef = useRef(null);
|
|
22
22
|
var factory = useRef(new PanelItemFactory());
|
|
@@ -26,86 +26,68 @@ var AttrsPanel = function AttrsPanel(_ref) {
|
|
|
26
26
|
_useBoolean2$ = _useBoolean2[1],
|
|
27
27
|
setTrue = _useBoolean2$.setTrue,
|
|
28
28
|
setFalse = _useBoolean2$.setFalse;
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
path: 'props'
|
|
32
|
-
});
|
|
33
|
-
var handleChange = useMemoizedFn(function (field, val, _ref2) {
|
|
29
|
+
var context = useLDContext();
|
|
30
|
+
var handleChange = useMemoizedFn(function (field, val, repositioning) {
|
|
34
31
|
var _nextRef$current;
|
|
35
|
-
|
|
36
|
-
before = _ref2.before;
|
|
37
|
-
onChange(field, val, {
|
|
38
|
-
repositioning: repositioning,
|
|
39
|
-
before: before
|
|
40
|
-
});
|
|
32
|
+
onChange(field, val, repositioning);
|
|
41
33
|
if ((_nextRef$current = nextRef.current) !== null && _nextRef$current !== void 0 && _nextRef$current.autoClose) {
|
|
42
34
|
setFalse();
|
|
43
35
|
}
|
|
44
36
|
});
|
|
45
|
-
var goNext = useMemoizedFn(function (_next
|
|
37
|
+
var goNext = useMemoizedFn(function (_next) {
|
|
46
38
|
if (!_next) return;
|
|
47
39
|
nextRef.current = {
|
|
48
40
|
name: _next.name,
|
|
49
41
|
autoClose: _next.autoClose,
|
|
50
|
-
NextComp: renderPanelItems(_next.props
|
|
42
|
+
NextComp: renderPanelItems(_next.props)
|
|
51
43
|
};
|
|
52
44
|
setTrue();
|
|
53
45
|
});
|
|
54
|
-
var renderPanelItems = useMemoizedFn(function (items
|
|
55
|
-
return items.map(function (
|
|
56
|
-
var type =
|
|
57
|
-
key =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
rest = _objectWithoutProperties(_ref3, _excluded);
|
|
46
|
+
var renderPanelItems = useMemoizedFn(function (items) {
|
|
47
|
+
return items.map(function (_ref2) {
|
|
48
|
+
var type = _ref2.type,
|
|
49
|
+
key = _ref2.key,
|
|
50
|
+
name = _ref2.name,
|
|
51
|
+
desc = _ref2.desc,
|
|
52
|
+
defaultValue = _ref2.default,
|
|
53
|
+
props = _ref2.props,
|
|
54
|
+
wrapper = _ref2.wrapper,
|
|
55
|
+
wrapperProps = _ref2.wrapperProps,
|
|
56
|
+
_next2 = _ref2.next,
|
|
57
|
+
repositioning = _ref2.repositioning,
|
|
58
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
68
59
|
var Comp = factory.current.getPanelItemFor(startsWith(type, '_') ? 'dynamic' : type, type);
|
|
69
60
|
if (type === 'group') {
|
|
70
61
|
return /*#__PURE__*/React.createElement(Comp, {
|
|
71
|
-
nodeId: nodeId,
|
|
72
62
|
key: key,
|
|
73
63
|
field: key,
|
|
74
64
|
label: name,
|
|
75
|
-
next:
|
|
76
|
-
return goNext(
|
|
65
|
+
next: _next2 ? function () {
|
|
66
|
+
return goNext(_next2);
|
|
77
67
|
} : null,
|
|
78
68
|
defaultCollapsed: defaultValue,
|
|
79
69
|
desc: desc
|
|
80
|
-
}, renderPanelItems(props || []
|
|
70
|
+
}, renderPanelItems(props || []));
|
|
81
71
|
}
|
|
82
|
-
var
|
|
83
|
-
|
|
84
|
-
nodeId: nodeId,
|
|
85
|
-
key: key,
|
|
86
|
-
defaultValue: isNil(_originalVal) ? defaultValue : _originalVal,
|
|
87
|
-
next: next !== null && next !== void 0 && next.props ? function (_dp) {
|
|
88
|
-
return goNext(next, _dp);
|
|
89
|
-
} : null,
|
|
90
|
-
onChange: function onChange(val, before) {
|
|
91
|
-
return handleChange(valueKey || key, val, {
|
|
92
|
-
repositioning: repositioning,
|
|
93
|
-
before: before
|
|
94
|
-
});
|
|
95
|
-
},
|
|
96
|
-
size: "small",
|
|
97
|
-
settings: node,
|
|
98
|
-
renderPanelItems: renderPanelItems
|
|
99
|
-
}, rest, dynamicProps));
|
|
100
|
-
if (wrapper === 'hidden') return comp;
|
|
72
|
+
var _context$componentMap = context.componentMap.get(value.id).api.getSelfAndParentLCData(),
|
|
73
|
+
node = _context$componentMap.node;
|
|
101
74
|
var Wrapper = wrapper === 'collapse' ? Collapse : PanelItem;
|
|
102
75
|
return /*#__PURE__*/React.createElement(Wrapper, _extends({
|
|
103
76
|
key: key,
|
|
104
|
-
nodeId: nodeId,
|
|
105
77
|
field: key,
|
|
106
78
|
label: name,
|
|
107
79
|
desc: desc
|
|
108
|
-
}, wrapperProps),
|
|
80
|
+
}, wrapperProps), Comp && /*#__PURE__*/React.createElement(Comp, _extends({
|
|
81
|
+
defaultValue: isNil(node.props[key]) ? defaultValue : node.props[key],
|
|
82
|
+
next: function next() {
|
|
83
|
+
return goNext(_next2);
|
|
84
|
+
},
|
|
85
|
+
onChange: function onChange(val) {
|
|
86
|
+
return handleChange(key, val, repositioning);
|
|
87
|
+
},
|
|
88
|
+
size: "small",
|
|
89
|
+
settings: node.props
|
|
90
|
+
}, rest)));
|
|
109
91
|
});
|
|
110
92
|
});
|
|
111
93
|
var PropsComps = useCreation(function () {
|
|
@@ -114,15 +96,14 @@ var AttrsPanel = function AttrsPanel(_ref) {
|
|
|
114
96
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
115
97
|
}
|
|
116
98
|
return renderPanelItems(meta.props);
|
|
117
|
-
}, [
|
|
99
|
+
}, [value]);
|
|
118
100
|
useEffect(function () {
|
|
119
101
|
if (!open) {
|
|
120
102
|
nextRef.current = null;
|
|
121
103
|
}
|
|
122
104
|
}, [open]);
|
|
123
105
|
return /*#__PURE__*/React.createElement("div", {
|
|
124
|
-
|
|
125
|
-
className: classNames(styles['lc-painter-panel-attrs'], _defineProperty(_defineProperty({}, styles.hidden, !nodeId), styles.showNext, open))
|
|
106
|
+
className: classNames(styles['lc-painter-panel-attrs'], _defineProperty(_defineProperty({}, styles.hidden, !value), styles.showNext, open))
|
|
126
107
|
}, PropsComps, /*#__PURE__*/React.createElement(Drawer, {
|
|
127
108
|
visible: open,
|
|
128
109
|
width: 320,
|
|
@@ -131,8 +112,7 @@ var AttrsPanel = function AttrsPanel(_ref) {
|
|
|
131
112
|
getContainer: false,
|
|
132
113
|
destroyOnClose: true,
|
|
133
114
|
style: {
|
|
134
|
-
position: 'absolute'
|
|
135
|
-
transform: 'none'
|
|
115
|
+
position: 'absolute'
|
|
136
116
|
},
|
|
137
117
|
bodyStyle: {
|
|
138
118
|
padding: 0,
|
|
@@ -4,32 +4,32 @@ import { useMemoizedFn, useCreation } from 'ahooks';
|
|
|
4
4
|
import styles from "../style/collapse.less";
|
|
5
5
|
import { Icon, Tooltip } from 'luck-design/antd';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* Collapse 组件是一个可折叠区域的实现,用于显示或隐藏内容。它支持自定义标签、描述以及默认的折叠状态。
|
|
9
|
-
* 该组件还可以通过 `next` 函数来自定义点击操作,而不是简单地切换折叠状态。
|
|
10
|
-
* 提供的工具提示可以显示额外信息,如字段名和描述,以帮助用户更好地理解折叠内容的作用。
|
|
11
|
-
*
|
|
12
|
-
* @component
|
|
13
|
-
* @example
|
|
14
|
-
* <Collapse
|
|
15
|
-
* field="exampleField"
|
|
16
|
-
* label="示例标签"
|
|
17
|
-
* desc="这是一个用于演示的折叠组件"
|
|
18
|
-
* defaultCollapsed={true}
|
|
19
|
-
* next={() => console.log('Custom next function executed')}
|
|
20
|
-
* >
|
|
21
|
-
* <p>这里是可折叠的内容</p>
|
|
22
|
-
* </Collapse>
|
|
23
|
-
*
|
|
24
|
-
* @param {Object} props - 组件的属性。
|
|
25
|
-
* @param {React.ReactNode} children - 折叠区域展开时显示的内容。
|
|
26
|
-
* @param {string} [props.field] - 与折叠内容相关联的字段名。
|
|
27
|
-
* @param {string} props.label - 折叠区域的标签名称。
|
|
28
|
-
* @param {string} [props.desc] - 关于折叠内容的描述信息。
|
|
29
|
-
* @param {boolean} [props.defaultCollapsed=false] - 折叠区域的默认状态。如果为 true,则默认为折叠状态。
|
|
30
|
-
* @param {Function} [props.next] - 点击操作的自定义函数。如果提供,点击时将执行此函数,而不是切换折叠状态。
|
|
31
|
-
*
|
|
32
|
-
* @returns {ReactElement} 返回一个 React 元素,表示一个具有可折叠功能的容器。
|
|
7
|
+
/**
|
|
8
|
+
* Collapse 组件是一个可折叠区域的实现,用于显示或隐藏内容。它支持自定义标签、描述以及默认的折叠状态。
|
|
9
|
+
* 该组件还可以通过 `next` 函数来自定义点击操作,而不是简单地切换折叠状态。
|
|
10
|
+
* 提供的工具提示可以显示额外信息,如字段名和描述,以帮助用户更好地理解折叠内容的作用。
|
|
11
|
+
*
|
|
12
|
+
* @component
|
|
13
|
+
* @example
|
|
14
|
+
* <Collapse
|
|
15
|
+
* field="exampleField"
|
|
16
|
+
* label="示例标签"
|
|
17
|
+
* desc="这是一个用于演示的折叠组件"
|
|
18
|
+
* defaultCollapsed={true}
|
|
19
|
+
* next={() => console.log('Custom next function executed')}
|
|
20
|
+
* >
|
|
21
|
+
* <p>这里是可折叠的内容</p>
|
|
22
|
+
* </Collapse>
|
|
23
|
+
*
|
|
24
|
+
* @param {Object} props - 组件的属性。
|
|
25
|
+
* @param {React.ReactNode} children - 折叠区域展开时显示的内容。
|
|
26
|
+
* @param {string} [props.field] - 与折叠内容相关联的字段名。
|
|
27
|
+
* @param {string} props.label - 折叠区域的标签名称。
|
|
28
|
+
* @param {string} [props.desc] - 关于折叠内容的描述信息。
|
|
29
|
+
* @param {boolean} [props.defaultCollapsed=false] - 折叠区域的默认状态。如果为 true,则默认为折叠状态。
|
|
30
|
+
* @param {Function} [props.next] - 点击操作的自定义函数。如果提供,点击时将执行此函数,而不是切换折叠状态。
|
|
31
|
+
*
|
|
32
|
+
* @returns {ReactElement} 返回一个 React 元素,表示一个具有可折叠功能的容器。
|
|
33
33
|
*/
|
|
34
34
|
export default function (_ref) {
|
|
35
35
|
var children = _ref.children,
|
|
@@ -40,7 +40,6 @@ export default function (_ref) {
|
|
|
40
40
|
defaultCollapsed = _ref$defaultCollapsed === void 0 ? false : _ref$defaultCollapsed,
|
|
41
41
|
next = _ref.next,
|
|
42
42
|
suppressIcon = _ref.suppressIcon,
|
|
43
|
-
extraRender = _ref.extraRender,
|
|
44
43
|
style = _ref.style,
|
|
45
44
|
bodyStyle = _ref.bodyStyle;
|
|
46
45
|
var _useState = useState(defaultCollapsed),
|
|
@@ -60,7 +59,7 @@ export default function (_ref) {
|
|
|
60
59
|
str = "\u5C5E\u6027\uFF1A".concat(field);
|
|
61
60
|
}
|
|
62
61
|
if (desc) {
|
|
63
|
-
str
|
|
62
|
+
str += "".concat(str ? ' | ' : '', "\u8BF4\u660E\uFF1A").concat(desc);
|
|
64
63
|
}
|
|
65
64
|
return str;
|
|
66
65
|
}, [field, desc]);
|
|
@@ -83,18 +82,13 @@ export default function (_ref) {
|
|
|
83
82
|
style: {
|
|
84
83
|
cursor: desc ? 'help' : 'default'
|
|
85
84
|
}
|
|
86
|
-
}, label)),
|
|
87
|
-
className: styles['extra'],
|
|
88
|
-
onClick: function onClick(e) {
|
|
89
|
-
return e.stopPropagation();
|
|
90
|
-
}
|
|
91
|
-
}, extraRender()), !suppressIcon && /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
}, label)), !suppressIcon && /*#__PURE__*/React.createElement("span", {
|
|
92
86
|
className: styles['action']
|
|
93
87
|
}, next ? /*#__PURE__*/React.createElement(Icon, {
|
|
94
88
|
type: "right"
|
|
95
89
|
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
96
90
|
type: collapsed ? 'down' : 'up'
|
|
97
|
-
})))
|
|
91
|
+
}))), !collapsed && /*#__PURE__*/React.createElement("div", {
|
|
98
92
|
className: styles['body'],
|
|
99
93
|
style: bodyStyle
|
|
100
94
|
}, children));
|
|
@@ -3,39 +3,39 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["value", "onChange", "wrapperStyle"];
|
|
6
|
-
import React, {
|
|
6
|
+
import React, { useState } from 'react';
|
|
7
7
|
import { useUpdateEffect } from 'ahooks';
|
|
8
8
|
import PopConfirm from "./PopConfirm";
|
|
9
9
|
import { Input } from 'luck-design/antd';
|
|
10
10
|
import styles from "../style/color-input.less";
|
|
11
11
|
import { SketchPicker } from 'react-color';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* ColorInput 组件是一个集成颜色选择器的输入框组件,允许用户以 RGBA 或十六进制格式输入颜色值。
|
|
15
|
-
* 组件内部通过 PopConfirm 弹出一个 SketchPicker 颜色选择器,以提供一个直观的颜色选择界面。
|
|
16
|
-
* 用户输入的颜色值在内部转换为适当的格式,并通过 onChange 回调暴露给外部使用。
|
|
17
|
-
* 此组件还支持通过传入的 value 属性初始化颜色值,并响应其后续更改。
|
|
18
|
-
*
|
|
19
|
-
* @component
|
|
20
|
-
* @example
|
|
21
|
-
* const handleColorChange = (newColor) => {
|
|
22
|
-
* console.log('Selected color:', newColor);
|
|
23
|
-
* };
|
|
24
|
-
* <ColorInput
|
|
25
|
-
* value="rgba(255, 0, 0, 0.5)"
|
|
26
|
-
* onChange={handleColorChange}
|
|
27
|
-
* wrapperStyle={{ margin: '20px' }}
|
|
28
|
-
* />
|
|
29
|
-
*
|
|
30
|
-
* @param {Object} props - 组件的属性。
|
|
31
|
-
* @param {string} props.value - 初始化颜色值,支持 RGBA 字符串或十六进制格式。
|
|
32
|
-
* @param {Function} props.onChange - 当颜色值变更时触发的回调函数。传递新的颜色值作为参数。
|
|
33
|
-
* @param {Object} [props.wrapperStyle] - 自定义包装器 div 的样式对象。
|
|
34
|
-
* @param {Object} rest - 传递给 Input 组件的其他属性。
|
|
35
|
-
*
|
|
36
|
-
* @returns {ReactElement} 返回一个 React 元素,表示一个带有颜色选择器的输入框组件。
|
|
13
|
+
/**
|
|
14
|
+
* ColorInput 组件是一个集成颜色选择器的输入框组件,允许用户以 RGBA 或十六进制格式输入颜色值。
|
|
15
|
+
* 组件内部通过 PopConfirm 弹出一个 SketchPicker 颜色选择器,以提供一个直观的颜色选择界面。
|
|
16
|
+
* 用户输入的颜色值在内部转换为适当的格式,并通过 onChange 回调暴露给外部使用。
|
|
17
|
+
* 此组件还支持通过传入的 value 属性初始化颜色值,并响应其后续更改。
|
|
18
|
+
*
|
|
19
|
+
* @component
|
|
20
|
+
* @example
|
|
21
|
+
* const handleColorChange = (newColor) => {
|
|
22
|
+
* console.log('Selected color:', newColor);
|
|
23
|
+
* };
|
|
24
|
+
* <ColorInput
|
|
25
|
+
* value="rgba(255, 0, 0, 0.5)"
|
|
26
|
+
* onChange={handleColorChange}
|
|
27
|
+
* wrapperStyle={{ margin: '20px' }}
|
|
28
|
+
* />
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} props - 组件的属性。
|
|
31
|
+
* @param {string} props.value - 初始化颜色值,支持 RGBA 字符串或十六进制格式。
|
|
32
|
+
* @param {Function} props.onChange - 当颜色值变更时触发的回调函数。传递新的颜色值作为参数。
|
|
33
|
+
* @param {Object} [props.wrapperStyle] - 自定义包装器 div 的样式对象。
|
|
34
|
+
* @param {Object} rest - 传递给 Input 组件的其他属性。
|
|
35
|
+
*
|
|
36
|
+
* @returns {ReactElement} 返回一个 React 元素,表示一个带有颜色选择器的输入框组件。
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
export default function (_ref) {
|
|
39
39
|
var value = _ref.value,
|
|
40
40
|
onChange = _ref.onChange,
|
|
41
41
|
wrapperStyle = _ref.wrapperStyle,
|
|
@@ -70,7 +70,6 @@ var ColorInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
70
70
|
}, /*#__PURE__*/React.createElement("div", {
|
|
71
71
|
className: styles['color-input-wrap']
|
|
72
72
|
}, /*#__PURE__*/React.createElement(Input, _extends({
|
|
73
|
-
ref: ref,
|
|
74
73
|
onChange: handleInputChange,
|
|
75
74
|
className: styles['color-input'],
|
|
76
75
|
value: rgbaColor,
|
|
@@ -82,8 +81,7 @@ var ColorInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
82
81
|
backgroundColor: rgbaColor
|
|
83
82
|
}
|
|
84
83
|
}))));
|
|
85
|
-
}
|
|
86
|
-
export default ColorInput;
|
|
84
|
+
}
|
|
87
85
|
function toRGBA(colorObj) {
|
|
88
86
|
// 首先检查 colorObj 是否为 null 或 undefined
|
|
89
87
|
if (colorObj === null || typeof colorObj === 'undefined') {
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Icon
|
|
3
|
+
import { Icon } from 'luck-design/antd';
|
|
4
4
|
import { formatMessage } from '@luck-design-biz/base/utils';
|
|
5
5
|
import styles from "../style/list-editor.less";
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* ListEditor 是一个用于管理和展示一组可编辑标签项的容器组件。
|
|
9
|
-
* 它提供了一个添加新标签项的操作按钮,并通过 children 属性接收一组 ListEditorItem 组件。
|
|
10
|
-
*
|
|
11
|
-
* @param {Object} props - 组件接收的属性。
|
|
12
|
-
* @param {ReactNode} props.children - ListEditorItem 组件的实例,表示可编辑的标签项。
|
|
13
|
-
* @param {Function} props.handleAdd - 一个回调函数,当用户点击添加按钮时被触发,用于添加新的标签项。
|
|
14
|
-
* @returns {ReactNode} 渲染一个带有操作按钮和标签项的容器。
|
|
7
|
+
/**
|
|
8
|
+
* ListEditor 是一个用于管理和展示一组可编辑标签项的容器组件。
|
|
9
|
+
* 它提供了一个添加新标签项的操作按钮,并通过 children 属性接收一组 ListEditorItem 组件。
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} props - 组件接收的属性。
|
|
12
|
+
* @param {ReactNode} props.children - ListEditorItem 组件的实例,表示可编辑的标签项。
|
|
13
|
+
* @param {Function} props.handleAdd - 一个回调函数,当用户点击添加按钮时被触发,用于添加新的标签项。
|
|
14
|
+
* @returns {ReactNode} 渲染一个带有操作按钮和标签项的容器。
|
|
15
15
|
*/
|
|
16
16
|
export var ListEditor = function ListEditor(_ref) {
|
|
17
17
|
var children = _ref.children,
|
|
18
18
|
addText = _ref.addText,
|
|
19
|
-
addIcon = _ref.addIcon,
|
|
20
19
|
handleAdd = _ref.handleAdd,
|
|
21
|
-
suppressAdd = _ref.suppressAdd,
|
|
22
|
-
addBtnProps = _ref.addBtnProps,
|
|
23
20
|
style = _ref.style;
|
|
24
21
|
return /*#__PURE__*/React.createElement("div", {
|
|
25
22
|
className: styles['lc-painter-panel-section-components-listeditor'],
|
|
@@ -28,35 +25,33 @@ export var ListEditor = function ListEditor(_ref) {
|
|
|
28
25
|
className: styles['list-box']
|
|
29
26
|
}, children), /*#__PURE__*/React.createElement("div", {
|
|
30
27
|
className: styles['list-actions']
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
size: "small",
|
|
34
|
-
type: "dashed",
|
|
35
|
-
icon: addIcon || 'plus-circle'
|
|
36
|
-
}, addBtnProps, {
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: styles['list-action'],
|
|
37
30
|
onClick: handleAdd
|
|
38
|
-
}
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
32
|
+
type: "plus-circle"
|
|
33
|
+
}), ' ', addText || formatMessage({
|
|
39
34
|
id: 'luckda.lowcode.painter.panel-section.components.listeditor.add',
|
|
40
35
|
label: '添加一项'
|
|
41
36
|
}))));
|
|
42
37
|
};
|
|
43
38
|
|
|
44
|
-
/**
|
|
45
|
-
* ListEditorItem 是一个可编辑的标签项组件,用于在 ListEditor 容器内展示。
|
|
46
|
-
* 它支持拖拽排序,并可以通过左侧和右侧的插槽来自定义内容。
|
|
47
|
-
*
|
|
48
|
-
* @param {Object} props - 组件接收的属性。
|
|
49
|
-
* @param {Object} props.item - 表示标签项数据的对象。
|
|
50
|
-
* @param {ReactNode} props.left - 放置在标签项左侧的内容,通常用于展示标签名称或其他信息。
|
|
51
|
-
* @param {ReactNode} props.right - 放置在标签项右侧的内容,通常用于展示操作按钮如编辑或删除。
|
|
52
|
-
* @param {Function} props.setNodeRef - 用于设置拖拽组件根节点的引用。
|
|
53
|
-
* @param {Function} props.setActivatorNodeRef - 用于设置激活拖拽操作的节点引用。
|
|
54
|
-
* @param {Object} props.style - 应用于标签项的样式对象,通常包含拖拽过程中的动态变化样式。
|
|
55
|
-
* @param {Object} props.attributes - 包含与拖拽相关的HTML属性。
|
|
56
|
-
* @param {Object} props.listeners - 包含处理拖拽事件的监听器。
|
|
57
|
-
* @param {CSSProperties} props.transform - 应用于组件的CSS变换属性,用于实现拖拽效果。
|
|
58
|
-
* @param {string} props.transition - 定义拖拽动画的CSS过渡属性。
|
|
59
|
-
* @returns {ReactNode} 渲染一个可编辑的标签项,支持拖拽排序。
|
|
39
|
+
/**
|
|
40
|
+
* ListEditorItem 是一个可编辑的标签项组件,用于在 ListEditor 容器内展示。
|
|
41
|
+
* 它支持拖拽排序,并可以通过左侧和右侧的插槽来自定义内容。
|
|
42
|
+
*
|
|
43
|
+
* @param {Object} props - 组件接收的属性。
|
|
44
|
+
* @param {Object} props.item - 表示标签项数据的对象。
|
|
45
|
+
* @param {ReactNode} props.left - 放置在标签项左侧的内容,通常用于展示标签名称或其他信息。
|
|
46
|
+
* @param {ReactNode} props.right - 放置在标签项右侧的内容,通常用于展示操作按钮如编辑或删除。
|
|
47
|
+
* @param {Function} props.setNodeRef - 用于设置拖拽组件根节点的引用。
|
|
48
|
+
* @param {Function} props.setActivatorNodeRef - 用于设置激活拖拽操作的节点引用。
|
|
49
|
+
* @param {Object} props.style - 应用于标签项的样式对象,通常包含拖拽过程中的动态变化样式。
|
|
50
|
+
* @param {Object} props.attributes - 包含与拖拽相关的HTML属性。
|
|
51
|
+
* @param {Object} props.listeners - 包含处理拖拽事件的监听器。
|
|
52
|
+
* @param {CSSProperties} props.transform - 应用于组件的CSS变换属性,用于实现拖拽效果。
|
|
53
|
+
* @param {string} props.transition - 定义拖拽动画的CSS过渡属性。
|
|
54
|
+
* @returns {ReactNode} 渲染一个可编辑的标签项,支持拖拽排序。
|
|
60
55
|
*/
|
|
61
56
|
export var ListEditorItem = function ListEditorItem(_ref2) {
|
|
62
57
|
var item = _ref2.item,
|
|
@@ -67,18 +62,15 @@ export var ListEditorItem = function ListEditorItem(_ref2) {
|
|
|
67
62
|
style = _ref2.style,
|
|
68
63
|
attributes = _ref2.attributes,
|
|
69
64
|
listeners = _ref2.listeners,
|
|
70
|
-
_ref2$sortable = _ref2.sortable,
|
|
71
|
-
sortable = _ref2$sortable === void 0 ? true : _ref2$sortable,
|
|
72
65
|
transform = _ref2.transform,
|
|
73
|
-
transition = _ref2.transition
|
|
74
|
-
onAddLine = _ref2.onAddLine;
|
|
66
|
+
transition = _ref2.transition;
|
|
75
67
|
return /*#__PURE__*/React.createElement("div", {
|
|
76
68
|
ref: setNodeRef,
|
|
77
69
|
style: style,
|
|
78
70
|
className: styles['list-item']
|
|
79
71
|
}, /*#__PURE__*/React.createElement("div", {
|
|
80
72
|
className: styles['list-item-left']
|
|
81
|
-
},
|
|
73
|
+
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
82
74
|
ref: setActivatorNodeRef
|
|
83
75
|
}, attributes, listeners, {
|
|
84
76
|
className: styles['dragicon']
|
|
@@ -95,10 +87,5 @@ export var ListEditorItem = function ListEditorItem(_ref2) {
|
|
|
95
87
|
d: "M0.499972716,6 L1.50002728,6 C1.77615459,6 2,6.22384541 2,6.49997272 C2,6.77610002 1.77615459,6.99994543 1.50002728,6.99994543 L0.499972716,6.99994543 C0.22384541,6.99994543 3.38158422e-17,6.77610002 0,6.49997272 C-3.38158422e-17,6.22384541 0.22384541,6 0.499972716,6 Z M0.499972716,3 L1.50002728,3 C1.77615459,3 2,3.22384541 2,3.49997272 C2,3.77610002 1.77615459,3.99994543 1.50002728,3.99994543 L0.499972716,3.99994543 C0.22384541,3.99994543 3.38158422e-17,3.77610002 0,3.49997272 C-3.38158422e-17,3.22384541 0.22384541,3 0.499972716,3 Z M0.499972716,7.28787148e-18 L1.50002728,5.55666624e-14 C1.77615459,7.07214574e-14 2,0.22384541 2,0.499972716 C2,0.776100022 1.77615459,0.999945432 1.50002728,0.999945432 L0.499972716,0.999945432 C0.22384541,0.999945432 3.38158422e-17,0.776100022 0,0.499972716 C-3.38158422e-17,0.22384541 0.22384541,5.0723721e-17 0.499972716,0 Z M0.5,9.00002729 L1.5,9.00002729 C1.77614237,9.00002729 2,9.22388491 2,9.50002729 C2,9.77616966 1.77614237,10.0000273 1.5,10.0000273 L0.5,10.0000273 C0.223857625,10.0000273 3.38176876e-17,9.77616966 0,9.50002729 C-3.38176876e-17,9.22388491 0.223857625,9.00002729 0.5,9.00002729 Z M0.5,12.0000273 L1.5,12.0000273 C1.77614237,12.0000273 2,12.2238849 2,12.5000273 C2,12.7761697 1.77614237,13.0000273 1.5,13.0000273 L0.5,13.0000273 C0.223857625,13.0000273 3.38176876e-17,12.7761697 0,12.5000273 C-3.38176876e-17,12.2238849 0.223857625,12.0000273 0.5,12.0000273 Z M0.5,15.0000273 L1.5,15.0000273 C1.77614237,15.0000273 2,15.2238849 2,15.5000273 C2,15.7761697 1.77614237,16.0000273 1.5,16.0000273 L0.5,16.0000273 C0.223857625,16.0000273 3.38176876e-17,15.7761697 0,15.5000273 C-3.38176876e-17,15.2238849 0.223857625,15.0000273 0.5,15.0000273 Z M3.49997272,6 L4.50002728,6 C4.77615459,6 5,6.22384541 5,6.49997272 C5,6.77610002 4.77615459,6.99994543 4.50002728,6.99994543 L3.49997272,6.99994543 C3.22384541,6.99994543 3,6.77610002 3,6.49997272 C3,6.22384541 3.22384541,6 3.49997272,6 Z M3.49997272,3 L4.50002728,3 C4.77615459,3 5,3.22384541 5,3.49997272 C5,3.77610002 4.77615459,3.99994543 4.50002728,3.99994543 L3.49997272,3.99994543 C3.22384541,3.99994543 3,3.77610002 3,3.49997272 C3,3.22384541 3.22384541,3 3.49997272,3 Z M3.49997272,7.28787148e-18 L4.50002728,5.55666624e-14 C4.77615459,7.07214574e-14 5,0.22384541 5,0.499972716 C5,0.776100022 4.77615459,0.999945432 4.50002728,0.999945432 L3.49997272,0.999945432 C3.22384541,0.999945432 3,0.776100022 3,0.499972716 C3,0.22384541 3.22384541,5.0723721e-17 3.49997272,0 Z M3.5,9.00002729 L4.5,9.00002729 C4.77614237,9.00002729 5,9.22388491 5,9.50002729 C5,9.77616966 4.77614237,10.0000273 4.5,10.0000273 L3.5,10.0000273 C3.22385763,10.0000273 3,9.77616966 3,9.50002729 C3,9.22388491 3.22385763,9.00002729 3.5,9.00002729 Z M3.5,12.0000273 L4.5,12.0000273 C4.77614237,12.0000273 5,12.2238849 5,12.5000273 C5,12.7761697 4.77614237,13.0000273 4.5,13.0000273 L3.5,13.0000273 C3.22385763,13.0000273 3,12.7761697 3,12.5000273 C3,12.2238849 3.22385763,12.0000273 3.5,12.0000273 Z M3.5,15.0000273 L4.5,15.0000273 C4.77614237,15.0000273 5,15.2238849 5,15.5000273 C5,15.7761697 4.77614237,16.0000273 4.5,16.0000273 L3.5,16.0000273 C3.22385763,16.0000273 3,15.7761697 3,15.5000273 C3,15.2238849 3.22385763,15.0000273 3.5,15.0000273 Z"
|
|
96
88
|
}))), left), /*#__PURE__*/React.createElement("div", {
|
|
97
89
|
className: styles['list-item-right']
|
|
98
|
-
}, right)
|
|
99
|
-
className: styles['list-item-bottom-line'],
|
|
100
|
-
onClick: function onClick() {
|
|
101
|
-
return onAddLine(item);
|
|
102
|
-
}
|
|
103
|
-
}) : null);
|
|
90
|
+
}, right));
|
|
104
91
|
};
|
|
@@ -8,34 +8,34 @@ import styles from "../style/number-input.less";
|
|
|
8
8
|
import { InputNumber, Dropdown, Menu } from 'luck-design/antd';
|
|
9
9
|
import { isNil } from 'lodash';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* NumberInput 组件是一个带单位选择的数字输入框组件,允许用户输入一个数值并从预定义的选项中选择一个单位。
|
|
13
|
-
* 它支持默认值、空值、自动类型转换以及自定义更改处理逻辑。
|
|
14
|
-
* 组件内部通过 Dropdown 组件提供一个单位的下拉选择菜单,并通过 InputNumber 接收数值输入。
|
|
15
|
-
* 该组件也支持将输入值转换为整数或保持为原始格式,并允许通过 options 定制可选单位。
|
|
16
|
-
*
|
|
17
|
-
* @component
|
|
18
|
-
* @example
|
|
19
|
-
* const options = [{ value: 'px', label: '像素' }, { value: '%', label: '百分比' }];
|
|
20
|
-
* <NumberInput
|
|
21
|
-
* value={100}
|
|
22
|
-
* options={options}
|
|
23
|
-
* onChange={(newValue) => console.log('New value:', newValue)}
|
|
24
|
-
* defaultValue={0}
|
|
25
|
-
* allowNull={true}
|
|
26
|
-
* convertInt={false}
|
|
27
|
-
* />
|
|
28
|
-
*
|
|
29
|
-
* @param {Object} props - 组件的属性。
|
|
30
|
-
* @param {number|string} props.value - 初始化输入框的值。
|
|
31
|
-
* @param {Object[]} props.options - 可选单位的数组,每个对象包含 value(单位的值)和 label(显示在下拉菜单中的标签)。
|
|
32
|
-
* @param {Function} props.onChange - 当输入值或单位改变时触发的回调函数。传递新的值作为参数。
|
|
33
|
-
* @param {number|string} [props.defaultValue] - 未指定 value 时的默认值。
|
|
34
|
-
* @param {boolean} [props.allowNull=true] - 是否允许空值。
|
|
35
|
-
* @param {boolean} [props.convertInt=false] - 是否将输入值转换为整数。
|
|
36
|
-
* @param {Object} rest - 传递给 InputNumber 组件的其他属性。
|
|
37
|
-
*
|
|
38
|
-
* @returns {ReactElement} 返回一个 React 元素,表示一个带单位选择的数字输入框组件。
|
|
11
|
+
/**
|
|
12
|
+
* NumberInput 组件是一个带单位选择的数字输入框组件,允许用户输入一个数值并从预定义的选项中选择一个单位。
|
|
13
|
+
* 它支持默认值、空值、自动类型转换以及自定义更改处理逻辑。
|
|
14
|
+
* 组件内部通过 Dropdown 组件提供一个单位的下拉选择菜单,并通过 InputNumber 接收数值输入。
|
|
15
|
+
* 该组件也支持将输入值转换为整数或保持为原始格式,并允许通过 options 定制可选单位。
|
|
16
|
+
*
|
|
17
|
+
* @component
|
|
18
|
+
* @example
|
|
19
|
+
* const options = [{ value: 'px', label: '像素' }, { value: '%', label: '百分比' }];
|
|
20
|
+
* <NumberInput
|
|
21
|
+
* value={100}
|
|
22
|
+
* options={options}
|
|
23
|
+
* onChange={(newValue) => console.log('New value:', newValue)}
|
|
24
|
+
* defaultValue={0}
|
|
25
|
+
* allowNull={true}
|
|
26
|
+
* convertInt={false}
|
|
27
|
+
* />
|
|
28
|
+
*
|
|
29
|
+
* @param {Object} props - 组件的属性。
|
|
30
|
+
* @param {number|string} props.value - 初始化输入框的值。
|
|
31
|
+
* @param {Object[]} props.options - 可选单位的数组,每个对象包含 value(单位的值)和 label(显示在下拉菜单中的标签)。
|
|
32
|
+
* @param {Function} props.onChange - 当输入值或单位改变时触发的回调函数。传递新的值作为参数。
|
|
33
|
+
* @param {number|string} [props.defaultValue] - 未指定 value 时的默认值。
|
|
34
|
+
* @param {boolean} [props.allowNull=true] - 是否允许空值。
|
|
35
|
+
* @param {boolean} [props.convertInt=false] - 是否将输入值转换为整数。
|
|
36
|
+
* @param {Object} rest - 传递给 InputNumber 组件的其他属性。
|
|
37
|
+
*
|
|
38
|
+
* @returns {ReactElement} 返回一个 React 元素,表示一个带单位选择的数字输入框组件。
|
|
39
39
|
*/
|
|
40
40
|
export default function (_ref) {
|
|
41
41
|
var value = _ref.value,
|
|
@@ -7,30 +7,30 @@ import { startsWith } from 'lodash';
|
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import styles from "../style/panel-item.less";
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* `PanelItem` 组件用于展示属性面板中的单个属性项。
|
|
12
|
-
* 它支持展示一个标签(属性名称)及对应的组件(例如输入框、选择器等),并可通过传入的 `addon` 属性添加额外的内容。
|
|
13
|
-
* 此组件支持折叠功能,可以通过 `collapsed` 属性控制初始折叠状态。
|
|
14
|
-
*
|
|
15
|
-
* @component
|
|
16
|
-
* @example
|
|
17
|
-
* ```jsx
|
|
18
|
-
* <PanelItem
|
|
19
|
-
* label="属性名称"
|
|
20
|
-
* collapsed={false}
|
|
21
|
-
* addon={<div>额外内容</div>}
|
|
22
|
-
* >
|
|
23
|
-
* <input type="text" />
|
|
24
|
-
* </PanelItem>
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @param {Object} props 组件接收的参数。
|
|
28
|
-
* @param {string} props.label 显示的属性名称。如果标签以 `#` 开头,则不显示。
|
|
29
|
-
* @param {boolean} [props.collapsed=true] 初始是否折叠。默认为 `true`。
|
|
30
|
-
* @param {React.ReactNode} props.addon 当属性项展开时,可以在下方显示额外内容。
|
|
31
|
-
* @param {React.ReactNode} props.children 对应于属性名称的组件,可以是输入框、下拉菜单等 React 节点。
|
|
32
|
-
*
|
|
33
|
-
* @returns {React.Element} 渲染属性名称、对应的组件以及可选的额外内容。
|
|
10
|
+
/**
|
|
11
|
+
* `PanelItem` 组件用于展示属性面板中的单个属性项。
|
|
12
|
+
* 它支持展示一个标签(属性名称)及对应的组件(例如输入框、选择器等),并可通过传入的 `addon` 属性添加额外的内容。
|
|
13
|
+
* 此组件支持折叠功能,可以通过 `collapsed` 属性控制初始折叠状态。
|
|
14
|
+
*
|
|
15
|
+
* @component
|
|
16
|
+
* @example
|
|
17
|
+
* ```jsx
|
|
18
|
+
* <PanelItem
|
|
19
|
+
* label="属性名称"
|
|
20
|
+
* collapsed={false}
|
|
21
|
+
* addon={<div>额外内容</div>}
|
|
22
|
+
* >
|
|
23
|
+
* <input type="text" />
|
|
24
|
+
* </PanelItem>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @param {Object} props 组件接收的参数。
|
|
28
|
+
* @param {string} props.label 显示的属性名称。如果标签以 `#` 开头,则不显示。
|
|
29
|
+
* @param {boolean} [props.collapsed=true] 初始是否折叠。默认为 `true`。
|
|
30
|
+
* @param {React.ReactNode} props.addon 当属性项展开时,可以在下方显示额外内容。
|
|
31
|
+
* @param {React.ReactNode} props.children 对应于属性名称的组件,可以是输入框、下拉菜单等 React 节点。
|
|
32
|
+
*
|
|
33
|
+
* @returns {React.Element} 渲染属性名称、对应的组件以及可选的额外内容。
|
|
34
34
|
*/
|
|
35
35
|
export default function (_ref) {
|
|
36
36
|
var field = _ref.field,
|
|
@@ -55,7 +55,7 @@ export default function (_ref) {
|
|
|
55
55
|
str = "\u5C5E\u6027\uFF1A".concat(field);
|
|
56
56
|
}
|
|
57
57
|
if (desc) {
|
|
58
|
-
str
|
|
58
|
+
str += "".concat(str ? ' | ' : '', "\u8BF4\u660E\uFF1A").concat(desc);
|
|
59
59
|
}
|
|
60
60
|
return str;
|
|
61
61
|
}, [field, desc]);
|
|
@@ -7,14 +7,14 @@ import { Popconfirm } from 'luck-design/antd';
|
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import styles from "../style/pop-confirm.less";
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* 这个组件是对 luck-design/antd 的 Popconfirm 组件的封装。
|
|
12
|
-
* 它提供了一个带有自定义样式的弹出确认框,用于在用户尝试执行重要操作前提示确认信息。
|
|
13
|
-
* 通过传入的 props 可以自定义 Popconfirm 组件的行为和外观。
|
|
14
|
-
*
|
|
15
|
-
* @param {Object} props - 传递给 Popconfirm 组件的属性。这包括所有标准的 Popconfirm 属性,
|
|
16
|
-
* 以及任何额外的属性,如事件处理器或自定义内容。
|
|
17
|
-
* @returns {ReactNode} 返回一个配置了自定义样式和指定属性的 Popconfirm 组件实例。
|
|
10
|
+
/**
|
|
11
|
+
* 这个组件是对 luck-design/antd 的 Popconfirm 组件的封装。
|
|
12
|
+
* 它提供了一个带有自定义样式的弹出确认框,用于在用户尝试执行重要操作前提示确认信息。
|
|
13
|
+
* 通过传入的 props 可以自定义 Popconfirm 组件的行为和外观。
|
|
14
|
+
*
|
|
15
|
+
* @param {Object} props - 传递给 Popconfirm 组件的属性。这包括所有标准的 Popconfirm 属性,
|
|
16
|
+
* 以及任何额外的属性,如事件处理器或自定义内容。
|
|
17
|
+
* @returns {ReactNode} 返回一个配置了自定义样式和指定属性的 Popconfirm 组件实例。
|
|
18
18
|
*/
|
|
19
19
|
export default function (_ref) {
|
|
20
20
|
var _ref$showBtn = _ref.showBtn,
|