@luck-design-biz/luckda 0.0.25-2 → 0.0.25-21
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/ComplexItem/index.js +92 -0
- package/es/components/ComplexItem/service.js +21 -0
- package/es/components/LDActions/index.js +8 -10
- package/es/components/LDActions/index.less +68 -65
- package/es/components/LdAutoForm/index.js +57 -12
- package/es/components/LdFormList/index.js +50 -28
- package/es/components/LdGrid/index.js +23 -11
- package/es/components/LdGridForm/index.js +37 -12
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.js +59 -19
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/FromItems.js +177 -94
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +69 -28
- package/es/helper/index.less +7 -7
- package/es/helper/props_config.js +17 -0
- package/es/index.js +0 -1
- package/es/locales/zh-CN.js +22 -17
- package/es/lowcode/constants/api-url.js +269 -98
- package/es/lowcode/constants/event-topics.js +3 -0
- package/es/lowcode/constants/index.js +2 -1
- package/es/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +53 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +5 -2
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +2 -2
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +5 -2
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/launcher.js +7 -0
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +4 -4
- package/es/lowcode/engine/meta/button.props.json +3 -3
- package/es/lowcode/engine/meta/cardlist.props.json +13 -3
- package/es/lowcode/engine/meta/components-list.json +116 -8
- package/es/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/es/lowcode/engine/meta/dialog.props.json +79 -42
- package/es/lowcode/engine/meta/drawer.props.json +8 -20
- package/es/lowcode/engine/meta/fieldcolor.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldcolor.props.json +146 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +122 -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 +14 -0
- package/es/lowcode/engine/meta/fielddate.props.json +130 -0
- package/es/lowcode/engine/meta/fielddict.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddict.props.json +127 -0
- package/es/lowcode/engine/meta/fieldeditor.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldeditor.props.json +127 -0
- package/es/lowcode/engine/meta/fieldgroup.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldgroup.props.json +156 -0
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +131 -0
- package/es/lowcode/engine/meta/fieldradio.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldradio.props.json +104 -0
- package/es/lowcode/engine/meta/fieldregion.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldregion.props.json +110 -0
- package/es/lowcode/engine/meta/fieldselect.props.default.json +16 -0
- package/es/lowcode/engine/meta/fieldselect.props.json +141 -0
- package/es/lowcode/engine/meta/fieldstring.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldstring.props.json +141 -0
- package/es/lowcode/engine/meta/fieldswitch.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldswitch.props.json +114 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.default.json +15 -0
- package/es/lowcode/engine/meta/fieldtextarea.props.json +132 -0
- package/es/lowcode/engine/meta/fieldupload.props.default.json +17 -0
- package/es/lowcode/engine/meta/fieldupload.props.json +154 -0
- package/es/lowcode/engine/meta/fielduser.props.default.json +18 -0
- package/es/lowcode/engine/meta/fielduser.props.json +165 -0
- package/es/lowcode/engine/meta/fieldyear.props.default.json +14 -0
- package/es/lowcode/engine/meta/fieldyear.props.json +120 -0
- package/es/lowcode/engine/meta/form.props.default.json +2 -2
- package/es/lowcode/engine/meta/form.props.json +36 -16
- package/es/lowcode/engine/meta/imex.props.default.json +8 -1
- package/es/lowcode/engine/meta/imex.props.json +54 -22
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +106 -14
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +12 -6
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +4 -4
- package/es/lowcode/engine/meta/table.props.default.json +2 -1
- package/es/lowcode/engine/meta/table.props.json +27 -14
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +7 -5
- package/es/lowcode/engine/meta/tree.props.json +112 -55
- package/es/lowcode/engine/provider/ContextProvider/index.js +104 -86
- package/es/lowcode/engine/provider/ContextProvider/usePageState.js +21 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +96 -49
- package/es/lowcode/engine/tools/dataProcess.js +80 -76
- package/es/lowcode/engine/tools/diff.js +60 -0
- package/es/lowcode/engine/tools/helper.js +92 -7
- package/es/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/es/lowcode/engine/tools/useCombinedRefs.js +14 -0
- package/es/lowcode/engine/tools/usePageDataStore.js +350 -0
- package/es/lowcode/engine/tools/usePromiseState.js +12 -23
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/index.js +1 -4
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +8 -5
- package/es/lowcode/painter/DesignOperator.js +111 -85
- package/es/lowcode/painter/DesignToolbar.js +85 -47
- package/es/lowcode/painter/Outline.js +12 -10
- package/es/lowcode/painter/Panel.js +85 -45
- package/es/lowcode/painter/components/ActionBindModal.js +45 -28
- package/es/lowcode/painter/components/AdvancePanel.js +37 -21
- package/es/lowcode/painter/components/AttrsPanel.js +40 -29
- package/es/lowcode/painter/components/Collapse.js +26 -26
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/FieldSelector.js +26 -13
- 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/PreviewIframe.js +19 -0
- 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 +35 -34
- 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 +48 -42
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
- package/es/lowcode/painter/components/field-setting/SettingUI.js +158 -77
- package/es/lowcode/painter/components/field-setting/index.js +32 -65
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +11 -17
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/ComponentSelector.js +36 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +33 -7
- package/es/lowcode/painter/panel-section/FieldsSetting.js +72 -54
- 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/ImpExp.js +131 -37
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +124 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +112 -0
- package/es/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/es/lowcode/painter/panel-section/SplitDisplay.js +28 -112
- 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 +4 -4
- 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 +3 -3
- 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 +22 -16
- package/es/lowcode/painter/panel-section/TableTopFilter.js +23 -13
- package/es/lowcode/painter/panel-section/TreeRootEditor.js +12 -4
- 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 +159 -152
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +10 -10
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +95 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/page-layout-display.less +28 -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 -27
- 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 +34 -8
- package/es/lowcode/view/Page.js +2 -4
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +8 -2
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Box/FunctionPreview.js +1 -0
- 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 +35 -39
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/CardList/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +153 -143
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +3 -10
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +143 -19
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/es/lowcode/view/lc-components/Dialog/meta.json +150 -120
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionPreview.js +1 -0
- 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 -143
- package/es/lowcode/view/lc-components/FieldColor/meta.json +146 -0
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +122 -0
- package/es/lowcode/view/lc-components/FieldDate/meta.json +128 -0
- package/es/lowcode/view/lc-components/FieldDict/meta.json +127 -0
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +127 -0
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +156 -0
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +131 -0
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +104 -0
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +110 -0
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +141 -0
- package/es/lowcode/view/lc-components/FieldString/meta.json +141 -0
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +114 -0
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +132 -0
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +154 -0
- package/es/lowcode/view/lc-components/FieldUser/meta.json +165 -0
- package/es/lowcode/view/lc-components/FieldYear/meta.json +118 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +23 -33
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/es/lowcode/view/lc-components/Form/index.js +345 -80
- package/es/lowcode/view/lc-components/Form/index.less +4 -4
- package/es/lowcode/view/lc-components/Form/meta.json +610 -599
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +470 -11
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +114 -82
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Image/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Image/meta.json +114 -114
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/JSX/FunctionPreview.js +1 -0
- 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/FunctionDesign.js +12 -19
- package/es/lowcode/view/lc-components/Layout/FunctionPreview.js +1 -0
- 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/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Link/FunctionPreview.js +1 -0
- 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 +55 -49
- package/es/lowcode/view/lc-components/PageContent/index.js +11 -10
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +5 -5
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/index.js +8 -6
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +68 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +37 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/es/lowcode/view/lc-components/PageModal/index.js +12 -15
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +3 -9
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Section/FunctionPreview.js +1 -0
- 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/FunctionDesign.js +19 -20
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Split/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Split/index.js +8 -9
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Table/FunctionPreview.js +1 -0
- package/es/lowcode/view/lc-components/Table/components/TopFilter.js +78 -57
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +425 -0
- package/es/lowcode/view/lc-components/Table/index.js +426 -202
- package/es/lowcode/view/lc-components/Table/meta.json +451 -399
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -18
- package/es/lowcode/view/lc-components/Tabs/index.js +52 -37
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Text/FunctionPreview.js +1 -0
- 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/FunctionDesign.js +2 -3
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +1 -0
- package/es/lowcode/view/lc-components/Tree/index.js +173 -119
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +357 -301
- package/es/lowcode/view/lc-components/Wrapper.js +11 -12
- 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/services.js +0 -24
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +422 -0
- package/es/upload/FilesWall/index.less +74 -0
- package/es/upload/Form/gridForm.js +3 -2
- package/es/upload/Form/index.js +2 -1
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +20 -21
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/es/utils/form.js +37 -24
- package/es/utils/grid.js +10 -7
- package/lib/components/ComplexItem/index.js +100 -0
- package/lib/components/ComplexItem/service.js +28 -0
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +68 -65
- package/lib/components/LdAutoForm/index.js +56 -11
- package/lib/components/LdFormList/index.js +49 -27
- package/lib/components/LdGrid/index.js +23 -11
- package/lib/components/LdGridForm/index.js +35 -10
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.js +57 -17
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/FromItems.js +175 -92
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +67 -27
- package/lib/helper/index.less +7 -7
- package/lib/helper/props_config.js +23 -0
- package/lib/index.js +1 -9
- package/lib/locales/zh-CN.js +22 -17
- package/lib/lowcode/constants/api-url.js +270 -97
- package/lib/lowcode/constants/event-topics.js +4 -1
- package/lib/lowcode/constants/index.js +3 -2
- package/lib/lowcode/engine/factory/panel-item-factory/RadioStrategy.js +59 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +7 -4
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +4 -3
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +6 -3
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/launcher.js +13 -0
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +4 -4
- package/lib/lowcode/engine/meta/button.props.json +3 -3
- package/lib/lowcode/engine/meta/cardlist.props.json +13 -3
- package/lib/lowcode/engine/meta/components-list.json +116 -8
- package/lib/lowcode/engine/meta/dialog.props.default.json +11 -5
- package/lib/lowcode/engine/meta/dialog.props.json +79 -42
- package/lib/lowcode/engine/meta/drawer.props.json +8 -20
- package/lib/lowcode/engine/meta/fieldcolor.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldcolor.props.json +146 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +122 -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 +14 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +130 -0
- package/lib/lowcode/engine/meta/fielddict.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddict.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldeditor.props.json +127 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldgroup.props.json +156 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +131 -0
- package/lib/lowcode/engine/meta/fieldradio.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldradio.props.json +104 -0
- package/lib/lowcode/engine/meta/fieldregion.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldregion.props.json +110 -0
- package/lib/lowcode/engine/meta/fieldselect.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fieldselect.props.json +141 -0
- package/lib/lowcode/engine/meta/fieldstring.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldstring.props.json +141 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldswitch.props.json +114 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.default.json +15 -0
- package/lib/lowcode/engine/meta/fieldtextarea.props.json +132 -0
- package/lib/lowcode/engine/meta/fieldupload.props.default.json +17 -0
- package/lib/lowcode/engine/meta/fieldupload.props.json +154 -0
- package/lib/lowcode/engine/meta/fielduser.props.default.json +18 -0
- package/lib/lowcode/engine/meta/fielduser.props.json +165 -0
- package/lib/lowcode/engine/meta/fieldyear.props.default.json +14 -0
- package/lib/lowcode/engine/meta/fieldyear.props.json +120 -0
- package/lib/lowcode/engine/meta/form.props.default.json +2 -2
- package/lib/lowcode/engine/meta/form.props.json +36 -16
- package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
- package/lib/lowcode/engine/meta/imex.props.json +54 -22
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +106 -14
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +12 -6
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +4 -4
- package/lib/lowcode/engine/meta/table.props.default.json +2 -1
- package/lib/lowcode/engine/meta/table.props.json +27 -14
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +7 -5
- package/lib/lowcode/engine/meta/tree.props.json +112 -55
- package/lib/lowcode/engine/provider/ContextProvider/index.js +120 -86
- package/lib/lowcode/engine/provider/ContextProvider/usePageState.js +28 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +93 -46
- package/lib/lowcode/engine/tools/dataProcess.js +80 -76
- package/lib/lowcode/engine/tools/diff.js +67 -0
- package/lib/lowcode/engine/tools/helper.js +96 -6
- package/lib/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/lib/lowcode/engine/tools/useCombinedRefs.js +20 -0
- package/lib/lowcode/engine/tools/usePageDataStore.js +357 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +11 -21
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/index.js +1 -5
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +7 -4
- package/lib/lowcode/painter/DesignOperator.js +108 -82
- package/lib/lowcode/painter/DesignToolbar.js +83 -45
- package/lib/lowcode/painter/Outline.js +10 -8
- package/lib/lowcode/painter/Panel.js +83 -43
- package/lib/lowcode/painter/components/ActionBindModal.js +42 -25
- package/lib/lowcode/painter/components/AdvancePanel.js +36 -20
- package/lib/lowcode/painter/components/AttrsPanel.js +39 -28
- package/lib/lowcode/painter/components/Collapse.js +26 -26
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/FieldSelector.js +26 -13
- 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/PreviewIframe.js +26 -0
- 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 +35 -34
- 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 +48 -42
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +155 -74
- package/lib/lowcode/painter/components/field-setting/index.js +32 -65
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +3 -1
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +10 -16
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/ComponentSelector.js +43 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +33 -7
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +69 -51
- 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/ImpExp.js +131 -36
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +130 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +120 -0
- package/lib/lowcode/painter/panel-section/SerialsSelector.js +4 -2
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +27 -111
- 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 +4 -4
- 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 +7 -6
- 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 +22 -16
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +22 -12
- package/lib/lowcode/painter/panel-section/TreeRootEditor.js +12 -4
- 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 +159 -152
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +10 -10
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +95 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/page-layout-display.less +28 -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 -27
- 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 +34 -7
- package/lib/lowcode/view/Page.js +2 -4
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +8 -2
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Box/FunctionPreview.js +2 -1
- 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 +35 -39
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/CardList/meta.json +153 -143
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +2 -9
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Dialog/index.js +143 -19
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -3
- package/lib/lowcode/view/lc-components/Dialog/meta.json +150 -120
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Drawer/FunctionPreview.js +2 -1
- 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 -143
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +146 -0
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +122 -0
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +128 -0
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +127 -0
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +127 -0
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +156 -0
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +131 -0
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +104 -0
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +110 -0
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +141 -0
- package/lib/lowcode/view/lc-components/FieldString/meta.json +141 -0
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +114 -0
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +132 -0
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +154 -0
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +165 -0
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +118 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +20 -31
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +9 -1
- package/lib/lowcode/view/lc-components/Form/index.js +341 -76
- package/lib/lowcode/view/lc-components/Form/index.less +4 -4
- package/lib/lowcode/view/lc-components/Form/meta.json +610 -599
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -32
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +9 -3
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/ImEx/index.js +468 -9
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +114 -82
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Image/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -114
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/JSX/FunctionPreview.js +2 -1
- 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/FunctionDesign.js +11 -18
- package/lib/lowcode/view/lc-components/Layout/FunctionPreview.js +2 -1
- 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/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Link/FunctionPreview.js +2 -1
- 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 +55 -49
- package/lib/lowcode/view/lc-components/PageContent/index.js +9 -8
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/index.js +5 -5
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/index.js +7 -5
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +76 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +45 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/lib/lowcode/view/lc-components/PageModal/index.js +11 -14
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -8
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Section/FunctionPreview.js +2 -1
- 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/FunctionDesign.js +19 -20
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Split/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Split/index.js +5 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Table/FunctionPreview.js +2 -1
- package/lib/lowcode/view/lc-components/Table/components/TopFilter.js +75 -55
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +433 -0
- package/lib/lowcode/view/lc-components/Table/index.js +422 -198
- package/lib/lowcode/view/lc-components/Table/meta.json +451 -399
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +12 -19
- package/lib/lowcode/view/lc-components/Tabs/index.js +51 -36
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Text/FunctionPreview.js +2 -1
- 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/FunctionDesign.js +2 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +170 -116
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +357 -301
- package/lib/lowcode/view/lc-components/Wrapper.js +12 -12
- 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/services.js +0 -25
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +429 -0
- package/lib/upload/FilesWall/index.less +74 -0
- package/lib/upload/Form/gridForm.js +3 -2
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +20 -21
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/lib/utils/form.js +37 -24
- package/lib/utils/grid.js +10 -7
- package/lowcode.js +1 -1
- package/package.json +173 -171
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/engine/meta/local/local.zh-cn.js +0 -97
- package/lib/lowcode/engine/meta/local/local.zh-cn.js +0 -103
|
@@ -8,19 +8,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
|
11
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
13
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
16
|
var _ahooks = require("ahooks");
|
|
15
17
|
var _lodash = require("lodash");
|
|
16
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
|
+
var _base = require("@luck-design-biz/base");
|
|
17
20
|
var _ContextProvider = require("../../../engine/provider/ContextProvider");
|
|
18
21
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
19
22
|
var _index = require("../../../../index");
|
|
20
23
|
var _TopFilter = _interopRequireDefault(require("./components/TopFilter"));
|
|
24
|
+
var _TopImex = require("./components/TopImex");
|
|
21
25
|
var _helper = require("../../../engine/tools/helper");
|
|
26
|
+
var _useCombinedRefs = _interopRequireDefault(require("../../../engine/tools/useCombinedRefs"));
|
|
22
27
|
var _tablePropsDefault = _interopRequireDefault(require("../../../engine/meta/table.props.default.json"));
|
|
23
28
|
var _constants = require("../../../constants");
|
|
29
|
+
var _apiUrl2 = require("../../../constants/api-url");
|
|
30
|
+
var moduleCode = (0, _helper.getLDMetaAttr)('moduleCode');
|
|
24
31
|
var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
25
32
|
var id = _ref.id,
|
|
26
33
|
className = _ref.className,
|
|
@@ -61,10 +68,20 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
61
68
|
onGridReady = _ref.onGridReady,
|
|
62
69
|
advance = _ref.advance;
|
|
63
70
|
var ctx = (0, _ContextProvider.useContext)();
|
|
64
|
-
var
|
|
65
|
-
module = _useRemoteSource.module;
|
|
71
|
+
var apiRef = (0, _react.useRef)();
|
|
66
72
|
var wrapperRef = (0, _react.useRef)();
|
|
67
|
-
var instanceRef = (0,
|
|
73
|
+
var instanceRef = (0, _useCombinedRefs.default)(ref);
|
|
74
|
+
(0, _react.useImperativeHandle)(apiRef, function () {
|
|
75
|
+
return {
|
|
76
|
+
/**
|
|
77
|
+
* 获取表格实例
|
|
78
|
+
* @method
|
|
79
|
+
*/
|
|
80
|
+
getInstance: function getInstance() {
|
|
81
|
+
return instanceRef.current;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
});
|
|
68
85
|
var _pagination = (0, _ahooks.useCreation)(function () {
|
|
69
86
|
return {
|
|
70
87
|
isFlow: !pagination,
|
|
@@ -85,30 +102,39 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
85
102
|
maxCount: (actions.current || actions).max,
|
|
86
103
|
type: (actions.current || actions).type,
|
|
87
104
|
getActions: function getActions() {
|
|
88
|
-
return (actions.current || actions).todoList.map(function (
|
|
105
|
+
return (actions.current || actions).todoList.map(function (_action) {
|
|
89
106
|
return {
|
|
90
|
-
title:
|
|
91
|
-
action: function (
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
107
|
+
title: _action.name,
|
|
108
|
+
action: function action(data, rowIndex, params) {
|
|
109
|
+
var doAction = function doAction() {
|
|
110
|
+
ctx.doAction(_action.actionPool, {
|
|
111
|
+
data: data,
|
|
112
|
+
rowIndex: rowIndex,
|
|
113
|
+
params: params,
|
|
114
|
+
datasetCode: dataset.code
|
|
115
|
+
});
|
|
97
116
|
};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
117
|
+
if (_action.riskLevel === 'danger') {
|
|
118
|
+
_base.Modal.confirm({
|
|
119
|
+
title: "\u786E\u8BA4\u6267\u884C".concat(_action.name, "\u884C\u4E3A\u64CD\u4F5C\u5417\uFF1F"),
|
|
120
|
+
onOk: doAction
|
|
121
|
+
});
|
|
122
|
+
} else if (_action.riskLevel === 'destroy') {
|
|
123
|
+
(0, _base.recheck)({
|
|
124
|
+
title: "\u786E\u8BA4\u6267\u884C".concat(_action.name, "\u884C\u4E3A\u64CD\u4F5C\u5417\uFF1F"),
|
|
125
|
+
checkWords: "\u6267\u884C".concat(_action.name),
|
|
126
|
+
onOk: doAction
|
|
127
|
+
});
|
|
128
|
+
} else {
|
|
129
|
+
doAction();
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
resource: _action.serial,
|
|
133
|
+
style: _action.riskLevel === 'default' ? null : {
|
|
108
134
|
color: {
|
|
109
135
|
danger: '#ff7875',
|
|
110
136
|
destroy: '#ff4d4f'
|
|
111
|
-
}[
|
|
137
|
+
}[_action.riskLevel]
|
|
112
138
|
}
|
|
113
139
|
};
|
|
114
140
|
});
|
|
@@ -134,24 +160,167 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
134
160
|
data: data,
|
|
135
161
|
isSelected: isSelected,
|
|
136
162
|
SelectedRows: SelectedRows,
|
|
137
|
-
params: params
|
|
163
|
+
params: params,
|
|
164
|
+
datasetCode: dataset.code
|
|
138
165
|
});
|
|
139
166
|
},
|
|
140
167
|
onChange: function onChange(rows, nodes, params) {
|
|
141
168
|
ctx.doAction(advance.events.onRowSelected, {
|
|
142
169
|
rows: rows,
|
|
143
170
|
nodes: nodes,
|
|
144
|
-
params: params
|
|
171
|
+
params: params,
|
|
172
|
+
datasetCode: dataset.code
|
|
145
173
|
});
|
|
146
174
|
}
|
|
147
175
|
}
|
|
148
176
|
} : false;
|
|
149
177
|
}, [rowSelection, suppressRowSelectionPagination, rowSelectionMode, defaultRowSelectedCode, rowSelectableCode]);
|
|
178
|
+
var _useRequest = (0, _ahooks.useRequest)(_apiUrl2.exportExcel, {
|
|
179
|
+
manual: true
|
|
180
|
+
}),
|
|
181
|
+
runAsync = _useRequest.runAsync;
|
|
182
|
+
|
|
183
|
+
// 查询进度
|
|
184
|
+
var fecthExcelState = (0, _ahooks.useMemoizedFn)(function (_ref2, procress, resolve, reject) {
|
|
185
|
+
var strategy = _ref2.strategy,
|
|
186
|
+
batchNo = _ref2.batchNo,
|
|
187
|
+
moduleCode = _ref2.moduleCode,
|
|
188
|
+
behaviorKey = _ref2.behaviorKey;
|
|
189
|
+
var _fetchExcelStatePrefix = "/".concat(strategy, "/").concat(batchNo);
|
|
190
|
+
var _fetchExcelStateParams = {
|
|
191
|
+
moduleCode: moduleCode,
|
|
192
|
+
behaviorKey: behaviorKey,
|
|
193
|
+
reportType: 'export'
|
|
194
|
+
};
|
|
195
|
+
(0, _apiUrl2.getFindexcelstate)(_fetchExcelStatePrefix, _fetchExcelStateParams).then(function (response) {
|
|
196
|
+
if (response.code === 1) {
|
|
197
|
+
var _response$data = response.data,
|
|
198
|
+
successCount = _response$data.successCount,
|
|
199
|
+
totalCount = _response$data.totalCount,
|
|
200
|
+
downloadUrl = _response$data.downloadUrl;
|
|
201
|
+
if (successCount >= totalCount) {
|
|
202
|
+
resolve(downloadUrl);
|
|
203
|
+
} else {
|
|
204
|
+
procress((successCount / totalCount * 100).toFixed(1));
|
|
205
|
+
setTimeout(function () {
|
|
206
|
+
fecthExcelState({
|
|
207
|
+
strategy: strategy,
|
|
208
|
+
batchNo: batchNo,
|
|
209
|
+
moduleCode: moduleCode,
|
|
210
|
+
behaviorKey: behaviorKey
|
|
211
|
+
}, procress, resolve, reject);
|
|
212
|
+
}, 500);
|
|
213
|
+
}
|
|
214
|
+
} else {
|
|
215
|
+
reject();
|
|
216
|
+
}
|
|
217
|
+
}).catch(function () {
|
|
218
|
+
reject();
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
var _onExportAll = (0, _ahooks.useMemoizedFn)(function (procress) {
|
|
222
|
+
return new Promise( /*#__PURE__*/function () {
|
|
223
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(resolve, reject) {
|
|
224
|
+
var isBehavior, behaviorKey, strategy, _exportExcelParams, _exportExcelPrefix, exportExcelResponse, _instanceRef$current, _instanceRef$current2, _instanceRef$current$, apiUrl, _strategy, joiner, labels, fieldInfo, defaultExcelParams, _exportExcelParams2, _exportExcelPrefix2, _exportExcelResponse;
|
|
225
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
226
|
+
while (1) switch (_context.prev = _context.next) {
|
|
227
|
+
case 0:
|
|
228
|
+
isBehavior = (0, _lodash.isString)(impexp.export);
|
|
229
|
+
if (!isBehavior) {
|
|
230
|
+
_context.next = 12;
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
// ! 行为
|
|
234
|
+
behaviorKey = impexp.export;
|
|
235
|
+
strategy = 'behavior';
|
|
236
|
+
_exportExcelParams = {
|
|
237
|
+
moduleCode: moduleCode,
|
|
238
|
+
behaviorKey: behaviorKey,
|
|
239
|
+
reportType: 'export'
|
|
240
|
+
};
|
|
241
|
+
_exportExcelPrefix = "/".concat(strategy);
|
|
242
|
+
_context.next = 8;
|
|
243
|
+
return runAsync(_exportExcelPrefix, _exportExcelParams);
|
|
244
|
+
case 8:
|
|
245
|
+
exportExcelResponse = _context.sent;
|
|
246
|
+
if (exportExcelResponse.code === 1) {
|
|
247
|
+
fecthExcelState({
|
|
248
|
+
strategy: strategy,
|
|
249
|
+
batchNo: exportExcelResponse.data,
|
|
250
|
+
moduleCode: moduleCode,
|
|
251
|
+
behaviorKey: behaviorKey
|
|
252
|
+
}, procress, resolve, reject);
|
|
253
|
+
} else {
|
|
254
|
+
reject();
|
|
255
|
+
}
|
|
256
|
+
_context.next = 25;
|
|
257
|
+
break;
|
|
258
|
+
case 12:
|
|
259
|
+
_instanceRef$current$ = (_instanceRef$current = instanceRef.current) === null || _instanceRef$current === void 0 ? void 0 : _instanceRef$current.getProps(), apiUrl = _instanceRef$current$.apiUrl;
|
|
260
|
+
_strategy = 'report_server';
|
|
261
|
+
joiner = apiUrl.indexOf('?') !== -1 ? '&' : '?';
|
|
262
|
+
labels = [];
|
|
263
|
+
fieldInfo = [];
|
|
264
|
+
(_instanceRef$current2 = instanceRef.current) === null || _instanceRef$current2 === void 0 || (_instanceRef$current2 = _instanceRef$current2.gridApi) === null || _instanceRef$current2 === void 0 || _instanceRef$current2.columnApi.getAllDisplayedColumns().forEach(function (column) {
|
|
265
|
+
if (column.colId !== 'luck-expand' && column.colId !== 'luck-select' && column.colId !== 'luck-index' && column.colId !== 'luck-actions' && column.colId !== 'fraction_drag'
|
|
266
|
+
// && !column.colDef.draggable
|
|
267
|
+
) {
|
|
268
|
+
labels.push(column.colDef.headerName);
|
|
269
|
+
fieldInfo.push({
|
|
270
|
+
width: column.actualWidth,
|
|
271
|
+
fieldNm: column.colId
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
defaultExcelParams = {
|
|
276
|
+
bgColor: '#69b1ff',
|
|
277
|
+
dataUrl: "".concat(window.location.origin, "/api").concat(apiUrl).concat(joiner, "token=").concat(window.cookie.get(window.appConfig.authSaveKey)),
|
|
278
|
+
excelName: 'download.xls',
|
|
279
|
+
fieldInfo: fieldInfo,
|
|
280
|
+
islock: false,
|
|
281
|
+
labels: labels === null || labels === void 0 ? void 0 : labels.join(),
|
|
282
|
+
reqBody: null
|
|
283
|
+
};
|
|
284
|
+
_exportExcelParams2 = (0, _objectSpread2.default)({
|
|
285
|
+
moduleCode: moduleCode,
|
|
286
|
+
reportType: 'export'
|
|
287
|
+
}, defaultExcelParams);
|
|
288
|
+
_exportExcelPrefix2 = "/".concat(_strategy);
|
|
289
|
+
_context.next = 23;
|
|
290
|
+
return runAsync(_exportExcelPrefix2, _exportExcelParams2);
|
|
291
|
+
case 23:
|
|
292
|
+
_exportExcelResponse = _context.sent;
|
|
293
|
+
if (_exportExcelResponse.code === 1) {
|
|
294
|
+
fecthExcelState({
|
|
295
|
+
strategy: _strategy,
|
|
296
|
+
batchNo: _exportExcelResponse.data,
|
|
297
|
+
moduleCode: moduleCode
|
|
298
|
+
}, procress, resolve, reject);
|
|
299
|
+
} else {
|
|
300
|
+
reject();
|
|
301
|
+
}
|
|
302
|
+
case 25:
|
|
303
|
+
case "end":
|
|
304
|
+
return _context.stop();
|
|
305
|
+
}
|
|
306
|
+
}, _callee);
|
|
307
|
+
}));
|
|
308
|
+
return function (_x, _x2) {
|
|
309
|
+
return _ref3.apply(this, arguments);
|
|
310
|
+
};
|
|
311
|
+
}());
|
|
312
|
+
});
|
|
150
313
|
var _export = (0, _ahooks.useCreation)(function () {
|
|
151
|
-
|
|
152
|
-
enableExportAll: !!impexp.export
|
|
153
|
-
apiUrl: (0, _lodash.isString)(impexp.export) ? impexp.export : void 0
|
|
314
|
+
var _temp = {
|
|
315
|
+
enableExportAll: !!impexp.export
|
|
154
316
|
};
|
|
317
|
+
if (!!impexp.export) {
|
|
318
|
+
var _instanceRef$current3;
|
|
319
|
+
var _tableProps = (_instanceRef$current3 = instanceRef.current) === null || _instanceRef$current3 === void 0 ? void 0 : _instanceRef$current3.getProps();
|
|
320
|
+
_temp.apiUrl = _tableProps === null || _tableProps === void 0 ? void 0 : _tableProps.apiUrl;
|
|
321
|
+
_temp.onExportAll = _onExportAll;
|
|
322
|
+
}
|
|
323
|
+
return _temp;
|
|
155
324
|
}, [impexp.export]);
|
|
156
325
|
var _batchActions = (0, _ahooks.useCreation)(function () {
|
|
157
326
|
return {
|
|
@@ -163,9 +332,11 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
163
332
|
};
|
|
164
333
|
}),
|
|
165
334
|
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows) {
|
|
166
|
-
|
|
335
|
+
var todoListById = (0, _lodash.keyBy)(bantchActions.todoList, 'id');
|
|
336
|
+
ctx.doAction(todoListById[key].actionPool, {
|
|
167
337
|
key: key,
|
|
168
|
-
selectedRows: selectedRows
|
|
338
|
+
selectedRows: selectedRows,
|
|
339
|
+
datasetCode: dataset.code
|
|
169
340
|
});
|
|
170
341
|
}
|
|
171
342
|
};
|
|
@@ -205,19 +376,47 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
205
376
|
}
|
|
206
377
|
return temp;
|
|
207
378
|
}, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams, draggable]);
|
|
208
|
-
var renderFunctionArea = (0,
|
|
379
|
+
var renderFunctionArea = (0, _react.useCallback)(function () {
|
|
209
380
|
var _topActionGroup$todoL;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
381
|
+
var resultComp = [];
|
|
382
|
+
if (!!(topActionGroup !== null && topActionGroup !== void 0 && (_topActionGroup$todoL = topActionGroup.todoList) !== null && _topActionGroup$todoL !== void 0 && _topActionGroup$todoL.length)) {
|
|
383
|
+
resultComp.push( /*#__PURE__*/_react.default.createElement(_index.LDActions, (0, _extends2.default)({}, topActionGroup, {
|
|
384
|
+
doAction: function doAction(action) {
|
|
385
|
+
return ctx.doAction(action, {
|
|
386
|
+
instance: instanceRef.current,
|
|
387
|
+
datasetCode: dataset.code
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
})));
|
|
391
|
+
}
|
|
392
|
+
if (impexp.import) {
|
|
393
|
+
var _instanceRef$current4;
|
|
394
|
+
var _instanceRef$current$2 = (_instanceRef$current4 = instanceRef.current) === null || _instanceRef$current4 === void 0 ? void 0 : _instanceRef$current4.getProps(),
|
|
395
|
+
apiUrl = _instanceRef$current$2.apiUrl;
|
|
396
|
+
resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopUpload, {
|
|
397
|
+
apiUrl: apiUrl,
|
|
398
|
+
moduleCode: moduleCode,
|
|
399
|
+
options: impexp,
|
|
400
|
+
tableRef: instanceRef
|
|
401
|
+
}));
|
|
402
|
+
}
|
|
403
|
+
if ((0, _lodash.isString)(impexp.export) || impexp.export) {
|
|
404
|
+
var _instanceRef$current5;
|
|
405
|
+
var _instanceRef$current$3 = (_instanceRef$current5 = instanceRef.current) === null || _instanceRef$current5 === void 0 ? void 0 : _instanceRef$current5.getProps(),
|
|
406
|
+
_apiUrl = _instanceRef$current$3.apiUrl;
|
|
407
|
+
resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopExport, {
|
|
408
|
+
apiUrl: _apiUrl,
|
|
409
|
+
moduleCode: moduleCode,
|
|
410
|
+
options: impexp,
|
|
411
|
+
tableRef: instanceRef
|
|
412
|
+
}));
|
|
413
|
+
}
|
|
414
|
+
return resultComp;
|
|
415
|
+
}, [topActionGroup, impexp]);
|
|
218
416
|
var renderFilterArea = (0, _ahooks.useMemoizedFn)(function () {
|
|
219
417
|
return topFilter ? /*#__PURE__*/_react.default.createElement(_TopFilter.default, {
|
|
220
|
-
filter: topFilter
|
|
418
|
+
filter: topFilter,
|
|
419
|
+
instance: instanceRef
|
|
221
420
|
}) : null;
|
|
222
421
|
});
|
|
223
422
|
var _wrapperProps = (0, _ahooks.useCreation)(function () {
|
|
@@ -235,31 +434,36 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
235
434
|
};
|
|
236
435
|
});
|
|
237
436
|
var _readFilter = (0, _ahooks.useMemoizedFn)(function (params, filters) {
|
|
238
|
-
|
|
437
|
+
ctx.doAction(advance.events.onFilterChanged, {
|
|
239
438
|
params: params,
|
|
240
439
|
filters: filters
|
|
241
440
|
});
|
|
242
441
|
});
|
|
243
442
|
var _handleGridReady = (0, _ahooks.useMemoizedFn)(function (params, instance) {
|
|
244
|
-
instanceRef.current = instance;
|
|
245
443
|
onGridReady === null || onGridReady === void 0 || onGridReady(params, instance);
|
|
246
444
|
ctx.doAction(advance.events.onMount, {
|
|
247
445
|
params: params,
|
|
248
|
-
|
|
446
|
+
datasetCode: dataset.code
|
|
249
447
|
});
|
|
250
448
|
});
|
|
251
449
|
var _handleRowClick = (0, _ahooks.useMemoizedFn)(function (data, rowIndex, params) {
|
|
450
|
+
instanceRef.current.expectRowKey = data[PRIMARY_KEY];
|
|
451
|
+
ctx.doAction(advance.events.onExpectRowChanged, {
|
|
452
|
+
data: data
|
|
453
|
+
});
|
|
252
454
|
ctx.doAction(advance.events.onRowClick, {
|
|
253
455
|
data: data,
|
|
254
456
|
rowIndex: rowIndex,
|
|
255
|
-
params: params
|
|
457
|
+
params: params,
|
|
458
|
+
datasetCode: dataset.code
|
|
256
459
|
});
|
|
257
460
|
});
|
|
258
461
|
var _handleRowDoubleClick = (0, _ahooks.useMemoizedFn)(function (data, rowIndex, params) {
|
|
259
462
|
ctx.doAction(advance.events.onRowDoubleClick, {
|
|
260
463
|
data: data,
|
|
261
464
|
rowIndex: rowIndex,
|
|
262
|
-
params: params
|
|
465
|
+
params: params,
|
|
466
|
+
datasetCode: dataset.code
|
|
263
467
|
});
|
|
264
468
|
});
|
|
265
469
|
var _handleRowDragged = (0, _ahooks.useMemoizedFn)(function (toId, fromId, params) {
|
|
@@ -267,52 +471,70 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
267
471
|
ctx.doAction(advance.events.onRowDragged, {
|
|
268
472
|
toId: toId,
|
|
269
473
|
fromId: fromId,
|
|
270
|
-
params: params
|
|
474
|
+
params: params,
|
|
475
|
+
datasetCode: dataset.code
|
|
271
476
|
});
|
|
272
477
|
} else {
|
|
273
|
-
|
|
478
|
+
var _actionsPool = [['drag', {
|
|
274
479
|
category: 'page-action',
|
|
275
|
-
code:
|
|
276
|
-
|
|
480
|
+
code: "function onRowDragged(toId, fromId, params){return {data: { toId, fromId }};}",
|
|
481
|
+
code1: JSON.stringify({
|
|
482
|
+
moduleCode: moduleCode,
|
|
277
483
|
datasetCode: dataset.code,
|
|
278
484
|
data: {
|
|
279
485
|
toId: toId,
|
|
280
486
|
fromId: fromId
|
|
281
487
|
}
|
|
282
488
|
})
|
|
283
|
-
}]]
|
|
489
|
+
}]];
|
|
490
|
+
ctx.doAction(_actionsPool, {
|
|
491
|
+
toId: toId,
|
|
492
|
+
fromId: fromId,
|
|
493
|
+
params: params,
|
|
494
|
+
datasetCode: dataset.code
|
|
495
|
+
});
|
|
284
496
|
}
|
|
285
497
|
});
|
|
286
498
|
var _afterInit = (0, _ahooks.useMemoizedFn)(function (res, dispatch, props) {
|
|
287
499
|
ctx.doAction(advance.events.afterInit, {
|
|
288
500
|
res: res,
|
|
289
501
|
dispatch: dispatch,
|
|
290
|
-
props: props
|
|
502
|
+
props: props,
|
|
503
|
+
datasetCode: dataset.code
|
|
291
504
|
});
|
|
292
505
|
});
|
|
293
506
|
var _afterQuery = (0, _ahooks.useMemoizedFn)(function (res) {
|
|
507
|
+
if (res.code === 1 && !res.list.includes(instanceRef.current.expectRowKey)) {
|
|
508
|
+
instanceRef.current.expectRowKey = res.list[0];
|
|
509
|
+
ctx.doAction(advance.events.onExpectRowChanged, {
|
|
510
|
+
data: res.detail[res.list[0]]
|
|
511
|
+
});
|
|
512
|
+
}
|
|
294
513
|
ctx.doAction(advance.events.afterQuery, {
|
|
295
|
-
res: res
|
|
514
|
+
res: res,
|
|
515
|
+
datasetCode: dataset.code
|
|
296
516
|
});
|
|
297
517
|
});
|
|
298
518
|
(0, _ahooks.useUnmount)(function () {
|
|
299
|
-
ctx.doAction(advance.events.onUnmount, {
|
|
300
|
-
|
|
519
|
+
return ctx.doAction(advance.events.onUnmount, {
|
|
520
|
+
datasetCode: dataset === null || dataset === void 0 ? void 0 : dataset.code
|
|
301
521
|
});
|
|
302
|
-
});
|
|
522
|
+
}, []);
|
|
303
523
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
304
524
|
return wrapperRef.current;
|
|
305
525
|
});
|
|
306
526
|
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
307
527
|
id: id,
|
|
308
528
|
displayName: "Table",
|
|
309
|
-
getTargetDom: getTargetDom
|
|
529
|
+
getTargetDom: getTargetDom,
|
|
530
|
+
api: apiRef
|
|
310
531
|
}, /*#__PURE__*/_react.default.createElement(_index.LdGrid, (0, _extends2.default)({
|
|
311
|
-
ref:
|
|
532
|
+
ref: instanceRef,
|
|
312
533
|
wrapper: wrapperRef,
|
|
313
534
|
wrapperProps: _wrapperProps,
|
|
314
535
|
width: width,
|
|
315
536
|
height: height,
|
|
537
|
+
_loading: ctx.loading,
|
|
316
538
|
bordered: bordered,
|
|
317
539
|
className: (0, _classnames.default)((0, _defineProperty2.default)({}, className, !!className)),
|
|
318
540
|
ldId: id,
|
|
@@ -321,7 +543,8 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
321
543
|
renderIndex: renderIndex,
|
|
322
544
|
suppressInit: !autoLoad,
|
|
323
545
|
getRowStyle: _getRowStyle,
|
|
324
|
-
suppressPreset: suppressPreset
|
|
546
|
+
suppressPreset: suppressPreset,
|
|
547
|
+
suppressPropertyNamesCheck: true
|
|
325
548
|
}, _pagination, _actionsColumn, _rowSelection, _export, _batchActions, _others, {
|
|
326
549
|
readFilter: _readFilter,
|
|
327
550
|
renderFunctionArea: renderFunctionArea,
|
|
@@ -335,135 +558,135 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
335
558
|
})));
|
|
336
559
|
});
|
|
337
560
|
LCTable.propTypes = {
|
|
338
|
-
/**
|
|
339
|
-
* @name 唯一标识
|
|
340
|
-
* @type string
|
|
341
|
-
* @disabled true
|
|
561
|
+
/**
|
|
562
|
+
* @name 唯一标识
|
|
563
|
+
* @type string
|
|
564
|
+
* @disabled true
|
|
342
565
|
*/
|
|
343
566
|
id: _propTypes.default.string.isRequired,
|
|
344
|
-
/**
|
|
345
|
-
* @name 数据集
|
|
346
|
-
* @type _DataSetSelector
|
|
567
|
+
/**
|
|
568
|
+
* @name 数据集
|
|
569
|
+
* @type _DataSetSelector
|
|
347
570
|
*/
|
|
348
571
|
dataset: _propTypes.default.shape({
|
|
349
572
|
code: _propTypes.default.string.isRequired,
|
|
350
573
|
uid: _propTypes.default.string.isRequired
|
|
351
574
|
}),
|
|
352
|
-
/**
|
|
353
|
-
* @name 自动加载
|
|
354
|
-
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
355
|
-
* @type switch
|
|
356
|
-
* @default true
|
|
575
|
+
/**
|
|
576
|
+
* @name 自动加载
|
|
577
|
+
* @desc 首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭
|
|
578
|
+
* @type switch
|
|
579
|
+
* @default true
|
|
357
580
|
*/
|
|
358
581
|
autoLoad: _propTypes.default.bool,
|
|
359
|
-
/**
|
|
360
|
-
* @name 只读
|
|
361
|
-
* @type switch
|
|
362
|
-
* @default false
|
|
582
|
+
/**
|
|
583
|
+
* @name 只读
|
|
584
|
+
* @type switch
|
|
585
|
+
* @default false
|
|
363
586
|
*/
|
|
364
587
|
readOnly: _propTypes.default.bool,
|
|
365
|
-
/**
|
|
366
|
-
* @name 关闭预设
|
|
367
|
-
* @type switch
|
|
368
|
-
* @default false
|
|
588
|
+
/**
|
|
589
|
+
* @name 关闭预设
|
|
590
|
+
* @type switch
|
|
591
|
+
* @default false
|
|
369
592
|
*/
|
|
370
593
|
suppressPreset: _propTypes.default.bool,
|
|
371
|
-
/**
|
|
372
|
-
* @name 宽度
|
|
373
|
-
* @type _WidthHeight
|
|
374
|
-
* @default 100%
|
|
375
|
-
* @group styleSetting
|
|
594
|
+
/**
|
|
595
|
+
* @name 宽度
|
|
596
|
+
* @type _WidthHeight
|
|
597
|
+
* @default 100%
|
|
598
|
+
* @group styleSetting
|
|
376
599
|
*/
|
|
377
600
|
width: _propTypes.default.string,
|
|
378
|
-
/**
|
|
379
|
-
* @name 高度
|
|
380
|
-
* @type _WidthHeight
|
|
381
|
-
* @default 100%
|
|
382
|
-
* @group styleSetting
|
|
601
|
+
/**
|
|
602
|
+
* @name 高度
|
|
603
|
+
* @type _WidthHeight
|
|
604
|
+
* @default 100%
|
|
605
|
+
* @group styleSetting
|
|
383
606
|
*/
|
|
384
607
|
height: _propTypes.default.string,
|
|
385
|
-
/**
|
|
386
|
-
* @name 边框线
|
|
387
|
-
* @type switch
|
|
388
|
-
* @default false
|
|
389
|
-
* @group styleSetting
|
|
608
|
+
/**
|
|
609
|
+
* @name 边框线
|
|
610
|
+
* @type switch
|
|
611
|
+
* @default false
|
|
612
|
+
* @group styleSetting
|
|
390
613
|
*/
|
|
391
614
|
border: _propTypes.default.bool,
|
|
392
|
-
/**
|
|
393
|
-
* @name 斑马纹
|
|
394
|
-
* @type switch
|
|
395
|
-
* @default false
|
|
396
|
-
* @group styleSetting
|
|
615
|
+
/**
|
|
616
|
+
* @name 斑马纹
|
|
617
|
+
* @type switch
|
|
618
|
+
* @default false
|
|
619
|
+
* @group styleSetting
|
|
397
620
|
*/
|
|
398
621
|
zebra: _propTypes.default.oneOfType[(_propTypes.default.bool, _propTypes.default.string)],
|
|
399
|
-
/**
|
|
400
|
-
* @name 开启分页
|
|
401
|
-
* @type switch
|
|
402
|
-
* @default true
|
|
403
|
-
* @group paginationSetting
|
|
622
|
+
/**
|
|
623
|
+
* @name 开启分页
|
|
624
|
+
* @type switch
|
|
625
|
+
* @default true
|
|
626
|
+
* @group paginationSetting
|
|
404
627
|
*/
|
|
405
628
|
pagination: _propTypes.default.bool,
|
|
406
|
-
/**
|
|
407
|
-
* @name 每页条数
|
|
408
|
-
* @type number
|
|
409
|
-
* @default 30
|
|
410
|
-
* @group paginationSetting
|
|
629
|
+
/**
|
|
630
|
+
* @name 每页条数
|
|
631
|
+
* @type number
|
|
632
|
+
* @default 30
|
|
633
|
+
* @group paginationSetting
|
|
411
634
|
*/
|
|
412
635
|
pageSize: _propTypes.default.number,
|
|
413
|
-
/**
|
|
414
|
-
* @name 分页器
|
|
415
|
-
* @type switch
|
|
416
|
-
* @default true
|
|
417
|
-
* @group paginationSetting
|
|
636
|
+
/**
|
|
637
|
+
* @name 分页器
|
|
638
|
+
* @type switch
|
|
639
|
+
* @default true
|
|
640
|
+
* @group paginationSetting
|
|
418
641
|
*/
|
|
419
642
|
showSizeChanger: _propTypes.default.bool,
|
|
420
|
-
/**
|
|
421
|
-
* @name 快速跳转
|
|
422
|
-
* @type switch
|
|
423
|
-
* @default true
|
|
424
|
-
* @group paginationSetting
|
|
643
|
+
/**
|
|
644
|
+
* @name 快速跳转
|
|
645
|
+
* @type switch
|
|
646
|
+
* @default true
|
|
647
|
+
* @group paginationSetting
|
|
425
648
|
*/
|
|
426
649
|
showQuickJumper: _propTypes.default.bool,
|
|
427
|
-
/**
|
|
428
|
-
* @name 单页无分页器
|
|
429
|
-
* @type switch
|
|
430
|
-
* @default false
|
|
431
|
-
* @group paginationSetting
|
|
650
|
+
/**
|
|
651
|
+
* @name 单页无分页器
|
|
652
|
+
* @type switch
|
|
653
|
+
* @default false
|
|
654
|
+
* @group paginationSetting
|
|
432
655
|
*/
|
|
433
656
|
hideOnSinglePage: _propTypes.default.bool,
|
|
434
|
-
/**
|
|
435
|
-
* @name 简单模式
|
|
436
|
-
* @type switch
|
|
437
|
-
* @default false
|
|
438
|
-
* @group paginationSetting
|
|
657
|
+
/**
|
|
658
|
+
* @name 简单模式
|
|
659
|
+
* @type switch
|
|
660
|
+
* @default false
|
|
661
|
+
* @group paginationSetting
|
|
439
662
|
*/
|
|
440
663
|
paginationSimple: _propTypes.default.bool,
|
|
441
|
-
/**
|
|
442
|
-
* @name 隐藏操作列
|
|
443
|
-
* @type switch
|
|
444
|
-
* @default false
|
|
445
|
-
* @groupNext actionsColumn
|
|
664
|
+
/**
|
|
665
|
+
* @name 隐藏操作列
|
|
666
|
+
* @type switch
|
|
667
|
+
* @default false
|
|
668
|
+
* @groupNext actionsColumn
|
|
446
669
|
*/
|
|
447
670
|
suppressActions: _propTypes.default.bool,
|
|
448
|
-
/**
|
|
449
|
-
* @name 隐藏操作列
|
|
450
|
-
* @type number
|
|
451
|
-
* @default 160
|
|
452
|
-
* @groupNext actionsColumn
|
|
671
|
+
/**
|
|
672
|
+
* @name 隐藏操作列
|
|
673
|
+
* @type number
|
|
674
|
+
* @default 160
|
|
675
|
+
* @groupNext actionsColumn
|
|
453
676
|
*/
|
|
454
677
|
actionsColumnWidth: _propTypes.default.number,
|
|
455
|
-
/**
|
|
456
|
-
* @name 最大显示数
|
|
457
|
-
* @type number
|
|
458
|
-
* @default 2
|
|
459
|
-
* @groupNext actionsColumn
|
|
678
|
+
/**
|
|
679
|
+
* @name 最大显示数
|
|
680
|
+
* @type number
|
|
681
|
+
* @default 2
|
|
682
|
+
* @groupNext actionsColumn
|
|
460
683
|
*/
|
|
461
684
|
maxActionsCount: _propTypes.default.number,
|
|
462
|
-
/**
|
|
463
|
-
* @name 操作项
|
|
464
|
-
* @type _TableActions
|
|
465
|
-
* @groupNext actionsColumn
|
|
466
|
-
* @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
|
|
685
|
+
/**
|
|
686
|
+
* @name 操作项
|
|
687
|
+
* @type _TableActions
|
|
688
|
+
* @groupNext actionsColumn
|
|
689
|
+
* @default {"display": "text", "max": 2, "moreText": "更多行为", "todoList": []}
|
|
467
690
|
*/
|
|
468
691
|
actions: _propTypes.default.shape({
|
|
469
692
|
display: _propTypes.default.oneOf(['text', 'button']),
|
|
@@ -471,10 +694,10 @@ LCTable.propTypes = {
|
|
|
471
694
|
moreText: _propTypes.default.string,
|
|
472
695
|
todoList: _propTypes.default.array
|
|
473
696
|
}),
|
|
474
|
-
/**
|
|
475
|
-
* @name 顶部操作
|
|
476
|
-
* @type _ActionGroup
|
|
477
|
-
* @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
|
|
697
|
+
/**
|
|
698
|
+
* @name 顶部操作
|
|
699
|
+
* @type _ActionGroup
|
|
700
|
+
* @default {"display": "button", "max": 2, "moreText": "操作", "todoList": []}
|
|
478
701
|
*/
|
|
479
702
|
topActionGroup: _propTypes.default.shape({
|
|
480
703
|
display: _propTypes.default.oneOf(['text', 'button']),
|
|
@@ -482,85 +705,86 @@ LCTable.propTypes = {
|
|
|
482
705
|
moreText: _propTypes.default.string,
|
|
483
706
|
todoList: _propTypes.default.array
|
|
484
707
|
}),
|
|
485
|
-
/**
|
|
486
|
-
* @name 顶部过滤器
|
|
487
|
-
* @type _TableTopFilter
|
|
708
|
+
/**
|
|
709
|
+
* @name 顶部过滤器
|
|
710
|
+
* @type _TableTopFilter
|
|
488
711
|
*/
|
|
489
712
|
topFilter: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array, _propTypes.default.shape({
|
|
490
713
|
options: _propTypes.default.array.isRequired,
|
|
491
714
|
field: _propTypes.default.string.isRequired
|
|
492
715
|
})]),
|
|
493
|
-
/**
|
|
494
|
-
* @name 开启行选择器
|
|
495
|
-
* @type boolean
|
|
496
|
-
* @default false
|
|
716
|
+
/**
|
|
717
|
+
* @name 开启行选择器
|
|
718
|
+
* @type boolean
|
|
719
|
+
* @default false
|
|
497
720
|
*/
|
|
498
721
|
rowSelection: _propTypes.default.bool,
|
|
499
|
-
/**
|
|
500
|
-
* @name 停用分页多选
|
|
501
|
-
* @type boolean
|
|
502
|
-
* @default false
|
|
722
|
+
/**
|
|
723
|
+
* @name 停用分页多选
|
|
724
|
+
* @type boolean
|
|
725
|
+
* @default false
|
|
503
726
|
*/
|
|
504
727
|
suppressRowSelectionPagination: _propTypes.default.bool,
|
|
505
|
-
/**
|
|
506
|
-
* @name 选择器模式
|
|
507
|
-
* @type segmented
|
|
508
|
-
* @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
|
|
509
|
-
* @default 'multiple'
|
|
728
|
+
/**
|
|
729
|
+
* @name 选择器模式
|
|
730
|
+
* @type segmented
|
|
731
|
+
* @options [{label: '复选', value: 'multiple'}, {label: '单选', value: 'single'}]
|
|
732
|
+
* @default 'multiple'
|
|
510
733
|
*/
|
|
511
734
|
rowSelectionMode: _propTypes.default.oneOf(['single', 'multiple']),
|
|
512
|
-
/**
|
|
513
|
-
* @name 默认选中
|
|
514
|
-
* @type _JSEditor
|
|
515
|
-
* @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
|
|
735
|
+
/**
|
|
736
|
+
* @name 默认选中
|
|
737
|
+
* @type _JSEditor
|
|
738
|
+
* @default "function getDefaultRowSelected(data, node, ctx) { \n return false; \n}"
|
|
516
739
|
*/
|
|
517
740
|
defaultRowSelectedCode: _propTypes.default.string,
|
|
518
|
-
/**
|
|
519
|
-
* @name 行是否可选
|
|
520
|
-
* @type _JSEditor
|
|
521
|
-
* @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
|
|
741
|
+
/**
|
|
742
|
+
* @name 行是否可选
|
|
743
|
+
* @type _JSEditor
|
|
744
|
+
* @default "function getRowSelectable(data, node, ctx) { \n return true; \n}"
|
|
522
745
|
*/
|
|
523
746
|
rowSelectableCode: _propTypes.default.string,
|
|
524
|
-
/**
|
|
525
|
-
* @name 导入导出
|
|
526
|
-
* @type _ImpExp
|
|
527
|
-
* @default { "export": true }
|
|
747
|
+
/**
|
|
748
|
+
* @name 导入导出
|
|
749
|
+
* @type _ImpExp
|
|
750
|
+
* @default { "export": true }
|
|
528
751
|
*/
|
|
529
752
|
impexp: _propTypes.default.shape({
|
|
530
753
|
import: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
|
|
754
|
+
importType: _propTypes.default.bool,
|
|
531
755
|
export: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string])
|
|
532
756
|
}),
|
|
533
|
-
/**
|
|
534
|
-
* @name 批量操作
|
|
535
|
-
* @type _BatchActions
|
|
536
|
-
* @default { "todoList": [] }
|
|
757
|
+
/**
|
|
758
|
+
* @name 批量操作
|
|
759
|
+
* @type _BatchActions
|
|
760
|
+
* @default { "todoList": [] }
|
|
537
761
|
*/
|
|
538
762
|
bantchActions: _propTypes.default.shape({
|
|
539
763
|
todoList: _propTypes.default.array
|
|
540
764
|
}),
|
|
541
|
-
/**
|
|
542
|
-
* @name 格式化数据
|
|
543
|
-
* @type _JSEditor
|
|
765
|
+
/**
|
|
766
|
+
* @name 格式化数据
|
|
767
|
+
* @type _JSEditor
|
|
544
768
|
*/
|
|
545
769
|
formatDataSource: _propTypes.default.string,
|
|
546
|
-
/**
|
|
547
|
-
* @name 构建树层级
|
|
548
|
-
* @type _JSEditor
|
|
770
|
+
/**
|
|
771
|
+
* @name 构建树层级
|
|
772
|
+
* @type _JSEditor
|
|
549
773
|
*/
|
|
550
774
|
getDataPath: _propTypes.default.string,
|
|
551
|
-
/**
|
|
552
|
-
* @name 重写表格列
|
|
553
|
-
* @type _JSEditor
|
|
775
|
+
/**
|
|
776
|
+
* @name 重写表格列
|
|
777
|
+
* @type _JSEditor
|
|
554
778
|
*/
|
|
555
779
|
columnsRewrite: _propTypes.default.string,
|
|
556
|
-
/**
|
|
557
|
-
* @name 重置表格列
|
|
558
|
-
* @type _JSEditor
|
|
780
|
+
/**
|
|
781
|
+
* @name 重置表格列
|
|
782
|
+
* @type _JSEditor
|
|
559
783
|
*/
|
|
560
784
|
columnsReset: _propTypes.default.string,
|
|
561
|
-
/**
|
|
562
|
-
* @name model参数
|
|
563
|
-
* @type _JSEditor
|
|
785
|
+
/**
|
|
786
|
+
* @name model参数
|
|
787
|
+
* @type _JSEditor
|
|
564
788
|
*/
|
|
565
789
|
modelParams: _propTypes.default.string
|
|
566
790
|
};
|