@luck-design-biz/luckda 1.0.0-alpha → 1.0.1-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/Builder/index.js +15 -3
- package/es/components/ComplexItem/index.js +65 -49
- package/es/components/LDActions/index.less +68 -68
- package/es/components/LdAutoForm/index.js +6 -4
- package/es/components/LdFormList/index.js +11 -10
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.js +40 -23
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.less +40 -40
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +15 -14
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +8 -3
- package/es/locales/zh-CN.js +41 -4
- package/es/lowcode/constants/api-url.js +87 -87
- package/es/lowcode/constants/event-topics.js +0 -2
- package/es/lowcode/engine/launcher.js +3 -1
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.default.json +1 -1
- package/es/lowcode/engine/meta/button.props.json +2 -2
- package/es/lowcode/engine/meta/cardlist.props.default.json +1 -0
- package/es/lowcode/engine/meta/cardlist.props.json +2 -1
- package/es/lowcode/engine/meta/components-list.json +6 -126
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +76 -20
- package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/es/lowcode/engine/meta/drawer.props.json +144 -24
- package/es/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/es/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/es/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/es/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/es/lowcode/engine/meta/fielddate.props.json +4 -2
- package/es/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/es/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/es/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/es/lowcode/engine/meta/fielduser.props.json +1 -1
- package/es/lowcode/engine/meta/form.props.default.json +14 -4
- package/es/lowcode/engine/meta/form.props.json +53 -14
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +89 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +2 -1
- package/es/lowcode/engine/meta/iframe.props.json +3 -2
- package/es/lowcode/engine/meta/image.props.default.json +2 -1
- package/es/lowcode/engine/meta/image.props.json +3 -2
- package/es/lowcode/engine/meta/imex.props.default.json +2 -1
- package/es/lowcode/engine/meta/imex.props.json +27 -6
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/es/lowcode/engine/meta/jsx.props.json +1 -1
- package/es/lowcode/engine/meta/layout.props.default.json +1 -1
- package/es/lowcode/engine/meta/layout.props.json +5 -5
- package/es/lowcode/engine/meta/link.props.default.json +2 -1
- package/es/lowcode/engine/meta/link.props.json +3 -2
- package/es/lowcode/engine/meta/page.props.json +6 -0
- package/es/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/es/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.json +2 -1
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +1 -1
- package/es/lowcode/engine/meta/table.props.json +3 -3
- package/es/lowcode/engine/meta/text.props.default.json +4 -2
- package/es/lowcode/engine/meta/text.props.json +8 -6
- package/es/lowcode/engine/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +83 -66
- package/es/lowcode/engine/provider/ContextProvider/router.js +43 -0
- package/es/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -15
- package/es/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/es/lowcode/engine/provider/ContextProvider/utils.js +157 -0
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +1 -2
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/engine/tools/helper.js +28 -2
- package/es/lowcode/engine/tools/initDS.js +263 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/es/lowcode/engine/tools/useCombinedRefs.js +3 -2
- package/es/lowcode/painter/Components.js +2 -2
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +25 -11
- package/es/lowcode/painter/Panel.js +2 -2
- package/es/lowcode/painter/components/AdvancePanel.js +3 -3
- package/es/lowcode/painter/components/Collapse.js +31 -28
- package/es/lowcode/painter/components/ColorInput.js +24 -24
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +29 -29
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/TipIcon.js +16 -0
- package/es/lowcode/painter/components/VarEditor.js +456 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/JSEditor.js +23 -21
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/VisionEditor.js +81 -0
- package/es/lowcode/painter/components/field-setting/SettingUI.js +47 -5
- package/es/lowcode/painter/components/field-setting/index.js +27 -13
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/es/lowcode/painter/index.js +1 -0
- package/es/lowcode/painter/panel-section/BlockEditor/index.js +20 -6
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/es/lowcode/painter/panel-section/ComplexPop.js +242 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/es/lowcode/painter/panel-section/FieldsSetting.js +30 -4
- package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
- package/es/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/es/lowcode/painter/panel-section/Icon.js +32 -27
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +7 -7
- package/es/lowcode/painter/panel-section/IconSelector.js +17 -17
- package/es/lowcode/painter/panel-section/ImpExp.js +1 -27
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +1 -2
- package/es/lowcode/painter/panel-section/LayoutRatio.js +22 -21
- package/es/lowcode/painter/panel-section/PageVars.js +300 -0
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +6 -5
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/es/lowcode/painter/panel-section/TabItems.js +6 -42
- package/es/lowcode/painter/panel-section/TextContent.js +79 -0
- package/es/lowcode/painter/services/complexPop.js +21 -0
- package/es/lowcode/painter/style/action-bind-modal.less +102 -102
- package/es/lowcode/painter/style/actions-editor.less +15 -15
- package/es/lowcode/painter/style/border-editor.less +36 -36
- package/es/lowcode/painter/style/border-radius-selector.less +42 -42
- package/es/lowcode/painter/style/border-selector.less +39 -39
- package/es/lowcode/painter/style/button-type.less +5 -5
- package/es/lowcode/painter/style/collapse.less +28 -28
- package/es/lowcode/painter/style/color-input.less +19 -19
- package/es/lowcode/painter/style/components.less +91 -91
- package/es/lowcode/painter/style/design.less +166 -160
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +10 -10
- package/es/lowcode/painter/style/fields-setting.less +25 -25
- package/es/lowcode/painter/style/font-editor.less +9 -9
- package/es/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/es/lowcode/painter/style/icon-selector.less +22 -22
- package/es/lowcode/painter/style/icon.less +10 -10
- package/es/lowcode/painter/style/impexp.less +7 -7
- package/es/lowcode/painter/style/index.less +6 -6
- package/es/lowcode/painter/style/layout-ratio.less +51 -51
- package/es/lowcode/painter/style/list-editor.less +95 -95
- package/es/lowcode/painter/style/number-input.less +17 -17
- package/es/lowcode/painter/style/outline.less +28 -28
- package/es/lowcode/painter/style/page-layout-display.less +27 -27
- package/es/lowcode/painter/style/page-vars.less +25 -0
- package/es/lowcode/painter/style/panel-attrs.less +43 -43
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +98 -98
- package/es/lowcode/painter/style/pop-confirm.less +17 -17
- package/es/lowcode/painter/style/pop-form.less +19 -19
- package/es/lowcode/painter/style/radio.less +24 -24
- package/es/lowcode/painter/style/ribbon.less +5 -5
- package/es/lowcode/painter/style/rule-input.less +12 -12
- package/es/lowcode/painter/style/split-display.less +18 -18
- package/es/lowcode/painter/style/style-panel.less +37 -37
- package/es/lowcode/painter/style/tabitems.less +90 -90
- package/es/lowcode/painter/style/treedragdrop.less +19 -19
- package/es/lowcode/preview/index.js +1 -0
- package/es/lowcode/view/Canvas.js +24 -22
- package/es/lowcode/view/Loading.js +5 -7
- package/es/lowcode/view/Page.js +37 -15
- package/es/lowcode/view/index.js +1 -0
- package/es/lowcode/view/lc-components/Box/index.js +22 -7
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/index.js +40 -40
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/meta.json +154 -153
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
- package/es/lowcode/view/lc-components/Dialog/index.js +34 -25
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/es/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
- package/es/lowcode/view/lc-components/Drawer/index.js +149 -34
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -131
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
- package/es/lowcode/view/lc-components/FieldDate/meta.json +141 -139
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
- package/es/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/es/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/es/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/es/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/es/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/es/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/es/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/es/lowcode/view/lc-components/FieldYear/meta.json +129 -129
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Form/index.js +76 -51
- package/es/lowcode/view/lc-components/Form/meta.json +645 -610
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/index.js +201 -0
- package/es/lowcode/view/lc-components/GroupTree/meta.json +89 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +33 -32
- package/es/lowcode/view/lc-components/ImEx/index.js +199 -128
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +134 -113
- package/es/lowcode/view/lc-components/Image/meta.json +115 -114
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/es/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/es/lowcode/view/lc-components/Layout/index.js +38 -21
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/es/lowcode/view/lc-components/Link/meta.json +113 -112
- package/es/lowcode/view/lc-components/Page/meta.json +61 -55
- package/es/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/es/lowcode/view/lc-components/Section/index.js +2 -6
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +108 -107
- package/es/lowcode/view/lc-components/Split/index.js +19 -4
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/index.js +175 -148
- package/es/lowcode/view/lc-components/Table/meta.json +450 -450
- package/es/lowcode/view/lc-components/Tabs/index.js +42 -39
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/index.js +9 -2
- package/es/lowcode/view/lc-components/Text/meta.json +56 -56
- package/es/lowcode/view/lc-components/Tree/index.js +102 -107
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/es/lowcode/view/lc-components/Wrapper.js +17 -2
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +98 -84
- package/es/lowcode/view/style/page.less +7 -7
- package/es/services.js +19 -0
- package/es/upload/FilesWall/index.js +13 -13
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/gridForm.js +17 -7
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +18 -18
- package/es/utils/form.js +25 -25
- package/es/utils/grid.js +5 -4
- package/lib/components/Builder/index.js +13 -1
- package/lib/components/ComplexItem/index.js +62 -47
- package/lib/components/LDActions/index.less +68 -68
- package/lib/components/LdAutoForm/index.js +5 -3
- package/lib/components/LdFormList/index.js +12 -11
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.js +40 -23
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.less +40 -40
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +15 -14
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +8 -3
- package/lib/locales/zh-CN.js +41 -4
- package/lib/lowcode/constants/api-url.js +87 -87
- package/lib/lowcode/constants/event-topics.js +1 -3
- package/lib/lowcode/engine/launcher.js +3 -1
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.default.json +1 -1
- package/lib/lowcode/engine/meta/button.props.json +2 -2
- package/lib/lowcode/engine/meta/cardlist.props.default.json +1 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +2 -1
- package/lib/lowcode/engine/meta/components-list.json +6 -126
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +76 -20
- package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/lib/lowcode/engine/meta/drawer.props.json +144 -24
- package/lib/lowcode/engine/meta/fieldcomplex.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldcomplex.props.json +7 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.default.json +16 -0
- package/lib/lowcode/engine/meta/fielddatadic.props.json +73 -0
- package/lib/lowcode/engine/meta/fielddate.props.default.json +2 -0
- package/lib/lowcode/engine/meta/fielddate.props.json +4 -2
- package/lib/lowcode/engine/meta/fieldnumber.props.default.json +1 -0
- package/lib/lowcode/engine/meta/fieldnumber.props.json +3 -2
- package/lib/lowcode/engine/meta/fielduser.props.default.json +1 -1
- package/lib/lowcode/engine/meta/fielduser.props.json +1 -1
- package/lib/lowcode/engine/meta/form.props.default.json +14 -4
- package/lib/lowcode/engine/meta/form.props.json +53 -14
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +89 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +2 -1
- package/lib/lowcode/engine/meta/iframe.props.json +3 -2
- package/lib/lowcode/engine/meta/image.props.default.json +2 -1
- package/lib/lowcode/engine/meta/image.props.json +3 -2
- package/lib/lowcode/engine/meta/imex.props.default.json +2 -1
- package/lib/lowcode/engine/meta/imex.props.json +27 -6
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +65 -42
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -1
- package/lib/lowcode/engine/meta/jsx.props.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.json +5 -5
- package/lib/lowcode/engine/meta/link.props.default.json +2 -1
- package/lib/lowcode/engine/meta/link.props.json +3 -2
- package/lib/lowcode/engine/meta/page.props.json +6 -0
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/pagelayout.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.json +2 -1
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +1 -1
- package/lib/lowcode/engine/meta/table.props.json +3 -3
- package/lib/lowcode/engine/meta/text.props.default.json +4 -2
- package/lib/lowcode/engine/meta/text.props.json +8 -6
- package/lib/lowcode/engine/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +81 -64
- package/lib/lowcode/engine/provider/ContextProvider/router.js +57 -0
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/usePageDataStore.js +9 -7
- package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +38 -16
- package/lib/lowcode/engine/{tools → provider/ContextProvider}/useTodo.js +5 -7
- package/lib/lowcode/engine/provider/ContextProvider/utils.js +170 -0
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +2 -3
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/engine/tools/helper.js +29 -2
- package/lib/lowcode/engine/tools/initDS.js +270 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/lib/lowcode/engine/tools/useCombinedRefs.js +2 -1
- package/lib/lowcode/painter/Components.js +2 -2
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +24 -10
- package/lib/lowcode/painter/Panel.js +2 -2
- package/lib/lowcode/painter/components/AdvancePanel.js +3 -3
- package/lib/lowcode/painter/components/Collapse.js +31 -28
- package/lib/lowcode/painter/components/ColorInput.js +24 -24
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +29 -29
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/TipIcon.js +23 -0
- package/lib/lowcode/painter/components/VarEditor.js +463 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +32 -32
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +23 -21
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/VisionEditor.js +88 -0
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +46 -4
- package/lib/lowcode/painter/components/field-setting/index.js +27 -13
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +2 -1
- package/lib/lowcode/painter/index.js +1 -0
- package/lib/lowcode/painter/panel-section/BlockEditor/index.js +19 -5
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +2 -2
- package/lib/lowcode/painter/panel-section/ComplexPop.js +250 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +8 -0
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +30 -4
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
- package/lib/lowcode/painter/panel-section/I18nInput.js +4 -2
- package/lib/lowcode/painter/panel-section/Icon.js +31 -26
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +6 -6
- package/lib/lowcode/painter/panel-section/IconSelector.js +17 -17
- package/lib/lowcode/painter/panel-section/ImpExp.js +0 -26
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +0 -1
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +22 -21
- package/lib/lowcode/painter/panel-section/PageVars.js +308 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +6 -5
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/lib/lowcode/painter/panel-section/TabItems.js +6 -42
- package/lib/lowcode/painter/panel-section/TextContent.js +87 -0
- package/lib/lowcode/painter/services/complexPop.js +28 -0
- package/lib/lowcode/painter/style/action-bind-modal.less +102 -102
- package/lib/lowcode/painter/style/actions-editor.less +15 -15
- package/lib/lowcode/painter/style/border-editor.less +36 -36
- package/lib/lowcode/painter/style/border-radius-selector.less +42 -42
- package/lib/lowcode/painter/style/border-selector.less +39 -39
- package/lib/lowcode/painter/style/button-type.less +5 -5
- package/lib/lowcode/painter/style/collapse.less +28 -28
- package/lib/lowcode/painter/style/color-input.less +19 -19
- package/lib/lowcode/painter/style/components.less +91 -91
- package/lib/lowcode/painter/style/design.less +166 -160
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +10 -10
- package/lib/lowcode/painter/style/fields-setting.less +25 -25
- package/lib/lowcode/painter/style/font-editor.less +9 -9
- package/lib/lowcode/painter/style/fullscreen-editor.less +17 -17
- package/lib/lowcode/painter/style/icon-selector.less +22 -22
- package/lib/lowcode/painter/style/icon.less +10 -10
- package/lib/lowcode/painter/style/impexp.less +7 -7
- package/lib/lowcode/painter/style/index.less +6 -6
- package/lib/lowcode/painter/style/layout-ratio.less +51 -51
- package/lib/lowcode/painter/style/list-editor.less +95 -95
- package/lib/lowcode/painter/style/number-input.less +17 -17
- package/lib/lowcode/painter/style/outline.less +28 -28
- package/lib/lowcode/painter/style/page-layout-display.less +27 -27
- package/lib/lowcode/painter/style/page-vars.less +25 -0
- package/lib/lowcode/painter/style/panel-attrs.less +43 -43
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +98 -98
- package/lib/lowcode/painter/style/pop-confirm.less +17 -17
- package/lib/lowcode/painter/style/pop-form.less +19 -19
- package/lib/lowcode/painter/style/radio.less +24 -24
- package/lib/lowcode/painter/style/ribbon.less +5 -5
- package/lib/lowcode/painter/style/rule-input.less +12 -12
- package/lib/lowcode/painter/style/split-display.less +18 -18
- package/lib/lowcode/painter/style/style-panel.less +37 -37
- package/lib/lowcode/painter/style/tabitems.less +90 -90
- package/lib/lowcode/painter/style/treedragdrop.less +19 -19
- package/lib/lowcode/preview/index.js +1 -0
- package/lib/lowcode/view/Canvas.js +24 -22
- package/lib/lowcode/view/Loading.js +5 -7
- package/lib/lowcode/view/Page.js +35 -13
- package/lib/lowcode/view/index.js +1 -0
- package/lib/lowcode/view/lc-components/Box/index.js +21 -6
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/index.js +38 -38
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/meta.json +154 -153
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
- package/lib/lowcode/view/lc-components/Dialog/index.js +34 -25
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -8
- package/lib/lowcode/view/lc-components/Dialog/meta.json +204 -150
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
- package/lib/lowcode/view/lc-components/Drawer/index.js +148 -33
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -10
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -131
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -133
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +141 -139
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +167 -167
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -142
- package/lib/lowcode/view/lc-components/FieldRadio/meta.json +115 -115
- package/lib/lowcode/view/lc-components/FieldRegion/meta.json +121 -121
- package/lib/lowcode/view/lc-components/FieldSelect/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldString/meta.json +152 -152
- package/lib/lowcode/view/lc-components/FieldSwitch/meta.json +125 -125
- package/lib/lowcode/view/lc-components/FieldTextarea/meta.json +143 -143
- package/lib/lowcode/view/lc-components/FieldUpload/meta.json +165 -165
- package/lib/lowcode/view/lc-components/FieldUser/meta.json +176 -176
- package/lib/lowcode/view/lc-components/FieldYear/meta.json +129 -129
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js +75 -50
- package/lib/lowcode/view/lc-components/Form/meta.json +645 -610
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.js +209 -0
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +89 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +33 -32
- package/lib/lowcode/view/lc-components/ImEx/index.js +197 -126
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -113
- package/lib/lowcode/view/lc-components/Image/meta.json +115 -114
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +4 -4
- package/lib/lowcode/view/lc-components/JSX/meta.json +28 -28
- package/lib/lowcode/view/lc-components/Layout/index.js +37 -20
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Link/meta.json +113 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +61 -55
- package/lib/lowcode/view/lc-components/PageContent/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageFooter/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageHeader/meta.json +9 -9
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +5 -1
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/lib/lowcode/view/lc-components/Section/index.js +2 -6
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -107
- package/lib/lowcode/view/lc-components/Split/index.js +18 -3
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/index.js +176 -149
- package/lib/lowcode/view/lc-components/Table/meta.json +450 -450
- package/lib/lowcode/view/lc-components/Tabs/index.js +40 -37
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/index.js +8 -1
- package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
- package/lib/lowcode/view/lc-components/Tree/index.js +102 -107
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +357 -357
- package/lib/lowcode/view/lc-components/Wrapper.js +16 -1
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +98 -84
- package/lib/lowcode/view/style/page.less +7 -7
- package/lib/services.js +20 -0
- package/lib/upload/FilesWall/index.js +13 -13
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/gridForm.js +17 -7
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +18 -18
- package/lib/utils/form.js +24 -24
- package/lib/utils/grid.js +4 -3
- package/lowcode.js +1 -1
- package/package.json +175 -175
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "FieldDatadic",
|
|
3
|
+
"name": "数据字典",
|
|
4
|
+
"group": "field",
|
|
5
|
+
"desc": "数据字典类型表单项",
|
|
6
|
+
"icon": "icon-fieldstring",
|
|
7
|
+
"groupName": "表单项",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "alias",
|
|
12
|
+
"name": "字典key",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "valueField",
|
|
17
|
+
"name": "实际值字段",
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"key": "labelField",
|
|
22
|
+
"name": "翻译值字段",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"key": "display",
|
|
27
|
+
"name": "展现形式",
|
|
28
|
+
"type": "segmented",
|
|
29
|
+
"options": [
|
|
30
|
+
{
|
|
31
|
+
"label": "Select",
|
|
32
|
+
"value": "select"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "Radio",
|
|
36
|
+
"value": "radio"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"default": "select"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"key": "multiple",
|
|
43
|
+
"name": "多选",
|
|
44
|
+
"desc": "仅在展现形式为Select时有效",
|
|
45
|
+
"type": "switch",
|
|
46
|
+
"default": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "isTree",
|
|
50
|
+
"name": "树形结构",
|
|
51
|
+
"desc": "用于规定树形结构的数据字典,仅在展现形式为Select时有效",
|
|
52
|
+
"type": "switch",
|
|
53
|
+
"default": false
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"key": "allowClear",
|
|
57
|
+
"name": "允许清除",
|
|
58
|
+
"desc": "仅在展现形式为Select时有效",
|
|
59
|
+
"type": "switch",
|
|
60
|
+
"default": false
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"advance": {
|
|
64
|
+
"events": [
|
|
65
|
+
{
|
|
66
|
+
"key": "onChange",
|
|
67
|
+
"name": "数据变化事件",
|
|
68
|
+
"desc": "在数据变化事件时,执行方法",
|
|
69
|
+
"func": "function onChange(data) {\n\t\n}"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
{
|
|
16
16
|
"key": "showTime",
|
|
17
17
|
"name": "时间选择",
|
|
18
|
-
"type": "switch"
|
|
18
|
+
"type": "switch",
|
|
19
|
+
"default": false
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
"key": "allowClear",
|
|
22
23
|
"name": "允许清除",
|
|
23
|
-
"type": "switch"
|
|
24
|
+
"type": "switch",
|
|
25
|
+
"default": true
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
"key": "format",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
{
|
|
16
16
|
"key": "step",
|
|
17
17
|
"name": "步数",
|
|
18
|
-
"type": "number"
|
|
18
|
+
"type": "number",
|
|
19
|
+
"default": 1
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
"key": "min",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
{
|
|
26
27
|
"key": "max",
|
|
27
28
|
"name": "最大值",
|
|
28
|
-
"type": "
|
|
29
|
+
"type": "number"
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
32
|
"key": "addonBefore",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"showSave": true,
|
|
11
11
|
"saveTitle": "保存",
|
|
12
12
|
"settingLayout": "bottom",
|
|
13
|
+
"getContainer": "page_content",
|
|
13
14
|
"blocks": [
|
|
14
15
|
{
|
|
15
16
|
"id": "block_main",
|
|
@@ -30,16 +31,25 @@
|
|
|
30
31
|
"serialEffect": "hidden",
|
|
31
32
|
"header": "collapse",
|
|
32
33
|
"blockSettings": {
|
|
33
|
-
"
|
|
34
|
+
"auto": {
|
|
34
35
|
"readOnly": false,
|
|
35
|
-
"
|
|
36
|
+
"cols": 4
|
|
36
37
|
},
|
|
37
|
-
"
|
|
38
|
+
"grid": {
|
|
39
|
+
"readOnly": false,
|
|
40
|
+
"suppressPreset": false,
|
|
41
|
+
"height": "100%",
|
|
42
|
+
"bordered": false,
|
|
43
|
+
"draggable": false,
|
|
44
|
+
"orderByAdd": "asc",
|
|
45
|
+
"suppressActions": false,
|
|
46
|
+
"actionsColumnWidth": 160
|
|
47
|
+
},
|
|
48
|
+
"writer": {
|
|
38
49
|
"readOnly": false,
|
|
39
50
|
"suppressPreset": false,
|
|
40
51
|
"height": "100%",
|
|
41
52
|
"bordered": false,
|
|
42
|
-
"popTitleKey": "title",
|
|
43
53
|
"draggable": false,
|
|
44
54
|
"orderByAdd": "asc",
|
|
45
55
|
"suppressActions": false,
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"meta.group",
|
|
76
76
|
"build-in"
|
|
77
77
|
]
|
|
78
|
-
]
|
|
78
|
+
],
|
|
79
|
+
"default": "page_content"
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
82
|
"key": "renderFormLeft",
|
|
@@ -128,7 +129,7 @@
|
|
|
128
129
|
{
|
|
129
130
|
"key": "dataset",
|
|
130
131
|
"name": "数据集",
|
|
131
|
-
"desc": "
|
|
132
|
+
"desc": "选择系统中的可用数据集",
|
|
132
133
|
"type": "_DataSetSelector",
|
|
133
134
|
"component": "form",
|
|
134
135
|
"next": {
|
|
@@ -217,16 +218,25 @@
|
|
|
217
218
|
"type": "_BlockEditor",
|
|
218
219
|
"wrapper": "hidden",
|
|
219
220
|
"default": {
|
|
220
|
-
"
|
|
221
|
+
"auto": {
|
|
221
222
|
"readOnly": false,
|
|
222
|
-
"
|
|
223
|
+
"cols": 4
|
|
223
224
|
},
|
|
224
|
-
"
|
|
225
|
+
"grid": {
|
|
226
|
+
"readOnly": false,
|
|
227
|
+
"suppressPreset": false,
|
|
228
|
+
"height": "100%",
|
|
229
|
+
"bordered": false,
|
|
230
|
+
"draggable": false,
|
|
231
|
+
"orderByAdd": "asc",
|
|
232
|
+
"suppressActions": false,
|
|
233
|
+
"actionsColumnWidth": 160
|
|
234
|
+
},
|
|
235
|
+
"writer": {
|
|
225
236
|
"readOnly": false,
|
|
226
237
|
"suppressPreset": false,
|
|
227
238
|
"height": "100%",
|
|
228
239
|
"bordered": false,
|
|
229
|
-
"popTitleKey": "title",
|
|
230
240
|
"draggable": false,
|
|
231
241
|
"orderByAdd": "asc",
|
|
232
242
|
"suppressActions": false,
|
|
@@ -262,7 +272,7 @@
|
|
|
262
272
|
"name": "格式化默认数据",
|
|
263
273
|
"desc": "格式化新增时默认数据",
|
|
264
274
|
"type": "_JSEditor",
|
|
265
|
-
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return
|
|
275
|
+
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
266
276
|
"mustConfirm": true,
|
|
267
277
|
"wrapper": "collapse",
|
|
268
278
|
"wrapperProps": {
|
|
@@ -283,6 +293,11 @@
|
|
|
283
293
|
}
|
|
284
294
|
],
|
|
285
295
|
"_grid_props": [
|
|
296
|
+
{
|
|
297
|
+
"key": "height",
|
|
298
|
+
"name": "高度",
|
|
299
|
+
"type": "_WidthHeight"
|
|
300
|
+
},
|
|
286
301
|
{
|
|
287
302
|
"key": "readOnly",
|
|
288
303
|
"name": "只读",
|
|
@@ -293,11 +308,6 @@
|
|
|
293
308
|
"name": "关闭预设",
|
|
294
309
|
"type": "switch"
|
|
295
310
|
},
|
|
296
|
-
{
|
|
297
|
-
"key": "height",
|
|
298
|
-
"name": "高度",
|
|
299
|
-
"type": "_WidthHeight"
|
|
300
|
-
},
|
|
301
311
|
{
|
|
302
312
|
"key": "bordered",
|
|
303
313
|
"name": "边框线",
|
|
@@ -308,6 +318,11 @@
|
|
|
308
318
|
"name": "拖拽排序",
|
|
309
319
|
"type": "switch"
|
|
310
320
|
},
|
|
321
|
+
{
|
|
322
|
+
"key": "suppressbatch",
|
|
323
|
+
"name": "关闭批量",
|
|
324
|
+
"type": "switch"
|
|
325
|
+
},
|
|
311
326
|
{
|
|
312
327
|
"key": "orderByAdd",
|
|
313
328
|
"name": "排序方式",
|
|
@@ -323,6 +338,30 @@
|
|
|
323
338
|
}
|
|
324
339
|
]
|
|
325
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"key": "operates",
|
|
343
|
+
"name": "基础操作",
|
|
344
|
+
"type": "checkbox",
|
|
345
|
+
"options": [
|
|
346
|
+
{
|
|
347
|
+
"label": "添加",
|
|
348
|
+
"value": "add"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"label": "删除",
|
|
352
|
+
"value": "delete"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"label": "修改",
|
|
356
|
+
"value": "update"
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"defaultValue": [
|
|
360
|
+
"add",
|
|
361
|
+
"delete",
|
|
362
|
+
"update"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
326
365
|
{
|
|
327
366
|
"key": "actionsColumn",
|
|
328
367
|
"name": "操作列",
|
|
@@ -364,7 +403,7 @@
|
|
|
364
403
|
"name": "格式化默认数据",
|
|
365
404
|
"desc": "格式化新增时默认数据",
|
|
366
405
|
"type": "_JSEditor",
|
|
367
|
-
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return
|
|
406
|
+
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
368
407
|
"mustConfirm": true,
|
|
369
408
|
"wrapper": "collapse",
|
|
370
409
|
"wrapperProps": {
|
|
@@ -490,7 +529,7 @@
|
|
|
490
529
|
"name": "格式化默认数据",
|
|
491
530
|
"desc": "格式化新增时默认数据",
|
|
492
531
|
"type": "_JSEditor",
|
|
493
|
-
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return
|
|
532
|
+
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
494
533
|
"mustConfirm": true,
|
|
495
534
|
"wrapper": "collapse",
|
|
496
535
|
"wrapperProps": {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "GroupTree",
|
|
3
|
+
"name": "组织树",
|
|
4
|
+
"desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
|
|
5
|
+
"icon": "icon-tree",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"css": "width: 100%; height: 100%;",
|
|
10
|
+
"defaultExpandAll": true,
|
|
11
|
+
"onlySelectLeaf": true,
|
|
12
|
+
"cancelSelect": false,
|
|
13
|
+
"advance": {
|
|
14
|
+
"events": {}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "GroupTree",
|
|
3
|
+
"name": "组织树",
|
|
4
|
+
"desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
|
|
5
|
+
"icon": "icon-tree",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "title",
|
|
18
|
+
"name": "标题",
|
|
19
|
+
"desc": "头部标题",
|
|
20
|
+
"type": "_I18nInput"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "groupClass",
|
|
24
|
+
"name": "组维度",
|
|
25
|
+
"type": "_GroupClassSelector"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "defaultExpandAll",
|
|
29
|
+
"name": "默认展开全部",
|
|
30
|
+
"type": "switch",
|
|
31
|
+
"default": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "onlySelectLeaf",
|
|
35
|
+
"name": "仅叶子可选",
|
|
36
|
+
"desc": "仅叶子节点可被选中,父节点不可选中",
|
|
37
|
+
"type": "switch",
|
|
38
|
+
"default": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "cancelSelect",
|
|
42
|
+
"name": "允许取消选中",
|
|
43
|
+
"desc": "是否可以取消选中",
|
|
44
|
+
"type": "switch",
|
|
45
|
+
"default": false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "defaultSelect",
|
|
49
|
+
"name": "默认选中",
|
|
50
|
+
"desc": "返回默认选中的数据主键",
|
|
51
|
+
"type": "_JSEditor",
|
|
52
|
+
"defaultCode": "function defaultSelect(treeData, firstNode) { \n return firstNode.id; \n}",
|
|
53
|
+
"mustConfirm": true,
|
|
54
|
+
"wrapper": "collapse",
|
|
55
|
+
"wrapperProps": {
|
|
56
|
+
"suppressIcon": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"css": "width: 100%; height: 100%;",
|
|
61
|
+
"advance": {
|
|
62
|
+
"events": [
|
|
63
|
+
{
|
|
64
|
+
"key": "onMount",
|
|
65
|
+
"name": "组件首次渲染时",
|
|
66
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
67
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"key": "onUnmount",
|
|
71
|
+
"name": "组件卸载时",
|
|
72
|
+
"desc": "在组件卸载时,执行方法。",
|
|
73
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"key": "onDoubleClick",
|
|
77
|
+
"name": "双击事件",
|
|
78
|
+
"desc": "树节点双击事件",
|
|
79
|
+
"func": "function onDoubleClick(e, rowData) {\n\t\n}"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "onSelect",
|
|
83
|
+
"name": "选中事件",
|
|
84
|
+
"desc": "节点选中事件",
|
|
85
|
+
"func": "function onSelect(checkedKeys, e) {\n\t\n}"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
"icon": "icon-iframe",
|
|
6
6
|
"group": "basic",
|
|
7
7
|
"groupName": "基础",
|
|
8
|
+
"hidden": true,
|
|
8
9
|
"order": 1,
|
|
9
10
|
"props": [
|
|
10
11
|
{
|
|
11
12
|
"key": "id",
|
|
12
|
-
"
|
|
13
|
+
"name": "唯一标识",
|
|
13
14
|
"type": "string",
|
|
14
15
|
"disabled": true
|
|
15
16
|
},
|
|
@@ -27,6 +28,6 @@
|
|
|
27
28
|
"default": true
|
|
28
29
|
}
|
|
29
30
|
],
|
|
30
|
-
"css":
|
|
31
|
+
"css": "",
|
|
31
32
|
"advance": {}
|
|
32
33
|
}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
"group": "basic",
|
|
6
6
|
"groupName": "基础",
|
|
7
7
|
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
8
|
+
"hidden": true,
|
|
8
9
|
"order": 1,
|
|
9
10
|
"props": [
|
|
10
11
|
{
|
|
11
12
|
"key": "id",
|
|
12
|
-
"
|
|
13
|
+
"name": "唯一标识",
|
|
13
14
|
"type": "string",
|
|
14
15
|
"disabled": true
|
|
15
16
|
},
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
"default": false
|
|
89
90
|
}
|
|
90
91
|
],
|
|
91
|
-
"css":
|
|
92
|
+
"css": "",
|
|
92
93
|
"advance": {
|
|
93
94
|
"events": [
|
|
94
95
|
{
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"group": "basic",
|
|
7
7
|
"groupName": "基础",
|
|
8
8
|
"order": 1,
|
|
9
|
-
"css":
|
|
9
|
+
"css": "",
|
|
10
10
|
"title": "导入|导出",
|
|
11
11
|
"impexpSetting": {
|
|
12
12
|
"customType": false,
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"size": "middle",
|
|
17
17
|
"block": false,
|
|
18
18
|
"type": "primary",
|
|
19
|
+
"serialEffect": "hidden",
|
|
19
20
|
"advance": {
|
|
20
21
|
"events": {}
|
|
21
22
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"props": [
|
|
10
10
|
{
|
|
11
11
|
"key": "id",
|
|
12
|
-
"
|
|
12
|
+
"name": "唯一标识",
|
|
13
13
|
"type": "string",
|
|
14
14
|
"disabled": true
|
|
15
15
|
},
|
|
@@ -80,34 +80,55 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"repositioning": true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"key": "serials",
|
|
86
|
+
"name": "资源串",
|
|
87
|
+
"type": "_SerialsSelector"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "serialEffect",
|
|
91
|
+
"name": "越权效果",
|
|
92
|
+
"type": "segmented",
|
|
93
|
+
"options": [
|
|
94
|
+
{
|
|
95
|
+
"label": "禁用",
|
|
96
|
+
"value": "disable"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"label": "隐藏",
|
|
100
|
+
"value": "hidden"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"default": "hidden"
|
|
83
104
|
}
|
|
84
105
|
],
|
|
85
|
-
"css":
|
|
106
|
+
"css": "",
|
|
86
107
|
"advance": {
|
|
87
108
|
"events": [
|
|
88
109
|
{
|
|
89
110
|
"key": "onMount",
|
|
90
111
|
"name": "组件首次渲染时",
|
|
91
112
|
"desc": "在组件首次渲染时,执行方法",
|
|
92
|
-
"func": "(
|
|
113
|
+
"func": "function onMount() {\n\t\n}"
|
|
93
114
|
},
|
|
94
115
|
{
|
|
95
116
|
"key": "onUnmount",
|
|
96
117
|
"name": "组件卸载时",
|
|
97
118
|
"desc": "在组件卸载时,执行方法。",
|
|
98
|
-
"func": "(
|
|
119
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
99
120
|
},
|
|
100
121
|
{
|
|
101
122
|
"key": "beforeExe",
|
|
102
123
|
"name": "操作执行前",
|
|
103
124
|
"desc": "在导入或导出执行前,执行方法,promise反回false截断执行",
|
|
104
|
-
"func": "(
|
|
125
|
+
"func": "function beforeExe() {\n\t\n}"
|
|
105
126
|
},
|
|
106
127
|
{
|
|
107
128
|
"key": "afterExe",
|
|
108
129
|
"name": "操作执行后",
|
|
109
130
|
"desc": "在导入或导出执行后,执行方法",
|
|
110
|
-
"func": "(
|
|
131
|
+
"func": "function afterExe(success) {\n\t\n}"
|
|
111
132
|
}
|
|
112
133
|
]
|
|
113
134
|
}
|