@gct-paas/design 0.1.4-dev.7 → 0.1.4-dev.8
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/index.esm.min.mjs +24966 -484
- package/dist/index.min.cjs +70 -1
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +70 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/components/design/design-content/design-content.css +76 -0
- package/es/components/design/design-content/design-content.d.ts +191 -0
- package/es/components/design/design-content/design-content.mjs +361 -0
- package/es/components/design/design-drag-item/design-drag-item.css +179 -0
- package/es/components/design/design-drag-item/design-drag-item.d.ts +55 -0
- package/es/components/design/design-drag-item/design-drag-item.mjs +293 -0
- package/es/components/design/design-drop-container/design-drop-container.css +103 -0
- package/es/components/design/design-drop-container/design-drop-container.d.ts +87 -0
- package/es/components/design/design-drop-container/design-drop-container.mjs +217 -0
- package/es/components/design/design-drop-line/design-drop-line.css +165 -0
- package/es/components/design/design-drop-line/design-drop-line.d.ts +72 -0
- package/es/components/design/design-drop-line/design-drop-line.mjs +174 -0
- package/es/components/design/design-item-actions/design-item-actions.css +97 -0
- package/es/components/design/design-item-actions/design-item-actions.d.ts +42 -0
- package/es/components/design/design-item-actions/design-item-actions.mjs +195 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.css +70 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.d.ts +168 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.mjs +164 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.css +85 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.d.ts +53 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.mjs +223 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.css +12 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.d.ts +60 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.mjs +74 -0
- package/es/components/design/design-item-preview/design-item-preview.css +91 -0
- package/es/components/design/design-item-preview/design-item-preview.d.ts +1 -0
- package/es/components/design/design-item-preview/design-item-preview.mjs +50 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.css +67 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.d.ts +49 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.mjs +85 -0
- package/es/components/design/design-not-found/design-not-found.css +68 -0
- package/es/components/design/design-not-found/design-not-found.d.ts +14 -0
- package/es/components/design/design-not-found/design-not-found.mjs +26 -0
- package/es/components/design/index.d.ts +6 -0
- package/es/components/design/index.mjs +22 -0
- package/es/components/design-icon-button/design-icon-button.css +101 -0
- package/es/components/design-icon-button/design-icon-button.d.ts +106 -0
- package/es/components/design-icon-button/design-icon-button.mjs +151 -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.d.ts +1 -0
- package/es/components/design-view-layout/design-view-layout.mjs +208 -0
- package/es/components/design-view-layout/design-view-layout.module.css +154 -0
- package/es/components/design-view-layout/design-view-layout.module.scss.mjs +27 -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.vue.mjs +7 -0
- package/es/components/editor/style/border-editor/border-box.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/border-editor/border-editor.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/border-editor/border-radius.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/font-editor/align-group.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/font-editor/font-style-group.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/position-editor/position-editor.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue2.mjs +311 -0
- package/es/components/icon/downleft-icon.vue.d.ts +4 -0
- package/es/components/icon/downleft-icon.vue.mjs +27 -0
- package/es/components/icon/downleft-icon.vue2.mjs +11 -0
- package/es/components/icon/downright-icon.vue.d.ts +4 -0
- package/es/components/icon/downright-icon.vue.mjs +27 -0
- package/es/components/icon/downright-icon.vue2.mjs +11 -0
- package/es/components/icon/upleft-icon.vue.d.ts +4 -0
- package/es/components/icon/upleft-icon.vue.mjs +27 -0
- package/es/components/icon/upleft-icon.vue2.mjs +11 -0
- package/es/components/icon/upright-icon.vue.d.ts +4 -0
- package/es/components/icon/upright-icon.vue.mjs +27 -0
- package/es/components/icon/upright-icon.vue2.mjs +11 -0
- package/es/components/index.d.ts +9 -0
- package/es/components/index.mjs +25 -0
- package/es/components/material/index.d.ts +5 -0
- package/es/components/material/index.mjs +9 -0
- package/es/components/material/material-content/material-content.css +86 -0
- package/es/components/material/material-content/material-content.d.ts +179 -0
- package/es/components/material/material-content/material-content.mjs +59 -0
- package/es/components/material/material-module/material-module.css +104 -0
- package/es/components/material/material-module/material-module.d.ts +68 -0
- package/es/components/material/material-module/material-module.mjs +108 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.css +69 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.d.ts +58 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.mjs +32 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.css +83 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.d.ts +17 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.mjs +101 -0
- package/es/components/material/material-outline-tree/material-outline-tree.css +81 -0
- package/es/components/material/material-outline-tree/material-outline-tree.d.ts +1 -0
- package/es/components/material/material-outline-tree/material-outline-tree.mjs +87 -0
- package/es/components/material/material-tab-pane/material-tab-pane.css +68 -0
- package/es/components/material/material-tab-pane/material-tab-pane.d.ts +13 -0
- package/es/components/material/material-tab-pane/material-tab-pane.mjs +26 -0
- package/es/components/material/material-tabs/material-tabs.css +105 -0
- package/es/components/material/material-tabs/material-tabs.d.ts +99 -0
- package/es/components/material/material-tabs/material-tabs.mjs +69 -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/panel/index.d.ts +5 -0
- package/es/components/panel/index.mjs +9 -0
- package/es/components/panel/panel-content/panel-content.css +183 -0
- package/es/components/panel/panel-content/panel-content.d.ts +19 -0
- package/es/components/panel/panel-content/panel-content.mjs +71 -0
- package/es/components/panel/panel-form/panel-form.css +67 -0
- package/es/components/panel/panel-form/panel-form.d.ts +62 -0
- package/es/components/panel/panel-form/panel-form.mjs +73 -0
- package/es/components/panel/panel-path/panel-path.css +89 -0
- package/es/components/panel/panel-path/panel-path.d.ts +35 -0
- package/es/components/panel/panel-path/panel-path.mjs +72 -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 +72 -0
- package/es/constant/page-designer.d.ts +75 -0
- package/es/constant/page-designer.mjs +52 -0
- package/es/controller/index.d.ts +1 -0
- package/es/controller/view/design-view.controller.d.ts +47 -0
- package/es/controller/view/design-view.controller.mjs +184 -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/dictionary/tab-type/tab-type.mjs +24 -0
- package/es/editor/child-list-editor/child-list-editor.css +76 -0
- package/es/editor/child-list-editor/child-list-editor.d.ts +163 -0
- package/es/editor/child-list-editor/child-list-editor.mjs +143 -0
- package/es/editor/child-list-editor/child-list-editor.provider.d.ts +13 -0
- package/es/editor/child-list-editor/child-list-editor.provider.mjs +5 -0
- package/es/editor/child-list-editor/components/child-list-item-editor.css +112 -0
- package/es/editor/child-list-editor/components/child-list-item-editor.d.ts +133 -0
- package/es/editor/child-list-editor/components/child-list-item-editor.mjs +238 -0
- package/es/editor/child-list-editor/index.d.ts +4 -0
- package/es/editor/child-list-editor/index.mjs +13 -0
- package/es/editor/content-tag-style/content-tag-style.css +164 -0
- package/es/editor/content-tag-style/content-tag-style.d.ts +112 -0
- package/es/editor/content-tag-style/content-tag-style.mjs +103 -0
- package/es/editor/content-tag-style/index.d.ts +8 -0
- package/es/editor/content-tag-style/index.mjs +15 -0
- package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.css +156 -0
- package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.d.ts +29 -0
- package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.mjs +134 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.css +76 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.d.ts +38 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.mjs +163 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.provider.d.ts +13 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.provider.mjs +5 -0
- package/es/editor/custom-exp-menu-editor/i-custom-exp-menu-model.d.ts +23 -0
- package/es/editor/custom-exp-menu-editor/index.d.ts +5 -0
- package/es/editor/custom-exp-menu-editor/index.mjs +13 -0
- package/es/editor/custom-exp-menu-editor/modal/exp-menu.modal.d.ts +37 -0
- package/es/editor/field-info-editor/field-info-editor.css +125 -0
- package/es/editor/field-info-editor/field-info-editor.d.ts +111 -0
- package/es/editor/field-info-editor/field-info-editor.mjs +60 -0
- package/es/editor/field-info-editor/index.d.ts +8 -0
- package/es/editor/field-info-editor/index.mjs +13 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.mjs +27 -0
- package/es/editor/model-field-select/index.d.ts +8 -0
- package/es/editor/model-field-select/index.mjs +13 -0
- package/es/editor/model-field-select/model-field-select.css +141 -0
- package/es/editor/model-field-select/model-field-select.d.ts +42 -0
- package/es/editor/model-field-select/model-field-select.mjs +312 -0
- package/es/editor/style-border/index.d.ts +8 -0
- package/es/editor/style-border/index.mjs +15 -0
- package/es/editor/style-border/style-border.d.ts +38 -0
- package/es/editor/style-border/style-border.mjs +45 -0
- package/es/editor/style-font/index.d.ts +8 -0
- package/es/editor/style-font/index.mjs +15 -0
- package/es/editor/style-font/style-font.css +86 -0
- package/es/editor/style-font/style-font.d.ts +38 -0
- package/es/editor/style-font/style-font.mjs +45 -0
- package/es/editor/style-position/index.d.ts +8 -0
- package/es/editor/style-position/index.mjs +15 -0
- package/es/editor/style-position/style-position.d.ts +38 -0
- package/es/editor/style-position/style-position.mjs +44 -0
- package/es/editor/style-spacing/index.d.ts +8 -0
- package/es/editor/style-spacing/index.mjs +15 -0
- package/es/editor/style-spacing/style-spacing.d.ts +40 -0
- package/es/editor/style-spacing/style-spacing.mjs +69 -0
- package/es/editor/system-page-select/i-system-page-select.d.ts +23 -0
- package/es/editor/system-page-select/index.d.ts +9 -0
- package/es/editor/system-page-select/index.mjs +15 -0
- package/es/editor/system-page-select/system-page-select.css +119 -0
- package/es/editor/system-page-select/system-page-select.d.ts +38 -0
- package/es/editor/system-page-select/system-page-select.mjs +82 -0
- package/es/hooks/design-view/getFieldSchema.d.ts +26 -0
- package/es/hooks/design-view/getFieldSchema.mjs +78 -0
- package/es/hooks/design-view/useDesigner.d.ts +2968 -0
- package/es/hooks/design-view/useDesigner.mjs +823 -0
- package/es/hooks/design-view/useGlobal.d.ts +1386 -0
- package/es/hooks/design-view/useGlobal.mjs +74 -0
- package/es/hooks/design-view/usePage.d.ts +59 -0
- package/es/hooks/design-view/usePage.mjs +171 -0
- package/es/hooks/design-view/usePageOccupy.d.ts +13 -0
- package/es/hooks/design-view/usePageOccupy.mjs +69 -0
- package/es/hooks/design-view/usePropEditor.d.ts +33 -0
- package/es/hooks/design-view/usePropEditor.mjs +99 -0
- package/es/hooks/design-view/useScope.d.ts +12 -0
- package/es/hooks/design-view/useScope.mjs +92 -0
- package/es/hooks/design-view/useSelectedWidget.d.ts +53 -0
- package/es/hooks/design-view/useSelectedWidget.mjs +249 -0
- package/es/hooks/design-view/useStyle.d.ts +21 -0
- package/es/hooks/design-view/useStyle.mjs +30 -0
- package/es/hooks/design-view/useStyleEditor.d.ts +27 -0
- package/es/hooks/design-view/useToolkit.d.ts +372 -0
- package/es/hooks/design-view/useToolkit.mjs +299 -0
- package/es/hooks/design-view/useWidget.d.ts +103 -0
- package/es/hooks/design-view/useWidget.mjs +124 -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 +71 -0
- package/es/hooks/index.d.ts +15 -1
- package/es/hooks/use-design-view-controller/use-design-view-controller.d.ts +11 -0
- package/es/hooks/use-design-view-controller/use-design-view-controller.mjs +26 -0
- package/es/hooks/web/useUUid.d.ts +41 -0
- package/es/hooks/web/useUUid.mjs +93 -0
- package/es/index.d.ts +15 -4
- package/es/index.mjs +49 -25
- 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-dnd-item-hooks.d.ts +21 -0
- package/es/interface/designer/i-designer-hooks.d.ts +26 -0
- package/es/interface/designer/i-designer-provider.d.ts +103 -0
- package/es/interface/designer/i-designer-schema-exports.d.ts +13 -0
- package/es/interface/designer/i-designer-state.d.ts +27 -0
- package/es/interface/designer/i-designer.controller.d.ts +116 -0
- package/es/interface/designer/index.d.ts +6 -0
- package/es/interface/editor/child-list-editor/child-list-editor.d.ts +114 -0
- package/es/interface/editor/index.d.ts +9 -0
- package/es/interface/editor/style-border/i-style-border.controller.d.ts +11 -0
- package/es/interface/editor/style-border/i-style-border.d.ts +22 -0
- package/es/interface/editor/style-font/i-style-font.controller.d.ts +11 -0
- package/es/interface/editor/style-font/i-style-font.d.ts +13 -0
- package/es/interface/editor/style-position/i-style-position.controller.d.ts +11 -0
- package/es/interface/editor/style-position/i-style-position.d.ts +13 -0
- package/es/interface/editor/style-spacing/i-style-spacing.controller.d.ts +11 -0
- package/es/interface/editor/style-spacing/i-style-spacing.d.ts +22 -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 +31 -7
- package/es/interface/page-designer/toolkit.d.ts +12 -0
- package/es/interface/provider/i-node-provider.d.ts +142 -0
- package/es/interface/state/i-design-view.state.d.ts +107 -10
- package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu-component.css +87 -0
- package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu.component.d.ts +9 -0
- package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu.component.mjs +106 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.data.d.ts +51 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.data.mjs +89 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.provider.d.ts +23 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.provider.mjs +159 -0
- package/es/plugins/design-editor/index.d.ts +5 -0
- package/es/plugins/design-editor/index.mjs +13 -0
- package/es/plugins/design-editor/upload-file/index.d.ts +4 -0
- package/es/plugins/design-editor/upload-file/index.mjs +12 -0
- package/es/plugins/design-editor/upload-file/upload-file.css +124 -0
- package/es/plugins/design-editor/upload-file/upload-file.d.ts +46 -0
- package/es/plugins/design-editor/upload-file/upload-file.mjs +51 -0
- package/es/plugins/design-editor/upload-image/index.d.ts +4 -0
- package/es/plugins/design-editor/upload-image/index.mjs +12 -0
- package/es/plugins/design-editor/upload-image/upload-image.css +79 -0
- package/es/plugins/design-editor/upload-image/upload-image.d.ts +46 -0
- package/es/plugins/design-editor/upload-image/upload-image.mjs +23 -0
- package/es/plugins/design-editor/user-signature/index.d.ts +4 -0
- package/es/plugins/design-editor/user-signature/index.mjs +12 -0
- package/es/plugins/design-editor/user-signature/user-signature.css +79 -0
- package/es/plugins/design-editor/user-signature/user-signature.d.ts +46 -0
- package/es/plugins/design-editor/user-signature/user-signature.mjs +23 -0
- package/es/plugins/design-grid/components/design-grid.component.css +68 -0
- package/es/plugins/design-grid/components/design-grid.component.d.ts +39 -0
- package/es/plugins/design-grid/components/design-grid.component.mjs +57 -0
- package/es/plugins/design-grid/design-grid.data.d.ts +34 -0
- package/es/plugins/design-grid/design-grid.data.mjs +17 -0
- package/es/plugins/design-grid/design-grid.provider.d.ts +26 -0
- package/es/plugins/design-grid/design-grid.provider.mjs +240 -0
- package/es/plugins/design-grid-item/components/design-grid-item.component.d.ts +38 -0
- package/es/plugins/design-grid-item/components/design-grid-item.component.mjs +36 -0
- package/es/plugins/design-grid-item/design-grid-item.data.d.ts +26 -0
- package/es/plugins/design-grid-item/design-grid-item.data.mjs +17 -0
- package/es/plugins/design-grid-item/design-grid-item.provider.d.ts +25 -0
- package/es/plugins/design-grid-item/design-grid-item.provider.mjs +172 -0
- package/es/plugins/design-menu-list/components/design-menu-list.component.css +131 -0
- package/es/plugins/design-menu-list/components/design-menu-list.component.d.ts +18 -0
- package/es/plugins/design-menu-list/components/design-menu-list.component.mjs +110 -0
- package/es/plugins/design-menu-list/design-menu-list.data.d.ts +62 -0
- package/es/plugins/design-menu-list/design-menu-list.data.mjs +21 -0
- package/es/plugins/design-menu-list/design-menu-list.provider.d.ts +23 -0
- package/es/plugins/design-menu-list/design-menu-list.provider.mjs +265 -0
- package/es/plugins/design-page/design-page.data.d.ts +15 -0
- package/es/plugins/design-page/design-page.data.mjs +17 -0
- package/es/plugins/design-page/design-page.provider.d.ts +23 -0
- package/es/plugins/design-page/design-page.provider.mjs +109 -0
- package/es/plugins/design-panel/components/design-panel-component.css +108 -0
- package/es/plugins/design-panel/components/design-panel.component.d.ts +39 -0
- package/es/plugins/design-panel/components/design-panel.component.mjs +49 -0
- package/es/plugins/design-panel/design-panel.data.d.ts +64 -0
- package/es/plugins/design-panel/design-panel.data.mjs +27 -0
- package/es/plugins/design-panel/design-panel.provider.d.ts +23 -0
- package/es/plugins/design-panel/design-panel.provider.mjs +298 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.css +48 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.vue.d.ts +36 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.vue.mjs +7 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.vue2.mjs +97 -0
- package/es/plugins/design-personal-center/design-personal-center.data.d.ts +27 -0
- package/es/plugins/design-personal-center/design-personal-center.data.mjs +21 -0
- package/es/plugins/design-personal-center/design-personal-center.provider.d.ts +13 -0
- package/es/plugins/design-personal-center/design-personal-center.provider.mjs +144 -0
- package/es/plugins/design-select-component/components/design-select-component.component.css +107 -0
- package/es/plugins/design-select-component/components/design-select-component.component.d.ts +41 -0
- package/es/plugins/design-select-component/components/design-select-component.component.mjs +57 -0
- package/es/plugins/design-select-component/design-select-component.data.d.ts +57 -0
- package/es/plugins/design-select-component/design-select-component.data.mjs +18 -0
- package/es/plugins/design-select-component/design-select-component.provider.d.ts +23 -0
- package/es/plugins/design-select-component/design-select-component.provider.mjs +207 -0
- package/es/plugins/design-tab-item/components/design-tab-item.component.d.ts +38 -0
- package/es/plugins/design-tab-item/components/design-tab-item.component.mjs +36 -0
- package/es/plugins/design-tab-item/design-tab-item.data.d.ts +35 -0
- package/es/plugins/design-tab-item/design-tab-item.data.mjs +22 -0
- package/es/plugins/design-tab-item/design-tab-item.provider.d.ts +25 -0
- package/es/plugins/design-tab-item/design-tab-item.provider.mjs +185 -0
- package/es/plugins/design-tabs/components/design-tabs.component.css +105 -0
- package/es/plugins/design-tabs/components/design-tabs.component.d.ts +40 -0
- package/es/plugins/design-tabs/components/design-tabs.component.mjs +82 -0
- package/es/plugins/design-tabs/design-tabs.data.d.ts +66 -0
- package/es/plugins/design-tabs/design-tabs.data.mjs +19 -0
- package/es/plugins/design-tabs/design-tabs.provider.d.ts +26 -0
- package/es/plugins/design-tabs/design-tabs.provider.mjs +261 -0
- package/es/plugins/index.d.ts +5 -0
- package/es/plugins/index.mjs +116 -0
- package/es/plugins/install-material.d.ts +8 -0
- package/es/plugins/install-material.mjs +55 -0
- package/es/props/index.d.ts +64 -0
- package/es/props/index.mjs +56 -0
- package/es/provider/design-editor-node/design-editor-node.provider.d.ts +40 -0
- package/es/provider/design-editor-node/design-editor-node.provider.mjs +44 -0
- package/es/provider/index.d.ts +2 -0
- package/es/provider/node-base/node-base.provider.d.ts +25 -0
- package/es/provider/node-base/node-base.provider.mjs +26 -0
- package/es/register/designer-register/designer-register.d.ts +53 -0
- package/es/register/designer-register/designer-register.mjs +67 -0
- package/es/register/index.d.ts +3 -0
- package/es/register/material/material.register.d.ts +90 -0
- package/es/register/material/material.register.mjs +134 -0
- package/es/register/node/node.register.d.ts +113 -0
- package/es/register/node/node.register.mjs +134 -0
- package/es/store/index.d.ts +1 -0
- package/es/store/view/design-view.store.d.ts +5 -0
- package/es/store/view/design-view.store.mjs +412 -0
- package/es/types/index.d.ts +9 -23
- package/es/utils/can-drop/can-drop.d.ts +12 -0
- package/es/utils/can-drop/can-drop.mjs +56 -0
- package/es/utils/design-install/design-install.d.ts +16 -0
- package/es/utils/design-install/design-install.mjs +22 -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/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/index.d.ts +5 -1
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +97 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +266 -0
- package/es/views/design-view.css +218 -0
- package/es/views/design-view.d.ts +87 -0
- package/es/views/design-view.mjs +343 -0
- package/es/views/index.d.ts +1 -0
- package/package.json +24 -9
- package/es/constant/variable-type/variable-type.d.ts +0 -12
- 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/design-page/design-page.d.ts +0 -141
- 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/state/i-design-drag.state.d.ts +0 -15
- 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/base-button-config.d.ts +0 -45
- package/es/schema/common-config/base-button-config.mjs +0 -85
- package/es/schema/common-config/button-editor-config.d.ts +0 -14
- package/es/schema/common-config/button-editor-config.mjs +0 -142
- package/es/schema/common-config/button-props-func.d.ts +0 -5
- package/es/schema/common-config/button-props-func.mjs +0 -12
- 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/common-config/common-style.d.ts +0 -3
- package/es/schema/common-config/common-style.mjs +0 -86
- package/es/schema/common-config/display-editor-config.d.ts +0 -3
- package/es/schema/common-config/display-editor-config.mjs +0 -67
- package/es/schema/common-config/formItem-editor-config.d.ts +0 -3
- package/es/schema/common-config/formItem-editor-config.mjs +0 -70
- package/es/schema/common-config/permission-editor-config.d.ts +0 -2
- package/es/schema/common-config/permission-editor-config.mjs +0 -16
- package/es/schema/index.d.ts +0 -9
- 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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FormComponents } from '@gct-paas/core';
|
|
2
|
+
|
|
3
|
+
const containerTypes = [
|
|
4
|
+
FormComponents.Collapse,
|
|
5
|
+
FormComponents.ButtonContainer,
|
|
6
|
+
FormComponents.LayoutContainer,
|
|
7
|
+
FormComponents.Grid,
|
|
8
|
+
FormComponents.GridCol,
|
|
9
|
+
FormComponents.LeftRightColumns,
|
|
10
|
+
FormComponents.Tabs,
|
|
11
|
+
FormComponents.TabPane
|
|
12
|
+
];
|
|
13
|
+
function deepFindTypes(item, types = []) {
|
|
14
|
+
if (item.type) {
|
|
15
|
+
types.push(item.type);
|
|
16
|
+
}
|
|
17
|
+
if ((!item.type || containerTypes.includes(item.type)) && item.children && item.children.length > 0) {
|
|
18
|
+
item.children.forEach((child) => {
|
|
19
|
+
deepFindTypes(child, types);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return types;
|
|
23
|
+
}
|
|
24
|
+
function findAllChildrenTypes(item) {
|
|
25
|
+
const types = deepFindTypes(item);
|
|
26
|
+
const set = new Set(types);
|
|
27
|
+
return Array.from(set);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { findAllChildrenTypes };
|
package/es/utils/index.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { isCanCrop } from './can-drop/can-drop';
|
|
2
|
+
export { widthDesignEditorInstall } from './design-install/design-install';
|
|
3
|
+
export { findAllChildrenTypes } from './find-deep-types/find-deep-types';
|
|
4
|
+
export * from './plugin-pkg-util/plugin-pkg-util';
|
|
5
|
+
export { basicAttrsUtils, transformField2Component } from './field-attrs';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { Platform } from '@gct-paas/core';
|
|
3
|
+
export type IModuleMap = Record<string, System.Module>;
|
|
4
|
+
export type LoadPluginResult = [IObject, IModuleMap];
|
|
5
|
+
/**
|
|
6
|
+
* 插件包处理工具类
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @class PluginPgkUtil
|
|
10
|
+
*/
|
|
11
|
+
export declare class PluginPgkUtil {
|
|
12
|
+
/**
|
|
13
|
+
* 插件配置缓存
|
|
14
|
+
*
|
|
15
|
+
* @private
|
|
16
|
+
* @type {Map<string, IObject[]>}
|
|
17
|
+
*/
|
|
18
|
+
private static cache;
|
|
19
|
+
/**
|
|
20
|
+
* 模块缓存
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
* @static
|
|
24
|
+
*/
|
|
25
|
+
private static cacheModules;
|
|
26
|
+
/**
|
|
27
|
+
* 已经加载的插件与模块的映射
|
|
28
|
+
*
|
|
29
|
+
* @static
|
|
30
|
+
*/
|
|
31
|
+
static readonly module: Map<string, System.Module>;
|
|
32
|
+
private static joinPaths;
|
|
33
|
+
/**
|
|
34
|
+
* 加载插件包配置
|
|
35
|
+
*
|
|
36
|
+
* @static
|
|
37
|
+
* @param {PluginModeEnum} mode 插件模式
|
|
38
|
+
* @param {Platform} platform
|
|
39
|
+
* @param {string[]} [kit]
|
|
40
|
+
* @returns {*} {Promise<IStyleIMportMap[]>}
|
|
41
|
+
*/
|
|
42
|
+
private static loadPluginConfig;
|
|
43
|
+
/**
|
|
44
|
+
* 批量加载平台界面 system js 插件包
|
|
45
|
+
*
|
|
46
|
+
* @static
|
|
47
|
+
* @param {IStyleIMportMap[]} plugins
|
|
48
|
+
* @returns {*} {Promise<System.Module[]>}
|
|
49
|
+
*/
|
|
50
|
+
private static loadPlugins;
|
|
51
|
+
/**
|
|
52
|
+
* 加载插件包
|
|
53
|
+
*
|
|
54
|
+
* @private
|
|
55
|
+
* @static
|
|
56
|
+
* @param {PluginModeEnum} mode
|
|
57
|
+
* @param {Platform} platform
|
|
58
|
+
* @returns {*}
|
|
59
|
+
*/
|
|
60
|
+
private static loadPlugin;
|
|
61
|
+
/**
|
|
62
|
+
* 加载设计态插件包
|
|
63
|
+
*
|
|
64
|
+
* @static
|
|
65
|
+
* @param {App} app
|
|
66
|
+
* @param {Platform} platform
|
|
67
|
+
* @returns {*} {Promise<LoadPluginResult>}
|
|
68
|
+
*/
|
|
69
|
+
static loadDesignPlugin(_app: App, platform: Platform, kit?: string[]): Promise<LoadPluginResult>;
|
|
70
|
+
/**
|
|
71
|
+
* 加载设计态中,已经被从配置中移除的插件
|
|
72
|
+
*
|
|
73
|
+
* @static
|
|
74
|
+
* @param {Platform} platform
|
|
75
|
+
* @param {IObject[]} configs
|
|
76
|
+
* @returns {*} {Promise<void>}
|
|
77
|
+
*/
|
|
78
|
+
static loadDesignDeletedPlugins(platform: Platform, configs?: IObject[]): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* 加载设计态移动端插件包
|
|
81
|
+
*
|
|
82
|
+
* @static
|
|
83
|
+
* @param {App} app
|
|
84
|
+
* @param {IObject[]} configs 界面用到的插件集合
|
|
85
|
+
* @returns {*} {Promise<void>}
|
|
86
|
+
*/
|
|
87
|
+
static loadMobilePlugin(configs?: IObject[]): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* 加载设计态网页端插件包
|
|
90
|
+
*
|
|
91
|
+
* @static
|
|
92
|
+
* @param {App} app
|
|
93
|
+
* @param {IObject[]} configs 界面用到的插件集合
|
|
94
|
+
* @returns {*} {Promise<void>}
|
|
95
|
+
*/
|
|
96
|
+
static loadWebPlugin(configs?: IObject[]): Promise<void>;
|
|
97
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { Platform, PLUGIN_BASE_URL, PluginModeEnum } from '@gct-paas/core';
|
|
2
|
+
|
|
3
|
+
class PluginPgkUtil {
|
|
4
|
+
/**
|
|
5
|
+
* 插件配置缓存
|
|
6
|
+
*
|
|
7
|
+
* @private
|
|
8
|
+
* @type {Map<string, IObject[]>}
|
|
9
|
+
*/
|
|
10
|
+
static cache = /* @__PURE__ */ new Map();
|
|
11
|
+
/**
|
|
12
|
+
* 模块缓存
|
|
13
|
+
*
|
|
14
|
+
* @private
|
|
15
|
+
* @static
|
|
16
|
+
*/
|
|
17
|
+
static cacheModules = /* @__PURE__ */ new Map();
|
|
18
|
+
/**
|
|
19
|
+
* 已经加载的插件与模块的映射
|
|
20
|
+
*
|
|
21
|
+
* @static
|
|
22
|
+
*/
|
|
23
|
+
static module = /* @__PURE__ */ new Map();
|
|
24
|
+
static joinPaths(...paths) {
|
|
25
|
+
return paths.filter((p) => p && p.length > 0).map((p, index) => {
|
|
26
|
+
let normalized = p;
|
|
27
|
+
if (normalized.startsWith("./")) {
|
|
28
|
+
normalized = normalized.slice(2);
|
|
29
|
+
}
|
|
30
|
+
if (normalized.endsWith("/") && index < paths.length - 1) {
|
|
31
|
+
normalized = normalized.slice(0, -1);
|
|
32
|
+
}
|
|
33
|
+
return normalized;
|
|
34
|
+
}).join("/");
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 加载插件包配置
|
|
38
|
+
*
|
|
39
|
+
* @static
|
|
40
|
+
* @param {PluginModeEnum} mode 插件模式
|
|
41
|
+
* @param {Platform} platform
|
|
42
|
+
* @param {string[]} [kit]
|
|
43
|
+
* @returns {*} {Promise<IStyleIMportMap[]>}
|
|
44
|
+
*/
|
|
45
|
+
static async loadPluginConfig(mode, platform, kit = []) {
|
|
46
|
+
const tag = `${mode}-${platform}-${kit.join("_")}`;
|
|
47
|
+
if (this.cache.has(tag)) {
|
|
48
|
+
return this.cache.get(tag);
|
|
49
|
+
}
|
|
50
|
+
const cfg = {
|
|
51
|
+
client: platform === Platform.WEB ? "WEB" : "MOBILE"
|
|
52
|
+
};
|
|
53
|
+
if (kit.length > 0) {
|
|
54
|
+
cfg.tag = kit.join(",");
|
|
55
|
+
}
|
|
56
|
+
const data = await _api.platform.plugin.postGetTenantCompList(cfg);
|
|
57
|
+
if (data.length > 0) {
|
|
58
|
+
this.cache.set(tag, data);
|
|
59
|
+
}
|
|
60
|
+
return data;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 批量加载平台界面 system js 插件包
|
|
64
|
+
*
|
|
65
|
+
* @static
|
|
66
|
+
* @param {IStyleIMportMap[]} plugins
|
|
67
|
+
* @returns {*} {Promise<System.Module[]>}
|
|
68
|
+
*/
|
|
69
|
+
static async loadPlugins(mode, configs = []) {
|
|
70
|
+
const moduleMap = {};
|
|
71
|
+
if (configs.length > 0) {
|
|
72
|
+
const plugins = configs.map((plugin) => {
|
|
73
|
+
const baseUrl = this.joinPaths(PLUGIN_BASE_URL, plugin.url, "dist");
|
|
74
|
+
return {
|
|
75
|
+
imports: {
|
|
76
|
+
[plugin.key]: `${baseUrl}/${mode}.system.min.js?version=${plugin.version}`
|
|
77
|
+
},
|
|
78
|
+
styles: {
|
|
79
|
+
[plugin.key]: `${baseUrl}/${mode}.min.css?version=${plugin.version}`
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
const all = [];
|
|
84
|
+
plugins.forEach((plugin) => {
|
|
85
|
+
System.addImportMap(plugin);
|
|
86
|
+
if (plugin.imports) {
|
|
87
|
+
Object.keys(plugin.imports).forEach((key) => {
|
|
88
|
+
const load = async () => {
|
|
89
|
+
try {
|
|
90
|
+
const module = await System.import(key);
|
|
91
|
+
moduleMap[key] = module;
|
|
92
|
+
this.module.set(key, module);
|
|
93
|
+
} catch (error) {
|
|
94
|
+
console.error(error);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
all.push(load());
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
await Promise.all(all);
|
|
102
|
+
}
|
|
103
|
+
return moduleMap;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 加载插件包
|
|
107
|
+
*
|
|
108
|
+
* @private
|
|
109
|
+
* @static
|
|
110
|
+
* @param {PluginModeEnum} mode
|
|
111
|
+
* @param {Platform} platform
|
|
112
|
+
* @returns {*}
|
|
113
|
+
*/
|
|
114
|
+
static async loadPlugin(mode, platform, kit) {
|
|
115
|
+
kit = ["common", ...kit];
|
|
116
|
+
const tag = `${mode}-${platform}-${kit.join("_")}`;
|
|
117
|
+
try {
|
|
118
|
+
const configs = await this.loadPluginConfig(mode, platform, kit);
|
|
119
|
+
if (!this.cacheModules.has(tag)) {
|
|
120
|
+
const plugins = [];
|
|
121
|
+
configs.forEach((cfg) => {
|
|
122
|
+
if (cfg.plugins) {
|
|
123
|
+
plugins.push(...cfg.plugins);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
const moduleMap = await this.loadPlugins(mode, plugins);
|
|
127
|
+
this.cacheModules.set(tag, moduleMap);
|
|
128
|
+
}
|
|
129
|
+
return [configs, this.cacheModules.get(tag)];
|
|
130
|
+
} catch (error) {
|
|
131
|
+
console.error(error);
|
|
132
|
+
}
|
|
133
|
+
return [[], {}];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* 加载设计态插件包
|
|
137
|
+
*
|
|
138
|
+
* @static
|
|
139
|
+
* @param {App} app
|
|
140
|
+
* @param {Platform} platform
|
|
141
|
+
* @returns {*} {Promise<LoadPluginResult>}
|
|
142
|
+
*/
|
|
143
|
+
static async loadDesignPlugin(_app, platform, kit = []) {
|
|
144
|
+
try {
|
|
145
|
+
const result = await this.loadPlugin(
|
|
146
|
+
PluginModeEnum.DESIGN,
|
|
147
|
+
platform,
|
|
148
|
+
kit
|
|
149
|
+
);
|
|
150
|
+
const [configs, moduleMap] = result;
|
|
151
|
+
configs.forEach((config) => {
|
|
152
|
+
const plugins = config.plugins;
|
|
153
|
+
plugins.forEach((plugin) => {
|
|
154
|
+
const module = moduleMap[plugin.key];
|
|
155
|
+
if (!module) {
|
|
156
|
+
console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (platform === Platform.WEB) {
|
|
160
|
+
const cls = module.web ?? module.default;
|
|
161
|
+
if (cls) {
|
|
162
|
+
_gct.register.designer.web.register(plugin.key, () => new cls());
|
|
163
|
+
}
|
|
164
|
+
} else {
|
|
165
|
+
const cls = module.mobile ?? module.default;
|
|
166
|
+
if (cls) {
|
|
167
|
+
_gct.register.designer.mobile.register(
|
|
168
|
+
plugin.key,
|
|
169
|
+
() => new cls()
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
return result;
|
|
176
|
+
} catch (error) {
|
|
177
|
+
console.error(error);
|
|
178
|
+
}
|
|
179
|
+
return [[], {}];
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* 加载设计态中,已经被从配置中移除的插件
|
|
183
|
+
*
|
|
184
|
+
* @static
|
|
185
|
+
* @param {Platform} platform
|
|
186
|
+
* @param {IObject[]} configs
|
|
187
|
+
* @returns {*} {Promise<void>}
|
|
188
|
+
*/
|
|
189
|
+
static async loadDesignDeletedPlugins(platform, configs = []) {
|
|
190
|
+
try {
|
|
191
|
+
const moduleMap = await this.loadPlugins(PluginModeEnum.DESIGN, configs);
|
|
192
|
+
configs.forEach((plugin) => {
|
|
193
|
+
const module = moduleMap[plugin.key];
|
|
194
|
+
if (!module) {
|
|
195
|
+
console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
if (platform === Platform.WEB) {
|
|
199
|
+
const cls = module.web ?? module.default;
|
|
200
|
+
if (cls) {
|
|
201
|
+
_gct.register.designer.web.register(plugin.key, () => new cls());
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
const cls = module.mobile ?? module.default;
|
|
205
|
+
if (cls) {
|
|
206
|
+
_gct.register.designer.mobile.register(plugin.key, () => new cls());
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
} catch (error) {
|
|
211
|
+
console.error(error);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* 加载设计态移动端插件包
|
|
216
|
+
*
|
|
217
|
+
* @static
|
|
218
|
+
* @param {App} app
|
|
219
|
+
* @param {IObject[]} configs 界面用到的插件集合
|
|
220
|
+
* @returns {*} {Promise<void>}
|
|
221
|
+
*/
|
|
222
|
+
static async loadMobilePlugin(configs = []) {
|
|
223
|
+
try {
|
|
224
|
+
const moduleMap = await this.loadPlugins(PluginModeEnum.MOBILE, configs);
|
|
225
|
+
configs.forEach((plugin) => {
|
|
226
|
+
if (!moduleMap[plugin.key]) {
|
|
227
|
+
console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
_gct.register.render.mobile.register(
|
|
231
|
+
plugin.key,
|
|
232
|
+
moduleMap[plugin.key].default
|
|
233
|
+
);
|
|
234
|
+
});
|
|
235
|
+
} catch (error) {
|
|
236
|
+
console.error(error);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* 加载设计态网页端插件包
|
|
241
|
+
*
|
|
242
|
+
* @static
|
|
243
|
+
* @param {App} app
|
|
244
|
+
* @param {IObject[]} configs 界面用到的插件集合
|
|
245
|
+
* @returns {*} {Promise<void>}
|
|
246
|
+
*/
|
|
247
|
+
static async loadWebPlugin(configs = []) {
|
|
248
|
+
try {
|
|
249
|
+
const moduleMap = await this.loadPlugins(PluginModeEnum.WEB, configs);
|
|
250
|
+
configs.forEach((plugin) => {
|
|
251
|
+
if (!moduleMap[plugin.key]) {
|
|
252
|
+
console.error(`${plugin.key} 插件加载失败,请检查插件配置是否正确`);
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
_gct.register.render.web.register(
|
|
256
|
+
plugin.key,
|
|
257
|
+
moduleMap[plugin.key].default
|
|
258
|
+
);
|
|
259
|
+
});
|
|
260
|
+
} catch (error) {
|
|
261
|
+
console.error(error);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export { PluginPgkUtil };
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-design-view {
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
.gct-design-view__edit-title {
|
|
69
|
+
display: flex;
|
|
70
|
+
}
|
|
71
|
+
.gct-design-view__edit-title span {
|
|
72
|
+
max-width: 160px;
|
|
73
|
+
text-wrap: nowrap;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.gct-design-view-confirm {
|
|
79
|
+
top: 0;
|
|
80
|
+
margin: 0;
|
|
81
|
+
}
|
|
82
|
+
.gct-design-view-confirm .ant-modal-content {
|
|
83
|
+
top: 62px;
|
|
84
|
+
left: 18px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.gct-design-view-continue-edit {
|
|
88
|
+
position: absolute;
|
|
89
|
+
left: 64px;
|
|
90
|
+
bottom: 17px;
|
|
91
|
+
}
|
|
92
|
+
.gct-design-view-continue-edit button {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
border: 0;
|
|
96
|
+
color: var(--ant-primary-color);
|
|
97
|
+
font-size: 14px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.gct-design-view-header {
|
|
101
|
+
height: 54px;
|
|
102
|
+
color: #fff;
|
|
103
|
+
background-color: #1a1d23;
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
}
|
|
108
|
+
.gct-design-view-header__left {
|
|
109
|
+
display: flex;
|
|
110
|
+
height: 22px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.gct-design-view-header__right {
|
|
114
|
+
display: flex;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.gct-design-view-header__back {
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
margin-left: 16px;
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
align-items: center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.gct-design-view-header__title {
|
|
126
|
+
margin-left: 6px;
|
|
127
|
+
color: #C0C0C0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.gct-design-view-header__view-title-edit {
|
|
131
|
+
display: flex;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
}
|
|
134
|
+
.gct-design-view-header__view-title-edit--error-info {
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 45px;
|
|
137
|
+
height: 22px;
|
|
138
|
+
background-color: #feecec;
|
|
139
|
+
border-radius: 4px;
|
|
140
|
+
color: #F54547;
|
|
141
|
+
padding: 0 10px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.gct-design-view-header__view-title-edit .ant-input-affix-wrapper {
|
|
145
|
+
padding: 0 8px 0 0;
|
|
146
|
+
}
|
|
147
|
+
.gct-design-view-header__view-title-edit span {
|
|
148
|
+
padding-right: 8px;
|
|
149
|
+
}
|
|
150
|
+
.gct-design-view-header__view-title-edit .ant-input {
|
|
151
|
+
width: auto;
|
|
152
|
+
flex-grow: 1;
|
|
153
|
+
height: 22px;
|
|
154
|
+
color: #fff;
|
|
155
|
+
padding-left: 0;
|
|
156
|
+
min-width: 0;
|
|
157
|
+
border-radius: 0;
|
|
158
|
+
}
|
|
159
|
+
.gct-design-view-header__view-title-edit .iconfont {
|
|
160
|
+
flex-shrink: 0;
|
|
161
|
+
color: #666;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.gct-design-view-header__design-actions .ant-btn:not(:last-child) {
|
|
165
|
+
margin-right: 16px;
|
|
166
|
+
}
|
|
167
|
+
.gct-design-view-header__design-actions .ant-btn {
|
|
168
|
+
padding: 0;
|
|
169
|
+
color: #fff;
|
|
170
|
+
border-color: transparent !important;
|
|
171
|
+
}
|
|
172
|
+
.gct-design-view-header__design-actions .ant-btn .iconfont {
|
|
173
|
+
margin-right: 6px;
|
|
174
|
+
line-height: 1;
|
|
175
|
+
}
|
|
176
|
+
.gct-design-view-header__design-actions .ant-btn:disabled {
|
|
177
|
+
color: #797A7D;
|
|
178
|
+
border-color: transparent !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.gct-design-view-header__view-actions {
|
|
182
|
+
display: flex;
|
|
183
|
+
margin-right: 12px;
|
|
184
|
+
}
|
|
185
|
+
.gct-design-view-header__view-actions .ant-btn {
|
|
186
|
+
background-color: #444;
|
|
187
|
+
border: 0;
|
|
188
|
+
color: #fff;
|
|
189
|
+
margin-left: 16px;
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-self: center;
|
|
193
|
+
padding: 4px 12px;
|
|
194
|
+
}
|
|
195
|
+
.gct-design-view-header__view-actions .ant-btn .iconfont {
|
|
196
|
+
margin-right: 6px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.gct-design-view-content {
|
|
200
|
+
height: calc(100vh - 54px);
|
|
201
|
+
display: flex;
|
|
202
|
+
}
|
|
203
|
+
.gct-design-view-content__left {
|
|
204
|
+
flex-shrink: 0;
|
|
205
|
+
width: 297px;
|
|
206
|
+
height: 100%;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.gct-design-view-content__center {
|
|
210
|
+
flex-grow: 1;
|
|
211
|
+
height: 100%;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.gct-design-view-content__right {
|
|
215
|
+
flex-shrink: 0;
|
|
216
|
+
width: 250px;
|
|
217
|
+
height: 100%;
|
|
218
|
+
}
|