@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.PAGE_LOAD_MOUNT = exports.LANG_SETTING_SELECT = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
6
|
+
exports.PAGE_LOAD_MOUNT = exports.LANG_SETTING_SELECT = exports.DESIGN_OPERATE_SAVE = exports.COMPONENT_UNMOUNT = exports.COMPONENT_SETTING_CLICK = exports.COMPONENT_REPOSITIONING = exports.COMPONENT_MOUNT = exports.COMPONENT_MODIFY = exports.COMPONENT_MODAL_TOGGLE = exports.COMPONENT_HOVER = exports.COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_END = exports.COMPONENT_DELETE = exports.COMPONENT_APPEND = exports.COMPONENT_ACTIVE = void 0;
|
|
7
7
|
/******************************** 通用Topic开始 ********************************/
|
|
8
8
|
|
|
9
9
|
var PAGE_LOAD_MOUNT = exports.PAGE_LOAD_MOUNT = 'page-load-mount';
|
|
@@ -36,6 +36,8 @@ var COMPONENT_MODAL_TOGGLE = exports.COMPONENT_MODAL_TOGGLE = 'component-modal-t
|
|
|
36
36
|
var COMPONENT_DRAG_OVER = exports.COMPONENT_DRAG_OVER = 'component-drag-over';
|
|
37
37
|
// 组件拖放完成时的事件
|
|
38
38
|
var COMPONENT_DRAG_END = exports.COMPONENT_DRAG_END = 'component-drag-end';
|
|
39
|
+
// 保存事件
|
|
40
|
+
var DESIGN_OPERATE_SAVE = exports.DESIGN_OPERATE_SAVE = 'design-operate-save';
|
|
39
41
|
|
|
40
42
|
/******************************* Design Topic结束 *******************************/
|
|
41
43
|
|
|
File without changes
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
"name": "图标地址",
|
|
99
99
|
"type": "_JSEditor",
|
|
100
100
|
"defaultCode": "function avatarUrl(record) { \n return null; \n}",
|
|
101
|
-
"mustConfirm": true,
|
|
102
101
|
"wrapper": "collapse",
|
|
103
102
|
"wrapperProps": {
|
|
104
103
|
"suppressIcon": true
|
|
@@ -115,7 +114,7 @@
|
|
|
115
114
|
"name": "标题内容",
|
|
116
115
|
"type": "_JSEditor",
|
|
117
116
|
"defaultCode": "function renderTitle(record) { \n return record.sname; \n}",
|
|
118
|
-
"
|
|
117
|
+
"isjsx": true,
|
|
119
118
|
"wrapper": "collapse",
|
|
120
119
|
"wrapperProps": {
|
|
121
120
|
"suppressIcon": true
|
|
@@ -138,7 +137,7 @@
|
|
|
138
137
|
"name": "描述内容",
|
|
139
138
|
"type": "_JSEditor",
|
|
140
139
|
"defaultCode": "function renderDescribe(record) { \n return record.describe; \n}",
|
|
141
|
-
"
|
|
140
|
+
"isjsx": true,
|
|
142
141
|
"wrapper": "collapse",
|
|
143
142
|
"wrapperProps": {
|
|
144
143
|
"suppressIcon": true
|
|
@@ -149,7 +148,7 @@
|
|
|
149
148
|
"name": "自定义",
|
|
150
149
|
"type": "_JSEditor",
|
|
151
150
|
"defaultCode": "function renderContent(record) { \n return null; \n}",
|
|
152
|
-
"
|
|
151
|
+
"isjsx": true,
|
|
153
152
|
"wrapper": "collapse",
|
|
154
153
|
"wrapperProps": {
|
|
155
154
|
"suppressIcon": true
|
|
@@ -232,7 +231,6 @@
|
|
|
232
231
|
"name": "不可选卡片",
|
|
233
232
|
"type": "_JSEditor",
|
|
234
233
|
"defaultCode": "function disabledCheckbox(record) { \n return false; \n}",
|
|
235
|
-
"mustConfirm": true,
|
|
236
234
|
"wrapper": "collapse",
|
|
237
235
|
"wrapperProps": {
|
|
238
236
|
"suppressIcon": true
|
|
@@ -69,18 +69,18 @@
|
|
|
69
69
|
"desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
|
|
70
70
|
"icon": "icon-iframe"
|
|
71
71
|
},
|
|
72
|
-
{
|
|
73
|
-
"component": "Image",
|
|
74
|
-
"name": "图片",
|
|
75
|
-
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
76
|
-
"icon": "icon-image"
|
|
77
|
-
},
|
|
78
72
|
{
|
|
79
73
|
"component": "ImEx",
|
|
80
74
|
"name": "导入导出",
|
|
81
75
|
"desc": "支持导入导出数据的按钮组件。",
|
|
82
76
|
"icon": "icon-imex"
|
|
83
77
|
},
|
|
78
|
+
{
|
|
79
|
+
"component": "Image",
|
|
80
|
+
"name": "图片",
|
|
81
|
+
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
82
|
+
"icon": "icon-image"
|
|
83
|
+
},
|
|
84
84
|
{
|
|
85
85
|
"component": "JSX",
|
|
86
86
|
"name": "jsx代码段",
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"groupName": "基础",
|
|
8
8
|
"order": 1,
|
|
9
9
|
"title": "对话框",
|
|
10
|
+
"size": "custom",
|
|
10
11
|
"width": "700px",
|
|
11
12
|
"height": "50vh",
|
|
12
13
|
"padding": 16,
|
|
@@ -14,7 +15,9 @@
|
|
|
14
15
|
"mask": true,
|
|
15
16
|
"closable": true,
|
|
16
17
|
"destroyOnClose": true,
|
|
17
|
-
"footer":
|
|
18
|
+
"footer": {
|
|
19
|
+
"checked": true
|
|
20
|
+
},
|
|
18
21
|
"okText": "确定",
|
|
19
22
|
"cancelText": "取消",
|
|
20
23
|
"btnGroup": {
|
|
@@ -20,10 +20,16 @@
|
|
|
20
20
|
"type": "_I18nInput",
|
|
21
21
|
"default": "对话框"
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
"key": "size",
|
|
25
|
+
"name": "#展现尺寸",
|
|
26
|
+
"type": "_DialogSize",
|
|
27
|
+
"default": "custom"
|
|
28
|
+
},
|
|
23
29
|
{
|
|
24
30
|
"key": "width",
|
|
25
31
|
"name": "对话框宽度",
|
|
26
|
-
"type": "
|
|
32
|
+
"type": "_DialogWidthHeight",
|
|
27
33
|
"options": [
|
|
28
34
|
{
|
|
29
35
|
"label": "px",
|
|
@@ -42,12 +48,18 @@
|
|
|
42
48
|
"value": "auto"
|
|
43
49
|
}
|
|
44
50
|
],
|
|
51
|
+
"sizeOptions": {
|
|
52
|
+
"small": "540px",
|
|
53
|
+
"default": "700px",
|
|
54
|
+
"large": "1150px",
|
|
55
|
+
"full": "100vw"
|
|
56
|
+
},
|
|
45
57
|
"default": "700px"
|
|
46
58
|
},
|
|
47
59
|
{
|
|
48
60
|
"key": "height",
|
|
49
61
|
"name": "内容区高度",
|
|
50
|
-
"type": "
|
|
62
|
+
"type": "_DialogWidthHeight",
|
|
51
63
|
"options": [
|
|
52
64
|
{
|
|
53
65
|
"label": "px",
|
|
@@ -62,6 +74,12 @@
|
|
|
62
74
|
"value": "auto"
|
|
63
75
|
}
|
|
64
76
|
],
|
|
77
|
+
"sizeOptions": {
|
|
78
|
+
"small": "40vh",
|
|
79
|
+
"default": "60vh",
|
|
80
|
+
"large": "85vh",
|
|
81
|
+
"full": "100vh"
|
|
82
|
+
},
|
|
65
83
|
"default": "50vh"
|
|
66
84
|
},
|
|
67
85
|
{
|
|
@@ -142,8 +160,10 @@
|
|
|
142
160
|
"key": "footer",
|
|
143
161
|
"name": "显示footer",
|
|
144
162
|
"desc": "是否显示底部按钮区域",
|
|
145
|
-
"type": "
|
|
146
|
-
"default":
|
|
163
|
+
"type": "_ConditionCheck",
|
|
164
|
+
"default": {
|
|
165
|
+
"checked": true
|
|
166
|
+
}
|
|
147
167
|
},
|
|
148
168
|
{
|
|
149
169
|
"key": "okText",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"name": "按钮区域左侧渲染",
|
|
84
84
|
"type": "_JSEditor",
|
|
85
85
|
"defaultCode": "function renderFormLeft() { \n return null; \n}",
|
|
86
|
-
"
|
|
86
|
+
"isjsx": true,
|
|
87
87
|
"wrapper": "collapse",
|
|
88
88
|
"wrapperProps": {
|
|
89
89
|
"suppressIcon": true
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"name": "按钮区域右侧渲染",
|
|
95
95
|
"type": "_JSEditor",
|
|
96
96
|
"defaultCode": "function renderFormRight() { \n return null; \n}",
|
|
97
|
-
"
|
|
97
|
+
"isjsx": true,
|
|
98
98
|
"wrapper": "collapse",
|
|
99
99
|
"wrapperProps": {
|
|
100
100
|
"suppressIcon": true
|
|
@@ -273,7 +273,6 @@
|
|
|
273
273
|
"desc": "格式化新增时默认数据",
|
|
274
274
|
"type": "_JSEditor",
|
|
275
275
|
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
276
|
-
"mustConfirm": true,
|
|
277
276
|
"wrapper": "collapse",
|
|
278
277
|
"wrapperProps": {
|
|
279
278
|
"suppressIcon": true
|
|
@@ -285,7 +284,6 @@
|
|
|
285
284
|
"desc": "格式化单表提交数据",
|
|
286
285
|
"type": "_JSEditor",
|
|
287
286
|
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData) { \n return { [dataSetKey]: submitData }; \n}",
|
|
288
|
-
"mustConfirm": true,
|
|
289
287
|
"wrapper": "collapse",
|
|
290
288
|
"wrapperProps": {
|
|
291
289
|
"suppressIcon": true
|
|
@@ -390,7 +388,6 @@
|
|
|
390
388
|
"desc": "重写操列",
|
|
391
389
|
"type": "_JSEditor",
|
|
392
390
|
"defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
|
|
393
|
-
"mustConfirm": true,
|
|
394
391
|
"wrapper": "collapse",
|
|
395
392
|
"wrapperProps": {
|
|
396
393
|
"suppressIcon": true
|
|
@@ -404,7 +401,6 @@
|
|
|
404
401
|
"desc": "格式化新增时默认数据",
|
|
405
402
|
"type": "_JSEditor",
|
|
406
403
|
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
407
|
-
"mustConfirm": true,
|
|
408
404
|
"wrapper": "collapse",
|
|
409
405
|
"wrapperProps": {
|
|
410
406
|
"suppressIcon": true
|
|
@@ -416,7 +412,6 @@
|
|
|
416
412
|
"desc": "格式化单表提交数据",
|
|
417
413
|
"type": "_JSEditor",
|
|
418
414
|
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
|
|
419
|
-
"mustConfirm": true,
|
|
420
415
|
"wrapper": "collapse",
|
|
421
416
|
"wrapperProps": {
|
|
422
417
|
"suppressIcon": true
|
|
@@ -428,7 +423,6 @@
|
|
|
428
423
|
"desc": "重置表格列",
|
|
429
424
|
"type": "_JSEditor",
|
|
430
425
|
"defaultCode": "function columnsReset(columns) { \n return columns; \n}",
|
|
431
|
-
"mustConfirm": true,
|
|
432
426
|
"wrapper": "collapse",
|
|
433
427
|
"wrapperProps": {
|
|
434
428
|
"suppressIcon": true
|
|
@@ -440,7 +434,6 @@
|
|
|
440
434
|
"desc": "加载完成回调",
|
|
441
435
|
"type": "_JSEditor",
|
|
442
436
|
"defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
|
|
443
|
-
"mustConfirm": true,
|
|
444
437
|
"wrapper": "collapse",
|
|
445
438
|
"wrapperProps": {
|
|
446
439
|
"suppressIcon": true
|
|
@@ -516,7 +509,6 @@
|
|
|
516
509
|
"desc": "重写操作列",
|
|
517
510
|
"type": "_JSEditor",
|
|
518
511
|
"defaultCode": "function actionsColumnReset(data, index, actions, params) { \n \t \n}",
|
|
519
|
-
"mustConfirm": true,
|
|
520
512
|
"wrapper": "collapse",
|
|
521
513
|
"wrapperProps": {
|
|
522
514
|
"suppressIcon": true
|
|
@@ -530,7 +522,6 @@
|
|
|
530
522
|
"desc": "格式化新增时默认数据",
|
|
531
523
|
"type": "_JSEditor",
|
|
532
524
|
"defaultCode": "function defaultDataSourceFormat(defaultValues) { \n return {}; \n}",
|
|
533
|
-
"mustConfirm": true,
|
|
534
525
|
"wrapper": "collapse",
|
|
535
526
|
"wrapperProps": {
|
|
536
527
|
"suppressIcon": true
|
|
@@ -542,7 +533,6 @@
|
|
|
542
533
|
"desc": "格式化单表提交数据",
|
|
543
534
|
"type": "_JSEditor",
|
|
544
535
|
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData, behaviorKey) { \n return { [dataSetKey]: { [`${behaviorKey}List`]: submitData } }; \n}",
|
|
545
|
-
"mustConfirm": true,
|
|
546
536
|
"wrapper": "collapse",
|
|
547
537
|
"wrapperProps": {
|
|
548
538
|
"suppressIcon": true
|
|
@@ -554,7 +544,6 @@
|
|
|
554
544
|
"desc": "重置表格列",
|
|
555
545
|
"type": "_JSEditor",
|
|
556
546
|
"defaultCode": "function columnsReset(columns) { \n return columns; \n}",
|
|
557
|
-
"mustConfirm": true,
|
|
558
547
|
"wrapper": "collapse",
|
|
559
548
|
"wrapperProps": {
|
|
560
549
|
"suppressIcon": true
|
|
@@ -566,7 +555,6 @@
|
|
|
566
555
|
"desc": "加载完成回调",
|
|
567
556
|
"type": "_JSEditor",
|
|
568
557
|
"defaultCode": "function onGridFormReady(ref, params, gridForm) { \n\t\n}",
|
|
569
|
-
"mustConfirm": true,
|
|
570
558
|
"wrapper": "collapse",
|
|
571
559
|
"wrapperProps": {
|
|
572
560
|
"suppressIcon": true
|
|
@@ -620,7 +608,6 @@
|
|
|
620
608
|
"name": "自定义操作列",
|
|
621
609
|
"type": "_JSEditor",
|
|
622
610
|
"defaultCode": "function resetActions(data, index, actionList, params) { \n return actionList; \n}",
|
|
623
|
-
"mustConfirm": true,
|
|
624
611
|
"wrapper": "collapse",
|
|
625
612
|
"wrapperProps": {
|
|
626
613
|
"suppressIcon": true
|
|
@@ -631,7 +618,6 @@
|
|
|
631
618
|
"name": "禁止上传类型",
|
|
632
619
|
"type": "_JSEditor",
|
|
633
620
|
"defaultCode": "function forbiddenTypes() { \n return []; \n}",
|
|
634
|
-
"mustConfirm": true,
|
|
635
621
|
"wrapper": "collapse",
|
|
636
622
|
"wrapperProps": {
|
|
637
623
|
"suppressIcon": true
|
|
@@ -642,7 +628,6 @@
|
|
|
642
628
|
"name": "上传前置事件",
|
|
643
629
|
"type": "_JSEditor",
|
|
644
630
|
"defaultCode": "function beforeUpload(file, fileList) { \n return true; \n}",
|
|
645
|
-
"mustConfirm": true,
|
|
646
631
|
"wrapper": "collapse",
|
|
647
632
|
"wrapperProps": {
|
|
648
633
|
"suppressIcon": true
|
|
@@ -653,7 +638,6 @@
|
|
|
653
638
|
"name": "上传事件回调",
|
|
654
639
|
"type": "_JSEditor",
|
|
655
640
|
"defaultCode": "function onUploadChange(event) { \n\t\n}",
|
|
656
|
-
"mustConfirm": true,
|
|
657
641
|
"wrapper": "collapse",
|
|
658
642
|
"wrapperProps": {
|
|
659
643
|
"suppressIcon": true
|
|
@@ -677,7 +661,7 @@
|
|
|
677
661
|
"key": "beforeSave",
|
|
678
662
|
"name": "保存前置事件",
|
|
679
663
|
"desc": "保存前置事件,promise,返回false取消执行",
|
|
680
|
-
"func": "function beforeSave(values, data) {\n return values; \n}"
|
|
664
|
+
"func": "function beforeSave(values, data) {\n return new Promise(resolve=>resolve(values)); \n}"
|
|
681
665
|
},
|
|
682
666
|
{
|
|
683
667
|
"key": "onSaveCallback",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"label": "getInstance",
|
|
18
18
|
"kind": "method",
|
|
19
19
|
"insertText": "getInstance",
|
|
20
|
-
"documentation": " /**\
|
|
20
|
+
"documentation": " /**\n * 获取表格实例\n * @method\n */"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"label": "refresh",
|
|
24
24
|
"kind": "method",
|
|
25
25
|
"insertText": "refresh",
|
|
26
|
-
"documentation": " /**\
|
|
26
|
+
"documentation": " /**\n * 刷新表格\n * @method\n */"
|
|
27
27
|
}
|
|
28
28
|
]
|
|
29
29
|
},
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
"label": "open",
|
|
36
36
|
"kind": "property",
|
|
37
37
|
"insertText": "open",
|
|
38
|
-
"documentation": " /**\
|
|
38
|
+
"documentation": " /**\n * 弹窗打开状态\n * @property\n */"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"label": "doOpen",
|
|
42
42
|
"kind": "method",
|
|
43
43
|
"insertText": "doOpen",
|
|
44
|
-
"documentation": " /**\
|
|
44
|
+
"documentation": " /**\n * 打开弹窗\n * @method\n */"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"label": "doClose",
|
|
48
48
|
"kind": "method",
|
|
49
49
|
"insertText": "doClose",
|
|
50
|
-
"documentation": " /**\
|
|
50
|
+
"documentation": " /**\n * 关闭弹窗\n * @method\n */"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"label": "setTitle",
|
|
54
54
|
"kind": "method",
|
|
55
55
|
"insertText": "setTitle(title)",
|
|
56
|
-
"documentation": " /**\
|
|
56
|
+
"documentation": " /**\n * 设置弹窗标题\n * @method\n * @param {stirng} title -标题\n */"
|
|
57
57
|
}
|
|
58
58
|
]
|
|
59
59
|
},
|
|
@@ -65,25 +65,25 @@
|
|
|
65
65
|
"label": "open",
|
|
66
66
|
"kind": "property",
|
|
67
67
|
"insertText": "open",
|
|
68
|
-
"documentation": " /**\
|
|
68
|
+
"documentation": " /**\n * 弹窗打开状态\n * @property\n */"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"label": "doOpen",
|
|
72
72
|
"kind": "method",
|
|
73
73
|
"insertText": "doOpen",
|
|
74
|
-
"documentation": " /**\
|
|
74
|
+
"documentation": " /**\n * 打开弹窗\n * @method\n */"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"label": "doClose",
|
|
78
78
|
"kind": "method",
|
|
79
79
|
"insertText": "doClose",
|
|
80
|
-
"documentation": " /**\
|
|
80
|
+
"documentation": " /**\n * 关闭弹窗\n * @method\n */"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"label": "setTitle",
|
|
84
84
|
"kind": "method",
|
|
85
85
|
"insertText": "setTitle(title)",
|
|
86
|
-
"documentation": " /**\
|
|
86
|
+
"documentation": " /**\n * 设置弹窗标题\n * @method\n * @param {stirng} title -标题\n */"
|
|
87
87
|
}
|
|
88
88
|
]
|
|
89
89
|
},
|
|
@@ -95,13 +95,13 @@
|
|
|
95
95
|
"label": "getInstance",
|
|
96
96
|
"kind": "method",
|
|
97
97
|
"insertText": "getInstance",
|
|
98
|
-
"documentation": " /**\
|
|
98
|
+
"documentation": " /**\n * 获取表格实例\n * @method\n */"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"label": "submit",
|
|
102
102
|
"kind": "method",
|
|
103
103
|
"insertText": "submit",
|
|
104
|
-
"documentation": " /**\
|
|
104
|
+
"documentation": " /**\n * 提交表格数据\n * @method\n */"
|
|
105
105
|
}
|
|
106
106
|
]
|
|
107
107
|
},
|
|
@@ -116,13 +116,13 @@
|
|
|
116
116
|
"completions": []
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
"name": "
|
|
120
|
-
"triggerWord": "
|
|
119
|
+
"name": "ImEx",
|
|
120
|
+
"triggerWord": "imex",
|
|
121
121
|
"completions": []
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"triggerWord": "
|
|
124
|
+
"name": "Image",
|
|
125
|
+
"triggerWord": "image",
|
|
126
126
|
"completions": []
|
|
127
127
|
},
|
|
128
128
|
{
|
|
@@ -183,13 +183,13 @@
|
|
|
183
183
|
"label": "getInstance",
|
|
184
184
|
"kind": "method",
|
|
185
185
|
"insertText": "getInstance",
|
|
186
|
-
"documentation": " /**\
|
|
186
|
+
"documentation": " /**\n * 获取表格实例\n * @method\n */"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
"label": "refresh",
|
|
190
190
|
"kind": "method",
|
|
191
191
|
"insertText": "refresh",
|
|
192
|
-
"documentation": " /**\
|
|
192
|
+
"documentation": " /**\n * 刷新表格\n * @method\n */"
|
|
193
193
|
}
|
|
194
194
|
]
|
|
195
195
|
},
|
|
@@ -216,73 +216,73 @@
|
|
|
216
216
|
"label": "loading",
|
|
217
217
|
"kind": "property",
|
|
218
218
|
"insertText": "loading",
|
|
219
|
-
"documentation": " /**\
|
|
219
|
+
"documentation": " /**\n * @property {boolean} loading - loading状态\n */"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"label": "topics",
|
|
223
223
|
"kind": "property",
|
|
224
224
|
"insertText": "topics",
|
|
225
|
-
"documentation": " /**\
|
|
225
|
+
"documentation": " /**\n * @property {object} topics - 内置的事件话题\n */"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"label": "API_PREFIX",
|
|
229
229
|
"kind": "property",
|
|
230
230
|
"insertText": "API_PREFIX",
|
|
231
|
-
"documentation": " /**\
|
|
231
|
+
"documentation": " /**\n * @property {object} topics - service api前缀\n */"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
"label": "PRIMARY_KEY",
|
|
235
235
|
"kind": "property",
|
|
236
236
|
"insertText": "PRIMARY_KEY",
|
|
237
|
-
"documentation": " /**\
|
|
237
|
+
"documentation": " /**\n * @property {string} PRIMARY_KEY - 主键key\n */"
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
"label": "PARENT_KEY",
|
|
241
241
|
"kind": "property",
|
|
242
242
|
"insertText": "PARENT_KEY",
|
|
243
|
-
"documentation": " /**\
|
|
243
|
+
"documentation": " /**\n * @property {string} PARENT_KEY - 树组件主键key\n */"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
"label": "getElementById",
|
|
247
247
|
"kind": "method",
|
|
248
248
|
"insertText": "getElementById(compId)",
|
|
249
|
-
"documentation": " /**\
|
|
249
|
+
"documentation": " /**\n * @method - 根据组件ID获取实例\n * @param {string} compId - 组件ID\n * @return {object} target - 组件实例\n */"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"label": "getParentElementById",
|
|
253
253
|
"kind": "method",
|
|
254
254
|
"insertText": "getParentElementById(compId)",
|
|
255
|
-
"documentation": " /**\
|
|
255
|
+
"documentation": " /**\n * @method - 根据组件ID获取父组件实例\n * @param {string} compId - 组件ID\n * @return {object} target - 父组件实例\n */"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"label": "doAction",
|
|
259
259
|
"kind": "method",
|
|
260
260
|
"insertText": "doAction(actionPool, args)",
|
|
261
|
-
"documentation": " /**\
|
|
261
|
+
"documentation": " /**\n * @method - 执行行为池\n * @param {object} actionPool - 行为池\n * @param {object} args - 参数\n */"
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"label": "want",
|
|
265
265
|
"kind": "method",
|
|
266
266
|
"insertText": "want",
|
|
267
|
-
"documentation": " /**\
|
|
267
|
+
"documentation": " /**\n * @method - 是否有权限\n * @return {string} wanted - 期望的资源串\n */"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"label": "getBehaviorUrl",
|
|
271
271
|
"kind": "method",
|
|
272
272
|
"insertText": "getBehaviorUrl",
|
|
273
|
-
"documentation": " /**\
|
|
273
|
+
"documentation": " /**\n * @method - 获取执行行为请求的接口URL\n * @return {string} BEHAVIOR_URL - 执行行为请求的接口URL\n */"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"label": "utils",
|
|
277
277
|
"kind": "property",
|
|
278
278
|
"insertText": "utils",
|
|
279
|
-
"documentation": " /**\
|
|
279
|
+
"documentation": " /**\n * @property {Utils} 工具类\n */"
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
"label": "router",
|
|
283
283
|
"kind": "property",
|
|
284
284
|
"insertText": "router",
|
|
285
|
-
"documentation": " /**\
|
|
285
|
+
"documentation": " /**\n * @property {Router} router - 路由\n */"
|
|
286
286
|
}
|
|
287
287
|
]
|
|
288
288
|
}
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"name": "编辑jsx代码",
|
|
19
19
|
"desc": "编写可执行的完整jsx组件代码",
|
|
20
20
|
"type": "_JSEditor",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"defaultCode": "function Component() {\n\treturn(\n\t\t<div>\n\t\t\t此为自定义代码组件,请使用 JSX 语法\n\t\t</div>\n\t)\n}",
|
|
22
|
+
"isjsx": true,
|
|
23
23
|
"wrapper": "collapse",
|
|
24
24
|
"wrapperProps": {
|
|
25
25
|
"suppressIcon": true
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"repositioning": true
|
|
27
28
|
}
|
|
28
29
|
],
|
|
29
30
|
"css": ""
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"groupName": "布局",
|
|
7
7
|
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
8
8
|
"order": 1,
|
|
9
|
-
"css": "background-color: transparent;",
|
|
9
|
+
"css": "height:auto; background-color: transparent;",
|
|
10
10
|
"columnRatio": "12:3:9",
|
|
11
11
|
"columnSpacing": 16,
|
|
12
12
|
"lineSpacing": 16,
|