@luck-design-biz/luckda 1.0.0-alpha → 1.0.1-10
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 +15 -3
- package/es/components/ComplexItem/index.js +65 -49
- package/es/components/LDActions/index.less +68 -68
- package/es/components/LdAutoForm/index.js +6 -4
- package/es/components/LdFormList/index.js +11 -10
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.js +40 -23
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +15 -14
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +8 -3
- package/es/locales/zh-CN.js +41 -4
- package/es/lowcode/constants/api-url.js +87 -87
- package/es/lowcode/constants/event-topics.js +0 -2
- package/es/lowcode/engine/launcher.js +3 -1
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.default.json +1 -1
- package/es/lowcode/engine/meta/button.props.json +2 -2
- package/es/lowcode/engine/meta/cardlist.props.default.json +1 -0
- package/es/lowcode/engine/meta/cardlist.props.json +2 -1
- package/es/lowcode/engine/meta/components-list.json +6 -126
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +76 -20
- package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/es/lowcode/engine/meta/drawer.props.json +144 -24
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- 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.default.json +2 -0
- package/es/lowcode/engine/meta/fielddate.props.json +4 -2
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/es/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/es/lowcode/engine/meta/fielduser.props.json +1 -1
- package/es/lowcode/engine/meta/form.props.default.json +14 -4
- package/es/lowcode/engine/meta/form.props.json +53 -14
- 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/iframe.props.default.json +2 -1
- package/es/lowcode/engine/meta/iframe.props.json +3 -2
- package/es/lowcode/engine/meta/image.props.default.json +2 -1
- package/es/lowcode/engine/meta/image.props.json +3 -2
- package/es/lowcode/engine/meta/imex.props.default.json +2 -1
- package/es/lowcode/engine/meta/imex.props.json +27 -6
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/es/lowcode/engine/meta/jsx.props.json +1 -1
- package/es/lowcode/engine/meta/layout.props.default.json +1 -1
- package/es/lowcode/engine/meta/layout.props.json +5 -5
- package/es/lowcode/engine/meta/link.props.default.json +2 -1
- package/es/lowcode/engine/meta/link.props.json +3 -2
- package/es/lowcode/engine/meta/page.props.json +6 -0
- package/es/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/es/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.json +2 -1
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +1 -1
- package/es/lowcode/engine/meta/table.props.json +3 -3
- package/es/lowcode/engine/meta/text.props.default.json +4 -2
- package/es/lowcode/engine/meta/text.props.json +8 -6
- package/es/lowcode/engine/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +83 -66
- package/es/lowcode/engine/provider/ContextProvider/router.js +43 -0
- package/es/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -15
- package/es/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/es/lowcode/engine/provider/ContextProvider/utils.js +157 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +1 -2
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/helper.js +28 -2
- package/es/lowcode/engine/tools/initDS.js +263 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/es/lowcode/engine/tools/useCombinedRefs.js +3 -2
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +25 -11
- package/es/lowcode/painter/Panel.js +2 -2
- package/es/lowcode/painter/components/AdvancePanel.js +3 -3
- package/es/lowcode/painter/components/Collapse.js +31 -28
- 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 +29 -29
- 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 -30
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/TipIcon.js +16 -0
- package/es/lowcode/painter/components/VarEditor.js +456 -0
- 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 +25 -25
- package/es/lowcode/painter/components/code-editor/JSEditor.js +23 -21
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/VisionEditor.js +81 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +47 -5
- package/es/lowcode/painter/components/field-setting/index.js +27 -13
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/es/lowcode/painter/index.js +1 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +20 -6
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/es/lowcode/painter/panel-section/ComplexPop.js +242 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +30 -4
- package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/es/lowcode/painter/panel-section/Icon.js +32 -27
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +7 -7
- package/es/lowcode/painter/panel-section/IconSelector.js +17 -17
- package/es/lowcode/painter/panel-section/ImpExp.js +1 -27
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +1 -2
- package/es/lowcode/painter/panel-section/LayoutRatio.js +22 -21
- package/es/lowcode/painter/panel-section/PageVars.js +300 -0
- 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 +6 -5
- 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/TabItems.js +6 -42
- package/es/lowcode/painter/panel-section/TextContent.js +79 -0
- package/es/lowcode/painter/services/complexPop.js +21 -0
- 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 +166 -160
- 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/page-vars.less +25 -0
- 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/preview/index.js +1 -0
- package/es/lowcode/view/Canvas.js +24 -22
- package/es/lowcode/view/Loading.js +5 -7
- package/es/lowcode/view/Page.js +37 -15
- package/es/lowcode/view/index.js +1 -0
- package/es/lowcode/view/lc-components/Box/index.js +22 -7
- 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 +40 -40
- 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 +154 -153
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
- package/es/lowcode/view/lc-components/Dialog/index.js +34 -25
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/es/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
- package/es/lowcode/view/lc-components/Drawer/index.js +149 -34
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -131
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
- package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -139
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -129
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Form/index.js +76 -51
- package/es/lowcode/view/lc-components/Form/meta.json +645 -610
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/index.js +201 -0
- package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +33 -32
- package/es/lowcode/view/lc-components/ImEx/index.js +199 -128
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +134 -113
- package/es/lowcode/view/lc-components/Image/meta.json +115 -114
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/es/lowcode/view/lc-components/Layout/index.js +38 -21
- 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/meta.json +113 -112
- package/es/lowcode/view/lc-components/Page/meta.json +61 -55
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/es/lowcode/view/lc-components/Section/index.js +2 -6
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +108 -107
- package/es/lowcode/view/lc-components/Split/index.js +19 -4
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/index.js +175 -148
- package/es/lowcode/view/lc-components/Table/meta.json +450 -450
- package/es/lowcode/view/lc-components/Tabs/index.js +42 -39
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/index.js +9 -2
- package/es/lowcode/view/lc-components/Text/meta.json +56 -56
- package/es/lowcode/view/lc-components/Tree/index.js +102 -107
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/es/lowcode/view/lc-components/Wrapper.js +17 -2
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +98 -84
- package/es/lowcode/view/style/page.less +7 -7
- package/es/services.js +19 -0
- package/es/upload/FilesWall/index.js +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/gridForm.js +17 -7
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +18 -18
- package/es/utils/form.js +25 -25
- package/es/utils/grid.js +5 -4
- package/lib/components/Builder/index.js +13 -1
- package/lib/components/ComplexItem/index.js +62 -47
- package/lib/components/LDActions/index.less +68 -68
- package/lib/components/LdAutoForm/index.js +5 -3
- package/lib/components/LdFormList/index.js +12 -11
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.js +40 -23
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +15 -14
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +8 -3
- package/lib/locales/zh-CN.js +41 -4
- package/lib/lowcode/constants/api-url.js +87 -87
- package/lib/lowcode/constants/event-topics.js +1 -3
- package/lib/lowcode/engine/launcher.js +3 -1
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.default.json +1 -1
- package/lib/lowcode/engine/meta/button.props.json +2 -2
- package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +2 -1
- package/lib/lowcode/engine/meta/components-list.json +6 -126
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +76 -20
- package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/lib/lowcode/engine/meta/drawer.props.json +144 -24
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- 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.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +4 -2
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/lib/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/lib/lowcode/engine/meta/fielduser.props.json +1 -1
- package/lib/lowcode/engine/meta/form.props.default.json +14 -4
- package/lib/lowcode/engine/meta/form.props.json +53 -14
- 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/iframe.props.default.json +2 -1
- package/lib/lowcode/engine/meta/iframe.props.json +3 -2
- package/lib/lowcode/engine/meta/image.props.default.json +2 -1
- package/lib/lowcode/engine/meta/image.props.json +3 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -1
- package/lib/lowcode/engine/meta/imex.props.json +27 -6
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/lib/lowcode/engine/meta/jsx.props.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.json +5 -5
- package/lib/lowcode/engine/meta/link.props.default.json +2 -1
- package/lib/lowcode/engine/meta/link.props.json +3 -2
- package/lib/lowcode/engine/meta/page.props.json +6 -0
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.json +2 -1
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +1 -1
- package/lib/lowcode/engine/meta/table.props.json +3 -3
- package/lib/lowcode/engine/meta/text.props.default.json +4 -2
- package/lib/lowcode/engine/meta/text.props.json +8 -6
- package/lib/lowcode/engine/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +81 -64
- package/lib/lowcode/engine/provider/ContextProvider/router.js +57 -0
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -16
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/lib/lowcode/engine/provider/ContextProvider/utils.js +170 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -3
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/helper.js +29 -2
- package/lib/lowcode/engine/tools/initDS.js +270 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +24 -10
- package/lib/lowcode/painter/Panel.js +2 -2
- package/lib/lowcode/painter/components/AdvancePanel.js +3 -3
- package/lib/lowcode/painter/components/Collapse.js +31 -28
- 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 +29 -29
- 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 -30
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/TipIcon.js +23 -0
- package/lib/lowcode/painter/components/VarEditor.js +463 -0
- 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 +25 -25
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +23 -21
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js +88 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +46 -4
- package/lib/lowcode/painter/components/field-setting/index.js +27 -13
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/lib/lowcode/painter/index.js +1 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +19 -5
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/lib/lowcode/painter/panel-section/ComplexPop.js +250 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +30 -4
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/lib/lowcode/painter/panel-section/Icon.js +31 -26
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +6 -6
- package/lib/lowcode/painter/panel-section/IconSelector.js +17 -17
- package/lib/lowcode/painter/panel-section/ImpExp.js +0 -26
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -1
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +22 -21
- package/lib/lowcode/painter/panel-section/PageVars.js +308 -0
- 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 +6 -5
- 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/TabItems.js +6 -42
- package/lib/lowcode/painter/panel-section/TextContent.js +87 -0
- package/lib/lowcode/painter/services/complexPop.js +28 -0
- 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 +166 -160
- 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/page-vars.less +25 -0
- 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/preview/index.js +1 -0
- package/lib/lowcode/view/Canvas.js +24 -22
- package/lib/lowcode/view/Loading.js +5 -7
- package/lib/lowcode/view/Page.js +35 -13
- package/lib/lowcode/view/index.js +1 -0
- package/lib/lowcode/view/lc-components/Box/index.js +21 -6
- 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 +38 -38
- 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 +154 -153
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
- package/lib/lowcode/view/lc-components/Dialog/index.js +34 -25
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
- package/lib/lowcode/view/lc-components/Drawer/index.js +148 -33
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -131
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -139
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -129
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js +75 -50
- package/lib/lowcode/view/lc-components/Form/meta.json +645 -610
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.js +209 -0
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +33 -32
- package/lib/lowcode/view/lc-components/ImEx/index.js +197 -126
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -113
- package/lib/lowcode/view/lc-components/Image/meta.json +115 -114
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/lib/lowcode/view/lc-components/Layout/index.js +37 -20
- 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/meta.json +113 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +61 -55
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/lib/lowcode/view/lc-components/Section/index.js +2 -6
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Split/index.js +18 -3
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/index.js +176 -149
- package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
- package/lib/lowcode/view/lc-components/Tabs/index.js +40 -37
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/index.js +8 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
- package/lib/lowcode/view/lc-components/Tree/index.js +102 -107
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/lib/lowcode/view/lc-components/Wrapper.js +16 -1
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +98 -84
- package/lib/lowcode/view/style/page.less +7 -7
- package/lib/services.js +20 -0
- package/lib/upload/FilesWall/index.js +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/gridForm.js +17 -7
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +18 -18
- package/lib/utils/form.js +24 -24
- package/lib/utils/grid.js +4 -3
- package/lowcode.js +1 -1
- package/package.json +175 -175
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
4
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
4
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
6
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
7
|
+
var _excluded = ["render"];
|
|
6
8
|
import React, { useRef, useImperativeHandle, forwardRef, useCallback } from 'react';
|
|
7
9
|
import PropTypes from 'prop-types';
|
|
8
10
|
import { useMemoizedFn, useCreation, useRequest, useUnmount } from 'ahooks';
|
|
@@ -14,6 +16,7 @@ import Wrapper from "../Wrapper";
|
|
|
14
16
|
import { LdGrid, LDActions } from "../../../../index";
|
|
15
17
|
import TopFilter from "./components/TopFilter";
|
|
16
18
|
import { TopUpload, TopExport } from "./components/TopImex";
|
|
19
|
+
import RuntimeComp from "../JSX/RuntimeComp";
|
|
17
20
|
import { omitBadProps, executeCode, getLDMetaAttr } from "../../../engine/tools/helper";
|
|
18
21
|
import useCombinedRefs from "../../../engine/tools/useCombinedRefs";
|
|
19
22
|
import defaultMeta from "../../../engine/meta/table.props.default.json";
|
|
@@ -65,12 +68,24 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
65
68
|
var instanceRef = useCombinedRefs(ref);
|
|
66
69
|
useImperativeHandle(apiRef, function () {
|
|
67
70
|
return {
|
|
68
|
-
/**
|
|
69
|
-
* 获取表格实例
|
|
70
|
-
* @method
|
|
71
|
+
/**
|
|
72
|
+
* 获取表格实例
|
|
73
|
+
* @method
|
|
71
74
|
*/
|
|
72
75
|
getInstance: function getInstance() {
|
|
73
76
|
return instanceRef.current;
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* 刷新表格
|
|
80
|
+
* @method
|
|
81
|
+
*/
|
|
82
|
+
refresh: function refresh() {
|
|
83
|
+
var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
84
|
+
return instanceRef.current.onLdQuery(init ? {
|
|
85
|
+
removeAll: {
|
|
86
|
+
operate: 'removeAll'
|
|
87
|
+
}
|
|
88
|
+
} : null);
|
|
74
89
|
}
|
|
75
90
|
};
|
|
76
91
|
});
|
|
@@ -323,12 +338,13 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
323
338
|
resource: action.serial
|
|
324
339
|
};
|
|
325
340
|
}),
|
|
326
|
-
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows) {
|
|
341
|
+
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows, cb) {
|
|
327
342
|
var todoListById = keyBy(bantchActions.todoList, 'id');
|
|
328
343
|
var doAction = function doAction() {
|
|
329
344
|
ctx.doAction(todoListById[key].actionPool, {
|
|
330
345
|
key: key,
|
|
331
346
|
selectedRows: selectedRows,
|
|
347
|
+
cb: cb,
|
|
332
348
|
datasetCode: dataset.code
|
|
333
349
|
});
|
|
334
350
|
};
|
|
@@ -368,8 +384,19 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
368
384
|
if (!isNil(columnsRewrite) || !isNil(fields)) {
|
|
369
385
|
temp.columnsRewrite = function (cols) {
|
|
370
386
|
var colsMap = keyBy(cols, 'field');
|
|
371
|
-
var _cols = isNil(fields) ? cols : fields.map(function (
|
|
372
|
-
|
|
387
|
+
var _cols = isNil(fields) ? cols : fields.map(function (_ref4) {
|
|
388
|
+
var render = _ref4.render,
|
|
389
|
+
_field = _objectWithoutProperties(_ref4, _excluded);
|
|
390
|
+
return _objectSpread(_objectSpread({}, colsMap[_field.field]), {}, {
|
|
391
|
+
render: render ? function (v, d, i, p) {
|
|
392
|
+
return /*#__PURE__*/React.createElement(RuntimeComp, {
|
|
393
|
+
value: v,
|
|
394
|
+
data: d,
|
|
395
|
+
rowIndex: i,
|
|
396
|
+
params: p
|
|
397
|
+
}, render.replace(/(function\s*\w*\s*)\([^)]*\)(\s*{)/, '$1()$2'));
|
|
398
|
+
} : null
|
|
399
|
+
}, _field);
|
|
373
400
|
});
|
|
374
401
|
return isNil(columnsRewrite) ? _cols : executeCode(ctx, columnsRewrite, ['columns'], _cols);
|
|
375
402
|
};
|
|
@@ -512,7 +539,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
512
539
|
});
|
|
513
540
|
});
|
|
514
541
|
var _afterQuery = useMemoizedFn(function (res) {
|
|
515
|
-
if (res.code === 1 && !res.list.includes(instanceRef.current.expectRowKey)) {
|
|
542
|
+
if (res.code === 1 && instanceRef.current && !res.list.includes(instanceRef.current.expectRowKey)) {
|
|
516
543
|
instanceRef.current.expectRowKey = res.list[0];
|
|
517
544
|
ctx.doAction(advance.events.onExpectRowChanged, {
|
|
518
545
|
data: res.detail[res.list[0]]
|
|
@@ -566,135 +593,135 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
566
593
|
})));
|
|
567
594
|
});
|
|
568
595
|
LCTable.propTypes = {
|
|
569
|
-
/**
|
|
570
|
-
* @name 唯一标识
|
|
571
|
-
* @type string
|
|
572
|
-
* @disabled true
|
|
596
|
+
/**
|
|
597
|
+
* @name 唯一标识
|
|
598
|
+
* @type string
|
|
599
|
+
* @disabled true
|
|
573
600
|
*/
|
|
574
601
|
id: PropTypes.string.isRequired,
|
|
575
|
-
/**
|
|
576
|
-
* @name 数据集
|
|
577
|
-
* @type _DataSetSelector
|
|
602
|
+
/**
|
|
603
|
+
* @name 数据集
|
|
604
|
+
* @type _DataSetSelector
|
|
578
605
|
*/
|
|
579
606
|
dataset: PropTypes.shape({
|
|
580
607
|
code: PropTypes.string.isRequired,
|
|
581
608
|
uid: PropTypes.string.isRequired
|
|
582
609
|
}),
|
|
583
|
-
/**
|
|
584
|
-
* @name 自动加载
|
|
585
|
-
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
586
|
-
* @type switch
|
|
587
|
-
* @default true
|
|
610
|
+
/**
|
|
611
|
+
* @name 自动加载
|
|
612
|
+
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
613
|
+
* @type switch
|
|
614
|
+
* @default true
|
|
588
615
|
*/
|
|
589
616
|
autoLoad: PropTypes.bool,
|
|
590
|
-
/**
|
|
591
|
-
* @name 只读
|
|
592
|
-
* @type switch
|
|
593
|
-
* @default false
|
|
617
|
+
/**
|
|
618
|
+
* @name 只读
|
|
619
|
+
* @type switch
|
|
620
|
+
* @default false
|
|
594
621
|
*/
|
|
595
622
|
readOnly: PropTypes.bool,
|
|
596
|
-
/**
|
|
597
|
-
* @name 关闭预设
|
|
598
|
-
* @type switch
|
|
599
|
-
* @default false
|
|
623
|
+
/**
|
|
624
|
+
* @name 关闭预设
|
|
625
|
+
* @type switch
|
|
626
|
+
* @default false
|
|
600
627
|
*/
|
|
601
628
|
suppressPreset: PropTypes.bool,
|
|
602
|
-
/**
|
|
603
|
-
* @name 宽度
|
|
604
|
-
* @type _WidthHeight
|
|
605
|
-
* @default 100%
|
|
606
|
-
* @group styleSetting
|
|
629
|
+
/**
|
|
630
|
+
* @name 宽度
|
|
631
|
+
* @type _WidthHeight
|
|
632
|
+
* @default 100%
|
|
633
|
+
* @group styleSetting
|
|
607
634
|
*/
|
|
608
635
|
width: PropTypes.string,
|
|
609
|
-
/**
|
|
610
|
-
* @name 高度
|
|
611
|
-
* @type _WidthHeight
|
|
612
|
-
* @default 100%
|
|
613
|
-
* @group styleSetting
|
|
636
|
+
/**
|
|
637
|
+
* @name 高度
|
|
638
|
+
* @type _WidthHeight
|
|
639
|
+
* @default 100%
|
|
640
|
+
* @group styleSetting
|
|
614
641
|
*/
|
|
615
642
|
height: PropTypes.string,
|
|
616
|
-
/**
|
|
617
|
-
* @name 边框线
|
|
618
|
-
* @type switch
|
|
619
|
-
* @default false
|
|
620
|
-
* @group styleSetting
|
|
643
|
+
/**
|
|
644
|
+
* @name 边框线
|
|
645
|
+
* @type switch
|
|
646
|
+
* @default false
|
|
647
|
+
* @group styleSetting
|
|
621
648
|
*/
|
|
622
649
|
border: PropTypes.bool,
|
|
623
|
-
/**
|
|
624
|
-
* @name 斑马纹
|
|
625
|
-
* @type switch
|
|
626
|
-
* @default false
|
|
627
|
-
* @group styleSetting
|
|
650
|
+
/**
|
|
651
|
+
* @name 斑马纹
|
|
652
|
+
* @type switch
|
|
653
|
+
* @default false
|
|
654
|
+
* @group styleSetting
|
|
628
655
|
*/
|
|
629
656
|
zebra: PropTypes.oneOfType[(PropTypes.bool, PropTypes.string)],
|
|
630
|
-
/**
|
|
631
|
-
* @name 开启分页
|
|
632
|
-
* @type switch
|
|
633
|
-
* @default true
|
|
634
|
-
* @group paginationSetting
|
|
657
|
+
/**
|
|
658
|
+
* @name 开启分页
|
|
659
|
+
* @type switch
|
|
660
|
+
* @default true
|
|
661
|
+
* @group paginationSetting
|
|
635
662
|
*/
|
|
636
663
|
pagination: PropTypes.bool,
|
|
637
|
-
/**
|
|
638
|
-
* @name 每页条数
|
|
639
|
-
* @type number
|
|
640
|
-
* @default 30
|
|
641
|
-
* @group paginationSetting
|
|
664
|
+
/**
|
|
665
|
+
* @name 每页条数
|
|
666
|
+
* @type number
|
|
667
|
+
* @default 30
|
|
668
|
+
* @group paginationSetting
|
|
642
669
|
*/
|
|
643
670
|
pageSize: PropTypes.number,
|
|
644
|
-
/**
|
|
645
|
-
* @name 分页器
|
|
646
|
-
* @type switch
|
|
647
|
-
* @default true
|
|
648
|
-
* @group paginationSetting
|
|
671
|
+
/**
|
|
672
|
+
* @name 分页器
|
|
673
|
+
* @type switch
|
|
674
|
+
* @default true
|
|
675
|
+
* @group paginationSetting
|
|
649
676
|
*/
|
|
650
677
|
showSizeChanger: PropTypes.bool,
|
|
651
|
-
/**
|
|
652
|
-
* @name 快速跳转
|
|
653
|
-
* @type switch
|
|
654
|
-
* @default true
|
|
655
|
-
* @group paginationSetting
|
|
678
|
+
/**
|
|
679
|
+
* @name 快速跳转
|
|
680
|
+
* @type switch
|
|
681
|
+
* @default true
|
|
682
|
+
* @group paginationSetting
|
|
656
683
|
*/
|
|
657
684
|
showQuickJumper: PropTypes.bool,
|
|
658
|
-
/**
|
|
659
|
-
* @name 单页无分页器
|
|
660
|
-
* @type switch
|
|
661
|
-
* @default false
|
|
662
|
-
* @group paginationSetting
|
|
685
|
+
/**
|
|
686
|
+
* @name 单页无分页器
|
|
687
|
+
* @type switch
|
|
688
|
+
* @default false
|
|
689
|
+
* @group paginationSetting
|
|
663
690
|
*/
|
|
664
691
|
hideOnSinglePage: PropTypes.bool,
|
|
665
|
-
/**
|
|
666
|
-
* @name 简单模式
|
|
667
|
-
* @type switch
|
|
668
|
-
* @default false
|
|
669
|
-
* @group paginationSetting
|
|
692
|
+
/**
|
|
693
|
+
* @name 简单模式
|
|
694
|
+
* @type switch
|
|
695
|
+
* @default false
|
|
696
|
+
* @group paginationSetting
|
|
670
697
|
*/
|
|
671
698
|
paginationSimple: PropTypes.bool,
|
|
672
|
-
/**
|
|
673
|
-
* @name 隐藏操作列
|
|
674
|
-
* @type switch
|
|
675
|
-
* @default false
|
|
676
|
-
* @groupNext actionsColumn
|
|
699
|
+
/**
|
|
700
|
+
* @name 隐藏操作列
|
|
701
|
+
* @type switch
|
|
702
|
+
* @default false
|
|
703
|
+
* @groupNext actionsColumn
|
|
677
704
|
*/
|
|
678
705
|
suppressActions: PropTypes.bool,
|
|
679
|
-
/**
|
|
680
|
-
* @name 隐藏操作列
|
|
681
|
-
* @type number
|
|
682
|
-
* @default 160
|
|
683
|
-
* @groupNext actionsColumn
|
|
706
|
+
/**
|
|
707
|
+
* @name 隐藏操作列
|
|
708
|
+
* @type number
|
|
709
|
+
* @default 160
|
|
710
|
+
* @groupNext actionsColumn
|
|
684
711
|
*/
|
|
685
712
|
actionsColumnWidth: PropTypes.number,
|
|
686
|
-
/**
|
|
687
|
-
* @name 最大显示数
|
|
688
|
-
* @type number
|
|
689
|
-
* @default 2
|
|
690
|
-
* @groupNext actionsColumn
|
|
713
|
+
/**
|
|
714
|
+
* @name 最大显示数
|
|
715
|
+
* @type number
|
|
716
|
+
* @default 2
|
|
717
|
+
* @groupNext actionsColumn
|
|
691
718
|
*/
|
|
692
719
|
maxActionsCount: PropTypes.number,
|
|
693
|
-
/**
|
|
694
|
-
* @name 操作项
|
|
695
|
-
* @type _TableActions
|
|
696
|
-
* @groupNext actionsColumn
|
|
697
|
-
* @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
|
|
720
|
+
/**
|
|
721
|
+
* @name 操作项
|
|
722
|
+
* @type _TableActions
|
|
723
|
+
* @groupNext actionsColumn
|
|
724
|
+
* @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
|
|
698
725
|
*/
|
|
699
726
|
actions: PropTypes.shape({
|
|
700
727
|
display: PropTypes.oneOf(['text', 'button']),
|
|
@@ -702,10 +729,10 @@ LCTable.propTypes = {
|
|
|
702
729
|
moreText: PropTypes.string,
|
|
703
730
|
todoList: PropTypes.array
|
|
704
731
|
}),
|
|
705
|
-
/**
|
|
706
|
-
* @name 顶部操作
|
|
707
|
-
* @type _ActionGroup
|
|
708
|
-
* @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
|
|
732
|
+
/**
|
|
733
|
+
* @name 顶部操作
|
|
734
|
+
* @type _ActionGroup
|
|
735
|
+
* @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
|
|
709
736
|
*/
|
|
710
737
|
topActionGroup: PropTypes.shape({
|
|
711
738
|
display: PropTypes.oneOf(['text', 'button']),
|
|
@@ -713,86 +740,86 @@ LCTable.propTypes = {
|
|
|
713
740
|
moreText: PropTypes.string,
|
|
714
741
|
todoList: PropTypes.array
|
|
715
742
|
}),
|
|
716
|
-
/**
|
|
717
|
-
* @name 顶部过滤器
|
|
718
|
-
* @type _TableTopFilter
|
|
743
|
+
/**
|
|
744
|
+
* @name 顶部过滤器
|
|
745
|
+
* @type _TableTopFilter
|
|
719
746
|
*/
|
|
720
747
|
topFilter: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.shape({
|
|
721
748
|
options: PropTypes.array.isRequired,
|
|
722
749
|
field: PropTypes.string.isRequired
|
|
723
750
|
})]),
|
|
724
|
-
/**
|
|
725
|
-
* @name 开启行选择器
|
|
726
|
-
* @type boolean
|
|
727
|
-
* @default false
|
|
751
|
+
/**
|
|
752
|
+
* @name 开启行选择器
|
|
753
|
+
* @type boolean
|
|
754
|
+
* @default false
|
|
728
755
|
*/
|
|
729
756
|
rowSelection: PropTypes.bool,
|
|
730
|
-
/**
|
|
731
|
-
* @name 停用分页多选
|
|
732
|
-
* @type boolean
|
|
733
|
-
* @default false
|
|
757
|
+
/**
|
|
758
|
+
* @name 停用分页多选
|
|
759
|
+
* @type boolean
|
|
760
|
+
* @default false
|
|
734
761
|
*/
|
|
735
762
|
suppressRowSelectionPagination: PropTypes.bool,
|
|
736
|
-
/**
|
|
737
|
-
* @name 选择器模式
|
|
738
|
-
* @type segmented
|
|
739
|
-
* @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
|
|
740
|
-
* @default 'multiple'
|
|
763
|
+
/**
|
|
764
|
+
* @name 选择器模式
|
|
765
|
+
* @type segmented
|
|
766
|
+
* @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
|
|
767
|
+
* @default 'multiple'
|
|
741
768
|
*/
|
|
742
769
|
rowSelectionMode: PropTypes.oneOf(['single', 'multiple']),
|
|
743
|
-
/**
|
|
744
|
-
* @name 默认选中
|
|
745
|
-
* @type _JSEditor
|
|
746
|
-
* @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
|
|
770
|
+
/**
|
|
771
|
+
* @name 默认选中
|
|
772
|
+
* @type _JSEditor
|
|
773
|
+
* @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
|
|
747
774
|
*/
|
|
748
775
|
defaultRowSelectedCode: PropTypes.string,
|
|
749
|
-
/**
|
|
750
|
-
* @name 行是否可选
|
|
751
|
-
* @type _JSEditor
|
|
752
|
-
* @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
|
|
776
|
+
/**
|
|
777
|
+
* @name 行是否可选
|
|
778
|
+
* @type _JSEditor
|
|
779
|
+
* @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
|
|
753
780
|
*/
|
|
754
781
|
rowSelectableCode: PropTypes.string,
|
|
755
|
-
/**
|
|
756
|
-
* @name 导入导出
|
|
757
|
-
* @type _ImpExp
|
|
758
|
-
* @default { "export": true }
|
|
782
|
+
/**
|
|
783
|
+
* @name 导入导出
|
|
784
|
+
* @type _ImpExp
|
|
785
|
+
* @default { "export": true }
|
|
759
786
|
*/
|
|
760
787
|
impexp: PropTypes.shape({
|
|
761
788
|
import: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
762
789
|
importType: PropTypes.bool,
|
|
763
790
|
export: PropTypes.oneOfType([PropTypes.bool, PropTypes.string])
|
|
764
791
|
}),
|
|
765
|
-
/**
|
|
766
|
-
* @name 批量操作
|
|
767
|
-
* @type _BatchActions
|
|
768
|
-
* @default { "todoList": [] }
|
|
792
|
+
/**
|
|
793
|
+
* @name 批量操作
|
|
794
|
+
* @type _BatchActions
|
|
795
|
+
* @default { "todoList": [] }
|
|
769
796
|
*/
|
|
770
797
|
bantchActions: PropTypes.shape({
|
|
771
798
|
todoList: PropTypes.array
|
|
772
799
|
}),
|
|
773
|
-
/**
|
|
774
|
-
* @name 格式化数据
|
|
775
|
-
* @type _JSEditor
|
|
800
|
+
/**
|
|
801
|
+
* @name 格式化数据
|
|
802
|
+
* @type _JSEditor
|
|
776
803
|
*/
|
|
777
804
|
formatDataSource: PropTypes.string,
|
|
778
|
-
/**
|
|
779
|
-
* @name 构建树层级
|
|
780
|
-
* @type _JSEditor
|
|
805
|
+
/**
|
|
806
|
+
* @name 构建树层级
|
|
807
|
+
* @type _JSEditor
|
|
781
808
|
*/
|
|
782
809
|
getDataPath: PropTypes.string,
|
|
783
|
-
/**
|
|
784
|
-
* @name 重写表格列
|
|
785
|
-
* @type _JSEditor
|
|
810
|
+
/**
|
|
811
|
+
* @name 重写表格列
|
|
812
|
+
* @type _JSEditor
|
|
786
813
|
*/
|
|
787
814
|
columnsRewrite: PropTypes.string,
|
|
788
|
-
/**
|
|
789
|
-
* @name 重置表格列
|
|
790
|
-
* @type _JSEditor
|
|
815
|
+
/**
|
|
816
|
+
* @name 重置表格列
|
|
817
|
+
* @type _JSEditor
|
|
791
818
|
*/
|
|
792
819
|
columnsReset: PropTypes.string,
|
|
793
|
-
/**
|
|
794
|
-
* @name model参数
|
|
795
|
-
* @type _JSEditor
|
|
820
|
+
/**
|
|
821
|
+
* @name model参数
|
|
822
|
+
* @type _JSEditor
|
|
796
823
|
*/
|
|
797
824
|
modelParams: PropTypes.string
|
|
798
825
|
};
|