@gct-paas/design 0.1.4-dev.7 → 0.1.4-dev.9
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-BtVTa-PT.js +666 -0
- package/dist/index.esm.min.mjs +25756 -464
- 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/assets/transform-js.worker-DdeZQ5i-.js +296567 -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 +363 -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 +296 -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 +91 -0
- package/es/components/design/design-drop-container/design-drop-container.mjs +220 -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 +178 -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 +196 -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 +167 -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 +224 -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 +87 -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 +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/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 +9 -0
- package/es/components/index.mjs +26 -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 +187 -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 +72 -0
- package/es/components/material/material-module/material-module.mjs +111 -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 +62 -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 +103 -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 +90 -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 +103 -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 +73 -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 +76 -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 +75 -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 +183 -0
- package/es/create-app-vue.d.ts +8 -0
- package/es/create-app-vue.mjs +11 -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 +145 -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 +314 -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/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 +2427 -0
- package/es/hooks/design-view/design-state.mjs +86 -0
- package/es/hooks/design-view/designer/useDesignCache.d.ts +4 -0
- package/es/hooks/design-view/designer/useDesignCache.mjs +27 -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 +1874 -0
- package/es/hooks/design-view/designer/useDesignModal.mjs +80 -0
- package/es/hooks/design-view/designer/useDesignPreview.d.ts +11 -0
- package/es/hooks/design-view/designer/useDesignPreview.mjs +143 -0
- package/es/hooks/design-view/designer/useDesignSave.d.ts +12 -0
- package/es/hooks/design-view/designer/useDesignSave.mjs +239 -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 +1392 -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 +374 -0
- package/es/hooks/design-view/layout/useToolkit.mjs +315 -0
- package/es/hooks/design-view/page/usePage.d.ts +57 -0
- package/es/hooks/design-view/page/usePage.mjs +154 -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 +2938 -0
- package/es/hooks/design-view/useDesigner.mjs +109 -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 +219 -0
- package/es/hooks/design-view/widget/useWidget.d.ts +107 -0
- package/es/hooks/design-view/widget/useWidget.mjs +124 -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 +59 -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 +25 -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/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/web/useUUid.d.ts +41 -0
- package/es/hooks/web/useUUid.mjs +93 -0
- package/es/index.d.ts +12 -4
- package/es/index.mjs +112 -23
- 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/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 +109 -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 +15 -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 +15 -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 +15 -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 +60 -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 +273 -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 +39 -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 +39 -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 +85 -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 +82 -0
- package/es/register/designer-register/designer-register.mjs +102 -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/setup-app.d.ts +1 -0
- package/es/setup-app.mjs +18 -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/design-interceptors/design-interceptors.d.ts +8 -0
- package/es/utils/design-interceptors/design-interceptors.mjs +20 -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/index.d.ts +9 -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/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/es/views/design-view.css +218 -0
- package/es/views/design-view.d.ts +87 -0
- package/es/views/design-view.mjs +345 -0
- package/es/views/index.d.ts +1 -0
- package/package.json +30 -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,102 @@
|
|
|
1
|
+
.radius-box[data-v-1cb5bbdc] {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
}
|
|
5
|
+
.radius-box .radius-div[data-v-1cb5bbdc] {
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 60px;
|
|
8
|
+
height: 60px;
|
|
9
|
+
padding: 6px;
|
|
10
|
+
margin-right: 10px;
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
border: 1px solid var(--gct-color-border);
|
|
13
|
+
}
|
|
14
|
+
.radius-box .radius-div-inner[data-v-1cb5bbdc] {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
border: 1px dashed var(--gct-color-border);
|
|
18
|
+
position: relative;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
}
|
|
21
|
+
.radius-box .radius-div .ground[data-v-1cb5bbdc] {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
width: 12px;
|
|
24
|
+
height: 12px;
|
|
25
|
+
}
|
|
26
|
+
.radius-box .radius-div .ground.highlight[data-v-1cb5bbdc] {
|
|
27
|
+
border-color: var(--ant-primary-color);
|
|
28
|
+
}
|
|
29
|
+
.radius-box .radius-div .upLeftGround[data-v-1cb5bbdc] {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: -1px;
|
|
32
|
+
left: -1px;
|
|
33
|
+
border-left: 2px solid #c3c3c3;
|
|
34
|
+
border-top: 2px solid #c3c3c3;
|
|
35
|
+
border-radius: 4px 0 0 0;
|
|
36
|
+
}
|
|
37
|
+
.radius-box .radius-div .upRightGround[data-v-1cb5bbdc] {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: -1px;
|
|
40
|
+
right: -1px;
|
|
41
|
+
border-right: 2px solid #c3c3c3;
|
|
42
|
+
border-top: 2px solid #c3c3c3;
|
|
43
|
+
border-radius: 0 4px 0 0;
|
|
44
|
+
}
|
|
45
|
+
.radius-box .radius-div .downLeftGround[data-v-1cb5bbdc] {
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: -1px;
|
|
48
|
+
bottom: -1px;
|
|
49
|
+
border-left: 2px solid #c3c3c3;
|
|
50
|
+
border-bottom: 2px solid #c3c3c3;
|
|
51
|
+
border-radius: 0 0 0 4px;
|
|
52
|
+
}
|
|
53
|
+
.radius-box .radius-div .downRightGround[data-v-1cb5bbdc] {
|
|
54
|
+
position: absolute;
|
|
55
|
+
right: -1px;
|
|
56
|
+
bottom: -1px;
|
|
57
|
+
border-right: 2px solid #c3c3c3;
|
|
58
|
+
border-bottom: 2px solid #c3c3c3;
|
|
59
|
+
border-radius: 0 0 4px 0;
|
|
60
|
+
}
|
|
61
|
+
.radius-box .radius-editor[data-v-1cb5bbdc] {
|
|
62
|
+
flex: 1;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-wrap: wrap;
|
|
65
|
+
}
|
|
66
|
+
.radius-box .radius-editor .radius-col[data-v-1cb5bbdc] {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
70
|
+
.radius-box .radius-editor .radius-col .radius-text[data-v-1cb5bbdc] {
|
|
71
|
+
margin-right: 6px;
|
|
72
|
+
width: 40px;
|
|
73
|
+
}
|
|
74
|
+
.radius-box .radius-editor .radius-col .input-wrap[data-v-1cb5bbdc] {
|
|
75
|
+
flex: 1;
|
|
76
|
+
}
|
|
77
|
+
.radius-box .centerGround[data-v-1cb5bbdc] {
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
width: 12px;
|
|
80
|
+
height: 12px;
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 50%;
|
|
83
|
+
left: 50%;
|
|
84
|
+
transform: translate(-50%, -50%);
|
|
85
|
+
border: 1px solid #c3c3c3;
|
|
86
|
+
border-radius: 2px;
|
|
87
|
+
}
|
|
88
|
+
.radius-box .centerGround.highlight[data-v-1cb5bbdc] {
|
|
89
|
+
border-color: var(--ant-primary-color);
|
|
90
|
+
}
|
|
91
|
+
.focus[data-v-1cb5bbdc] {
|
|
92
|
+
border-color: var(--ant-primary-color) !important;
|
|
93
|
+
}
|
|
94
|
+
[data-v-1cb5bbdc] .gct-select-arrow {
|
|
95
|
+
color: #212528;
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: 50%;
|
|
98
|
+
right: 45px;
|
|
99
|
+
}
|
|
100
|
+
[data-v-1cb5bbdc] .ant-input-number-handler-wrap {
|
|
101
|
+
z-index: 2;
|
|
102
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BorderRadiusValue } from './util';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: BorderRadiusValue;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:value": (value: BorderRadiusValue) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:value"?: ((value: BorderRadiusValue) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from './border-radius.vue3.mjs';
|
|
2
|
+
import './border-radius.css';/* empty css */
|
|
3
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
const BorderRadiu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1cb5bbdc"]]);
|
|
6
|
+
|
|
7
|
+
export { BorderRadiu as default };
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, normalizeClass, unref, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { parseRadiusType, parseValueUnit } from './util.mjs';
|
|
3
|
+
import { emitFieldSet, t } from '@gct-paas/core';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1 = { class: "radius-box" };
|
|
6
|
+
const _hoisted_2 = { class: "radius-div" };
|
|
7
|
+
const _hoisted_3 = { class: "radius-div-inner" };
|
|
8
|
+
const _hoisted_4 = { class: "radius-editor" };
|
|
9
|
+
const _hoisted_5 = { class: "radius-col" };
|
|
10
|
+
const _hoisted_6 = { class: "radius-text" };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "border-radius",
|
|
13
|
+
props: {
|
|
14
|
+
value: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:value"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const options = ref([
|
|
19
|
+
{
|
|
20
|
+
label: "2",
|
|
21
|
+
value: 2
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: "4",
|
|
25
|
+
value: 4
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "6",
|
|
29
|
+
value: 6
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: "8",
|
|
33
|
+
value: 8
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: "10",
|
|
37
|
+
value: 10
|
|
38
|
+
}
|
|
39
|
+
]);
|
|
40
|
+
const props = __props;
|
|
41
|
+
const emit = __emit;
|
|
42
|
+
const local = computed(() => {
|
|
43
|
+
const v = props.value;
|
|
44
|
+
const pos2 = parseRadiusType(v);
|
|
45
|
+
let numberVal2 = 0;
|
|
46
|
+
if (v) {
|
|
47
|
+
let numStr;
|
|
48
|
+
switch (pos2) {
|
|
49
|
+
case "all":
|
|
50
|
+
case "upLeft":
|
|
51
|
+
numStr = v.topLeftRadius;
|
|
52
|
+
break;
|
|
53
|
+
case "upRight":
|
|
54
|
+
numStr = v.topRightRadius;
|
|
55
|
+
break;
|
|
56
|
+
case "downRight":
|
|
57
|
+
numStr = v.bottomRightRadius;
|
|
58
|
+
break;
|
|
59
|
+
case "downLeft":
|
|
60
|
+
numStr = v.bottomLeftRadius;
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
if (!numStr || numStr === "nullpx") {
|
|
64
|
+
numStr = "0px";
|
|
65
|
+
}
|
|
66
|
+
const { value } = parseValueUnit(numStr);
|
|
67
|
+
numberVal2 = value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
pos: pos2,
|
|
71
|
+
numberVal: numberVal2
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
const { pos, numberVal } = emitFieldSet(local, (_f, _v, obj) => {
|
|
75
|
+
const result = {};
|
|
76
|
+
let tags = [
|
|
77
|
+
"topLeftRadius",
|
|
78
|
+
"topRightRadius",
|
|
79
|
+
"bottomRightRadius",
|
|
80
|
+
"bottomLeftRadius"
|
|
81
|
+
];
|
|
82
|
+
switch (obj.pos) {
|
|
83
|
+
case "upLeft":
|
|
84
|
+
tags = ["topLeftRadius"];
|
|
85
|
+
break;
|
|
86
|
+
case "upRight":
|
|
87
|
+
tags = ["topRightRadius"];
|
|
88
|
+
break;
|
|
89
|
+
case "downLeft":
|
|
90
|
+
tags = ["bottomLeftRadius"];
|
|
91
|
+
break;
|
|
92
|
+
case "downRight":
|
|
93
|
+
tags = ["bottomRightRadius"];
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
tags.forEach((tag) => {
|
|
97
|
+
result[tag] = obj.numberVal + "px";
|
|
98
|
+
});
|
|
99
|
+
emit("update:value", result);
|
|
100
|
+
});
|
|
101
|
+
const radiusVal = computed({
|
|
102
|
+
get() {
|
|
103
|
+
if (numberVal.value === 0) {
|
|
104
|
+
return "0";
|
|
105
|
+
}
|
|
106
|
+
return numberVal.value;
|
|
107
|
+
},
|
|
108
|
+
set(v) {
|
|
109
|
+
numberVal.value = v;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
return (_ctx, _cache) => {
|
|
113
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
114
|
+
const _component_a_input_number = resolveComponent("a-input-number");
|
|
115
|
+
const _component_a_auto_complete = resolveComponent("a-auto-complete");
|
|
116
|
+
const _component_down_outlined = resolveComponent("down-outlined");
|
|
117
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
118
|
+
createElementVNode("div", _hoisted_2, [
|
|
119
|
+
createElementVNode("div", _hoisted_3, [
|
|
120
|
+
createVNode(_component_a_tooltip, null, {
|
|
121
|
+
title: withCtx(() => [
|
|
122
|
+
createTextVNode(toDisplayString(unref(t)("sys.pageDesigner.upLeft")), 1)
|
|
123
|
+
]),
|
|
124
|
+
default: withCtx(() => [
|
|
125
|
+
createElementVNode("div", {
|
|
126
|
+
class: normalizeClass(["upLeftGround ground", { highlight: unref(pos) === "upLeft" }]),
|
|
127
|
+
onClick: _cache[0] || (_cache[0] = ($event) => pos.value = "upLeft")
|
|
128
|
+
}, null, 2)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}),
|
|
132
|
+
createVNode(_component_a_tooltip, null, {
|
|
133
|
+
title: withCtx(() => [
|
|
134
|
+
createTextVNode(toDisplayString(unref(t)("sys.pageDesigner.upRight")), 1)
|
|
135
|
+
]),
|
|
136
|
+
default: withCtx(() => [
|
|
137
|
+
createElementVNode("div", {
|
|
138
|
+
class: normalizeClass(["upRightGround ground", { highlight: unref(pos) === "upRight" }]),
|
|
139
|
+
onClick: _cache[1] || (_cache[1] = ($event) => pos.value = "upRight")
|
|
140
|
+
}, null, 2)
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
createVNode(_component_a_tooltip, null, {
|
|
145
|
+
title: withCtx(() => [
|
|
146
|
+
createTextVNode(toDisplayString(unref(t)("sys.pageDesigner.downLeft")), 1)
|
|
147
|
+
]),
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
createElementVNode("div", {
|
|
150
|
+
class: normalizeClass(["downLeftGround ground", { highlight: unref(pos) === "downLeft" }]),
|
|
151
|
+
onClick: _cache[2] || (_cache[2] = ($event) => pos.value = "downLeft")
|
|
152
|
+
}, null, 2)
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
createVNode(_component_a_tooltip, null, {
|
|
157
|
+
title: withCtx(() => [
|
|
158
|
+
createTextVNode(toDisplayString(unref(t)("sys.pageDesigner.downRight")), 1)
|
|
159
|
+
]),
|
|
160
|
+
default: withCtx(() => [
|
|
161
|
+
createElementVNode("div", {
|
|
162
|
+
class: normalizeClass(["downRightGround ground", { highlight: unref(pos) === "downRight" }]),
|
|
163
|
+
onClick: _cache[3] || (_cache[3] = ($event) => pos.value = "downRight")
|
|
164
|
+
}, null, 2)
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
createVNode(_component_a_tooltip, null, {
|
|
169
|
+
title: withCtx(() => [
|
|
170
|
+
createTextVNode(toDisplayString(unref(t)("sys.pageDesigner.whole")), 1)
|
|
171
|
+
]),
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createElementVNode("div", {
|
|
174
|
+
class: normalizeClass(["centerGround", { highlight: unref(pos) === "all" }]),
|
|
175
|
+
onClick: _cache[4] || (_cache[4] = ($event) => pos.value = "all")
|
|
176
|
+
}, null, 2)
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
})
|
|
180
|
+
])
|
|
181
|
+
]),
|
|
182
|
+
createElementVNode("div", _hoisted_4, [
|
|
183
|
+
createElementVNode("div", _hoisted_5, [
|
|
184
|
+
createElementVNode("span", _hoisted_6, toDisplayString(unref(t)("sys.pageDesigner.radius")), 1),
|
|
185
|
+
createVNode(_component_a_auto_complete, {
|
|
186
|
+
value: radiusVal.value,
|
|
187
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => radiusVal.value = $event),
|
|
188
|
+
options: options.value
|
|
189
|
+
}, {
|
|
190
|
+
default: withCtx(() => [
|
|
191
|
+
createVNode(_component_a_input_number, {
|
|
192
|
+
value: radiusVal.value,
|
|
193
|
+
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => radiusVal.value = $event),
|
|
194
|
+
min: 0,
|
|
195
|
+
controls: true,
|
|
196
|
+
precision: 0,
|
|
197
|
+
style: { "width": "100%" },
|
|
198
|
+
size: "small",
|
|
199
|
+
"addon-after": "px"
|
|
200
|
+
}, null, 8, ["value"])
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["value", "options"]),
|
|
204
|
+
createVNode(_component_down_outlined, { class: "ant-select-arrow gct-select-arrow" })
|
|
205
|
+
])
|
|
206
|
+
])
|
|
207
|
+
]);
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IBorder, IBorderItem } from '@gct-paas/core';
|
|
2
|
+
export type PosType = 'borderAll' | 'borderTop' | 'borderRight' | 'borderBottom' | 'borderLeft';
|
|
3
|
+
export type RadiusPosType = 'all' | 'upLeft' | 'upRight' | 'downRight' | 'downLeft';
|
|
4
|
+
export type BoxValue = Pick<IBorder, 'top' | 'bottom' | 'left' | 'right'>;
|
|
5
|
+
export type BorderRadiusValue = Pick<IBorder, 'topRightRadius' | 'topLeftRadius' | 'bottomRightRadius' | 'bottomLeftRadius'>;
|
|
6
|
+
/**
|
|
7
|
+
* 解析数值和单位
|
|
8
|
+
* @author lingxiaoming
|
|
9
|
+
* @date 2024-07-15 06:06:41
|
|
10
|
+
* @param {string} str
|
|
11
|
+
* @return {*} {({ value: number; unit: string } | null)}
|
|
12
|
+
*/
|
|
13
|
+
export declare function parseValueUnit(str: string): {
|
|
14
|
+
value: number;
|
|
15
|
+
unit: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function parsePos(border?: IBorder): PosType;
|
|
18
|
+
export declare function parseBorderItem(pos: PosType, border?: IBorder): IBorderItem | undefined;
|
|
19
|
+
export declare function parseRadiusType(border?: IBorder): RadiusPosType;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { isEmpty } from 'lodash-es';
|
|
2
|
+
import { BorderStyle } from '@gct-paas/core';
|
|
3
|
+
|
|
4
|
+
function parseValueUnit(str) {
|
|
5
|
+
if (str === "nullpx") {
|
|
6
|
+
return {
|
|
7
|
+
value: 0,
|
|
8
|
+
unit: "px"
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
const regex = /^(\d+\.?\d*)([a-zA-Z%]+)$/;
|
|
12
|
+
const match = str.match(regex);
|
|
13
|
+
if (match) {
|
|
14
|
+
return {
|
|
15
|
+
value: parseFloat(match[1]),
|
|
16
|
+
unit: match[2]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
throw new Error("Invalid value");
|
|
20
|
+
}
|
|
21
|
+
function parsePos(border) {
|
|
22
|
+
if (isEmpty(border)) {
|
|
23
|
+
return "borderAll";
|
|
24
|
+
}
|
|
25
|
+
if (border.bottom && border.left && border.right && border.top) {
|
|
26
|
+
return "borderAll";
|
|
27
|
+
} else if (border.top) {
|
|
28
|
+
return "borderTop";
|
|
29
|
+
} else if (border.right) {
|
|
30
|
+
return "borderRight";
|
|
31
|
+
} else if (border.bottom) {
|
|
32
|
+
return "borderBottom";
|
|
33
|
+
} else {
|
|
34
|
+
return "borderLeft";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function parseBorderItem(pos, border) {
|
|
38
|
+
if (isEmpty(border) || border == null) {
|
|
39
|
+
return {
|
|
40
|
+
style: BorderStyle.NONE,
|
|
41
|
+
color: "#F0F0F0",
|
|
42
|
+
width: "1px"
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
switch (pos) {
|
|
46
|
+
case "borderAll":
|
|
47
|
+
return border.top;
|
|
48
|
+
case "borderTop":
|
|
49
|
+
return border.top;
|
|
50
|
+
case "borderRight":
|
|
51
|
+
return border.right;
|
|
52
|
+
case "borderBottom":
|
|
53
|
+
return border.bottom;
|
|
54
|
+
case "borderLeft":
|
|
55
|
+
return border.left;
|
|
56
|
+
default:
|
|
57
|
+
return void 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function parseRadiusType(border) {
|
|
61
|
+
if (isEmpty(border)) {
|
|
62
|
+
return "all";
|
|
63
|
+
}
|
|
64
|
+
if (border.topRightRadius && border.topLeftRadius && border.bottomLeftRadius && border.bottomRightRadius) {
|
|
65
|
+
return "all";
|
|
66
|
+
} else if (border.topLeftRadius) {
|
|
67
|
+
return "upLeft";
|
|
68
|
+
} else if (border.topRightRadius) {
|
|
69
|
+
return "upRight";
|
|
70
|
+
} else if (border.bottomLeftRadius) {
|
|
71
|
+
return "downLeft";
|
|
72
|
+
} else {
|
|
73
|
+
return "downRight";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { parseBorderItem, parsePos, parseRadiusType, parseValueUnit };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.icon-box[data-v-afcacb4b] {
|
|
2
|
+
flex: 1;
|
|
3
|
+
height: 22px;
|
|
4
|
+
line-height: 22px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
border-radius: 2px;
|
|
8
|
+
}
|
|
9
|
+
.icon-box .iconfont[data-v-afcacb4b] {
|
|
10
|
+
padding: 3px 4px;
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
}
|
|
13
|
+
.icon-box .iconfont[data-v-afcacb4b]:hover {
|
|
14
|
+
background-color: #e6e9ef;
|
|
15
|
+
}
|
|
16
|
+
.selected[data-v-afcacb4b] {
|
|
17
|
+
background-color: #ffffff;
|
|
18
|
+
}
|
|
19
|
+
.align-group-box[data-v-afcacb4b] {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-around;
|
|
23
|
+
height: 26px;
|
|
24
|
+
background-color: #f2f4f7;
|
|
25
|
+
margin-bottom: 8px;
|
|
26
|
+
border-radius: 4px;
|
|
27
|
+
padding: 2px;
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextAlign } from '@gct-paas/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: TextAlign;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:value": (value: TextAlign) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:value"?: ((value: TextAlign) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from './align-group.vue3.mjs';
|
|
2
|
+
import './align-group.css';/* empty css */
|
|
3
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
const AlignGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-afcacb4b"]]);
|
|
6
|
+
|
|
7
|
+
export { AlignGroup as default };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { TextAlign, t } from '@gct-paas/core';
|
|
3
|
+
|
|
4
|
+
const _hoisted_1 = { class: "align-group-box" };
|
|
5
|
+
const _hoisted_2 = ["onClick"];
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "align-group",
|
|
8
|
+
props: {
|
|
9
|
+
value: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:value"],
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const options = [
|
|
14
|
+
{
|
|
15
|
+
label: t("sys.platform.left"),
|
|
16
|
+
value: TextAlign.LEFT,
|
|
17
|
+
icon: "icon-zuoduiqi"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: t("sys.platform.center"),
|
|
21
|
+
value: TextAlign.CENTER,
|
|
22
|
+
icon: "icon-juzhongduiqi"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: t("sys.platform.right"),
|
|
26
|
+
value: TextAlign.RIGHT,
|
|
27
|
+
icon: "icon-youduiqi"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: t("sys.platform.justify"),
|
|
31
|
+
value: TextAlign.JUSTIFY,
|
|
32
|
+
icon: "icon-liangduanduiqi"
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const changeAlign = (align) => {
|
|
37
|
+
emit("update:value", align);
|
|
38
|
+
};
|
|
39
|
+
return (_ctx, _cache) => {
|
|
40
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
41
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
42
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(options, (item) => {
|
|
43
|
+
return createElementVNode("div", {
|
|
44
|
+
key: item.value,
|
|
45
|
+
class: normalizeClass(["icon-box", __props.value === item.value ? "selected" : null]),
|
|
46
|
+
onClick: ($event) => changeAlign(item.value)
|
|
47
|
+
}, [
|
|
48
|
+
createVNode(_component_a_tooltip, null, {
|
|
49
|
+
title: withCtx(() => [
|
|
50
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
51
|
+
]),
|
|
52
|
+
default: withCtx(() => [
|
|
53
|
+
createElementVNode("span", {
|
|
54
|
+
class: normalizeClass(["iconfont", item.icon])
|
|
55
|
+
}, null, 2)
|
|
56
|
+
]),
|
|
57
|
+
_: 2
|
|
58
|
+
}, 1024)
|
|
59
|
+
], 10, _hoisted_2);
|
|
60
|
+
}), 64))
|
|
61
|
+
]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IFont } from '@gct-paas/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: IFont;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:value": (value: IFont) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:value"?: ((value: IFont) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, isRef, unref } from 'vue';
|
|
2
|
+
import { emitFieldSet } from '@gct-paas/core';
|
|
3
|
+
import FontStyleGroup from './font-style-group.vue2.mjs';
|
|
4
|
+
import AlignGroup from './align-group.vue2.mjs';
|
|
5
|
+
import { DefaultFont } from './util.mjs';
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = { class: "font-editor" };
|
|
8
|
+
const _hoisted_2 = { class: "ks-row-middle mb5px" };
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "font-editor",
|
|
11
|
+
props: {
|
|
12
|
+
value: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:value"],
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const emit = __emit;
|
|
18
|
+
const local = computed(() => {
|
|
19
|
+
return props.value || {
|
|
20
|
+
...DefaultFont
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
const { color, fontSize, align, bold, italic, textDecoration } = emitFieldSet(
|
|
24
|
+
local,
|
|
25
|
+
(_k, _v, obj) => {
|
|
26
|
+
emit("update:value", obj);
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
const styleGroup = computed({
|
|
30
|
+
get() {
|
|
31
|
+
return {
|
|
32
|
+
bold: bold.value,
|
|
33
|
+
italic: italic.value,
|
|
34
|
+
textDecoration: textDecoration.value
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
set(v) {
|
|
38
|
+
bold.value = v.bold;
|
|
39
|
+
italic.value = v.italic;
|
|
40
|
+
textDecoration.value = v.textDecoration;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
const _component_length_unit_editor = resolveComponent("length-unit-editor");
|
|
45
|
+
const _component_color_editor = resolveComponent("color-editor");
|
|
46
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
47
|
+
createElementVNode("div", _hoisted_2, [
|
|
48
|
+
createVNode(_component_length_unit_editor, {
|
|
49
|
+
value: unref(fontSize),
|
|
50
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(fontSize) ? fontSize.value = $event : null),
|
|
51
|
+
style: { "width": "100%" }
|
|
52
|
+
}, null, 8, ["value"]),
|
|
53
|
+
createVNode(_component_color_editor, {
|
|
54
|
+
value: unref(color),
|
|
55
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(color) ? color.value = $event : null),
|
|
56
|
+
class: "ml8px"
|
|
57
|
+
}, null, 8, ["value"])
|
|
58
|
+
]),
|
|
59
|
+
createVNode(AlignGroup, {
|
|
60
|
+
value: unref(align),
|
|
61
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => isRef(align) ? align.value = $event : null)
|
|
62
|
+
}, null, 8, ["value"]),
|
|
63
|
+
createVNode(FontStyleGroup, {
|
|
64
|
+
value: styleGroup.value,
|
|
65
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => styleGroup.value = $event)
|
|
66
|
+
}, null, 8, ["value"])
|
|
67
|
+
]);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.icon-box[data-v-7df87cdb] {
|
|
2
|
+
height: 22px;
|
|
3
|
+
flex: 1;
|
|
4
|
+
text-align: center;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
}
|
|
8
|
+
.icon-box .anticon[data-v-7df87cdb] {
|
|
9
|
+
padding: 3px 4px;
|
|
10
|
+
border-radius: 2px;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
position: relative;
|
|
13
|
+
top: 1px;
|
|
14
|
+
}
|
|
15
|
+
.icon-box .anticon[data-v-7df87cdb]:hover {
|
|
16
|
+
background-color: #e6e9ef;
|
|
17
|
+
}
|
|
18
|
+
.selected[data-v-7df87cdb] {
|
|
19
|
+
background-color: #ffffff;
|
|
20
|
+
}
|
|
21
|
+
.font-style-box[data-v-7df87cdb] {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-around;
|
|
25
|
+
height: 26px;
|
|
26
|
+
background-color: #f2f4f7;
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
padding: 2px;
|
|
29
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IFont } from '@gct-paas/core';
|
|
2
|
+
type ValueType = Pick<IFont, 'bold' | 'italic' | 'textDecoration'>;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
value?: ValueType;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:value": (value: ValueType) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:value"?: ((value: ValueType) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|