@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
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "Text",
|
|
3
|
-
"name": "文本",
|
|
4
|
-
"icon": "icon-text",
|
|
5
|
-
"group": "basic",
|
|
6
|
-
"groupName": "基础",
|
|
7
|
-
"desc": "文本组件用于显示文本内容。",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "id",
|
|
12
|
-
"desc": "唯一标识",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"disabled": true
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"key": "content",
|
|
18
|
-
"name": "内容",
|
|
19
|
-
"desc": "文本内容设置",
|
|
20
|
-
"type": "_I18nInput"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"key": "showTitle",
|
|
24
|
-
"name": "显示标题",
|
|
25
|
-
"desc": "是否显示标题",
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "title",
|
|
31
|
-
"name": "自定义标题",
|
|
32
|
-
"desc": "显示标题时配置。自定义标题内容",
|
|
33
|
-
"type": "_I18nInput"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"key": "maxLine",
|
|
37
|
-
"name": "最大行数",
|
|
38
|
-
"desc": "超出时自动省略号展示",
|
|
39
|
-
"type": "number",
|
|
40
|
-
"default": 0
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"css": {},
|
|
44
|
-
"advance": {
|
|
45
|
-
"events": [
|
|
46
|
-
{
|
|
47
|
-
"key": "onMount",
|
|
48
|
-
"name": "组件首次渲染时",
|
|
49
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
50
|
-
"func": "(params)=>{\n\t\n}"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"key": "onUnmount",
|
|
54
|
-
"name": "组件卸载时",
|
|
55
|
-
"desc": "在组件卸载时,执行方法。",
|
|
56
|
-
"func": "(params)=>{\n\t\n}"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"key": "onClick",
|
|
60
|
-
"name": "点击事件",
|
|
61
|
-
"desc": "点击文本时,执行方法",
|
|
62
|
-
"func": "(e)=>{\n\t\n}"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "Text",
|
|
3
|
+
"name": "文本",
|
|
4
|
+
"icon": "icon-text",
|
|
5
|
+
"group": "basic",
|
|
6
|
+
"groupName": "基础",
|
|
7
|
+
"desc": "文本组件用于显示文本内容。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "content",
|
|
18
|
+
"name": "内容",
|
|
19
|
+
"desc": "文本内容设置",
|
|
20
|
+
"type": "_I18nInput"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "showTitle",
|
|
24
|
+
"name": "显示标题",
|
|
25
|
+
"desc": "是否显示标题",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "title",
|
|
31
|
+
"name": "自定义标题",
|
|
32
|
+
"desc": "显示标题时配置。自定义标题内容",
|
|
33
|
+
"type": "_I18nInput"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "maxLine",
|
|
37
|
+
"name": "最大行数",
|
|
38
|
+
"desc": "超出时自动省略号展示",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"default": 0
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"css": {},
|
|
44
|
+
"advance": {
|
|
45
|
+
"events": [
|
|
46
|
+
{
|
|
47
|
+
"key": "onMount",
|
|
48
|
+
"name": "组件首次渲染时",
|
|
49
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
50
|
+
"func": "(params)=>{\n\t\n}"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"key": "onUnmount",
|
|
54
|
+
"name": "组件卸载时",
|
|
55
|
+
"desc": "在组件卸载时,执行方法。",
|
|
56
|
+
"func": "(params)=>{\n\t\n}"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "onClick",
|
|
60
|
+
"name": "点击事件",
|
|
61
|
+
"desc": "点击文本时,执行方法",
|
|
62
|
+
"func": "(e)=>{\n\t\n}"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -24,7 +24,6 @@ var FunctionDesign = function FunctionDesign(_ref) {
|
|
|
24
24
|
defaultExpandDeep = _ref.defaultExpandDeep,
|
|
25
25
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
26
26
|
var ctx = (0, _ContextProvider.useContext)();
|
|
27
|
-
var treeRef = (0, _react.useRef)(null);
|
|
28
27
|
var _useState = (0, _react.useState)([]),
|
|
29
28
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
30
29
|
treeData = _useState2[0],
|
|
@@ -54,7 +53,6 @@ var FunctionDesign = function FunctionDesign(_ref) {
|
|
|
54
53
|
});
|
|
55
54
|
}, [expandedKeys]);
|
|
56
55
|
return /*#__PURE__*/_react.default.createElement(_index.default, (0, _extends2.default)({}, props, {
|
|
57
|
-
ref: treeRef,
|
|
58
56
|
afterQuery: function afterQuery(_ref3) {
|
|
59
57
|
var code = _ref3.code,
|
|
60
58
|
list = _ref3.list,
|
|
@@ -71,7 +69,8 @@ var FunctionDesign = function FunctionDesign(_ref) {
|
|
|
71
69
|
className: _index2.default['runtime-tree'],
|
|
72
70
|
draggable: false,
|
|
73
71
|
suppressInit: true,
|
|
74
|
-
onDataSetChange: handleDataSetChange
|
|
72
|
+
onDataSetChange: handleDataSetChange,
|
|
73
|
+
asyncLoad: false
|
|
75
74
|
}), children);
|
|
76
75
|
};
|
|
77
76
|
var _default = exports.default = FunctionDesign;
|
|
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _index = _interopRequireDefault(require("./index"));
|
|
10
11
|
var _excluded = ["children"];
|
|
11
12
|
var FunctionLive = function FunctionLive(_ref) {
|
|
12
13
|
var children = _ref.children,
|
|
13
14
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, props, children);
|
|
15
16
|
};
|
|
16
17
|
var _default = exports.default = FunctionLive;
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -22,7 +23,8 @@ var _index = require("../../../../index");
|
|
|
22
23
|
var _helper = require("../../../engine/tools/helper");
|
|
23
24
|
var _treePropsDefault = _interopRequireDefault(require("../../../engine/meta/tree.props.default.json"));
|
|
24
25
|
var _index2 = _interopRequireDefault(require("./index.less"));
|
|
25
|
-
var _excluded = ["id", "wrapperRef", "className", "dataset", "width", "height", "showLine", "defaultExpandDeep", "actions", "editable", "showRootAdd", "rootAddSetting", "doubleClickExpand", "onDoubleClick", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "onTreeNodeRender", "treeNodeIcon", "advance"];
|
|
26
|
+
var _excluded = ["id", "wrapperRef", "className", "dataset", "width", "height", "showLine", "defaultExpandDeep", "actions", "editable", "showRootAdd", "onlyRoot", "rootAddSetting", "doubleClickExpand", "onDoubleClick", "treeNodeCheckable", "treeNodeDisableCheckbox", "treeNodeDisable", "onTreeNodeRender", "treeNodeIcon", "advance", "cancelSelect", "defaultSelect"];
|
|
27
|
+
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
26
28
|
var LCTree = function LCTree(_ref) {
|
|
27
29
|
var id = _ref.id,
|
|
28
30
|
wrapperRef = _ref.wrapperRef,
|
|
@@ -35,6 +37,7 @@ var LCTree = function LCTree(_ref) {
|
|
|
35
37
|
actions = _ref.actions,
|
|
36
38
|
editable = _ref.editable,
|
|
37
39
|
showRootAdd = _ref.showRootAdd,
|
|
40
|
+
onlyRoot = _ref.onlyRoot,
|
|
38
41
|
rootAddSetting = _ref.rootAddSetting,
|
|
39
42
|
doubleClickExpand = _ref.doubleClickExpand,
|
|
40
43
|
onDoubleClick = _ref.onDoubleClick,
|
|
@@ -44,15 +47,26 @@ var LCTree = function LCTree(_ref) {
|
|
|
44
47
|
onTreeNodeRender = _ref.onTreeNodeRender,
|
|
45
48
|
_treeNodeIcon = _ref.treeNodeIcon,
|
|
46
49
|
advance = _ref.advance,
|
|
50
|
+
cancelSelect = _ref.cancelSelect,
|
|
51
|
+
defaultSelect = _ref.defaultSelect,
|
|
47
52
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
48
53
|
var ctx = (0, _ContextProvider.useContext)();
|
|
49
54
|
var boxRef = (0, _react.useRef)();
|
|
55
|
+
var apiRef = (0, _react.useRef)();
|
|
50
56
|
var treeRef = (0, _react.useRef)();
|
|
57
|
+
var _useState = (0, _react.useState)([]),
|
|
58
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
59
|
+
selectedKeys = _useState2[0],
|
|
60
|
+
setSelectedKeys = _useState2[1];
|
|
51
61
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
52
62
|
return boxRef.current;
|
|
53
63
|
});
|
|
54
|
-
(0, _react.useImperativeHandle)(
|
|
55
|
-
return
|
|
64
|
+
(0, _react.useImperativeHandle)(apiRef, function () {
|
|
65
|
+
return {
|
|
66
|
+
getInstance: function getInstance() {
|
|
67
|
+
return treeRef.current;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
56
70
|
});
|
|
57
71
|
var handleMount = (0, _ahooks.useMemoizedFn)(function (params) {
|
|
58
72
|
ctx.doAction(advance.events.onMount, {
|
|
@@ -79,6 +93,12 @@ var LCTree = function LCTree(_ref) {
|
|
|
79
93
|
e: e
|
|
80
94
|
});
|
|
81
95
|
});
|
|
96
|
+
var handleDrop = (0, _ahooks.useMemoizedFn)(function (info, dragInfo) {
|
|
97
|
+
ctx.doAction(advance.events.onCheck, {
|
|
98
|
+
info: info,
|
|
99
|
+
dragInfo: dragInfo
|
|
100
|
+
});
|
|
101
|
+
});
|
|
82
102
|
var events = (0, _ahooks.useCreation)(function () {
|
|
83
103
|
if (advance !== null && advance !== void 0 && advance.events) {
|
|
84
104
|
var _events = {};
|
|
@@ -87,29 +107,53 @@ var LCTree = function LCTree(_ref) {
|
|
|
87
107
|
if (advance.events.processDataSource) _events.dataToTreeFormat = handleProcessDataSource;
|
|
88
108
|
if (advance.events.onDoubleClick) _events.onNodeDoubleClick = handleNodeDoubleClick;
|
|
89
109
|
if (advance.events.onCheck) _events.onCheck = handleCheck;
|
|
110
|
+
if (advance.events.onDrop) _events.onDrop = handleDrop;
|
|
90
111
|
return _events;
|
|
91
112
|
}
|
|
92
113
|
return {};
|
|
93
114
|
}, [advance === null || advance === void 0 ? void 0 : advance.events]);
|
|
94
|
-
var
|
|
95
|
-
if (
|
|
96
|
-
|
|
97
|
-
// doAction('drag', {
|
|
98
|
-
// get: { datasetCode: dataSetKey },
|
|
99
|
-
// post: {
|
|
100
|
-
// fromId: info.dragNode.props.dataRef[PRIMARY],
|
|
101
|
-
// toId: info.node.props.dataRef[PRIMARY],
|
|
102
|
-
// }
|
|
103
|
-
// }, {
|
|
104
|
-
// showConfirm: false,
|
|
105
|
-
// callback: (success) => success && onLdQuery()
|
|
106
|
-
// });
|
|
115
|
+
var handleSelect = (0, _ahooks.useMemoizedFn)(function (_selectedKeys, e) {
|
|
116
|
+
if (cancelSelect || e.selected) {
|
|
117
|
+
setSelectedKeys(_selectedKeys);
|
|
107
118
|
}
|
|
119
|
+
ctx.doAction(advance.events.onSelect, {
|
|
120
|
+
checkedKeys: _selectedKeys,
|
|
121
|
+
e: e
|
|
122
|
+
});
|
|
108
123
|
});
|
|
124
|
+
var afterInit = (0, _ahooks.useMemoizedFn)(function (treeData, data) {
|
|
125
|
+
var selected = !(0, _lodash.isNil)(defaultSelect) ? (0, _helper.executeCode)(ctx, defaultSelect, ['treeData'], treeData) : null;
|
|
126
|
+
selected && handleSelect(selected, {
|
|
127
|
+
selected: true,
|
|
128
|
+
selectedNodes: selected.map(function (key) {
|
|
129
|
+
return (0, _lodash.keyBy)(data, PRIMARY)[key];
|
|
130
|
+
})
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
var handleAction = function handleAction(action, params) {
|
|
134
|
+
var doAction = function doAction() {
|
|
135
|
+
ctx.doAction(action.actionPool, params);
|
|
136
|
+
};
|
|
137
|
+
if (action.riskLevel === 'danger') {
|
|
138
|
+
_base.Modal.confirm({
|
|
139
|
+
title: "\u786E\u8BA4\u6267\u884C".concat(action.name, "\u884C\u4E3A\u64CD\u4F5C\u5417\uFF1F"),
|
|
140
|
+
onOk: doAction
|
|
141
|
+
});
|
|
142
|
+
} else if (action.riskLevel === 'destroy') {
|
|
143
|
+
(0, _base.recheck)({
|
|
144
|
+
title: "\u786E\u8BA4\u6267\u884C".concat(action.name, "\u884C\u4E3A\u64CD\u4F5C\u5417\uFF1F"),
|
|
145
|
+
checkWords: "\u6267\u884C".concat(action.name),
|
|
146
|
+
onOk: doAction
|
|
147
|
+
});
|
|
148
|
+
} else {
|
|
149
|
+
doAction();
|
|
150
|
+
}
|
|
151
|
+
};
|
|
109
152
|
return /*#__PURE__*/_react.default.createElement(_Wrapper.default, {
|
|
110
153
|
id: id,
|
|
111
154
|
displayName: "Tree",
|
|
112
|
-
getTargetDom: getTargetDom
|
|
155
|
+
getTargetDom: getTargetDom,
|
|
156
|
+
api: apiRef
|
|
113
157
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
114
158
|
ref: boxRef,
|
|
115
159
|
style: {
|
|
@@ -133,14 +177,16 @@ var LCTree = function LCTree(_ref) {
|
|
|
133
177
|
return ctx.doAction(rootAddSetting.actionPool);
|
|
134
178
|
}
|
|
135
179
|
} : null,
|
|
180
|
+
onlyRoot: onlyRoot,
|
|
136
181
|
rightMenus: function rightMenus() {
|
|
137
182
|
return actions.todoList.map(function (action) {
|
|
138
183
|
return {
|
|
139
184
|
key: (0, _utils.suid)(),
|
|
140
185
|
name: action.name,
|
|
141
186
|
onClick: function onClick(_, data) {
|
|
142
|
-
|
|
143
|
-
data: data
|
|
187
|
+
handleAction(action, {
|
|
188
|
+
data: data,
|
|
189
|
+
datasetCode: dataset === null || dataset === void 0 ? void 0 : dataset.code
|
|
144
190
|
});
|
|
145
191
|
},
|
|
146
192
|
resource: action.serial,
|
|
@@ -181,163 +227,171 @@ var LCTree = function LCTree(_ref) {
|
|
|
181
227
|
onTreeNodeRender: onTreeNodeRender ? function (title, i) {
|
|
182
228
|
return (0, _helper.executeCode)(ctx, onTreeNodeRender, ['title', 'item'], title, i);
|
|
183
229
|
} : null,
|
|
184
|
-
|
|
230
|
+
selectedKeys: selectedKeys,
|
|
231
|
+
onSelect: handleSelect,
|
|
232
|
+
afterInit: afterInit
|
|
185
233
|
}, events, props))));
|
|
186
234
|
};
|
|
187
235
|
LCTree.propTypes = {
|
|
188
|
-
/**
|
|
189
|
-
* @name 唯一标识
|
|
190
|
-
* @type string
|
|
191
|
-
* @disabled true
|
|
236
|
+
/**
|
|
237
|
+
* @name 唯一标识
|
|
238
|
+
* @type string
|
|
239
|
+
* @disabled true
|
|
192
240
|
*/
|
|
193
241
|
id: _propTypes.default.string.isRequired,
|
|
194
|
-
/**
|
|
195
|
-
* @name 数据集
|
|
196
|
-
* @type _DataSetSelector
|
|
242
|
+
/**
|
|
243
|
+
* @name 数据集
|
|
244
|
+
* @type _DataSetSelector
|
|
197
245
|
*/
|
|
198
246
|
dataset: _propTypes.default.shape({
|
|
199
247
|
code: _propTypes.default.string.isRequired,
|
|
200
248
|
uid: _propTypes.default.string.isRequired
|
|
201
249
|
}),
|
|
202
|
-
/**
|
|
203
|
-
* @name 标题
|
|
204
|
-
* @type string
|
|
205
|
-
* @disabled true
|
|
250
|
+
/**
|
|
251
|
+
* @name 标题
|
|
252
|
+
* @type string
|
|
253
|
+
* @disabled true
|
|
206
254
|
*/
|
|
207
255
|
title: _propTypes.default.string,
|
|
208
|
-
/**
|
|
209
|
-
* @name 是否只读
|
|
210
|
-
* @type boolean
|
|
256
|
+
/**
|
|
257
|
+
* @name 是否只读
|
|
258
|
+
* @type boolean
|
|
211
259
|
*/
|
|
212
260
|
readOnly: _propTypes.default.bool,
|
|
213
|
-
/**
|
|
214
|
-
* @name 支持拖拽
|
|
215
|
-
* @type boolean
|
|
261
|
+
/**
|
|
262
|
+
* @name 支持拖拽
|
|
263
|
+
* @type boolean
|
|
216
264
|
*/
|
|
217
265
|
draggable: _propTypes.default.bool,
|
|
218
|
-
/**
|
|
219
|
-
* @name 异步加载
|
|
220
|
-
* @type boolean
|
|
266
|
+
/**
|
|
267
|
+
* @name 异步加载
|
|
268
|
+
* @type boolean
|
|
221
269
|
*/
|
|
222
270
|
asyncLoad: _propTypes.default.bool,
|
|
223
|
-
/**
|
|
224
|
-
* @name 异步加载Key
|
|
225
|
-
* @type string
|
|
271
|
+
/**
|
|
272
|
+
* @name 异步加载Key
|
|
273
|
+
* @type string
|
|
226
274
|
*/
|
|
227
275
|
iparentid: _propTypes.default.string,
|
|
228
|
-
/**
|
|
229
|
-
* @name 宽度
|
|
230
|
-
* @type string
|
|
276
|
+
/**
|
|
277
|
+
* @name 宽度
|
|
278
|
+
* @type string
|
|
231
279
|
*/
|
|
232
280
|
width: _propTypes.default.string,
|
|
233
|
-
/**
|
|
234
|
-
* @name 高度
|
|
235
|
-
* @type string
|
|
281
|
+
/**
|
|
282
|
+
* @name 高度
|
|
283
|
+
* @type string
|
|
236
284
|
*/
|
|
237
285
|
height: _propTypes.default.string,
|
|
238
|
-
/**
|
|
239
|
-
* @name 显示线
|
|
240
|
-
* @type bool
|
|
286
|
+
/**
|
|
287
|
+
* @name 显示线
|
|
288
|
+
* @type bool
|
|
241
289
|
*/
|
|
242
290
|
showLine: _propTypes.default.bool,
|
|
243
|
-
/**
|
|
244
|
-
* @name 展示字段
|
|
245
|
-
* @type string
|
|
291
|
+
/**
|
|
292
|
+
* @name 展示字段
|
|
293
|
+
* @type string
|
|
246
294
|
*/
|
|
247
295
|
treeNodeTitle: _propTypes.default.string,
|
|
248
|
-
/**
|
|
249
|
-
* @name 展示字段
|
|
250
|
-
* @type string
|
|
296
|
+
/**
|
|
297
|
+
* @name 展示字段
|
|
298
|
+
* @type string
|
|
251
299
|
*/
|
|
252
300
|
defaultExpandDeep: _propTypes.default.string,
|
|
253
|
-
/**
|
|
254
|
-
* @name 显示图标
|
|
255
|
-
* @type bool
|
|
301
|
+
/**
|
|
302
|
+
* @name 显示图标
|
|
303
|
+
* @type bool
|
|
256
304
|
*/
|
|
257
305
|
showIcon: _propTypes.default.bool,
|
|
258
|
-
/**
|
|
259
|
-
* @name 节点图标设置
|
|
260
|
-
* @type array
|
|
306
|
+
/**
|
|
307
|
+
* @name 节点图标设置
|
|
308
|
+
* @type array
|
|
261
309
|
*/
|
|
262
310
|
treeNodeIcon: _propTypes.default.array,
|
|
263
|
-
/**
|
|
264
|
-
* @name 是否显示根节点
|
|
265
|
-
* @type bool
|
|
311
|
+
/**
|
|
312
|
+
* @name 是否显示根节点
|
|
313
|
+
* @type bool
|
|
266
314
|
*/
|
|
267
315
|
showRootAdd: _propTypes.default.bool,
|
|
268
|
-
/**
|
|
269
|
-
* @name
|
|
270
|
-
* @type
|
|
316
|
+
/**
|
|
317
|
+
* @name 是否只有唯一一个根节点
|
|
318
|
+
* @type bool
|
|
319
|
+
*/
|
|
320
|
+
onlyRoot: _propTypes.default.bool,
|
|
321
|
+
/**
|
|
322
|
+
* @name 根节点配置
|
|
323
|
+
* @type object
|
|
271
324
|
*/
|
|
272
325
|
rootAddSetting: _propTypes.default.object,
|
|
273
|
-
/**
|
|
274
|
-
* @name 节点操作项
|
|
275
|
-
* @type object
|
|
326
|
+
/**
|
|
327
|
+
* @name 节点操作项
|
|
328
|
+
* @type object
|
|
276
329
|
*/
|
|
277
330
|
actions: _propTypes.default.object,
|
|
278
|
-
/**
|
|
279
|
-
* @name 双击收缩节点
|
|
280
|
-
* @type bool
|
|
331
|
+
/**
|
|
332
|
+
* @name 双击收缩节点
|
|
333
|
+
* @type bool
|
|
281
334
|
*/
|
|
282
335
|
doubleClickExpand: _propTypes.default.bool,
|
|
283
|
-
/**
|
|
284
|
-
* @name 复选框
|
|
285
|
-
* @type bool
|
|
336
|
+
/**
|
|
337
|
+
* @name 复选框
|
|
338
|
+
* @type bool
|
|
286
339
|
*/
|
|
287
340
|
checkable: _propTypes.default.bool,
|
|
288
|
-
/**
|
|
289
|
-
* @name 节点是否有复选框
|
|
290
|
-
* @type _JSEditor
|
|
291
|
-
* @default "function treeNodeCheckable(item) { \n return true; \n}"
|
|
341
|
+
/**
|
|
342
|
+
* @name 节点是否有复选框
|
|
343
|
+
* @type _JSEditor
|
|
344
|
+
* @default "function treeNodeCheckable(item) { \n return true; \n}"
|
|
292
345
|
*/
|
|
293
346
|
treeNodeCheckable: _propTypes.default.string,
|
|
294
|
-
/**
|
|
295
|
-
* @name 节点复选框是否禁用
|
|
296
|
-
* @type _JSEditor
|
|
297
|
-
* @default "function treeNodeDisableCheckbox(item) { \n return false; \n}"
|
|
347
|
+
/**
|
|
348
|
+
* @name 节点复选框是否禁用
|
|
349
|
+
* @type _JSEditor
|
|
350
|
+
* @default "function treeNodeDisableCheckbox(item) { \n return false; \n}"
|
|
298
351
|
*/
|
|
299
352
|
treeNodeDisableCheckbox: _propTypes.default.string,
|
|
300
|
-
/**
|
|
301
|
-
* @name 节点是否禁用
|
|
302
|
-
* @type _JSEditor
|
|
303
|
-
* @default "function treeNodeDisable(item) { \n return false; \n}"
|
|
353
|
+
/**
|
|
354
|
+
* @name 节点是否禁用
|
|
355
|
+
* @type _JSEditor
|
|
356
|
+
* @default "function treeNodeDisable(item) { \n return false; \n}"
|
|
304
357
|
*/
|
|
305
358
|
treeNodeDisable: _propTypes.default.string,
|
|
306
|
-
/**
|
|
307
|
-
* @name 节点定制渲染
|
|
308
|
-
* @type _JSEditor
|
|
309
|
-
* @default "function onTreeNodeRender(title, item) { \n return title; \n}"
|
|
359
|
+
/**
|
|
360
|
+
* @name 节点定制渲染
|
|
361
|
+
* @type _JSEditor
|
|
362
|
+
* @default "function onTreeNodeRender(title, item) { \n return title; \n}"
|
|
310
363
|
*/
|
|
311
364
|
onTreeNodeRender: _propTypes.default.string,
|
|
312
|
-
/**
|
|
313
|
-
* @name 组件首次渲染时
|
|
314
|
-
* @type _JSEditor
|
|
365
|
+
/**
|
|
366
|
+
* @name 组件首次渲染时
|
|
367
|
+
* @type _JSEditor
|
|
315
368
|
*/
|
|
316
369
|
onMount: _propTypes.default.string,
|
|
317
|
-
/**
|
|
318
|
-
* @name 组件卸载时
|
|
319
|
-
* @type _JSEditor
|
|
370
|
+
/**
|
|
371
|
+
* @name 组件卸载时
|
|
372
|
+
* @type _JSEditor
|
|
320
373
|
*/
|
|
321
374
|
onUnmount: _propTypes.default.string,
|
|
322
|
-
/**
|
|
323
|
-
* @name 数据预处理
|
|
324
|
-
* @type _JSEditor
|
|
375
|
+
/**
|
|
376
|
+
* @name 数据预处理
|
|
377
|
+
* @type _JSEditor
|
|
325
378
|
*/
|
|
326
379
|
processDataSource: _propTypes.default.string,
|
|
327
|
-
/**
|
|
328
|
-
* @name 双击事件
|
|
329
|
-
* @type _JSEditor
|
|
380
|
+
/**
|
|
381
|
+
* @name 双击事件
|
|
382
|
+
* @type _JSEditor
|
|
330
383
|
*/
|
|
331
384
|
onDoubleClick: _propTypes.default.string,
|
|
332
|
-
/**
|
|
333
|
-
* @name 复选框选择事件
|
|
334
|
-
* @type _JSEditor
|
|
385
|
+
/**
|
|
386
|
+
* @name 复选框选择事件
|
|
387
|
+
* @type _JSEditor
|
|
388
|
+
*/
|
|
389
|
+
onCheck: _propTypes.default.string,
|
|
390
|
+
/**
|
|
391
|
+
* @name 选中事件
|
|
392
|
+
* @type _JSEditor
|
|
335
393
|
*/
|
|
336
|
-
|
|
394
|
+
onSelect: _propTypes.default.string
|
|
337
395
|
};
|
|
338
396
|
LCTree.defaultProps = (0, _helper.omitBadProps)(_treePropsDefault.default);
|
|
339
|
-
var _default = exports.default =
|
|
340
|
-
return /*#__PURE__*/_react.default.createElement(LCTree, (0, _extends2.default)({
|
|
341
|
-
wrapperRef: ref
|
|
342
|
-
}, props));
|
|
343
|
-
});
|
|
397
|
+
var _default = exports.default = LCTree;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.lc-component-tree{
|
|
2
|
-
}
|
|
3
|
-
.lc-component-tree.runtime-tree {
|
|
4
|
-
|
|
1
|
+
.lc-component-tree{
|
|
2
|
+
}
|
|
3
|
+
.lc-component-tree.runtime-tree {
|
|
4
|
+
|
|
5
5
|
}
|