@luck-design-biz/luckda 0.0.25-11 → 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 +8 -2
- 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/helper.js +60 -3
- 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 -155
- 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 +16 -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 -35
- package/es/lowcode/view/lc-components/Form/index.js +116 -23
- 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 +25 -25
- 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 +8 -2
- 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/helper.js +61 -2
- 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 -155
- 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 +16 -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 -35
- package/lib/lowcode/view/lc-components/Form/index.js +115 -22
- 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 +25 -25
- 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 +3 -5
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "Split",
|
|
3
|
-
"name": "分割面板容器",
|
|
4
|
-
"icon": "icon-split",
|
|
5
|
-
"group": "container",
|
|
6
|
-
"groupName": "布局",
|
|
7
|
-
"desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "id",
|
|
12
|
-
"name": "唯一标识",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"disabled": true
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"key": "displaySetting",
|
|
18
|
-
"name": "展现形式",
|
|
19
|
-
"type": "group",
|
|
20
|
-
"props": [
|
|
21
|
-
{
|
|
22
|
-
"key": "display",
|
|
23
|
-
"name": "#展现形式",
|
|
24
|
-
"type": "_SplitDisplay",
|
|
25
|
-
"default": { "type": "normal", "split": "horizontal", "ratio": "1:1" }
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
31
|
-
"advance": {
|
|
32
|
-
"events": [
|
|
33
|
-
{
|
|
34
|
-
"key": "onMount",
|
|
35
|
-
"name": "组件首次渲染时",
|
|
36
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
37
|
-
"func": "function onMount() {\n\t\n}"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"key": "onUnmount",
|
|
41
|
-
"name": "组件卸载时",
|
|
42
|
-
"desc": "在组件卸载时,执行方法。",
|
|
43
|
-
"func": "function onUnmount() {\n\t\n}"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"key": "onChange",
|
|
47
|
-
"name": "尺寸变化事件",
|
|
48
|
-
"desc": "在面板尺寸发生变化时,执行方法",
|
|
49
|
-
"func": "function onChange(value) {\n\t\n}"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "Split",
|
|
3
|
+
"name": "分割面板容器",
|
|
4
|
+
"icon": "icon-split",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "displaySetting",
|
|
18
|
+
"name": "展现形式",
|
|
19
|
+
"type": "group",
|
|
20
|
+
"props": [
|
|
21
|
+
{
|
|
22
|
+
"key": "display",
|
|
23
|
+
"name": "#展现形式",
|
|
24
|
+
"type": "_SplitDisplay",
|
|
25
|
+
"default": { "type": "normal", "split": "horizontal", "ratio": "1:1" }
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
31
|
+
"advance": {
|
|
32
|
+
"events": [
|
|
33
|
+
{
|
|
34
|
+
"key": "onMount",
|
|
35
|
+
"name": "组件首次渲染时",
|
|
36
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
37
|
+
"func": "function onMount() {\n\t\n}"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "onUnmount",
|
|
41
|
+
"name": "组件卸载时",
|
|
42
|
+
"desc": "在组件卸载时,执行方法。",
|
|
43
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"key": "onChange",
|
|
47
|
+
"name": "尺寸变化事件",
|
|
48
|
+
"desc": "在面板尺寸发生变化时,执行方法",
|
|
49
|
+
"func": "function onChange(value) {\n\t\n}"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -72,9 +72,9 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
72
72
|
setClickedRow = _useSetState2[1];
|
|
73
73
|
useImperativeHandle(apiRef, function () {
|
|
74
74
|
return {
|
|
75
|
-
/**
|
|
76
|
-
* 获取表格实例
|
|
77
|
-
* @method
|
|
75
|
+
/**
|
|
76
|
+
* 获取表格实例
|
|
77
|
+
* @method
|
|
78
78
|
*/
|
|
79
79
|
getInstance: function getInstance() {
|
|
80
80
|
return instanceRef.current;
|
|
@@ -104,47 +104,39 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
104
104
|
maxCount: (actions.current || actions).max,
|
|
105
105
|
type: (actions.current || actions).type,
|
|
106
106
|
getActions: function getActions() {
|
|
107
|
-
return (actions.current || actions).todoList.map(function (
|
|
107
|
+
return (actions.current || actions).todoList.map(function (_action) {
|
|
108
108
|
return {
|
|
109
|
-
title:
|
|
110
|
-
action: function (
|
|
111
|
-
function action(_x, _x2, _x3) {
|
|
112
|
-
return _action.apply(this, arguments);
|
|
113
|
-
}
|
|
114
|
-
action.toString = function () {
|
|
115
|
-
return _action.toString();
|
|
116
|
-
};
|
|
117
|
-
return action;
|
|
118
|
-
}(function (data, rowIndex, params) {
|
|
109
|
+
title: _action.name,
|
|
110
|
+
action: function action(data, rowIndex, params) {
|
|
119
111
|
var doAction = function doAction() {
|
|
120
|
-
ctx.doAction(
|
|
112
|
+
ctx.doAction(_action.actionPool, {
|
|
121
113
|
data: data,
|
|
122
114
|
rowIndex: rowIndex,
|
|
123
115
|
params: params,
|
|
124
116
|
datasetCode: dataset.code
|
|
125
117
|
});
|
|
126
118
|
};
|
|
127
|
-
if (
|
|
119
|
+
if (_action.riskLevel === 'danger') {
|
|
128
120
|
Modal.confirm({
|
|
129
|
-
title: "\u786E\u8BA4\u6267\u884C".concat(
|
|
121
|
+
title: "\u786E\u8BA4\u6267\u884C".concat(_action.name, "\u884C\u4E3A\u64CD\u4F5C\u5417\uFF1F"),
|
|
130
122
|
onOk: doAction
|
|
131
123
|
});
|
|
132
|
-
} else if (
|
|
124
|
+
} else if (_action.riskLevel === 'destroy') {
|
|
133
125
|
recheck({
|
|
134
|
-
title: "\u786E\u8BA4\u6267\u884C".concat(
|
|
135
|
-
checkWords: "\u6267\u884C".concat(
|
|
126
|
+
title: "\u786E\u8BA4\u6267\u884C".concat(_action.name, "\u884C\u4E3A\u64CD\u4F5C\u5417\uFF1F"),
|
|
127
|
+
checkWords: "\u6267\u884C".concat(_action.name),
|
|
136
128
|
onOk: doAction
|
|
137
129
|
});
|
|
138
130
|
} else {
|
|
139
131
|
doAction();
|
|
140
132
|
}
|
|
141
|
-
}
|
|
142
|
-
resource:
|
|
143
|
-
style:
|
|
133
|
+
},
|
|
134
|
+
resource: _action.serial,
|
|
135
|
+
style: _action.riskLevel === 'default' ? null : {
|
|
144
136
|
color: {
|
|
145
137
|
danger: '#ff7875',
|
|
146
138
|
destroy: '#ff4d4f'
|
|
147
|
-
}[
|
|
139
|
+
}[_action.riskLevel]
|
|
148
140
|
}
|
|
149
141
|
};
|
|
150
142
|
});
|
|
@@ -315,7 +307,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
315
307
|
}
|
|
316
308
|
}, _callee);
|
|
317
309
|
}));
|
|
318
|
-
return function (
|
|
310
|
+
return function (_x, _x2) {
|
|
319
311
|
return _ref3.apply(this, arguments);
|
|
320
312
|
};
|
|
321
313
|
}());
|
|
@@ -342,7 +334,8 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
342
334
|
};
|
|
343
335
|
}),
|
|
344
336
|
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows) {
|
|
345
|
-
|
|
337
|
+
var todoListById = keyBy(bantchActions.todoList, 'id');
|
|
338
|
+
ctx.doAction(todoListById[key].actionPool, {
|
|
346
339
|
key: key,
|
|
347
340
|
selectedRows: selectedRows,
|
|
348
341
|
datasetCode: dataset.code
|
|
@@ -572,135 +565,135 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
572
565
|
})));
|
|
573
566
|
});
|
|
574
567
|
LCTable.propTypes = {
|
|
575
|
-
/**
|
|
576
|
-
* @name 唯一标识
|
|
577
|
-
* @type string
|
|
578
|
-
* @disabled true
|
|
568
|
+
/**
|
|
569
|
+
* @name 唯一标识
|
|
570
|
+
* @type string
|
|
571
|
+
* @disabled true
|
|
579
572
|
*/
|
|
580
573
|
id: PropTypes.string.isRequired,
|
|
581
|
-
/**
|
|
582
|
-
* @name 数据集
|
|
583
|
-
* @type _DataSetSelector
|
|
574
|
+
/**
|
|
575
|
+
* @name 数据集
|
|
576
|
+
* @type _DataSetSelector
|
|
584
577
|
*/
|
|
585
578
|
dataset: PropTypes.shape({
|
|
586
579
|
code: PropTypes.string.isRequired,
|
|
587
580
|
uid: PropTypes.string.isRequired
|
|
588
581
|
}),
|
|
589
|
-
/**
|
|
590
|
-
* @name 自动加载
|
|
591
|
-
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
592
|
-
* @type switch
|
|
593
|
-
* @default true
|
|
582
|
+
/**
|
|
583
|
+
* @name 自动加载
|
|
584
|
+
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
585
|
+
* @type switch
|
|
586
|
+
* @default true
|
|
594
587
|
*/
|
|
595
588
|
autoLoad: PropTypes.bool,
|
|
596
|
-
/**
|
|
597
|
-
* @name 只读
|
|
598
|
-
* @type switch
|
|
599
|
-
* @default false
|
|
589
|
+
/**
|
|
590
|
+
* @name 只读
|
|
591
|
+
* @type switch
|
|
592
|
+
* @default false
|
|
600
593
|
*/
|
|
601
594
|
readOnly: PropTypes.bool,
|
|
602
|
-
/**
|
|
603
|
-
* @name 关闭预设
|
|
604
|
-
* @type switch
|
|
605
|
-
* @default false
|
|
595
|
+
/**
|
|
596
|
+
* @name 关闭预设
|
|
597
|
+
* @type switch
|
|
598
|
+
* @default false
|
|
606
599
|
*/
|
|
607
600
|
suppressPreset: PropTypes.bool,
|
|
608
|
-
/**
|
|
609
|
-
* @name 宽度
|
|
610
|
-
* @type _WidthHeight
|
|
611
|
-
* @default 100%
|
|
612
|
-
* @group styleSetting
|
|
601
|
+
/**
|
|
602
|
+
* @name 宽度
|
|
603
|
+
* @type _WidthHeight
|
|
604
|
+
* @default 100%
|
|
605
|
+
* @group styleSetting
|
|
613
606
|
*/
|
|
614
607
|
width: PropTypes.string,
|
|
615
|
-
/**
|
|
616
|
-
* @name 高度
|
|
617
|
-
* @type _WidthHeight
|
|
618
|
-
* @default 100%
|
|
619
|
-
* @group styleSetting
|
|
608
|
+
/**
|
|
609
|
+
* @name 高度
|
|
610
|
+
* @type _WidthHeight
|
|
611
|
+
* @default 100%
|
|
612
|
+
* @group styleSetting
|
|
620
613
|
*/
|
|
621
614
|
height: PropTypes.string,
|
|
622
|
-
/**
|
|
623
|
-
* @name 边框线
|
|
624
|
-
* @type switch
|
|
625
|
-
* @default false
|
|
626
|
-
* @group styleSetting
|
|
615
|
+
/**
|
|
616
|
+
* @name 边框线
|
|
617
|
+
* @type switch
|
|
618
|
+
* @default false
|
|
619
|
+
* @group styleSetting
|
|
627
620
|
*/
|
|
628
621
|
border: PropTypes.bool,
|
|
629
|
-
/**
|
|
630
|
-
* @name 斑马纹
|
|
631
|
-
* @type switch
|
|
632
|
-
* @default false
|
|
633
|
-
* @group styleSetting
|
|
622
|
+
/**
|
|
623
|
+
* @name 斑马纹
|
|
624
|
+
* @type switch
|
|
625
|
+
* @default false
|
|
626
|
+
* @group styleSetting
|
|
634
627
|
*/
|
|
635
628
|
zebra: PropTypes.oneOfType[(PropTypes.bool, PropTypes.string)],
|
|
636
|
-
/**
|
|
637
|
-
* @name 开启分页
|
|
638
|
-
* @type switch
|
|
639
|
-
* @default true
|
|
640
|
-
* @group paginationSetting
|
|
629
|
+
/**
|
|
630
|
+
* @name 开启分页
|
|
631
|
+
* @type switch
|
|
632
|
+
* @default true
|
|
633
|
+
* @group paginationSetting
|
|
641
634
|
*/
|
|
642
635
|
pagination: PropTypes.bool,
|
|
643
|
-
/**
|
|
644
|
-
* @name 每页条数
|
|
645
|
-
* @type number
|
|
646
|
-
* @default 30
|
|
647
|
-
* @group paginationSetting
|
|
636
|
+
/**
|
|
637
|
+
* @name 每页条数
|
|
638
|
+
* @type number
|
|
639
|
+
* @default 30
|
|
640
|
+
* @group paginationSetting
|
|
648
641
|
*/
|
|
649
642
|
pageSize: PropTypes.number,
|
|
650
|
-
/**
|
|
651
|
-
* @name 分页器
|
|
652
|
-
* @type switch
|
|
653
|
-
* @default true
|
|
654
|
-
* @group paginationSetting
|
|
643
|
+
/**
|
|
644
|
+
* @name 分页器
|
|
645
|
+
* @type switch
|
|
646
|
+
* @default true
|
|
647
|
+
* @group paginationSetting
|
|
655
648
|
*/
|
|
656
649
|
showSizeChanger: PropTypes.bool,
|
|
657
|
-
/**
|
|
658
|
-
* @name 快速跳转
|
|
659
|
-
* @type switch
|
|
660
|
-
* @default true
|
|
661
|
-
* @group paginationSetting
|
|
650
|
+
/**
|
|
651
|
+
* @name 快速跳转
|
|
652
|
+
* @type switch
|
|
653
|
+
* @default true
|
|
654
|
+
* @group paginationSetting
|
|
662
655
|
*/
|
|
663
656
|
showQuickJumper: PropTypes.bool,
|
|
664
|
-
/**
|
|
665
|
-
* @name 单页无分页器
|
|
666
|
-
* @type switch
|
|
667
|
-
* @default false
|
|
668
|
-
* @group paginationSetting
|
|
657
|
+
/**
|
|
658
|
+
* @name 单页无分页器
|
|
659
|
+
* @type switch
|
|
660
|
+
* @default false
|
|
661
|
+
* @group paginationSetting
|
|
669
662
|
*/
|
|
670
663
|
hideOnSinglePage: PropTypes.bool,
|
|
671
|
-
/**
|
|
672
|
-
* @name 简单模式
|
|
673
|
-
* @type switch
|
|
674
|
-
* @default false
|
|
675
|
-
* @group paginationSetting
|
|
664
|
+
/**
|
|
665
|
+
* @name 简单模式
|
|
666
|
+
* @type switch
|
|
667
|
+
* @default false
|
|
668
|
+
* @group paginationSetting
|
|
676
669
|
*/
|
|
677
670
|
paginationSimple: PropTypes.bool,
|
|
678
|
-
/**
|
|
679
|
-
* @name 隐藏操作列
|
|
680
|
-
* @type switch
|
|
681
|
-
* @default false
|
|
682
|
-
* @groupNext actionsColumn
|
|
671
|
+
/**
|
|
672
|
+
* @name 隐藏操作列
|
|
673
|
+
* @type switch
|
|
674
|
+
* @default false
|
|
675
|
+
* @groupNext actionsColumn
|
|
683
676
|
*/
|
|
684
677
|
suppressActions: PropTypes.bool,
|
|
685
|
-
/**
|
|
686
|
-
* @name 隐藏操作列
|
|
687
|
-
* @type number
|
|
688
|
-
* @default 160
|
|
689
|
-
* @groupNext actionsColumn
|
|
678
|
+
/**
|
|
679
|
+
* @name 隐藏操作列
|
|
680
|
+
* @type number
|
|
681
|
+
* @default 160
|
|
682
|
+
* @groupNext actionsColumn
|
|
690
683
|
*/
|
|
691
684
|
actionsColumnWidth: PropTypes.number,
|
|
692
|
-
/**
|
|
693
|
-
* @name 最大显示数
|
|
694
|
-
* @type number
|
|
695
|
-
* @default 2
|
|
696
|
-
* @groupNext actionsColumn
|
|
685
|
+
/**
|
|
686
|
+
* @name 最大显示数
|
|
687
|
+
* @type number
|
|
688
|
+
* @default 2
|
|
689
|
+
* @groupNext actionsColumn
|
|
697
690
|
*/
|
|
698
691
|
maxActionsCount: PropTypes.number,
|
|
699
|
-
/**
|
|
700
|
-
* @name 操作项
|
|
701
|
-
* @type _TableActions
|
|
702
|
-
* @groupNext actionsColumn
|
|
703
|
-
* @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
|
|
692
|
+
/**
|
|
693
|
+
* @name 操作项
|
|
694
|
+
* @type _TableActions
|
|
695
|
+
* @groupNext actionsColumn
|
|
696
|
+
* @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
|
|
704
697
|
*/
|
|
705
698
|
actions: PropTypes.shape({
|
|
706
699
|
display: PropTypes.oneOf(['text', 'button']),
|
|
@@ -708,10 +701,10 @@ LCTable.propTypes = {
|
|
|
708
701
|
moreText: PropTypes.string,
|
|
709
702
|
todoList: PropTypes.array
|
|
710
703
|
}),
|
|
711
|
-
/**
|
|
712
|
-
* @name 顶部操作
|
|
713
|
-
* @type _ActionGroup
|
|
714
|
-
* @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
|
|
704
|
+
/**
|
|
705
|
+
* @name 顶部操作
|
|
706
|
+
* @type _ActionGroup
|
|
707
|
+
* @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
|
|
715
708
|
*/
|
|
716
709
|
topActionGroup: PropTypes.shape({
|
|
717
710
|
display: PropTypes.oneOf(['text', 'button']),
|
|
@@ -719,86 +712,86 @@ LCTable.propTypes = {
|
|
|
719
712
|
moreText: PropTypes.string,
|
|
720
713
|
todoList: PropTypes.array
|
|
721
714
|
}),
|
|
722
|
-
/**
|
|
723
|
-
* @name 顶部过滤器
|
|
724
|
-
* @type _TableTopFilter
|
|
715
|
+
/**
|
|
716
|
+
* @name 顶部过滤器
|
|
717
|
+
* @type _TableTopFilter
|
|
725
718
|
*/
|
|
726
719
|
topFilter: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.shape({
|
|
727
720
|
options: PropTypes.array.isRequired,
|
|
728
721
|
field: PropTypes.string.isRequired
|
|
729
722
|
})]),
|
|
730
|
-
/**
|
|
731
|
-
* @name 开启行选择器
|
|
732
|
-
* @type boolean
|
|
733
|
-
* @default false
|
|
723
|
+
/**
|
|
724
|
+
* @name 开启行选择器
|
|
725
|
+
* @type boolean
|
|
726
|
+
* @default false
|
|
734
727
|
*/
|
|
735
728
|
rowSelection: PropTypes.bool,
|
|
736
|
-
/**
|
|
737
|
-
* @name 停用分页多选
|
|
738
|
-
* @type boolean
|
|
739
|
-
* @default false
|
|
729
|
+
/**
|
|
730
|
+
* @name 停用分页多选
|
|
731
|
+
* @type boolean
|
|
732
|
+
* @default false
|
|
740
733
|
*/
|
|
741
734
|
suppressRowSelectionPagination: PropTypes.bool,
|
|
742
|
-
/**
|
|
743
|
-
* @name 选择器模式
|
|
744
|
-
* @type segmented
|
|
745
|
-
* @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
|
|
746
|
-
* @default 'multiple'
|
|
735
|
+
/**
|
|
736
|
+
* @name 选择器模式
|
|
737
|
+
* @type segmented
|
|
738
|
+
* @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
|
|
739
|
+
* @default 'multiple'
|
|
747
740
|
*/
|
|
748
741
|
rowSelectionMode: PropTypes.oneOf(['single', 'multiple']),
|
|
749
|
-
/**
|
|
750
|
-
* @name 默认选中
|
|
751
|
-
* @type _JSEditor
|
|
752
|
-
* @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
|
|
742
|
+
/**
|
|
743
|
+
* @name 默认选中
|
|
744
|
+
* @type _JSEditor
|
|
745
|
+
* @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
|
|
753
746
|
*/
|
|
754
747
|
defaultRowSelectedCode: PropTypes.string,
|
|
755
|
-
/**
|
|
756
|
-
* @name 行是否可选
|
|
757
|
-
* @type _JSEditor
|
|
758
|
-
* @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
|
|
748
|
+
/**
|
|
749
|
+
* @name 行是否可选
|
|
750
|
+
* @type _JSEditor
|
|
751
|
+
* @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
|
|
759
752
|
*/
|
|
760
753
|
rowSelectableCode: PropTypes.string,
|
|
761
|
-
/**
|
|
762
|
-
* @name 导入导出
|
|
763
|
-
* @type _ImpExp
|
|
764
|
-
* @default { "export": true }
|
|
754
|
+
/**
|
|
755
|
+
* @name 导入导出
|
|
756
|
+
* @type _ImpExp
|
|
757
|
+
* @default { "export": true }
|
|
765
758
|
*/
|
|
766
759
|
impexp: PropTypes.shape({
|
|
767
760
|
import: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
768
761
|
importType: PropTypes.bool,
|
|
769
762
|
export: PropTypes.oneOfType([PropTypes.bool, PropTypes.string])
|
|
770
763
|
}),
|
|
771
|
-
/**
|
|
772
|
-
* @name 批量操作
|
|
773
|
-
* @type _BatchActions
|
|
774
|
-
* @default { "todoList": [] }
|
|
764
|
+
/**
|
|
765
|
+
* @name 批量操作
|
|
766
|
+
* @type _BatchActions
|
|
767
|
+
* @default { "todoList": [] }
|
|
775
768
|
*/
|
|
776
769
|
bantchActions: PropTypes.shape({
|
|
777
770
|
todoList: PropTypes.array
|
|
778
771
|
}),
|
|
779
|
-
/**
|
|
780
|
-
* @name 格式化数据
|
|
781
|
-
* @type _JSEditor
|
|
772
|
+
/**
|
|
773
|
+
* @name 格式化数据
|
|
774
|
+
* @type _JSEditor
|
|
782
775
|
*/
|
|
783
776
|
formatDataSource: PropTypes.string,
|
|
784
|
-
/**
|
|
785
|
-
* @name 构建树层级
|
|
786
|
-
* @type _JSEditor
|
|
777
|
+
/**
|
|
778
|
+
* @name 构建树层级
|
|
779
|
+
* @type _JSEditor
|
|
787
780
|
*/
|
|
788
781
|
getDataPath: PropTypes.string,
|
|
789
|
-
/**
|
|
790
|
-
* @name 重写表格列
|
|
791
|
-
* @type _JSEditor
|
|
782
|
+
/**
|
|
783
|
+
* @name 重写表格列
|
|
784
|
+
* @type _JSEditor
|
|
792
785
|
*/
|
|
793
786
|
columnsRewrite: PropTypes.string,
|
|
794
|
-
/**
|
|
795
|
-
* @name 重置表格列
|
|
796
|
-
* @type _JSEditor
|
|
787
|
+
/**
|
|
788
|
+
* @name 重置表格列
|
|
789
|
+
* @type _JSEditor
|
|
797
790
|
*/
|
|
798
791
|
columnsReset: PropTypes.string,
|
|
799
|
-
/**
|
|
800
|
-
* @name model参数
|
|
801
|
-
* @type _JSEditor
|
|
792
|
+
/**
|
|
793
|
+
* @name model参数
|
|
794
|
+
* @type _JSEditor
|
|
802
795
|
*/
|
|
803
796
|
modelParams: PropTypes.string
|
|
804
797
|
};
|