@gct-paas/design 0.1.4-dev.1 → 0.1.4-dev.11
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/dist/assets/transform-js.worker-CeYFqnkk.js +638 -0
- package/dist/index.esm.min.mjs +18089 -0
- package/dist/index.min.cjs +3 -1
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +3 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/assets/transform-js.worker-D2HSS5w_.js +270718 -0
- package/es/components/design-icon-button/design-icon-button.css +101 -0
- package/es/components/design-icon-button/design-icon-button.d.ts +104 -0
- package/es/components/design-icon-button/design-icon-button.mjs +150 -0
- package/es/components/design-save-tip/design-save-tip.css +107 -0
- package/es/components/design-save-tip/design-save-tip.d.ts +44 -0
- package/es/components/design-save-tip/design-save-tip.mjs +107 -0
- package/es/components/design-step-check/design-step-check.css +133 -0
- package/es/components/design-step-check/design-step-check.d.ts +30 -0
- package/es/components/design-step-check/design-step-check.mjs +122 -0
- package/es/components/design-view-layout/design-view-layout.css +157 -0
- package/es/components/design-view-layout/design-view-layout.d.ts +1 -0
- package/es/components/design-view-layout/design-view-layout.mjs +209 -0
- package/es/components/editor/index.d.ts +5 -0
- package/es/components/editor/index.mjs +15 -0
- package/es/components/editor/style/border-editor/border-box.css +144 -0
- package/es/components/editor/style/border-editor/border-box.vue.d.ts +10 -0
- package/es/components/editor/style/border-editor/border-box.vue2.mjs +7 -0
- package/es/components/editor/style/border-editor/border-box.vue3.mjs +305 -0
- package/es/components/editor/style/border-editor/border-editor.css +64 -0
- package/es/components/editor/style/border-editor/border-editor.vue.d.ts +13 -0
- package/es/components/editor/style/border-editor/border-editor.vue2.mjs +7 -0
- package/es/components/editor/style/border-editor/border-editor.vue3.mjs +60 -0
- package/es/components/editor/style/border-editor/border-radius.css +102 -0
- package/es/components/editor/style/border-editor/border-radius.vue.d.ts +10 -0
- package/es/components/editor/style/border-editor/border-radius.vue2.mjs +7 -0
- package/es/components/editor/style/border-editor/border-radius.vue3.mjs +212 -0
- package/es/components/editor/style/border-editor/util.d.ts +19 -0
- package/es/components/editor/style/border-editor/util.mjs +77 -0
- package/es/components/editor/style/font-editor/align-group.css +28 -0
- package/es/components/editor/style/font-editor/align-group.vue.d.ts +10 -0
- package/es/components/editor/style/font-editor/align-group.vue2.mjs +7 -0
- package/es/components/editor/style/font-editor/align-group.vue3.mjs +66 -0
- package/es/components/editor/style/font-editor/font-editor.vue.d.ts +10 -0
- package/es/components/editor/style/font-editor/font-editor.vue.mjs +72 -0
- package/es/components/editor/style/font-editor/font-editor.vue2.mjs +5 -0
- package/es/components/editor/style/font-editor/font-style-group.css +29 -0
- package/es/components/editor/style/font-editor/font-style-group.vue.d.ts +11 -0
- package/es/components/editor/style/font-editor/font-style-group.vue2.mjs +7 -0
- package/es/components/editor/style/font-editor/font-style-group.vue3.mjs +105 -0
- package/es/components/editor/style/font-editor/util.d.ts +2 -0
- package/es/components/editor/style/font-editor/util.mjs +12 -0
- package/es/components/editor/style/position-editor/position-editor.css +158 -0
- package/es/components/editor/style/position-editor/position-editor.vue.d.ts +12 -0
- package/es/components/editor/style/position-editor/position-editor.vue2.mjs +7 -0
- package/es/components/editor/style/position-editor/position-editor.vue3.mjs +242 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.css +135 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue.d.ts +16 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue2.mjs +7 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue3.mjs +311 -0
- package/es/components/field-cascader/index.d.ts +2 -0
- package/es/components/field-cascader/src/FieldCascader.css +69 -0
- package/es/components/field-cascader/src/FieldCascader.vue.d.ts +87 -0
- package/es/components/field-cascader/src/FieldCascader.vue.mjs +129 -0
- package/es/components/field-cascader/src/FieldCascader.vue3.mjs +6 -0
- package/es/components/field-cascader/src/SearchInput.css +9 -0
- package/es/components/field-cascader/src/SearchInput.vue.d.ts +11 -0
- package/es/components/field-cascader/src/SearchInput.vue.mjs +7 -0
- package/es/components/field-cascader/src/SearchInput.vue2.mjs +48 -0
- package/es/components/field-cascader/src/hooks.d.ts +129 -0
- package/es/components/field-cascader/src/hooks.mjs +205 -0
- package/es/components/field-transfer/components/Cascader/FieldCascader.d.ts +25 -0
- package/es/components/field-transfer/components/Cascader/FieldCascader.mjs +250 -0
- package/es/components/field-transfer/components/Transfer/AdvancedColumnSetting.d.ts +46 -0
- package/es/components/field-transfer/components/Transfer/AdvancedColumnSetting.mjs +56 -0
- package/es/components/field-transfer/components/Transfer/AdvancedTransfer.d.ts +39 -0
- package/es/components/field-transfer/components/Transfer/AdvancedTransfer.mjs +160 -0
- package/es/components/field-transfer/components/Transfer/FieldTransfer.d.ts +83 -0
- package/es/components/field-transfer/components/Transfer/FieldTransfer.mjs +211 -0
- package/es/components/field-transfer/components/Transfer/TransferTree.d.ts +62 -0
- package/es/components/field-transfer/components/Transfer/TransferTree.mjs +117 -0
- package/es/components/field-transfer/components/Transfer/TreeItem.d.ts +17 -0
- package/es/components/field-transfer/components/Transfer/TreeItem.mjs +41 -0
- package/es/components/field-transfer/components/field-transfer-modal.css +5 -0
- package/es/components/field-transfer/components/field-transfer-modal.vue.d.ts +43 -0
- package/es/components/field-transfer/components/field-transfer-modal.vue2.mjs +7 -0
- package/es/components/field-transfer/components/field-transfer-modal.vue3.mjs +230 -0
- package/es/components/field-transfer/components/modal-wrapper.vue.d.ts +19 -0
- package/es/components/field-transfer/components/modal-wrapper.vue.mjs +29 -0
- package/es/components/field-transfer/components/modal-wrapper.vue2.mjs +5 -0
- package/es/components/field-transfer/hooks/useTreeData.d.ts +139 -0
- package/es/components/field-transfer/hooks/useTreeData.mjs +165 -0
- package/es/components/field-transfer/index.d.ts +21 -0
- package/es/components/field-transfer/less/AdvancedTransfer.css +60 -0
- package/es/components/field-transfer/less/FieldCascader.css +57 -0
- package/es/components/field-transfer/less/TransferTree.css +86 -0
- package/es/components/field-transfer/less/TreeItem.css +29 -0
- package/es/components/field-transfer/useFieldTransfer.d.ts +47 -0
- package/es/components/field-transfer/useFieldTransfer.mjs +51 -0
- package/es/components/field-transfer/utils/tree-tool.d.ts +6 -0
- package/es/components/field-transfer/utils/tree-tool.mjs +73 -0
- package/es/components/icon/downleft-icon.vue.d.ts +4 -0
- package/es/components/icon/downleft-icon.vue.mjs +11 -0
- package/es/components/icon/downleft-icon.vue2.mjs +27 -0
- package/es/components/icon/downright-icon.vue.d.ts +4 -0
- package/es/components/icon/downright-icon.vue.mjs +11 -0
- package/es/components/icon/downright-icon.vue2.mjs +27 -0
- package/es/components/icon/upleft-icon.vue.d.ts +4 -0
- package/es/components/icon/upleft-icon.vue.mjs +11 -0
- package/es/components/icon/upleft-icon.vue2.mjs +27 -0
- package/es/components/icon/upright-icon.vue.d.ts +4 -0
- package/es/components/icon/upright-icon.vue.mjs +11 -0
- package/es/components/icon/upright-icon.vue2.mjs +27 -0
- package/es/components/index.d.ts +12 -0
- package/es/components/index.mjs +59 -0
- package/es/components/mobile-container/mobile-container.css +134 -0
- package/es/components/mobile-container/mobile-container.d.ts +31 -0
- package/es/components/mobile-container/mobile-container.mjs +81 -0
- package/es/components/modal-name-editor/modal-name-editor.css +117 -0
- package/es/components/modal-name-editor/modal-name-editor.d.ts +44 -0
- package/es/components/modal-name-editor/modal-name-editor.mjs +174 -0
- package/es/components/user-occupy/index.d.ts +4 -0
- package/es/components/user-occupy/occupy.const.d.ts +4 -0
- package/es/components/user-occupy/occupy.const.mjs +3 -0
- package/es/components/user-occupy/useUserOccupy.d.ts +38 -0
- package/es/components/user-occupy/useUserOccupy.mjs +218 -0
- package/es/components/user-occupy/user-lock.css +29 -0
- package/es/components/user-occupy/user-lock.vue.d.ts +2 -0
- package/es/components/user-occupy/user-lock.vue.mjs +7 -0
- package/es/components/user-occupy/user-lock.vue3.mjs +35 -0
- package/es/components/user-occupy/user-occupy.css +25 -0
- package/es/components/user-occupy/user-occupy.vue.d.ts +2 -0
- package/es/components/user-occupy/user-occupy.vue.mjs +7 -0
- package/es/components/user-occupy/user-occupy.vue3.mjs +36 -0
- package/es/constant/design-editor-type.d.ts +50 -0
- package/es/constant/design-editor-type.mjs +15 -0
- package/es/constant/index.d.ts +256 -1
- package/es/constant/index.mjs +71 -2
- package/es/constant/page-designer.d.ts +75 -0
- package/es/constant/page-designer.mjs +52 -0
- package/es/create-app-vue.d.ts +8 -0
- package/es/create-app-vue.mjs +7 -0
- package/es/data/design-container-node/design-container-node.d.ts +15 -0
- package/es/data/design-container-node/design-container-node.mjs +6 -0
- package/es/data/design-editor-node/design-editor-node.d.ts +16 -0
- package/es/data/design-editor-node/design-editor-node.mjs +8 -0
- package/es/data/design-node/design-node.d.ts +41 -0
- package/es/data/design-node/design-node.mjs +67 -0
- package/es/data/index.d.ts +3 -0
- package/es/dictionary/index.d.ts +1 -0
- package/es/dictionary/tab-type/tab-type.d.ts +5 -0
- package/es/hooks/design-view/constants/style-editor.const.d.ts +24 -0
- package/es/hooks/design-view/constants/style-editor.const.mjs +53 -0
- package/es/hooks/design-view/design-state.d.ts +2572 -0
- package/es/hooks/design-view/design-state.mjs +127 -0
- package/es/hooks/design-view/designer/useDesignCache.d.ts +4 -0
- package/es/hooks/design-view/designer/useDesignCache.mjs +90 -0
- package/es/hooks/design-view/designer/useDesignHistory.d.ts +16 -0
- package/es/hooks/design-view/designer/useDesignHistory.mjs +102 -0
- package/es/hooks/design-view/designer/useDesignModal.d.ts +3133 -0
- package/es/hooks/design-view/designer/useDesignModal.mjs +98 -0
- package/es/hooks/design-view/designer/useDesignPreview.d.ts +11 -0
- package/es/hooks/design-view/designer/useDesignPreview.mjs +201 -0
- package/es/hooks/design-view/designer/useDesignSave.d.ts +12 -0
- package/es/hooks/design-view/designer/useDesignSave.mjs +302 -0
- package/es/hooks/design-view/editor/usePropEditor.d.ts +33 -0
- package/es/hooks/design-view/editor/usePropEditor.mjs +99 -0
- package/es/hooks/design-view/editor/useStyle.d.ts +21 -0
- package/es/hooks/design-view/editor/useStyle.mjs +30 -0
- package/es/hooks/design-view/editor/useStyleEditor.d.ts +30 -0
- package/es/hooks/design-view/editor/useStyleEditor.mjs +77 -0
- package/es/hooks/design-view/global/useGlobal.d.ts +1470 -0
- package/es/hooks/design-view/global/useGlobal.mjs +74 -0
- package/es/hooks/design-view/layout/useScope.d.ts +12 -0
- package/es/hooks/design-view/layout/useScope.mjs +106 -0
- package/es/hooks/design-view/layout/useToolkit.d.ts +400 -0
- package/es/hooks/design-view/layout/useToolkit.mjs +356 -0
- package/es/hooks/design-view/page/usePage.d.ts +57 -0
- package/es/hooks/design-view/page/usePage.mjs +227 -0
- package/es/hooks/design-view/page/usePageOccupy.d.ts +33 -0
- package/es/hooks/design-view/page/usePageOccupy.mjs +77 -0
- package/es/hooks/design-view/useDesigner.d.ts +4259 -0
- package/es/hooks/design-view/useDesigner.mjs +125 -0
- package/es/hooks/design-view/utils/color.util.d.ts +21 -0
- package/es/hooks/design-view/utils/color.util.mjs +36 -0
- package/es/hooks/design-view/utils/field-schema.util.d.ts +55 -0
- package/es/hooks/design-view/utils/field-schema.util.mjs +96 -0
- package/es/hooks/design-view/widget/useSelectedWidget.d.ts +53 -0
- package/es/hooks/design-view/widget/useSelectedWidget.mjs +227 -0
- package/es/hooks/design-view/widget/useWidget.d.ts +102 -0
- package/es/hooks/design-view/widget/useWidget.mjs +119 -0
- package/es/hooks/design-view/widget/useWidgetQuery.d.ts +13 -0
- package/es/hooks/design-view/widget/useWidgetQuery.mjs +88 -0
- package/es/hooks/design-view/widget/useWidgetRegistry.d.ts +11 -0
- package/es/hooks/design-view/widget/useWidgetRegistry.mjs +118 -0
- package/es/hooks/designer.hooks.d.ts +15 -0
- package/es/hooks/designer.hooks.mjs +12 -0
- package/es/hooks/develop/useCacheHistory.d.ts +67 -0
- package/es/hooks/develop/useCacheHistory.mjs +157 -0
- package/es/hooks/develop/useKeyParser.d.ts +16 -0
- package/es/hooks/develop/useKeyParser.mjs +67 -0
- package/es/hooks/index.d.ts +26 -1
- package/es/hooks/use-model-field/use-model-field.d.ts +32 -0
- package/es/hooks/use-model-field/use-model-field.mjs +344 -0
- package/es/hooks/widgets/useAsyncFields.d.ts +17 -0
- package/es/hooks/widgets/useAsyncFields.mjs +177 -0
- package/es/hooks/widgets/useFileAttrsHooks.d.ts +28 -0
- package/es/hooks/widgets/useFileAttrsHooks.mjs +39 -0
- package/es/index.d.ts +9 -3
- package/es/index.mjs +103 -20
- package/es/interface/actions/i-design-view.actions.d.ts +217 -0
- package/es/interface/controller/i-design-view.controller.d.ts +53 -14
- package/es/interface/design/i-design-container-node.d.ts +13 -0
- package/es/interface/design/i-design-data.d.ts +44 -0
- package/es/interface/design/i-design-editor-data.d.ts +20 -0
- package/es/interface/design/i-design-editor-node.d.ts +15 -0
- package/es/interface/design/i-design-node-data.d.ts +19 -0
- package/es/interface/design/i-design-node.d.ts +80 -0
- package/es/interface/design/i-design-page-node-data.d.ts +15 -0
- package/es/interface/design/i-design-tree-item.d.ts +26 -0
- package/es/interface/design/i-model-field-node-data/i-model-field-node-data.d.ts +158 -0
- package/es/interface/design/index.d.ts +9 -0
- package/es/interface/designer/i-designer-hooks.d.ts +26 -0
- package/es/interface/designer/i-designer-provider.d.ts +20 -0
- package/es/interface/designer/i-designer-state.d.ts +41 -0
- package/es/interface/designer/i-designer.controller.d.ts +116 -0
- package/es/interface/designer/index.d.ts +4 -0
- package/es/interface/i-design-item-action/i-design-item-action.d.ts +42 -0
- package/es/interface/i-design-view-options/i-design-view-options.d.ts +69 -0
- package/es/interface/i-drag-collect/i-drag-collect.d.ts +6 -0
- package/es/interface/i-drag-data-item/i-drag-data-item.d.ts +13 -2
- package/es/interface/i-drag-item/i-drag-item.d.ts +13 -2
- package/es/interface/i-drop-collect/i-drop-collect.d.ts +8 -0
- package/es/interface/i-drop-result/i-drop-result.d.ts +2 -0
- package/es/interface/i-material-data/i-material-data.d.ts +50 -0
- package/es/interface/i-material-group/i-material-group.d.ts +51 -0
- package/es/interface/i-view-step/i-view-step.d.ts +32 -0
- package/es/interface/i-vue3-dnd-item-options/i-vue3-dnd-item-options.d.ts +323 -0
- package/es/interface/index.d.ts +29 -7
- package/es/interface/page-designer/toolkit.d.ts +12 -0
- package/es/interface/state/i-design-view.state.d.ts +107 -10
- package/es/props/index.d.ts +64 -0
- package/es/props/index.mjs +56 -0
- package/es/register/designer-register/designer-register.d.ts +82 -0
- package/es/register/designer-register/designer-register.mjs +102 -0
- package/es/register/index.d.ts +2 -0
- package/es/register/material/material.register.d.ts +90 -0
- package/es/register/material/material.register.mjs +134 -0
- package/es/schema/common-config/base-button-config.d.ts +1 -43
- package/es/schema/common-config/base-button-config.mjs +0 -1
- package/es/schema/common-config/button-editor-config.d.ts +2 -12
- package/es/schema/common-config/button-editor-config.mjs +66 -2
- package/es/schema/common-config/button-props-func.d.ts +1 -1
- package/es/schema/common-config/button-props-func.mjs +0 -1
- package/es/schema/common-config/common-event-config.d.ts +6 -0
- package/es/schema/common-config/common-event-config.mjs +14 -0
- package/es/schema/common-config/common-field-editor-config.d.ts +17 -0
- package/es/schema/common-config/common-field-editor-config.mjs +213 -0
- package/es/schema/common-config/common-style.d.ts +2 -2
- package/es/schema/common-config/common-style.mjs +2 -3
- package/es/schema/common-config/display-editor-config.d.ts +1 -1
- package/es/schema/common-config/display-editor-config.mjs +27 -5
- package/es/schema/common-config/formItem-editor-config.d.ts +1 -2
- package/es/schema/common-config/formItem-editor-config.mjs +2 -52
- package/es/schema/common-config/permission-editor-config.d.ts +1 -1
- package/es/schema/common-config/permission-editor-config.mjs +8 -1
- package/es/schema/index.d.ts +13 -9
- package/es/schema/modal/modal-body.d.ts +2 -0
- package/es/schema/modal/modal-body.mjs +9 -0
- package/es/schema/modal/modal-footer.d.ts +2 -0
- package/es/schema/modal/modal-footer.mjs +9 -0
- package/es/schema/modal/modal.d.ts +8 -0
- package/es/schema/modal/modal.mjs +182 -0
- package/es/schema/search/BaseDate.d.ts +143 -0
- package/es/schema/search/BaseDate.mjs +123 -0
- package/es/schema/search/BaseSearch.d.ts +141 -0
- package/es/schema/search/BaseSearch.mjs +160 -0
- package/es/setup-app.d.ts +1 -0
- package/es/setup-app.mjs +71 -0
- package/es/types/index.d.ts +10 -24
- package/es/utils/begin-drag/begin-drag.d.ts +13 -0
- package/es/utils/begin-drag/begin-drag.mjs +206 -0
- package/es/utils/design-interceptors/design-interceptors.d.ts +8 -0
- package/es/utils/design-interceptors/design-interceptors.mjs +20 -0
- package/es/utils/design-view/index.d.ts +9 -0
- package/es/utils/design-view/index.mjs +17 -0
- package/es/utils/field-attrs/basicAttrs.d.ts +25 -0
- package/es/utils/field-attrs/basicAttrs.mjs +724 -0
- package/es/utils/field-attrs/index.d.ts +8 -0
- package/es/utils/field-attrs/index.mjs +8 -0
- package/es/utils/field-filter/index.d.ts +4 -0
- package/es/utils/field-filter/index.mjs +58 -0
- package/es/utils/find-deep-types/find-deep-types.d.ts +9 -0
- package/es/utils/find-deep-types/find-deep-types.mjs +30 -0
- package/es/utils/flatten.d.ts +12 -0
- package/es/utils/flatten.mjs +27 -0
- package/es/utils/formula-editor-design/formula-editor-design.d.ts +9 -0
- package/es/utils/formula-editor-design/formula-editor-design.mjs +85 -0
- package/es/utils/index.d.ts +12 -1
- package/es/utils/init-widget-info/init-widget-info.d.ts +16 -0
- package/es/utils/init-widget-info/init-widget-info.mjs +40 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +97 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +258 -0
- package/es/utils/schema/index.d.ts +10 -0
- package/es/utils/schema/index.mjs +12 -0
- package/es/utils/transform-js/index.d.ts +1 -0
- package/es/utils/transform-js/transform-js.d.ts +13 -0
- package/es/utils/transform-js/transform-js.mjs +48 -0
- package/es/utils/transform-js/transform-js.worker.d.ts +1 -0
- package/package.json +31 -10
- package/es/constant/variable-type/variable-type.d.ts +0 -12
- package/es/constant/variable-type/variable-type.mjs +0 -13
- package/es/hooks/index.mjs +0 -3
- package/es/hooks/useStyle.d.ts +0 -15
- package/es/hooks/useStyle.mjs +0 -135
- package/es/interface/controller/i-design-drag.controller.d.ts +0 -42
- package/es/interface/controller/i-design-drag.controller.mjs +0 -1
- package/es/interface/controller/i-design-view.controller.mjs +0 -1
- package/es/interface/design-page/design-page.d.ts +0 -141
- package/es/interface/design-page/design-page.mjs +0 -1
- package/es/interface/i-drag-collect/i-drag-collect.mjs +0 -1
- package/es/interface/i-drag-data-item/i-drag-data-item.mjs +0 -1
- package/es/interface/i-drag-item/i-drag-item.mjs +0 -1
- package/es/interface/i-drop-collect/i-drop-collect.mjs +0 -1
- package/es/interface/i-drop-result/i-drop-result.mjs +0 -1
- package/es/interface/index.mjs +0 -3
- package/es/interface/props/index.d.ts +0 -1
- package/es/interface/props/index.mjs +0 -1
- package/es/interface/props/plugin-comp-props.d.ts +0 -15
- package/es/interface/props/plugin-comp-props.mjs +0 -1
- package/es/interface/state/i-design-drag.state.d.ts +0 -15
- package/es/interface/state/i-design-drag.state.mjs +0 -1
- package/es/interface/state/i-design-view.state.mjs +0 -1
- package/es/schema/common-config/autofill-editor-config.d.ts +0 -4
- package/es/schema/common-config/autofill-editor-config.mjs +0 -45
- package/es/schema/common-config/column-editor-config.d.ts +0 -3
- package/es/schema/common-config/column-editor-config.mjs +0 -29
- package/es/schema/index.mjs +0 -11
- package/es/utils/index.mjs +0 -3
- package/es/utils/message/message.d.ts +0 -14
- package/es/utils/message/message.mjs +0 -35
|
@@ -1,35 +1,74 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Store } from 'pinia';
|
|
2
2
|
import { IDesignViewState } from '../state/i-design-view.state';
|
|
3
|
+
import { IDesignViewActions } from '../actions/i-design-view.actions';
|
|
4
|
+
import { DesignViewHooks } from '../../hooks/designer.hooks';
|
|
5
|
+
import { IDesignNode } from '../design';
|
|
3
6
|
/**
|
|
4
7
|
* 设计界面控制器
|
|
5
8
|
*
|
|
9
|
+
* @author zhanghanrui
|
|
10
|
+
* @date 2024-07-05 14:07:01
|
|
6
11
|
* @export
|
|
7
12
|
* @interface IDesignViewController
|
|
8
13
|
*/
|
|
9
14
|
export interface IDesignViewController {
|
|
10
15
|
/**
|
|
11
|
-
*
|
|
16
|
+
* 界面状态
|
|
12
17
|
*
|
|
13
|
-
* @
|
|
18
|
+
* @author zhanghanrui
|
|
19
|
+
* @date 2024-07-05 14:07:20
|
|
20
|
+
* @type {Store<string, IDesignViewState, {}, IDesignViewActions>}
|
|
14
21
|
*/
|
|
15
|
-
readonly
|
|
22
|
+
readonly store: Store<string, IDesignViewState, object, IDesignViewActions>;
|
|
16
23
|
/**
|
|
17
|
-
*
|
|
24
|
+
* 设计界面钩子
|
|
18
25
|
*
|
|
19
|
-
* @type {
|
|
26
|
+
* @type {DesignViewHooks}
|
|
20
27
|
*/
|
|
21
|
-
readonly
|
|
28
|
+
readonly hooks: DesignViewHooks;
|
|
22
29
|
/**
|
|
23
|
-
*
|
|
30
|
+
* 效验设计界面数据
|
|
24
31
|
*
|
|
25
|
-
* @
|
|
26
|
-
* @
|
|
32
|
+
* @author zhanghanrui
|
|
33
|
+
* @date 2024-08-04 15:08:24
|
|
34
|
+
* @return {*} {Promise<boolean>}
|
|
27
35
|
*/
|
|
28
|
-
|
|
36
|
+
validate(): Promise<boolean>;
|
|
29
37
|
/**
|
|
30
|
-
*
|
|
38
|
+
* 界面挂载时调用
|
|
31
39
|
*
|
|
32
|
-
* @
|
|
40
|
+
* @author zhanghanrui
|
|
41
|
+
* @date 2024-07-05 14:07:24
|
|
33
42
|
*/
|
|
34
|
-
|
|
43
|
+
mounted(): void;
|
|
44
|
+
/**
|
|
45
|
+
* 界面销毁调用
|
|
46
|
+
*
|
|
47
|
+
* @author zhanghanrui
|
|
48
|
+
* @date 2024-07-05 14:07:53
|
|
49
|
+
*/
|
|
50
|
+
unmounted(): void;
|
|
51
|
+
/**
|
|
52
|
+
* 设置容器展开节点
|
|
53
|
+
*
|
|
54
|
+
* @param {string[]} ids
|
|
55
|
+
*/
|
|
56
|
+
setExpansion(ids: string[]): void;
|
|
57
|
+
/**
|
|
58
|
+
* 取消容器展开节点
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
cancelExpansion(): void;
|
|
62
|
+
/**
|
|
63
|
+
* 获取当前节点所有子节点类型
|
|
64
|
+
*
|
|
65
|
+
* @param {IDesignNode} node
|
|
66
|
+
* @returns {*} {string[]}
|
|
67
|
+
*/
|
|
68
|
+
types(node: IDesignNode): string[];
|
|
69
|
+
/**
|
|
70
|
+
* 结束放置
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
dropEnd(): void;
|
|
35
74
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IDesignNode } from './i-design-node';
|
|
2
|
+
import { IDesignNodeData } from './i-design-node-data';
|
|
3
|
+
/**
|
|
4
|
+
* 容器节点
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-07-12 17:07:56
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IDesignContainerNode
|
|
10
|
+
* @extends {IDesignNode<T>}
|
|
11
|
+
* @template T
|
|
12
|
+
*/
|
|
13
|
+
export type IDesignContainerNode<T extends IDesignNodeData = IDesignNodeData> = IDesignNode<T>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IDesignNode } from './i-design-node';
|
|
2
|
+
import { IDesignTreeItem } from './i-design-tree-item';
|
|
3
|
+
/**
|
|
4
|
+
* 设计 json
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-07-11 17:07:54
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IDesignData
|
|
10
|
+
*/
|
|
11
|
+
export interface IDesignData {
|
|
12
|
+
/**
|
|
13
|
+
* 设计界面类型
|
|
14
|
+
*
|
|
15
|
+
* @author zhanghanrui
|
|
16
|
+
* @date 2024-10-12 09:10:39
|
|
17
|
+
* @type {string}
|
|
18
|
+
*/
|
|
19
|
+
type: string;
|
|
20
|
+
/**
|
|
21
|
+
* 页面节点
|
|
22
|
+
*
|
|
23
|
+
* @author zhanghanrui
|
|
24
|
+
* @date 2024-07-24 10:07:39
|
|
25
|
+
* @type {IDesignNode | null}
|
|
26
|
+
*/
|
|
27
|
+
pageNode: IDesignNode | null;
|
|
28
|
+
/**
|
|
29
|
+
* 设计元素节点
|
|
30
|
+
*
|
|
31
|
+
* @author zhanghanrui
|
|
32
|
+
* @date 2024-07-11 17:07:01
|
|
33
|
+
* @type {IDesignNode[]}
|
|
34
|
+
*/
|
|
35
|
+
nodes: IDesignNode[];
|
|
36
|
+
/**
|
|
37
|
+
* 层级树
|
|
38
|
+
*
|
|
39
|
+
* @author zhanghanrui
|
|
40
|
+
* @date 2024-08-20 10:08:11
|
|
41
|
+
* @type {IDesignTreeItem[]}
|
|
42
|
+
*/
|
|
43
|
+
tree: IDesignTreeItem[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IDesignNodeData } from './i-design-node-data';
|
|
2
|
+
/**
|
|
3
|
+
* 设计编辑器数据接口
|
|
4
|
+
*
|
|
5
|
+
* @author chitanda
|
|
6
|
+
* @date 2025-07-07 15:07:57
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignEditorData
|
|
9
|
+
* @extends {IDesignNodeData}
|
|
10
|
+
*/
|
|
11
|
+
export interface IDesignEditorData extends IDesignNodeData {
|
|
12
|
+
/**
|
|
13
|
+
* 属性配置
|
|
14
|
+
*
|
|
15
|
+
* @author chitanda
|
|
16
|
+
* @date 2025-07-07 15:07:03
|
|
17
|
+
* @type {IObject}
|
|
18
|
+
*/
|
|
19
|
+
field: IObject;
|
|
20
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IDesignEditorData } from './i-design-editor-data';
|
|
2
|
+
import { IDesignNode } from './i-design-node';
|
|
3
|
+
/**
|
|
4
|
+
* 设计编辑器节点接口
|
|
5
|
+
*
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2025-07-07 15:07:25
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IDesignEditorNode
|
|
10
|
+
* @extends {IDesignNode<T>}
|
|
11
|
+
* @template T
|
|
12
|
+
*/
|
|
13
|
+
export interface IDesignEditorNode<T extends IDesignEditorData = IDesignEditorData> extends IDesignNode<T> {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设计节点数据
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-07-09 16:07:29
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IDesignNodeData
|
|
8
|
+
*/
|
|
9
|
+
export interface IDesignNodeData {
|
|
10
|
+
[key: string | symbol]: any;
|
|
11
|
+
/**
|
|
12
|
+
* 设计节点名称
|
|
13
|
+
*
|
|
14
|
+
* @author zhanghanrui
|
|
15
|
+
* @date 2024-07-12 11:07:05
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { IDesignNodeData } from './i-design-node-data';
|
|
2
|
+
/**
|
|
3
|
+
* 设计节点
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-07-09 16:07:21
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignNode
|
|
9
|
+
* @template T
|
|
10
|
+
*/
|
|
11
|
+
export interface IDesignNode<T extends IDesignNodeData = IDesignNodeData> {
|
|
12
|
+
/**
|
|
13
|
+
* 节点唯一标识
|
|
14
|
+
*
|
|
15
|
+
* @author zhanghanrui
|
|
16
|
+
* @date 2024-07-05 13:07:46
|
|
17
|
+
* @type {string}
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* 排序值
|
|
22
|
+
* 2024年8月23日15:10:19 - 改版后 order 不再使用
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
25
|
+
* @author zhanghanrui
|
|
26
|
+
* @date 2024-07-12 14:07:40
|
|
27
|
+
* @type {number}
|
|
28
|
+
*/
|
|
29
|
+
order?: number;
|
|
30
|
+
/**
|
|
31
|
+
* 名称
|
|
32
|
+
*
|
|
33
|
+
* @author zhanghanrui
|
|
34
|
+
* @date 2024-07-05 15:07:37
|
|
35
|
+
* @type {string}
|
|
36
|
+
*/
|
|
37
|
+
label: string;
|
|
38
|
+
/**
|
|
39
|
+
* 节点类型
|
|
40
|
+
*
|
|
41
|
+
* @author zhanghanrui
|
|
42
|
+
* @date 2024-07-05 13:07:46
|
|
43
|
+
* @type {string}
|
|
44
|
+
*/
|
|
45
|
+
type: string;
|
|
46
|
+
/**
|
|
47
|
+
* 数据更新时间戳
|
|
48
|
+
*
|
|
49
|
+
* @author zhanghanrui
|
|
50
|
+
* @date 2024-07-05 17:07:02
|
|
51
|
+
* @type {number}
|
|
52
|
+
*/
|
|
53
|
+
updateDate: number;
|
|
54
|
+
/**
|
|
55
|
+
* 设计项的数据
|
|
56
|
+
*
|
|
57
|
+
* @author zhanghanrui
|
|
58
|
+
* @date 2024-07-09 16:07:47
|
|
59
|
+
* @type {T}
|
|
60
|
+
*/
|
|
61
|
+
data: T;
|
|
62
|
+
/**
|
|
63
|
+
* 父节点标识
|
|
64
|
+
* 2024年8月23日15:10:19 - 改版后 parentId 不再使用
|
|
65
|
+
*
|
|
66
|
+
* @deprecated
|
|
67
|
+
* @author zhanghanrui
|
|
68
|
+
* @date 2024-07-05 13:07:38
|
|
69
|
+
* @type {string}
|
|
70
|
+
*/
|
|
71
|
+
parentId?: string;
|
|
72
|
+
/**
|
|
73
|
+
* 克隆
|
|
74
|
+
*
|
|
75
|
+
* @author zhanghanrui
|
|
76
|
+
* @date 2024-07-12 13:07:44
|
|
77
|
+
* @return {*} {IDesignNode}
|
|
78
|
+
*/
|
|
79
|
+
clone(): IDesignNode;
|
|
80
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IDesignNodeData } from './i-design-node-data';
|
|
2
|
+
/**
|
|
3
|
+
* 设计界面节点
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-07-24 10:07:27
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignPageNode
|
|
9
|
+
* @extends {IDesignNode}
|
|
10
|
+
*/
|
|
11
|
+
export interface IDesignPageNodeData extends IDesignNodeData {
|
|
12
|
+
background: string;
|
|
13
|
+
padding: string;
|
|
14
|
+
headerBgColor?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设计树项
|
|
3
|
+
*
|
|
4
|
+
* @author zhanghanrui
|
|
5
|
+
* @date 2024-08-20 10:08:36
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IDesignTreeItem
|
|
8
|
+
*/
|
|
9
|
+
export interface IDesignTreeItem {
|
|
10
|
+
/**
|
|
11
|
+
* 标识
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-08-20 10:08:48
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* 子项
|
|
20
|
+
*
|
|
21
|
+
* @author zhanghanrui
|
|
22
|
+
* @date 2024-08-20 10:08:56
|
|
23
|
+
* @type {IDesignTreeItem[]}
|
|
24
|
+
*/
|
|
25
|
+
children?: IDesignTreeItem[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { IDesignNodeData } from '../i-design-node-data';
|
|
2
|
+
import { IFieldCodeChain, IFont, TagTypeEnum } from '@gct-paas/core';
|
|
3
|
+
/**
|
|
4
|
+
* 卡片字段设计节点数据接口
|
|
5
|
+
*
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2025-06-18 17:06:52
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IModelFieldNodeData
|
|
10
|
+
* @extends {IDesignNodeData}
|
|
11
|
+
*/
|
|
12
|
+
export interface IModelFieldNodeData extends IDesignNodeData {
|
|
13
|
+
/**
|
|
14
|
+
* 模型标识
|
|
15
|
+
*
|
|
16
|
+
* @author chitanda
|
|
17
|
+
* @date 2025-07-02 09:07:02
|
|
18
|
+
* @type {string}
|
|
19
|
+
*/
|
|
20
|
+
modelKey: string;
|
|
21
|
+
/**
|
|
22
|
+
* 模型分类
|
|
23
|
+
*
|
|
24
|
+
* @author chitanda
|
|
25
|
+
* @date 2025-07-02 09:07:07
|
|
26
|
+
* @type {string}
|
|
27
|
+
*/
|
|
28
|
+
modelCategory: string;
|
|
29
|
+
/**
|
|
30
|
+
* 字段标识
|
|
31
|
+
*
|
|
32
|
+
* @author chitanda
|
|
33
|
+
* @date 2025-06-18 19:06:47
|
|
34
|
+
* @type {string}
|
|
35
|
+
*/
|
|
36
|
+
key: string;
|
|
37
|
+
/**
|
|
38
|
+
* 字段类型
|
|
39
|
+
*
|
|
40
|
+
* @author chitanda
|
|
41
|
+
* @date 2025-06-22 11:06:03
|
|
42
|
+
* @type {string}
|
|
43
|
+
*/
|
|
44
|
+
type: string;
|
|
45
|
+
/**
|
|
46
|
+
* 字段映射类型
|
|
47
|
+
*
|
|
48
|
+
* @author chitanda
|
|
49
|
+
* @date 2025-06-22 11:06:33
|
|
50
|
+
* @type {string}
|
|
51
|
+
*/
|
|
52
|
+
mapping_type?: string;
|
|
53
|
+
/**
|
|
54
|
+
* 字段代码链,表示字段的完整路径。根据字段的层级关系进行拼接
|
|
55
|
+
*
|
|
56
|
+
* @author chitanda
|
|
57
|
+
* @date 2025-06-22 14:06:03
|
|
58
|
+
* @type {IFieldCodeChain}
|
|
59
|
+
*/
|
|
60
|
+
fieldCodeChain?: IFieldCodeChain;
|
|
61
|
+
/**
|
|
62
|
+
* 用户自定义的显示名称,未定义则使用字段的名称
|
|
63
|
+
*
|
|
64
|
+
* @author chitanda
|
|
65
|
+
* @date 2025-06-19 10:06:23
|
|
66
|
+
* @type {string}
|
|
67
|
+
*/
|
|
68
|
+
label?: string;
|
|
69
|
+
/**
|
|
70
|
+
* 字段名称
|
|
71
|
+
*
|
|
72
|
+
* @author chitanda
|
|
73
|
+
* @date 2025-06-30 11:06:27
|
|
74
|
+
* @type {string}
|
|
75
|
+
*/
|
|
76
|
+
name: string;
|
|
77
|
+
/**
|
|
78
|
+
* 是否显示标签
|
|
79
|
+
*
|
|
80
|
+
* @default true
|
|
81
|
+
* @author chitanda
|
|
82
|
+
* @date 2025-06-22 11:06:43
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
*/
|
|
85
|
+
show_label?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* 编辑器类型
|
|
88
|
+
*
|
|
89
|
+
* @author chitanda
|
|
90
|
+
* @date 2025-06-22 11:06:37
|
|
91
|
+
* @type {string}
|
|
92
|
+
*/
|
|
93
|
+
editor_type?: string;
|
|
94
|
+
/**
|
|
95
|
+
* 币种:根据编辑器类型显示
|
|
96
|
+
*
|
|
97
|
+
* @author chitanda
|
|
98
|
+
* @date 2025-06-24 14:06:00
|
|
99
|
+
* @type {string}
|
|
100
|
+
*/
|
|
101
|
+
currency?: string;
|
|
102
|
+
/**
|
|
103
|
+
* 时间类型:根据编辑器类型显示
|
|
104
|
+
*
|
|
105
|
+
* @author chitanda
|
|
106
|
+
* @date 2025-06-24 14:06:58
|
|
107
|
+
* @type {string}
|
|
108
|
+
*/
|
|
109
|
+
time_type?: string;
|
|
110
|
+
/**
|
|
111
|
+
* 格式化分割符存储的配置项
|
|
112
|
+
*
|
|
113
|
+
* @author chitanda
|
|
114
|
+
* @date 2025-06-23 19:06:21
|
|
115
|
+
* @type {string}
|
|
116
|
+
*/
|
|
117
|
+
separator?: string;
|
|
118
|
+
/**
|
|
119
|
+
* 字段格式化方式
|
|
120
|
+
*
|
|
121
|
+
* @author chitanda
|
|
122
|
+
* @date 2025-06-22 11:06:55
|
|
123
|
+
* @type {string}
|
|
124
|
+
*/
|
|
125
|
+
format?: string;
|
|
126
|
+
/**
|
|
127
|
+
* 标签字体样式配置
|
|
128
|
+
*
|
|
129
|
+
* @author chitanda
|
|
130
|
+
* @date 2025-06-24 19:06:36
|
|
131
|
+
* @type {IFont}
|
|
132
|
+
*/
|
|
133
|
+
label_font?: IFont;
|
|
134
|
+
/**
|
|
135
|
+
* 内容字体样式配置
|
|
136
|
+
*
|
|
137
|
+
* @author chitanda
|
|
138
|
+
* @date 2025-06-24 19:06:38
|
|
139
|
+
* @type {IFont}
|
|
140
|
+
*/
|
|
141
|
+
content_font?: IFont;
|
|
142
|
+
/**
|
|
143
|
+
* 标签样式配置
|
|
144
|
+
*
|
|
145
|
+
* @author chitanda
|
|
146
|
+
* @date 2025-06-24 19:06:01
|
|
147
|
+
* @type {{
|
|
148
|
+
* check: boolean;
|
|
149
|
+
* color: string;
|
|
150
|
+
* mode: TagTypeEnum;
|
|
151
|
+
* }}
|
|
152
|
+
*/
|
|
153
|
+
tag_style?: {
|
|
154
|
+
check: boolean;
|
|
155
|
+
color: string;
|
|
156
|
+
mode: TagTypeEnum;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { IModelFieldNodeData } from './i-model-field-node-data/i-model-field-node-data';
|
|
2
|
+
export type { IDesignContainerNode } from './i-design-container-node';
|
|
3
|
+
export type { IDesignPageNodeData } from './i-design-page-node-data';
|
|
4
|
+
export type { IDesignData } from './i-design-data';
|
|
5
|
+
export type { IDesignEditorData } from './i-design-editor-data';
|
|
6
|
+
export type { IDesignEditorNode } from './i-design-editor-node';
|
|
7
|
+
export type { IDesignNodeData } from './i-design-node-data';
|
|
8
|
+
export type { IDesignNode } from './i-design-node';
|
|
9
|
+
export type { IDesignTreeItem } from './i-design-tree-item';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SyncSeriesHook } from 'qx-util';
|
|
2
|
+
import { LowCodeWidget } from '@gct-paas/schema';
|
|
3
|
+
/**
|
|
4
|
+
* 设计界面钩子接口
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IDesignerHooks
|
|
8
|
+
*/
|
|
9
|
+
export interface IDesignerHooks {
|
|
10
|
+
/**
|
|
11
|
+
* 触发执行设计容器扩容展示
|
|
12
|
+
*/
|
|
13
|
+
expansion: SyncSeriesHook<[], LowCodeWidget.BasicSchema[]>;
|
|
14
|
+
/**
|
|
15
|
+
* 触发选中项重选
|
|
16
|
+
*/
|
|
17
|
+
selectHighlightChange: SyncSeriesHook<[]>;
|
|
18
|
+
/**
|
|
19
|
+
* 触发悬浮项重选
|
|
20
|
+
*/
|
|
21
|
+
hoverHighlightChange: SyncSeriesHook<[]>;
|
|
22
|
+
/**
|
|
23
|
+
* 设置选中项
|
|
24
|
+
*/
|
|
25
|
+
setSelect: SyncSeriesHook<[key: string]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { IWidgetInfoItem } from '@gct-paas/schema';
|
|
3
|
+
/**
|
|
4
|
+
* 设计界面项
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-05-24 13:05:47
|
|
8
|
+
* @export
|
|
9
|
+
* @interface IDesignerProvider
|
|
10
|
+
*/
|
|
11
|
+
export interface IDesignerProvider extends IWidgetInfoItem {
|
|
12
|
+
/**
|
|
13
|
+
* render 绘制组件,目前只支持异步组件
|
|
14
|
+
*
|
|
15
|
+
* @author zhanghanrui
|
|
16
|
+
* @date 2024-05-24 17:05:17
|
|
17
|
+
* @type {Component}
|
|
18
|
+
*/
|
|
19
|
+
component: Component;
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LowCodeWidget } from '@gct-paas/schema';
|
|
2
|
+
/**
|
|
3
|
+
* 设计器状态接口
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghanrui
|
|
6
|
+
* @date 2024-05-09 14:05:44
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IDesignerState
|
|
9
|
+
*/
|
|
10
|
+
export interface IDesignerState {
|
|
11
|
+
/**
|
|
12
|
+
* 设计页面是否正在拖拽中
|
|
13
|
+
*/
|
|
14
|
+
isDragging: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 当前正在拖拽中的数据(旧拖拽)
|
|
17
|
+
*
|
|
18
|
+
* @deprecated
|
|
19
|
+
* @type {IData | null}
|
|
20
|
+
*/
|
|
21
|
+
draggingData: IData | null;
|
|
22
|
+
/**
|
|
23
|
+
* 当前鼠标容器悬浮元素(旧拖拽)
|
|
24
|
+
*
|
|
25
|
+
* @deprecated
|
|
26
|
+
* @type {(HTMLDivElement | null)}
|
|
27
|
+
*/
|
|
28
|
+
hoverEL: HTMLDivElement | null;
|
|
29
|
+
/**
|
|
30
|
+
* 拖拽放置目标容器
|
|
31
|
+
*/
|
|
32
|
+
dropContainer: LowCodeWidget.BasicSchema | null;
|
|
33
|
+
/**
|
|
34
|
+
* 需要扩张的容器列表
|
|
35
|
+
*/
|
|
36
|
+
expansionContainerList: LowCodeWidget.BasicSchema[];
|
|
37
|
+
/**
|
|
38
|
+
* 数据变更次数,主要用于复杂结构下,数据变更后的设计界面重绘
|
|
39
|
+
*/
|
|
40
|
+
count: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { LowCodeWidget } from '@gct-paas/schema';
|
|
2
|
+
import { IDesignerHooks } from './i-designer-hooks';
|
|
3
|
+
import { IDesignerState } from './i-designer-state';
|
|
4
|
+
/**
|
|
5
|
+
* 设计界面控制器接口
|
|
6
|
+
*
|
|
7
|
+
* @author zhanghanrui
|
|
8
|
+
* @date 2024-05-09 14:05:12
|
|
9
|
+
* @export
|
|
10
|
+
* @interface IDesignerController
|
|
11
|
+
*/
|
|
12
|
+
export interface IDesignerController {
|
|
13
|
+
/**
|
|
14
|
+
* 设计界面状态
|
|
15
|
+
*
|
|
16
|
+
* @author zhanghanrui
|
|
17
|
+
* @date 2024-05-09 14:05:19
|
|
18
|
+
*/
|
|
19
|
+
readonly state: IDesignerState;
|
|
20
|
+
/**
|
|
21
|
+
* 设计界面钩子
|
|
22
|
+
*
|
|
23
|
+
* @type {IDesignerHooks}
|
|
24
|
+
*/
|
|
25
|
+
readonly hooks: IDesignerHooks;
|
|
26
|
+
/**
|
|
27
|
+
* 鼠标悬浮元素清单
|
|
28
|
+
*
|
|
29
|
+
* @author zhanghanrui
|
|
30
|
+
* @date 2024-05-10 10:05:47
|
|
31
|
+
* @type {HTMLDivElement[]}
|
|
32
|
+
*/
|
|
33
|
+
readonly hoverStack: HTMLDivElement[];
|
|
34
|
+
/**
|
|
35
|
+
* 拖拽设计区容器
|
|
36
|
+
*
|
|
37
|
+
* @author zhanghanrui
|
|
38
|
+
* @date 2024-05-10 13:05:46
|
|
39
|
+
* @type {HTMLDivElement}
|
|
40
|
+
*/
|
|
41
|
+
stageContainer: HTMLDivElement;
|
|
42
|
+
/**
|
|
43
|
+
* 拖拽展开定时器
|
|
44
|
+
*
|
|
45
|
+
* @type {(number | null)}
|
|
46
|
+
*/
|
|
47
|
+
expansionTimer: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* 设置拖拽数据
|
|
50
|
+
*
|
|
51
|
+
* @author zhanghanrui
|
|
52
|
+
* @date 2024-05-09 14:05:31
|
|
53
|
+
* @param {(IData | null)} data
|
|
54
|
+
*/
|
|
55
|
+
setDragData(data: IData | null): void;
|
|
56
|
+
/**
|
|
57
|
+
* 获取当前拖拽数据
|
|
58
|
+
*
|
|
59
|
+
* @author zhanghanrui
|
|
60
|
+
* @date 2024-05-09 14:05:49
|
|
61
|
+
* @return {*} {(IData | null)}
|
|
62
|
+
*/
|
|
63
|
+
getDragData(): IData | null;
|
|
64
|
+
/**
|
|
65
|
+
* 新增鼠标悬浮堆栈
|
|
66
|
+
*
|
|
67
|
+
* @author zhanghanrui
|
|
68
|
+
* @date 2024-05-10 10:05:02
|
|
69
|
+
* @param {HTMLDivElement} el
|
|
70
|
+
*/
|
|
71
|
+
pushStack(el: HTMLDivElement): void;
|
|
72
|
+
/**
|
|
73
|
+
* 删除鼠标悬浮堆栈
|
|
74
|
+
*
|
|
75
|
+
* @author zhanghanrui
|
|
76
|
+
* @date 2024-05-08 11:05:53
|
|
77
|
+
* @param {HTMLDivElement} el
|
|
78
|
+
*/
|
|
79
|
+
popStack(el: HTMLDivElement): void;
|
|
80
|
+
/**
|
|
81
|
+
* 重置悬浮缓存
|
|
82
|
+
*
|
|
83
|
+
* @author zhanghanrui
|
|
84
|
+
* @date 2024-05-15 11:05:51
|
|
85
|
+
*/
|
|
86
|
+
resetStack(): void;
|
|
87
|
+
/**
|
|
88
|
+
* 添加展开容器
|
|
89
|
+
*
|
|
90
|
+
* @param {LowCodeWidget.BasicSchema[]} widgets
|
|
91
|
+
* @returns {*} {void}
|
|
92
|
+
*/
|
|
93
|
+
setExpansion(widgets: LowCodeWidget.BasicSchema[]): void;
|
|
94
|
+
/**
|
|
95
|
+
* 取消展开容器
|
|
96
|
+
*/
|
|
97
|
+
cancelExpansion(): void;
|
|
98
|
+
/**
|
|
99
|
+
* 强制设计界面重绘
|
|
100
|
+
*/
|
|
101
|
+
force(): void;
|
|
102
|
+
/**
|
|
103
|
+
* 重新计算选中高亮
|
|
104
|
+
*/
|
|
105
|
+
changeSelectHighlight(): void;
|
|
106
|
+
/**
|
|
107
|
+
* 重新计算悬浮高亮
|
|
108
|
+
*/
|
|
109
|
+
changeHoverHighlight(): void;
|
|
110
|
+
/**
|
|
111
|
+
* 设置选中
|
|
112
|
+
*
|
|
113
|
+
* @param {string} key
|
|
114
|
+
*/
|
|
115
|
+
setSelect(key: string): void;
|
|
116
|
+
}
|