@luck-design-biz/luckda 1.0.2 → 1.0.4-13tl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/LDActions/index.js +1 -0
- package/es/components/LDActions/index.less +70 -70
- package/es/components/LdFormList/index.js +6 -4
- package/es/components/LdGrid/index.js +5 -8
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdTree/index.less +42 -42
- package/es/helper/action.js +8 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/locales/zh-CN.js +22 -3
- package/es/lowcode/constants/api-url.js +410 -268
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/engine/meta/box.props.default.json +1 -1
- package/es/lowcode/engine/meta/box.props.json +1 -1
- package/es/lowcode/engine/meta/button.api.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.json +3 -5
- package/es/lowcode/engine/meta/components-list.json +6 -6
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/es/lowcode/engine/meta/dialog.props.json +24 -4
- package/es/lowcode/engine/meta/drawer.props.json +1 -1
- package/es/lowcode/engine/meta/fielddate.props.json +0 -1
- package/es/lowcode/engine/meta/fieldeditor.props.json +0 -1
- package/es/lowcode/engine/meta/fieldgroup.props.json +0 -1
- package/es/lowcode/engine/meta/fieldyear.props.json +0 -1
- package/es/lowcode/engine/meta/form.props.json +3 -19
- package/es/lowcode/engine/meta/grouptree.props.json +0 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +30 -30
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/es/lowcode/engine/meta/jsx.props.json +4 -3
- package/es/lowcode/engine/meta/layout.props.default.json +1 -1
- package/es/lowcode/engine/meta/layout.props.json +1 -1
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/table.props.json +0 -7
- package/es/lowcode/engine/meta/tabs.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.json +1 -5
- package/es/lowcode/engine/provider/ContextProvider/index.js +44 -44
- package/es/lowcode/engine/provider/ContextProvider/router.js +21 -1
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +16 -16
- package/es/lowcode/engine/tools/dataProcess.js +76 -76
- package/es/lowcode/painter/Components.js +3 -3
- package/es/lowcode/painter/DesignOperator.js +10 -4
- package/es/lowcode/painter/DesignToolbar.js +27 -28
- package/es/lowcode/painter/History.js +300 -0
- package/es/lowcode/painter/Panel.js +1 -1
- package/es/lowcode/painter/Ribbon.js +38 -2
- package/es/lowcode/painter/components/AdvancePanel.js +30 -37
- 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 +10 -3
- package/es/lowcode/painter/components/ListEditor.js +24 -24
- package/es/lowcode/painter/components/NumberInput.js +28 -28
- package/es/lowcode/painter/components/PanelItem.js +24 -24
- package/es/lowcode/painter/components/PopConfirm.js +8 -8
- package/es/lowcode/painter/components/PopForm.js +27 -27
- package/es/lowcode/painter/components/RuleInput.js +30 -30
- package/es/lowcode/painter/components/SortBox.js +22 -22
- package/es/lowcode/painter/components/TreeEditor.js +76 -8
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +43 -35
- package/es/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/es/lowcode/painter/components/code-editor/DiffEditor.js +41 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/es/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/es/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/es/lowcode/painter/components/field-setting/SettingUI.js +0 -1
- package/es/lowcode/painter/panel-section/ConditionCheck.js +71 -0
- package/es/lowcode/painter/panel-section/DialogSize.js +76 -0
- package/es/lowcode/painter/panel-section/DialogWidthHeight.js +60 -0
- package/es/lowcode/painter/panel-section/FieldState.js +11 -2
- package/es/lowcode/painter/panel-section/Icon.js +23 -23
- package/es/lowcode/painter/panel-section/IconConditionSelector.js +0 -1
- package/es/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +171 -0
- package/es/lowcode/painter/panel-section/JSEditor/index.js +171 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +39 -21
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/es/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/es/lowcode/painter/panel-section/TableZebra.js +5 -1
- package/es/lowcode/painter/panel-section/TextContent.js +10 -2
- package/es/lowcode/painter/style/action-bind-modal.less +104 -104
- 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 +178 -178
- package/es/lowcode/painter/style/display.less +17 -17
- package/es/lowcode/painter/style/dragdrop.less +56 -56
- 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/history.less +46 -0
- 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 +97 -97
- package/es/lowcode/painter/style/number-input.less +19 -19
- package/es/lowcode/painter/style/outline.less +30 -30
- package/es/lowcode/painter/style/page-layout-display.less +27 -27
- package/es/lowcode/painter/style/page-vars.less +25 -25
- package/es/lowcode/painter/style/panel-attrs.less +47 -47
- package/es/lowcode/painter/style/panel-item.less +54 -54
- package/es/lowcode/painter/style/panel.less +100 -100
- 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 +7 -7
- 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/svg/code.svg +3 -3
- package/es/lowcode/painter/svg/expect.svg +9 -9
- package/es/lowcode/view/ErrorBoundary.js +80 -0
- package/es/lowcode/view/Page.js +3 -3
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
- package/es/lowcode/view/lc-components/Box/index.js +4 -4
- package/es/lowcode/view/lc-components/Box/index.less +14 -14
- package/es/lowcode/view/lc-components/Box/meta.json +40 -40
- package/es/lowcode/view/lc-components/Button/index.js +33 -33
- package/es/lowcode/view/lc-components/Button/meta.json +127 -127
- package/es/lowcode/view/lc-components/Button/style.less +2 -2
- package/es/lowcode/view/lc-components/CardList/index.js +123 -123
- package/es/lowcode/view/lc-components/CardList/meta.json +332 -334
- package/es/lowcode/view/lc-components/Dialog/index.js +25 -18
- package/es/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/es/lowcode/view/lc-components/Dialog/meta.json +224 -204
- package/es/lowcode/view/lc-components/Drawer/index.js +16 -16
- package/es/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/es/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/es/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/es/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/es/lowcode/view/lc-components/FieldDate/meta.json +140 -141
- package/es/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/es/lowcode/view/lc-components/FieldEditor/meta.json +137 -138
- package/es/lowcode/view/lc-components/FieldGroup/meta.json +166 -167
- package/es/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
- 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 +128 -129
- package/es/lowcode/view/lc-components/Form/index.js +32 -39
- package/es/lowcode/view/lc-components/Form/meta.json +629 -645
- package/es/lowcode/view/lc-components/GroupTree/index.js +25 -25
- package/es/lowcode/view/lc-components/GroupTree/index.less +11 -11
- package/es/lowcode/view/lc-components/GroupTree/meta.json +82 -83
- package/es/lowcode/view/lc-components/Iframe/meta.json +31 -31
- package/es/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/es/lowcode/view/lc-components/ImEx/meta.json +134 -134
- package/es/lowcode/view/lc-components/Image/index.less +27 -27
- package/es/lowcode/view/lc-components/Image/meta.json +149 -149
- package/es/lowcode/view/lc-components/JSX/RuntimeComp.js +36 -20
- package/es/lowcode/view/lc-components/JSX/meta.json +29 -28
- package/es/lowcode/view/lc-components/Layout/index.js +16 -16
- package/es/lowcode/view/lc-components/Layout/index.less +5 -5
- package/es/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/es/lowcode/view/lc-components/Link/index.less +15 -15
- package/es/lowcode/view/lc-components/Link/meta.json +112 -112
- package/es/lowcode/view/lc-components/Page/meta.json +61 -61
- 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/index.js +1 -1
- package/es/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/es/lowcode/view/lc-components/Section/index.less +7 -7
- package/es/lowcode/view/lc-components/Section/meta.json +108 -108
- package/es/lowcode/view/lc-components/Split/meta.json +53 -53
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +40 -18
- package/es/lowcode/view/lc-components/Table/index.js +152 -151
- package/es/lowcode/view/lc-components/Table/meta.json +443 -450
- package/es/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/es/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/es/lowcode/view/lc-components/Text/meta.json +56 -56
- package/es/lowcode/view/lc-components/Tree/index.js +96 -96
- package/es/lowcode/view/lc-components/Tree/index.less +4 -4
- package/es/lowcode/view/lc-components/Tree/meta.json +353 -357
- package/es/lowcode/view/lc-components/Wrapper.js +2 -0
- package/es/lowcode/view/style/canvas.less +5 -5
- package/es/lowcode/view/style/loading.less +98 -98
- package/es/lowcode/view/style/page.less +7 -7
- package/es/upload/FilesWall/index.js +29 -19
- package/es/upload/FilesWall/index.less +74 -74
- package/es/upload/Form/gridForm.js +16 -6
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +31 -19
- package/es/utils/form.js +25 -24
- package/es/utils/grid.js +10 -2
- package/lib/components/LDActions/index.js +1 -0
- package/lib/components/LDActions/index.less +70 -70
- package/lib/components/LdFormList/index.js +6 -4
- package/lib/components/LdGrid/index.js +5 -8
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdTree/index.less +42 -42
- package/lib/helper/action.js +8 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/locales/zh-CN.js +22 -3
- package/lib/lowcode/constants/api-url.js +411 -270
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/engine/meta/box.props.default.json +1 -1
- package/lib/lowcode/engine/meta/box.props.json +1 -1
- package/lib/lowcode/engine/meta/button.api.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +3 -5
- package/lib/lowcode/engine/meta/components-list.json +6 -6
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -1
- package/lib/lowcode/engine/meta/dialog.props.json +24 -4
- package/lib/lowcode/engine/meta/drawer.props.json +1 -1
- package/lib/lowcode/engine/meta/fielddate.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldeditor.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldgroup.props.json +0 -1
- package/lib/lowcode/engine/meta/fieldyear.props.json +0 -1
- package/lib/lowcode/engine/meta/form.props.json +3 -19
- package/lib/lowcode/engine/meta/grouptree.props.json +0 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +30 -30
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -2
- package/lib/lowcode/engine/meta/jsx.props.json +4 -3
- package/lib/lowcode/engine/meta/layout.props.default.json +1 -1
- package/lib/lowcode/engine/meta/layout.props.json +1 -1
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/table.props.json +0 -7
- package/lib/lowcode/engine/meta/tabs.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.json +1 -5
- package/lib/lowcode/engine/provider/ContextProvider/index.js +44 -44
- package/lib/lowcode/engine/provider/ContextProvider/router.js +22 -1
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +16 -16
- package/lib/lowcode/engine/tools/dataProcess.js +76 -76
- package/lib/lowcode/painter/Components.js +3 -3
- package/lib/lowcode/painter/DesignOperator.js +10 -4
- package/lib/lowcode/painter/DesignToolbar.js +27 -28
- package/lib/lowcode/painter/History.js +308 -0
- package/lib/lowcode/painter/Panel.js +1 -1
- package/lib/lowcode/painter/Ribbon.js +38 -2
- package/lib/lowcode/painter/components/AdvancePanel.js +29 -36
- 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 +10 -3
- package/lib/lowcode/painter/components/ListEditor.js +24 -24
- package/lib/lowcode/painter/components/NumberInput.js +28 -28
- package/lib/lowcode/painter/components/PanelItem.js +24 -24
- package/lib/lowcode/painter/components/PopConfirm.js +8 -8
- package/lib/lowcode/painter/components/PopForm.js +27 -27
- package/lib/lowcode/painter/components/RuleInput.js +30 -30
- package/lib/lowcode/painter/components/SortBox.js +22 -22
- package/lib/lowcode/painter/components/TreeEditor.js +76 -8
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +43 -35
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +25 -25
- package/lib/lowcode/painter/components/code-editor/DiffEditor.js +49 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +23 -23
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +20 -20
- package/lib/lowcode/painter/components/code-editor/JsonEditor.js +25 -25
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +0 -1
- package/lib/lowcode/painter/panel-section/ConditionCheck.js +79 -0
- package/lib/lowcode/painter/panel-section/DialogSize.js +83 -0
- package/lib/lowcode/painter/panel-section/DialogWidthHeight.js +67 -0
- package/lib/lowcode/painter/panel-section/FieldState.js +11 -2
- package/lib/lowcode/painter/panel-section/Icon.js +23 -23
- package/lib/lowcode/painter/panel-section/IconConditionSelector.js +0 -1
- package/lib/lowcode/painter/panel-section/IconSelector.js +16 -16
- package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +178 -0
- package/lib/lowcode/painter/panel-section/JSEditor/index.js +179 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +21 -21
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +7 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +39 -21
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/Size.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/WidthHeight.js +2 -2
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +15 -15
- package/lib/lowcode/painter/panel-section/TableZebra.js +5 -1
- package/lib/lowcode/painter/panel-section/TextContent.js +9 -1
- package/lib/lowcode/painter/style/action-bind-modal.less +104 -104
- 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 +178 -178
- package/lib/lowcode/painter/style/display.less +17 -17
- package/lib/lowcode/painter/style/dragdrop.less +56 -56
- 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/history.less +46 -0
- 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 +97 -97
- package/lib/lowcode/painter/style/number-input.less +19 -19
- package/lib/lowcode/painter/style/outline.less +30 -30
- package/lib/lowcode/painter/style/page-layout-display.less +27 -27
- package/lib/lowcode/painter/style/page-vars.less +25 -25
- package/lib/lowcode/painter/style/panel-attrs.less +47 -47
- package/lib/lowcode/painter/style/panel-item.less +54 -54
- package/lib/lowcode/painter/style/panel.less +100 -100
- 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 +7 -7
- 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/svg/code.svg +3 -3
- package/lib/lowcode/painter/svg/expect.svg +9 -9
- package/lib/lowcode/view/ErrorBoundary.js +88 -0
- package/lib/lowcode/view/Page.js +4 -4
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +4 -2
- package/lib/lowcode/view/lc-components/Box/index.js +4 -4
- package/lib/lowcode/view/lc-components/Box/index.less +14 -14
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -40
- package/lib/lowcode/view/lc-components/Button/index.js +33 -33
- package/lib/lowcode/view/lc-components/Button/meta.json +127 -127
- package/lib/lowcode/view/lc-components/Button/style.less +2 -2
- package/lib/lowcode/view/lc-components/CardList/index.js +123 -123
- package/lib/lowcode/view/lc-components/CardList/meta.json +332 -334
- package/lib/lowcode/view/lc-components/Dialog/index.js +23 -16
- package/lib/lowcode/view/lc-components/Dialog/index.less +12 -12
- package/lib/lowcode/view/lc-components/Dialog/meta.json +224 -204
- package/lib/lowcode/view/lc-components/Drawer/index.js +14 -14
- package/lib/lowcode/view/lc-components/Drawer/index.less +13 -13
- package/lib/lowcode/view/lc-components/Drawer/meta.json +242 -242
- package/lib/lowcode/view/lc-components/FieldColor/meta.json +157 -157
- package/lib/lowcode/view/lc-components/FieldComplex/meta.json +140 -140
- package/lib/lowcode/view/lc-components/FieldDate/meta.json +140 -141
- package/lib/lowcode/view/lc-components/FieldDict/meta.json +138 -138
- package/lib/lowcode/view/lc-components/FieldEditor/meta.json +137 -138
- package/lib/lowcode/view/lc-components/FieldGroup/meta.json +166 -167
- package/lib/lowcode/view/lc-components/FieldNumber/meta.json +143 -143
- 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 +128 -129
- package/lib/lowcode/view/lc-components/Form/index.js +32 -39
- package/lib/lowcode/view/lc-components/Form/meta.json +629 -645
- package/lib/lowcode/view/lc-components/GroupTree/index.js +25 -25
- package/lib/lowcode/view/lc-components/GroupTree/index.less +11 -11
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +82 -83
- package/lib/lowcode/view/lc-components/Iframe/meta.json +31 -31
- package/lib/lowcode/view/lc-components/ImEx/index.js +25 -25
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -7
- package/lib/lowcode/view/lc-components/ImEx/meta.json +134 -134
- package/lib/lowcode/view/lc-components/Image/index.less +27 -27
- package/lib/lowcode/view/lc-components/Image/meta.json +149 -149
- package/lib/lowcode/view/lc-components/JSX/RuntimeComp.js +37 -20
- package/lib/lowcode/view/lc-components/JSX/meta.json +29 -28
- package/lib/lowcode/view/lc-components/Layout/index.js +16 -16
- package/lib/lowcode/view/lc-components/Layout/index.less +5 -5
- package/lib/lowcode/view/lc-components/Layout/meta.json +107 -107
- package/lib/lowcode/view/lc-components/Link/index.less +15 -15
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -112
- package/lib/lowcode/view/lc-components/Page/meta.json +61 -61
- 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/index.js +1 -1
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +59 -59
- package/lib/lowcode/view/lc-components/Section/index.less +7 -7
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -108
- package/lib/lowcode/view/lc-components/Split/meta.json +53 -53
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +39 -17
- package/lib/lowcode/view/lc-components/Table/index.js +152 -151
- package/lib/lowcode/view/lc-components/Table/meta.json +443 -450
- package/lib/lowcode/view/lc-components/Tabs/index.js +23 -23
- package/lib/lowcode/view/lc-components/Tabs/meta.json +113 -113
- package/lib/lowcode/view/lc-components/Text/meta.json +56 -56
- package/lib/lowcode/view/lc-components/Tree/index.js +96 -96
- package/lib/lowcode/view/lc-components/Tree/index.less +4 -4
- package/lib/lowcode/view/lc-components/Tree/meta.json +353 -357
- package/lib/lowcode/view/lc-components/Wrapper.js +2 -0
- package/lib/lowcode/view/style/canvas.less +5 -5
- package/lib/lowcode/view/style/loading.less +98 -98
- package/lib/lowcode/view/style/page.less +7 -7
- package/lib/upload/FilesWall/index.js +26 -16
- package/lib/upload/FilesWall/index.less +74 -74
- package/lib/upload/Form/gridForm.js +13 -3
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +30 -18
- package/lib/utils/form.js +24 -23
- package/lib/utils/grid.js +11 -3
- package/lowcode.js +1 -1
- package/package.json +175 -176
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/es/lowcode/painter/panel-section/JSEditor.js +0 -49
- package/es/lowcode/view/errorBoundary.js +0 -61
- package/lib/lowcode/painter/panel-section/JSEditor.js +0 -57
- package/lib/lowcode/view/errorBoundary.js +0 -69
|
@@ -1,141 +1,140 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "FieldDate",
|
|
3
|
-
"name": "日期",
|
|
4
|
-
"group": "field",
|
|
5
|
-
"desc": "日期类型表单项",
|
|
6
|
-
"icon": "icon-fieldstring",
|
|
7
|
-
"groupName": "表单项",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "fieldAliasName",
|
|
12
|
-
"name": "字段标题",
|
|
13
|
-
"type": "_I18nInput"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"key": "showTime",
|
|
17
|
-
"name": "时间选择",
|
|
18
|
-
"type": "switch",
|
|
19
|
-
"default": false
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"key": "allowClear",
|
|
23
|
-
"name": "允许清除",
|
|
24
|
-
"type": "switch",
|
|
25
|
-
"default": true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"key": "format",
|
|
29
|
-
"name": "日期格式",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"key": "disabledDate",
|
|
34
|
-
"name": "不可选日期",
|
|
35
|
-
"type": "_JSEditor",
|
|
36
|
-
"defaultCode": "function disabledDate(currentDate) {return true}",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "FieldDate",
|
|
3
|
+
"name": "日期",
|
|
4
|
+
"group": "field",
|
|
5
|
+
"desc": "日期类型表单项",
|
|
6
|
+
"icon": "icon-fieldstring",
|
|
7
|
+
"groupName": "表单项",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "fieldAliasName",
|
|
12
|
+
"name": "字段标题",
|
|
13
|
+
"type": "_I18nInput"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "showTime",
|
|
17
|
+
"name": "时间选择",
|
|
18
|
+
"type": "switch",
|
|
19
|
+
"default": false
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "allowClear",
|
|
23
|
+
"name": "允许清除",
|
|
24
|
+
"type": "switch",
|
|
25
|
+
"default": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "format",
|
|
29
|
+
"name": "日期格式",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "disabledDate",
|
|
34
|
+
"name": "不可选日期",
|
|
35
|
+
"type": "_JSEditor",
|
|
36
|
+
"defaultCode": "function disabledDate(currentDate) {return true}",
|
|
37
|
+
"wrapper": "collapse",
|
|
38
|
+
"wrapperProps": { "suppressIcon": true }
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "generalSetting",
|
|
42
|
+
"name": "通用配置",
|
|
43
|
+
"type": "group",
|
|
44
|
+
"props": [
|
|
45
|
+
{
|
|
46
|
+
"key": "col",
|
|
47
|
+
"name": "占列数",
|
|
48
|
+
"type": "radio",
|
|
49
|
+
"repositioning": true,
|
|
50
|
+
"options": [
|
|
51
|
+
{
|
|
52
|
+
"label": "1",
|
|
53
|
+
"value": 1
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"label": "2",
|
|
57
|
+
"value": 2
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "3",
|
|
61
|
+
"value": 3
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"label": "4",
|
|
65
|
+
"value": 4
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"default": 1
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"key": "row",
|
|
72
|
+
"name": "占行数",
|
|
73
|
+
"type": "radio",
|
|
74
|
+
"repositioning": true,
|
|
75
|
+
"options": [
|
|
76
|
+
{
|
|
77
|
+
"label": "1",
|
|
78
|
+
"value": 1
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"label": "2",
|
|
82
|
+
"value": 2
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"label": "3",
|
|
86
|
+
"value": 3
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"label": "4",
|
|
90
|
+
"value": 4
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"default": 1
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"key": "note",
|
|
97
|
+
"name": "字段注释",
|
|
98
|
+
"type": "_I18nInput"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "tip",
|
|
102
|
+
"name": "长说明",
|
|
103
|
+
"type": "_I18nInput"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"key": "placeholder",
|
|
107
|
+
"name": "默认提示",
|
|
108
|
+
"type": "_I18nInput"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"key": "state",
|
|
114
|
+
"name": "状态",
|
|
115
|
+
"desc": "表单项的初始化状态",
|
|
116
|
+
"type": "_FieldState",
|
|
117
|
+
"default": { "value": "normal" },
|
|
118
|
+
"wrapper": "collapse",
|
|
119
|
+
"wrapperProps": {
|
|
120
|
+
"suppressIcon": true
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"advance": {
|
|
125
|
+
"events": [
|
|
126
|
+
{
|
|
127
|
+
"key": "onValueChange",
|
|
128
|
+
"name": "数据变化事件",
|
|
129
|
+
"desc": "在数据变化事件时,执行方法",
|
|
130
|
+
"func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"key": "onChange",
|
|
134
|
+
"name": "值变化事件(onChange)",
|
|
135
|
+
"desc": "原生onChange事件,在值发生变化时,执行方法",
|
|
136
|
+
"func": "function onChange(data, dataString) {\n\t\n}"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": "FieldDict",
|
|
3
|
-
"name": "数据字典",
|
|
4
|
-
"group": "field",
|
|
5
|
-
"desc": "数据字典类型表单项",
|
|
6
|
-
"icon": "icon-fieldstring",
|
|
7
|
-
"groupName": "表单项",
|
|
8
|
-
"order": 1,
|
|
9
|
-
"props": [
|
|
10
|
-
{
|
|
11
|
-
"key": "fieldAliasName",
|
|
12
|
-
"name": "字段标题",
|
|
13
|
-
"type": "_I18nInput"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"key": "display",
|
|
17
|
-
"name": "展现形式",
|
|
18
|
-
"type": "segmented",
|
|
19
|
-
"options": [
|
|
20
|
-
{
|
|
21
|
-
"label": "Select",
|
|
22
|
-
"value": "select"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"label": "Radio",
|
|
26
|
-
"value": "radio"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"default": "select"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"key": "allowClear",
|
|
33
|
-
"name": "允许清除",
|
|
34
|
-
"desc": "仅在展现形式为Select时有效",
|
|
35
|
-
"type": "switch",
|
|
36
|
-
"default": false
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"key": "generalSetting",
|
|
40
|
-
"name": "通用配置",
|
|
41
|
-
"type": "group",
|
|
42
|
-
"props": [
|
|
43
|
-
{
|
|
44
|
-
"key": "col",
|
|
45
|
-
"name": "占列数",
|
|
46
|
-
"type": "radio",
|
|
47
|
-
"repositioning": true,
|
|
48
|
-
"options": [
|
|
49
|
-
{
|
|
50
|
-
"label": "1",
|
|
51
|
-
"value": 1
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"label": "2",
|
|
55
|
-
"value": 2
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"label": "3",
|
|
59
|
-
"value": 3
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"label": "4",
|
|
63
|
-
"value": 4
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"default": 1
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"key": "row",
|
|
70
|
-
"name": "占行数",
|
|
71
|
-
"type": "radio",
|
|
72
|
-
"repositioning": true,
|
|
73
|
-
"options": [
|
|
74
|
-
{
|
|
75
|
-
"label": "1",
|
|
76
|
-
"value": 1
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"label": "2",
|
|
80
|
-
"value": 2
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"label": "3",
|
|
84
|
-
"value": 3
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"label": "4",
|
|
88
|
-
"value": 4
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"default": 1
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"key": "note",
|
|
95
|
-
"name": "字段注释",
|
|
96
|
-
"type": "_I18nInput"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"key": "tip",
|
|
100
|
-
"name": "长说明",
|
|
101
|
-
"type": "_I18nInput"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"key": "placeholder",
|
|
105
|
-
"name": "默认提示",
|
|
106
|
-
"type": "_I18nInput"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"key": "state",
|
|
112
|
-
"name": "状态",
|
|
113
|
-
"desc": "表单项的初始化状态",
|
|
114
|
-
"type": "_FieldState",
|
|
115
|
-
"default": { "value": "normal" },
|
|
116
|
-
"wrapper": "collapse",
|
|
117
|
-
"wrapperProps": {
|
|
118
|
-
"suppressIcon": true
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"advance": {
|
|
123
|
-
"events": [
|
|
124
|
-
{
|
|
125
|
-
"key": "onValueChange",
|
|
126
|
-
"name": "数据变化事件",
|
|
127
|
-
"desc": "在数据变化事件时,执行方法",
|
|
128
|
-
"func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"key": "onChange",
|
|
132
|
-
"name": "值变化事件(onChange)",
|
|
133
|
-
"desc": "原生onChange事件,在值发生变化时,执行方法",
|
|
134
|
-
"func": "function onChange(data) {\n\t\n}"
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"component": "FieldDict",
|
|
3
|
+
"name": "数据字典",
|
|
4
|
+
"group": "field",
|
|
5
|
+
"desc": "数据字典类型表单项",
|
|
6
|
+
"icon": "icon-fieldstring",
|
|
7
|
+
"groupName": "表单项",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "fieldAliasName",
|
|
12
|
+
"name": "字段标题",
|
|
13
|
+
"type": "_I18nInput"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "display",
|
|
17
|
+
"name": "展现形式",
|
|
18
|
+
"type": "segmented",
|
|
19
|
+
"options": [
|
|
20
|
+
{
|
|
21
|
+
"label": "Select",
|
|
22
|
+
"value": "select"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"label": "Radio",
|
|
26
|
+
"value": "radio"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"default": "select"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"key": "allowClear",
|
|
33
|
+
"name": "允许清除",
|
|
34
|
+
"desc": "仅在展现形式为Select时有效",
|
|
35
|
+
"type": "switch",
|
|
36
|
+
"default": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"key": "generalSetting",
|
|
40
|
+
"name": "通用配置",
|
|
41
|
+
"type": "group",
|
|
42
|
+
"props": [
|
|
43
|
+
{
|
|
44
|
+
"key": "col",
|
|
45
|
+
"name": "占列数",
|
|
46
|
+
"type": "radio",
|
|
47
|
+
"repositioning": true,
|
|
48
|
+
"options": [
|
|
49
|
+
{
|
|
50
|
+
"label": "1",
|
|
51
|
+
"value": 1
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "2",
|
|
55
|
+
"value": 2
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "3",
|
|
59
|
+
"value": 3
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"label": "4",
|
|
63
|
+
"value": 4
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"default": 1
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "row",
|
|
70
|
+
"name": "占行数",
|
|
71
|
+
"type": "radio",
|
|
72
|
+
"repositioning": true,
|
|
73
|
+
"options": [
|
|
74
|
+
{
|
|
75
|
+
"label": "1",
|
|
76
|
+
"value": 1
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": "2",
|
|
80
|
+
"value": 2
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": "3",
|
|
84
|
+
"value": 3
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"label": "4",
|
|
88
|
+
"value": 4
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"default": 1
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "note",
|
|
95
|
+
"name": "字段注释",
|
|
96
|
+
"type": "_I18nInput"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"key": "tip",
|
|
100
|
+
"name": "长说明",
|
|
101
|
+
"type": "_I18nInput"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"key": "placeholder",
|
|
105
|
+
"name": "默认提示",
|
|
106
|
+
"type": "_I18nInput"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"key": "state",
|
|
112
|
+
"name": "状态",
|
|
113
|
+
"desc": "表单项的初始化状态",
|
|
114
|
+
"type": "_FieldState",
|
|
115
|
+
"default": { "value": "normal" },
|
|
116
|
+
"wrapper": "collapse",
|
|
117
|
+
"wrapperProps": {
|
|
118
|
+
"suppressIcon": true
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"advance": {
|
|
123
|
+
"events": [
|
|
124
|
+
{
|
|
125
|
+
"key": "onValueChange",
|
|
126
|
+
"name": "数据变化事件",
|
|
127
|
+
"desc": "在数据变化事件时,执行方法",
|
|
128
|
+
"func": "function onValueChange(value, field, data, formProps) {\n\t\n}"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "onChange",
|
|
132
|
+
"name": "值变化事件(onChange)",
|
|
133
|
+
"desc": "原生onChange事件,在值发生变化时,执行方法",
|
|
134
|
+
"func": "function onChange(data) {\n\t\n}"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
}
|