@luck-design-biz/luckda 0.0.25-10 → 0.0.25-12
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/LDActions/index.less +68 -68
- package/es/components/LdAutoForm/index.js +24 -2
- package/es/components/LdFormList/index.js +4 -2
- package/es/components/LdGrid/index.js +6 -5
- package/es/components/LdGridForm/index.js +5 -1
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.js +27 -5
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +15 -15
- package/es/helper/index.less +7 -7
- package/es/index.js +0 -1
- package/es/lowcode/constants/api-url.js +84 -84
- package/es/lowcode/constants/event-topics.js +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/es/lowcode/engine/launcher.js +5 -0
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- package/es/lowcode/engine/meta/components-list.json +6 -6
- package/es/lowcode/engine/meta/fieldcolor.props.json +9 -3
- package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -1
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/es/lowcode/engine/meta/fielddate.props.json +7 -1
- package/es/lowcode/engine/meta/fielddict.props.json +7 -1
- package/es/lowcode/engine/meta/fieldeditor.props.json +7 -1
- package/es/lowcode/engine/meta/fieldgroup.props.json +7 -1
- package/es/lowcode/engine/meta/fieldnumber.props.json +8 -2
- package/es/lowcode/engine/meta/fieldradio.props.json +9 -3
- package/es/lowcode/engine/meta/fieldregion.props.json +9 -3
- package/es/lowcode/engine/meta/fieldselect.props.json +9 -3
- package/es/lowcode/engine/meta/fieldstring.props.default.json +0 -4
- package/es/lowcode/engine/meta/fieldstring.props.json +14 -12
- package/es/lowcode/engine/meta/fieldswitch.props.json +8 -2
- package/es/lowcode/engine/meta/fieldtextarea.props.json +11 -5
- package/es/lowcode/engine/meta/fieldupload.props.json +8 -2
- package/es/lowcode/engine/meta/fielduser.props.json +7 -1
- package/es/lowcode/engine/meta/fieldyear.props.json +26 -3
- package/es/lowcode/engine/meta/form.props.json +22 -2
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +17 -17
- package/es/lowcode/engine/meta/page.props.json +6 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +34 -34
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/diff.js +5 -5
- package/es/lowcode/engine/tools/helper.js +60 -5
- package/es/lowcode/engine/tools/usePageDataStore.js +10 -5
- package/es/lowcode/index.js +1 -4
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +4 -4
- package/es/lowcode/painter/DesignOperator.js +1 -1
- package/es/lowcode/painter/DesignToolbar.js +7 -4
- package/es/lowcode/painter/components/ActionBindModal.js +7 -1
- package/es/lowcode/painter/components/Collapse.js +26 -26
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- 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 -31
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- 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 +44 -34
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/es/lowcode/painter/panel-section/ComponentSelector.js +36 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/es/lowcode/painter/panel-section/Icon.js +23 -23
- package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/SplitDisplay.js +3 -2
- 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 +2 -2
- 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 +15 -15
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +10 -2
- package/es/lowcode/painter/style/action-bind-modal.less +102 -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 +28 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +91 -91
- package/es/lowcode/painter/style/design.less +158 -152
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +10 -10
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- 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 +95 -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/page-layout-display.less +27 -27
- 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/split-display.less +18 -18
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/painter/style/treedragdrop.less +19 -19
- package/es/lowcode/view/Canvas.js +20 -6
- package/es/lowcode/view/Page.js +3 -4
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
- package/es/lowcode/view/lc-components/Box/index.js +4 -4
- 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/index.js +33 -33
- 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/meta.json +153 -153
- package/es/lowcode/view/lc-components/Dialog/index.js +19 -13
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +150 -150
- package/es/lowcode/view/lc-components/Drawer/index.js +15 -12
- package/es/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/es/lowcode/view/lc-components/Drawer/meta.json +131 -131
- package/es/lowcode/view/lc-components/FieldColor/meta.json +69 -63
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +45 -39
- package/es/lowcode/view/lc-components/FieldDate/meta.json +51 -45
- package/es/lowcode/view/lc-components/FieldDict/meta.json +50 -44
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +50 -44
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +79 -73
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +54 -48
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +26 -20
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +32 -26
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +64 -58
- package/es/lowcode/view/lc-components/FieldString/meta.json +64 -62
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +37 -31
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +55 -49
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +77 -71
- package/es/lowcode/view/lc-components/FieldUser/meta.json +88 -82
- package/es/lowcode/view/lc-components/FieldYear/meta.json +41 -20
- package/es/lowcode/view/lc-components/Form/index.js +118 -25
- package/es/lowcode/view/lc-components/Form/index.less +4 -4
- package/es/lowcode/view/lc-components/Form/meta.json +616 -605
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/es/lowcode/view/lc-components/ImEx/index.js +29 -29
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +113 -113
- package/es/lowcode/view/lc-components/Image/meta.json +114 -114
- package/es/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +12 -15
- package/es/lowcode/view/lc-components/JSX/index.js +5 -6
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/es/lowcode/view/lc-components/Layout/index.js +19 -17
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/es/lowcode/view/lc-components/Link/index.js +3 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Page/meta.json +49 -49
- package/es/lowcode/view/lc-components/PageContent/index.js +3 -1
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/index.js +3 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -47
- package/es/lowcode/view/lc-components/Section/index.js +6 -3
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +107 -107
- package/es/lowcode/view/lc-components/Split/index.js +3 -0
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/index.js +160 -167
- package/es/lowcode/view/lc-components/Table/meta.json +405 -405
- package/es/lowcode/view/lc-components/Tabs/index.js +49 -36
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/index.js +3 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -66
- package/es/lowcode/view/lc-components/Tree/index.js +96 -96
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +363 -363
- package/es/lowcode/view/lc-components/Wrapper.js +1 -0
- 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 +7 -7
- package/es/upload/FilesWall/index.js +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +15 -15
- package/es/utils/form.js +21 -21
- package/es/utils/grid.js +1 -1
- package/lib/components/LDActions/index.less +68 -68
- package/lib/components/LdAutoForm/index.js +23 -1
- package/lib/components/LdFormList/index.js +4 -2
- package/lib/components/LdGrid/index.js +6 -5
- package/lib/components/LdGridForm/index.js +5 -1
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.js +25 -3
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +15 -15
- package/lib/helper/index.less +7 -7
- package/lib/index.js +1 -9
- package/lib/lowcode/constants/api-url.js +84 -84
- package/lib/lowcode/constants/event-topics.js +2 -1
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +1 -1
- package/lib/lowcode/engine/launcher.js +11 -0
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- package/lib/lowcode/engine/meta/components-list.json +6 -6
- package/lib/lowcode/engine/meta/fieldcolor.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -1
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +7 -1
- package/lib/lowcode/engine/meta/fielddict.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldnumber.props.json +8 -2
- package/lib/lowcode/engine/meta/fieldradio.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldregion.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldselect.props.json +9 -3
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +0 -4
- package/lib/lowcode/engine/meta/fieldstring.props.json +14 -12
- package/lib/lowcode/engine/meta/fieldswitch.props.json +8 -2
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +11 -5
- package/lib/lowcode/engine/meta/fieldupload.props.json +8 -2
- package/lib/lowcode/engine/meta/fielduser.props.json +7 -1
- package/lib/lowcode/engine/meta/fieldyear.props.json +26 -3
- package/lib/lowcode/engine/meta/form.props.json +22 -2
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +17 -17
- package/lib/lowcode/engine/meta/page.props.json +6 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +34 -34
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +30 -8
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/diff.js +5 -5
- package/lib/lowcode/engine/tools/helper.js +61 -4
- package/lib/lowcode/engine/tools/usePageDataStore.js +9 -4
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +4 -4
- package/lib/lowcode/painter/DesignOperator.js +1 -1
- package/lib/lowcode/painter/DesignToolbar.js +7 -4
- package/lib/lowcode/painter/components/ActionBindModal.js +6 -0
- package/lib/lowcode/painter/components/Collapse.js +26 -26
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- 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 -31
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- 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 +44 -34
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/lib/lowcode/painter/panel-section/ComponentSelector.js +43 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +2 -1
- package/lib/lowcode/painter/panel-section/Icon.js +23 -23
- package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +3 -2
- 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 +2 -2
- 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 +15 -15
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +10 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -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 +28 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +91 -91
- package/lib/lowcode/painter/style/design.less +158 -152
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +10 -10
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- 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 +95 -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/page-layout-display.less +27 -27
- 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/split-display.less +18 -18
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/painter/style/treedragdrop.less +19 -19
- package/lib/lowcode/view/Canvas.js +20 -5
- package/lib/lowcode/view/Page.js +3 -4
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +7 -2
- package/lib/lowcode/view/lc-components/Box/index.js +4 -4
- 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/index.js +33 -33
- 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/meta.json +153 -153
- package/lib/lowcode/view/lc-components/Dialog/index.js +19 -13
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +150 -150
- package/lib/lowcode/view/lc-components/Drawer/index.js +15 -12
- package/lib/lowcode/view/lc-components/Drawer/index.less +9 -9
- package/lib/lowcode/view/lc-components/Drawer/meta.json +131 -131
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +69 -63
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +45 -39
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +51 -45
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +50 -44
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +50 -44
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +79 -73
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +54 -48
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +26 -20
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +32 -26
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +64 -58
- package/lib/lowcode/view/lc-components/FieldString/meta.json +64 -62
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +37 -31
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +55 -49
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +77 -71
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +88 -82
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +41 -20
- package/lib/lowcode/view/lc-components/Form/index.js +117 -24
- package/lib/lowcode/view/lc-components/Form/index.less +4 -4
- package/lib/lowcode/view/lc-components/Form/meta.json +616 -605
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/lib/lowcode/view/lc-components/ImEx/index.js +29 -29
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
- package/lib/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js} +13 -16
- package/lib/lowcode/view/lc-components/JSX/index.js +5 -6
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/lib/lowcode/view/lc-components/Layout/index.js +19 -17
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Link/index.js +3 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +49 -49
- package/lib/lowcode/view/lc-components/PageContent/index.js +2 -0
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/index.js +3 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -47
- package/lib/lowcode/view/lc-components/Section/index.js +6 -3
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Split/index.js +3 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/index.js +160 -167
- package/lib/lowcode/view/lc-components/Table/meta.json +405 -405
- package/lib/lowcode/view/lc-components/Tabs/index.js +48 -35
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/index.js +3 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -66
- package/lib/lowcode/view/lc-components/Tree/index.js +96 -96
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +363 -363
- package/lib/lowcode/view/lc-components/Wrapper.js +1 -0
- 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 +7 -7
- package/lib/upload/FilesWall/index.js +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +15 -15
- package/lib/utils/form.js +21 -21
- package/lib/utils/grid.js +1 -1
- package/lowcode.js +1 -1
- package/package.json +173 -173
- package/upload.js +1 -1
- package/utils.js +1 -1
package/es/{components/LdRuntimeCom/index.js → lowcode/view/lc-components/JSX/RuntimeComp.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
@@ -7,18 +7,20 @@ import React, { useEffect, useState } from 'react';
|
|
|
7
7
|
import * as Babel from '@babel/standalone';
|
|
8
8
|
import * as LuckAntd from 'luck-design/antd';
|
|
9
9
|
import * as LuckDesign from 'luck-design';
|
|
10
|
-
import * as
|
|
11
|
-
import * as ahooks from 'ahooks';
|
|
10
|
+
import * as AHooks from 'ahooks';
|
|
12
11
|
import { keys } from 'lodash';
|
|
12
|
+
import { useContext } from "../../../engine/provider/ContextProvider";
|
|
13
|
+
import { executeCode } from "../../../engine/tools/helper";
|
|
13
14
|
|
|
14
|
-
/**
|
|
15
|
-
* 实时代码渲染组件
|
|
16
|
-
* todo:沙箱上下文的集成
|
|
17
|
-
* todo:Loading效果的优化
|
|
15
|
+
/**
|
|
16
|
+
* 实时代码渲染组件
|
|
17
|
+
* todo:沙箱上下文的集成
|
|
18
|
+
* todo:Loading效果的优化
|
|
18
19
|
*/
|
|
19
|
-
var
|
|
20
|
+
var RuntimeCom = function RuntimeCom(_ref) {
|
|
20
21
|
var children = _ref.children,
|
|
21
22
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
var ctx = useContext();
|
|
22
24
|
var _useState = useState(null),
|
|
23
25
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
26
|
Component = _useState2[0],
|
|
@@ -39,12 +41,7 @@ var LdRuntimeCom = function LdRuntimeCom(_ref) {
|
|
|
39
41
|
var _args = argsName.map(function (n) {
|
|
40
42
|
return rest[n];
|
|
41
43
|
});
|
|
42
|
-
var
|
|
43
|
-
// 设置组件状态
|
|
44
|
-
var ReactComponent = execute.apply(void 0, [React, LuckAntd, LuckDesign, {
|
|
45
|
-
Lodash: Lodash,
|
|
46
|
-
ahooks: ahooks
|
|
47
|
-
}].concat(_toConsumableArray(_args)));
|
|
44
|
+
var ReactComponent = executeCode.apply(void 0, [ctx, "function() {".concat(transformedCode, "; return ").concat(functionName, ";}"), ['React', 'Antd', 'Luckd', 'libs'].concat(_toConsumableArray(argsName)), React, LuckAntd, LuckDesign, _objectSpread({}, AHooks)].concat(_toConsumableArray(_args)));
|
|
48
45
|
setComponent( /*#__PURE__*/React.createElement(ReactComponent, null));
|
|
49
46
|
}
|
|
50
47
|
}
|
|
@@ -52,4 +49,4 @@ var LdRuntimeCom = function LdRuntimeCom(_ref) {
|
|
|
52
49
|
if (code === '') return null;
|
|
53
50
|
return Component ? Component : 'JSX Component';
|
|
54
51
|
};
|
|
55
|
-
export default
|
|
52
|
+
export default RuntimeCom;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { useMemoizedFn } from 'ahooks';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { useContext } from "../../../engine/provider/ContextProvider";
|
|
5
4
|
import Wrapper from "../Wrapper";
|
|
6
|
-
import
|
|
5
|
+
import { omitBadProps } from "../../../engine/tools/helper";
|
|
6
|
+
import defaultMeta from "../../../engine/meta/jsx.props.default.json";
|
|
7
|
+
import RuntimeComp from "./RuntimeComp";
|
|
7
8
|
var JSXWrapper = styled.div.withConfig({
|
|
8
9
|
displayName: "JSXWrapper",
|
|
9
10
|
componentId: "luckda-6530__sc-23r5qk-0"
|
|
@@ -15,7 +16,6 @@ var LCJSX = function LCJSX(_ref) {
|
|
|
15
16
|
render = _ref.render,
|
|
16
17
|
css = _ref.css;
|
|
17
18
|
var ref = useRef();
|
|
18
|
-
var ctx = useContext();
|
|
19
19
|
var getTargetDom = useMemoizedFn(function () {
|
|
20
20
|
return ref.current;
|
|
21
21
|
});
|
|
@@ -26,8 +26,7 @@ var LCJSX = function LCJSX(_ref) {
|
|
|
26
26
|
}, /*#__PURE__*/React.createElement(JSXWrapper, {
|
|
27
27
|
ref: ref,
|
|
28
28
|
$css: css
|
|
29
|
-
}, /*#__PURE__*/React.createElement(
|
|
30
|
-
ctx: ctx
|
|
31
|
-
}, render)));
|
|
29
|
+
}, /*#__PURE__*/React.createElement(RuntimeComp, null, render)));
|
|
32
30
|
};
|
|
31
|
+
LCJSX.defaultProps = omitBadProps(defaultMeta);
|
|
33
32
|
export default LCJSX;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "JSX",
|
|
3
|
-
"name": "jsx代码段",
|
|
4
|
-
"desc": "通过编写JSX代码实现React组件的动态渲染。",
|
|
5
|
-
"icon": "icon-jsx",
|
|
6
|
-
"group": "basic",
|
|
7
|
-
"groupName": "基础",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "id",
|
|
12
|
-
"name": "唯一标识",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"disabled": true
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"key": "render",
|
|
18
|
-
"name": "编辑jsx代码",
|
|
19
|
-
"desc": "编写可执行的完整jsx组件代码",
|
|
20
|
-
"type": "_JSEditor",
|
|
21
|
-
"default": "function Component() {\n\treturn(\n\t\t<div>\n\t\t\t此为自定义代码组件,请使用 JSX 语法\n\t\t</div>\n\t)\n}",
|
|
22
|
-
"mustConfirm": true,
|
|
23
|
-
"wrapper": "collapse",
|
|
24
|
-
"wrapperProps": { "suppressIcon": true }
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"css": "width: 100%; height: auto;"
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "JSX",
|
|
3
|
+
"name": "jsx代码段",
|
|
4
|
+
"desc": "通过编写JSX代码实现React组件的动态渲染。",
|
|
5
|
+
"icon": "icon-jsx",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "render",
|
|
18
|
+
"name": "编辑jsx代码",
|
|
19
|
+
"desc": "编写可执行的完整jsx组件代码",
|
|
20
|
+
"type": "_JSEditor",
|
|
21
|
+
"default": "function Component() {\n\treturn(\n\t\t<div>\n\t\t\t此为自定义代码组件,请使用 JSX 语法\n\t\t</div>\n\t)\n}",
|
|
22
|
+
"mustConfirm": true,
|
|
23
|
+
"wrapper": "collapse",
|
|
24
|
+
"wrapperProps": { "suppressIcon": true }
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"css": "width: 100%; height: auto;"
|
|
28
|
+
}
|
|
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { useMemoizedFn } from 'ahooks';
|
|
5
5
|
import Wrapper from "../Wrapper";
|
|
6
6
|
import styles from "./index.less";
|
|
7
|
+
import { omitBadProps } from "../../../engine/tools/helper";
|
|
7
8
|
import defaultMeta from "../../../engine/meta/layout.props.default.json";
|
|
8
9
|
var LCLayout = function LCLayout(_ref) {
|
|
9
10
|
var id = _ref.id,
|
|
@@ -29,30 +30,31 @@ var LCLayout = function LCLayout(_ref) {
|
|
|
29
30
|
}, children));
|
|
30
31
|
};
|
|
31
32
|
LCLayout.propTypes = {
|
|
32
|
-
/**
|
|
33
|
-
* @name 唯一标识
|
|
34
|
-
* @type string
|
|
35
|
-
* @disabled true
|
|
33
|
+
/**
|
|
34
|
+
* @name 唯一标识
|
|
35
|
+
* @type string
|
|
36
|
+
* @disabled true
|
|
36
37
|
*/
|
|
37
38
|
id: PropTypes.string.isRequired,
|
|
38
|
-
/**
|
|
39
|
-
* @name 列比例
|
|
40
|
-
* @type string
|
|
41
|
-
* @default 12:3:9
|
|
39
|
+
/**
|
|
40
|
+
* @name 列比例
|
|
41
|
+
* @type string
|
|
42
|
+
* @default 12:3:9
|
|
42
43
|
*/
|
|
43
44
|
columnRatio: PropTypes.string,
|
|
44
|
-
/**
|
|
45
|
-
* @name 列间距
|
|
46
|
-
* @type number
|
|
47
|
-
* @default 16
|
|
45
|
+
/**
|
|
46
|
+
* @name 列间距
|
|
47
|
+
* @type number
|
|
48
|
+
* @default 16
|
|
48
49
|
*/
|
|
49
50
|
columnSpacing: PropTypes.number,
|
|
50
|
-
/**
|
|
51
|
-
* @name 行间距
|
|
52
|
-
* @type number
|
|
53
|
-
* @default 8
|
|
51
|
+
/**
|
|
52
|
+
* @name 行间距
|
|
53
|
+
* @type number
|
|
54
|
+
* @default 8
|
|
54
55
|
*/
|
|
55
56
|
lineSpacing: PropTypes.number
|
|
56
57
|
};
|
|
57
|
-
LCLayout.defaultProps =
|
|
58
|
+
LCLayout.defaultProps = omitBadProps(defaultMeta);
|
|
59
|
+
;
|
|
58
60
|
export default LCLayout;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.lc-component-layout {
|
|
2
|
-
width: 100%;
|
|
3
|
-
display: grid;
|
|
4
|
-
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
5
|
-
}
|
|
1
|
+
.lc-component-layout {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
5
|
+
}
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "Layout",
|
|
3
|
-
"name": "布局容器",
|
|
4
|
-
"icon": "icon-layout",
|
|
5
|
-
"group": "container",
|
|
6
|
-
"groupName": "布局",
|
|
7
|
-
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "id",
|
|
12
|
-
"name": "唯一标识",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"disabled": true
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"key": "columnRatio",
|
|
18
|
-
"name": "#列比例",
|
|
19
|
-
"desc": "表示列布局所占比例的比率",
|
|
20
|
-
"type": "_LayoutRatio",
|
|
21
|
-
"default": "12:3:9"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"key": "columnSpacing",
|
|
25
|
-
"name": "列间距",
|
|
26
|
-
"desc": "表示列之间的间距或距离",
|
|
27
|
-
"type": "select",
|
|
28
|
-
"options": [
|
|
29
|
-
{
|
|
30
|
-
"label": 24,
|
|
31
|
-
"value": 24
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"label": 20,
|
|
35
|
-
"value": 20
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"label": 16,
|
|
39
|
-
"value": 16
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"label": 12,
|
|
43
|
-
"value": 12
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"label": 8,
|
|
47
|
-
"value": 8
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"label": 0,
|
|
51
|
-
"value": 0
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"default": 16
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"key": "lineSpacing",
|
|
58
|
-
"name": "行间距",
|
|
59
|
-
"desc": "表示行之间的间距或距离",
|
|
60
|
-
"type": "select",
|
|
61
|
-
"options": [
|
|
62
|
-
{
|
|
63
|
-
"label": 24,
|
|
64
|
-
"value": 24
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"label": 20,
|
|
68
|
-
"value": 20
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"label": 16,
|
|
72
|
-
"value": 16
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"label": 12,
|
|
76
|
-
"value": 12
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"label": 8,
|
|
80
|
-
"value": 8
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"label": 0,
|
|
84
|
-
"value": 0
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"default": 16
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"css": {},
|
|
91
|
-
"advance": {
|
|
92
|
-
"events": [
|
|
93
|
-
{
|
|
94
|
-
"key": "onMount",
|
|
95
|
-
"name": "组件首次渲染时",
|
|
96
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
-
"func": "function onMount(params) {\n\t\n}"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"key": "onUnmount",
|
|
101
|
-
"name": "组件卸载时",
|
|
102
|
-
"desc": "在组件卸载时,执行方法。",
|
|
103
|
-
"func": "function onUnmount(params) {\n\t\n}"
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "Layout",
|
|
3
|
+
"name": "布局容器",
|
|
4
|
+
"icon": "icon-layout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "columnRatio",
|
|
18
|
+
"name": "#列比例",
|
|
19
|
+
"desc": "表示列布局所占比例的比率",
|
|
20
|
+
"type": "_LayoutRatio",
|
|
21
|
+
"default": "12:3:9"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "columnSpacing",
|
|
25
|
+
"name": "列间距",
|
|
26
|
+
"desc": "表示列之间的间距或距离",
|
|
27
|
+
"type": "select",
|
|
28
|
+
"options": [
|
|
29
|
+
{
|
|
30
|
+
"label": 24,
|
|
31
|
+
"value": 24
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": 20,
|
|
35
|
+
"value": 20
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": 16,
|
|
39
|
+
"value": 16
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"label": 12,
|
|
43
|
+
"value": 12
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"label": 8,
|
|
47
|
+
"value": 8
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"label": 0,
|
|
51
|
+
"value": 0
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"default": 16
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "lineSpacing",
|
|
58
|
+
"name": "行间距",
|
|
59
|
+
"desc": "表示行之间的间距或距离",
|
|
60
|
+
"type": "select",
|
|
61
|
+
"options": [
|
|
62
|
+
{
|
|
63
|
+
"label": 24,
|
|
64
|
+
"value": 24
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"label": 20,
|
|
68
|
+
"value": 20
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": 16,
|
|
72
|
+
"value": 16
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"label": 12,
|
|
76
|
+
"value": 12
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": 8,
|
|
80
|
+
"value": 8
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": 0,
|
|
84
|
+
"value": 0
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"default": 16
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"css": {},
|
|
91
|
+
"advance": {
|
|
92
|
+
"events": [
|
|
93
|
+
{
|
|
94
|
+
"key": "onMount",
|
|
95
|
+
"name": "组件首次渲染时",
|
|
96
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"key": "onUnmount",
|
|
101
|
+
"name": "组件卸载时",
|
|
102
|
+
"desc": "在组件卸载时,执行方法。",
|
|
103
|
+
"func": "function onUnmount(params) {\n\t\n}"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -2,6 +2,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
2
2
|
var _excluded = ["id"];
|
|
3
3
|
import React, { useRef } from 'react';
|
|
4
4
|
import { useMemoizedFn } from 'ahooks';
|
|
5
|
+
import { omitBadProps } from "../../../engine/tools/helper";
|
|
6
|
+
import defaultMeta from "../../../engine/meta/link.props.default.json";
|
|
5
7
|
import Wrapper from "../Wrapper";
|
|
6
8
|
var LCLink = function LCLink(_ref) {
|
|
7
9
|
var id = _ref.id,
|
|
@@ -18,4 +20,5 @@ var LCLink = function LCLink(_ref) {
|
|
|
18
20
|
ref: ref
|
|
19
21
|
}, "LCLink"));
|
|
20
22
|
};
|
|
23
|
+
LCLink.defaultProps = omitBadProps(defaultMeta);
|
|
21
24
|
export default LCLink;
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "Link",
|
|
3
|
-
"name": "超链",
|
|
4
|
-
"icon": "icon-link",
|
|
5
|
-
"group": "basic",
|
|
6
|
-
"groupName": "基础",
|
|
7
|
-
"desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "id",
|
|
12
|
-
"desc": "唯一标识",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"disabled": true
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"key": "content",
|
|
18
|
-
"name": "内容",
|
|
19
|
-
"desc": "超链接的展示内容",
|
|
20
|
-
"type": "_I18nInput"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"key": "textOverflow",
|
|
24
|
-
"name": "单行截断",
|
|
25
|
-
"desc": "文字超过一行,使甲...显示;开后此项后,同时会显示html标签的title",
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "type",
|
|
31
|
-
"name": "链接类型",
|
|
32
|
-
"desc": "链接打开的内容类型选择",
|
|
33
|
-
"type": "radio",
|
|
34
|
-
"options": [
|
|
35
|
-
{
|
|
36
|
-
"label": "内部页面",
|
|
37
|
-
"value": "page"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"label": "外部链接",
|
|
41
|
-
"value": "url"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"default": "page"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"key": "url",
|
|
48
|
-
"name": "链接地址",
|
|
49
|
-
"desc": "选择链接类型为url时配置",
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"key": "isLayer",
|
|
54
|
-
"name": "弹窗打开",
|
|
55
|
-
"desc": "是否以弹窗形式打开",
|
|
56
|
-
"type": "boolean",
|
|
57
|
-
"default": false
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"key": "params",
|
|
61
|
-
"name": "携带参数",
|
|
62
|
-
"desc": "超链的携带参数",
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"key": "serials",
|
|
67
|
-
"name": "资源串",
|
|
68
|
-
"desc": "挂接模块资源串",
|
|
69
|
-
"type": "_SerialsSelector"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"key": "effect",
|
|
73
|
-
"name": "资源串效果",
|
|
74
|
-
"desc": "当资源串条件生效时按钮的效果",
|
|
75
|
-
"type": "radio",
|
|
76
|
-
"options": [
|
|
77
|
-
{
|
|
78
|
-
"label": "禁用",
|
|
79
|
-
"value": "disable"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"label": "隐藏",
|
|
83
|
-
"value": "hidden"
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"default": "hidden"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"css": {},
|
|
90
|
-
"advance": {
|
|
91
|
-
"events": [
|
|
92
|
-
{
|
|
93
|
-
"key": "onMount",
|
|
94
|
-
"name": "组件首次渲染时",
|
|
95
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
96
|
-
"func": "(params)=>{\n\t\n}"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"key": "onUnmount",
|
|
100
|
-
"name": "组件卸载时",
|
|
101
|
-
"desc": "在组件卸载时,执行方法。",
|
|
102
|
-
"func": "(params)=>{\n\t\n}"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"key": "beforeClick",
|
|
106
|
-
"name": "点击事件",
|
|
107
|
-
"desc": "点击文本时,执行方法",
|
|
108
|
-
"func": "(e,parmas)=>{\n\t\n}"
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "Link",
|
|
3
|
+
"name": "超链",
|
|
4
|
+
"icon": "icon-link",
|
|
5
|
+
"group": "basic",
|
|
6
|
+
"groupName": "基础",
|
|
7
|
+
"desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "content",
|
|
18
|
+
"name": "内容",
|
|
19
|
+
"desc": "超链接的展示内容",
|
|
20
|
+
"type": "_I18nInput"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "textOverflow",
|
|
24
|
+
"name": "单行截断",
|
|
25
|
+
"desc": "文字超过一行,使甲...显示;开后此项后,同时会显示html标签的title",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "type",
|
|
31
|
+
"name": "链接类型",
|
|
32
|
+
"desc": "链接打开的内容类型选择",
|
|
33
|
+
"type": "radio",
|
|
34
|
+
"options": [
|
|
35
|
+
{
|
|
36
|
+
"label": "内部页面",
|
|
37
|
+
"value": "page"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"label": "外部链接",
|
|
41
|
+
"value": "url"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"default": "page"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"key": "url",
|
|
48
|
+
"name": "链接地址",
|
|
49
|
+
"desc": "选择链接类型为url时配置",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"key": "isLayer",
|
|
54
|
+
"name": "弹窗打开",
|
|
55
|
+
"desc": "是否以弹窗形式打开",
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"default": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"key": "params",
|
|
61
|
+
"name": "携带参数",
|
|
62
|
+
"desc": "超链的携带参数",
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"key": "serials",
|
|
67
|
+
"name": "资源串",
|
|
68
|
+
"desc": "挂接模块资源串",
|
|
69
|
+
"type": "_SerialsSelector"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"key": "effect",
|
|
73
|
+
"name": "资源串效果",
|
|
74
|
+
"desc": "当资源串条件生效时按钮的效果",
|
|
75
|
+
"type": "radio",
|
|
76
|
+
"options": [
|
|
77
|
+
{
|
|
78
|
+
"label": "禁用",
|
|
79
|
+
"value": "disable"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"label": "隐藏",
|
|
83
|
+
"value": "hidden"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"default": "hidden"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"css": {},
|
|
90
|
+
"advance": {
|
|
91
|
+
"events": [
|
|
92
|
+
{
|
|
93
|
+
"key": "onMount",
|
|
94
|
+
"name": "组件首次渲染时",
|
|
95
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
96
|
+
"func": "(params)=>{\n\t\n}"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "onUnmount",
|
|
100
|
+
"name": "组件卸载时",
|
|
101
|
+
"desc": "在组件卸载时,执行方法。",
|
|
102
|
+
"func": "(params)=>{\n\t\n}"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"key": "beforeClick",
|
|
106
|
+
"name": "点击事件",
|
|
107
|
+
"desc": "点击文本时,执行方法",
|
|
108
|
+
"func": "(e,parmas)=>{\n\t\n}"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|