@luck-design-biz/luckda 0.0.22-5 → 0.0.22-6
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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/es/lowcode/constants/event-topics.js +6 -1
- 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/SegmentedStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +24 -1
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +0 -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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/es/lowcode/engine/meta/table.props.json +0 -0
- 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 +6 -14
- package/es/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/es/lowcode/engine/tools/dataProcess.js +0 -0
- package/es/lowcode/engine/tools/helper.js +0 -0
- package/es/lowcode/engine/tools/usePromiseState.js +24 -0
- package/es/lowcode/index.js +0 -0
- package/es/lowcode/painter/Components.js +0 -0
- package/es/lowcode/painter/Design.js +178 -67
- package/es/lowcode/painter/I18n.js +9 -6
- package/es/lowcode/painter/Outline.js +0 -0
- package/es/lowcode/painter/Panel.js +7 -2
- package/es/lowcode/painter/Ribbon.js +0 -0
- package/es/lowcode/painter/components/PanelItem.js +0 -0
- package/es/lowcode/painter/components/PopConfirm.js +0 -0
- package/es/lowcode/painter/components/PopForm.js +0 -0
- package/es/lowcode/painter/components/RuleInput.js +4 -4
- package/es/lowcode/painter/components/SortBox.js +0 -0
- package/es/lowcode/painter/components/TabEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +0 -0
- package/es/lowcode/painter/components/code-editor/index.js +0 -0
- package/es/lowcode/painter/index.js +0 -0
- package/es/lowcode/painter/panel-section/ButtonType.js +45 -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 -2
- package/es/lowcode/painter/panel-section/TabItems.js +2 -3
- package/es/lowcode/painter/services/I18n.js +0 -0
- package/es/lowcode/painter/style/button-type.less +5 -0
- package/es/lowcode/painter/style/components.less +0 -0
- package/es/lowcode/painter/style/design.less +56 -3
- 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/es/lowcode/painter/style/outline.less +0 -0
- package/es/lowcode/painter/style/panel-item.less +0 -0
- package/es/lowcode/painter/style/panel.less +0 -0
- 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/tabeditor.less +0 -0
- package/es/lowcode/painter/style/tabitems.less +0 -0
- package/es/lowcode/view/Canvas.js +11 -8
- package/es/lowcode/view/Loading.js +0 -0
- package/es/lowcode/view/Page.js +2 -4
- package/es/lowcode/view/index.js +0 -0
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +20 -0
- package/es/lowcode/view/lc-components/Box/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Box/index.js +8 -2
- package/es/lowcode/view/lc-components/Box/index.less +14 -0
- package/es/lowcode/view/lc-components/Box/meta.json +0 -0
- package/es/lowcode/view/lc-components/Button/FunctionDesign.js +21 -0
- package/es/lowcode/view/lc-components/Button/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Button/index.js +0 -0
- package/es/lowcode/view/lc-components/Button/meta.json +0 -0
- package/es/lowcode/view/lc-components/CardList/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/CardList/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Dialog/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +0 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +0 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +1 -1
- package/es/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/es/lowcode/view/lc-components/Drawer/style.less +0 -0
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Form/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Iframe/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/ImEx/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Image/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/JSX/FunctionLive.js +9 -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 +75 -0
- package/es/lowcode/view/lc-components/Layout/FunctionLive.js +15 -0
- package/es/lowcode/view/lc-components/Layout/index.js +4 -42
- package/es/lowcode/view/lc-components/Layout/index.less +0 -4
- package/es/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/es/lowcode/view/lc-components/Link/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Link/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Section/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Split/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Table/FunctionLive.js +9 -0
- package/es/lowcode/view/lc-components/Table/index.js +0 -0
- package/es/lowcode/view/lc-components/Table/meta.json +0 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +9 -0
- package/es/lowcode/view/lc-components/Tabs/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Text/FunctionLive.js +9 -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 +9 -0
- package/es/lowcode/view/lc-components/Tree/FunctionLive.js +9 -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 +1 -0
- package/es/utils/index.js +0 -0
- package/lib/components/Builder/index.js +0 -0
- 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 +0 -0
- 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 +0 -0
- package/lib/lowcode/constants/event-topics.js +7 -2
- 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/SegmentedStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +24 -1
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +0 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +0 -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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/lib/lowcode/engine/meta/table.props.json +0 -0
- 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 +6 -14
- package/lib/lowcode/engine/provider/EventBusProvider.js +2 -2
- package/lib/lowcode/engine/tools/dataProcess.js +0 -0
- package/lib/lowcode/engine/tools/helper.js +0 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +31 -0
- package/lib/lowcode/index.js +0 -0
- package/lib/lowcode/painter/Components.js +0 -0
- package/lib/lowcode/painter/Design.js +176 -66
- package/lib/lowcode/painter/I18n.js +7 -3
- package/lib/lowcode/painter/Outline.js +0 -0
- package/lib/lowcode/painter/Panel.js +7 -2
- package/lib/lowcode/painter/Ribbon.js +0 -0
- package/lib/lowcode/painter/components/PanelItem.js +0 -0
- package/lib/lowcode/painter/components/PopConfirm.js +0 -0
- package/lib/lowcode/painter/components/PopForm.js +0 -0
- package/lib/lowcode/painter/components/RuleInput.js +4 -4
- package/lib/lowcode/painter/components/SortBox.js +0 -0
- package/lib/lowcode/painter/components/TabEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +0 -0
- package/lib/lowcode/painter/components/code-editor/index.js +0 -0
- package/lib/lowcode/painter/index.js +0 -0
- package/lib/lowcode/painter/panel-section/ButtonType.js +52 -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 -2
- package/lib/lowcode/painter/panel-section/TabItems.js +1 -2
- package/lib/lowcode/painter/services/I18n.js +0 -0
- package/lib/lowcode/painter/style/button-type.less +5 -0
- package/lib/lowcode/painter/style/components.less +0 -0
- package/lib/lowcode/painter/style/design.less +56 -3
- 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/lib/lowcode/painter/style/outline.less +0 -0
- package/lib/lowcode/painter/style/panel-item.less +0 -0
- package/lib/lowcode/painter/style/panel.less +0 -0
- 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/tabeditor.less +0 -0
- package/lib/lowcode/painter/style/tabitems.less +0 -0
- package/lib/lowcode/view/Canvas.js +10 -7
- package/lib/lowcode/view/Loading.js +0 -0
- package/lib/lowcode/view/Page.js +2 -4
- package/lib/lowcode/view/index.js +0 -0
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +27 -0
- package/lib/lowcode/view/lc-components/Box/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Box/index.js +8 -2
- package/lib/lowcode/view/lc-components/Box/index.less +14 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Button/FunctionDesign.js +28 -0
- package/lib/lowcode/view/lc-components/Button/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Button/index.js +0 -0
- package/lib/lowcode/view/lc-components/Button/meta.json +0 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/CardList/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Dialog/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +0 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +0 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +1 -1
- package/lib/lowcode/view/lc-components/Drawer/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Drawer/style.less +0 -0
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Form/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Iframe/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/ImEx/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Image/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/JSX/FunctionLive.js +16 -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 +82 -0
- package/lib/lowcode/view/lc-components/Layout/FunctionLive.js +22 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +2 -40
- package/lib/lowcode/view/lc-components/Layout/index.less +0 -4
- package/lib/lowcode/view/lc-components/Layout/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Link/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Link/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Section/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Split/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Table/FunctionLive.js +16 -0
- package/lib/lowcode/view/lc-components/Table/index.js +0 -0
- package/lib/lowcode/view/lc-components/Table/meta.json +0 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +16 -0
- package/lib/lowcode/view/lc-components/Tabs/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Text/FunctionLive.js +16 -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 +16 -0
- package/lib/lowcode/view/lc-components/Tree/FunctionLive.js +16 -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 +4 -3
- package/lib/utils/index.js +0 -0
- package/lowcode.js +0 -0
- package/package.json +164 -163
- package/upload.js +0 -0
- package/utils.js +0 -0
- package/es/lowcode/engine/tools/lcid.js +0 -16
- package/lib/lowcode/engine/tools/lcid.js +0 -22
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _antd = require("luck-design/antd");
|
|
12
|
+
var _buttonType = _interopRequireDefault(require("../style/button-type.less"));
|
|
13
|
+
var _excluded = ["field", "onChange"];
|
|
14
|
+
var ButtonType = function ButtonType(_ref) {
|
|
15
|
+
var field = _ref.field,
|
|
16
|
+
_onChange = _ref.onChange,
|
|
17
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Select, (0, _extends2.default)({}, props, {
|
|
19
|
+
onChange: function onChange(value) {
|
|
20
|
+
return _onChange({
|
|
21
|
+
field: field,
|
|
22
|
+
value: value
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
className: _buttonType.default['lc-painter-panel-section-components-buttontype']
|
|
26
|
+
}), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
27
|
+
value: "primary"
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
29
|
+
type: "primary",
|
|
30
|
+
size: "small",
|
|
31
|
+
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
32
|
+
}, "primary")), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
33
|
+
value: "default"
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
35
|
+
type: "default",
|
|
36
|
+
size: "small",
|
|
37
|
+
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
38
|
+
}, "default")), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
39
|
+
value: "dashed"
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
41
|
+
type: "dashed",
|
|
42
|
+
size: "small",
|
|
43
|
+
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
44
|
+
}, "dashed")), /*#__PURE__*/_react.default.createElement(_antd.Select.Option, {
|
|
45
|
+
value: "danger"
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
47
|
+
type: "danger",
|
|
48
|
+
size: "small",
|
|
49
|
+
className: _buttonType.default['lc-painter-panel-section-components-buttontype-option']
|
|
50
|
+
}, "danger")));
|
|
51
|
+
};
|
|
52
|
+
var _default = exports.default = ButtonType;
|
|
File without changes
|
|
File without changes
|
|
@@ -43,9 +43,9 @@ var _DEFAULTRATIO_ = '12:3:9';
|
|
|
43
43
|
*/
|
|
44
44
|
var LayoutRatio = function LayoutRatio(_ref) {
|
|
45
45
|
var field = _ref.field,
|
|
46
|
-
|
|
46
|
+
defaultValue = _ref.defaultValue,
|
|
47
47
|
onChange = _ref.onChange;
|
|
48
|
-
var _useState = (0, _react.useState)(
|
|
48
|
+
var _useState = (0, _react.useState)(defaultValue || _DEFAULTRATIO_),
|
|
49
49
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
50
50
|
currentRatio = _useState2[0],
|
|
51
51
|
setCurrentRatio = _useState2[1];
|
|
@@ -14,7 +14,6 @@ var _antd = require("luck-design/antd");
|
|
|
14
14
|
var _utils = require("@luck-design-biz/base/utils");
|
|
15
15
|
var _uiDesign = require("@luck-helper/ui-design");
|
|
16
16
|
var _tabitems = _interopRequireDefault(require("../style/tabitems.less"));
|
|
17
|
-
var _lcid = _interopRequireDefault(require("../../engine/tools/lcid"));
|
|
18
17
|
var _SortBox = require("../components/SortBox");
|
|
19
18
|
var _TabEditor = require("../components/TabEditor");
|
|
20
19
|
var _PopConfirm = _interopRequireDefault(require("../components/PopConfirm"));
|
|
@@ -69,7 +68,7 @@ var TabItems = function TabItems(_ref) {
|
|
|
69
68
|
dispatch({
|
|
70
69
|
type: 'add',
|
|
71
70
|
payload: {
|
|
72
|
-
id: "tab_".concat((0,
|
|
71
|
+
id: "tab_".concat((0, _utils.suid)()),
|
|
73
72
|
name: "\u9009\u9879".concat(items.length + 1),
|
|
74
73
|
active: false,
|
|
75
74
|
resid: null,
|
|
File without changes
|
|
File without changes
|
|
@@ -4,11 +4,22 @@
|
|
|
4
4
|
height: 0;
|
|
5
5
|
top: 0;
|
|
6
6
|
left: 0;
|
|
7
|
-
display: none;
|
|
8
7
|
pointer-events: none;
|
|
9
8
|
cursor: pointer;
|
|
10
9
|
overflow: visible;
|
|
11
|
-
z-index:
|
|
10
|
+
z-index: 98;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.selector-item {
|
|
14
|
+
height: 20px;
|
|
15
|
+
background-color: var(--ant-primary-color);
|
|
16
|
+
color: #fff;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
line-height: 20px;
|
|
19
|
+
min-width: 20px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
border-radius: 3px;
|
|
12
23
|
}
|
|
13
24
|
|
|
14
25
|
.lc-painter-design {
|
|
@@ -31,20 +42,23 @@
|
|
|
31
42
|
width: 125px;
|
|
32
43
|
padding: 0 8px;
|
|
33
44
|
}
|
|
45
|
+
|
|
34
46
|
.toolbar-item {
|
|
35
47
|
display: inline-block;
|
|
36
48
|
width: 32px;
|
|
37
49
|
height: 32px;
|
|
38
50
|
border-radius: 3px;
|
|
39
51
|
padding: 6px;
|
|
40
|
-
margin: 0
|
|
52
|
+
margin: 0 2px;
|
|
41
53
|
cursor: pointer;
|
|
42
54
|
text-align: center;
|
|
43
55
|
color: #8c8c8c;
|
|
44
56
|
}
|
|
57
|
+
|
|
45
58
|
.toolbar-item:hover {
|
|
46
59
|
color: #262626;
|
|
47
60
|
}
|
|
61
|
+
|
|
48
62
|
.toolbar-item.actived {
|
|
49
63
|
color: #8c8c8c;
|
|
50
64
|
background: #f1f2f3;
|
|
@@ -59,9 +73,11 @@
|
|
|
59
73
|
background-color: #fff;
|
|
60
74
|
overflow: hidden;
|
|
61
75
|
}
|
|
76
|
+
|
|
62
77
|
&-simulator {
|
|
63
78
|
overflow-x: hidden;
|
|
64
79
|
overflow-y: auto;
|
|
80
|
+
|
|
65
81
|
:global {
|
|
66
82
|
.ant-form-item {
|
|
67
83
|
pointer-events: none;
|
|
@@ -78,5 +94,42 @@
|
|
|
78
94
|
&-selector {
|
|
79
95
|
border: 2px solid var(--ant-primary-6);
|
|
80
96
|
.box();
|
|
97
|
+
|
|
98
|
+
.lc-borders-actions {
|
|
99
|
+
position: absolute;
|
|
100
|
+
right: -2px;
|
|
101
|
+
pointer-events: all;
|
|
102
|
+
cursor: default;
|
|
103
|
+
display: flex;
|
|
104
|
+
|
|
105
|
+
&>div {
|
|
106
|
+
.selector-item();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:local {
|
|
110
|
+
.instance-node-selector {
|
|
111
|
+
padding: 0 6px;
|
|
112
|
+
margin-right: 3px;
|
|
113
|
+
font-size: 12px!important;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
81
118
|
}
|
|
82
119
|
}
|
|
120
|
+
|
|
121
|
+
.next-overlay-wrapper {
|
|
122
|
+
z-index: 9999;
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
&>div>span {
|
|
126
|
+
display: inline-block;
|
|
127
|
+
.selector-item();
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
padding: 0 6px;
|
|
130
|
+
background-color: #78869a;
|
|
131
|
+
&:not(:last-child) {
|
|
132
|
+
margin-bottom: 3px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
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
|
|
File without changes
|
|
File without changes
|
|
@@ -16,6 +16,7 @@ var _react = _interopRequireWildcard3(require("react"));
|
|
|
16
16
|
var _umi = require("umi");
|
|
17
17
|
var _ahooks = require("ahooks");
|
|
18
18
|
var _lodash = require("lodash");
|
|
19
|
+
var _ContextProvider = require("../engine/provider/ContextProvider");
|
|
19
20
|
var _Box = _interopRequireDefault(require("./lc-components/Box"));
|
|
20
21
|
var _constants = require("../constants");
|
|
21
22
|
var _canvas = _interopRequireDefault(require("./style/canvas.less"));
|
|
@@ -24,8 +25,8 @@ var _excluded = ["props", "children"],
|
|
|
24
25
|
var PAGE_CELL = [_constants.CELL_KEY.PAGE_HEADER, _constants.CELL_KEY.PAGE_CONTENT, _constants.CELL_KEY.PAGE_FOOTER];
|
|
25
26
|
var Canvas = function Canvas(_ref) {
|
|
26
27
|
var dataSource = _ref.dataSource;
|
|
27
|
-
console.log('dataSource', dataSource);
|
|
28
28
|
var dynamicCompMap = (0, _react.useRef)({});
|
|
29
|
+
var context = (0, _ContextProvider.useLDContext)();
|
|
29
30
|
var _useState = (0, _react.useState)(null),
|
|
30
31
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
31
32
|
header = _useState2[0],
|
|
@@ -60,23 +61,24 @@ var Canvas = function Canvas(_ref) {
|
|
|
60
61
|
dynamicCompMap.current[component] = (0, _umi.dynamic)({
|
|
61
62
|
loader: function () {
|
|
62
63
|
var _loader = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
63
|
-
var _yield$import, _Comp;
|
|
64
|
+
var _runtime, _yield$import, _Comp;
|
|
64
65
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
65
66
|
while (1) switch (_context.prev = _context.next) {
|
|
66
67
|
case 0:
|
|
67
|
-
|
|
68
|
+
_runtime = (0, _lodash.upperFirst)(context.runtime);
|
|
69
|
+
_context.next = 3;
|
|
68
70
|
return function (specifier) {
|
|
69
71
|
return new Promise(function (r) {
|
|
70
72
|
return r(specifier);
|
|
71
73
|
}).then(function (s) {
|
|
72
74
|
return (0, _interopRequireWildcard2.default)(require(s));
|
|
73
75
|
});
|
|
74
|
-
}("./lc-components/".concat(component));
|
|
75
|
-
case
|
|
76
|
+
}("./lc-components/".concat(component, "/Function").concat(_runtime));
|
|
77
|
+
case 3:
|
|
76
78
|
_yield$import = _context.sent;
|
|
77
79
|
_Comp = _yield$import.default;
|
|
78
80
|
return _context.abrupt("return", _Comp);
|
|
79
|
-
case
|
|
81
|
+
case 6:
|
|
80
82
|
case "end":
|
|
81
83
|
return _context.stop();
|
|
82
84
|
}
|
|
@@ -92,7 +94,8 @@ var Canvas = function Canvas(_ref) {
|
|
|
92
94
|
var Comp = dynamicCompMap.current[component];
|
|
93
95
|
return /*#__PURE__*/_react.default.createElement(Comp, (0, _extends2.default)({
|
|
94
96
|
key: id,
|
|
95
|
-
id: id
|
|
97
|
+
id: id,
|
|
98
|
+
context: context
|
|
96
99
|
}, rest), (children || []).map(function (_id) {
|
|
97
100
|
return render(childrenMap[_id]);
|
|
98
101
|
}));
|
|
File without changes
|
package/lib/lowcode/view/Page.js
CHANGED
|
@@ -93,7 +93,6 @@ var d = {
|
|
|
93
93
|
group: 'container',
|
|
94
94
|
groupName: '布局',
|
|
95
95
|
order: 3,
|
|
96
|
-
className: 'lc-component-layout-item',
|
|
97
96
|
style: {
|
|
98
97
|
gridColumn: 'span 12',
|
|
99
98
|
height: 'auto'
|
|
@@ -107,7 +106,8 @@ var d = {
|
|
|
107
106
|
parentId: 'box_ihj2n8cv',
|
|
108
107
|
group: 'basic',
|
|
109
108
|
component: 'Button',
|
|
110
|
-
name: '按钮'
|
|
109
|
+
name: '按钮',
|
|
110
|
+
type: 'primary'
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
text_nmu9wqqw: {
|
|
@@ -129,7 +129,6 @@ var d = {
|
|
|
129
129
|
group: 'container',
|
|
130
130
|
groupName: '布局',
|
|
131
131
|
order: 3,
|
|
132
|
-
className: 'lc-component-layout-item',
|
|
133
132
|
style: {
|
|
134
133
|
gridColumn: 'span 3',
|
|
135
134
|
height: '60px'
|
|
@@ -156,7 +155,6 @@ var d = {
|
|
|
156
155
|
group: 'container',
|
|
157
156
|
groupName: '布局',
|
|
158
157
|
order: 3,
|
|
159
|
-
className: 'lc-component-layout-item',
|
|
160
158
|
style: {
|
|
161
159
|
gridColumn: 'span 9',
|
|
162
160
|
height: '60px'
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _ahooks = require("ahooks");
|
|
13
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
15
|
+
var _index2 = _interopRequireDefault(require("./index.less"));
|
|
16
|
+
var _excluded = ["children"];
|
|
17
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
18
|
+
var children = _ref.children,
|
|
19
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
20
|
+
var isEmpty = (0, _ahooks.useCreation)(function () {
|
|
21
|
+
return !children || _react.default.Children.count(children) === 0;
|
|
22
|
+
}, [children]);
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, (0, _extends2.default)({
|
|
24
|
+
className: (0, _classnames.default)(_index2.default['lc-component-box-design'], (0, _defineProperty2.default)({}, _index2.default.placeholder, isEmpty))
|
|
25
|
+
}, props), isEmpty ? '点击组件库的组件或拖拽组件到这里' : children);
|
|
26
|
+
};
|
|
27
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|
|
@@ -7,14 +7,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
13
|
var _ahooks = require("ahooks");
|
|
14
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
15
|
var _Wrapper = _interopRequireDefault(require("../Wrapper"));
|
|
14
|
-
var
|
|
16
|
+
var _index = _interopRequireDefault(require("./index.less"));
|
|
17
|
+
var _excluded = ["id", "children", "context", "className"];
|
|
15
18
|
var LCBox = function LCBox(_ref) {
|
|
16
19
|
var id = _ref.id,
|
|
17
20
|
children = _ref.children,
|
|
21
|
+
context = _ref.context,
|
|
22
|
+
className = _ref.className,
|
|
18
23
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
19
24
|
var ref = (0, _react.useRef)();
|
|
20
25
|
var getTargetDom = (0, _ahooks.useMemoizedFn)(function () {
|
|
@@ -24,7 +29,8 @@ var LCBox = function LCBox(_ref) {
|
|
|
24
29
|
id: id,
|
|
25
30
|
getTargetDom: getTargetDom
|
|
26
31
|
}, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
|
27
|
-
ref: ref
|
|
32
|
+
ref: ref,
|
|
33
|
+
className: (0, _classnames.default)(_index.default['lc-component-box'], (0, _defineProperty2.default)({}, className, !!className))
|
|
28
34
|
}, props, {
|
|
29
35
|
name: "box"
|
|
30
36
|
}), children));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.lc-component-box {
|
|
2
|
+
&-design.placeholder {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
min-height: 60px;
|
|
6
|
+
background-color: #f0f0f0;
|
|
7
|
+
border: 1px dotted;
|
|
8
|
+
color: #a7b1bd;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
14
|
+
var _index2 = require("../../../constants/index");
|
|
15
|
+
var _excluded = ["id", "children", "context", "className"];
|
|
16
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
17
|
+
var id = _ref.id,
|
|
18
|
+
children = _ref.children,
|
|
19
|
+
context = _ref.context,
|
|
20
|
+
className = _ref.className,
|
|
21
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_index.default, (0, _extends2.default)({
|
|
23
|
+
id: id,
|
|
24
|
+
className: (0, _classnames.default)(_index2.CELL_CLASS_NAME, (0, _defineProperty2.default)({}, className, !!className)),
|
|
25
|
+
context: context
|
|
26
|
+
}, props), children);
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionDesign = function FunctionDesign(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionDesign;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _index = _interopRequireDefault(require("./index"));
|
|
10
|
+
var _excluded = ["children"];
|
|
11
|
+
var FunctionLive = function FunctionLive(_ref) {
|
|
12
|
+
var children = _ref.children,
|
|
13
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
14
|
+
return /*#__PURE__*/React.createElement(_index.default, props, children);
|
|
15
|
+
};
|
|
16
|
+
var _default = exports.default = FunctionLive;
|
|
@@ -64,7 +64,7 @@ var LCDrawer = function LCDrawer(_ref) {
|
|
|
64
64
|
style: {
|
|
65
65
|
position: context.runtime === _constants.RUNTIME.DESIGN ? 'absolute' : 'fixed'
|
|
66
66
|
},
|
|
67
|
-
className: (0, _classnames.default)(
|
|
67
|
+
className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _style.default['runtime-drawer'], context.runtime === _constants.RUNTIME.DESIGN), className, !!className))
|
|
68
68
|
}, /*#__PURE__*/_react.default.createElement("div", null, "LCDrawer-", id), children));
|
|
69
69
|
};
|
|
70
70
|
var _default = exports.default = LCDrawer;
|
|
File without changes
|
|
File without changes
|