@luck-design-biz/luckda 0.0.24-1 → 0.0.24-2
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 +0 -0
- package/README.md +0 -0
- package/es/components/Builder/index.js +6 -4
- package/es/components/LdAutoForm/index.js +0 -0
- package/es/components/LdCard/index.js +0 -0
- package/es/components/LdCard/model.js +0 -0
- package/es/components/LdCom/index.js +0 -0
- package/es/components/LdFormList/index.js +0 -0
- package/es/components/LdFormList/model.js +0 -0
- package/es/components/LdGrid/index.js +12 -3
- package/es/components/LdGrid/model.js +0 -0
- package/es/components/LdGridForm/index.js +0 -0
- package/es/components/LdGridForm/index.less +0 -0
- package/es/components/LdInfoPanel/index.js +0 -0
- package/es/components/LdPop/index.js +0 -0
- package/es/components/LdRuntimeCom/index.js +0 -0
- package/es/components/LdTree/index.js +0 -0
- package/es/components/LdTree/index.less +0 -0
- package/es/helper/FromItems.js +0 -0
- package/es/helper/action.js +0 -0
- package/es/helper/form.js +0 -0
- package/es/helper/index.less +0 -0
- package/es/helper/ldBuilder.js +0 -0
- package/es/helper/ldComBuild.js +0 -0
- package/es/index.js +0 -0
- package/es/lowcode/constants/api-url.js +291 -1
- package/es/lowcode/constants/event-topics.js +4 -4
- package/es/lowcode/constants/index.js +0 -0
- package/es/lowcode/engine/factory/DataFactory.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -1
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +12 -11
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +11 -1
- package/es/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/es/lowcode/engine/meta/box.props.default.json +0 -0
- package/es/lowcode/engine/meta/box.props.json +0 -0
- package/es/lowcode/engine/meta/button.props.default.json +0 -0
- package/es/lowcode/engine/meta/button.props.json +7 -2
- package/es/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/es/lowcode/engine/meta/cardlist.props.json +0 -0
- package/es/lowcode/engine/meta/components-list.json +6 -6
- package/es/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/es/lowcode/engine/meta/dialog.props.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/es/lowcode/engine/meta/drawer.props.json +0 -0
- package/es/lowcode/engine/meta/form.props.default.json +0 -0
- package/es/lowcode/engine/meta/form.props.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/es/lowcode/engine/meta/iframe.props.json +0 -0
- package/es/lowcode/engine/meta/image.props.default.json +0 -0
- package/es/lowcode/engine/meta/image.props.json +0 -0
- package/es/lowcode/engine/meta/imex.props.default.json +0 -0
- package/es/lowcode/engine/meta/imex.props.json +0 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +28 -28
- package/es/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/es/lowcode/engine/meta/jsx.props.json +0 -0
- package/es/lowcode/engine/meta/layout.props.default.json +0 -0
- package/es/lowcode/engine/meta/layout.props.json +0 -0
- package/es/lowcode/engine/meta/link.props.default.json +0 -0
- package/es/lowcode/engine/meta/link.props.json +0 -0
- package/es/lowcode/engine/meta/section.props.default.json +0 -0
- package/es/lowcode/engine/meta/section.props.json +0 -0
- package/es/lowcode/engine/meta/split.props.default.json +0 -0
- package/es/lowcode/engine/meta/split.props.json +0 -0
- package/es/lowcode/engine/meta/table.props.default.json +20 -2
- package/es/lowcode/engine/meta/table.props.json +99 -37
- package/es/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/es/lowcode/engine/meta/tabs.props.json +0 -0
- package/es/lowcode/engine/meta/text.props.default.json +0 -0
- package/es/lowcode/engine/meta/text.props.json +0 -0
- package/es/lowcode/engine/meta/tree.props.default.json +0 -0
- package/es/lowcode/engine/meta/tree.props.json +0 -0
- package/es/lowcode/engine/provider/ContextProvider.js +40 -28
- package/es/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/es/lowcode/engine/tools/dataProcess.js +5 -3
- package/es/lowcode/engine/tools/helper.js +68 -0
- package/es/lowcode/engine/tools/usePromiseState.js +0 -0
- package/es/lowcode/index.js +3 -1
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +27 -304
- package/es/lowcode/painter/DesignOperator.js +271 -0
- package/es/lowcode/painter/DesignToolbar.js +91 -0
- package/es/lowcode/painter/I18n.js +0 -0
- package/es/lowcode/painter/Outline.js +31 -27
- package/es/lowcode/painter/Panel.js +71 -33
- package/es/lowcode/painter/Ribbon.js +0 -0
- package/es/lowcode/painter/components/Collapse.js +67 -8
- package/es/lowcode/painter/components/ColorInput.js +125 -0
- package/es/lowcode/painter/components/{TabEditor.js → ListEditor.js} +17 -16
- package/es/lowcode/painter/components/NumberInput.js +72 -17
- package/es/lowcode/painter/components/PanelItem.js +40 -11
- package/es/lowcode/painter/components/PopConfirm.js +4 -1
- package/es/lowcode/painter/components/PopForm.js +0 -0
- package/es/lowcode/painter/components/RuleInput.js +5 -3
- package/es/lowcode/painter/components/SortBox.js +0 -0
- package/es/lowcode/painter/components/actions-editor/ActionEditor.js +147 -0
- package/es/lowcode/painter/components/actions-editor/index.js +170 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +42 -64
- package/es/lowcode/painter/components/code-editor/CssEditor.js +27 -0
- package/es/lowcode/painter/components/code-editor/FullScreenEditor.js +37 -14
- package/es/lowcode/painter/components/code-editor/JSEditor.js +22 -0
- package/es/lowcode/painter/components/code-editor/index.js +0 -0
- package/es/lowcode/painter/index.js +6 -2
- package/es/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/es/lowcode/painter/panel-section/DataSetSelector.js +61 -0
- package/es/lowcode/painter/panel-section/Icon.js +0 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +0 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +2 -1
- package/es/lowcode/painter/panel-section/StylePanel/BackGround.js +61 -0
- package/es/lowcode/painter/panel-section/StylePanel/Border.js +150 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadius.js +87 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +66 -0
- package/es/lowcode/painter/panel-section/StylePanel/BorderSelector.js +66 -0
- package/es/lowcode/painter/panel-section/StylePanel/Display.js +15 -11
- package/es/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Font.js +162 -0
- package/es/lowcode/painter/panel-section/StylePanel/FontEditor.js +386 -0
- package/es/lowcode/painter/panel-section/StylePanel/GapSelector.js +78 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +23 -0
- package/es/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +20 -0
- package/es/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +23 -0
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +42 -10
- package/es/lowcode/painter/panel-section/StylePanel/Margin.js +60 -0
- package/es/lowcode/painter/panel-section/StylePanel/Opacity.js +50 -0
- package/es/lowcode/painter/panel-section/StylePanel/Padding.js +61 -0
- package/es/lowcode/painter/panel-section/StylePanel/Pointer.js +41 -0
- package/es/lowcode/painter/panel-section/StylePanel/Shadow.js +216 -0
- package/es/lowcode/painter/panel-section/StylePanel/Size.js +53 -0
- package/es/lowcode/painter/panel-section/StylePanel/StyleContext.js +55 -8
- package/es/lowcode/painter/panel-section/StylePanel/StyleRow.js +16 -0
- package/es/lowcode/painter/panel-section/StylePanel/{Height.js → WidthHeight.js} +23 -20
- package/es/lowcode/painter/panel-section/StylePanel/index.js +17 -0
- package/es/lowcode/painter/panel-section/TabItems.js +7 -37
- package/es/lowcode/painter/panel-section/TableActions.js +19 -0
- package/es/lowcode/painter/panel-section/TableZebra.js +14 -0
- package/es/lowcode/painter/panel-section/WidthHeight.js +39 -0
- package/es/lowcode/painter/services/I18n.js +0 -0
- package/es/lowcode/painter/style/actions-editor.less +16 -0
- package/es/lowcode/painter/style/border-editor.less +36 -0
- package/es/lowcode/painter/style/border-radius-selector.less +43 -0
- package/es/lowcode/painter/style/border-selector.less +40 -0
- package/es/lowcode/painter/style/button-type.less +0 -0
- package/es/lowcode/painter/style/collapse.less +2 -1
- package/es/lowcode/painter/style/color-input.less +19 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +7 -0
- package/es/lowcode/painter/style/display.less +0 -0
- package/es/lowcode/painter/style/font-editor.less +9 -0
- package/es/lowcode/painter/style/fullscreen-editor.less +0 -0
- package/es/lowcode/painter/style/icon-selector.less +0 -0
- package/es/lowcode/painter/style/icon.less +0 -0
- package/es/lowcode/painter/style/index.less +0 -0
- package/es/lowcode/painter/style/layout-ratio.less +0 -0
- package/{lib/lowcode/painter/style/tabeditor.less → es/lowcode/painter/style/list-editor.less} +9 -40
- package/es/lowcode/painter/style/number-input.less +0 -0
- package/es/lowcode/painter/style/outline.less +0 -0
- package/es/lowcode/painter/style/panel-item.less +11 -1
- package/es/lowcode/painter/style/panel.less +3 -16
- package/es/lowcode/painter/style/pop-confirm.less +0 -0
- package/es/lowcode/painter/style/pop-form.less +0 -0
- package/es/lowcode/painter/style/radio.less +0 -0
- package/es/lowcode/painter/style/ribbon.less +0 -0
- package/es/lowcode/painter/style/rule-input.less +0 -0
- package/es/lowcode/painter/style/style-panel.less +32 -0
- package/es/lowcode/painter/style/tabitems.less +0 -0
- package/es/lowcode/view/Canvas.js +16 -15
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +10 -225
- package/es/lowcode/view/index.js +5 -6
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Box/index.js +2 -2
- package/es/lowcode/view/lc-components/Box/index.less +0 -0
- package/es/lowcode/view/lc-components/Box/meta.json +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Button/index.js +10 -7
- package/es/lowcode/view/lc-components/Button/meta.json +7 -2
- package/es/lowcode/view/lc-components/Button/style.less +3 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/CardList/index.js +0 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +48 -3
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +21 -23
- package/es/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +13 -2
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +19 -22
- package/es/lowcode/view/lc-components/Drawer/{style.less → index.less} +1 -1
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Form/index.js +0 -0
- package/es/lowcode/view/lc-components/Form/meta.json +0 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Image/index.js +0 -0
- package/es/lowcode/view/lc-components/Image/meta.json +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/JSX/index.js +0 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.js +0 -0
- package/es/lowcode/view/lc-components/Layout/index.less +0 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Link/index.js +0 -0
- package/es/lowcode/view/lc-components/Link/meta.json +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Section/index.js +0 -0
- package/es/lowcode/view/lc-components/Section/meta.json +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Split/index.js +0 -0
- package/es/lowcode/view/lc-components/Split/meta.json +0 -0
- package/es/lowcode/view/lc-components/Table/FunctionDesign.js +4 -2
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Table/index.js +222 -132
- package/es/lowcode/view/lc-components/Table/meta.json +88 -37
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/es/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Text/index.js +0 -0
- package/es/lowcode/view/lc-components/Text/meta.json +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/es/lowcode/view/lc-components/Tree/index.js +0 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/es/lowcode/view/lc-components/Wrapper.js +0 -0
- package/es/lowcode/view/style/canvas.less +0 -0
- package/es/lowcode/view/style/loading.less +0 -0
- package/es/lowcode/view/style/page.less +0 -0
- package/es/services.js +0 -0
- package/es/upload/Form/gridForm.js +0 -0
- package/es/upload/Form/index.js +0 -0
- package/es/upload/Form/index.less +0 -0
- package/es/upload/FormItem/index.js +0 -0
- package/es/upload/GridCell/index.js +0 -0
- package/es/upload/index.js +0 -0
- package/es/utils/action.js +0 -0
- package/es/utils/form.js +0 -0
- package/es/utils/grid.js +0 -0
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +5 -3
- package/lib/components/LdAutoForm/index.js +0 -0
- package/lib/components/LdCard/index.js +0 -0
- package/lib/components/LdCard/model.js +0 -0
- package/lib/components/LdCom/index.js +0 -0
- package/lib/components/LdFormList/index.js +0 -0
- package/lib/components/LdFormList/model.js +0 -0
- package/lib/components/LdGrid/index.js +12 -3
- package/lib/components/LdGrid/model.js +0 -0
- package/lib/components/LdGridForm/index.js +0 -0
- package/lib/components/LdGridForm/index.less +0 -0
- package/lib/components/LdInfoPanel/index.js +0 -0
- package/lib/components/LdPop/index.js +0 -0
- package/lib/components/LdRuntimeCom/index.js +0 -0
- package/lib/components/LdTree/index.js +0 -0
- package/lib/components/LdTree/index.less +0 -0
- package/lib/helper/FromItems.js +0 -0
- package/lib/helper/action.js +0 -0
- package/lib/helper/form.js +0 -0
- package/lib/helper/index.less +0 -0
- package/lib/helper/ldBuilder.js +0 -0
- package/lib/helper/ldComBuild.js +0 -0
- package/lib/index.js +0 -0
- package/lib/lowcode/constants/api-url.js +293 -2
- package/lib/lowcode/constants/event-topics.js +5 -5
- package/lib/lowcode/constants/index.js +0 -0
- package/lib/lowcode/engine/factory/DataFactory.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/GroupStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/NumberStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -1
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +11 -10
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +11 -1
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +2 -0
- package/lib/lowcode/engine/meta/box.props.default.json +0 -0
- package/lib/lowcode/engine/meta/box.props.json +0 -0
- package/lib/lowcode/engine/meta/button.props.default.json +0 -0
- package/lib/lowcode/engine/meta/button.props.json +7 -2
- package/lib/lowcode/engine/meta/cardlist.props.default.json +0 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +0 -0
- package/lib/lowcode/engine/meta/components-list.json +6 -6
- package/lib/lowcode/engine/meta/dialog.props.default.json +0 -0
- package/lib/lowcode/engine/meta/dialog.props.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +0 -0
- package/lib/lowcode/engine/meta/drawer.props.json +0 -0
- package/lib/lowcode/engine/meta/form.props.default.json +0 -0
- package/lib/lowcode/engine/meta/form.props.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +0 -0
- package/lib/lowcode/engine/meta/iframe.props.json +0 -0
- package/lib/lowcode/engine/meta/image.props.default.json +0 -0
- package/lib/lowcode/engine/meta/image.props.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +0 -0
- package/lib/lowcode/engine/meta/imex.props.json +0 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +28 -28
- package/lib/lowcode/engine/meta/jsx.props.default.json +0 -0
- package/lib/lowcode/engine/meta/jsx.props.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +0 -0
- package/lib/lowcode/engine/meta/layout.props.json +0 -0
- package/lib/lowcode/engine/meta/link.props.default.json +0 -0
- package/lib/lowcode/engine/meta/link.props.json +0 -0
- package/lib/lowcode/engine/meta/section.props.default.json +0 -0
- package/lib/lowcode/engine/meta/section.props.json +0 -0
- package/lib/lowcode/engine/meta/split.props.default.json +0 -0
- package/lib/lowcode/engine/meta/split.props.json +0 -0
- package/lib/lowcode/engine/meta/table.props.default.json +20 -2
- package/lib/lowcode/engine/meta/table.props.json +99 -37
- package/lib/lowcode/engine/meta/tabs.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tabs.props.json +0 -0
- package/lib/lowcode/engine/meta/text.props.default.json +0 -0
- package/lib/lowcode/engine/meta/text.props.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +0 -0
- package/lib/lowcode/engine/meta/tree.props.json +0 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +40 -28
- package/lib/lowcode/engine/provider/EventBusProvider.js +0 -0
- package/lib/lowcode/engine/tools/dataProcess.js +5 -3
- package/lib/lowcode/engine/tools/helper.js +70 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +0 -0
- package/lib/lowcode/index.js +5 -1
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +24 -300
- package/lib/lowcode/painter/DesignOperator.js +278 -0
- package/lib/lowcode/painter/DesignToolbar.js +99 -0
- package/lib/lowcode/painter/I18n.js +0 -0
- package/lib/lowcode/painter/Outline.js +31 -27
- package/lib/lowcode/painter/Panel.js +71 -33
- package/lib/lowcode/painter/Ribbon.js +0 -0
- package/lib/lowcode/painter/components/Collapse.js +65 -7
- package/lib/lowcode/painter/components/ColorInput.js +132 -0
- package/lib/lowcode/painter/components/{TabEditor.js → ListEditor.js} +19 -18
- package/lib/lowcode/painter/components/NumberInput.js +70 -16
- package/lib/lowcode/painter/components/PanelItem.js +40 -11
- package/lib/lowcode/painter/components/PopConfirm.js +4 -1
- package/lib/lowcode/painter/components/PopForm.js +0 -0
- package/lib/lowcode/painter/components/RuleInput.js +5 -3
- package/lib/lowcode/painter/components/SortBox.js +0 -0
- package/lib/lowcode/painter/components/actions-editor/ActionEditor.js +155 -0
- package/lib/lowcode/painter/components/actions-editor/index.js +178 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +40 -63
- package/lib/lowcode/painter/components/code-editor/CssEditor.js +26 -0
- package/lib/lowcode/painter/components/code-editor/FullScreenEditor.js +35 -13
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +22 -0
- package/lib/lowcode/painter/components/code-editor/index.js +0 -0
- package/lib/lowcode/painter/index.js +6 -2
- package/lib/lowcode/painter/panel-section/ButtonType.js +0 -0
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +69 -0
- package/lib/lowcode/painter/panel-section/Icon.js +0 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +0 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +2 -1
- package/lib/lowcode/painter/panel-section/StylePanel/BackGround.js +68 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Border.js +158 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadius.js +95 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderRadiusSelector.js +73 -0
- package/lib/lowcode/painter/panel-section/StylePanel/BorderSelector.js +73 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Display.js +15 -11
- package/lib/lowcode/painter/panel-section/StylePanel/DisplaySvg.js +0 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Font.js +170 -0
- package/lib/lowcode/painter/panel-section/StylePanel/FontEditor.js +392 -0
- package/lib/lowcode/painter/panel-section/StylePanel/GapSelector.js +85 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLightPanel.js +29 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HighLigthtSpan.js +26 -0
- package/lib/lowcode/painter/panel-section/StylePanel/HightLightSvg.js +29 -0
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +40 -9
- package/lib/lowcode/painter/panel-section/StylePanel/Margin.js +67 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Opacity.js +57 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Padding.js +68 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Pointer.js +48 -0
- package/lib/lowcode/painter/panel-section/StylePanel/Shadow.js +224 -0
- package/lib/lowcode/painter/panel-section/StylePanel/{Width.js → Size.js} +39 -35
- package/lib/lowcode/painter/panel-section/StylePanel/StyleContext.js +55 -8
- package/lib/lowcode/painter/panel-section/StylePanel/StyleRow.js +22 -0
- package/lib/lowcode/painter/panel-section/StylePanel/{Height.js → WidthHeight.js} +22 -19
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +16 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +7 -37
- package/lib/lowcode/painter/panel-section/TableActions.js +26 -0
- package/lib/lowcode/painter/panel-section/TableZebra.js +21 -0
- package/lib/lowcode/painter/panel-section/WidthHeight.js +46 -0
- package/lib/lowcode/painter/services/I18n.js +0 -0
- package/lib/lowcode/painter/style/actions-editor.less +16 -0
- package/lib/lowcode/painter/style/border-editor.less +36 -0
- package/lib/lowcode/painter/style/border-radius-selector.less +43 -0
- package/lib/lowcode/painter/style/border-selector.less +40 -0
- package/lib/lowcode/painter/style/button-type.less +0 -0
- package/lib/lowcode/painter/style/collapse.less +2 -1
- package/lib/lowcode/painter/style/color-input.less +19 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +7 -0
- package/lib/lowcode/painter/style/display.less +0 -0
- package/lib/lowcode/painter/style/font-editor.less +9 -0
- package/lib/lowcode/painter/style/fullscreen-editor.less +0 -0
- package/lib/lowcode/painter/style/icon-selector.less +0 -0
- package/lib/lowcode/painter/style/icon.less +0 -0
- package/lib/lowcode/painter/style/index.less +0 -0
- package/lib/lowcode/painter/style/layout-ratio.less +0 -0
- package/{es/lowcode/painter/style/tabeditor.less → lib/lowcode/painter/style/list-editor.less} +9 -40
- package/lib/lowcode/painter/style/number-input.less +0 -0
- package/lib/lowcode/painter/style/outline.less +0 -0
- package/lib/lowcode/painter/style/panel-item.less +11 -1
- package/lib/lowcode/painter/style/panel.less +3 -16
- package/lib/lowcode/painter/style/pop-confirm.less +0 -0
- package/lib/lowcode/painter/style/pop-form.less +0 -0
- package/lib/lowcode/painter/style/radio.less +0 -0
- package/lib/lowcode/painter/style/ribbon.less +0 -0
- package/lib/lowcode/painter/style/rule-input.less +0 -0
- package/lib/lowcode/painter/style/style-panel.less +32 -0
- package/lib/lowcode/painter/style/tabitems.less +0 -0
- package/lib/lowcode/view/Canvas.js +16 -15
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +9 -224
- package/lib/lowcode/view/index.js +5 -6
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Box/index.js +2 -2
- package/lib/lowcode/view/lc-components/Box/index.less +0 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Button/index.js +10 -7
- package/lib/lowcode/view/lc-components/Button/meta.json +7 -2
- package/lib/lowcode/view/lc-components/Button/style.less +3 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +0 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +49 -3
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +20 -22
- package/lib/lowcode/view/lc-components/Dialog/index.less +1 -1
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +13 -2
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +18 -21
- package/lib/lowcode/view/lc-components/Drawer/{style.less → index.less} +1 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Form/index.js +0 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +0 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +0 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Image/index.js +0 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +0 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +0 -0
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Link/index.js +0 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Section/index.js +0 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Split/index.js +0 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Table/FunctionDesign.js +4 -2
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Table/index.js +221 -131
- package/lib/lowcode/view/lc-components/Table/meta.json +88 -37
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tabs/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Text/index.js +0 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +0 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +0 -0
- package/lib/lowcode/view/style/canvas.less +0 -0
- package/lib/lowcode/view/style/loading.less +0 -0
- package/lib/lowcode/view/style/page.less +0 -0
- package/lib/services.js +0 -0
- package/lib/upload/Form/gridForm.js +0 -0
- package/lib/upload/Form/index.js +0 -0
- package/lib/upload/Form/index.less +0 -0
- package/lib/upload/FormItem/index.js +0 -0
- package/lib/upload/GridCell/index.js +0 -0
- package/lib/upload/index.js +0 -0
- package/lib/utils/action.js +0 -0
- package/lib/utils/form.js +0 -0
- package/lib/utils/grid.js +0 -0
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +7 -5
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/painter/panel-section/StylePanel/Width.js +0 -48
|
File without changes
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
"desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
|
|
64
64
|
"icon": "icon-iframe"
|
|
65
65
|
},
|
|
66
|
-
{
|
|
67
|
-
"component": "ImEx",
|
|
68
|
-
"name": "导入导出",
|
|
69
|
-
"desc": "支持导入导出数据的按钮组件。",
|
|
70
|
-
"icon": "icon-imex"
|
|
71
|
-
},
|
|
72
66
|
{
|
|
73
67
|
"component": "Image",
|
|
74
68
|
"name": "图片",
|
|
75
69
|
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
76
70
|
"icon": "icon-image"
|
|
77
71
|
},
|
|
72
|
+
{
|
|
73
|
+
"component": "ImEx",
|
|
74
|
+
"name": "导入导出",
|
|
75
|
+
"desc": "支持导入导出数据的按钮组件。",
|
|
76
|
+
"icon": "icon-imex"
|
|
77
|
+
},
|
|
78
78
|
{
|
|
79
79
|
"component": "JSX",
|
|
80
80
|
"name": "jsx代码段",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name":"Botton",
|
|
4
|
-
"triggerWord": "btn",
|
|
5
|
-
"completions": [
|
|
6
|
-
{
|
|
7
|
-
"label": "onClick",
|
|
8
|
-
"kind": "Method",
|
|
9
|
-
"insertText": "onClick(event=>{\n\t\n})"
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name":"Context",
|
|
15
|
-
"triggerWord": "ctx",
|
|
16
|
-
"completions": [
|
|
17
|
-
{
|
|
18
|
-
"label": "customMethod",
|
|
19
|
-
"kind": "Method",
|
|
20
|
-
"insertText": "customMethod((btn,event)=>{\n\t\n})"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"label": "customProperty",
|
|
24
|
-
"kind": "Property",
|
|
25
|
-
"insertText": "customProperty"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name":"Botton",
|
|
4
|
+
"triggerWord": "btn",
|
|
5
|
+
"completions": [
|
|
6
|
+
{
|
|
7
|
+
"label": "onClick",
|
|
8
|
+
"kind": "Method",
|
|
9
|
+
"insertText": "onClick(event=>{\n\t\n})"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name":"Context",
|
|
15
|
+
"triggerWord": "ctx",
|
|
16
|
+
"completions": [
|
|
17
|
+
{
|
|
18
|
+
"label": "customMethod",
|
|
19
|
+
"kind": "Method",
|
|
20
|
+
"insertText": "customMethod((btn,event)=>{\n\t\n})"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"label": "customProperty",
|
|
24
|
+
"kind": "Property",
|
|
25
|
+
"insertText": "customProperty"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
29
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,7 +6,25 @@
|
|
|
6
6
|
"group": "advance",
|
|
7
7
|
"groupName": "高级",
|
|
8
8
|
"order": 1,
|
|
9
|
-
"style": {},
|
|
10
9
|
"autoLoad": true,
|
|
11
|
-
"readOnly": false
|
|
10
|
+
"readOnly": false,
|
|
11
|
+
"suppressPreset": false,
|
|
12
|
+
"actionsColumn": true,
|
|
13
|
+
"suppressActions": false,
|
|
14
|
+
"actionsColumnWidth": 160,
|
|
15
|
+
"actions": {
|
|
16
|
+
"display": "text",
|
|
17
|
+
"max": 2,
|
|
18
|
+
"todoList": []
|
|
19
|
+
},
|
|
20
|
+
"width": "100%",
|
|
21
|
+
"height": "100%",
|
|
22
|
+
"zebra": false,
|
|
23
|
+
"bordered": false,
|
|
24
|
+
"pagination": true,
|
|
25
|
+
"showSizeChanger": true,
|
|
26
|
+
"showQuickJumper": true,
|
|
27
|
+
"hideOnSinglePage": false,
|
|
28
|
+
"paginationSimple": false,
|
|
29
|
+
"pageSize": 30
|
|
12
30
|
}
|
|
@@ -32,64 +32,127 @@
|
|
|
32
32
|
"default": false
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"key": "
|
|
36
|
-
"name": "
|
|
35
|
+
"key": "suppressPreset",
|
|
36
|
+
"name": "关闭预设",
|
|
37
|
+
"type": "switch",
|
|
38
|
+
"default": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "actionsColumn",
|
|
42
|
+
"name": "操作列",
|
|
43
|
+
"type": "group",
|
|
44
|
+
"default": true,
|
|
45
|
+
"next": {
|
|
46
|
+
"name": "操作列",
|
|
47
|
+
"props": [
|
|
48
|
+
{
|
|
49
|
+
"key": "suppressActions",
|
|
50
|
+
"name": "隐藏操作列",
|
|
51
|
+
"type": "switch",
|
|
52
|
+
"default": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"key": "actionsColumnWidth",
|
|
56
|
+
"name": "列宽",
|
|
57
|
+
"type": "_WidthHeight",
|
|
58
|
+
"options": [
|
|
59
|
+
{
|
|
60
|
+
"label": "px",
|
|
61
|
+
"value": "px"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"convertInt": true,
|
|
65
|
+
"default": 160
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"key": "actions",
|
|
69
|
+
"name": "#操作项",
|
|
70
|
+
"desc": "单行操作项",
|
|
71
|
+
"type": "_TableActions",
|
|
72
|
+
"default": {
|
|
73
|
+
"display": "text",
|
|
74
|
+
"max": 2,
|
|
75
|
+
"todoList": []
|
|
76
|
+
},
|
|
77
|
+
"panelItem": {
|
|
78
|
+
"suppressPadding": true
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"key": "styleSetting",
|
|
86
|
+
"name": "风格和样式",
|
|
37
87
|
"type": "group",
|
|
38
88
|
"props": [
|
|
39
89
|
{
|
|
40
|
-
"key": "
|
|
41
|
-
"name": "
|
|
42
|
-
"
|
|
43
|
-
"
|
|
90
|
+
"key": "width",
|
|
91
|
+
"name": "宽度",
|
|
92
|
+
"type": "_WidthHeight",
|
|
93
|
+
"default": "100%"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"key": "height",
|
|
97
|
+
"name": "高度",
|
|
98
|
+
"type": "_WidthHeight",
|
|
99
|
+
"default": "100%"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "zebra",
|
|
103
|
+
"name": "斑马纹",
|
|
104
|
+
"type": "_TableZebra",
|
|
44
105
|
"default": false
|
|
45
106
|
},
|
|
46
107
|
{
|
|
47
|
-
"key": "
|
|
48
|
-
"name": "
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"default": 30
|
|
108
|
+
"key": "bordered",
|
|
109
|
+
"name": "边框线",
|
|
110
|
+
"type": "switch",
|
|
111
|
+
"default": false
|
|
52
112
|
}
|
|
53
113
|
]
|
|
54
114
|
},
|
|
55
115
|
{
|
|
56
|
-
"key": "
|
|
57
|
-
"name": "
|
|
116
|
+
"key": "paginationSetting",
|
|
117
|
+
"name": "分页设置",
|
|
58
118
|
"type": "group",
|
|
59
119
|
"props": [
|
|
60
120
|
{
|
|
61
|
-
"key": "
|
|
62
|
-
"name": "
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"default": "操作列"
|
|
121
|
+
"key": "pagination",
|
|
122
|
+
"name": "开启分页",
|
|
123
|
+
"type": "switch",
|
|
124
|
+
"default": true
|
|
66
125
|
},
|
|
67
126
|
{
|
|
68
|
-
"key": "
|
|
69
|
-
"name": "
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
|
|
127
|
+
"key": "showSizeChanger",
|
|
128
|
+
"name": "分页器",
|
|
129
|
+
"type": "switch",
|
|
130
|
+
"default": true
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"key": "showQuickJumper",
|
|
134
|
+
"name": "快速跳转",
|
|
135
|
+
"type": "switch",
|
|
136
|
+
"default": true
|
|
73
137
|
},
|
|
74
138
|
{
|
|
75
|
-
"key": "
|
|
76
|
-
"name": "
|
|
77
|
-
"desc": "
|
|
78
|
-
"type": "
|
|
139
|
+
"key": "hideOnSinglePage",
|
|
140
|
+
"name": "单页无分页器",
|
|
141
|
+
"desc": "只有一页时隐藏分页器",
|
|
142
|
+
"type": "switch",
|
|
79
143
|
"default": false
|
|
80
144
|
},
|
|
81
145
|
{
|
|
82
|
-
"key": "
|
|
83
|
-
"name": "
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"default": 2
|
|
146
|
+
"key": "paginationSimple",
|
|
147
|
+
"name": "简单分页",
|
|
148
|
+
"type": "switch",
|
|
149
|
+
"default": false
|
|
87
150
|
},
|
|
88
151
|
{
|
|
89
|
-
"key": "
|
|
90
|
-
"name": "
|
|
91
|
-
"
|
|
92
|
-
"
|
|
152
|
+
"key": "pageSize",
|
|
153
|
+
"name": "每页条数",
|
|
154
|
+
"type": "number",
|
|
155
|
+
"default": 30
|
|
93
156
|
}
|
|
94
157
|
]
|
|
95
158
|
},
|
|
@@ -118,7 +181,6 @@
|
|
|
118
181
|
"type": "_CSSEditor"
|
|
119
182
|
}
|
|
120
183
|
],
|
|
121
|
-
"style": {},
|
|
122
184
|
"advance": {
|
|
123
185
|
"events": [
|
|
124
186
|
{
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
|
|
4
|
+
var _excluded = ["source"];
|
|
5
|
+
import React, { createContext, useContext, useRef, useEffect } from 'react';
|
|
4
6
|
import { history } from 'umi';
|
|
5
|
-
import {
|
|
7
|
+
import { useRequest, useMemoizedFn } from 'ahooks';
|
|
6
8
|
import { useLDEventBus } from "./EventBusProvider";
|
|
7
9
|
import usePromiseState from "../tools/usePromiseState";
|
|
10
|
+
import { doAction } from "../../../helper/action";
|
|
8
11
|
import * as topics from "../../constants/event-topics";
|
|
12
|
+
import { decompress } from "../tools/dataProcess";
|
|
13
|
+
import { fetchPageData } from "../../constants/api-url";
|
|
9
14
|
export var Context = /*#__PURE__*/createContext(null);
|
|
10
15
|
export var useLDContext = function useLDContext() {
|
|
11
16
|
return useContext(Context);
|
|
12
17
|
};
|
|
13
|
-
var PRIVATE_KEYS = ['
|
|
18
|
+
var PRIVATE_KEYS = ['pageinfo', 'componentList', 'componentMap'];
|
|
14
19
|
export default (function (_ref) {
|
|
15
|
-
var children = _ref.children
|
|
20
|
+
var children = _ref.children,
|
|
21
|
+
code = _ref.code;
|
|
16
22
|
var eventBus = useLDEventBus();
|
|
17
23
|
|
|
18
|
-
/**
|
|
19
|
-
* 页面码
|
|
20
|
-
*/
|
|
21
|
-
var _pageCode = useRef(void 0);
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 模块码
|
|
25
|
-
*/
|
|
26
|
-
var _moduleCode = useRef(void 0);
|
|
27
|
-
|
|
28
24
|
/**
|
|
29
25
|
* 页面数据
|
|
30
26
|
*/
|
|
@@ -33,16 +29,18 @@ export default (function (_ref) {
|
|
|
33
29
|
pageData = _usePromiseState2[0],
|
|
34
30
|
_setPageData = _usePromiseState2[1];
|
|
35
31
|
|
|
32
|
+
/**
|
|
33
|
+
* 页面信息
|
|
34
|
+
*/
|
|
35
|
+
var _pageinfo = useRef(null);
|
|
36
|
+
|
|
36
37
|
/**
|
|
37
38
|
* 组件列表
|
|
38
39
|
*/
|
|
39
40
|
var _componentList = useRef([]);
|
|
40
41
|
var _privateGetter = useRef({
|
|
41
|
-
|
|
42
|
-
return
|
|
43
|
-
},
|
|
44
|
-
moduleCode: function moduleCode() {
|
|
45
|
-
return _moduleCode.current;
|
|
42
|
+
pageinfo: function pageinfo() {
|
|
43
|
+
return _pageinfo.current;
|
|
46
44
|
},
|
|
47
45
|
componentList: function componentList() {
|
|
48
46
|
return _componentList.current;
|
|
@@ -107,23 +105,37 @@ export default (function (_ref) {
|
|
|
107
105
|
*/
|
|
108
106
|
var getDataSetById = useMemoizedFn(function (datasetId) {});
|
|
109
107
|
|
|
110
|
-
/**
|
|
111
|
-
* 执行actionKey对应的行为
|
|
112
|
-
* actionKey:string 行为key
|
|
113
|
-
* return:Promise
|
|
114
|
-
*/
|
|
115
|
-
var doAction = useMemoizedFn(function (actionKey) {});
|
|
116
|
-
|
|
117
108
|
/**
|
|
118
109
|
* 获取url参数
|
|
119
110
|
* return:object
|
|
120
111
|
*/
|
|
121
112
|
var getUrlParams = useMemoizedFn(function () {});
|
|
113
|
+
var _useRequest = useRequest(fetchPageData, {
|
|
114
|
+
manual: true
|
|
115
|
+
}),
|
|
116
|
+
loading = _useRequest.loading,
|
|
117
|
+
runFetchPageData = _useRequest.runAsync;
|
|
118
|
+
useEffect(function () {
|
|
119
|
+
runFetchPageData(code).then(function (_ref4) {
|
|
120
|
+
var code = _ref4.code,
|
|
121
|
+
data = _ref4.data,
|
|
122
|
+
list = _ref4.list,
|
|
123
|
+
detail = _ref4.detail;
|
|
124
|
+
if (code === 1) {
|
|
125
|
+
var _detail$list$ = detail[list[0]],
|
|
126
|
+
source = _detail$list$.source,
|
|
127
|
+
info = _objectWithoutProperties(_detail$list$, _excluded);
|
|
128
|
+
_pageinfo.current = _objectSpread({
|
|
129
|
+
relationship: data
|
|
130
|
+
}, info);
|
|
131
|
+
_setPageData(decompress(source));
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}, [code]);
|
|
122
135
|
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
123
136
|
value: new Proxy(_objectSpread({
|
|
124
|
-
_pageCode: _pageCode,
|
|
125
|
-
_moduleCode: _moduleCode,
|
|
126
137
|
_setPageData: _setPageData,
|
|
138
|
+
loading: loading,
|
|
127
139
|
pageData: pageData,
|
|
128
140
|
history: history,
|
|
129
141
|
topics: topics,
|
|
File without changes
|
|
@@ -3,6 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
4
4
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
5
5
|
import * as LZString from 'lz-string';
|
|
6
|
+
import { CELL_KEY } from "../../constants";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* 数据压缩
|
|
@@ -13,7 +14,7 @@ export function compress(data) {
|
|
|
13
14
|
// 将对象转换为JSON字符串
|
|
14
15
|
var jsonString = JSON.stringify(data);
|
|
15
16
|
// 使用LZ-String压缩JSON字符串
|
|
16
|
-
return LZString.
|
|
17
|
+
return LZString.compressToBase64(jsonString);
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -23,7 +24,7 @@ export function compress(data) {
|
|
|
23
24
|
*/
|
|
24
25
|
export function decompress(compressedData) {
|
|
25
26
|
// 使用LZ-String解压数据
|
|
26
|
-
var jsonString = LZString.
|
|
27
|
+
var jsonString = LZString.decompressFromBase64(compressedData);
|
|
27
28
|
// 将JSON字符串转换回对象
|
|
28
29
|
return JSON.parse(jsonString);
|
|
29
30
|
}
|
|
@@ -105,7 +106,7 @@ function process(json, path, id, data) {
|
|
|
105
106
|
current[id] = {
|
|
106
107
|
props: _objectSpread(_objectSpread({}, data), {}, {
|
|
107
108
|
id: id,
|
|
108
|
-
parentId: current.id
|
|
109
|
+
parentId: current.props.id
|
|
109
110
|
})
|
|
110
111
|
};
|
|
111
112
|
} else if (!path && id && data) {
|
|
@@ -180,6 +181,7 @@ export function deleteById(json, id) {
|
|
|
180
181
|
export function getPathById(json, id) {
|
|
181
182
|
var currentPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
182
183
|
for (var key in json) {
|
|
184
|
+
if (id === CELL_KEY.PAGE_ROOT) return '/';
|
|
183
185
|
var newPath = currentPath ? "".concat(currentPath, "/").concat(key) : key;
|
|
184
186
|
if (json[key].props && json[key].props.id === id) {
|
|
185
187
|
return newPath;
|
|
@@ -1,4 +1,72 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
1
3
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
4
|
+
import { omit } from 'lodash';
|
|
2
5
|
export function isPromise(value) {
|
|
3
6
|
return !!value && _typeof(value) === 'object' && typeof value.then === 'function';
|
|
7
|
+
}
|
|
8
|
+
export function omitBadProps(props) {
|
|
9
|
+
var rubbish = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
10
|
+
return omit(props, ['component', 'name', 'desc', 'icon', 'group', 'groupName', 'order'].concat(_toConsumableArray(rubbish)));
|
|
11
|
+
}
|
|
12
|
+
export function listReducer(state, action) {
|
|
13
|
+
switch (action.type) {
|
|
14
|
+
case 'add':
|
|
15
|
+
{
|
|
16
|
+
var _action$callback;
|
|
17
|
+
var newState = [].concat(_toConsumableArray(state), [action.payload]);
|
|
18
|
+
(_action$callback = action.callback) === null || _action$callback === void 0 || _action$callback.call(action, newState);
|
|
19
|
+
return newState;
|
|
20
|
+
}
|
|
21
|
+
case 'delete':
|
|
22
|
+
{
|
|
23
|
+
var _action$callback2;
|
|
24
|
+
var _newState = state.filter(function (item) {
|
|
25
|
+
return item.id !== action.payload;
|
|
26
|
+
});
|
|
27
|
+
(_action$callback2 = action.callback) === null || _action$callback2 === void 0 || _action$callback2.call(action, _newState);
|
|
28
|
+
return _newState;
|
|
29
|
+
}
|
|
30
|
+
case 'edit':
|
|
31
|
+
{
|
|
32
|
+
var _action$callback3;
|
|
33
|
+
var _newState2 = state.map(function (item) {
|
|
34
|
+
return item.id === action.payload.id ? _objectSpread(_objectSpread({}, item), action.payload.data) : item;
|
|
35
|
+
});
|
|
36
|
+
(_action$callback3 = action.callback) === null || _action$callback3 === void 0 || _action$callback3.call(action, _newState2);
|
|
37
|
+
return _newState2;
|
|
38
|
+
}
|
|
39
|
+
case 'active':
|
|
40
|
+
{
|
|
41
|
+
var _action$callback4;
|
|
42
|
+
var _newState3 = state.map(function (item) {
|
|
43
|
+
item.active = false;
|
|
44
|
+
return item.id === action.payload.id ? _objectSpread(_objectSpread({}, item), action.payload.data) : item;
|
|
45
|
+
});
|
|
46
|
+
(_action$callback4 = action.callback) === null || _action$callback4 === void 0 || _action$callback4.call(action, _newState3);
|
|
47
|
+
return _newState3;
|
|
48
|
+
}
|
|
49
|
+
case 'new':
|
|
50
|
+
{
|
|
51
|
+
var _action$callback5;
|
|
52
|
+
var _newState4 = _toConsumableArray(action.payload);
|
|
53
|
+
(_action$callback5 = action.callback) === null || _action$callback5 === void 0 || _action$callback5.call(action, _newState4);
|
|
54
|
+
return _newState4;
|
|
55
|
+
}
|
|
56
|
+
case 'sort':
|
|
57
|
+
{
|
|
58
|
+
var _action$callback6;
|
|
59
|
+
var sortItems = action.payload;
|
|
60
|
+
var newItems = state.sort(function (a, b) {
|
|
61
|
+
var indexA = sortItems.indexOf(a.id);
|
|
62
|
+
var indexB = sortItems.indexOf(b.id);
|
|
63
|
+
return indexA - indexB;
|
|
64
|
+
});
|
|
65
|
+
(_action$callback6 = action.callback) === null || _action$callback6 === void 0 || _action$callback6.call(action, _newState5);
|
|
66
|
+
var _newState5 = _toConsumableArray(newItems);
|
|
67
|
+
return _newState5;
|
|
68
|
+
}
|
|
69
|
+
default:
|
|
70
|
+
throw new Error();
|
|
71
|
+
}
|
|
4
72
|
}
|
|
File without changes
|
package/es/lowcode/index.js
CHANGED
|
File without changes
|